/* ==========================================================================
   Welcome VIP Newsletter Popup Modal Styles (First-Time Visit)
   ========================================================================== */
.welcome-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(5, 5, 8, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.welcome-popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.popup-open {
  overflow: hidden !important;
}

.welcome-popup-content {
  background: linear-gradient(155deg, #151520 0%, #0d0d14 60%, #08080c 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.welcome-popup-overlay.active .welcome-popup-content {
  transform: scale(1) translateY(0);
}

/* Top decorative accent bar */
.welcome-popup-top-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #e50914 50%, #d4af37 100%);
  box-shadow: 0 1px 12px rgba(229, 9, 20, 0.6);
}

/* Watermark logo overlay */
.welcome-popup-bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.welcome-popup-bg-watermark img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

/* Close button */
.welcome-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-zinc-400, #a1a1aa);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.welcome-popup-close-btn:hover {
  color: var(--accent-red, #e50914);
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  transform: rotate(90deg) scale(1.05);
}

.welcome-popup-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* Modal body container */
.welcome-popup-body {
  /* padding: 2.2rem 2.2rem 2rem; */
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .welcome-popup-body {
    padding: 1.75rem 1.25rem 1.5rem;
  }
}

/* Badge */
.welcome-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold, #d4af37);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.welcome-popup-badge .badge-star {
  color: var(--accent-gold, #d4af37);
  font-size: 0.75rem;
}

/* Title & Subtitle */
.welcome-popup-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text-white, #ffffff);
  letter-spacing: 0.8px;
  margin-bottom: 0.65rem;
}

.welcome-popup-title .title-highlight {
  background: linear-gradient(135deg, #d4af37 0%, #ff4b55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-popup-subtitle {
  color: var(--text-zinc-400, #a1a1aa);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

/* Form Groups */
.popup-input-group {
  position: relative;
  margin-bottom: 0.85rem;
  text-align: left;
}

.popup-input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-zinc-300, #d4d4d8);
  margin-bottom: 0.35rem;
}

.popup-input-label .required-star {
  color: var(--accent-red, #e50914);
  font-weight: bold;
  margin-left: 2px;
}

.popup-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.popup-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-zinc-500, #71717a);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.popup-input-control {
  width: 100%;
  background: rgba(8, 8, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  color: var(--text-white, #ffffff);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.popup-input-control::placeholder {
  color: var(--text-zinc-500, #71717a);
  font-weight: 300;
}

.popup-input-control:focus {
  outline: none;
  background: rgba(12, 12, 18, 0.95);
  border-color: var(--accent-gold, #d4af37);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.popup-input-control:focus+.popup-input-icon,
.popup-input-wrapper:focus-within .popup-input-icon {
  color: var(--accent-gold, #d4af37);
}

/* Error state */
.popup-input-control.is-invalid {
  border-color: var(--accent-red, #e50914) !important;
  background: rgba(229, 9, 20, 0.05) !important;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.25) !important;
}

.popup-input-wrapper:has(.popup-input-control.is-invalid) .popup-input-icon {
  color: var(--accent-red, #e50914);
}

.popup-error-message {
  color: #ff5e66;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
  font-weight: 500;
}

.popup-error-message.show-error {
  display: block;
  animation: popupFadeError 0.2s ease;
}

@keyframes popupFadeError {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Privacy assurance */
.popup-privacy-note {
  font-size: 0.76rem;
  color: var(--text-zinc-500, #71717a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.popup-privacy-note svg {
  color: var(--accent-gold, #d4af37);
  flex-shrink: 0;
}

/* Submit Button */
.popup-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-red, #e50914) 0%, #b30710 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-white, #ffffff);
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
  margin-top: 0.6rem;
}

.popup-submit-btn::before {
  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.6s ease;
}

.popup-submit-btn:hover {
  background: linear-gradient(135deg, #ff1e27 0%, #c40a13 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.popup-submit-btn:hover::before {
  left: 100%;
}

.popup-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.popup-submit-btn .btn-arrow-icon {
  transition: transform 0.25s ease;
}

.popup-submit-btn:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Secondary dismiss link */
.popup-dismiss-link {
  background: none;
  border: none;
  color: var(--text-zinc-500, #71717a);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.4rem 0.5rem;
  margin-top: 0.6rem;
  display: inline-block;
}

.popup-dismiss-link:hover {
  color: var(--text-zinc-300, #d4d4d8);
  text-decoration: underline;
}