@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   PREMIUM DESIGN TOKENS — Connect xx-men Pro
   Deep Navy · Electric Blue · Luxury Gold · Crimson
   ============================================================ */
:root {
  /* ── BACKGROUNDS (Deep cinematic dark) ── */
  --bg-root:     #04050d;
  --bg-deep:     #060812;
  --bg-surface:  #0c0e1c;
  --bg-card:     #10132a;
  --bg-card2:    #13172e;
  --bg-elevated: #181c38;
  --bg-nav:      rgba(4,5,13,0.97);
  --bg-modal:    #0a0c1e;
  --bg-glass:    rgba(255,255,255,0.03);
  --bg-glass2:   rgba(255,255,255,0.055);
  --bg-glass3:   rgba(255,255,255,0.08);

  /* ── BRAND: Electric Blue (primary accent) ── */
  --blue:        #4f8ef7;
  --blue-bright: #6aa3ff;
  --blue-dark:   #2c5fd4;
  --blue-glow:   0 0 28px rgba(79,142,247,0.55);
  --blue-faint:  rgba(79,142,247,0.08);
  --blue-mid:    rgba(79,142,247,0.15);

  /* ── BRAND: Luxury Gold (premium) ── */
  --gold:        #f0b429;
  --gold-bright: #ffd166;
  --gold-dark:   #c8920a;
  --gold-glow:   0 0 24px rgba(240,180,41,0.50);
  --gold-faint:  rgba(240,180,41,0.08);
  --gold-mid:    rgba(240,180,41,0.15);

  /* ── BRAND: Crimson Red (action/danger) ── */
  --red:         #e8344a;
  --red-bright:  #ff5569;
  --red-dark:    #b01e31;
  --red-glow:    0 0 24px rgba(232,52,74,0.55);
  --red-faint:   rgba(232,52,74,0.08);
  --red-mid:     rgba(232,52,74,0.15);

  /* ── BRAND: Purple (luxury/hero) ── */
  --purple:      #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-glow: 0 0 24px rgba(139,92,246,0.45);
  --purple-faint: rgba(139,92,246,0.08);

  /* ── BRAND: Teal/Cyan (secondary) ── */
  --teal:        #06d6a0;
  --teal-glow:   0 0 20px rgba(6,214,160,0.40);
  --teal-faint:  rgba(6,214,160,0.08);

  /* ── TEXT ── */
  --t1: #eef0fa;
  --t2: #7c85aa;
  --t3: #3a4160;
  --t4: #1e2340;

  /* ── BORDERS ── */
  --border:        rgba(255,255,255,0.06);
  --border-md:     rgba(255,255,255,0.10);
  --border-blue:   rgba(79,142,247,0.30);
  --border-gold:   rgba(240,180,41,0.30);
  --border-red:    rgba(232,52,74,0.28);
  --border-purple: rgba(139,92,246,0.28);
  --border-glass:  var(--border);
  --border-active: var(--border-blue);

  /* ── GRADIENT PRESETS ── */
  --grad-hero:    linear-gradient(135deg, #4f8ef7 0%, #8b5cf6 50%, #e8344a 100%);
  --grad-gold:    linear-gradient(135deg, #f0b429 0%, #ffd166 60%, #e8956a 100%);
  --grad-blue:    linear-gradient(135deg, #4f8ef7 0%, #6aa3ff 100%);
  --grad-purple:  linear-gradient(135deg, #8b5cf6 0%, #4f8ef7 100%);
  --grad-premium: linear-gradient(135deg, #f0b429 0%, #8b5cf6 50%, #4f8ef7 100%);
  --grad-dark:    linear-gradient(180deg, #060812 0%, #04050d 100%);
  --grad-card:    linear-gradient(145deg, rgba(79,142,247,0.05) 0%, rgba(139,92,246,0.03) 100%);

  /* ── RADII ── */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-2xl: 32px; --r-pill: 999px;

  /* ── TRANSITIONS ── */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-out: cubic-bezier(0,0,0.2,1);
  --t-fast: 0.14s; --t-mid: 0.26s; --t-slow: 0.42s;

  /* ── SHADOWS ── */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.7);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.85);
  --shadow-xl:    0 16px 64px rgba(0,0,0,0.95);
  --shadow-modal: 0 32px 80px rgba(0,0,0,0.97);
  --shadow-blue:  0 8px 32px rgba(79,142,247,0.25);
  --shadow-gold:  0 8px 32px rgba(240,180,41,0.20);

  /* ── LEGACY ALIASES (backward compat) ── */
  --cyan:         var(--blue);
  --cyan-dark:    var(--blue-dark);
  --cyan-glow:    var(--blue-glow);
  --cyan-faint:   var(--blue-faint);
  --green:        var(--teal);
  --text-muted:   var(--t2);
  --accent-cyan:  var(--blue);
  --accent-neon:  var(--red);
  --bg-card2:     var(--bg-card2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-root);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%,   rgba(79,142,247,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 5%,   rgba(139,92,246,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(232,52,74,0.05)  0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: inherit; color: var(--t1); }
input:focus, select:focus, textarea:focus { outline: none; }

/* Premium scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-dark), var(--purple));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============================================================
   GLOBAL SELECTION COLOR
   ============================================================ */
::selection { background: rgba(79,142,247,0.28); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.1rem;
  background: linear-gradient(to bottom, rgba(4,5,13,0.96) 0%, transparent 100%);
  transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}

#main-header.scrolled {
  background: rgba(4,5,13,0.98);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(79,142,247,0.10), 0 8px 32px rgba(0,0,0,0.7);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: 0.06em;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.logo-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 10px rgba(232,52,74,0.9));
}

.logo span.x-accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Header search */
.header-search {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search i {
  position: absolute;
  left: 0.85rem;
  color: var(--t3);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color var(--t-fast);
}

.header-search input {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--t1);
  font-size: 0.83rem;
  padding: 0 1rem 0 2.3rem;
  transition: all var(--t-fast) var(--ease);
}

.header-search input::placeholder { color: var(--t3); }

.header-search input:focus {
  background: rgba(79,142,247,0.07);
  border-color: rgba(79,142,247,0.40);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.10);
}

.header-search:focus-within i { color: var(--blue); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-hd-access {
  height: 32px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--grad-gold);
  color: #1a0e00;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-gold);
  display: flex; align-items: center; gap: 0.35rem;
}

.btn-hd-access:hover { filter: brightness(1.12); transform: scale(1.05); }

.btn-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-glass2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  color: var(--t3);
}

.btn-user-avatar:hover {
  border-color: var(--border-blue);
  color: var(--blue);
  box-shadow: var(--blue-glow);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cat-tabs-wrap {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 90;
  background: rgba(4,5,13,0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(79,142,247,0.08);
  padding: 0 1.1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.cat-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.55rem 0;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  height: 28px;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--t3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cat-tab:hover {
  color: var(--t1);
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.20);
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(79,142,247,0.22), rgba(139,92,246,0.15));
  border-color: rgba(79,142,247,0.50);
  color: #a8c8ff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(79,142,247,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main {
  padding-top: 108px;
  padding-bottom: 90px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-view { display: none; }
.page-view.active { display: block; animation: fadeUp 0.35s var(--ease-out) both; }

/* ============================================================
   HERO BANNER — Cinematic Premium
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 72vw;
  max-height: 560px;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1235 0%, #1a1050 40%, #2a0d1e 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  transition: transform 12s ease;
  filter: brightness(0.70) saturate(1.3);
  display: block;
}

.hero-banner:hover .hero-bg img { transform: scale(1.0); }

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(4,5,13,1.0)   0%,
      rgba(4,5,13,0.85)  25%,
      rgba(4,5,13,0.40)  55%,
      rgba(4,5,13,0.05)  80%,
      transparent        100%),
    linear-gradient(to right,
      rgba(4,5,13,0.70)  0%,
      rgba(4,5,13,0.20)  45%,
      transparent        70%);
}

/* Top shine strip */
.hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(79,142,247,0.04), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.25rem 2rem;
  width: 100%;
  max-width: 580px;
}

/* Chips */
.hero-chips { display: flex; gap: 0.45rem; margin-bottom: 0.8rem; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-red    { background: rgba(232,52,74,0.20);  color: #ff7088; border: 1px solid rgba(232,52,74,0.38); }
.chip-blue   { background: rgba(79,142,247,0.15); color: #90bcff; border: 1px solid rgba(79,142,247,0.32); }
.chip-gold   { background: rgba(240,180,41,0.14); color: #f0c060; border: 1px solid rgba(240,180,41,0.30); }
.chip-purple { background: rgba(139,92,246,0.15); color: #c4a8ff; border: 1px solid rgba(139,92,246,0.30); }
/* legacy alias */
.chip-cyan { background: rgba(79,142,247,0.15); color: #90bcff; border: 1px solid rgba(79,142,247,0.32); }

/* Hero title with gradient */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 0.55rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--t2);
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.hero-meta .star { color: var(--gold); font-weight: 700; }
.hero-meta .dot  { color: var(--t4); font-size: 0.45rem; }

.hero-desc {
  font-size: 0.8rem;
  color: rgba(200,210,240,0.70);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Play button — premium blue gradient */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.6rem;
  border-radius: var(--r-pill);
  background: var(--grad-blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,0.20);
  letter-spacing: 0.02em;
}

.btn-play:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
  box-shadow: 0 0 36px rgba(79,142,247,0.65), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-info-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  color: var(--t1);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.btn-info-sm:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  transform: scale(1.03);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section { padding: 0 1.1rem; margin-bottom: 2.75rem; }

.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  margin-bottom: 1.1rem;
}

.section-hd-left { display: flex; align-items: center; gap: 0.7rem; }

.section-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.sl-cyan, .sl-blue {
  background: rgba(79,142,247,0.16);
  color: #a0c8ff;
  border: 1px solid rgba(79,142,247,0.32);
  box-shadow: 0 0 10px rgba(79,142,247,0.12);
}

.sl-red {
  background: rgba(232,52,74,0.16);
  color: #ff9aaa;
  border: 1px solid rgba(232,52,74,0.32);
  box-shadow: 0 0 10px rgba(232,52,74,0.10);
}

.sl-gold {
  background: rgba(240,180,41,0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(240,180,41,0.30);
  box-shadow: 0 0 10px rgba(240,180,41,0.10);
}

.sl-purple {
  background: rgba(139,92,246,0.14);
  color: #c4a8ff;
  border: 1px solid rgba(139,92,246,0.30);
}

.section-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.02em;
}

.see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
  border: 1px solid rgba(79,142,247,0.22);
  background: rgba(79,142,247,0.06);
}

.see-all-btn:hover {
  background: rgba(79,142,247,0.14);
  border-color: rgba(79,142,247,0.40);
  color: #c0d8ff;
}

/* ============================================================
   HORIZONTAL SCROLL
   ============================================================ */
.h-scroll {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.85rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   POSTER CARD — Premium
   ============================================================ */
.poster-card {
  flex-shrink: 0;
  width: 145px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  scroll-snap-align: start;
  transition: all var(--t-mid) var(--ease);
  position: relative;
}

.poster-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
  z-index: 0;
}

.poster-card:hover {
  transform: translateY(-7px) scale(1.03);
  border-color: rgba(79,142,247,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85), 0 0 0 1px rgba(79,142,247,0.18), var(--shadow-blue);
}

.poster-card:hover::before { opacity: 1; }

.poster-img-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(145deg, #0d1028 0%, #151830 50%, #0c0e20 100%);
}

/* Film icon fallback */
.poster-img-wrap::after {
  content: '\f008';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(79,142,247,0.08);
  pointer-events: none;
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
  display: block;
  position: relative;
  z-index: 1;
}

.poster-card:hover .poster-img-wrap img { transform: scale(1.09); }

/* Rating badge */
.p-rating {
  position: absolute;
  top: 7px; left: 7px;
  z-index: 2;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(240,180,41,0.25);
}

.p-dl {
  position: absolute;
  top: 7px; right: 7px;
  z-index: 2;
  width: 26px; height: 26px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  color: var(--t2);
  opacity: 0;
  transition: opacity var(--t-fast);
  border: 1px solid rgba(255,255,255,0.10);
}

.poster-card:hover .p-dl { opacity: 1; color: var(--blue); }

/* Play overlay */
.p-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-mid) var(--ease);
}

.poster-card:hover .p-play-overlay { background: rgba(4,5,13,0.45); }

.p-play-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.65);
  transition: all var(--t-mid) var(--ease-spring);
  box-shadow: var(--shadow-blue), 0 0 0 6px rgba(79,142,247,0.15);
}

.poster-card:hover .p-play-circle { opacity: 1; transform: scale(1); }

/* Card info */
.p-info { padding: 0.65rem 0.7rem 0.75rem; position: relative; z-index: 1; }

.p-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.3;
  margin-bottom: 0.22rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-sub { font-size: 0.65rem; color: var(--t3); font-weight: 500; }

/* ============================================================
   TRENDING LIST CARD — Premium
   ============================================================ */
.list-section { padding: 0; }

.list-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}

.list-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-blue);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.list-card:first-child { border-top: 1px solid rgba(255,255,255,0.04); }
.list-card:last-child  { border-bottom: none; }
.list-card:hover { background: rgba(79,142,247,0.05); padding-left: 1.35rem; }
.list-card:hover::before { opacity: 1; }

