/* ============================================
   XYRLY IPTV — Stylesheet
   ============================================ */

:root {
    --bg: #0b0b14;
    --bg-alt: #0d0d1a;
    --card: #12121f;
    --card-2: #16162a;
    --border: #2a2a40;
    --text: #ffffff;
    --muted: #9a9ab5;
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-soft: rgba(124,58,237,0.12);
    --hover: rgba(255,255,255,0.05);
    --shadow: 0 20px 60px rgba(0,0,0,0.35);
    --radius: 16px;
    --live: #ff4d6d;
    --success: #6ee7b7;
    --error: #ef4444;
    --gold: #7c3aed;
    --gold-soft: rgba(124,58,237,0.12);
}
[data-theme="light"] {
    --bg: #f6f3ea;
    --bg-alt: #ede8da;
    --card: #ffffff;
    --card-2: #faf7f0;
    --border: rgba(0,0,0,0.08);
    --text: #15171c;
    --muted: #5a6473;
    --primary: #6d28d9;
    --primary-dark: #5b21b6;
    --primary-light: #7c3aed;
    --primary-soft: rgba(124,58,237,0.1);
    --gold: #6d28d9;
    --gold-soft: rgba(124,58,237,0.1);
    --hover: rgba(0,0,0,0.04);
    --shadow: 0 20px 60px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 120px; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(80% 55% at 50% -10%, rgba(124,58,237,0.18), rgba(0,0,0,0) 55%),
        radial-gradient(45% 40% at 90% 10%, rgba(167,139,250,0.16), rgba(0,0,0,0) 50%),
        radial-gradient(40% 35% at 8% 70%, rgba(109,40,217,0.10), rgba(0,0,0,0) 50%);
    background-attachment: scroll, scroll, scroll;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Animated aurora background =====
   A fixed, non-interactive layer that sits BEHIND all content (z-index:-1).
   Only transform/opacity animate, so it is GPU-only and never affects
   video playback, scrolling smoothness, or clicks.
   Disable the whole layer at any time by adding class "no-bg-fx" to <html>. */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}
html.no-bg-fx .aurora { display: none; }

.aurora-blob {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    border-radius: 50%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.aurora-blob.b1 {
    top: -28vmax; left: -14vmax;
    background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.26), rgba(124,58,237,0) 62%);
    animation: auroraDriftA 38s ease-in-out infinite;
}
.aurora-blob.b2 {
    top: -24vmax; right: -18vmax;
    background: radial-gradient(circle at 50% 50%, rgba(167,139,250,0.20), rgba(167,139,250,0) 62%);
    animation: auroraDriftB 46s ease-in-out infinite;
}
.aurora-blob.b3 {
    bottom: -30vmax; left: 22%;
    background: radial-gradient(circle at 50% 50%, rgba(109,40,217,0.20), rgba(109,40,217,0) 62%);
    animation: auroraDriftC 54s ease-in-out infinite;
}

@keyframes auroraDriftA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}
@keyframes auroraDriftB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); }
    50%      { transform: translate3d(-7vw, 5vh, 0) scale(1); }
}
@keyframes auroraDriftC {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(5vw, -5vh, 0) scale(1.2); }
}

/* Softer glow on the light theme so it stays tasteful */
[data-theme="light"] .aurora-blob { opacity: 0.5; }

