/* ══════════════════════════════════════════════
   Flix4K — Custom Styles & Animations v2
   ══════════════════════════════════════════════ */

/* ── Base Reset ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Fix iOS horizontal scroll — clip, not hidden, so position:fixed still works */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: #070709;
  overscroll-behavior: none;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cinema-vignette {
  background: radial-gradient(circle at 50% 30%, rgba(7,7,9,0.58) 0%, rgba(7,7,9,0.78) 65%, #070709 100%);
  transition: background 0.3s ease;
}

/* ── Glow Container (fixed clip so 600px orb never scrolls sideways) ── */
.glow-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.13) 0%, rgba(229,9,20,0.05) 40%, transparent 70%);
}

/* Everything above #cinema-bg (z-0) */
main, footer {
  position: relative;
  z-index: 10;
  background: transparent;
}

#navbar { z-index: 50; }
#processing-modal, #footer-modal { z-index: 100; }
#social-toast { z-index: 40; }

/* ── Glassmorphism Card ─────────────────────── */
.glass-card {
  background: rgba(17, 17, 21, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Navbar Scroll State ────────────────────── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(7, 7, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Flix4K Custom Emblem & Glowing Wordmark ─── */
.flix-emblem {
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.55));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.group:hover .flix-emblem {
  filter: drop-shadow(0 0 18px rgba(255, 59, 78, 0.85));
  transform: scale(1.04);
}

.flix-4k-glow {
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.65));
}

/* ── Navbar Live Status Pill ─────────────────── */
.nav-status-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

/* ── Theme Toggle Button ────────────────────── */
.theme-toggle {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

html.light-mode .theme-icon-sun { display: none; }
html.light-mode .theme-icon-moon { display: block; }

@media (max-width: 379px) {
  .nav-status-pill,
  .lang-trigger {
    padding: 0.25rem 0.45rem;
    gap: 0.25rem;
    font-size: 10px;
  }
  .theme-toggle {
    width: 28px;
    height: 28px;
  }
}

#nav-online-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#nav-online-count.tick {
  opacity: 0.55;
  transform: scale(0.92);
}

/* ── Navbar Language Switcher ────────────────── */
.lang-trigger {
  min-height: 32px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#lang-switcher.open .lang-trigger {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.15);
}

#lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 70;
  min-width: 175px;
  padding: 0.375rem;
  background: #121218;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 0.875rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 24px rgba(229, 9, 20, 0.14);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#lang-switcher.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  background: transparent;
  border: none;
  color: #A1A1AA;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 38px;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(229, 9, 20, 0.1);
  color: #fff;
  outline: none;
}

.lang-option.active {
  background: rgba(229, 9, 20, 0.15);
  color: #fff;
  font-weight: 600;
}

.lang-option-check {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #FF3B4E;
  opacity: 0;
  flex-shrink: 0;
}

.lang-option.active .lang-option-check {
  opacity: 1;
}

/* ── Device Selection Cards ─────────────────── */
.device-card {
  position: relative;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 80px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.device-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 0.5rem;
  height: 100%;
}

.device-card:hover {
  border-color: rgba(229, 9, 20, 0.35);
  background: rgba(229, 9, 20, 0.05);
}

.device-card.active {
  border-color: #E50914;
  background: rgba(229, 9, 20, 0.08);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.18), inset 0 0 20px rgba(229, 9, 20, 0.05);
}

.device-card.active::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: #E50914;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.device-card.active .device-card-inner i { color: #E50914; }
.device-card.active .device-card-inner span { color: #fff; }

/* Step-indicator-1 clickable cursor when in step 2 */
#step-indicator-1 {
  cursor: default;
}
#step-indicator-1.clickable {
  cursor: pointer;
}
#step-indicator-1.clickable:hover {
  opacity: 0.8;
}

/* ── Quality Pills ──────────────────────────── */
.quality-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #A1A1AA;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
  min-height: 48px;
  height: auto;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.quality-pill:hover {
  border-color: rgba(229, 9, 20, 0.35);
  color: #fff;
}