/* Rank number */
.lc-rank {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  min-width: 38px;
  line-height: 1;
  padding-top: 4px;
  letter-spacing: -0.06em;
  text-align: center;
  flex-shrink: 0;
}

.lc-rank.top3 {
  background: linear-gradient(160deg, #ffd166 0%, #ff8c42 45%, #e8344a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem;
}

/* Poster thumbnail */
.lc-poster {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 100px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(79,142,247,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.lc-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.lc-rating {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.90), transparent);
  color: var(--gold-bright);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 8px 5px 4px;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
}

/* Card body */
.lc-body { flex: 1; min-width: 0; }

.lc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.3rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lc-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.lc-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(79,142,247,0.08);
  color: #7aabf0;
  border: 1px solid rgba(79,142,247,0.16);
}

.lc-meta { font-size: 0.65rem; color: var(--t3); margin-bottom: 0.4rem; }

.lc-desc {
  font-size: 0.73rem;
  color: var(--t2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 30px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  font-size: 0.71rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(79,142,247,0.16), rgba(139,92,246,0.10));
  color: #a8ccff;
  border: 1px solid rgba(79,142,247,0.30);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.02em;
}

.lc-btn:hover {
  background: linear-gradient(135deg, rgba(79,142,247,0.28), rgba(139,92,246,0.18));
  box-shadow: 0 0 18px rgba(79,142,247,0.28);
  color: #fff;
  border-color: rgba(79,142,247,0.50);
}

/* ============================================================
   SEARCH RESULTS GRID
   ============================================================ */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 1rem;
  padding: 0 1.1rem;
}

/* ============================================================
   DOWNLOADS PAGE
   ============================================================ */
.downloads-page { padding: 0 1.1rem; }

.dl-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.dl-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.dl-empty-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.dl-empty-sub { font-size: 0.8rem; color: var(--t2); line-height: 1.6; max-width: 270px; margin: 0 auto; }

/* ============================================================
   ACCOUNT / PROFILE PAGE
   ============================================================ */
.account-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.acct-avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,142,247,0.22), rgba(139,92,246,0.22));
  border: 2px solid rgba(79,142,247,0.40);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(79,142,247,0.15);
}

.acct-name { font-size: 1rem; font-weight: 700; color: var(--t1); margin-bottom: 0.25rem; }
.acct-sub  { font-size: 0.73rem; color: var(--t2); }

.acct-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

.acct-status.active  { background: rgba(6,214,160,0.10); color: var(--teal);   border: 1px solid rgba(6,214,160,0.28); }
.acct-status.expired { background: rgba(232,52,74,0.10); color: #ff7088;        border: 1px solid rgba(232,52,74,0.26); }

.acct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0 1.1rem;
  margin-bottom: 1.5rem;
}

.acct-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem 0.5rem;
  text-align: center;
  background-image: var(--grad-card);
}

.acct-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.acct-stat-label { font-size: 0.65rem; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }

.acct-menu { padding: 0 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }

.acct-menu-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background-image: var(--grad-card);
}

.acct-menu-item:hover {
  background: var(--bg-elevated);
  border-color: rgba(79,142,247,0.20);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.ami-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.ami-icon.red    { background: rgba(232,52,74,0.14);  color: #ff7088;  border: 1px solid rgba(232,52,74,0.22); }
.ami-icon.cyan,
.ami-icon.blue   { background: rgba(79,142,247,0.12); color: #90bcff;  border: 1px solid rgba(79,142,247,0.22); }
.ami-icon.gold   { background: rgba(240,180,41,0.10); color: var(--gold-bright); border: 1px solid rgba(240,180,41,0.20); }
.ami-icon.gray   { background: rgba(255,255,255,0.05); color: var(--t2); border: 1px solid var(--border); }
.ami-icon.purple { background: rgba(139,92,246,0.12); color: #c4a8ff; border: 1px solid rgba(139,92,246,0.22); }

.ami-text  { flex: 1; min-width: 0; }
.ami-title { font-size: 0.86rem; font-weight: 600; color: var(--t1); }
.ami-sub   { font-size: 0.7rem; color: var(--t2); margin-top: 0.12rem; }
.ami-arrow { color: var(--t3); font-size: 0.72rem; flex-shrink: 0; }

/* ============================================================
   BOTTOM NAVIGATION — Premium
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: 66px;
  background: rgba(4,5,13,0.98);
  backdrop-filter: blur(28px) saturate(1.8);
  border-top: 1px solid rgba(79,142,247,0.09);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.65), 0 -1px 0 rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.25rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  flex: 1;
  height: 100%;
  justify-content: center;
  color: var(--t3);
  font-size: 0.63rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  letter-spacing: 0.02em;
}

.bn-item i { font-size: 1.18rem; transition: transform var(--t-fast) var(--ease-spring); }

.bn-item:hover { color: rgba(79,142,247,0.7); }
.bn-item:hover i { transform: translateY(-3px); }

.bn-item.active { color: #90bcff; }
.bn-item.active i {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(79,142,247,0.8));
}

.bn-item.active::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 10px rgba(79,142,247,0.7);
}

/* Center crown button — gold premium with pulse */
.bn-center-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0b429 0%, #ffd166 50%, #e8956a 100%);
  color: #2a1500;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 0.15rem;
  box-shadow: 0 0 20px rgba(240,180,41,0.50), inset 0 1px 0 rgba(255,255,255,0.40);
  transition: all var(--t-fast) var(--ease-spring);
  border: 2px solid rgba(255,210,100,0.40);
  animation: crown-pulse 3s ease-in-out infinite;
}

.bn-center-btn:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 0 36px rgba(240,180,41,0.75), 0 8px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: none;
}

.bn-center-btn:active { transform: scale(0.94); }

@keyframes crown-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(240,180,41,0.40), inset 0 1px 0 rgba(255,255,255,0.35); }
  50%       { box-shadow: 0 0 28px rgba(240,180,41,0.65), inset 0 1px 0 rgba(255,255,255,0.45); }
}

/* ============================================================
   OVERLAY & MODAL SHEET
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background var(--t-mid) var(--ease);
}

.overlay.active {
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

/* ── CENTER VARIANT — for auth modal ── */
.overlay--center {
  align-items: center;
  padding: 1rem;
}

.overlay--center .modal-sheet {
  border-radius: var(--r-2xl);
  border-bottom: 1px solid rgba(79,142,247,0.12);
  transform: scale(0.88) translateY(20px);
  opacity: 0;
  transition:
    transform var(--t-slow) var(--ease-spring),
    opacity var(--t-mid) var(--ease);
  max-height: 90dvh;
}

.overlay--center.active .modal-sheet {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Hide the swipe handle when centered */
.overlay--center .sheet-handle {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-modal);
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(79,142,247,0.12);
  border-bottom: none;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-out);
  overflow: hidden;
  max-height: 92dvh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Top gradient accent */
  background-image: linear-gradient(to bottom, rgba(79,142,247,0.04) 0%, transparent 60px);
}

.modal-sheet::-webkit-scrollbar { display: none; }
.overlay.active .modal-sheet { transform: translateY(0); }

.sheet-handle {
  width: 38px; height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  margin: 0.85rem auto 0;
}

.modal-body { padding: 1.25rem 1.5rem 2.5rem; position: relative; }

/* ============================================================
   WELCOME BANNER — Shown after successful login
   ============================================================ */
#welcome-banner {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#welcome-banner.show {
  display: flex;
  pointer-events: all;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,5,13,0.85);
  backdrop-filter: blur(20px);
  animation: wbFadeIn 0.35s var(--ease) both;
}

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

.welcome-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg,
    rgba(12,14,32,0.98) 0%,
    rgba(16,18,42,0.98) 100%);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: var(--r-2xl);
  padding: 2.5rem 2rem 2rem;
  max-width: 340px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.95),
    0 0 0 1px rgba(139,92,246,0.10),
    0 0 60px rgba(79,142,247,0.08);
  animation: wbPop 0.50s var(--ease-spring) 0.15s both;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--blue),
    var(--purple),
    transparent);
  border-radius: var(--r-pill);
}

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

.wc-emoji {
  font-size: 3.8rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: wbBounce 0.6s var(--ease-spring) 0.35s both;
  filter: drop-shadow(0 0 20px rgba(79,142,247,0.5));
}

@keyframes wbBounce {
  from { transform: scale(0) rotate(-15deg); }
  to   { transform: scale(1) rotate(0deg); }
}

.wc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  animation: wbSlide 0.4s var(--ease-out) 0.45s both;
}

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

.wc-sub {
  font-size: 0.83rem;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  animation: wbSlide 0.4s var(--ease-out) 0.55s both;
}

.wc-name {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.wc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.8rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  box-shadow: var(--shadow-blue);
  animation: wbSlide 0.4s var(--ease-out) 0.65s both;
  letter-spacing: 0.03em;
}

.wc-btn:hover {
  filter: brightness(1.18);
  transform: scale(1.05);
  box-shadow: 0 0 36px rgba(79,142,247,0.65);
}

