/* ================================================
   CyaStream - Premium IPTV Platform CSS
   ================================================ */

/* Import additional styles */
@import url('sections.css');
@import url('components.css');

/* CSS Variables - Dark Theme (Default) */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    --accent-primary: #059669;
    --accent-secondary: #047857;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --accent-red: #ef4444;

    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a25 50%, #0f1f2f 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
}

/* Light Theme */
[data-theme="light"] {
    /* Colors */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaf0;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;

    --accent-primary: #059669;
    --accent-secondary: #047857;

    --gradient-hero: linear-gradient(135deg, #f8f9fc 0%, #e8eaf0 50%, #dce0eb 100%);

    /* Shadows - lighter for light mode */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.2);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.2);
}

/* Light theme specific overrides */
[data-theme="light"] .header.header-two-row {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

[data-theme="light"] .header.header-compact {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 252, 0.98) 100%);
}

[data-theme="light"] .header {
    background: rgba(248, 249, 252, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header.scrolled {
    background: rgba(248, 249, 252, 0.98);
}

[data-theme="light"] .hero-slide {
    --slide-bg: linear-gradient(135deg, #f8f9fc 0%, #e8eaf0 50%, #dce0eb 100%) !important;
}

[data-theme="light"] .hero-slide::before {
    background: radial-gradient(ellipse at 80% 50%, rgba(0, 204, 106, 0.1) 0%, transparent 50%);
}

[data-theme="light"] .logo i {
    background: linear-gradient(180deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .btn-primary {
    color: #ffffff;
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 204, 106, 0.1);
}

[data-theme="light"] .btn-account {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-account:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-drawer {
    background: #ffffff;
}

[data-theme="light"] .mobile-drawer-nav a:hover,
[data-theme="light"] .mobile-drawer-nav a.active {
    background: #f0f0f5;
}

[data-theme="light"] .footer {
    background: #1a1a2e;
    color: #ffffff;
}

[data-theme="light"] .footer .text-primary,
[data-theme="light"] .footer p,
[data-theme="light"] .footer a {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .preloader {
    background: #f8f9fc;
}

[data-theme="light"] .pricing-comparison-table {
    background: transparent;
}

[data-theme="light"] .pricing-comparison-table thead th {
    background: transparent;
}

/* Light theme - rows 1, 3, 5, 7, 9 get darker stripe */
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(1),
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(3),
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(5),
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(7),
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(9) {
    background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(1):hover,
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(3):hover,
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(5):hover,
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(7):hover,
[data-theme="light"] .pricing-comparison-table tbody tr:nth-child(9):hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .pricing-comparison-table .cta-row {
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 200, 255, 0.15) 100%) !important;
}

[data-theme="light"] .stat-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .device-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .content-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ================================================
   Header & Navigation
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: var(--shadow-md);
}

/* Two-Row Header Styles */
.header.header-two-row {
    height: auto;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: none;
}

.header-top-bar {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Support Info Styles */
.header-support-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-item i {
    color: var(--text-secondary);
    font-size: 1rem;
}

.support-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.support-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.support-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Centered Logo */
.logo.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
}

.logo.logo-center .accent {
    color: var(--text-primary);
}

/* Header Account Button */
.header-account {
    display: flex;
    align-items: center;
}

.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-account i {
    font-size: 0.9rem;
}

/* Navigation Bar */
.header-nav-bar {
    padding: 12px 0;
}

.nav.nav-centered {
    justify-content: center;
    height: auto;
    position: relative;
}

.nav.nav-centered .nav-menu {
    gap: 40px;
}

.nav.nav-centered .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile toggle for two-row header */
.header.header-two-row .mobile-toggle {
    display: none;
}

/* Compact Header (shown when scrolling up) */
.header.header-compact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1001;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.header-compact.visible {
    transform: translateY(0);
    opacity: 1;
}

.header.header-compact .nav {
    height: 70px;
}

.header.header-compact .logo {
    font-size: 1.4rem;
}

.header.header-compact .logo i {
    font-size: 1.5rem;
}

.header.header-compact .compact-nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.header.header-compact .compact-nav-menu .nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.header.header-compact .compact-nav-menu .nav-link:hover,
.header.header-compact .compact-nav-menu .nav-link.active {
    color: var(--text-primary);
}

.header.header-compact .btn-account {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.header.header-compact .mobile-toggle {
    display: none;
}

/* Header hidden state (when compact header is visible) */
.header.header-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(180deg, #fbbf24 0%, #f97316 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.preloader .logo-img,
.loader .logo-img {
    height: 100px;
}

.footer .logo-img {
    height: 44px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.1);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: #fff;
    color: #000;
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.purple-btn {
    background: var(--gradient-purple);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.purple-btn:hover {
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
}

.green-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* ================================================
   Theme Toggle Button - Pill Switch Design
   ================================================ */
.theme-toggle {
    position: relative;
    width: 70px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 4px;
    background: #e8e8e8;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-right: 12px;
}

.theme-toggle:hover {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* The sliding pill/thumb */
.theme-toggle::before {
    content: '';
    position: absolute;
    left: 4px;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.theme-toggle i {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

/* Sun icon - visible in light mode (positioned left) */
.theme-toggle .fa-sun {
    left: 10px;
    color: #f97316;
    opacity: 1;
    transform: scale(1);
}

/* Moon icon - visible in dark mode (positioned right) */
.theme-toggle .fa-moon {
    right: 10px;
    color: #6366f1;
    opacity: 0;
    transform: scale(0.5);
}

/* Dark mode toggle state (default) - pill slides to right, moon visible */
[data-theme="dark"] .theme-toggle,
html:not([data-theme="light"]) .theme-toggle {
    background: #1e1e2e;
}

[data-theme="dark"] .theme-toggle::before,
html:not([data-theme="light"]) .theme-toggle::before {
    transform: translateX(34px);
}

[data-theme="dark"] .theme-toggle .fa-sun,
html:not([data-theme="light"]) .theme-toggle .fa-sun {
    opacity: 0;
    transform: scale(0.5);
}

[data-theme="dark"] .theme-toggle .fa-moon,
html:not([data-theme="light"]) .theme-toggle .fa-moon {
    opacity: 1;
    transform: scale(1);
}

/* Light mode toggle state - pill on left, sun visible */
[data-theme="light"] .theme-toggle {
    background: #e8e8e8;
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(0);
}

[data-theme="light"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: scale(0.5);
}

/* Theme toggle tooltip */
.theme-toggle::after {
    content: 'Switch to light mode';
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.theme-toggle:hover::after {
    opacity: 0;
    visibility: hidden;
}

[data-theme="light"] .theme-toggle::after {
    content: 'Switch to dark mode';
}

/* Mobile theme toggle adjustments */
@media (max-width: 992px) {
    .theme-toggle {
        width: 60px;
        height: 32px;
    }

    .theme-toggle::before {
        width: 24px;
        height: 24px;
    }

    [data-theme="dark"] .theme-toggle::before,
    html:not([data-theme="light"]) .theme-toggle::before {
        transform: translateX(28px);
    }

    .theme-toggle i {
        font-size: 0.875rem;
    }

    .theme-toggle .fa-sun {
        left: 8px;
    }

    .theme-toggle .fa-moon {
        right: 8px;
    }

    .theme-toggle::after {
        display: none;
    }
}

/* Mobile Drawer Theme Toggle - Pill Switch Style */
.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-mobile:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hide the icons inside the button, we'll use the label switch instead */
.theme-toggle-mobile i {
    display: none;
}

.theme-toggle-mobile .theme-toggle-label {
    position: relative;
    width: 56px;
    height: 28px;
    background: #1e1e2e;
    border-radius: 50px;
    transition: background 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.theme-toggle-mobile .theme-toggle-label::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) translateX(24px);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-mobile .theme-toggle-label::after {
    content: 'Dark Mode';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="light"] .theme-toggle-mobile {
    background: #f0f0f5;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle-mobile:hover {
    background: #e0e0e8;
}

[data-theme="light"] .theme-toggle-mobile .theme-toggle-label {
    background: #e8e8e8;
}

[data-theme="light"] .theme-toggle-mobile .theme-toggle-label::before {
    transform: translateY(-50%) translateX(0);
}

[data-theme="light"] .theme-toggle-mobile .theme-toggle-label::after {
    content: 'Light Mode';
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ================================================
   Mobile Drawer Menu
   ================================================ */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: var(--accent-primary);
    min-height: 56px;
}

.mobile-drawer-close {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--bg-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-drawer-title {
    padding: 24px 24px 16px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-primary);
    background: var(--bg-secondary);
    text-align: left;
}

.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-drawer-nav li {
    border-bottom: 1px solid var(--bg-tertiary);
}

.mobile-drawer-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.mobile-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
}

.mobile-drawer-footer .btn-account-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-drawer-footer .btn-account-mobile:hover {
    background: var(--accent-secondary);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Two-row header hero padding adjustment */
.header-two-row~main .hero,
body:has(.header-two-row) .hero {
    padding-top: 120px;
}

.hero-slider {
    height: calc(100vh - var(--header-height));
}

.hero-slide {
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--slide-bg);
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge.purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

.hero-badge.green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-feature i {
    color: var(--accent-primary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--accent-primary);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.device-mockup {
    position: relative;
    background: linear-gradient(145deg, #1a1a25 0%, #0f0f18 100%);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-screen {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.channel-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.channel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.preview-info .channel-name {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.preview-info .program-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(26, 26, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    animation: float 3s ease-in-out infinite;
}

.floating-card span {
    color: #ffffff;
}

.floating-card i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

/* Movie Grid (Slide 2) */
.movie-grid {
    display: flex;
    gap: 16px;
    perspective: 1000px;
}

.movie-poster {
    width: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.movie-poster.featured {
    transform: scale(1.15);
    box-shadow: var(--shadow-glow-purple);
}

.movie-poster img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Sports Showcase (Slide 3) */
.sports-showcase {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.sport-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    font-size: 2.5rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sport-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.sport-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.sport-icon:nth-child(3) {
    animation-delay: 1s;
}

.sport-icon:nth-child(4) {
    animation-delay: 1.5s;
}

/* Swiper Customization */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* ================================================
   Mobile Header Responsive Styles
   ================================================ */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-actions .btn span {
        display: none;
    }

    .nav-actions .btn {
        padding: 10px 14px;
    }

    .nav-actions .btn i {
        margin: 0;
    }

    /* Two-row header responsive */
    .header-support-info {
        gap: 20px;
    }

    .support-text {
        flex-direction: row;
        gap: 5px;
    }

    .support-label {
        display: none;
    }

    .logo.logo-center {
        font-size: 1.5rem;
    }

    .nav.nav-centered .nav-menu {
        gap: 25px;
    }

    .btn-account span {
        display: none;
    }

    .btn-account {
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem;
        gap: 8px;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .header .container {
        padding: 0 16px;
    }

    /* Two-row header mobile */
    .header-support-info {
        display: none;
    }

    .logo.logo-center {
        position: static;
        transform: none;
        font-size: 1.4rem;
    }

    .header-top-content {
        justify-content: space-between;
    }

    .header-top-bar {
        padding: 12px 0;
    }

    .header-nav-bar {
        display: none;
    }

    .header-nav-bar.active {
        display: block;
    }

    .nav.nav-centered {
        flex-direction: column;
    }

    .nav.nav-centered .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    .nav.nav-centered .nav-link {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header.header-two-row .mobile-toggle {
        display: flex;
    }

    .header-account {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Compact header mobile styles */
    .header.header-compact .compact-nav-menu {
        display: none;
    }

    .header.header-compact .mobile-toggle {
        display: flex;
    }

    .header.header-compact .btn-account span {
        display: none;
    }

    .header.header-compact .btn-account {
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .logo i {
        font-size: 1.35rem;
    }

    .nav-actions .btn-primary {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .nav-actions .btn-primary span {
        display: inline;
        font-size: 0.75rem;
    }

    .nav-actions .btn-primary i {
        display: none;
    }

    .mobile-toggle {
        padding: 8px;
    }

    .mobile-toggle span {
        width: 20px;
    }

    /* Mobile Hero Section Fixes */
    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-slider {
        height: auto;
        min-height: calc(100vh - 70px);
    }

    .hero-slide {
        min-height: calc(100vh - 70px);
        height: auto;
        padding: 40px 0;
    }

    /* Hide non-active Swiper slides properly */
    .swiper-slide:not(.swiper-slide-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
        position: absolute !important;
        z-index: 0 !important;
    }

    .swiper-slide-active {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .hero-title {
        font-size: 1.75rem;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Show hero visual on mobile with responsive sizing */
    .hero-visual {
        display: block;
        max-width: 100%;
        margin: 30px auto 0;
        transform: scale(0.85);
        transform-origin: top center;
    }

    .device-mockup {
        max-width: 320px;
        margin: 0 auto;
    }

    /* Scale down floating cards on mobile */
    .floating-card {
        display: flex;
        padding: 8px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .floating-card i {
        font-size: 1rem;
    }

    .card-1 {
        top: 5%;
        right: 0;
    }

    .card-2 {
        bottom: 35%;
        left: 0;
    }

    .card-3 {
        bottom: 5%;
        right: 5%;
    }

    /* Movie grid mobile styles */
    .movie-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
        overflow-x: auto;
        padding: 10px 0;
    }

    .movie-poster {
        width: 60px;
        flex-shrink: 0;
    }

    .movie-poster img {
        height: 90px;
    }

    .movie-poster.featured {
        transform: scale(1.1);
    }

    /* Sports icons mobile styles */
    .sports-showcase {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sport-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .hero-content {
        text-align: center;
        padding: 0 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}