/* =========================================================
   FORTUNE IPTV — Dark/Premium Design System
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #07070b;
  --bg-elev: #0e0e14;
  --bg-elev-2: #15151d;
  --line: #1f1f2a;
  --line-soft: rgba(255, 255, 255, 0.06);

  --text: #f4f4f7;
  --text-dim: #a3a3b3;
  --text-mute: #6c6c7a;

  --accent: #2dd4bf;        /* neon teal */
  --accent-hot: #5eead4;    /* hover lift */
  --accent-glow: rgba(45, 212, 191, 0.35);
  --danger: #ff4d6d;        /* live / hot indicators */
  --warn: #fbbf24;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-display: "Bricolage Grotesque", "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Background atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(94, 234, 212, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
main, header, footer, section { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 99px;
  background: rgba(45, 212, 191, 0.06);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #5eead4 50%, #c4f1e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-tight { padding: clamp(2rem, 5vw, 3rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 99px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #003028;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-hot), 0 12px 32px -8px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45, 212, 191, 0.05);
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element so the header itself does NOT become a
   containing block / clip for the fixed mobile menu (backdrop-filter traps
   position:fixed descendants in Chrome/Safari). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s var(--ease);
}
.site-header.scrolled::before {
  background: rgba(7, 7, 11, 0.92);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #003028;
  font-weight: 800;
  font-size: 0.9rem;
  position: relative;
  box-shadow: 0 0 20px -4px var(--accent-glow);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  opacity: 0.4;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li > a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-radius: 99px;
  transition: all 0.2s;
  position: relative;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--text);
  background: var(--line-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  margin: 4px auto;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "▾";
  font-size: 0.65rem;
  margin-left: 0.4rem;
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  list-style: none;
  margin: 0.5rem 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.15s;
}
.dropdown a:hover { background: var(--line-soft); color: var(--accent); }

@media (max-width: 980px) {
  .nav-toggle { display: block; position: relative; z-index: 201; }
  .brand { position: relative; z-index: 201; }
  /* Dim/blocking overlay behind the slide-in drawer. main.js injects the
     .nav-backdrop element and toggles .open — without this rule it was
     invisible, so the open menu looked broken (no scrim, page showing through). */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998 !important;
    background: rgba(7, 7, 11, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
  /* Lock body scroll while the drawer is open (main.js adds body.nav-open). */
  body.nav-open { overflow: hidden; }
  /* When the drawer is open, kill the header's backdrop-blur pseudo-element —
     on mobile Chrome it was frosting the menu links underneath it. */
  body.nav-open .site-header::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #0b0b12 !important;
  }
  /* The drawer lives inside .site-header (z:100). The global rule
     `main, header, footer, section { z-index:1 }` makes page sections their own
     stacking contexts that can paint over / steal taps from the menu. Lift the
     whole header above everything WHEN OPEN so the panel + links win. */
  body.nav-open .site-header { z-index: 9999 !important; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 9999 !important;
    flex-direction: column;
    align-items: stretch;
    background: #0b0b12 !important;
    isolation: isolate;
    pointer-events: auto !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 5.5rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    gap: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { pointer-events: auto !important; }
  .nav-links > li > a {
    display: block;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: #ffffff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
  }
  /* Active page keeps the accent so it still stands out in the bright list. */
  .nav-links > li > a.active { color: var(--accent) !important; }
  /* Submenu items: clearly readable light grey. */
  .dropdown a { color: #cfcfe0 !important; opacity: 1 !important; }
  /* Brand wordmark in the open drawer header must stay bright too. */
  .site-header .brand,
  .site-header .brand span { color: #ffffff !important; opacity: 1 !important; }
  .has-dropdown > a::after { float: right; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    border: 0;
    margin: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  margin-top: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* TV mockup visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line);
  padding: 1rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 100px -30px var(--accent-glow);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
}
.channel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  height: 100%;
  z-index: 1;
}
.channel-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  animation: tile-glow 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.channel-tile:hover { transform: scale(1.05); border-color: var(--accent); }
.channel-tile.live::after {
  content: "LIVE";
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  background: var(--danger);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.channel-tile-thumb {
  flex: 1;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border-radius: 4px;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}
.channel-tile-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1, #2dd4bf33) 0%, var(--c2, #c4f1e911) 100%);
}
@keyframes tile-glow {
  0%, 100% { border-color: var(--line); }
  50% { border-color: rgba(45, 212, 191, 0.3); }
}

@media (max-width: 860px) {
  .hero { padding: 7rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Section header ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p { font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature {
  padding: 2rem 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.3); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}
.price-card:hover {
  border-color: rgba(45, 212, 191, 0.3);
  transform: translateY(-4px);
}
.price-card.featured {
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
    var(--bg-elev);
  border-color: var(--accent);
  box-shadow: 0 0 60px -20px var(--accent-glow);
}
.price-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #003028;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  text-transform: uppercase;
}
.price-period {
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.price-name { font-size: 1.25rem; margin-bottom: 1.5rem; }
.price-amount {
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.price-currency { font-size: 1.5rem; color: var(--text-dim); }
.price-value { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; }
.price-suffix { font-size: 0.85rem; color: var(--text-mute); }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; justify-content: center; }
.price-card.featured .btn { background: var(--accent); }
.price-card:not(.featured) .btn-primary {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3);
}

/* ---------- CTA banner ---------- */
.cta-band {
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(45, 212, 191, 0.2), transparent 50%),
    linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: 50%; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-band-content { flex: 1; min-width: 280px; position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent);
}
.page-header h1 { margin-bottom: 0.5rem; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Channel list (tabs + search) ---------- */
.channel-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.channel-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1); }
.channel-search svg { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; }
.channel-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0;
  outline: none;
}
.channel-search input::placeholder { color: var(--text-mute); }
.channel-clear {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  visibility: hidden;
}
.channel-search.has-input .channel-clear { visibility: visible; }
.channel-clear:hover { background: var(--danger); color: white; }

