/* ============================
   LinkHub TV — Dark Cinematic
   Mobile-first CSS
   ============================ */

/* --- Variables --- */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --bg-elevated: #16161f;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, .25);
    --cyan: #06b6d4;
    --green: #22c55e;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, .06);
    --border-light: rgba(255, 255, 255, .1);
    --glass: rgba(255, 255, 255, .04);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: .95rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--glass);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: .75rem 0;
    background: rgba(10, 10, 15, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}

.logo:hover {
    color: var(--accent-light);
}

.nav-links-desktop {
    display: none;
}

.nav-links-desktop a {
    color: var(--text-dim);
    font-size: .85rem;
    font-weight: 500;
    padding: .5rem .75rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-links-desktop a:hover {
    color: var(--text);
    background: var(--glass);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent), #4f46e5) !important;
    color: #fff !important;
    padding: .5rem 1rem !important;
    border-radius: 8px !important;
    font-size: .8rem !important;
}

.nav-cta:hover {
    opacity: .9;
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================
   HERO
   ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    background: url('/img/hero-bg.png') center right / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 10, 15, .92) 0%,
            rgba(10, 10, 15, .75) 40%,
            rgba(10, 10, 15, .55) 100%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.badge {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--border-light);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown .6s ease;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp .6s ease .1s both;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 2rem;
    animation: fadeInUp .6s ease .2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp .6s ease .3s both;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats span {
    font-size: .75rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
    animation: fadeInUp .6s ease .4s both;
}

/* =====================
   PLANS
   ===================== */
.plans-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition);
}

.plan-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.plan-featured {
    border-color: var(--accent) !important;
    box-shadow: 0 0 40px var(--accent-glow);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.plan-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.plan-specs span {
    font-size: .8rem;
    color: var(--text-dim);
    background: var(--glass);
    padding: .25rem .6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.plan-prices {
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    align-items: center;
    padding: .6rem .75rem;
    border-radius: 8px;
    transition: background var(--transition);
}

.price-row:hover {
    background: var(--glass);
}

.price-popular {
    background: rgba(99, 102, 241, .08) !important;
    border: 1px solid rgba(99, 102, 241, .2);
    border-radius: 8px;
}

.price-dur {
    flex: 1;
    font-size: .9rem;
    color: var(--text-dim);
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: .5rem;
}

.price-save {
    font-size: .7rem;
    font-weight: 600;
    background: rgba(34, 197, 94, .15);
    color: var(--green);
    padding: .15rem .4rem;
    border-radius: 4px;
}

.price-tag {
    font-size: .65rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    padding: .15rem .4rem;
    border-radius: 4px;
    margin-left: .35rem;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: left;
}

.guarantee span {
    font-size: 2rem;
}

.guarantee strong {
    display: block;
    margin-bottom: .25rem;
}

.guarantee p {
    font-size: .85rem;
    color: var(--text-dim);
}

/* =====================
   MOVIES
   ===================== */
.movies-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.m-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: .6rem 1rem;
    border-radius: var(--radius);
    font-size: .85rem;
    color: var(--text-dim);
}

.m-stat strong {
    color: var(--text);
}

.movies-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.tab {
    padding: .5rem 1.25rem;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tab:hover {
    color: var(--text);
    border-color: var(--border-light);
}

.tab.active {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    border-color: transparent;
}

.movies-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.movies-row::-webkit-scrollbar {
    height: 4px;
}

.movies-row::-webkit-scrollbar-track {
    background: transparent;
}

.movies-row::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.movie-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.movie-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-elevated);
}

.movie-info {
    padding: .75rem;
}

.movie-title {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    gap: .5rem;
    font-size: .7rem;
    color: var(--text-muted);
}

.movie-rating {
    color: #fbbf24;
}

.movies-loading {
    display: flex;
    align-items: center;
    gap: .75rem;
    justify-content: center;
    padding: 3rem;
    width: 100%;
    color: var(--text-dim);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* =====================
   FAQ
   ===================== */
.faq-list {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item[open] summary {
    background: var(--glass);
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
    animation: fadeIn .3s ease;
}

.faq-cta {
    text-align: center;
}

.faq-cta p {
    color: var(--text-dim);
    margin-bottom: .75rem;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: .85rem;
}

.footer-col h4 {
    font-size: .9rem;
    margin-bottom: .75rem;
    color: var(--text);
}

.footer-col li {
    margin-bottom: .5rem;
}

.footer-col a {
    color: var(--text-dim);
    font-size: .85rem;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25d366;
    color: #fff !important;
    padding: .6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: .85rem;
    transition: all var(--transition);
}

.footer-cta:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
}

/* =====================
   LEGAL PAGES
   ===================== */
.legal-hero {
    padding: 7rem 0 2rem;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.legal-content h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: var(--text);
}

.legal-content p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: .9rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: .9rem;
    list-style: disc;
    margin-bottom: .35rem;
}