.quality-pill.active {
  background: rgba(229, 9, 20, 0.12);
  border-color: #E50914;
  color: #fff;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.18);
}

/* ── Lead Capture Fields ─────────────────────── */
.field-group {
  /* outer wrapper for field + error msg */
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #A1A1AA;
  pointer-events: none;
  flex-shrink: 0;
  /* Lucide renders as SVG — ensure colour */
  stroke: #A1A1AA;
}

/* Critical: 16px font-size on all inputs/selects prevents iOS auto-zoom */
.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem 0.75rem 2.5rem;
  font-size: 16px; /* Prevents iOS Safari auto-zoom */
  font-family: 'Inter', sans-serif;
  color: #fff;
  min-height: 52px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-input-email {
  padding-right: 2.5rem;
}

.email-valid-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #10B981;
  stroke: #10B981;
  pointer-events: none;
  flex-shrink: 0;
  animation: scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-input::placeholder {
  color: rgba(161, 161, 170, 0.55);
  font-size: 14px;
}

.field-input:focus {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.08);
}

.field-input.error {
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
  animation: field-shake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.field-select {
  cursor: pointer;
  color: #A1A1AA;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.field-select:focus,
.field-select option:checked {
  color: #fff;
}

.field-select option {
  background: #111115;
  color: #fff;
}

.field-select option[disabled] {
  color: rgba(161,161,170,0.4);
}

/* Error message text */
.field-error {
  font-size: 11px;
  color: #FF2A36;
  margin-top: 4px;
  padding-left: 0.25rem;
}

/* Shake animation for validation */
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  15%  { transform: translateX(-6px); }
  30%  { transform: translateX(6px); }
  45%  { transform: translateX(-4px); }
  60%  { transform: translateX(4px); }
  75%  { transform: translateX(-2px); }
  90%  { transform: translateX(2px); }
}

/* ── Live Pass Preview Card ──────────────────── */
.pass-preview-card {
  background: linear-gradient(135deg, rgba(17,17,21,0.9) 0%, rgba(25,10,12,0.9) 100%);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.pass-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,9,20,0.4), transparent);
}

.pass-preview-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pass-chip {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229,9,20,0.08);
  border-radius: 8px;
  border: 1px solid rgba(229,9,20,0.15);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #10B981;
  text-transform: uppercase;
}

.pass-reserved {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.vip-slots-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 9px;
  font-weight: 600;
  color: #FBBF24;
  white-space: nowrap;
}

/* ── CTA Button ─────────────────────────────── */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 1.5rem;
  min-height: 54px;
  background: linear-gradient(135deg, #E50914 0%, #FF2A36 100%);
  border: none;
  border-radius: 0.875rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 24px rgba(229, 9, 20, 0.32);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
}

.cta-btn:hover:not(:disabled) {
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.48);
  transform: translateY(-1px);
}

.cta-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.cta-btn:disabled {
  background: linear-gradient(135deg, #2a2a2e 0%, #3a3a3e 100%);
  box-shadow: none;
  cursor: not-allowed;
}

.cta-btn-text {
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

/* Shimmer Sweep — smooth diagonal sheen every 5s */
.cta-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  z-index: 1;
  animation: shimmer 5s ease-in-out infinite;
}

.cta-btn:disabled .cta-shimmer {
  animation: none;
}

@keyframes shimmer {
  0% { left: -120%; }
  22%, 100% { left: 140%; }
}

/* ── Pulse Glow (Verify Button) ─────────────── */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(229,9,20,0.32); }
  50% { box-shadow: 0 4px 44px rgba(229,9,20,0.6), 0 0 60px rgba(229,9,20,0.18); }
}

/* ── Bento Trust Cards ──────────────────────── */
.bento-card {
  position: relative;
  overflow: hidden;
  background: rgba(17, 17, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.125rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(229, 9, 20, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 9, 20, 0.28);
  background: rgba(17, 17, 21, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(229, 9, 20, 0.08);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-icon-box {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover .bento-icon-box {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.28);
}

/* ── Live Activity Feed Card ────────────────── */
.live-activity-card {
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.live-activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.35), transparent);
  pointer-events: none;
}

.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease;
}