/* Freeze the glow for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .aurora-blob { animation: none !important; }
    .hero-media-column { animation: none !important; }
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
    font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,0.35); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
    font-size: 1rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    font-weight: 600;
    padding: .85rem 1.2rem;
    border-radius: 999px;
    transition: .2s;
}
.btn-ghost:hover { background: var(--hover); }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    transition: .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,0.35); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ===== Navigation ===== */
.top-offer-bar {
    position: relative;
    z-index: 110;
    background: linear-gradient(180deg, rgba(8,9,18,0.96), rgba(13,13,26,0.96));
    border-bottom: 1px solid rgba(124,58,237,0.22);
}
.top-offer-bar strong { color: var(--primary-light); }
.top-offer-inner {
    max-width: 1140px;
    margin: 0 auto;
    min-height: 38px;
    padding: .45rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-align: center;
    font-size: .78rem;
    line-height: 1.2;
    color: var(--muted);
}
.top-offer-emoji {
    color: var(--primary-light);
    font-size: .85rem;
    line-height: 1;
}
.top-offer-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .42rem;
}
.top-offer-text strong {
    color: var(--primary-light);
    font-weight: 700;
}
.top-offer-sep {
    color: rgba(167,139,250,0.9);
    font-weight: 700;
}
[data-theme="light"] .top-offer-bar {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,243,234,0.94));
    border-bottom-color: rgba(109,40,217,0.16);
}
[data-theme="light"] .top-offer-inner {
    color: #5a6473;
}
[data-theme="light"] .top-offer-bar strong,
[data-theme="light"] .top-offer-emoji,
[data-theme="light"] .top-offer-sep {
    color: var(--primary);
}
.nav {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10,12,20,0.72);
    border-bottom: 1px solid var(--border);
    transition: background .25s, box-shadow .25s;
}
.nav.scrolled {
    background: rgba(10,12,20,0.92);
    box-shadow: var(--shadow);
}
[data-theme="light"] .nav { background: rgba(246,243,234,0.8); }
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; }
.logo-mark {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.logo-sub { color: var(--muted); font-weight: 500; font-size: .8rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: .2s;
    color: var(--primary);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary-light); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle svg { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 2.5rem 0 4rem;
    overflow: hidden;
}
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,10,18,0.95) 0%, rgba(8,10,18,0.88) 34%, rgba(8,10,18,0.52) 62%, rgba(8,10,18,0.86) 100%),
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.18), transparent),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(167,139,250,0.12), transparent);
    pointer-events: none;
    overflow: hidden;
}
[data-theme="light"] .hero-bg {
    background:
        linear-gradient(90deg, rgba(246,243,234,0.96) 0%, rgba(246,243,234,0.90) 34%, rgba(246,243,234,0.68) 62%, rgba(246,243,234,0.92) 100%),
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.10), transparent),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(167,139,250,0.08), transparent);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,12,20,0.55) 0%, rgba(10,12,20,0.18) 26%, rgba(10,12,20,0.22) 70%, rgba(10,12,20,0.88) 100%),
        radial-gradient(circle at 18% 45%, rgba(124,58,237,0.10), transparent 34%);
}
[data-theme="light"] .hero-bg::after {
    background:
        linear-gradient(180deg, rgba(246,243,234,0.18) 0%, rgba(246,243,234,0.05) 28%, rgba(246,243,234,0.16) 72%, rgba(246,243,234,0.64) 100%),
        radial-gradient(circle at 18% 45%, rgba(124,58,237,0.07), transparent 34%);
}
.hero-media-wall {
    position: absolute;
    inset: -6% -6%;
    display: grid;
    grid-template-columns: repeat(5, minmax(88px, 132px));
    justify-content: end;
    gap: .8rem;
    padding-right: clamp(.5rem, 3vw, 2.5rem);
    opacity: 0.34;
    transform: perspective(1200px) rotateY(-14deg) rotateX(5deg);
    transform-origin: right center;
}
.hero-media-column {
    display: grid;
    gap: .8rem;
    align-content: center;
    will-change: transform;
}
.hero-media-column-a { animation: heroPosterFloatA 14s ease-in-out infinite; }
.hero-media-column-b { animation: heroPosterFloatB 16s ease-in-out infinite; }
.hero-media-column-c { animation: heroPosterFloatC 15s ease-in-out infinite; }
.hero-media-column-d { animation: heroPosterFloatD 17s ease-in-out infinite; }
.hero-media-column-e { animation: heroPosterFloatE 15.5s ease-in-out infinite; }
.hero-media-card {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(20,20,36,0.85), rgba(12,12,24,0.95));
    box-shadow: 0 14px 32px rgba(0,0,0,0.24);
}
[data-theme="light"] .hero-media-wall {
    opacity: 0.24;
}
[data-theme="light"] .hero-media-card {
    border-color: rgba(109,40,217,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(237,232,218,0.92));
    box-shadow: 0 12px 24px rgba(109,40,217,0.08);
}
.hero-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,10,18,0.04), rgba(8,10,18,0.34));
}
[data-theme="light"] .hero-media-card::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(246,243,234,0.12));
}
.hero-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-inner { position: relative; z-index: 2; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

/* Live widget */
.hero-widget-wrap { position: relative; overflow: hidden; }
.widget-glow {
    position: absolute;
    inset: -20px;
    background: var(--primary-soft);
    filter: blur(40px);
    border-radius: 40px;
    z-index: 0;
}
.live-widget {
    position: relative;
    z-index: 1;
    background: #101218;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: .9rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.45);
    max-width: 440px;
    margin: 0 auto;
}
[data-theme="light"] .live-widget {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,247,240,0.94));
    border-color: rgba(109,40,217,0.12);
    box-shadow: 0 24px 56px rgba(109,40,217,0.10);
}
.float-slow { animation: floatSlow 5s ease-in-out infinite; }
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes heroPosterFloatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-26px); }
}
@keyframes heroPosterFloatB {
    0%, 100% { transform: translateY(-14px); }
    50% { transform: translateY(26px); }
}
@keyframes heroPosterFloatC {
    0%, 100% { transform: translateY(8px); }
    50% { transform: translateY(-24px); }
}
@keyframes heroPosterFloatD {
    0%, 100% { transform: translateY(-8px); }
    50% { transform: translateY(24px); }
}
@keyframes heroPosterFloatE {
    0%, 100% { transform: translateY(6px); }
    50% { transform: translateY(-22px); }
}
.live-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem .6rem;
    font-size: .75rem;
    color: rgba(255,255,255,0.55);
}
[data-theme="light"] .live-top { color: #6b7280; }
.live-dot {
    width: 8px; height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,68,68,0.5); }
    50% { opacity: .6; box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}
