/* Modal Wrapper */
#dailySection.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  color: #fff;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

/* Show Modal */
#dailySection.modal.active {
  display: flex;
}

/* Modal Content */
.dailymodal-content {
  width: 90%;
  max-width: 400px;
  height: 70vh;
  margin: -40px auto;
  padding: 30px;
  background-color: #003248;
  border-top: 0.6vw solid var(--score-border-color);
  border-radius: 10vw;
  color: var(--score-text-color);
  font-size: 1.3em;
  font-weight: bold;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: glowPulse 2.5s ease-in-out infinite;
  z-index: 10000;
  text-align: center;
  position: relative;
}

/* Slide Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Animation classes */
.dailymodal-content.slide-up {
  animation: slideUp 0.4s ease-out forwards, glowPulse 2.5s ease-in-out infinite;
}
.dailymodal-content.slide-down {
  animation: slideDown 0.4s ease-in forwards;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px #00ff99cc;
  }
  50% {
    box-shadow: 0 0 20px #00ff99ff;
  }
}

/* Close Button */
.closeBtn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #00ff99;
  cursor: pointer;
  transition: color 0.3s;
  touch-action: manipulation;
}
.closeBtn:hover {
  color: #00cc77;
}

/* Headings and Text */
.dailymodal-content h2 {
  margin-bottom: 12px;
  font-size: 1.8em;
  text-shadow: 0 0 8px #00ff99aa;
  word-break: break-word;
}
#bonusText {
  font-size: 1.1em;
  margin: 10px 0 4px;
}
#countdownText,
#streakText {
  font-weight: 600;
  font-size: 1.1em;
  text-align: center;
  color: #00ff99;
  text-shadow: 0 0 5px #00ff9977;
}
#countdownText {
  margin: 6px 0 10px;
}
#streakText {
  margin-top: 16px;
}

/* Claim Button */
.claimBtn {
  padding: 14px 28px;
  background-color: #00ff99;
  color: #003248;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1em;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px #00ff99cc;
  user-select: none;
  touch-action: manipulation;
  min-width: 150px;
}
.claimBtn:hover:not(:disabled) {
  background-color: #00cc77;
  box-shadow: 0 0 15px #00cc7799;
}
.claimBtn:disabled {
  background-color: gray;
  color: #ddd;
  box-shadow: none;
  cursor: not-allowed;
}

/* Progress Tracker */
.progress-tracker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.progress-day {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #777;
  opacity: 0.4;
  transition: background-color 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.progress-day.active {
  background-color: #00ff99;
  opacity: 1;
  box-shadow: 0 0 8px #00ff99cc;
}

/* Claim Message */
.claim-message {
  margin-top: 18px;
  padding: 14px 20px;
  background-color: #00ff99;
  color: #003248;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.15em;
  text-align: center;
  box-shadow: 0 0 14px rgba(0, 255, 179, 0.5);
  animation: slideIn 0.4s ease-out;
  display: none;
  word-break: break-word;
  user-select: none;
}
@keyframes slideIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}