@media (min-width: 640px) {
  .claim-row {
    padding: 0.8125rem 1.25rem;
  }
}

.claim-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.claim-row.entering {
  animation: claim-slide-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.claim-row.leaving {
  opacity: 0;
  transform: translateY(6px);
}

@keyframes claim-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
    background: rgba(16, 185, 129, 0.08);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

/* ── FAQ Accordion ──────────────────────────── */
.faq-item {
  position: relative;
  overflow: hidden;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-item.open {
  border-color: rgba(229, 9, 20, 0.25);
  border-left-color: #E50914;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(229, 9, 20, 0.08);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-content {
  max-height: 360px;
}

.faq-item.open .faq-icon-wrap {
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.35);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #FF2A36;
}

.faq-trigger {
  min-height: 52px;
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger:focus-visible {
  outline: 2px solid #E50914;
  outline-offset: -2px;
  border-radius: 0.75rem;
}

/* ── Progress Bar in Modal ──────────────────── */
#modal-progress-bar {
  position: relative;
}

#modal-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 0 9999px 9999px 0;
}

/* ── Entrance Animations ────────────────────── */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in-down {
  opacity: 0;
  animation: fade-in-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scale-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Social Toast — pointer-events ALWAYS none ── */
#social-toast {
  pointer-events: none !important;
}

#social-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.92) 0%, rgba(14, 14, 18, 0.95) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 28px rgba(229, 9, 20, 0.12), 0 0 18px rgba(16, 185, 129, 0.08);
}

.toast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Selection ──────────────────────────────── */
::selection { background: rgba(229,9,20,0.3); color: #fff; }

/* ── Focus Visible ──────────────────────────── */
button:focus-visible { outline: 2px solid #E50914; outline-offset: 2px; }
input:focus-visible  { outline: none; } /* handled by .field-input:focus */
select:focus-visible { outline: none; }

/* ── Custom Country Flag Dropdown ────────────── */
.country-dropdown {
  position: relative;
  width: 100%;
  z-index: 40;
}

.country-dropdown.open {
  z-index: 50;
}

/* Trigger button — matches field-input look */
.country-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  font-size: 16px; /* Prevent iOS zoom */
  font-family: 'Inter', sans-serif;
}

.country-trigger:hover,
.country-trigger:focus-visible {
  border-color: rgba(229,9,20,0.4);
}

.country-dropdown.open .country-trigger {
  border-color: rgba(229,9,20,0.5);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.08);
  border-radius: 0.75rem 0.75rem 0 0;
}

.country-dropdown.error .country-trigger {
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
  animation: field-shake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.country-trigger-icon {
  width: 1rem;
  height: 1rem;
  color: #A1A1AA;
  flex-shrink: 0;
}

.country-trigger-label {
  flex: 1;
  text-align: left;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-trigger-label.placeholder {
  color: rgba(161,161,170,0.55);
  font-size: 14px;
}

.country-chevron {
  width: 14px;
  height: 14px;
  color: #A1A1AA;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.country-dropdown.open .country-chevron {
  transform: rotate(180deg);
}

/* Flag image in trigger */
.country-trigger-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Dropdown panel */
.country-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #121218;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  border: 1.5px solid rgba(229,9,20,0.3);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  overflow: hidden;
  /* Closed state */
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
}

.country-dropdown.open .country-panel {
  max-height: min(300px, 55dvh);
  opacity: 1;
  pointer-events: auto;
}

/* Search bar */
.country-search-wrap {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: #121218;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.country-search-icon {
  width: 14px;
  height: 14px;
  color: #A1A1AA;
  flex-shrink: 0;
}

.country-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  caret-color: #E50914;
}

.country-search-input::placeholder { color: rgba(161,161,170,0.5); font-size: 14px; }

/* Options list */
.country-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.country-group-label {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.65);
}

.country-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.25rem 0;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 13.5px;
  color: #A1A1AA;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}

.country-option:hover,
.country-option:focus {
  background: rgba(229,9,20,0.09);
  color: #fff;
  outline: none;
}