.live-label { color: #fff; font-weight: 600; }
[data-theme="light"] .live-label,
[data-theme="light"] .live-time,
[data-theme="light"] .live-match,
[data-theme="light"] .live-desc,
[data-theme="light"] .live-meta {
    color: #15171c;
}
[data-theme="light"] .live-desc,
[data-theme="light"] .live-meta {
    color: #5a6473;
}
.live-time { margin-left: auto; }
.live-player {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0b12;
}
[data-theme="light"] .live-player {
    background: #e8e2f5;
}
.player-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.player-slide.active {
    opacity: 1;
    z-index: 2;
}
.player-fallback {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    transform: scale(1.08);
    animation: playerPan 8s ease-in-out infinite alternate;
    z-index: 0;
}
/* YouTube IFrame API replaces the player div with an iframe that has class
   "player-iframe". The scale is applied directly to this iframe element. */
.player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    /* Only opacity transitions; visibility changes instantly so the iframe
       disappears immediately when paused (no YouTube play button flash).
       Short fade-in so the video appears quickly once it starts playing. */
    transition: opacity 0.08s linear;
    pointer-events: none;
    overflow: hidden;
}
/* Full video — no cropping, no black bars.
   The video displays at its full natural size.
   playerVars (controls:0, modestbranding:1) minimize YouTube UI,
   and the state monitor hides the iframe if paused/buffering. */
.player-iframe,
.player-iframe iframe {
    transform: none;
    clip-path: none;
    pointer-events: none !important;
}
/* The iframe becomes visible ONLY when the video is actually playing AND
   the initial YouTube UI flash has passed. Before that, the themed fallback
   background is shown — the client never sees a black loading screen. */
