/* Popup Banner Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.popup-banner {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0,0,0,0.1);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}

.popup-overlay.show .popup-banner {
  transform: scale(1) translateY(0);
}

.popup-banner::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #007bff 100%);
  border-radius: 23px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  font-size: 24px;
  color: #007bff;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.popup-close-btn:hover {
  background: #007bff;
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.popup-title {
  color: white;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-title::before {
  content: '⚖️';
  font-size: 1.2em;
  margin-right: 10px;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.popup-message {
  color: white;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid white;
}

.popup-message::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.popup-btn {
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popup-btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.popup-btn-primary::before {
  content: '🚀';
  font-size: 1.2em;
}

.popup-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.popup-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

.popup-btn-primary:hover::after {
  left: 100%;
}

.popup-btn-secondary {
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.popup-btn-secondary:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Trust Indicators */
.popup-trust-indicators {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.trust-indicator {
  text-align: center;
  flex: 1;
}

.trust-indicator-icon {
  font-size: 1.5em;
  margin-bottom: 5px;
  display: block;
}

.trust-indicator-text {
  font-size: 0.85em;
  color: white;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-banner {
    padding: 30px 25px;
    margin: 20px;
    max-width: none;
  }
  
  .popup-title {
    font-size: 1.5em;
  }
  
  .popup-message {
    font-size: 1em;
  }
  
  .popup-btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    justify-content: center;
  }
  
  .popup-buttons {
    flex-direction: column;
  }
  
  .popup-trust-indicators {
    flex-direction: column;
    gap: 15px;
  }
}

/* Animation for popup entrance */
@keyframes popupSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(10deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.popup-overlay.show .popup-banner {
  animation: popupSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}