.country-option.selected {
  background: rgba(229,9,20,0.13);
  color: #fff;
}

.country-option.selected::after {
  content: '';
  margin-left: auto;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E50914' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.country-option.hidden {
  display: none;
}

.country-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.country-flag-placeholder {
  width: 24px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.country-no-results {
  padding: 0.75rem;
  text-align: center;
  color: rgba(161,161,170,0.5);
  font-size: 13px;
}

/* ── Responsive Fine-tuning ─────────────────── */
@media (max-width: 380px) {
  .device-card-inner { padding: 0.75rem 0.25rem; }
  .quality-pill { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  h1 { font-size: 1.7rem !important; }
}

/* Countdown timer colour pulse */
#countdown-timer.urgent {
  color: #FF2A36;
  animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ══════════════════════════════════════════════
   STUDIO LIGHT MODE (html.light-mode)
   Preserves Dark Mode (#070709) 100% untouched.
   ══════════════════════════════════════════════ */
html.light-mode body {
  background-color: #F5F6FA !important;
  color: #0F172A !important;
}

html.light-mode .cinema-bg-img {
  opacity: 0.16 !important;
  filter: blur(2px) saturate(0.85);
}

html.light-mode .cinema-vignette {
  background: linear-gradient(180deg, rgba(245, 246, 250, 0.88) 0%, rgba(245, 246, 250, 0.92) 55%, #F5F6FA 100%);
}

html.light-mode .hero-glow {
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.06) 0%, rgba(229, 9, 20, 0.02) 45%, transparent 72%);
}

html.light-mode #navbar.scrolled {
  background: rgba(245, 246, 250, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html.light-mode .navbar-brand-text {
  color: #0F172A !important;
}

html.light-mode .nav-status-pill,
html.light-mode .lang-trigger,
html.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

html.light-mode .nav-status-pill::before {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

html.light-mode .nav-status-pill #nav-online-count,
html.light-mode .nav-status-pill [data-i18n="nav_live"],
html.light-mode #lang-current-code,
html.light-mode .theme-toggle {
  color: #0F172A !important;
}

html.light-mode .nav-status-pill #live-date,
html.light-mode .nav-status-pill [data-i18n="nav_online"] {
  color: #475569 !important;
}

html.light-mode .nav-status-pill .bg-white\/15 {
  background-color: rgba(15, 23, 42, 0.14) !important;
}

html.light-mode .lang-menu {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14), 0 0 20px rgba(229, 9, 20, 0.06);
}

html.light-mode .lang-option {
  color: #475569;
}

html.light-mode .lang-option:hover,
html.light-mode .lang-option:focus-visible {
  background: rgba(229, 9, 20, 0.06);
  color: #0F172A;
}

html.light-mode .lang-option.active {
  background: rgba(229, 9, 20, 0.1);
  color: #0F172A;
}

/* Cards & Panels */
html.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

html.light-mode .bento-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html.light-mode .bento-card:hover {
  background: #FFFFFF;
  border-color: rgba(229, 9, 20, 0.25);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08), 0 0 20px rgba(229, 9, 20, 0.06);
}

html.light-mode .bento-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

html.light-mode .live-activity-card {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

html.light-mode .live-activity-card > div:first-child {
  background: rgba(15, 23, 42, 0.025) !important;
  border-bottom-color: rgba(15, 23, 42, 0.07) !important;
}

html.light-mode #live-claims-feed {
  border-color: rgba(15, 23, 42, 0.07);
}

html.light-mode .claim-row {
  border-color: rgba(15, 23, 42, 0.06) !important;
}

html.light-mode .claim-row:hover {
  background: rgba(15, 23, 42, 0.02);
}

/* Typography in Light Mode (protects CTA & step indicators) */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode .bento-card h3,
html.light-mode .faq-trigger,
html.light-mode #pass-device-quality,
html.light-mode #live-claim-counter,
html.light-mode #toast-user,
html.light-mode .claim-row .text-white,
html.light-mode strong.text-white,
html.light-mode #step-1-panel ~ div #step2-label,
html.light-mode [data-i18n="step1_label"] {
  color: #0F172A !important;
}

html.light-mode [data-i18n="hero_eyebrow"],
html.light-mode [data-i18n="hero_sub"],
html.light-mode .bento-card p,
html.light-mode .faq-content p,
html.light-mode .email-helper-note,
html.light-mode .cta-security-strip,
html.light-mode footer,
html.light-mode #modal-status-text,
html.light-mode #modal-verify p,
html.light-mode #footer-modal-body,
html.light-mode .text-\[\#A1A1AA\] {
  color: #475569 !important;
}

html.light-mode .email-helper-note strong,
html.light-mode #email-helper-tier {
  color: #0F172A !important;
}

html.light-mode .text-emerald-400 {
  color: #059669 !important;
  stroke: #059669 !important;
}

html.light-mode .bg-white\/\[0\.06\],
html.light-mode .bg-white\/\[0\.05\],
html.light-mode .bg-white\/\[0\.04\] {
  background-color: rgba(15, 23, 42, 0.04) !important;
}

html.light-mode .border-white\/\[0\.08\] {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Device Cards & Quality Pills */
html.light-mode .device-card {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.09);
}

html.light-mode .device-card:hover {
  background: rgba(229, 9, 20, 0.04);
  border-color: rgba(229, 9, 20, 0.35);
}

html.light-mode .device-card.active {
  background: rgba(229, 9, 20, 0.07);
  border-color: #E50914;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.12);
}

html.light-mode .device-card.active .device-card-inner span {
  color: #0F172A !important;
}

html.light-mode .quality-pill {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

html.light-mode .quality-pill:hover {
  color: #0F172A;
  border-color: rgba(229, 9, 20, 0.35);
}

html.light-mode .quality-pill.active {
  background: rgba(229, 9, 20, 0.08);
  border-color: #E50914;
  color: #0F172A;
  font-weight: 600;
}

/* Step Indicators & Back Button */
html.light-mode #step-indicator-2 {
  background-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

html.light-mode #back-to-step1 {
  color: #475569;
}

html.light-mode #back-to-step1:hover {
  color: #0F172A;
}