.player-slide.video-playing .player-iframe {
    opacity: 1;
    visibility: visible;
}
.player-slide.video-playing .player-fallback {
    opacity: 0;
    transition: opacity 0.08s linear;
}
@keyframes playerPan {
    0% { transform: scale(1.08) translate3d(-2%, -1%, 0); }
    100% { transform: scale(1.12) translate3d(2%, 1%, 0); }
}
.player-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Edge masking keeps YouTube title/logo chrome less visible without
       introducing obvious hard bars for the client. */
    background:
        linear-gradient(180deg, rgba(10,11,18,0.70) 0, rgba(10,11,18,0.34) 44px, rgba(10,11,18,0.00) 96px),
        linear-gradient(0deg, rgba(10,11,18,0.54) 0, rgba(10,11,18,0.18) 28px, rgba(10,11,18,0.00) 78px),
        radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.42) 100%);
}
[data-theme="light"] .player-vignette {
    background:
        linear-gradient(180deg, rgba(232,226,245,0.78) 0, rgba(232,226,245,0.30) 44px, rgba(232,226,245,0.00) 96px),
        linear-gradient(0deg, rgba(232,226,245,0.58) 0, rgba(232,226,245,0.18) 28px, rgba(232,226,245,0.00) 78px),
        radial-gradient(ellipse at center, transparent 58%, rgba(109,40,217,0.12) 100%);
}
/* Shield: backup overlay. With the "iframe hidden until video-playing" approach,
   the iframe (and any YouTube UI) is invisible during loading/buffering/paused,
   so the themed fallback background is always shown. The shield stays hidden
   and only serves as an emergency cover layer. */
/* Transparent shield overlay — sits on top of the iframe and captures ALL
   pointer events (hover, click, move). This prevents YouTube from detecting
   mouse interaction, so its control bar / center play-pause button never
   appears. The shield is fully transparent — the user sees only the video. */
.player-shield {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: transparent;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.player-shield.hidden {
    opacity: 1;
    visibility: visible;
}
/* === Category animated backgrounds (HD video simulation) === */
.bg-sports {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,90,40,0.45), transparent 50%),
        radial-gradient(ellipse at 75% 65%, rgba(220,40,30,0.5), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(255,160,30,0.25), transparent 60%),
        linear-gradient(135deg, #2a0a0a 0%, #1a0808 50%, #3a0d05 100%);
    animation: playerPan 8s ease-in-out infinite alternate, sportsGlow 4s ease-in-out infinite alternate;
}
@keyframes sportsGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.15) saturate(1.3); }
}
.bg-cinema {
    background:
        radial-gradient(ellipse at 25% 35%, rgba(124,58,237,0.5), transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(50,30,120,0.6), transparent 55%),
        radial-gradient(ellipse at 45% 45%, rgba(167,139,250,0.3), transparent 60%),
        linear-gradient(135deg, #1a0f2e 0%, #0f0a1f 50%, #251040 100%);
    animation: playerPan 9s ease-in-out infinite alternate, cinemaShimmer 5s ease-in-out infinite alternate;
}
@keyframes cinemaShimmer {
    0% { filter: brightness(1) hue-rotate(0deg); }
    100% { filter: brightness(1.1) hue-rotate(10deg); }
}
.bg-news {
    background:
        radial-gradient(ellipse at 20% 40%, rgba(30,100,200,0.5), transparent 50%),
        radial-gradient(ellipse at 75% 55%, rgba(20,70,160,0.55), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(80,160,255,0.25), transparent 60%),
        linear-gradient(135deg, #0a1628 0%, #06101f 50%, #0d1e3a 100%);
    animation: playerPan 10s ease-in-out infinite alternate, newsPulse 3s ease-in-out infinite alternate;
}
@keyframes newsPulse {
    0% { filter: brightness(1) contrast(1); }
    100% { filter: brightness(1.12) contrast(1.15); }
}
.bg-kids {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,90,200,0.5), transparent 50%),
        radial-gradient(ellipse at 75% 65%, rgba(90,180,255,0.5), transparent 55%),
        radial-gradient(ellipse at 50% 20%, rgba(255,220,60,0.4), transparent 55%),
        radial-gradient(ellipse at 40% 80%, rgba(120,255,150,0.35), transparent 50%),
        linear-gradient(135deg, #1a1030 0%, #0f1a30 50%, #201040 100%);
    animation: playerPan 7s ease-in-out infinite alternate, kidsBounce 3s ease-in-out infinite alternate;
}
@keyframes kidsBounce {
    0% { filter: brightness(1) saturate(1.1); }
    100% { filter: brightness(1.15) saturate(1.5); }
}
.player-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    color: #fff;
    z-index: 7;
}
/* Decorative play button — hidden by default. Videos autoplay muted, so the
   client never needs to click play. Hiding it removes the "waiting" feeling. */