.legal-content ol li {
    list-style: decimal;
}

.highlight-box {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--accent-light);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-card .stat-label {
    font-size: .8rem;
    color: var(--text-dim);
    margin-top: .25rem;
}

.value-item {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
}

.value-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.value-item strong {
    color: var(--text);
}

/* =====================
   LANGUAGE SELECTOR
   ===================== */
.lang-selector {
    position: relative;
    margin-left: .5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: .4rem .6rem;
    border-radius: 8px;
    color: var(--text);
    font-size: .8rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.lang-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, .1);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-size: .75rem;
    letter-spacing: .05em;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: .35rem;
    min-width: 160px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 150;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .5rem .75rem;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: .85rem;
    border-radius: 6px;
    transition: all var(--transition);
    text-align: left;
    cursor: pointer;
}

.lang-option:hover {
    background: var(--glass);
    color: var(--text);
}

.lang-option.active {
    background: rgba(99, 102, 241, .15);
    color: var(--accent-light);
    font-weight: 600;
}

/* =====================
   HERO FEATURES
   ===================== */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp .6s ease .25s both;
}

.hero-feat {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--green);
    font-weight: 500;
}

.hero-feat svg {
    stroke: var(--green);
    flex-shrink: 0;
}

/* =====================
   HERO GLOW BUTTON
   ===================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    animation: shimmer 2.5s ease infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =====================
   HERO LIVE INDICATOR
   ===================== */
.hero-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-size: .8rem;
    color: var(--text-muted);
    animation: fadeInUp .6s ease .5s both;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: live-pulse 1.5s ease infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, .6);
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

/* =====================
   HERO PARTICLES (Enhanced)
   ===================== */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: layout style;
}

/* Parallax-ready glow */
.hero-glow {
    will-change: transform;
    transition: transform .1s linear;
}

/* Base particle */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
}

/* Type: dot (default) */
.particle--dot {
    background: var(--accent-light);
    animation: particle-rise 7s ease-in-out infinite;
}

/* Type: ring (hollow circle) */
.particle--ring {
    background: transparent;
    border: 1px solid var(--accent-light);
    animation: particle-drift 9s ease-in-out infinite;
}

/* Type: cross (+) */
.particle--cross {
    background: transparent;
    animation: particle-spin 11s linear infinite;
}

.particle--cross::before,
.particle--cross::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cyan);
    border-radius: 1px;
}

.particle--cross::before {
    width: 60%;
    height: 1px;
}

.particle--cross::after {
    width: 1px;
    height: 60%;
}

/* Type: glow (soft blurred orb) */
.particle--glow {
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(2px);
    animation: particle-pulse 8s ease-in-out infinite;
}

/* ---- Particle keyframes ---- */
@keyframes particle-rise {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    15% {
        opacity: .45;
        transform: translateY(-15px) scale(1);
    }

    50% {
        opacity: .3;
        transform: translateY(-40px) translateX(10px) scale(.8);
    }

    85% {
        opacity: .15;
        transform: translateY(-70px) translateX(-5px) scale(.4);
    }
}

@keyframes particle-drift {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }

    20% {
        opacity: .35;
        transform: translate(15px, -20px) rotate(45deg) scale(1);
    }

    60% {
        opacity: .2;
        transform: translate(-10px, -50px) rotate(120deg) scale(.7);
    }

    90% {
        opacity: .08;
        transform: translate(5px, -80px) rotate(200deg) scale(.3);
    }
}

@keyframes particle-spin {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }

    10% {
        opacity: .3;
        transform: translateY(-10px) rotate(0deg) scale(1);
    }

    50% {
        opacity: .2;
        transform: translateY(-45px) translateX(20px) rotate(180deg) scale(.8);
    }

    95% {
        opacity: .05;
        transform: translateY(-90px) translateX(-10px) rotate(360deg) scale(.3);
    }
}

@keyframes particle-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    25% {
        opacity: .5;
        transform: scale(1.2);
    }

    50% {
        opacity: .3;
        transform: scale(.9) translateY(-20px);
    }

    75% {
        opacity: .15;
        transform: scale(1.1) translateY(-40px);
    }
}

/* ---- Animated stat counters ---- */
.stat strong {
    display: inline-block;
    min-width: 3ch;
}

.stat strong.counting {
    transition: none;
}

/* =====================
   FLOATING WHATSAPP
   ===================== */
.cta-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
    transition: all var(--transition);
    animation: pulse-wa 2s ease infinite;
}

