/* ========================================
   SUCCESS MODAL WITH COUNTDOWN
   ======================================== */

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modal-fade-in 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

/* Modal Container */
.modal-container {
  position: relative;
  width: 100%;
  max-width: 448px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modal-scale-in 0.2s ease-out;
  overflow: hidden;
}

/* Modal Header */
.modal-header {
  padding: 32px 24px 24px;
  text-align: center;
}

/* Success Icon */
.modal-icon {
  width: 48px;
  height: 48px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
  stroke: #16a34a;
  stroke-width: 2.5;
  fill: none;
}

/* Modal Title */
.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

/* Modal Message */
.modal-message {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Countdown Section */
.modal-countdown {
  padding: 0 24px 24px;
}

/* Progress Bar */
.countdown-progress {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.countdown-progress-fill {
  position: absolute;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 3px;
  transition: width 0.3s linear;
  width: 100%;
}

/* Animations */
@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-container {
    max-width: 100%;
  }

  .modal-header {
    padding: 20px 20px 12px;
  }

  .modal-countdown {
    padding: 0 20px 20px;
  }

  .modal-icon {
    width: 40px;
    height: 40px;
  }

  .modal-icon svg {
    width: 24px;
    height: 24px;
  }
}
