/* Celebration Popup Styles */
.celebration-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in-out;
}

.celebration-popup.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.celebration-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: fixed;
  display: inline-block;
  pointer-events: none;
}

/* Glow / brighter look for confetti pieces */
.confetti-piece {
  will-change: transform, opacity, left, top;
  /* no blur: subtle crisp shadow without glow */
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  transform-origin: center;
}

.celebration-popup-content {
  position: relative;
  background: linear-gradient(135deg, #2878C1 0%, #CB388B 100%);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  animation: popupScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

@keyframes popupScale {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.celebration-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 20;
}

.celebration-popup-close:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.celebration-popup-inner {
  position: relative;
  z-index: 10;
}

.celebration-text {
  color: white;
  animation: slideUp 0.6s ease-out 0.3s backwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celebration-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.celebration-subtitle {
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 600;
  opacity: 0.95;
}

.celebration-message {
  font-size: 16px;
  margin: 15px 0 0 0;
  opacity: 0.9;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .celebration-popup-content {
    padding: 40px 25px;
  }

  .celebration-title {
    font-size: 32px;
  }

  .celebration-subtitle {
    font-size: 18px;
  }

  .celebration-message {
    font-size: 14px;
  }

  .celebration-popup-close {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .celebration-popup-content {
    padding: 30px 20px;
  }

  .celebration-title {
    font-size: 24px;
  }

  .celebration-subtitle {
    font-size: 16px;
  }

  .celebration-message {
    font-size: 13px;
  }

  .celebration-popup-close {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}
