/* Popup Container */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(0, 0, 0, 0.95);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #f1d472;
  box-shadow: 0 0 30px rgba(241, 212, 114, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  min-width: 300px;
  max-width: 90%;
  text-align: center;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Popup Content */
.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: #f1d472;
}

/* Icon Styles */
.popup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.popup-icon.success {
  color: #4caf50;
}

.popup-icon.error {
  color: #f44336;
}

/* Message Styles */
.popup-title {
  font-size: 1.8rem;
  margin: 0;
  background: -webkit-radial-gradient(#f1d472, #b17a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-message {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  color: #f1d472;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #f1d472;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.popup-close:hover {
  transform: rotate(90deg);
  color: #b17a1a;
}

/* Animation */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popupFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.7);
  }
}

/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .popup {
    width: 90%;
    padding: 1.5rem;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-message {
    font-size: 1rem;
  }

  .popup-icon {
    font-size: 2.5rem;
  }
}