.player-play {
    display: none;
}
.live-match { padding: .8rem .6rem .2rem; font-weight: 600; font-size: .9rem; color: #fff; }
.live-desc { padding: 0 .6rem; font-size: .8rem; color: rgba(255,255,255,0.5); }
.live-meta { padding: .5rem .6rem; font-size: .7rem; color: rgba(255,255,255,0.4); }
.live-cats { display: flex; gap: .4rem; padding: .5rem .6rem; flex-wrap: wrap; }
.live-cats span {
    background: rgba(255,255,255,0.06);
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.live-cats span.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(124,58,237,0.5);
}
.live-cats span.cat-pill:hover:not(.active) {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
[data-theme="light"] .live-cats span {
    background: rgba(109,40,217,0.08);
    color: #5a6473;
    border-color: rgba(109,40,217,0.10);
}
[data-theme="light"] .live-cats span.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: rgba(109,40,217,0.30);
    box-shadow: 0 10px 24px rgba(109,40,217,0.18);
}
[data-theme="light"] .live-cats span.cat-pill:hover:not(.active) {
    background: rgba(109,40,217,0.14);
    color: #15171c;
}

/* ===== Ticker ===== */
.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    overflow: hidden;
    padding: .9rem 0;
}
.ticker-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}
.ticker-track span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .02em;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: .25s;
    min-width: 0;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.card-desc { color: var(--muted); font-size: .95rem; }

/* ===== Proof ===== */
.section-proof {
    background:
        radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
}
[data-theme="light"] .section-proof {
    background:
        radial-gradient(circle at top left, rgba(109,40,217,0.07), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.proof-card {
    position: relative;
    overflow: hidden;
}
.proof-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}
.proof-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
}

/* ===== Switch / comparison ===== */
.section-switch {
    background:
        radial-gradient(circle at top right, rgba(124,58,237,0.12), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
}
[data-theme="light"] .section-switch {
    background:
        radial-gradient(circle at top right, rgba(109,40,217,0.08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
}
.switch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.switch-card {
    padding: 1.8rem;
}
.switch-card-problem {
    border-color: rgba(239,68,68,0.18);
    background: linear-gradient(180deg, rgba(239,68,68,0.08), rgba(18,18,31,0.96));
}
.switch-card-solution {
    border-color: rgba(110,231,183,0.20);
    background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(18,18,31,0.96));
}
[data-theme="light"] .switch-card-problem {
    background: linear-gradient(180deg, rgba(239,68,68,0.07), rgba(255,255,255,0.98));
}
[data-theme="light"] .switch-card-solution {
    background: linear-gradient(180deg, rgba(109,40,217,0.08), rgba(255,255,255,0.98));
}
.switch-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .9rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-light);
}
[data-theme="light"] .switch-label {
    color: var(--primary);
}
.switch-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.switch-list {
    list-style: none;
    display: grid;
    gap: .8rem;
}
.switch-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--muted);
    line-height: 1.55;
}
.switch-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #fb7185;
    font-size: 1.2rem;
    line-height: 1.1;
}
.switch-list-good li::before {
    content: "✓";
    color: var(--success);
    font-size: .95rem;
    font-weight: 800;
    top: .2rem;
}
.decision-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow);
}
.decision-kicker {
    display: inline-block;
    margin-bottom: .45rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--primary);
    text-transform: uppercase;
}
.decision-copy h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .35rem;
}
.decision-copy p {
    color: var(--muted);
    line-height: 1.55;
}
.decision-points {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.decision-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
}
.decision-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    align-items: stretch;
}