/* VIP Preview Card */
html.light-mode .pass-preview-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF4F5 100%);
  border-color: rgba(229, 9, 20, 0.22);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.06);
}

html.light-mode .vip-slots-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #B45309;
}

/* Inputs & Country Dropdown */
html.light-mode .field-input,
html.light-mode .country-trigger {
  background: #F8FAFC;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0F172A;
}

html.light-mode .field-input:focus {
  background: #FFFFFF;
  border-color: rgba(229, 9, 20, 0.55);
}

html.light-mode .field-input::placeholder,
html.light-mode .country-trigger-label.placeholder {
  color: #94A3B8;
}

html.light-mode .country-panel,
html.light-mode .country-search-wrap {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
}

html.light-mode .country-panel {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

html.light-mode .country-search-wrap {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html.light-mode .country-search-input {
  color: #0F172A;
}

html.light-mode .country-option {
  color: #334155;
}

html.light-mode .country-option:hover,
html.light-mode .country-option:focus {
  background: rgba(229, 9, 20, 0.06);
  color: #0F172A;
}

html.light-mode .country-option.selected {
  background: rgba(229, 9, 20, 0.1);
  color: #0F172A;
}

html.light-mode .country-divider {
  background: rgba(15, 23, 42, 0.08);
}

/* FAQ & Modals & Toasts */
html.light-mode .faq-icon-wrap {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

html.light-mode .faq-item.open {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07), 0 0 16px rgba(229, 9, 20, 0.06);
}

html.light-mode .toast-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

html.light-mode #modal-backdrop,
html.light-mode .footer-modal-backdrop {
  background: rgba(15, 23, 42, 0.48);
}

html.light-mode footer .h-px {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

html.light-mode footer button:hover {
  color: #0F172A !important;
}

html.light-mode #footer-modal-close {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.06);
}

html.light-mode #modal-summary-pill {
  color: #0F172A !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}