.wc-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wc-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: sparkleFloat linear infinite;
  opacity: 0;
}

@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 1; transform: translateY(-20px) scale(1); }
  80%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

.modal-close-btn {
  position: absolute;
  top: 0; right: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--t2);
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid var(--border);
}

.modal-close-btn:hover {
  background: rgba(232,52,74,0.14);
  color: #ff7088;
  border-color: var(--border-red);
}

/* Modal icon wraps */
.modal-icon-wrap {
  width: 58px; height: 58px;
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1rem;
}

.modal-icon-wrap.cyan,
.modal-icon-wrap.blue {
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  box-shadow: 0 0 24px rgba(79,142,247,0.14);
}

.modal-icon-wrap.red {
  background: rgba(232,52,74,0.10);
  border: 1px solid rgba(232,52,74,0.24);
  box-shadow: 0 0 24px rgba(232,52,74,0.10);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.modal-subtitle, .modal-desc {
  font-size: 0.8rem;
  color: var(--t2);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 0.42rem;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  height: 46px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 0.86rem;
  padding: 0 1rem;
  transition: all var(--t-fast) var(--ease);
}

.form-input:focus {
  background: rgba(79,142,247,0.06);
  border-color: rgba(79,142,247,0.42);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.12);
}

.form-input::placeholder { color: var(--t3); }
select.form-input { cursor: pointer; }
textarea.form-input { height: auto; padding: 0.75rem 1rem; resize: vertical; min-height: 80px; }

.form-hint  { display: block; font-size: 0.7rem; color: var(--t3); margin-top: 0.35rem; }
.form-error {
  display: none;
  font-size: 0.73rem;
  color: #ff7088;
  margin-top: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: rgba(232,52,74,0.07);
  border: 1px solid rgba(232,52,74,0.20);
  border-radius: var(--r-sm);
}

/* ============================================================
   BUTTONS — Premium
   ============================================================ */
.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--grad-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.03em;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover  { filter: brightness(1.14); transform: scale(1.02); box-shadow: 0 0 36px rgba(79,142,247,0.60), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-danger {
  width: 100%;
  height: 50px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--red) 0%, #ff5569 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.03em;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-danger:hover  { filter: brightness(1.12); transform: scale(1.02); }
.btn-danger:active { transform: scale(0.98); }
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-ghost {
  width: 100%;
  height: 44px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--t2);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: flex; align-items: center; justify-content: center;
  gap: 0.45rem;
}
.btn-ghost:hover { background: var(--bg-glass2); color: var(--t1); border-color: var(--border-blue); }

/* Admin-use buttons */
.btn-watch {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 36px; padding: 0 1rem;
  border-radius: var(--r-sm);
  background: var(--bg-glass2);
  color: var(--t1);
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.btn-watch:hover { background: var(--bg-glass3); border-color: var(--border-blue); color: #90bcff; }

.btn-premium {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 36px; padding: 0 1.1rem;
  border-radius: var(--r-sm);
  background: var(--grad-gold);
  color: #1a0d00;
  font-size: 0.8rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-gold);
}
.btn-premium:hover { filter: brightness(1.12); }

/* ============================================================
   TICKET PRICE BOX — Premium Gold
   ============================================================ */
.ticket-price-box {
  background: linear-gradient(135deg, rgba(240,180,41,0.10) 0%, rgba(139,92,246,0.06) 100%);
  border: 1px solid rgba(240,180,41,0.30);
  border-radius: var(--r-xl);
  padding: 1.35rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ticket-price-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.18), transparent 70%);
  pointer-events: none;
}

.ticket-price-box::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 70%);
  pointer-events: none;
}

.tp-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}

.tp-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tp-currency { font-size: 0.76rem; font-weight: 700; color: var(--t2); margin-top: 0.2rem; }

.tp-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin-top: 0.65rem;
  background: rgba(240,180,41,0.10);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(240,180,41,0.22);
}

/* ============================================================
   PREMIUM PAYMENT MODAL — Enhanced Animations
   ============================================================ */

/* Animated Crown Icon */
.premium-crown-wrap {
  position: relative;
  animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-5deg); }
}

.premium-crown-icon {
  font-size: 2rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 24px rgba(240,180,41,0.7));
  animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(240,180,41,0.5)); }
  50% { filter: drop-shadow(0 0 32px rgba(240,180,41,0.9)); }
}

/* Crown Sparkles */
.crown-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  animation: sparkleFloat 2.5s ease-in-out infinite;
}

.crown-sparkle-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.crown-sparkle-2 {
  top: 15%;
  right: 25%;
  animation-delay: 0.8s;
}

.crown-sparkle-3 {
  bottom: 20%;
  left: 50%;
  animation-delay: 1.6s;
}

@keyframes sparkleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 1; transform: translateY(-15px) scale(1); }
  80% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-40px) scale(0.3); }
}

/* Premium Title with Gradient */
.premium-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.premium-gradient {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 0.02em;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Premium Features Grid */
.premium-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-xl);
  border: 1px solid rgba(79,142,247,0.08);
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--t-fast) var(--ease);
  animation: slideInUp 0.5s ease-out backwards;
}

.pf-item:nth-child(1) { animation-delay: 0.1s; }
.pf-item:nth-child(2) { animation-delay: 0.2s; }
.pf-item:nth-child(3) { animation-delay: 0.3s; }
.pf-item:nth-child(4) { animation-delay: 0.4s; }

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

.pf-item:hover {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.20);
  transform: translateY(-2px);
}

.pf-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(79,142,247,0.4));
}

.pf-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}

.pf-text strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--t1);
}

.pf-text span {
  font-size: 0.68rem;
  color: var(--t3);
}

/* Enhanced Price Card */
.premium-price-card {
  position: relative;
  background: linear-gradient(135deg, rgba(240,180,41,0.15) 0%, rgba(139,92,246,0.10) 100%);
  border: 2px solid rgba(240,180,41,0.35);
  box-shadow: 0 0 40px rgba(240,180,41,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: priceCardPulse 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes priceCardPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(240,180,41,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
  }
  50% {
    box-shadow: 0 0 50px rgba(240,180,41,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

.price-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240,180,41,0.12), transparent 50%);
  animation: glowRotate 8s linear infinite;
  pointer-events: none;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tp-amount-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.tp-currency-pre {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-bright);
  opacity: 0.7;
}

.tp-validity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--blue);
  margin-top: 0.5rem;
  padding: 3px 12px;
  background: rgba(79,142,247,0.12);
  border-radius: var(--r-pill);
  border: 1px solid rgba(79,142,247,0.25);
}

/* Premium Input */
.premium-input {
  border: 2px solid rgba(79,142,247,0.20);
  transition: all var(--t-fast);
}

.premium-input:focus {
  border-color: rgba(79,142,247,0.60);
  box-shadow: 0 0 0 4px rgba(79,142,247,0.15), 0 0 24px rgba(79,142,247,0.12);
  transform: scale(1.01);
}

.premium-label {
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Payment Methods Row */
.payment-methods-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  color: var(--t2);
  transition: all var(--t-fast);
}

.pm-badge:hover {
  background: rgba(79,142,247,0.10);
  border-color: rgba(79,142,247,0.25);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Enhanced Premium Pay Button */
.btn-premium-pay {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0b429 0%, #ffd166 50%, #ff6b6b 100%);
  background-size: 200% 100%;
  border: none;
  height: 54px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px rgba(240,180,41,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(240,180,41,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
  }
  50% {
    box-shadow: 0 10px 40px rgba(240,180,41,0.55), inset 0 1px 0 rgba(255,255,255,0.30);
  }
}

.btn-premium-pay:hover {
  background-position: 100% 0;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 48px rgba(240,180,41,0.60), inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn-premium-pay:active {
  transform: scale(0.98);
}

/* Shine Effect on Button */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 100%; }
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--t3);
}

.trust-item i {
  color: var(--teal);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .premium-features-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
}

/* ============================================================
   LOW POWER MODE (Battery Optimization)
   ============================================================ */
body.low-power-mode * {
  animation-duration: 0.01s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.1s !important;
}

body.low-power-mode .skeleton,
body.low-power-mode .premium-crown-icon,
body.low-power-mode .btn-shine {
  animation: none !important;
}

/* ============================================================
   PAYMENT STEPS
   ============================================================ */
.pay-step-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; text-align: left; }

.pay-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-md);
  position: relative;
  transition: background var(--t-fast);
}

.pay-step-item.active {
  background: rgba(79,142,247,0.07);
  border: 1px solid rgba(79,142,247,0.18);
  margin: 0.2rem 0;
}

.pay-step-item.done { opacity: 0.60; }

.step-bullet {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  flex-shrink: 0;
  color: var(--t2);
}

.pay-step-item.done   .step-bullet { background: rgba(6,214,160,0.12); border-color: rgba(6,214,160,0.35); color: var(--teal); }
.pay-step-item.active .step-bullet { background: rgba(79,142,247,0.16); border-color: rgba(79,142,247,0.50); color: var(--blue); }

.step-txt { flex: 1; font-size: 0.8rem; line-height: 1.5; color: var(--t2); }
.step-txt strong { display: block; color: var(--t1); font-weight: 600; font-size: 0.84rem; margin-bottom: 0.12rem; }

/* ============================================================
   CINEMA PLAYER
   ============================================================ */
.cinema-ov {
  align-items: center;
  background: transparent !important;
  backdrop-filter: none !important;
}

.cinema-ov.active {
  background: rgba(0,0,0,0.97) !important;
  backdrop-filter: blur(16px) !important;
}

.cinema-sheet {
  width: 100%;
  max-width: 820px;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  transform: scale(0.88) translateY(40px);
  opacity: 0;
  transition: all var(--t-slow) var(--ease-out);
}

.cinema-ov.active .cinema-sheet { transform: scale(1) translateY(0); opacity: 1; }

.video-player-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.video-player-wrap video { width: 100%; height: 100%; object-fit: contain; }

.video-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  color: var(--t2); font-size: 0.82rem;
}

.cinema-footer {
  background: rgba(6,8,18,0.98);
  border-top: 1px solid rgba(79,142,247,0.10);
  padding: 1rem 1.25rem;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.cinema-title-row { margin-bottom: 0.8rem; }
.cinema-film-title { font-size: 1rem; font-weight: 700; color: var(--t1); margin-bottom: 0.2rem; }
.cinema-film-meta  { font-size: 0.73rem; color: var(--t2); }

.cinema-action-row { display: flex; gap: 0.7rem; }

.btn-dl-cinema {
  flex: 1; height: 40px;
  border-radius: var(--r-md);
  background: rgba(79,142,247,0.10);
  color: #90bcff;
  border: 1px solid rgba(79,142,247,0.28);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.btn-dl-cinema:hover { background: rgba(79,142,247,0.20); box-shadow: var(--shadow-blue); }

.btn-close-cinema {
  height: 40px; padding: 0 1.2rem;
  border-radius: var(--r-md);
  background: rgba(232,52,74,0.10);
  color: #ff7088;
  border: 1px solid rgba(232,52,74,0.26);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 0.35rem;
}
.btn-close-cinema:hover { background: rgba(232,52,74,0.20); }

/* ============================================================
   TOAST NOTIFICATIONS — Premium
   ============================================================ */
.toast-wrap {
  position: fixed;
  top: 68px; right: 1rem;
  z-index: 9999;
  display: flex; flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
  max-width: 300px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(12,14,30,0.97);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.72rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  transform: translateX(110%);
  opacity: 0;
  transition: all var(--t-mid) var(--ease-out);
  pointer-events: all;
  font-size: 0.8rem;
  color: var(--t1);
}

.toast.show { transform: translateX(0); opacity: 1; }

.toast.success { border-left: 3px solid var(--teal);        border-left-color: var(--teal); }
.toast.error   { border-left: 3px solid var(--red-bright);  }
.toast.info    { border-left: 3px solid var(--blue);        }

.toast-icon { font-size: 1.05rem; flex-shrink: 0; }
.toast-msg  { line-height: 1.45; }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(79,142,247,0.12);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  color: var(--t3);
  font-size: 0.84rem;
  text-align: center;
}
.empty-state i { font-size: 2.5rem; opacity: 0.35; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(79,142,247,0.07) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--r-sm);
}