/* ===== Comparison table ===== */
.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.compare-table th,
.compare-table td {
    padding: 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.compare-table th {
    background: rgba(124,58,237,0.08);
    color: var(--text);
    font-size: .92rem;
    font-weight: 700;
}
[data-theme="light"] .compare-table th {
    background: rgba(109,40,217,0.08);
}
.compare-table td {
    color: var(--muted);
    line-height: 1.55;
}
.compare-table tbody tr td:first-child {
    color: var(--text);
    font-weight: 700;
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Post order ===== */
.post-order-strip {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow);
}
.post-order-head {
    margin-bottom: 1rem;
}
.post-order-head .section-eyebrow {
    margin-bottom: .45rem;
}
.post-order-head h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .35rem;
}
.post-order-head p {
    color: var(--muted);
    line-height: 1.55;
}
.post-order-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}
.post-order-step {
    padding: .95rem 1rem;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.45;
}
.post-order-step strong {
    color: var(--primary);
}

/* ===== Catalog ===== */
.catalog-head {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .catalog-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.catalog-head .section-eyebrow { margin-bottom: .75rem; }
.catalog-head .section-title { text-align: left; margin-bottom: .5rem; }
.catalog-head .section-sub { text-align: left; margin: 0; }
.catalog-tabs {
    display: flex;
    gap: .25rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: .25rem;
    border-radius: 999px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: .5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    transition: .2s;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--primary); color: #ffffff; }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
/* Soft fade-in used when the catalog auto-switches between tabs */
.catalog-grid.is-switching { animation: catalogFadeIn 0.5s ease both; }
@keyframes catalogFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-grid.is-switching { animation: none; }
}
@media (min-width: 640px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(6, 1fr); }
}
.movie-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.movie-poster {
    aspect-ratio: 2/3;
    background-color: #1a1a2e;
    background-image: linear-gradient(135deg, #2a1f4a 0%, #1a1a2e 50%, #0f0f1e 100%);
    position: relative;
    overflow: hidden;
}
.movie-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.movie-card:hover .movie-img { transform: scale(1.05); }
.movie-poster::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.movie-card:hover .movie-poster::after { opacity: 1; }
.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: .75rem;
    pointer-events: none;
}
.movie-title {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-rating {
    position: absolute;
    top: .5rem; left: .5rem;
    background: rgba(0,0,0,0.75);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* ===== Channel cards ===== */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: .75rem;
    text-transform: uppercase;
}
.channel-card {
    position: relative;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    overflow: hidden;
    min-height: 240px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
[data-theme="light"] .channel-card {
    color: #15171c;
    border-color: rgba(109,40,217,0.10);
    box-shadow: 0 14px 34px rgba(109,40,217,0.08);
}
.channel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 1rem;
}
[data-theme="light"] .channel-head {
    opacity: 1;
    color: #5a6473;
}
.channel-count {
    background: rgba(255,255,255,0.12);
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
}
[data-theme="light"] .channel-count {
    background: rgba(109,40,217,0.10);
    color: var(--primary);
}
.channel-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.channel-logos img {
    width: 100%;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: .35rem;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}
.channel-card .card-title { color: #fff; margin: 0; }
[data-theme="light"] .channel-card .card-title { color: #15171c; }

.channel-sports { background: linear-gradient(135deg, #6b3410 0%, #2a1408 100%); }
.channel-cinema { background: linear-gradient(135deg, #3a2157 0%, #1a0f2e 100%); }
.channel-series { background: linear-gradient(135deg, #113a3a 0%, #0a1f1f 100%); }
.channel-news { background: linear-gradient(135deg, #333842 0%, #181b20 100%); }
.channel-kids { background: linear-gradient(135deg, #1e4a2e 0%, #0f2416 100%); }
.channel-intl { background: linear-gradient(135deg, #4a1e2e 0%, #241016 100%); }
[data-theme="light"] .channel-sports { background: linear-gradient(135deg, #fff0e3 0%, #f7dfd0 100%); }
[data-theme="light"] .channel-cinema { background: linear-gradient(135deg, #f3ebff 0%, #e4d9fb 100%); }
[data-theme="light"] .channel-series { background: linear-gradient(135deg, #e7f7f2 0%, #d7efe7 100%); }
[data-theme="light"] .channel-news { background: linear-gradient(135deg, #edf1f7 0%, #dfe6ef 100%); }
[data-theme="light"] .channel-kids { background: linear-gradient(135deg, #ebf9ee 0%, #dff2e4 100%); }
[data-theme="light"] .channel-intl { background: linear-gradient(135deg, #fdecef 0%, #f3dde5 100%); }

/* ===== Logo river (scrolling channel logos) ===== */
.logo-river {
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    padding: 1rem 0;
}
.logo-river-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
    padding: 0 1.5rem;
}
.logo-river:hover .logo-river-track {
    animation-play-state: paused;
}
.logo-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    min-width: 110px;
    height: 40px;
    flex-shrink: 0;
}
.logo-chip img {
    max-width: 110px;
    height: 28px;
    object-fit: contain;
}

/* ===== Devices ===== */
.devices { margin-top: 3rem; text-align: center; }
.devices-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.device-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.device-chip {
    background: var(--card);
    border: 1px solid var(--border);
    padding: .55rem 1.1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    transition: .2s;
}
.device-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-num {
    width: 48px; height: 48px;
    background: var(--primary-soft);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { color: var(--muted); font-size: .95rem; }

/* ===== Pricing ===== */
.pricing-grid { align-items: stretch; }
.pricing-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.pricing-grid-5 .plan-card { padding: 1.5rem 1.1rem; }
.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    position: relative;
    transition: .25s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.plan-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.reseller-credits {
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
.plan-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem;
    margin-bottom: .5rem;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}
.plan-save-pill {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    background: var(--primary-soft);
    color: var(--primary);
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.plan-save-green {
    background: rgba(52,211,153,0.12);
    color: #34d399;
}
.plan-price { font-size: 3rem; font-weight: 900; line-height: 1; }
.plan-per { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.reseller-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(52,211,153,0.12);
    color: #34d399;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    margin-top: .75rem;
    white-space: nowrap;
}
.reseller-discount-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #34d399;
    color: #0b0b14;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 900;
}
.reseller-subs-line {
    margin-top: .5rem;
    color: var(--muted);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.reseller-desc-text {
    margin: 1rem 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}
.plan-features { list-style: none; margin: 1.5rem 0; flex: 1 1 auto; }
.plan-features li {
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.plan-features li:last-child { border-bottom: none; }
.btn-plan { margin-top: .5rem; }

/* ===== Reseller ===== */
.reseller-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.reseller-grid .plan-card { padding: 1.5rem 1.1rem; }

@media (max-width: 1024px) {
    .reseller-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .reseller-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .reseller-grid { grid-template-columns: 1fr; }
    .pricing-grid-5 { grid-template-columns: 1fr; }
}

/* ===== Testimonials ===== */
.testimonial { display: flex; flex-direction: column; }
.testimonial-text { font-size: 1rem; margin-bottom: 1.5rem; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.avatar {
    width: 42px; height: 42px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary);
    font-size: .85rem;
}
.author-name { font-weight: 600; font-size: .9rem; }
.author-city { color: var(--muted); font-size: .8rem; }

/* ===== FAQ ===== */
.faq-container { max-width: 760px; margin: 0 auto; }
.faq-list { margin-top: 2rem; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: .75rem;
    overflow: hidden;
    background: var(--card);
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.faq-icon { font-size: 1.3rem; color: var(--primary); transition: .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    min-width: 0;
}
.contact-card .btn-whatsapp,
.contact-card .btn-outline { width: 100%; }
.contact-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.contact-card p { color: var(--muted); margin-bottom: 1.25rem; }
.contact-form-wrap { max-width: 640px; margin: 0 auto; }
.contact-form { margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.alert { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.success { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.alert.error { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ===== Final CTA ===== */
.section-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(167,139,250,0.06));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
    padding: 7rem 0 3rem;
    text-align: center;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--primary-soft), transparent);
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}
.page-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.content-text h2 { font-size: 1.5rem; font-weight: 800; margin: 1.5rem 0 .75rem; }
.content-text p { color: var(--muted); margin-bottom: 1rem; }
.feature-list { list-style: none; }
.feature-list li { padding: .6rem 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.feature-list li strong { color: var(--text); }
.highlight-card { text-align: left; }
.stat-list { margin: 1rem 0 1.5rem; }
.stat-row { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.stat-row span { color: var(--primary); font-weight: 800; min-width: 80px; }

/* Legal pages */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.5rem; color: var(--muted); }
.legal-content li { margin-bottom: .35rem; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 3rem; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-tag { color: var(--muted); margin-top: .75rem; font-size: .9rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
    color: var(--muted);
}
.disclaimer { font-size: .75rem; max-width: 400px; text-align: right; }

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 58px; height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    z-index: 99;
    transition: .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.modal-price { color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; }
.modal-form { display: flex; flex-direction: column; gap: .85rem; }
.modal-form input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
}
.modal-form input:focus { outline: none; border-color: var(--primary); }
.modal-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.modal-actions button { flex: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-media-wall {
        grid-template-columns: repeat(4, minmax(82px, 110px));
        gap: .6rem;
        opacity: 0.22;
        transform: perspective(900px) rotateY(-10deg);
        padding-right: .25rem;
    }
    .hero-media-column-e,
    .hero-media-column-f { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .switch-grid { grid-template-columns: 1fr; }
    .decision-strip { grid-template-columns: 1fr; }
    .decision-actions { flex-direction: row; flex-wrap: wrap; }
    .post-order-steps { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    /* Switch nav to burger mode to avoid overflow with 7 links */
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1rem; gap: 1rem; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-burger { display: block; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .disclaimer { text-align: center; }
}
@media (max-width: 600px) {
    .hero-media-wall {
        grid-template-columns: repeat(3, minmax(72px, 92px));
        inset: 4% -8% auto auto;
        gap: .45rem;
        opacity: 0.14;
        transform: none;
    }
    .hero-media-column-d { display: none; }
    /* Hide the "Get started" button on small screens — Pricing is in the mobile menu */
    .nav-actions > .btn-primary { display: none; }
    .nav-inner { padding: .75rem 1rem; gap: .75rem; }
    .compare-table th,
    .compare-table td { padding: .85rem .9rem; }
    .switch-card { padding: 1.35rem; }
    .decision-strip { padding: 1.15rem; }
    .post-order-strip { padding: 1.15rem; }
    .decision-actions { flex-direction: column; }
    .section { padding: 3.5rem 0; }
    .container { padding: 0 1rem; }
}
@media (max-width: 400px) {
    /* Trim the logo subtitle so the bar fits on very narrow phones */
    .logo-sub { display: none; }
    .nav-logo { font-size: 1rem; }
    .hero-title { font-size: 2rem; }
    .plan-price { font-size: 2.5rem; }
}