.cta-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.cta-float svg {
    fill: #fff;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

@keyframes pulse-wa {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, .6);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   MOBILE NAV OVERLAY
   (outside header to avoid backdrop-filter containing block)
   ===================== */
.mobile-nav-overlay {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, .97);
    backdrop-filter: blur(16px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeIn .25s ease;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay a {
    color: var(--text-dim);
    font-size: 1.3rem;
    font-weight: 500;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
}

.mobile-nav-overlay a:hover {
    color: var(--text);
    background: var(--glass);
}

.mobile-nav-overlay .nav-cta {
    background: linear-gradient(135deg, var(--accent), #4f46e5) !important;
    color: #fff !important;
    padding: .75rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    margin-top: 1rem;
}

/* =====================
   RTL SUPPORT
   ===================== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .hero-content {
    text-align: center;
}

body.rtl .guarantee {
    text-align: right;
}

body.rtl .plan-badge {
    right: auto;
    left: 1.5rem;
}

body.rtl .price-save {
    margin-left: 0;
    margin-right: .5rem;
}

body.rtl .price-tag {
    margin-left: 0;
    margin-right: .35rem;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .highlight-box {
    border-left: none;
    border-right: 3px solid var(--accent);
    border-radius: var(--radius) 0 0 var(--radius);
}

body.rtl .value-item {
    padding-left: 0;
    padding-right: 1.5rem;
}

body.rtl .value-item::before {
    left: auto;
    right: 0;
}

body.rtl .footer-col {
    text-align: right;
}

body.rtl .faq-item summary {
    direction: rtl;
}

/* =====================
   HOW IT WORKS
   ===================== */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .15);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.step-card p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.step-connector {
    color: var(--border-light);
    flex-shrink: 0;
}

/* =====================
   TESTIMONIALS
   ===================== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
}

.review-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: .75rem;
}

.review-text {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: .9rem;
}

.review-author span {
    font-size: .8rem;
    color: var(--text-muted);
}

/* =====================
   DEVICES
   ===================== */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition);
}

.device-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
}

.device-card svg {
    color: var(--accent-light);
    margin: 0 auto .75rem;
}

.device-card h4 {
    font-size: .85rem;
    font-weight: 600;
}

.devices-note {
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: 1.5rem;
}

/* =====================
   TRIAL POPUP
   ===================== */
.trial-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.trial-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trial-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(.9);
    transition: transform .3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}

.trial-popup-overlay.active .trial-popup {
    transform: scale(1);
}

.trial-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.trial-popup-close:hover {
    color: var(--text);
}

.trial-popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trial-popup h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.trial-popup p {
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.trial-popup-timer {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.timer-unit {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .8rem;
    min-width: 60px;
}

.timer-unit .timer-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
}

.timer-unit .timer-label {
    font-size: .65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* =====================
   COOKIE CONSENT
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform .4s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .3);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner p {
    color: var(--text-dim);
    font-size: .85rem;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    border: none;
    padding: .5rem 1.25rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-btn-accept:hover {
    opacity: .9;
}

.cookie-btn-refuse {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.cookie-btn-refuse:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

/* =====================
   LIGHT/DARK TOGGLE
   ===================== */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: .4rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, .1);
}

/* Light mode palette */
body.light-mode {
    --bg: #f5f5fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --bg-elevated: #eeeef5;
    --text: #1a1a2e;
    --text-dim: #444466;
    --text-muted: #777799;
    --border: #d0d0e0;
    --border-light: #b0b0c8;
    --glass: rgba(99, 102, 241, .06);
    --shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

body.light-mode .navbar {
    background: rgba(245, 245, 250, .9);
    border-bottom-color: var(--border);
}

body.light-mode .hero {
    background: url('/img/hero-bg.png') center right / cover no-repeat;
}

body.light-mode .hero::before {
    background: linear-gradient(135deg,
            rgba(245, 245, 250, .93) 0%,
            rgba(245, 245, 250, .80) 40%,
            rgba(245, 245, 250, .60) 100%);
}

body.light-mode .hero-glow {
    background: radial-gradient(600px circle at 50% 30%, rgba(99, 102, 241, .12), transparent 60%);
}

body.light-mode .mobile-nav-overlay {
    background: rgba(245, 245, 250, .97);
}

body.light-mode .cookie-banner {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .08);
}

body.light-mode .trial-popup {
    box-shadow: 0 24px 48px rgba(0, 0, 0, .15);
}

/* =====================
   404 PAGE
   ===================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .5rem;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-links {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-card {
        flex: 0 0 160px;
    }

    .movie-card img {
        height: 230px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .devices-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .hero-stats strong {
        font-size: 2rem;
    }

    .movie-card {
        flex: 0 0 175px;
    }

    .movie-card img {
        height: 250px;
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-connector {
        display: block;
    }
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav-links-desktop {
        display: flex !important;
        align-items: center;
        gap: .25rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .movie-card {
        flex: 0 0 185px;
    }

    .steps-grid {
        flex-wrap: nowrap;
    }
}