.skeleton-card { pointer-events: none; opacity: 0.7; }

/* ============================================================
   ADMIN — Extra styles
   ============================================================ */
.admin-view {
  background: var(--bg-root);
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(4,5,13,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(79,142,247,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.6);
}

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* Admin tabs */
.admin-tabs {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.45rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.admin-tab-btn {
  flex: 1; min-width: 120px; height: 38px;
  border-radius: var(--r-lg);
  font-size: 0.8rem; font-weight: 600;
  color: var(--t3);
  background: transparent; border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

.admin-tab-btn:hover { background: var(--bg-glass2); color: var(--t1); }

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(79,142,247,0.18), rgba(139,92,246,0.12));
  color: #90bcff;
  border: 1px solid rgba(79,142,247,0.30);
  box-shadow: 0 2px 12px rgba(79,142,247,0.12);
}

/* Admin section card */
.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--r-2xl);
  margin-bottom: 1.75rem;
  background-image: var(--grad-card);
}

.admin-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--t1);
  display: flex; align-items: center; gap: 0.5rem;
  border-left: 3px solid var(--blue);
  padding-left: 0.65rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.3rem;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background-image: var(--grad-card);
}

.stat-card:hover { border-color: rgba(79,142,247,0.22); box-shadow: var(--shadow-md); }

.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.stat-card.s-cyan .stat-icon,
.stat-card.s-blue .stat-icon  { background: rgba(79,142,247,0.12); color: var(--blue); border: 1px solid rgba(79,142,247,0.20); }
.stat-card.s-green .stat-icon { background: rgba(6,214,160,0.10);  color: var(--teal); border: 1px solid rgba(6,214,160,0.20); }
.stat-card.s-gold  .stat-icon { background: rgba(240,180,41,0.10); color: var(--gold); border: 1px solid rgba(240,180,41,0.20); }
.stat-card.s-red   .stat-icon { background: rgba(232,52,74,0.10);  color: #ff7088;     border: 1px solid rgba(232,52,74,0.20); }

.stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; color: var(--t3); }

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  margin-top: 0.45rem; line-height: 1;
}

.stat-card.s-cyan .stat-val,
.stat-card.s-blue .stat-val  {
  background: var(--grad-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-card.s-green .stat-val { color: var(--teal); }
.stat-card.s-gold  .stat-val { color: var(--gold-bright); }
.stat-card.s-red   .stat-val { color: #ff7088; }

/* Admin table */
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
th, td { padding: 0.72rem 0.9rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.04); }
th { color: var(--t3); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
td { color: var(--t2); }
tr:hover td { color: var(--t1); background: rgba(79,142,247,0.03); }

/* Admin body */
.admin-body { padding: 78px 4% 5% 4%; }
@media(min-width:900px){ .admin-body{ padding: 78px 5% 5% 5%; } }

/* Form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* Admin grid */
.admin-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; }
@media(max-width:900px){ .admin-grid { grid-template-columns: 1fr; } }

/* Gateway cards */
.gw-card {
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  padding: 1.35rem;
  position: relative; overflow: hidden;
  transition: border-color var(--t-fast);
}

.gw-card.gw-active { border-color: rgba(6,214,160,0.28); box-shadow: 0 0 24px rgba(6,214,160,0.05); }
.gw-card.gw-down   { border-color: rgba(232,52,74,0.22); }

.gw-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.gw-bar.ok       { background: linear-gradient(90deg, var(--teal), #00c896); }
.gw-bar.degraded { background: linear-gradient(90deg, var(--gold), #ff9900); }
.gw-bar.down     { background: linear-gradient(90deg, var(--red), #cc1022); }
.gw-bar.unknown  { background: var(--border); }

.gw-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--t3); flex-shrink: 0; }
.gw-dot.ok       { background: var(--teal); box-shadow: 0 0 8px rgba(6,214,160,0.6); animation: pulse-g 2s infinite; }
.gw-dot.degraded { background: var(--gold); box-shadow: 0 0 8px rgba(240,180,41,0.5); animation: pulse-y 2s infinite; }
.gw-dot.down     { background: var(--red);  box-shadow: 0 0 8px rgba(232,52,74,0.6); animation: pulse-r 1.5s infinite; }

.gw-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0; }
.gw-stat-box  { background: rgba(0,0,0,0.28); border-radius: var(--r-md); padding: 0.65rem 0.5rem; text-align: center; border: 1px solid rgba(255,255,255,0.04); }
.gw-stat-box .val { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.gw-stat-box .lbl { font-size: 0.62rem; color: var(--t3); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Event log */
.event-log-wrap { max-height: 260px; overflow-y: auto; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--r-md); }

.event-entry {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 0.65rem; align-items: start;
  padding: 0.58rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
}
.event-entry:last-child { border-bottom: none; }

.ev-badge {
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; white-space: nowrap;
}
.ev-badge.success     { background: rgba(6,214,160,0.13);  color: var(--teal); }
.ev-badge.fail        { background: rgba(232,52,74,0.13);  color: #ff7088; }
.ev-badge.failover    { background: rgba(240,180,41,0.13); color: var(--gold-bright); }
.ev-badge.recovery    { background: rgba(79,142,247,0.13); color: #90bcff; }
.ev-badge.health_check{ background: rgba(139,92,246,0.10); color: #c4a8ff; }

.ev-time { font-size: 0.66rem; color: var(--t3); white-space: nowrap; padding-top: 1px; }
.ev-msg  { color: var(--t2); }

/* Transactions */
.tx-status { display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:var(--r-pill);font-size:0.68rem;font-weight:700; }
.tx-status.approved { background:rgba(6,214,160,0.12);  color:var(--teal);        border:1px solid rgba(6,214,160,0.25); }
.tx-status.pending  { background:rgba(240,180,41,0.12); color:var(--gold-bright); border:1px solid rgba(240,180,41,0.25); }
.tx-status.rejected { background:rgba(232,52,74,0.10);  color:#ff7088;            border:1px solid rgba(232,52,74,0.22); }

/* Movie thumb */
.movie-thumb { width:38px;height:52px;border-radius:var(--r-sm);object-fit:cover;background:var(--bg-elevated);display:block;border:1px solid var(--border); }

/* R2 progress */
.r2-progress-track { background:rgba(255,255,255,0.07);border-radius:var(--r-pill);height:7px;overflow:hidden; }
.r2-progress-fill  { height:100%;background:var(--grad-blue);border-radius:var(--r-pill);width:0%;transition:width 0.3s; }

/* Login card */
.login-card {
  max-width:380px;margin:100px auto;
  background:var(--bg-card);
  border:1px solid rgba(79,142,247,0.14);
  border-radius:var(--r-2xl);
  padding:2.5rem 2rem;text-align:center;
  position:relative;overflow:hidden;
  background-image:linear-gradient(145deg,rgba(79,142,247,0.06) 0%,rgba(139,92,246,0.04) 100%);
  box-shadow: var(--shadow-blue);
}

.login-card::before {
  content:'';position:absolute;top:-70px;left:50%;transform:translateX(-50%);
  width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(79,142,247,0.10),transparent 70%);
}

.login-icon { font-size:3rem;margin-bottom:1rem;filter:drop-shadow(0 0 18px rgba(79,142,247,0.5)); }

.pin-input {
  text-align:center;font-size:1.8rem;letter-spacing:8px;
  font-family:'Orbitron',sans-serif;font-weight:700;
}

/* Admin toast fallback */
#admin-toast {
  position:fixed;bottom:1.5rem;left:50%;
  transform:translateX(-50%) translateY(80px);
  background:var(--bg-card);
  border:1px solid var(--border);
  color:var(--t1);
  padding:0.72rem 1.5rem;border-radius:var(--r-pill);
  font-size:0.86rem;z-index:9999;
  box-shadow:var(--shadow-lg);
  transition:transform 0.3s var(--ease);
  pointer-events:none;white-space:nowrap;opacity:0;
}
#admin-toast.show { transform:translateX(-50%) translateY(0); opacity:1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
@keyframes fadeUp  { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform: none; } }
@keyframes popIn   { from { opacity:0; transform: scale(0.85); }     to { opacity:1; transform: scale(1); } }
@keyframes shake   { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
@keyframes glow-pulse { 0%,100%{ box-shadow: 0 0 12px rgba(79,142,247,0.3); } 50%{ box-shadow: 0 0 28px rgba(79,142,247,0.65); } }
@keyframes pulse-g { 0%,100%{box-shadow:0 0 0 0 rgba(6,214,160,0.4)}  50%{box-shadow:0 0 0 6px rgba(6,214,160,0)} }
@keyframes pulse-y { 0%,100%{box-shadow:0 0 0 0 rgba(240,180,41,0.4)} 50%{box-shadow:0 0 0 6px rgba(240,180,41,0)} }
@keyframes pulse-r { 0%,100%{box-shadow:0 0 0 0 rgba(232,52,74,0.4)}  50%{box-shadow:0 0 0 6px rgba(232,52,74,0)} }

/* ============================================================
   REAL-TIME FEATURES — World Class Premium
   ============================================================ */

/* Live Activity Toast (like Instagram/TikTok notifications) */
.live-activity-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  background: rgba(12,14,30,0.98);
  backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(79,142,247,0.20);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 48px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
  min-width: 240px;
  max-width: 320px;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.live-activity-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  animation: toastBounce 0.6s var(--ease-spring);
}

@keyframes toastBounce {
  0% { transform: translateX(-50%) translateY(-120%); }
  50% { transform: translateX(-50%) translateY(5px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.lat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 2px solid rgba(79,142,247,0.30);
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,142,247,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(79,142,247,0); }
}

.lat-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lat-text strong {
  color: var(--t1);
  font-weight: 700;
}

.lat-text span {
  color: var(--t3);
  font-size: 0.74rem;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,6,14,0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.pt-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(79,142,247,0.15);
  border-top-color: var(--blue);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spinFast 0.8s linear infinite;
}

@keyframes spinFast {
  to { transform: rotate(360deg); }
}

.pt-text {
  font-size: 0.9rem;
  color: var(--t2);
  font-weight: 600;
  letter-spacing: 0.05em;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Connection Status Indicator (Top-right) */
.connection-status {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 12px;
  background: rgba(6,214,160,0.12);
  border: 1px solid rgba(6,214,160,0.25);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(6,214,160,0.15);
  transition: all var(--t-fast);
}

.connection-status.offline {
  background: rgba(232,52,74,0.12);
  border-color: rgba(232,52,74,0.25);
  color: #ff7088;
  box-shadow: 0 4px 16px rgba(232,52,74,0.15);
}

.connection-status.offline .cs-dot {
  background: #ff7088;
  animation: none;
}

.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6,214,160,0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(6,214,160,0);
  }
}

.cs-text {
  user-select: none;
}

/* Real-time Counter Animation */
@keyframes countUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.stat-val.updating {
  animation: countUp 0.4s var(--ease-out);
}

/* Live Indicator Badge (for live stats) */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  background: rgba(232,52,74,0.12);
  border: 1px solid rgba(232,52,74,0.25);
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232,52,74,0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232,52,74,0);
  }
}

.live-badge::before {
  content: '●';
  color: var(--red-bright);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Smooth Page Transitions */
.page-view {
  animation: pageSlideIn 0.4s var(--ease-out);
}

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

/* Micro-interaction: Card Lift on Hover */
.poster-card,
.list-card,
.stat-card,
.admin-section {
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}

.poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(79,142,247,0.15);
}

.list-card:hover {
  transform: translateX(8px) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79,142,247,0.12);
}

/* Skeleton Shimmer Enhancement */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(79,142,247,0.10) 50%,
    rgba(139,92,246,0.08) 75%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 400% 100%;
  animation: shimmerPremium 2s ease-in-out infinite;
}

@keyframes shimmerPremium {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Button Press Micro-interaction */
.btn-primary:active,
.btn-danger:active,
.btn-premium-pay:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(79,142,247,0.25);
}

/* Ripple Effect on Clicks */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(79,142,247,0.35);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Loading Dots Animation (for "Loading..." text) */
@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.loading-text::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Hero Banner Parallax Effect Enhancement */
.hero-banner {
  transition: transform 0.3s ease-out;
}

.hero-banner.parallax {
  transform: translateY(calc(var(--scroll-y) * 0.5px));
}

/* Real-time Notification Badge on Icons */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--red), #ff5569);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--bg-root);
  animation: badgePop 0.4s var(--ease-spring);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Network Activity Indicator (subtle corner) */
.network-activity {
  position: fixed;
  bottom: 80px;
  right: 12px;
  z-index: 150;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 12px var(--blue);
}

.network-activity.active {
  opacity: 1;
  animation: networkPulse 0.8s ease-in-out;
}

@keyframes networkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.6; }
}