.tab-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.tab-pills::-webkit-scrollbar { height: 4px; }
.tab-pills::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.tab-pill {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: all 0.2s;
  scroll-snap-align: start;
  white-space: nowrap;
}
.tab-pill:hover { color: var(--text); border-color: var(--text-mute); }
.tab-pill.active {
  background: var(--accent);
  color: #003028;
  border-color: var(--accent);
  font-weight: 600;
}
.tab-pill .count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-left: 0.4rem;
  opacity: 0.7;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.channel-cols {
  columns: 4 200px;
  column-gap: 1.5rem;
}
.channel-cols li {
  break-inside: avoid;
  list-style: none;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.channel-cols li:hover {
  background: var(--bg-elev);
  color: var(--text);
  border-left-color: var(--accent);
}
.channel-cols li.hd::after,
.channel-cols li.fhd::after {
  content: "HD";
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.channel-cols li.fhd::after { content: "FHD"; }

.channel-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-mute);
  display: none;
}
.channel-empty.show { display: block; }

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.channel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.channel-meta strong { color: var(--accent); font-family: var(--font-mono); }

/* ---------- Devices grid (instructions) ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.device-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.device-card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.3); }
.device-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-elev-2), #050508);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.device-thumb svg { width: 80px; height: 80px; color: var(--accent); opacity: 0.85; }
.device-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent, var(--bg-elev-2));
}
.device-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.device-body h4 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.device-body p { font-size: 0.88rem; flex: 1; }
.device-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.device-link::after { content: "→"; transition: transform 0.2s; }
.device-link:hover::after { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(45, 212, 191, 0.3); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 1.5rem 1.4rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field {
  position: relative;
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
}
.field textarea { resize: vertical; min-height: 140px; }
.form .btn { width: 100%; justify-content: center; padding: 1.05rem; }

.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.info-card h3 { color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-mono); }
.info-list {
  list-style: none;
  padding: 0; margin: 0;
}
.info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 0.2rem; }
.info-list span { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #03030680 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.2s;
}
.social-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-btn svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 90;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: #003028;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 12px 30px -8px var(--accent-glow), 0 0 0 1px var(--accent-hot);
}
@media (max-width: 720px) { .sticky-cta { display: block; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }
