:root {
            --font-arabic: 'Cairo', sans-serif;
            --font-english: 'Poppins', sans-serif;
            
            /* Spacing System */
            --space-1: 0.25rem;
            --space-2: 0.5rem;
            --space-3: 0.75rem;
            --space-4: 1rem;
            --space-5: 1.25rem;
            --space-6: 1.5rem;
            --space-8: 2rem;
            --space-10: 2.5rem;
            --space-12: 3rem;
            --space-16: 4rem;
            --space-20: 5rem;
            
            /* Border Radius */
            --radius-sm: 0.375rem;
            --radius-md: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            --radius-2xl: 1.5rem;
            --radius-full: 9999px;
            
            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 200ms ease;
            --transition-slow: 300ms ease;
            
            /* Z-index */
            --z-dropdown: 10;
            --z-sticky: 50;
            --z-fixed: 100;
            --z-modal: 200;
            --z-popover: 300;
            --z-tooltip: 400;
        }

        /* Light Theme */
        [data-theme="light"] {
            /* Primary Colors - Purple/Pink Gradient */
            --primary-50: #fdf4ff;
            --primary-100: #fae8ff;
            --primary-200: #f5d0fe;
            --primary-300: #f0abfc;
            --primary-400: #e879f9;
            --primary-500: #d946ef;
            --primary-600: #c026d3;
            --primary-700: #a21caf;
            --primary-800: #86198f;
            --primary-900: #701a75;
            
            /* Secondary Colors - Cyan/Turquoise */
            --secondary-300: #67e8f9;
            --secondary-400: #22d3ee;
            --secondary-500: #06b6d4;
            --secondary-600: #0891b2;
            --secondary-700: #0e7490;
            
            /* Accent Colors - Indigo */
            --accent-400: #818cf8;
            --accent-500: #6366f1;
            --accent-600: #4f46e5;
            --accent-700: #4338ca;
            --accent-800: #3730a3;
            
            /* Backgrounds */
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --bg-tertiary: #f5f5f5;
            --bg-card: #ffffff;
            --bg-hover: #fdf4ff;
            
            /* Text Colors */
            --text-primary: #18181b;
            --text-secondary: #3f3f46;
            --text-tertiary: #52525b;
            --text-muted: #71717a;
            --text-inverse: #ffffff;
            
            /* Borders */
            --border-color: #e4e4e7;
            --border-hover: #f0abfc;
            
            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgb(168 85 247 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(168 85 247 / 0.1), 0 2px 4px -2px rgb(168 85 247 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(168 85 247 / 0.1), 0 4px 6px -4px rgb(168 85 247 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(168 85 247 / 0.1), 0 8px 10px -6px rgb(168 85 247 / 0.1);
            
            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
            --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
            --gradient-hero: linear-gradient(135deg, #fdf4ff 0%, #e0f2fe 100%);
            --gradient-dark: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%);
            --gradient-special: linear-gradient(135deg, #f472b6 0%, #7c3aed 50%, #06b6d4 100%);
        }

        /* Dark Theme */
        [data-theme="dark"] {
            /* Primary Colors - Purple/Pink */
            --primary-50: #581c87;
            --primary-100: #6b21a8;
            --primary-200: #7e22ce;
            --primary-300: #9333ea;
            --primary-400: #a855f7;
            --primary-500: #c084fc;
            --primary-600: #d8b4fe;
            --primary-700: #e9d5ff;
            --primary-800: #f3e8ff;
            --primary-900: #faf5ff;
            
            /* Secondary Colors - Cyan */
            --secondary-300: #0e7490;
            --secondary-400: #0891b2;
            --secondary-500: #06b6d4;
            --secondary-600: #22d3ee;
            --secondary-700: #67e8f9;
            
            /* Accent Colors - Pink */
            --accent-400: #f472b6;
            --accent-500: #ec4899;
            --accent-600: #db2777;
            --accent-700: #be185d;
            --accent-800: #9f1239;
            
            /* Backgrounds */
            --bg-primary: #030014;
            --bg-secondary: #0a0118;
            --bg-tertiary: #13032d;
            --bg-card: #0f0420;
            --bg-hover: #1a0533;
            
            /* Text Colors */
            --text-primary: #fafafa;
            --text-secondary: #e4e4e7;
            --text-tertiary: #d4d4d8;
            --text-muted: #a1a1aa;
            --text-inverse: #09090b;
            
            /* Borders */
            --border-color: #3f3f46;
            --border-hover: #a855f7;
            
            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgb(168 85 247 / 0.3);
            --shadow-md: 0 4px 6px -1px rgb(168 85 247 / 0.3), 0 2px 4px -2px rgb(168 85 247 / 0.3);
            --shadow-lg: 0 10px 15px -3px rgb(168 85 247 / 0.3), 0 4px 6px -4px rgb(168 85 247 / 0.3);
            --shadow-xl: 0 20px 25px -5px rgb(168 85 247 / 0.3), 0 8px 10px -6px rgb(168 85 247 / 0.3);
            
            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #c026d3 0%, #ec4899 100%);
            --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
            --gradient-hero: linear-gradient(135deg, #030014 0%, #13032d 50%, #0a0118 100%);
            --gradient-dark: linear-gradient(135deg, #13032d 0%, #030014 100%);
            --gradient-special: linear-gradient(135deg, #f472b6 0%, #7c3aed 50%, #06b6d4 100%);
        }

        /* ============ GLOBAL STYLES ============ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-arabic);
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            transition: background-color var(--transition-slow), color var(--transition-slow);
            overflow-x: hidden;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gradient-secondary);
        }

        /* Container */
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 var(--space-6);
        }

        /* ============ COMPONENTS ============ */

        /* Glass Effect */
        .glass {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-theme="light"] .glass {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
            padding: var(--space-3) var(--space-6);
            border-radius: var(--radius-lg);
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all var(--transition-base);
            cursor: pointer;
            border: none;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: var(--text-inverse);
            box-shadow: 0 0 20px rgba(0, 114, 245, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 30px rgba(0, 114, 245, 0.6);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-500);
            border: 2px solid var(--primary-500);
        }

        .btn-secondary:hover {
            background: var(--primary-500);
            color: var(--text-inverse);
            box-shadow: 0 0 20px rgba(0, 114, 245, 0.4);
        }

        .btn-glass {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-glass:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Cards */
        .card {
            background: var(--bg-card);
            border-radius: var(--radius-xl);
            padding: var(--space-6);
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            border: 1px solid var(--border-color);
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-500);
        }

        /* ============ HEADER ============ */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: var(--z-fixed);
            transition: all var(--transition-base);
            padding: var(--space-4) 0;
        }

        .header.scrolled {
            background: var(--bg-primary);
            box-shadow: var(--shadow-lg);
            padding: var(--space-3) 0;
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-8);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            text-decoration: none;
        }

        .logo-icon {
            width: 45px;
            height: 45px;
            background: var(--gradient-primary);
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: var(--space-2);
        }

        .nav-link {
            padding: var(--space-2) var(--space-4);
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            border-radius: var(--radius-lg);
            transition: all var(--transition-base);
            position: relative;
        }

        .nav-link:hover {
            color: var(--primary-500);
            background: var(--bg-hover);
        }

        .nav-link.active {
            color: var(--primary-500);
            background: var(--primary-50);
        }

        [data-theme="dark"] .nav-link.active {
            background: var(--primary-900);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .social-icons-header {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            margin-right: var(--space-3);
        }

        .social-icon-header {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            background: var(--bg-hover);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
            transition: all var(--transition-base);
            text-decoration: none;
        }

        .social-icon-header:hover {
            transform: translateY(-2px);
            border-color: var(--primary-500);
            color: var(--primary-500);
            background: var(--primary-50);
        }

        .social-icon-header.facebook:hover {
            background: #1877f2;
            color: white;
            border-color: #1877f2;
        }

        .social-icon-header.telegram:hover {
            background: #0088cc;
            color: white;
            border-color: #0088cc;
        }

        .social-icon-header.youtube:hover {
            background: #ff0000;
            color: white;
            border-color: #ff0000;
        }

        .social-icon-header.twitter:hover {
            background: #1da1f2;
            color: white;
            border-color: #1da1f2;
        }

        @media (max-width: 768px) {
            .social-icons-header {
                display: none;
            }
        }

        .search-trigger {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-lg);
            background: var(--bg-hover);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .search-trigger:hover {
            color: var(--primary-500);
            border-color: var(--primary-500);
            transform: scale(1.05);
        }

        .theme-toggle {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-lg);
            background: var(--gradient-primary);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all var(--transition-base);
            box-shadow: 0 0 20px rgba(0, 114, 245, 0.3);
        }

        .theme-toggle:hover {
            transform: rotate(180deg) scale(1.1);
        }

        /* ============ HERO SECTION ============ */
        .hero {
            min-height: 100vh;
            padding: calc(var(--space-20) + 80px) 0 var(--space-20);
            background: var(--gradient-hero);
            position: relative;
            overflow: hidden;
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.1;
            z-index: 0;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            background: var(--gradient-primary);
            filter: blur(40px);
            animation: float-shape 20s infinite ease-in-out;
        }

        .shape-1 {
            width: 400px;
            height: 400px;
            top: -200px;
            right: -100px;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 300px;
            height: 300px;
            bottom: -150px;
            left: -100px;
            animation-delay: 5s;
        }

        .shape-3 {
            width: 200px;
            height: 200px;
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes float-shape {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            33% {
                transform: translate(30px, -30px) scale(1.1);
            }

            66% {
                transform: translate(-20px, 20px) scale(0.9);
            }
        }

        .hero-content {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-12);
            align-items: center;
        }

        .hero-text h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.4;
            margin-bottom: var(--space-6);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: var(--space-8);
            line-height: 1.8;
        }

        .hero-buttons {
            display: flex;
            gap: var(--space-4);
            flex-wrap: wrap;
            margin-bottom: var(--space-8);
        }

        .hero-stats {
            display: flex;
            gap: var(--space-8);
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            background: var(--gradient-secondary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-label {
            font-size: 0.875rem;
            color: var(--text-tertiary);
        }

        .hero-visual {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-image {
            width: 100%;
            max-width: 500px;
            height: auto;
            filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
            animation: levitate 6s ease-in-out infinite;
        }

        @keyframes levitate {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        .hero-decoration {
            position: absolute;
            width: 120%;
            height: 120%;
            background: var(--gradient-primary);
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.3;
            z-index: -1;
        }

        /* ============ FEATURES SECTION ============ */
        .features {
            padding: var(--space-20) 0;
            background: var(--bg-secondary);
        }

        .section-header {
            text-align: center;
            margin-bottom: var(--space-12);
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            margin-bottom: var(--space-4);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: var(--space-6);
        }

        .feature-card {
            padding: var(--space-8);
            border-radius: var(--radius-2xl);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            transition: all var(--transition-slow);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: translateX(-100%);
            transition: transform var(--transition-slow);
        }

        .feature-card:hover::before {
            transform: translateX(0);
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-500);
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            background: var(--gradient-primary);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            margin-bottom: var(--space-6);
            box-shadow: 0 0 30px rgba(0, 114, 245, 0.4);
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: var(--space-3);
            color: var(--text-primary);
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ============ STATS SECTION ============ */
        .stats-section {
            background-color: var(--bg-primary);
            padding: var(--space-16) 0;
            position: relative;
        }

        .stats-container {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: var(--space-6);
            padding: 0 var(--space-6);
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius-xl);
            padding: var(--space-8);
            text-align: center;
            transition: var(--transition-base);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-primary);
        }

        .stat-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-500);
        }

        .stat-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: var(--space-4);
            color: var(--text-secondary);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
            margin-bottom: var(--space-2);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* ============ MOVIES SECTION ============ */
        .movies {
            padding: var(--space-20) 0;
            background: var(--bg-primary);
        }

        .movies-tabs {
            display: flex;
            justify-content: center;
            gap: var(--space-2);
            margin-bottom: var(--space-8);
            flex-wrap: wrap;
        }

        .tab-button {
            padding: var(--space-3) var(--space-6);
            background: transparent;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-full);
            color: var(--text-secondary);
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .tab-button:hover {
            border-color: var(--primary-500);
            color: var(--primary-500);
        }

        .tab-button.active {
            background: var(--gradient-primary);
            border-color: transparent;
            color: white;
            box-shadow: 0 0 20px rgba(0, 114, 245, 0.4);
        }

        .movies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: var(--space-6);
        }

        .movie-card {
            position: relative;
            border-radius: var(--radius-xl);
            overflow: hidden;
            background: var(--bg-card);
            cursor: pointer;
            transition: all var(--transition-slow);
            height: 300px;
            group: movie;
        }

        .movie-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-xl);
        }

        .movie-poster {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all var(--transition-slow);
        }

        .movie-card:hover .movie-poster {
            transform: scale(1.1);
            filter: brightness(0.7);
        }

        .movie-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: var(--space-6);
            background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
            transform: translateY(100%);
            transition: transform var(--transition-slow);
        }

        .movie-card:hover .movie-info {
            transform: translateY(0);
        }

        .movie-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: white;
            margin-bottom: var(--space-2);
        }

        .movie-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
        }

        .movie-rating {
            display: flex;
            align-items: center;
            gap: var(--space-1);
            color: #fbbf24;
        }

        .movie-year {
            color: rgba(255, 255, 255, 0.8);
        }

        .play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 70px;
            height: 70px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            transition: all var(--transition-slow);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .movie-card:hover .play-overlay {
            transform: translate(-50%, -50%) scale(1);
        }

        /* ============ CATEGORIES ============ */
        .categories {
            padding: var(--space-20) 0;
            background: var(--bg-secondary);
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-6);
        }

        .category-card {
            position: relative;
            height: 250px;
            border-radius: var(--radius-2xl);
            overflow: hidden;
            cursor: pointer;
            transition: all var(--transition-slow);
        }

        .category-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }

        .category-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all var(--transition-slow);
        }

        .category-card:hover .category-bg {
            transform: scale(1.1);
        }

        .category-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 114, 245, 0.8) 0%, rgba(13, 148, 136, 0.8) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all var(--transition-slow);
        }

        .category-card:hover .category-overlay {
            background: linear-gradient(135deg, rgba(0, 114, 245, 0.9) 0%, rgba(13, 148, 136, 0.9) 100%);
        }

        .category-icon {
            font-size: 3rem;
            margin-bottom: var(--space-4);
        }

        .category-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: var(--space-2);
        }

        .category-count {
            font-size: 0.875rem;
            opacity: 0.9;
        }

        /* ============ NEWSLETTER ============ */
        .newsletter {
            padding: var(--space-20) 0;
            background: var(--gradient-primary);
            position: relative;
            overflow: hidden;
        }

        .newsletter-container {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
        }

        .newsletter-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 800;
            color: white;
            margin-bottom: var(--space-4);
        }

        .newsletter-subtitle {
            font-size: 1.125rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: var(--space-8);
        }

        .newsletter-form {
            display: flex;
            gap: var(--space-4);
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-input {
            flex: 1;
            padding: var(--space-4) var(--space-6);
            border-radius: var(--radius-full);
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            backdrop-filter: blur(10px);
            transition: all var(--transition-base);
            direction: ltr;
            text-align: left;
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.7);
            direction: rtl;
            text-align: right;
        }

        .newsletter-input:focus {
            outline: none;
            border-color: white;
            background: rgba(255, 255, 255, 0.2);
        }

        .newsletter-button {
            padding: var(--space-4) var(--space-8);
            border-radius: var(--radius-full);
            background: white;
            color: var(--primary-600);
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .newsletter-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .newsletter-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.1;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        /* ============ FOOTER ============ */
        .footer {
            padding: var(--space-16) 0 var(--space-8);
            background: var(--bg-tertiary);
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-8);
            margin-bottom: var(--space-12);
        }

        .footer-section h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: var(--space-4);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }

        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all var(--transition-base);
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
        }

        .footer-link:hover {
            color: var(--primary-500);
            transform: translateX(-5px);
        }

        .footer-social {
            display: flex;
            gap: var(--space-3);
        }

        .social-link {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-lg);
            background: var(--bg-hover);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all var(--transition-base);
        }

        .social-link:hover {
            background: var(--gradient-primary);
            color: white;
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 114, 245, 0.4);
            border-color: transparent;
        }

        .footer-bottom {
            text-align: center;
            padding-top: var(--space-8);
            border-top: 1px solid var(--border-color);
            color: var(--text-tertiary);
        }

        /* ============ UTILITIES ============ */
        .back-to-top {
            position: fixed;
            bottom: var(--space-8);
            right: var(--space-8);
            width: 56px;
            height: 56px;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8);
            transition: all var(--transition-slow);
            box-shadow: 0 8px 20px rgba(0, 114, 245, 0.4);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }

        .back-to-top:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 30px rgba(0, 114, 245, 0.6);
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            width: 44px;
            height: 44px;
            background: var(--bg-hover);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            color: var(--text-primary);
            font-size: 1.25rem;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        /* ============ SEARCH MODAL ============ */
        .search-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: var(--z-modal);
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-slow);
        }

        .search-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .search-container {
            width: 90%;
            max-width: 600px;
            background: var(--bg-card);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            transform: scale(0.9);
            transition: all var(--transition-slow);
            box-shadow: var(--shadow-xl);
        }

        .search-modal.active .search-container {
            transform: scale(1);
        }

        .search-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-6);
        }

        .search-title {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .search-close {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-lg);
            background: var(--bg-hover);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .search-close:hover {
            background: var(--primary-500);
            color: white;
            transform: rotate(90deg);
        }

        .search-form {
            display: flex;
            gap: var(--space-3);
            margin-bottom: var(--space-6);
        }

        .search-input {
            flex: 1;
            padding: var(--space-4) var(--space-6);
            border-radius: var(--radius-full);
            border: 2px solid var(--border-color);
            background: var(--bg-hover);
            font-size: 1rem;
            transition: all var(--transition-base);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-500);
        }

        /* ============ RESPONSIVE ============ */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-visual {
                order: -1;
                margin-bottom: var(--space-8);
            }

            .hero-buttons {
                justify-content: center;
            }

            .hero-stats {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 320px;
                height: 100vh;
                background: var(--bg-secondary);
                flex-direction: column;
                padding: var(--space-20) var(--space-6) var(--space-6);
                box-shadow: var(--shadow-xl);
                transition: right var(--transition-slow);
                z-index: var(--z-fixed);
            }

            .nav-menu.active {
                right: 0;
            }

            .nav-link {
                width: 100%;
                padding: var(--space-4);
            }

            .mobile-menu-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .newsletter-button {
                width: 100%;
            }

            .movies-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-4);
            }

            .categories-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-social {
                justify-content: center;
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 var(--space-4);
            }

            .hero-text h1 {
                font-size: 2rem;
            }

            .movies-grid {
                grid-template-columns: 1fr;
            }

            .stats-container {
                grid-template-columns: 1fr;
            }
        }

        /* ============ ANIMATIONS ============ */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-12);
            color: var(--text-secondary);
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border-color);
            border-top-color: var(--primary-500);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: var(--space-4);
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Séparateur */
        .nav-separator {
            display: none;
        }

        @media (min-width: 769px) {
            .nav-separator {
                display: block;
                width: 1px;
                height: 20px;
                background: var(--border-color);
                margin: 0 var(--space-3);
                align-self: center;
            }
        }

        /* Dropdown Arrow */
        .dropdown-arrow {
            font-size: 0.7rem;
            margin-right: auto;
            opacity: 0.6;
            transition: transform var(--transition-base);
        }

        .nav-item-dropdown:hover .dropdown-arrow {
            transform: rotate(180deg);
        }

        /* ========== AUTH ICONS STYLES ========== */
        .nav-auth-icon {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex !important;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-base);
            position: relative;
            font-size: 1.3rem;
            padding: 0 !important;
        }

        /* Login Icon - Dark Theme */
        .nav-auth-icon:first-of-type {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: var(--text-secondary);
        }

        .nav-auth-icon:first-of-type:hover {
            background: var(--bg-hover);
            border-color: var(--primary-500);
            color: var(--primary-500);
            transform: scale(1.1);
        }

        /* Register Icon - Dark Theme */
        .nav-register {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: var(--text-secondary) !important;
        }

        .nav-register:hover {
            background: var(--bg-hover);
            border-color: var(--primary-500);
            color: var(--primary-500) !important;
            transform: scale(1.1);
        }

        .nav-register i {
            color: inherit !important;
        }

        /* ========== LIGHT THEME STYLES ========== */
        /* Login Icon - Light Theme */
        [data-theme="light"] .nav-auth-icon:first-of-type {
            background: #ffffff;
            border: 2px solid #e5e7eb;
            color: #6b7280;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .nav-auth-icon:first-of-type:hover {
            background: #f3f4f6;
            border-color: #2563eb;
            color: #2563eb;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        /* Register Icon - Light Theme */
        [data-theme="light"] .nav-register {
            background: #ffffff;
            border: 2px solid #e5e7eb;
            color: #6b7280 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .nav-register:hover {
            background: #f3f4f6;
            border-color: #2563eb;
            color: #2563eb !important;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .nav-register i {
            color: inherit !important;
        }

        /* Badge */
        .auth-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ef4444;
            color: white;
            font-size: 0.6rem;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 700;
            animation: pulse 2s infinite;
        }

        /* Badge en mode light */
        [data-theme="light"] .auth-badge {
            background: #dc2626;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.9;
            }
        }

        /* Tooltip */
        .nav-auth-icon::after {
            content: attr(title);
            position: absolute;
            bottom: -35px;
            right: 50%;
            transform: translateX(50%);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
            z-index: var(--z-tooltip);
        }

        /* Tooltip en mode light */
        [data-theme="light"] .nav-auth-icon::after {
            background: #374151;
            color: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .nav-auth-icon:hover::after {
            opacity: 1;
            bottom: -40px;
        }

        /* Dropdown styles (reste inchangé) */
        .nav-item-dropdown {
            position: relative;
        }

        .nav-item-dropdown .nav-link {
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            min-width: 220px;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all var(--transition-base);
            z-index: var(--z-dropdown);
            list-style: none;
            padding: var(--space-2);
            margin-top: var(--space-2);
        }

        .dropdown-menu-wide {
            min-width: 350px;
            padding: var(--space-3);
        }

        [data-theme="light"] .dropdown-menu {
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .nav-item-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-divider {
            height: 1px;
            background: var(--border-color);
            margin: var(--space-2) 0;
            opacity: 0.3;
        }

        .dropdown-section {
            margin-bottom: var(--space-3);
        }

        .dropdown-section:last-child {
            margin-bottom: 0;
        }

        .dropdown-section-title {
            font-weight: 600;
            color: var(--primary-500);
            font-size: 0.9rem;
            margin-bottom: var(--space-2);
            padding: 0 var(--space-2);
        }

        .dropdown-section ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .dropdown-link {
            display: block;
            padding: var(--space-3) var(--space-4);
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: var(--radius-md);
            transition: all var(--transition-base);
            font-size: 0.95rem;
        }

        .dropdown-link-sub {
            display: block;
            padding: var(--space-2) var(--space-4);
            padding-right: var(--space-8);
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all var(--transition-base);
            border-radius: var(--radius-sm);
        }

        .dropdown-link:hover,
        .dropdown-link-sub:hover {
            background: var(--bg-hover);
            color: var(--primary-500);
            transform: translateX(-3px);
        }

        /* Mobile styles */
        @media (max-width: 768px) {
            .nav-item-dropdown {
                position: static;
            }

            .dropdown-menu,
            .dropdown-menu-wide {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                background: transparent;
                backdrop-filter: none;
                margin: 0;
                padding: 0;
                margin-right: var(--space-4);
                max-height: 0;
                overflow: hidden;
                transition: max-height var(--transition-slow);
                min-width: auto;
            }

            .nav-item-dropdown.active .dropdown-menu {
                max-height: 600px;
            }

            .nav-item-dropdown.active .dropdown-arrow {
                transform: rotate(180deg);
            }

            /* Auth icons sur mobile */
            .nav-auth-icon {
                margin: var(--space-2) 0;
            }

            .nav-auth-icon::after {
                display: none;
            }
        }

        /* Typography */
        .nav-link {
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        /* Animation pour desktop */
        @media (min-width: 769px) {
            .dropdown-menu::before {
                content: '';
                position: absolute;
                top: -6px;
                right: 20px;
                width: 12px;
                height: 12px;
                background: inherit;
                border-top: 1px solid var(--border-color);
                border-left: 1px solid var(--border-color);
                transform: rotate(45deg);
            }
        }