/* Enhanced Focus States (Accessibility + Premium feel) */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(79,142,247,0.50);
  outline-offset: 3px;
  transition: outline-offset 0.2s var(--ease);
}

button:focus-visible {
  outline-offset: 4px;
}

/* Smooth Opacity Transitions for All Interactive Elements */
button,
a,
.poster-card,
.bn-item,
.cat-tab,
.modal-close-btn {
  transition:
    transform var(--t-fast) var(--ease),
    opacity var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
}

/* Premium Glassmorphism Enhancements */
.modal-sheet,
.bottom-nav,
#main-header {
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
}

/* iOS-style Bounce Scroll (webkit only) */
body {
  -webkit-overflow-scrolling: touch;
}

/* Prevent text selection on interactive elements */
button,
.bn-item,
.cat-tab,
.poster-card,
.list-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Real-time Activity Feed Styles */
.activity-feed-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 0.5rem;
  animation: feedSlideIn 0.4s var(--ease-out);
  transition: all var(--t-fast);
}

.activity-feed-item:hover {
  background: rgba(79,142,247,0.06);
  border-color: rgba(79,142,247,0.15);
  transform: translateX(4px);
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.afi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 2px solid rgba(79,142,247,0.20);
}

.afi-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--t2);
  line-height: 1.5;
}

.afi-time {
  font-size: 0.68rem;
  color: var(--t3);
  white-space: nowrap;
}

/* Premium Loading States */
.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  animation: shimmerWave 2s infinite;
}

@keyframes shimmerWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.text-blue   { color: var(--blue)   !important; }
.text-cyan   { color: var(--blue)   !important; }
.text-gold   { color: var(--gold-bright) !important; }
.text-red    { color: var(--red-bright)  !important; }
.text-teal   { color: var(--teal)   !important; }
.text-purple { color: var(--purple) !important; }
.text-muted  { color: var(--t2)     !important; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
}

.badge-ok       { background: rgba(6,214,160,0.12);  color: var(--teal);        border: 1px solid rgba(6,214,160,0.25); }
.badge-pending  { background: rgba(240,180,41,0.12); color: var(--gold-bright); border: 1px solid rgba(240,180,41,0.25); }
.badge-rejected { background: rgba(232,52,74,0.10);  color: #ff7088;            border: 1px solid rgba(232,52,74,0.22); }
.badge-draft    { background: rgba(255,255,255,0.05); color: var(--t2);         border: 1px solid var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .hero-banner { height: 52vw; }
  .search-results-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .poster-card { width: 148px; }
}

@media (min-width: 900px) {
  #main-header { padding: 0 2rem; height: 62px; }
  .cat-tabs-wrap { padding: 0 2rem; top: 62px; }
  main { padding-top: 114px; }
  .section { padding: 0 2rem; }
  .section-hd { padding: 0 2rem; }
  .list-card { padding: 1rem 2rem; }
  .list-card:hover { padding-left: 2.4rem; }
  .hero-content { padding: 2rem 2.5rem 2.5rem; }
  .hero-banner { height: 44vw; max-height: 580px; }
  .poster-card { width: 155px; }
  .search-results-grid { padding: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .downloads-page { padding: 0 2rem; }
  .acct-stats { padding: 0 2rem; }
  .acct-menu { padding: 0 2rem; }
}

@media (min-width: 1200px) {
  .hero-banner { max-height: 650px; }
  .poster-card { width: 165px; }
}

/* ============================================================
   EXTRA PREMIUM POLISH
   ============================================================ */

/* Glowing active indicator line on sections */
.section-hd-left::before {
  content: '';
  display: inline-block;
  width: 3px; height: 16px;
  border-radius: var(--r-pill);
  background: var(--grad-blue);
  flex-shrink: 0;
}

/* Gradient border on focused inputs */
.form-input:focus {
  background: rgba(79,142,247,0.06);
  border-color: rgba(79,142,247,0.45);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.12), 0 0 16px rgba(79,142,247,0.08);
}

/* Card hover state: subtle inner glow top */
.stat-card::after, .admin-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.25), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
.stat-card:hover::after, .admin-section:hover::after { opacity: 1; }

/* ============================================================
   PREMIUM FINAL TOUCHES — Polish v2
   ============================================================ */

/* Hero banner — ensure image fills properly */
.hero-banner { background: linear-gradient(135deg,#060918,#140820,#1a0a12); }

/* Stronger vignette overlay for better text legibility */
.hero-vignette {
  background:
    linear-gradient(to top,
      rgba(4,5,13,1.00)  0%,
      rgba(4,5,13,0.92)  18%,
      rgba(4,5,13,0.55)  45%,
      rgba(4,5,13,0.08)  72%,
      transparent        100%),
    linear-gradient(to right,
      rgba(4,5,13,0.80)  0%,
      rgba(4,5,13,0.30)  35%,
      transparent        65%);
}

/* Hero title — stronger drop shadow for readability on any image */
.hero-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6);
}

/* Hero desc — slightly brighter */
.hero-desc { color: rgba(210,218,240,0.80); }

/* Poster card — top gradient shimmer on hover */
.poster-card:hover {
  box-shadow:
    0 20px 50px rgba(0,0,0,0.88),
    0 0 0 1px rgba(79,142,247,0.22),
    0 -1px 0 rgba(79,142,247,0.30) inset;
}

/* Poster card title — slightly larger */
.p-title { font-size: 0.8rem; font-weight: 700; }
.p-sub   { font-size: 0.67rem; color: rgba(79,142,247,0.6); font-weight: 600; }

/* Rating badge — gold glow */
.p-rating { box-shadow: 0 0 8px rgba(240,180,41,0.20); }

/* Trending list — title more visible */
.lc-title { font-size: 0.92rem; font-weight: 800; letter-spacing: -0.01em; }

/* Trending list tags — purple tint for variety */
.lc-tags .lc-tag:nth-child(2) {
  background: rgba(139,92,246,0.08);
  color: #c4a8ff;
  border-color: rgba(139,92,246,0.18);
}

/* Bottom nav background — stronger gradient from dark */
.bottom-nav {
  background: linear-gradient(to top, rgba(2,3,10,1.0) 0%, rgba(4,5,13,0.98) 100%);
}

/* Smooth page transition */
.page-view.active {
  animation: pageSlideIn 0.30s var(--ease-out) both;
}
@keyframes pageSlideIn {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Category tab — active glow pulse on first load */
.cat-tab.active {
  animation: tabGlow 2.5s ease-in-out 1;
}
@keyframes tabGlow {
  0%  { box-shadow: 0 0 0 rgba(79,142,247,0); }
  40% { box-shadow: 0 0 22px rgba(79,142,247,0.40); }
  100%{ box-shadow: 0 0 16px rgba(79,142,247,0.22); }
}

/* Skeleton shimmer — blue tint */
.skeleton {
  background: linear-gradient(90deg,
    rgba(12,14,28,1)       0%,
    rgba(79,142,247,0.06)  50%,
    rgba(12,14,28,1)       100%
  );
  background-size: 600px 100%;
  animation: shimmer 1.8s infinite linear;
}

/* Scrollbar — visible but subtle */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    rgba(79,142,247,0.30),
    rgba(139,92,246,0.20)
  );
}

/* ── ACCOUNT PAGE STATS — gradient border ── */
.acct-stat {
  background: var(--bg-card);
  border: 1px solid rgba(79,142,247,0.12);
  position: relative;
  overflow: hidden;
}
.acct-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-blue);
  opacity: 0.6;
}

/* ── HEADER — gold "Lipa" button glow pulse ── */
.btn-hd-access {
  animation: goldPulse 3s ease-in-out infinite;
}
@keyframes goldPulse {
  0%,100% { box-shadow: 0 4px 12px rgba(240,180,41,0.30); }
  50%     { box-shadow: 0 4px 22px rgba(240,180,41,0.55); }
}
.btn-hd-access:hover { animation: none; }

/* ── MODAL SHEET — premium top line ── */
.modal-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(79,142,247,0.45),
    rgba(139,92,246,0.35),
    transparent
  );
  border-radius: var(--r-pill);
}

/* ── TICKET BOX — pulsing gold border ── */
.ticket-price-box {
  animation: ticketGlow 4s ease-in-out infinite;
}
@keyframes ticketGlow {
  0%,100% { border-color: rgba(240,180,41,0.28); }
  50%     { border-color: rgba(240,180,41,0.50); box-shadow: 0 0 24px rgba(240,180,41,0.12); }
}

/* ── SEARCH INPUT — blue bottom line on focus ── */
.header-search input:focus {
  border-color: rgba(79,142,247,0.50);
  box-shadow:
    0 0 0 3px rgba(79,142,247,0.10),
    0 2px 12px rgba(79,142,247,0.12);
}

