/* OVERLAY */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

/* POPUP BOX */
.popup-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  padding: 35px 30px;
  border-radius: 16px;
  width: 340px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: popupEnter 0.4s ease;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}
.close-btn:hover {
  color: #000;
}

/* SUCCESS ICON */
.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: #22c55e;
  color: #fff;
  font-size: 32px;
  line-height: 70px;
  border-radius: 50%;
  animation: popScale 0.4s ease;
}

/* TEXT */
.popup-content h3 {
  font-weight: 700;
  margin-bottom: 8px;
}
.popup-content p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

/* BUTTON */
.done-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
.done-btn:hover {
  transform: scale(1.05);
}

/* HIDDEN CANCEL BUTTON */
.cancel-btn {
  display: none;
}

/* ✨ SPARKLES */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleAnim 1.5s infinite;
}

.sparkle1 { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.sparkle3 { bottom: 20%; left: 40%; animation-delay: 1s; }

/* ANIMATIONS */
@keyframes popupEnter {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes popScale {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes sparkleAnim {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
/* 🎉 CONFETTI CONTAINER */
.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 🎉 CONFETTI PIECES */
.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  background: #22c55e;
  opacity: 0;
  animation: confettiFall 1.5s ease forwards;
}

/* Different colors */
.confetti:nth-child(1) { left: 10%; background: #22c55e; animation-delay: 0s; }
.confetti:nth-child(2) { left: 25%; background: #3b82f6; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 40%; background: #f59e0b; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 55%; background: #ef4444; animation-delay: 0.1s; }
.confetti:nth-child(5) { left: 70%; background: #a855f7; animation-delay: 0.3s; }
.confetti:nth-child(6) { left: 85%; background: #14b8a6; animation-delay: 0.5s; }
.confetti:nth-child(7) { left: 50%; background: #eab308; animation-delay: 0.6s; }

/* 🎉 CONFETTI ANIMATION */
@keyframes confettiFall {
  0% {
    top: -20px;
    transform: rotate(0deg) scale(0.5);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(1);
  }
  100% {
    top: 100%;
    transform: rotate(360deg);
    opacity: 0;
  }
}
.success-icon {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}