 /* ============ THEME SYSTEM ============ */
        :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 - Deep Blue Gradient */
            --primary-50: #e6f1fe;
            --primary-100: #cce3fd;
            --primary-200: #99c7fb;
            --primary-300: #66aaf9;
            --primary-400: #338ef7;
            --primary-500: #0072f5;
            --primary-600: #005bc4;
            --primary-700: #004493;
            --primary-800: #002e62;
            --primary-900: #001731;

            /* Secondary Colors - Teal */
            --secondary-400: #14b8a6;
            --secondary-500: #0d9488;
            --secondary-600: #047857;

            /* Accent Colors - Indigo */
            --accent-400: #818cf8;
            --accent-500: #6366f1;
            --accent-600: #4f46e5;

            /* Backgrounds */
            --bg-primary: #ffffff;
            --bg-secondary: #f4f7fb;
            --bg-tertiary: #e8eef6;
            --bg-card: #ffffff;
            --bg-hover: #e6f1fe;

            /* Text Colors */
            --text-primary: #0a0f1e;
            --text-secondary: #004493;
            --text-tertiary: #0072f5;
            --text-muted: #64748b;
            --text-inverse: #ffffff;

            /* Borders */
            --border-color: #cce3fd;
            --border-hover: #99c7fb;

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgb(0 114 245 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 114 245 / 0.1), 0 2px 4px -2px rgb(0 114 245 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 114 245 / 0.1), 0 4px 6px -4px rgb(0 114 245 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 114 245 / 0.1), 0 8px 10px -6px rgb(0 114 245 / 0.1);

            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #0072f5 0%, #0d9488 100%);
            --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
            --gradient-hero: linear-gradient(135deg, #e6f1fe 0%, #cce3fd 50%, #e8eef6 100%);
        }

        /* Dark Theme */
        [data-theme="dark"] {
            /* Primary Colors - Deep Blue */
            --primary-50: #001731;
            --primary-100: #002e62;
            --primary-200: #004493;
            --primary-300: #005bc4;
            --primary-400: #0072f5;
            --primary-500: #338ef7;
            --primary-600: #66aaf9;
            --primary-700: #99c7fb;
            --primary-800: #cce3fd;
            --primary-900: #e6f1fe;

            /* Secondary Colors - Teal */
            --secondary-400: #14b8a6;
            --secondary-500: #0d9488;
            --secondary-600: #047857;

            /* Accent Colors - Indigo */
            --accent-400: #818cf8;
            --accent-500: #6366f1;
            --accent-600: #4f46e5;

            /* Backgrounds */
            --bg-primary: #000814;
            --bg-secondary: #001021;
            --bg-tertiary: #00182e;
            --bg-card: #001021;
            --bg-hover: #002e62;

            /* Text Colors */
            --text-primary: #f0f6ff;
            --text-secondary: #99c7fb;
            --text-tertiary: #66aaf9;
            --text-muted: #8b9cad;
            --text-inverse: #001021;

            /* Borders */
            --border-color: #004493;
            --border-hover: #0072f5;

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgb(0 114 245 / 0.3);
            --shadow-md: 0 4px 6px -1px rgb(0 114 245 / 0.3), 0 2px 4px -2px rgb(0 114 245 / 0.3);
            --shadow-lg: 0 10px 15px -3px rgb(0 114 245 / 0.3), 0 4px 6px -4px rgb(0 114 245 / 0.3);
            --shadow-xl: 0 20px 25px -5px rgb(0 114 245 / 0.3), 0 8px 10px -6px rgb(0 114 245 / 0.3);

            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #0072f5 0%, #0d9488 100%);
            --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
            --gradient-hero: linear-gradient(135deg, #001021 0%, #002e62 50%, #001731 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);
            }
        }
/* ===== Menu Utilisateur Connecté ===== */

/* Container du menu utilisateur */
.user-menu {
    position: relative;
}

/* Lien principal du profil utilisateur */
.user-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Avatar de l'utilisateur */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.user-link:hover .user-avatar {
    border-color: var(--primary-color, #e50914);
}

/* Icône utilisateur par défaut */
.user-icon {
    font-size: 28px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.user-link:hover .user-icon {
    color: var(--primary-color, #e50914);
}

/* Nom de l'utilisateur */
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Menu déroulant utilisateur */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 200px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Liens du menu déroulant */
.user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.user-dropdown .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color, #e50914);
    transform: translateX(5px);
}

.user-dropdown .dropdown-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.user-dropdown .dropdown-link:hover i {
    opacity: 1;
}

/* Séparateur dans le menu */
.user-dropdown .dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Animation d'entrée pour le menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu:hover .user-dropdown {
    animation: slideDown 0.3s ease forwards;
}