/* ── TRENDING SECTION header divider ── */
.list-section::before {
  content: '';
  display: block;
  height: 1px;
  margin: 0 1.1rem 0.1rem;
  background: linear-gradient(90deg,
    transparent,
    rgba(79,142,247,0.18),
    rgba(139,92,246,0.12),
    transparent
  );
}

/* ── POSTER CARD play circle — purple inner ring ── */
.p-play-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,0.40);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.poster-card:hover .p-play-circle::before { opacity: 1; }

/* ── SECTION — bottom fade for content separation ── */
.section { position: relative; }

/* ── RESPONSIVE — tablet tweaks ── */
@media (min-width: 600px) {
  .hero-banner { height: 50vw; }
  .lc-poster { width: 78px; height: 108px; }
  .lc-rank   { font-size: 2.2rem; min-width: 42px; }
  .poster-card { width: 152px; }
  .bottom-nav { height: 70px; }
  .bn-item i  { font-size: 1.22rem; }
}

@media (min-width: 900px) {
  .hero-banner { height: 42vw; max-height: 600px; }
  .poster-card { width: 160px; }
  .lc-poster   { width: 82px; height: 114px; }
  .lc-rank     { font-size: 2.4rem; min-width: 46px; }
  .list-section::before { margin: 0 2rem 0.1rem; }
}

/* ── Make section-hd-left gap consistent ── */
.section-hd-left { gap: 0.65rem; }

/* ============================================================
   DESIGN UPGRADE v3 — Premium Polish
   ============================================================ */

/* ── HERO: Cinematic overlay gradient upgrade ── */
.hero-vignette {
  background:
    linear-gradient(to top,
      #04050d 0%,
      rgba(4,5,13,0.95) 15%,
      rgba(4,5,13,0.70) 38%,
      rgba(4,5,13,0.20) 60%,
      transparent 85%),
    linear-gradient(105deg,
      rgba(4,5,13,0.85) 0%,
      rgba(4,5,13,0.40) 40%,
      transparent 65%);
}

/* ── HERO: Title gradient text ── */
.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, rgba(200,215,255,0.92) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8));
}

/* ── HERO: Meta info upgrade ── */
.hero-meta {
  background: rgba(4,5,13,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.85rem;
  width: fit-content;
  margin-bottom: 0.85rem;
}

/* ── POSTER CARD: Premium shine effect ── */
.poster-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
  z-index: 3;
}

.poster-card:hover::after {
  left: 150%;
}

/* ── POSTER CARD: Duration badge ── */
.poster-card .p-sub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  color: var(--t3);
  font-weight: 500;
}

