        /* --- CSS Variables --- */
        :root {
            --primary: #0f172a;    /* Deep Navy */
            --secondary: #334155;  /* Charcoal */
            --accent: #10b981;     /* Soft Green/Emerald */
            --accent-hover: #059669;
            --bg-light: #f8fafc;
            --white: #ffffff;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --radius: 12px;
            --font-en: 'Inter', sans-serif;
            --font-ar: 'Cairo', sans-serif;
        }

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

        body {
            font-family: var(--font-en);
            background-color: var(--bg-light);
            color: var(--secondary);
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        /* RTL Support Classes */
        html[dir="rtl"] body {
            font-family: var(--font-ar);
        }

        a { text-decoration: none; color: inherit; transition: color 0.2s; }
        ul { list-style: none; }
        button, input, select { font-family: inherit; border: none; outline: none; }

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

        /* --- Header --- */
        header {
            background-color: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

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

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

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

        nav ul {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        nav a {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--secondary);
        }

        nav a:hover { color: var(--accent); }

        .lang-btn {
            background: transparent;
            border: 1px solid var(--border);
            padding: 6px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--primary);
            transition: all 0.2s;
        }

        .lang-btn:hover {
            border-color: var(--primary);
            background: var(--bg-light);
        }

        /* --- Hero Section --- */
        .hero {
            background: var(--primary);
            color: var(--white);
            padding: 5rem 0 7rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Abstract background decoration */
        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.125rem;
            color: #cbd5e1;
            margin-bottom: 3rem;
        }

        /* Search Box/Downloader */
        .downloader-box {
            background: var(--white);
            padding: 10px;
            border-radius: var(--radius);
            display: flex;
            gap: 10px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            flex-wrap: wrap;
        }

        .input-group {
            flex: 1;
            position: relative;
            min-width: 200px;
        }

        .input-group input {
            width: 100%;
            height: 50px;
            padding: 0 1rem;
            font-size: 1rem;
            border-radius: 8px;
            background: var(--bg-light);
            color: var(--primary);
        }

        .quality-select {
            height: 50px;
            padding: 0 1.5rem;
            background-color: var(--bg-light);
            border-radius: 8px;
            cursor: pointer;
            color: var(--primary);
            font-weight: 500;
            appearance: none; /* simple arrow hidden for cleaner look or custom svg */
            min-width: 100px;
        }

        .download-btn {
            height: 50px;
            padding: 0 2.5rem;
            background-color: var(--accent);
            color: var(--white);
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .download-btn:hover {
            background-color: var(--accent-hover);
        }

        /* --- Features Section --- */
        .features {
            padding: 5rem 0;
            background: var(--white);
        }

        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-header h2 {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

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

        .feature-card {
            background: var(--bg-light);
            padding: 2rem;
            border-radius: var(--radius);
            text-align: center;
            transition: transform 0.2s;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .icon-box {
            width: 60px;
            height: 60px;
            background: #d1fae5;
            color: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
        }

        .feature-card h3 { margin-bottom: 0.5rem; color: var(--primary); }
        .feature-card p { font-size: 0.9rem; color: #64748b; }

        /* --- Special Pages (Ramadan) --- */
        .special-section {
            padding: 4rem 0;
            background: #f1f5f9;
        }

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

        .special-card {
            background: linear-gradient(135deg, var(--primary), #1e293b);
            color: white;
            padding: 2rem;
            border-radius: var(--radius);
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .special-card:hover { transform: scale(1.02); }

        .card-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
        .card-content p { color: #94a3b8; font-size: 0.9rem; }
        .card-icon { font-size: 3rem; opacity: 0.2; }

        /* --- SEO Text Section --- */
        .seo-content {
            padding: 4rem 0;
            max-width: 800px;
            margin: 0 auto;
            color: var(--secondary);
        }

        .seo-content h3 { color: var(--primary); margin-bottom: 1rem; }
        .seo-content p { margin-bottom: 1.5rem; font-size: 1rem; }

        /* --- Footer --- */
        footer {
            background: var(--primary);
            color: #94a3b8;
            padding: 4rem 0 2rem;
            font-size: 0.9rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid #334155;
            margin-bottom: 2rem;
        }

        .footer-brand h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; }
        .footer-brand p { font-size: 0.85rem; }

        .footer-links { display: flex; gap: 1.5rem; }
        .footer-links a:hover { color: var(--accent); }

        .copyright { text-align: center; font-size: 0.85rem; }

        /* --- Mobile Responsive --- */
        @media (max-width: 768px) {
            .nav-wrapper { flex-direction: column; gap: 1rem; }
            .downloader-box { flex-direction: column; }
            .quality-select, .download-btn { width: 100%; }
            h1 { font-size: 1.8rem; }
            .footer-content { flex-direction: column; text-align: center; }
            .footer-links { justify-content: center; }
        }

        /* --- Language Visibility Helper --- */
        /* By default show EN, hide AR */
        body [lang="ar"] { display: none; }
        
        /* If body is RTL, hide EN, show AR */
        html[dir="rtl"] [lang="en"] { display: none; }
        html[dir="rtl"] [lang="ar"] { display: inline-block; }
        html[dir="rtl"] div[lang="ar"], 
        html[dir="rtl"] p[lang="ar"], 
        html[dir="rtl"] h1[lang="ar"], 
        html[dir="rtl"] h2[lang="ar"],
        html[dir="rtl"] h3[lang="ar"] { display: block; }

        .internal-links {
  margin: 50px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}
.internal-links h3 {
  margin-bottom: 10px;
}
.internal-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 10px;
}
.internal-links a {
  color: #0f172a;
}