/* ===== Responsive Mobile ===== */

@media (max-width: 768px) {
    /* Fix pour le scroll du menu mobile */
    .nav-menu {
        display: none !important; /* Caché par défaut */
        position: fixed !important;
        top: 70px !important; /* Ajuster selon la hauteur de votre header */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 999 !important;
        padding-bottom: 50px !important;
        background: var(--bg-primary, #0a0a0a) !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    /* Menu visible */
    .nav-menu.show {
        display: block !important; /* Afficher quand la classe show est présente */
        transform: translateX(0);
    }
    
    /* Empêcher le body de défiler */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Styles de la scrollbar */
    .nav-menu::-webkit-scrollbar {
        width: 5px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 5px;
    }
    
    /* Ajustements pour le menu mobile */
    .nav-menu .user-menu {
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 30px;
    }
    
    /* Lien utilisateur en mobile */
    .user-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
    }
    
    /* Avatar plus grand en mobile */
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Icône plus grande en mobile */
    .user-icon {
        font-size: 36px;
    }
    
    /* Nom d'utilisateur plus visible */
    .user-name {
        font-size: 16px;
        max-width: none;
    }
    
    /* Menu déroulant en pleine largeur */
    .user-dropdown {
        position: static !important;
        width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Afficher/masquer le menu au clic */
    .user-menu.active .user-dropdown {
        display: block !important;
        max-height: 500px !important;
        padding: 10px 0 !important;
    }
    
    /* Liens du menu mobile */
    .user-dropdown .dropdown-link {
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 10px;
        margin: 5px 10px;
        background: transparent;
    }
    
    .user-dropdown .dropdown-link:active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .user-dropdown .dropdown-link i {
        font-size: 18px;
    }
    
    /* Flèche du dropdown */
    .user-link .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 12px;
    }
    
    .user-menu.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Séparateur plus visible */
    .user-dropdown .dropdown-divider {
        margin: 12px 20px;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ===== Tablettes ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .user-name {
        max-width: 100px;
        font-size: 13px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .user-dropdown {
        min-width: 180px;
    }
}

/* ===== Mode sombre/clair ===== */

/* Mode clair */
.light-mode .user-link {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .user-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.light-mode .user-avatar {
    border-color: rgba(0, 0, 0, 0.2);
}

.light-mode .user-dropdown {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .user-dropdown .dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .user-dropdown .dropdown-divider {
    background: rgba(0, 0, 0, 0.1);
}

/* Mode clair mobile */
@media (max-width: 768px) {
    .light-mode .nav-menu {
        background: #f5f5f5 !important;
    }
    
    .light-mode .user-link {
        background: rgba(0, 0, 0, 0.08);
    }
    
    .light-mode .user-dropdown {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .light-mode .user-dropdown .dropdown-link:active {
        background: rgba(0, 0, 0, 0.15);
    }
}

/* ===== Animations supplémentaires ===== */

/* Effet de pulsation pour les notifications */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Badge de notification (si nécessaire) */
.user-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color, #e50914);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ===== Accessibilité ===== */

/* Focus pour la navigation au clavier */
.user-link:focus,
.user-dropdown .dropdown-link:focus {
    outline: 2px solid var(--primary-color, #e50914);
    outline-offset: 2px;
}

/* Support pour les lecteurs d'écran */
.user-menu[aria-expanded="true"] .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Transitions fluides ===== */

/* Animation du menu mobile */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Préférence pour les animations réduites */
@media (prefers-reduced-motion: reduce) {
    .user-link,
    .user-dropdown,
    .user-dropdown .dropdown-link,
    .nav-menu {
        transition: none !important;
    }
    
    .user-menu:hover .user-dropdown {
        animation: none;
    }
}

/* ===== Corrections supplémentaires pour mobile ===== */
@media (max-width: 768px) {
    /* S'assurer que les éléments sont bien visibles */
    .nav-menu li {
        display: block;
        width: 100%;
    }
    
    /* Espacement uniforme */
    .nav-menu > li {
        margin: 0;
        padding: 0;
    }
    
    /* Style des liens de navigation */
    .nav-menu .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: right;
    }
}