/* ── SECTION: Bigger title + better spacing ── */
.section-title-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--t1) 60%, rgba(160,180,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION LABEL: Glowing pill ── */
.sl-cyan, .sl-blue {
  background: linear-gradient(135deg, rgba(79,142,247,0.22), rgba(139,92,246,0.12));
  color: #b8d4ff;
  border: 1px solid rgba(79,142,247,0.38);
  box-shadow: 0 0 14px rgba(79,142,247,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.sl-red {
  background: linear-gradient(135deg, rgba(232,52,74,0.20), rgba(232,52,74,0.08));
  color: #ffb0bc;
  border: 1px solid rgba(232,52,74,0.38);
  box-shadow: 0 0 12px rgba(232,52,74,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── BOTTOM NAV: Frosted glass upgrade ── */
.bottom-nav {
  background: rgba(4,5,13,0.96);
  backdrop-filter: blur(32px) saturate(2.0);
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 -1px 0 rgba(79,142,247,0.08),
    0 -16px 48px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── BOTTOM NAV: Active item upgrade ── */
.bn-item.active {
  color: #c0d8ff;
}

.bn-item.active i {
  color: var(--blue-bright);
  filter: drop-shadow(0 0 10px rgba(79,142,247,0.90));
}

.bn-item.active::after {
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow: 0 0 14px rgba(79,142,247,0.80);
  border-radius: var(--r-pill);
}

/* ── BOTTOM NAV LABEL ── */
.bn-item span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── CROWN BUTTON: Upgrade ── */
.bn-center-btn {
  width: 54px; height: 54px;
  background: linear-gradient(145deg, #f5c842 0%, #ffd570 40%, #f0a020 100%);
  box-shadow:
    0 0 0 3px rgba(240,180,41,0.18),
    0 0 22px rgba(240,180,41,0.55),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  border: none;
}

/* ── MODAL SHEET: Full glassmorphism ── */
.modal-sheet {
  background: rgba(8,10,28,0.96);
  backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(79,142,247,0.14);
  box-shadow:
    0 -4px 0 rgba(79,142,247,0.20),
    0 32px 80px rgba(0,0,0,0.95),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── MODAL: Icon wrap upgrade ── */
.modal-icon-wrap.cyan,
.modal-icon-wrap.blue {
  background: linear-gradient(135deg, rgba(79,142,247,0.18), rgba(139,92,246,0.10));
  border: 1px solid rgba(79,142,247,0.30);
  box-shadow: 0 0 32px rgba(79,142,247,0.20);
}

.modal-icon-wrap.red {
  background: linear-gradient(135deg, rgba(232,52,74,0.16), rgba(240,80,100,0.08));
  border: 1px solid rgba(232,52,74,0.30);
  box-shadow: 0 0 32px rgba(232,52,74,0.15);
}

/* ── TICKET BOX: Luxury upgrade ── */
.ticket-price-box {
  background: linear-gradient(135deg,
    rgba(240,180,41,0.12) 0%,
    rgba(240,130,40,0.06) 50%,
    rgba(139,92,246,0.08) 100%);
  border: 1px solid rgba(240,180,41,0.35);
  box-shadow:
    0 0 40px rgba(240,180,41,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.tp-amount {
  font-size: 3rem;
  letter-spacing: -0.03em;
}

/* ── FORM INPUT: Upgrade ── */
.form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  height: 50px;
}

.form-input:focus {
  background: rgba(79,142,247,0.06);
  border-color: rgba(79,142,247,0.50);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.12), 0 0 20px rgba(79,142,247,0.08);
}

/* ── BTN PRIMARY: Upgrade ── */
.btn-primary {
  height: 52px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #4f8ef7 0%, #6a8fff 50%, #8b5cf6 100%);
  box-shadow:
    0 4px 24px rgba(79,142,247,0.40),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}

.btn-primary:hover {
  box-shadow:
    0 8px 32px rgba(79,142,247,0.60),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

/* ── BTN DANGER (STK Push): Upgrade ── */
.btn-danger {
  height: 52px;
  background: linear-gradient(135deg, #e8344a 0%, #ff5060 50%, #e8344a 100%);
  background-size: 200% 100%;
  animation: dangerShimmer 3s ease-in-out infinite;
  box-shadow:
    0 4px 24px rgba(232,52,74,0.45),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

@keyframes dangerShimmer {
  0%,100% { background-position: 0% 50%; box-shadow: 0 4px 24px rgba(232,52,74,0.40), inset 0 1px 0 rgba(255,255,255,0.20); }
  50%     { background-position: 100% 50%; box-shadow: 0 4px 32px rgba(232,52,74,0.65), inset 0 1px 0 rgba(255,255,255,0.28); }
}

.btn-danger:hover { animation: none; box-shadow: 0 8px 36px rgba(232,52,74,0.65); }

/* ── TRENDING LIST: Card upgrade ── */
.list-card {
  padding: 1rem 1.2rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  transition: all 0.18s var(--ease);
}

.list-card:hover {
  background: linear-gradient(90deg, rgba(79,142,247,0.06) 0%, transparent 80%);
  padding-left: 1.5rem;
}

/* ── ACCOUNT PAGE: Avatar upgrade ── */
.acct-avatar {
  background: linear-gradient(135deg,
    rgba(79,142,247,0.28) 0%,
    rgba(139,92,246,0.22) 50%,
    rgba(232,52,74,0.15) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.acct-avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--red));
  z-index: -1;
}

/* ── ACCOUNT MENU ITEM: Upgrade ── */
.acct-menu-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.16s var(--ease);
}

.acct-menu-item:hover {
  background: rgba(79,142,247,0.07);
  border-color: rgba(79,142,247,0.20);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* ── CAT TABS: Active state upgrade ── */
.cat-tab.active {
  background: linear-gradient(135deg, rgba(79,142,247,0.25), rgba(139,92,246,0.14));
  border-color: rgba(79,142,247,0.55);
  color: #c0d8ff;
  font-weight: 800;
  box-shadow:
    0 0 18px rgba(79,142,247,0.25),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* ── HEADER: Upgrade on scroll ── */
#main-header.scrolled {
  background: rgba(4,5,13,0.97);
  backdrop-filter: blur(32px) saturate(2.0);
  box-shadow:
    0 1px 0 rgba(79,142,247,0.12),
    0 0 0 1px rgba(255,255,255,0.03),
    0 8px 40px rgba(0,0,0,0.80);
}

/* ── LOGO: Upgrade ── */
.logo {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.logo-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 12px rgba(232,52,74,1.0));
}

/* ── SEARCH BAR: Upgrade ── */
.header-search input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  height: 34px;
  font-size: 0.82rem;
}

.header-search input:focus {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.45);
}

/* ── LIPA BUTTON: Upgrade ── */
.btn-hd-access {
  height: 30px;
  padding: 0 0.9rem;
  font-size: 0.76rem;
  background: linear-gradient(135deg, #f0b429 0%, #ffd166 60%, #f09620 100%);
  box-shadow:
    0 2px 14px rgba(240,180,41,0.40),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ── PAYMENT STEPS: Upgrade ── */
.pay-step-item.active {
  background: linear-gradient(90deg, rgba(79,142,247,0.10), rgba(79,142,247,0.04));
  border: 1px solid rgba(79,142,247,0.22);
  border-radius: var(--r-md);
}

.pay-step-item.done .step-bullet {
  background: linear-gradient(135deg, rgba(6,214,160,0.20), rgba(6,214,160,0.10));
}

/* ── SPINNER: Upgrade ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(79,142,247,0.10);
  border-top-color: var(--blue-bright);
  box-shadow: 0 0 16px rgba(79,142,247,0.30);
}

/* ── TOAST: Upgrade ── */
.toast {
  background: rgba(8,10,26,0.98);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.75),
    0 0 0 1px rgba(79,142,247,0.08);
  border-radius: var(--r-xl);
  padding: 0.85rem 1.1rem;
}

.toast.success { border-left: 3px solid var(--teal); background: rgba(6,214,160,0.06); }
.toast.error   { border-left: 3px solid var(--red-bright); background: rgba(232,52,74,0.06); }
.toast.info    { border-left: 3px solid var(--blue); background: rgba(79,142,247,0.06); }

/* ============================================================
   MOBILE EXPERIENCE — Task #1: CSS Fixes
   Touch targets · Safe areas · Scroll · Font sizes
   ============================================================ */

/* ── Prevent text size bump on orientation change ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* ── Safe area insets (notch / home bar) ── */
#main-header {
  padding-top: max(0px, env(safe-area-inset-top));
  height: calc(60px + env(safe-area-inset-top, 0px));
}

.cat-tabs-wrap {
  top: calc(60px + env(safe-area-inset-top, 0px));
}

main {
  padding-top: calc(108px + env(safe-area-inset-top, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.bottom-nav {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  height: calc(66px + env(safe-area-inset-bottom, 0px));
}

/* ── Touch targets minimum 44×44px ── */
.bn-item {
  min-width: 44px;
  min-height: 44px;
}

.bn-center-btn {
  min-width: 52px;
  min-height: 52px;
}

.cat-tab {
  min-height: 36px;
  padding: 0 1rem;
}

.modal-close-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  top: -5px;
  right: -5px;
}

.btn-play,
.btn-info-sm,
.btn-primary,
.btn-danger,
.btn-ghost {
  min-height: 48px;
}

.lc-btn { min-height: 36px; }

/* ── Smooth scrolling on iOS ── */
.h-scroll,
.cat-tabs,
.modal-sheet,
main {
  -webkit-overflow-scrolling: touch;
}

/* ── Prevent scroll bounce on body ── */
body {
  overscroll-behavior: none;
}

/* ── Prevent horizontal overflow on mobile ── */
body, main, .page-view {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Better font sizes on small screens ── */
@media (max-width: 375px) {
  .hero-title         { font-size: 1.4rem; }
  .section-title-text { font-size: 0.95rem; }
  .lc-title           { font-size: 0.84rem; }
  .modal-title        { font-size: 1.15rem; }
  .tp-amount          { font-size: 2.4rem; }
  .p-title            { font-size: 0.74rem; }
  .bn-item span       { font-size: 0.58rem; }
  .cat-tab            { font-size: 0.70rem; padding: 0 0.75rem; }
  .poster-card        { width: 125px; }
}

@media (max-width: 320px) {
  .hero-title  { font-size: 1.2rem; }
  .poster-card { width: 110px; }
  .lc-poster   { width: 58px; height: 82px; }
  .lc-rank     { font-size: 1.6rem; min-width: 30px; }
}

/* ── Scroll snap for horizontal scroll ── */
.h-scroll {
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.1rem;
}

.poster-card {
  scroll-snap-align: start;
}

/* ── Full-width modals on mobile ── */
@media (max-width: 480px) {
  .modal-sheet {
    border-radius: 22px 22px 0 0;
    max-height: 95dvh;
  }

  .cinema-sheet {
    max-height: 100dvh;
    border-radius: 0;
  }

  .video-player-wrap {
    border-radius: 0;
  }

  .cinema-footer {
    border-radius: 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Pull indicator (for pull-to-refresh) ── */
.pull-indicator {
  position: fixed;
  top: calc(60px + env(safe-area-inset-top, 0px) + 50px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 95;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.pull-indicator.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pull-indicator.releasing {
  color: var(--teal);
  border-color: rgba(6,214,160,0.35);
}

.pull-indicator i {
  transition: transform 0.3s var(--ease);
}

.pull-indicator.releasing i {
  transform: rotate(180deg);
}

/* ── Loading overlay for pull refresh ── */
.refresh-loading {
  position: fixed;
  top: calc(60px + env(safe-area-inset-top, 0px) + 50px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
  display: none;
}

.refresh-loading.show { display: flex; }

/* ── Swipe hint on modal sheet handle ── */
.sheet-handle {
  width: 44px;
  height: 5px;
  cursor: grab;
  transition: background var(--t-fast), width var(--t-fast);
}

.sheet-handle:active { cursor: grabbing; }

.modal-sheet:hover .sheet-handle,
.modal-sheet.dragging .sheet-handle {
  width: 56px;
  background: rgba(255,255,255,0.22);
}

/* ── Swipe-to-close drag state ── */
.modal-sheet.dragging {
  transition: none;
  cursor: grabbing;
}

/* ── Touch active states (better than :hover on mobile) ── */
@media (hover: none) and (pointer: coarse) {
  .poster-card:active {
    transform: scale(0.97);
    opacity: 0.85;
    transition: all 0.08s var(--ease);
  }

  .list-card:active {
    background: rgba(79,142,247,0.08);
  }

  .acct-menu-item:active {
    background: rgba(79,142,247,0.10);
    transform: scale(0.99);
  }

  .btn-primary:active  { transform: scale(0.97); filter: brightness(0.92); }
  .btn-danger:active   { transform: scale(0.97); filter: brightness(0.92); animation: none; }
  .btn-ghost:active    { background: var(--bg-glass2); }
  .bn-center-btn:active { transform: scale(0.92); }

  /* Remove hover effects on touch devices */
  .poster-card:hover { transform: none; }
  .list-card:hover   { padding-left: 1.2rem; }
  .acct-menu-item:hover { transform: none; }
}

/* ── Video player mobile: full width ── */
@media (max-width: 600px) {
  .cinema-sheet {
    max-width: 100vw;
  }

  .cinema-action-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-dl-cinema,
  .btn-close-cinema {
    width: 100%;
    height: 46px;
    justify-content: center;
  }

  .cinema-footer {
    padding: 0.85rem 1rem;
  }
}

/* ── Search page grid — 2 columns on small screens ── */
@media (max-width: 480px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.85rem;
  }

  .search-results-grid .poster-card {
    width: 100%;
  }
}

/* ── Account page mobile ── */
@media (max-width: 480px) {
  .acct-stats {
    gap: 0.5rem;
  }

  .acct-stat {
    padding: 0.75rem 0.35rem;
  }

  .acct-stat-val {
    font-size: 1.1rem;
  }
}

/* ── Landscape phone adjustments ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-banner {
    height: 85vw;
    max-height: 280px;
    min-height: 200px;
  }

  .hero-content {
    padding: 1rem 1.25rem 1.25rem;
  }

  .hero-desc { display: none; }

  main { padding-top: 95px; }

  .bottom-nav { height: 54px; }

  .bn-item span { display: none; }

  .bn-item i { font-size: 1.3rem; }
}

/* ============================================================
   PAYMENT FLOW — Task #4 Extras
   Tips box · Network badge · Retry state
   ============================================================ */

/* ── Tips box while waiting for PIN ── */
.pay-tips-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(240,180,41,0.06);
  border: 1px solid rgba(240,180,41,0.20);
  border-radius: var(--r-md);
  padding: 0.65rem 0.9rem;
  margin: 0.85rem 0 0;
  text-align: left;
  font-size: 0.76rem;
  color: var(--t2);
  line-height: 1.5;
  animation: fadeUp 0.4s var(--ease) both;
}

/* ── Network badge in verify view ── */
#pay-network-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 auto 1.1rem;
  width: fit-content;
}

/* ── STK resend hint ── */
.stk-resend-hint {
  font-size: 0.72rem;
  color: var(--t3);
  margin-top: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--t-fast);
}

.stk-resend-hint:hover { color: var(--blue); }

/* ── Payment rejected state ── */
.pay-rejected-wrap {
  text-align: center;
  padding: 1rem 0;
  animation: popIn 0.3s var(--ease-spring) both;
}

.pay-rejected-wrap .reject-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 16px rgba(232,52,74,0.4));
}

/* ── Phone input validated state ── */
#pay-phone.valid-phone,
#reg-phone.valid-phone {
  border-color: rgba(6,214,160,0.45) !important;
}

#pay-phone.invalid-phone,
#reg-phone.invalid-phone {
  border-color: rgba(232,52,74,0.45) !important;
}

/* ============================================================
   WATCHLIST / FAVORITES — Feature CSS
   ============================================================ */

/* ── HEART BUTTON on poster cards ── */
.btn-heart {
  position: absolute;
  top: 7px; right: 7px;
  z-index: 3;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-spring);
  color: var(--t2);
  font-size: 0.78rem;
  -webkit-tap-highlight-color: transparent;
}

.btn-heart:hover {
  background: rgba(232,52,74,0.20);
  border-color: rgba(232,52,74,0.45);
  color: #ff7088;
  transform: scale(1.15);
}

.btn-heart.active {
  background: rgba(232,52,74,0.20);
  border-color: rgba(232,52,74,0.50);
  color: #ff4466;
  box-shadow: 0 0 12px rgba(232,52,74,0.40);
}

.btn-heart.active i { animation: heartPop 0.35s var(--ease-spring) both; }

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* ── WATCHLIST NAV BADGE ── */
.bn-watchlist-badge {
  position: absolute;
  top: 8px; right: calc(50% - 14px);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg-root);
  box-shadow: 0 0 8px rgba(232,52,74,0.6);
  pointer-events: none;
  animation: badgeIn 0.3s var(--ease-spring) both;
}

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

/* ── WATCHLIST PAGE ── */
.watchlist-page {
  padding: 0 1.1rem 1.5rem;
}

/* Header row */
.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.1rem;
}

.watchlist-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(232,52,74,0.12);
  color: #ff7088;
  border: 1px solid rgba(232,52,74,0.25);
}

.btn-clear-watchlist {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--t3);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 0.35rem;
}

.btn-clear-watchlist:hover {
  color: #ff7088;
  border-color: rgba(232,52,74,0.35);
  background: rgba(232,52,74,0.06);
}

/* ── WATCHLIST GRID ── */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

@media (min-width: 600px) {
  .watchlist-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}

@media (min-width: 900px) {
  .watchlist-page { padding: 0 2rem 2rem; }
  .watchlist-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ── WATCHLIST EMPTY STATE ── */
.watchlist-empty {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.watchlist-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.35;
  filter: grayscale(0.4);
}

.watchlist-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.5rem;
}

.watchlist-empty-sub {
  font-size: 0.82rem;
  color: var(--t2);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto 1.5rem;
}

.watchlist-empty-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--t2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* ── WATCHLIST CARD (same as poster-card but with remove btn) ── */
.watchlist-card-wrap {
  position: relative;
}

.btn-wl-remove {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 5;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(232,52,74,0.40);
  color: #ff7088;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  opacity: 0;
}

.watchlist-card-wrap:hover .btn-wl-remove { opacity: 1; }

.btn-wl-remove:hover {
  background: rgba(232,52,74,0.30);
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(232,52,74,0.4);
}

/* ── TOAST WATCHLIST UNDO ── */
.toast-undo-btn {
  margin-left: 0.65rem;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(79,142,247,0.18);
  color: var(--blue-bright);
  border: 1px solid rgba(79,142,247,0.35);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.toast-undo-btn:hover {
  background: rgba(79,142,247,0.30);
}

/* ============================================================
   CONTINUE WATCHING — Feature CSS
   ============================================================ */

/* ── CONTINUE WATCHING CARD ── */
.cw-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  scroll-snap-align: start;
  transition: all var(--t-mid) var(--ease);
  position: relative;
}

.cw-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(79,142,247,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.80),
              0 0 0 1px rgba(79,142,247,0.15);
}

/* Thumbnail area — 16:9 ratio */
.cw-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1028 0%, #151830 100%);
}

.cw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--t-slow) var(--ease);
  filter: brightness(0.85);
}

.cw-card:hover .cw-thumb img { transform: scale(1.06); }

/* Dark gradient over thumbnail */
.cw-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(4,5,13,0.80) 0%,
    rgba(4,5,13,0.10) 60%,
    transparent 100%);
  pointer-events: none;
}

