        /* Emby Color Scheme */
        :root {
            --primary-color: #52b54b;
            --primary-dark: #3a8a35;
            --primary-light: #6bc95e;
            --secondary-color: #52b54b;
            --dark-bg: #101010;
            --light-bg: #1a1a1a;
            --card-bg: #242424;
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --success-color: #52b54b;
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
        }
        
        /* RTL Support for Arabic with Tajawal Font */
        html[dir="rtl"],
        html[dir="rtl"] body,
        body[dir="rtl"] {
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        /* Ensure all text elements use Tajawal in RTL */
        html[dir="rtl"] *,
        body[dir="rtl"] * {
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        /* Better Arabic typography */
        html[dir="rtl"] {
            line-height: 1.8;
        }
        
        html[dir="rtl"] h1,
        html[dir="rtl"] h2,
        html[dir="rtl"] h3,
        html[dir="rtl"] h4,
        html[dir="rtl"] h5,
        html[dir="rtl"] h6 {
            font-weight: 700;
            line-height: 1.4;
        }
        
        html[dir="rtl"] p {
            line-height: 1.8;
        }
        
        /* Preserve monospace fonts even in RTL */
        html[dir="rtl"] code,
        html[dir="rtl"] pre,
        html[dir="rtl"] kbd,
        html[dir="rtl"] samp {
            font-family: 'Courier New', Courier, monospace;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Navbar */
        .navbar,
        nav.navbar {
            background: rgba(10, 10, 10, 0.35) !important;
            background-color: rgba(10, 10, 10, 0.35) !important;
            -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
            backdrop-filter: blur(18px) saturate(160%) !important;
            padding: 1rem 0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
            border-bottom: 2px solid var(--primary-color) !important;
            position: fixed !important;
            left: 0;
            right: 0;
            top: 0;
            z-index: 1000;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            position: relative;
        }

        .nav-content .nav-links {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            padding: 0;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            margin-left: auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo h1 {
            font-size: 1.25rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .emby-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a:not(.btn-primary),
        .navbar .nav-links li a:not(.btn-primary) {
            color: var(--primary-color) !important;
            text-decoration: none;
            transition: var(--transition);
            font-weight: 500;
        }

        .nav-links a:not(.btn-primary):hover,
        .navbar .nav-links li a:not(.btn-primary):hover {
            color: #ffffff !important;
        }

        /* Language Dropdown */
        .language-selector {
            position: relative;
        }

        .premium-language-btn {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.18), rgba(82, 181, 75, 0.08));
            border: 1px solid rgba(107, 201, 94, 0.5);
            color: var(--text-primary);
            padding: 0.72rem 1rem;
            border-radius: 999px;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            min-width: 94px;
            justify-content: center;
            backdrop-filter: blur(12px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .language-btn-glow {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 42%), linear-gradient(135deg, transparent 20%, rgba(255,255,255,0.06), transparent 80%);
            pointer-events: none;
        }

        .language-icon,
        .language-text,
        .language-caret {
            position: relative;
            z-index: 1;
        }

        .language-icon {
            font-size: 0.95rem;
            filter: drop-shadow(0 0 8px rgba(107, 201, 94, 0.35));
        }

        .language-text {
            font-size: 0.85rem;
            text-transform: uppercase;
        }

        .language-caret {
            font-size: 0.9rem;
            opacity: 0.8;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .premium-language-btn[aria-expanded="true"] .language-caret {
            transform: rotate(180deg);
            opacity: 1;
        }

        .premium-language-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(107, 201, 94, 0.85);
            box-shadow: 0 14px 30px rgba(82, 181, 75, 0.18), 0 10px 24px rgba(0, 0, 0, 0.22);
        }

        .premium-language-btn:hover,
        .premium-language-btn:focus-visible {
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.28), rgba(82, 181, 75, 0.12));
            outline: none;
        }

        .premium-language-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 0.7rem);
            right: 0;
            background: linear-gradient(180deg, rgba(29, 29, 29, 0.98), rgba(18, 18, 18, 0.98));
            border: 1px solid rgba(107, 201, 94, 0.28);
            border-radius: 18px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.06);
            min-width: 220px;
            z-index: 1002;
            padding: 0.5rem;
            backdrop-filter: blur(20px);
            overflow: hidden;
        }

        .premium-language-dropdown.active {
            display: block;
            animation: dropdownFadeIn 0.18s ease-out;
        }

        .premium-language-dropdown a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            color: var(--text-primary);
            text-decoration: none;
            transition: var(--transition);
            border-radius: 12px;
            border-bottom: none;
        }

        .premium-language-dropdown a:hover {
            background-color: rgba(82, 181, 75, 0.14);
            color: #fff;
        }

        .premium-language-dropdown a.active {
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.24), rgba(82, 181, 75, 0.1));
            color: #fff;
            font-weight: 700;
        }

        .lang-pill {
            min-width: 42px;
            padding: 0.32rem 0.55rem;
            border-radius: 999px;
            text-align: center;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            background: rgba(82, 181, 75, 0.16);
            border: 1px solid rgba(107, 201, 94, 0.24);
            color: var(--primary-light);
        }

        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            width: 46px;
            height: 46px;
            border-radius: 14px;
            border: 1px solid rgba(107, 201, 94, 0.35);
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.18), rgba(82, 181, 75, 0.08));
            color: var(--text-primary);
            font-size: 1.35rem;
            cursor: pointer;
            transition: var(--transition);
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        }

        .mobile-menu-btn:hover,
        .mobile-menu-btn:focus-visible {
            color: #fff;
            border-color: rgba(107, 201, 94, 0.8);
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.3), rgba(82, 181, 75, 0.14));
            outline: none;
        }

        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 998;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-menu-overlay.active {
            display: block;
            opacity: 1;
        }

        .mobile-menu {
            display: none !important;
            background-color: var(--light-bg);
            padding: 1rem;
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            border-bottom: 2px solid var(--primary-color);
            z-index: 999;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            max-height: calc(100vh - 70px);
            overflow-y: auto;
        }

        .mobile-menu.active {
            display: block !important;
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-menu ul {
            list-style: none;
        }

        .mobile-menu li {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(82, 181, 75, 0.1);
        }

        .mobile-menu a {
            color: var(--text-primary);
            text-decoration: none;
            display: block;
        }

        /* Buttons */
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
            padding: 0.6rem 1.5rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            display: inline-block;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-weight: 600;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(82, 181, 75, 0.4);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-primary);
            padding: 0.6rem 1.5rem;
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            text-decoration: none;
            display: inline-block;
            transition: var(--transition);
            font-weight: 600;
        }

        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-large {
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
        }

        /* Hero Section */
        .hero {
            padding: 9rem 0 7rem;
            position: relative;
            text-align: center;
            border-bottom: 3px solid var(--primary-color);
            overflow: hidden;
            min-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Background Container */
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            overflow: hidden;
        }

        /* Background Image */
        .background-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('emby_tv.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 0;
        }

        /* Animated Particles */
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .particles span {
            position: absolute;
            bottom: -80px;
            background: rgba(82, 181, 75, 0.2);
            border-radius: 50%;
            box-shadow: 0 0 15px rgba(82, 181, 75, 0.3);
            animation: rise infinite ease-in-out;
        }

        /* 25 bubbles with varied sizes and speeds */
        .particles span:nth-child(1) { left: 5%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 0s; }
        .particles span:nth-child(2) { left: 10%; width: 35px; height: 35px; animation-duration: 25s; animation-delay: 2s; }
        .particles span:nth-child(3) { left: 15%; width: 15px; height: 15px; animation-duration: 20s; animation-delay: 4s; }
        .particles span:nth-child(4) { left: 22%; width: 45px; height: 45px; animation-duration: 30s; animation-delay: 1s; }
        .particles span:nth-child(5) { left: 28%; width: 25px; height: 25px; animation-duration: 22s; animation-delay: 6s; }
        .particles span:nth-child(6) { left: 35%; width: 12px; height: 12px; animation-duration: 17s; animation-delay: 3s; }
        .particles span:nth-child(7) { left: 42%; width: 40px; height: 40px; animation-duration: 28s; animation-delay: 5s; }
        .particles span:nth-child(8) { left: 48%; width: 18px; height: 18px; animation-duration: 19s; animation-delay: 7s; }
        .particles span:nth-child(9) { left: 55%; width: 30px; height: 30px; animation-duration: 24s; animation-delay: 2s; }
        .particles span:nth-child(10) { left: 62%; width: 50px; height: 50px; animation-duration: 32s; animation-delay: 4s; }
        .particles span:nth-child(11) { left: 68%; width: 22px; height: 22px; animation-duration: 21s; animation-delay: 8s; }
        .particles span:nth-child(12) { left: 75%; width: 38px; height: 38px; animation-duration: 27s; animation-delay: 1s; }
        .particles span:nth-child(13) { left: 82%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 5s; }
        .particles span:nth-child(14) { left: 88%; width: 28px; height: 28px; animation-duration: 23s; animation-delay: 3s; }
        .particles span:nth-child(15) { left: 95%; width: 42px; height: 42px; animation-duration: 29s; animation-delay: 6s; }
        .particles span:nth-child(16) { left: 8%; width: 24px; height: 24px; animation-duration: 20s; animation-delay: 9s; }
        .particles span:nth-child(17) { left: 18%; width: 33px; height: 33px; animation-duration: 26s; animation-delay: 2s; }
        .particles span:nth-child(18) { left: 25%; width: 14px; height: 14px; animation-duration: 17s; animation-delay: 7s; }
        .particles span:nth-child(19) { left: 38%; width: 48px; height: 48px; animation-duration: 31s; animation-delay: 4s; }
        .particles span:nth-child(20) { left: 45%; width: 26px; height: 26px; animation-duration: 22s; animation-delay: 1s; }
        .particles span:nth-child(21) { left: 58%; width: 36px; height: 36px; animation-duration: 25s; animation-delay: 8s; }
        .particles span:nth-child(22) { left: 65%; width: 19px; height: 19px; animation-duration: 19s; animation-delay: 5s; }
        .particles span:nth-child(23) { left: 72%; width: 44px; height: 44px; animation-duration: 28s; animation-delay: 3s; }
        .particles span:nth-child(24) { left: 85%; width: 21px; height: 21px; animation-duration: 21s; animation-delay: 6s; }
        .particles span:nth-child(25) { left: 92%; width: 32px; height: 32px; animation-duration: 24s; animation-delay: 2s; }

        @keyframes rise {
            0% {
                bottom: -80px;
                opacity: 0;
                transform: translateX(0) scale(0.8);
            }
            10% {
                opacity: 0.6;
            }
            50% {
                opacity: 0.8;
                transform: translateX(20px) scale(1);
            }
            90% {
                opacity: 0.6;
            }
            100% {
                bottom: 110vh;
                opacity: 0;
                transform: translateX(-20px) scale(1.2);
            }
        }
            100% {
                transform: translateY(-100vh) scale(1.2);
                opacity: 0;
            }
        }

        /* Green Overlay */
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(82, 181, 75, 0.4);
            z-index: 2;
        }

        /* Hero Content Above Everything */
        .hero .container {
            position: relative;
            z-index: 3;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr;
            justify-items: center;
            align-items: center;
            gap: 3.25rem;
        }

        .hero-content {
            position: relative;
            z-index: 3;
            text-align: center;
            max-width: 760px;
            margin: 0 auto;
        }

        .hero-content .hero-buttons,
        .hero-content .hero-note {
            justify-content: center;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.85rem;
            margin-bottom: 1.25rem;
            padding: 0.58rem 1rem;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(107, 201, 94, 0.28);
            color: var(--primary-light);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            backdrop-filter: blur(12px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
        }

        .hero-eyebrow-line {
            width: 34px;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(107, 201, 94, 0.2), rgba(107, 201, 94, 1));
            box-shadow: 0 0 14px rgba(82, 181, 75, 0.45);
        }

        .hero-showcase {
            position: relative;
            min-height: 520px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-orb {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            filter: blur(14px);
            opacity: 0.65;
        }

        .hero-orb-one {
            width: 220px;
            height: 220px;
            top: 5%;
            right: 0;
            background: radial-gradient(circle, rgba(82, 181, 75, 0.22), transparent 70%);
        }

        .hero-orb-two {
            width: 180px;
            height: 180px;
            bottom: 4%;
            left: 2%;
            background: radial-gradient(circle, rgba(107, 201, 94, 0.18), transparent 72%);
        }

        .hero-video-shell {
            position: relative;
            width: min(100%, 520px);
            padding: 1rem;
            border-radius: 30px;
            background: linear-gradient(180deg, rgba(24, 24, 24, 0.92), rgba(11, 11, 11, 0.96));
            border: 1px solid rgba(107, 201, 94, 0.24);
            box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
            backdrop-filter: blur(16px);
        }

        .hero-video-shell::before {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: 29px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            pointer-events: none;
        }

        .hero-video-chrome {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            margin-bottom: 0.9rem;
            padding: 0 0.15rem;
        }

        .hero-video-chrome span {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.16);
        }

        .hero-video-status {
            margin-inline-start: auto;
            padding: 0.32rem 0.75rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            color: #fff;
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.9), rgba(57, 131, 50, 0.9));
            box-shadow: 0 0 18px rgba(82, 181, 75, 0.35);
        }

        .hero-video-frame {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            min-height: 315px;
            border: 1px solid rgba(107, 201, 94, 0.22);
            background: #0d0d0d;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
        }

        .hero-video-poster {
            position: absolute;
            inset: 0;
            background-image: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)), url('../images/emby_tv.jpg');
            background-size: cover;
            background-position: center;
            transform: scale(1.02);
        }

        .hero-video-vignette {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.38) 100%), linear-gradient(180deg, rgba(82, 181, 75, 0.08), rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.5));
        }

        .hero-play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 82px;
            height: 82px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(82, 181, 75, 0.95), rgba(57, 131, 50, 0.92));
            border: 1px solid rgba(255,255,255,0.16);
            box-shadow: 0 18px 40px rgba(82, 181, 75, 0.3), 0 0 0 14px rgba(82, 181, 75, 0.11);
            z-index: 2;
            text-decoration: none;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .hero-play-button:hover {
            transform: translate(-50%, -50%) scale(1.05);
            box-shadow: 0 20px 48px rgba(82, 181, 75, 0.36), 0 0 0 16px rgba(82, 181, 75, 0.14);
        }

        .hero-play-icon {
            color: #fff;
            font-size: 1.7rem;
            margin-left: 0.22rem;
            text-shadow: 0 4px 10px rgba(0,0,0,0.25);
        }

        .hero-floating-badge {
            position: absolute;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.55rem 0.9rem;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.56);
            border: 1px solid rgba(107, 201, 94, 0.24);
            color: #fff;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            backdrop-filter: blur(10px);
        }

        .hero-floating-badge-top {
            top: 1rem;
            left: 1rem;
        }

        .hero-floating-badge-bottom {
            right: 1rem;
            bottom: 1rem;
        }

        .hero-stats-row {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.85rem;
            margin-top: 1rem;
        }

        .hero-stat-card {
            padding: 0.9rem 0.85rem;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(12,12,12,0.96));
            border: 1px solid rgba(107, 201, 94, 0.16);
            text-align: left;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        .hero-stat-card strong {
            display: block;
            color: #fff;
            font-size: 0.92rem;
            letter-spacing: 0.08em;
            margin-bottom: 0.25rem;
        }

        .hero-stat-card span {
            color: rgba(255, 255, 255, 0.72);
            font-size: 0.8rem;
        }

        .hero-title {
            font-size: 3rem;
            margin-bottom: 1rem;
            line-height: 1.2;
            color: white;
            text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
        }

        .hero-subtitle {
            font-size: 1.3rem;
            color: var(--text-primary);
            margin-bottom: 2rem;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .hero-note {
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
            background: rgba(0, 0, 0, 0.6);
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius);
            display: inline-block;
        }

        /* Features */
        .features {
            padding: 5rem 0;
            background-color: var(--dark-bg);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--primary-color);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .feature-card {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary-color);
            box-shadow: 0 10px 30px rgba(82, 181, 75, 0.3);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #52b54b;
        }

        .feature-icon img {
            width: 64px;
            height: 64px;
            object-fit: contain;
            display: inline-block;
        }

        .feature-card h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        /* Pricing */
        .pricing {
            padding: 5rem 0;
            background-color: var(--light-bg);
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .pricing-card {
            background-color: var(--card-bg);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            border: 2px solid rgba(82, 181, 75, 0.3);
            position: relative;
            transition: var(--transition);
        }

        .pricing-card:hover {
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(82, 181, 75, 0.4);
        }

        .pricing-card-featured {
            border-color: var(--primary-color);
            box-shadow: 0 0 30px rgba(82, 181, 75, 0.3);
        }

        .best-value-badge {
            position: absolute;
            top: -15px;
            right: 20px;
            background-color: var(--primary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .price {
            display: flex;
            align-items: baseline;
            justify-content: center;
            margin: 1.5rem 0;
        }

        .amount {
            font-size: 3rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .pricing-features {
            list-style: none;
            margin: 2rem 0;
        }

        .pricing-features li {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(82, 181, 75, 0.2);
        }

        /* Form */
        .form-container {
            max-width: 450px;
            margin: 3rem auto;
            padding: 2.5rem;
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(82, 181, 75, 0.3);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--primary-color);
        }

        .form-group input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid rgba(82, 181, 75, 0.3);
            border-radius: var(--border-radius);
            background-color: var(--dark-bg);
            color: var(--text-primary);
            font-size: 1rem;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 10px rgba(82, 181, 75, 0.3);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-content {
            background-color: var(--light-bg);
            margin: 5% auto;
            padding: 2rem;
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 500px;
            position: relative;
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .close-modal {
            color: var(--text-secondary);
            float: right;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }

        .close-modal:hover {
            color: var(--primary-color);
        }

        /* RTL Support for Modals and Forms */
        html[dir="rtl"] .close-modal {
            float: left;
        }

        html[dir="rtl"] .form-group label {
            text-align: right;
        }

        html[dir="rtl"] .form-group input,
        html[dir="rtl"] .form-group textarea,
        html[dir="rtl"] .form-group select {
            text-align: right;
            direction: rtl;
        }

        html[dir="rtl"] .form-footer {
            text-align: center;
            direction: rtl;
        }

        html[dir="rtl"] .modal-content h2 {
            text-align: center;
        }

        html[dir="rtl"] .btn-primary,
        html[dir="rtl"] .btn-secondary {
            direction: rtl;
        }

        /* RTL Placeholder */
        html[dir="rtl"] input::placeholder,
        html[dir="rtl"] textarea::placeholder {
            text-align: right;
            direction: rtl;
        }

        .modal-content h2 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .modal .form-group {
            margin-bottom: 1rem;
        }

        .modal .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .modal .form-group input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid rgba(82, 181, 75, 0.3);
            border-radius: var(--border-radius);
            background-color: var(--dark-bg);
            color: var(--text-primary);
            font-size: 1rem;
            box-sizing: border-box;
        }

        .modal .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 10px rgba(82, 181, 75, 0.3);
        }

        .btn-full {
            width: 100%;
            padding: 1rem;
            font-size: 1.1rem;
            margin-top: 1rem;
        }

        .form-footer {
            text-align: center;
            margin-top: 1.5rem;
            color: var(--text-secondary);
        }

        .form-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .form-footer a:hover {
            text-decoration: underline;
        }

        .plan-info {
            background-color: rgba(82, 181, 75, 0.1);
            padding: 0.8rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--primary-color);
        }

        .plan-info strong {
            color: var(--primary-color);
        }

        /* RTL Support for Trial and Plan Info */
        html[dir="rtl"] .plan-info,
        html[dir="rtl"] .trial-info {
            text-align: center;
            direction: rtl;
        }

        html[dir="rtl"] .plan-info strong,
        html[dir="rtl"] .trial-info strong {
            display: block;
        }


        html[dir="rtl"] .hero-content {
            text-align: center;
        }

        /* Force Arabic header to use the same layout as English */
        html[dir="rtl"] .nav-content {
            direction: ltr;
        }

        /* Keep "Emby TV" logo using the same Inter font in Arabic so it matches English size */
        html[dir="rtl"] .logo h1 {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        }

        html[dir="rtl"] .hero-stat-card {
            text-align: right;
        }

        html[dir="rtl"] .hero-video-status {
            margin-inline-start: 0;
            margin-inline-end: auto;
        }

        html[dir="rtl"] .hero-play-icon {
            margin-left: 0;
            margin-right: 0.1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .header-actions {
                gap: 0.65rem;
            }

            .premium-language-btn {
                min-width: 84px;
                padding: 0.62rem 0.85rem;
                font-size: 0.82rem;
            }

            .premium-language-dropdown {
                right: 0;
                left: auto;
                min-width: 190px;
            }

            .mobile-menu-btn {
                display: inline-flex;
            }

            .hero {
                min-height: 600px;
                padding: 8rem 0 4rem;
            }

            .hero-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .hero-content {
                text-align: center;
                max-width: 100%;
            }

            .hero-eyebrow {
                margin-inline: auto;
            }

            .hero-showcase {
                min-height: auto;
            }

            .hero-video-shell {
                width: 100%;
                max-width: 100%;
                padding: 0.85rem;
                border-radius: 24px;
            }

            .hero-video-frame {
                min-height: 250px;
            }

            .hero-play-button {
                width: 72px;
                height: 72px;
            }

            .hero-stats-row {
                grid-template-columns: 1fr;
            }

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

            .hero-title {
                font-size: 2rem;
            }

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

            .particles span {
                width: 15px;
                height: 15px;
            }

            .features-grid,
            .pricing-grid {
                grid-template-columns: 1fr;
            }

            .language-dropdown {
                right: auto;
                left: 0;
            }
        }

        /* RTL/LTR Support */
        html[dir="rtl"] {
            direction: rtl;
        }

        html[dir="ltr"] {
            direction: ltr;
        }

        html[dir="rtl"] .language-dropdown {
            right: auto;
            left: 0;
        }

        html[dir="ltr"] .language-dropdown {
            right: 0;
            left: auto;
        }

        /* Scrollbar for dropdown */
        .language-dropdown::-webkit-scrollbar {
            width: 8px;
        }

        .language-dropdown::-webkit-scrollbar-track {
            background: var(--dark-bg);
        }

        .language-dropdown::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }

        /* Toast Notifications */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            min-width: 300px;
            max-width: 500px;
            padding: 20px 25px;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 15px;
            animation: slideIn 0.3s ease-out;
        }

        .toast.success {
            background: #52b54b;
        }

        .toast.error {
            background: #f44336;
        }

        .toast.info {
            background: #2196F3;
        }

        .toast-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .toast-message {
            flex: 1;
            line-height: 1.5;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .toast.hiding {
            animation: slideOut 0.3s ease-in forwards;
        }

        /* RTL Support for Toast */
        [dir="rtl"] .toast {
            right: auto;
            left: 20px;
        }

        @media (max-width: 768px) {
            .toast {
                left: 10px;
                right: 10px;
                min-width: auto;
            }
            
            [dir="rtl"] .toast {
                left: 10px;
                right: 10px;
            }
        }