/* ── PLAY OVERLAY on hover ── */
.cw-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,5,13,0);
  transition: background var(--t-mid) var(--ease);
}

.cw-card:hover .cw-play-overlay { background: rgba(4,5,13,0.40); }

.cw-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  opacity: 0; transform: scale(0.65);
  transition: all var(--t-mid) var(--ease-spring);
  box-shadow: var(--shadow-blue);
}

.cw-card:hover .cw-play-btn { opacity: 1; transform: scale(1); }

/* ── PROGRESS BAR ── */
.cw-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 3;
}

.cw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 0 2px 2px 0;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 6px rgba(79,142,247,0.5);
}

/* ── TIME REMAINING BADGE ── */
.cw-time-badge {
  position: absolute;
  bottom: 8px; right: 7px;
  z-index: 4;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(6px);
  color: var(--t1);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em;
}

/* ── RESUME BADGE (top-left) ── */
.cw-resume-badge {
  position: absolute;
  top: 7px; left: 7px;
  z-index: 4;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(79,142,247,0.40);
}

/* ── REMOVE BUTTON (top-right) ── */
.cw-remove-btn {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 5;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--t2);
  font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  opacity: 0;
}

.cw-card:hover .cw-remove-btn { opacity: 1; }

.cw-remove-btn:hover {
  background: rgba(232,52,74,0.28);
  border-color: rgba(232,52,74,0.45);
  color: #ff7088;
  transform: scale(1.15);
}

/* ── CARD INFO ── */
.cw-info {
  padding: 0.65rem 0.75rem 0.75rem;
}

.cw-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-meta {
  font-size: 0.68rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cw-meta .cw-pct {
  color: var(--blue);
  font-weight: 700;
}

/* ── SECTION RESPONSIVE ── */
@media (max-width: 480px) {
  .cw-card { width: 180px; }
}

@media (min-width: 900px) {
  .cw-card { width: 240px; }
}

/* ── SECTION HEADER with divider ── */
.cw-section-wrap {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1.1rem;
}

@media (min-width: 900px) {
  .cw-section-wrap { padding: 0 2rem; }
}

/* ============================================================
   MOVIE SEARCH FILTER — Feature CSS
   ============================================================ */

/* ── SEARCH PAGE HEADER ── */
.search-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  margin-bottom: 1rem;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .search-page-header { padding: 0 2rem; }
}

/* ── FILTER TOGGLE BUTTON ── */
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  background: var(--bg-glass2);
  border: 1px solid var(--border);
  color: var(--t2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  flex-shrink: 0;
}

.btn-filter-toggle:hover {
  background: var(--bg-glass3);
  border-color: var(--border-blue);
  color: var(--t1);
}

.btn-filter-toggle.active {
  background: var(--blue-mid);
  border-color: var(--border-blue);
  color: var(--blue-bright);
  box-shadow: 0 0 14px rgba(79,142,247,0.20);
}

/* Active filter count badge on button */
.filter-active-count {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-left: 2px;
}

/* ── ACTIVE FILTERS ROW (chips) ── */
.active-filters-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 1.1rem;
  margin-bottom: 0.85rem;
  align-items: center;
}

@media (min-width: 900px) {
  .active-filters-row { padding: 0 2rem; }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(79,142,247,0.14);
  border: 1px solid rgba(79,142,247,0.32);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  animation: fadeUp 0.2s var(--ease) both;
}

.filter-chip:hover {
  background: rgba(79,142,247,0.22);
  box-shadow: 0 0 10px rgba(79,142,247,0.20);
}

.filter-chip .chip-x {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}

.filter-chip:hover .chip-x { opacity: 1; }

.btn-clear-all-filters {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--t3);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  height: 28px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 0.3rem;
}

.btn-clear-all-filters:hover {
  color: #ff7088;
  border-color: rgba(232,52,74,0.35);
  background: rgba(232,52,74,0.06);
}

/* ── FILTER DRAWER OVERLAY ── */
.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease);
}

.filter-overlay.open {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  pointer-events: all;
}

/* ── FILTER DRAWER PANEL ── */
.filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 301;
  background: var(--bg-modal);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(79,142,247,0.12);
  border-bottom: none;
  box-shadow: 0 -4px 0 rgba(79,142,247,0.15), 0 -32px 80px rgba(0,0,0,0.95);
  max-height: 85dvh;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-out);
  padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background-image: linear-gradient(to bottom, rgba(79,142,247,0.04) 0%, transparent 60px);
}

.filter-drawer::-webkit-scrollbar { display: none; }

.filter-overlay.open .filter-drawer {
  transform: translateY(0);
}

/* Drawer handle */
.filter-drawer-handle {
  width: 38px; height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  margin: 0.85rem auto 0;
}

/* Drawer header */
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.filter-drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter-reset {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--t3);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-filter-reset:hover {
  color: #ff7088;
  border-color: rgba(232,52,74,0.35);
  background: rgba(232,52,74,0.06);
}

/* ── FILTER SECTION ── */
.filter-section {
  padding: 1rem 1.5rem 0.25rem;
}

.filter-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--t3);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── FILTER OPTION CHIPS ── */
.filter-options-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--t2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-opt:hover {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.22);
  color: var(--t1);
}

.filter-opt.selected {
  background: linear-gradient(135deg, rgba(79,142,247,0.22), rgba(139,92,246,0.14));
  border-color: rgba(79,142,247,0.50);
  color: var(--blue-bright);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(79,142,247,0.18);
}

/* ── RATING SLIDER ── */
.rating-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.rating-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--border-md);
  outline: none;
  cursor: pointer;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 8px rgba(79,142,247,0.50);
  cursor: pointer;
  transition: transform var(--t-fast);
}

.rating-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.rating-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 8px rgba(79,142,247,0.50);
  cursor: pointer;
}

.rating-val-label {
  min-width: 42px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue-bright);
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.28);
  border-radius: var(--r-sm);
  padding: 3px 6px;
}

/* ── APPLY BUTTON ── */
.btn-apply-filters {
  display: block;
  width: calc(100% - 3rem);
  margin: 1.25rem auto 0;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--grad-blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-apply-filters:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 32px rgba(79,142,247,0.55);
}

/* ── RESULTS COUNT ── */
.search-results-count {
  font-size: 0.8rem;
  color: var(--t2);
  padding: 0 1.1rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .search-results-count { padding: 0 2rem; }
}

/* ── SORT ROW ── */
.sort-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.1rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-row::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .sort-row { padding: 0 2rem; }
}

.sort-opt {
  flex-shrink: 0;
  height: 28px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--t3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}

.sort-opt:hover { color: var(--t1); background: rgba(255,255,255,0.07); }

.sort-opt.active {
  background: rgba(79,142,247,0.14);
  border-color: rgba(79,142,247,0.38);
  color: var(--blue-bright);
  font-weight: 700;
}

/* ============================================================
   PAYMENT HISTORY — Feature CSS
   ============================================================ */

/* ── HISTORY PAGE ── */
.history-page {
  padding: 0 1.1rem 2rem;
}

@media (min-width: 900px) {
  .history-page { padding: 0 2rem 2rem; }
}

/* ── HISTORY HEADER ── */
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.history-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.history-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: var(--grad-card);
}

.history-summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.hsc-total::before  { background: var(--grad-blue); }
.hsc-spent::before  { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.hsc-tickets::before { background: var(--grad-gold); }

.hsc-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hsc-total  .hsc-val { color: var(--blue-bright); }
.hsc-spent  .hsc-val { color: var(--teal); }
.hsc-tickets .hsc-val { color: var(--gold-bright); }

.hsc-label {
  font-size: 0.62rem;
  color: var(--t3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── TRANSACTION CARD ── */
.tx-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}

.tx-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

.tx-card.tx-approved::before { background: var(--teal); }
.tx-card.tx-pending::before  { background: var(--gold); }
.tx-card.tx-rejected::before { background: var(--red); }

.tx-card:hover {
  border-color: rgba(79,142,247,0.18);
  box-shadow: var(--shadow-sm);
}

/* Icon circle */
.tx-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-approved .tx-icon { background: rgba(6,214,160,0.12);  color: var(--teal);   border: 1px solid rgba(6,214,160,0.28); }
.tx-pending  .tx-icon { background: rgba(240,180,41,0.12); color: var(--gold);   border: 1px solid rgba(240,180,41,0.28); }
.tx-rejected .tx-icon { background: rgba(232,52,74,0.10);  color: #ff7088;        border: 1px solid rgba(232,52,74,0.24); }

/* Main info */
.tx-main { flex: 1; min-width: 0; }

.tx-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.2rem;
}

.tx-date {
  font-size: 0.72rem;
  color: var(--t3);
  margin-bottom: 0.25rem;
}

.tx-ref {
  font-size: 0.65rem;
  color: var(--t3);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Right side: amount + status */
.tx-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.tx-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.tx-approved .tx-amount { color: var(--teal); }
.tx-pending  .tx-amount { color: var(--gold-bright); }
.tx-rejected .tx-amount { color: var(--t3); text-decoration: line-through; }

/* Status pill */
.tx-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tx-pill-approved { background: rgba(6,214,160,0.12);  color: var(--teal);   border: 1px solid rgba(6,214,160,0.28); }
.tx-pill-pending  { background: rgba(240,180,41,0.12); color: var(--gold);   border: 1px solid rgba(240,180,41,0.28); }
.tx-pill-rejected { background: rgba(232,52,74,0.10);  color: #ff7088;        border: 1px solid rgba(232,52,74,0.24); }

/* Ticket duration badge */
.tx-ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--t2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 7px;
}

/* ── HISTORY EMPTY STATE ── */
.history-empty {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}

.history-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.35;
}

.history-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 0.45rem;
}

.history-empty-sub {
  font-size: 0.8rem;
  color: var(--t2);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto 1.5rem;
}

/* ── HISTORY LOADING SKELETON ── */
.tx-card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* ── MONTH DIVIDER ── */
.tx-month-divider {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--t3);
  padding: 0.85rem 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tx-month-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ============================================================
   HERO BANNER SLIDESHOW CONTROLS
   ============================================================ */

/* Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease);
  opacity: 0;
}

.hero-banner:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(79,142,247,0.9);
  border-color: rgba(79,142,247,0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(79,142,247,0.5);
}

.hero-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-prev {
  left: 20px;
}

.hero-nav-next {
  right: 20px;
}

/* Slide Indicators (Dots) */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 24px;
  border-radius: var(--r-pill);
  background: var(--blue);
  box-shadow: 0 0 12px rgba(79,142,247,0.6);
}

/* Slide Counter */
.hero-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.hero-counter i {
  color: var(--blue);
  font-size: 0.7rem;
}

/* Fade-in animation for slide transitions */
@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content {
  animation: heroSlideIn 0.6s ease-out;
}

.hero-bg img {
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .hero-nav-prev {
    left: 10px;
  }

  .hero-nav-next {
    right: 10px;
  }

  .hero-indicators {
    bottom: 20px;
    padding: 6px 10px;
    gap: 6px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 18px;
  }

  .hero-counter {
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    padding: 4px 10px;
  }
}

/* Pause animation on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
  
  .hero-bg img {
    transition: none;
  }
}
