        /* ==========================================================================
           VARIABLES & RESET
           ========================================================================== */
        :root {
            --bg-deep: #030712;
            --color-accent-1: #38bdf8;
            --color-accent-2: #818cf8;
            --color-accent-3: #c084fc;
            --color-accent-4: #f43f5e;
            --color-text: #f8fafc;
            --glass-bg: rgba(255, 255, 255, 0.04);
            --glass-border: rgba(56, 189, 248, 0.2);
            --font-main: 'Tajawal', sans-serif;
            --ease-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }

        @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;500;700;900&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-deep);
            color: var(--color-text);
            height: 100vh;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        /* ==========================================================================
           VIBRANT BACKGROUND ANIMATED EFFECTS (واضحة جداً وديناميكية)
           ========================================================================== */
        .bg-effects {
            position: absolute;
            inset: 0;
            z-index: -1;
            overflow: hidden;
        }

        /* خطوط ضوئية عمودية متحركة وواضحة */
        .light-ray {
            position: absolute;
            width: 3px;
            height: 400px;
            background: linear-gradient(to bottom, transparent, var(--color-accent-1), var(--color-accent-3), transparent);
            opacity: 0.35;
            filter: blur(2px);
            animation: rayGlow 6s infinite linear;
        }

        .light-ray:nth-child(1) { left: 15%; top: -200px; animation-delay: 0s; animation-duration: 5s; }
        .light-ray:nth-child(2) { left: 35%; top: -250px; animation-delay: 1.5s; height: 500px; animation-duration: 7s; }
        .light-ray:nth-child(3) { left: 65%; top: -150px; animation-delay: 3s; animation-duration: 4.5s; opacity: 0.45; }
        .light-ray:nth-child(4) { left: 85%; top: -300px; animation-delay: 2s; height: 600px; animation-duration: 8s; }

        @keyframes rayGlow {
            0% { transform: translateY(0) translateX(0) rotate(15deg); opacity: 0.1; }
            50% { transform: translateY(700px) translateX(40px) rotate(15deg); opacity: 0.5; }
            100% { transform: translateY(1200px) translateX(0) rotate(15deg); opacity: 0.1; }
        }

        /* دوائر مضيئة متحركة بحجم أكبر ووضوح أعلى */
        .glowing-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.25;
            animation: floatOrbs 10s infinite alternate ease-in-out;
        }

        .orb-1 { background: var(--color-accent-1); width: 450px; height: 450px; top: -100px; left: -100px; }
        .orb-2 { background: var(--color-accent-4); width: 400px; height: 400px; bottom: -100px; right: -100px; animation-delay: -3s; }
        .orb-3 { background: var(--color-accent-3); width: 350px; height: 350px; top: 40%; left: 30%; animation-delay: -5s; opacity: 0.2; }

        @keyframes floatOrbs {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(120px, 80px) scale(1.2); }
        }

        /* شبكة خلفية متحركة (Grid) */
        .bg-grid {
            position: absolute;
            inset: -50%;
            width: 200%;
            height: 200%;
            background-image: 
                radial-gradient(rgba(56, 189, 248, 0.25) 1.5px, transparent 1.5px);
            background-size: 50px 50px;
            opacity: 0.3;
            animation: gridMove 25s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-50px, -50px); }
        }

        /* ==========================================================================
           LOGO SIDEBAR (شريط اللوجو على اليمين أو اليسار)
           ========================================================================== */
        .logo-sidebar {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 110px;
            background: var(--glass-bg);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-right: 1px solid var(--glass-border);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding-top: 45px;
            z-index: 10;
            animation: slideInLeft 1.2s var(--ease-elastic) forwards;
        }

        @keyframes slideInLeft {
            from { transform: translateX(-110px); }
            to { transform: translateX(0); }
        }

        .logo-wrapper {
            width: 65px;
            height: 65px;
            position: relative;
        }

        .logo-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            position: relative;
            z-index: 2;
            animation: logoPulse 3s infinite ease-in-out;
        }

        @keyframes logoPulse {
            0%, 100% { transform: scale(1) rotate(0deg); }
            50% { transform: scale(1.08) rotate(5deg); }
        }

        .logo-ring {
            position: absolute;
            inset: -8px;
            border: 2px solid transparent;
            border-top-color: var(--color-accent-1);
            border-bottom-color: var(--color-accent-4);
            border-radius: 50%;
            animation: ringRotate 3.5s linear infinite;
            filter: blur(1px);
        }

        @keyframes ringRotate {
            to { transform: rotate(360deg); }
        }

        .deco-line {
            flex-grow: 1;
            width: 2px;
            background: linear-gradient(to bottom, var(--color-accent-1), transparent);
            margin-top: 30px;
            opacity: 0.5;
        }

        /* ==========================================================================
           HOME BUTTON (زر العودة للرئيسية)
           ========================================================================== */
        .homebtn {
            position: absolute;
            top: 35px;
            right: 35px;
            z-index: 100;
            animation: fadeInRight 1s ease forwards;
        }

        @keyframes fadeInRight {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .home-btn {
            background: var(--glass-bg);
            color: var(--color-accent-1);
            border: 1px solid var(--glass-border);
            padding: 12px 28px;
            cursor: pointer;
            font-family: var(--font-main);
            font-weight: 700;
            border-radius: 50px;
            font-size: 14px;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            text-decoration: none;
            display: inline-block;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
        }

        .home-btn:hover {
            background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
            color: var(--bg-deep);
            border-color: transparent;
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
            transform: translateY(-3px) scale(1.05);
        }

        /* ==========================================================================
           MAIN CONTENT (النص المتحول بإستمرار عربي / إنجليزي)
           ========================================================================== */
        main {
            text-align: center;
            position: relative;
            z-index: 5;
            padding-left: 110px; /* مساحة جانب الشريط */
            width: 100%;
        }

        .text-container {
            display: inline-block;
            position: relative;
            animation: entrancePop 1.5s var(--ease-elastic) forwards;
        }

        @keyframes entrancePop {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* عنصر النص الذي سيتم تبديله بسلاسة */
        .dynamic-text {
            font-size: clamp(3.5rem, 10vw, 8rem);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 6px;
            background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 35%, var(--color-accent-3) 70%, var(--color-accent-4) 100%);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
            transition: opacity 0.6s ease, transform 0.6s ease;
            display: inline-block;
            animation: gradientFlow 6s ease infinite, floatAnim 4s ease-in-out infinite alternate;
            filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
        }

        @keyframes gradientFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes floatAnim {
            0% { transform: translateY(0px); }
            100% { transform: translateY(-10px); }
        }

        /* تأثير التوهج الخلفي للنص */
        .dynamic-text::after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            margin: auto;
            z-index: -1;
            background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-4));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: blur(35px);
            opacity: 0.6;
        }

        .subtitle {
            font-size: 1.1rem;
            font-weight: 500;
            color: rgba(248, 250, 252, 0.7);
            letter-spacing: 4px;
            text-transform: uppercase;
            margin-top: 15px;
            animation: fadeInSub 1s ease 1s forwards;
            opacity: 0;
        }

        @keyframes fadeInSub {
            to { opacity: 1; }
        }

        /* كلاسات التحكم بانميشن التبديل */
        .fade-out {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }

        .fade-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* للتكيف مع الشاشات الصغيرة */
        @media (max-width: 768px) {
            .logo-sidebar { display: none; }
            main { padding-left: 0; }
        }

            /* التحكم بظهور النصوص العربية والإنجليزية بناءً على لغة الصفحة الحالية */
    html[dir="rtl"] .en-text,
    html[dir="ltr"] .ar-text {
        display: none !important;
    }

    /* التثبيت في زاوية الصفحة العلوية (يمين للعرّبية، يسار للإنجليزية) */
    .side-info-container {
        position: fixed;
        top: 20px;
        z-index: 99999;
        font-family: 'Cairo', sans-serif;
    }

    html[dir="rtl"] .side-info-container {
        right: 20px;
    }

    html[dir="ltr"] .side-info-container {
        left: 20px;
    }

    /* تصميم الزر الرئيسي */
    .side-main-btn {
        background: linear-gradient(135deg, #9333ea, #6b21a8);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .menu-icon-symbol {
        font-size: 16px;
        font-weight: bold;
    }

    .side-main-btn:hover {
        background: linear-gradient(135deg, #a855f7, #7e22ce);
        transform: scale(1.05);
    }

    .arrow-icon {
        font-size: 8px;
        transition: transform 0.3s ease;
    }

    /* القائمة المنسدلة */
    .side-submenu {
        position: absolute;
        top: 125%;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        width: 190px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: fadeInSubSide 0.3s ease;
    }

    html[dir="rtl"] .side-submenu {
        right: 0;
        text-align: right;
    }

    html[dir="ltr"] .side-submenu {
        left: 0;
        text-align: left;
    }

    @keyframes fadeInSubSide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* عناصر القائمة الرئيسية */
    .side-submenu-item {
        padding: 11px 15px;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease, padding-inline-start 0.2s ease;
    }

    .side-submenu-item:hover {
        background: rgba(147, 51, 234, 0.4);
    }

    /* مجموعة الرياضات المتوفرة */
    .submenu-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    /* العنوان الرئيسي للرياضات (بخط أصغر) */
    .side-submenu-title {
        padding: 8px 15px;
        color: #c084fc;
        font-size: 12px; /* خط أصغر كما طلبت */
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* عناصر الرياضات الفرعية الأربع */
    .side-submenu-subitem {
        padding: 7px 15px 7px 25px; /* مسافة أعمق قليلاً للتمييز */
        color: #e2e8f0;
        text-decoration: none;
        font-size: 12px; /* خط أصغر ومناسب */
        display: block;
        transition: background 0.2s ease, color 0.2s ease;
    }

    html[dir="ltr"] .side-submenu-subitem {
        padding: 7px 25px 7px 15px;
    }

    .side-submenu-subitem:hover {
        background: rgba(147, 51, 234, 0.25);
        color: #ffffff;
    }

    /* تفعيل القائمة وإدارة السهم */
    .side-info-container.active .side-submenu {
        display: flex;
    }

    .side-info-container.active .arrow-icon {
        transform: rotate(180deg);
    }

        /* التحكم بظهور النصوص العربية والإنجليزية بناءً على لغة الصفحة الحالية */
    html[dir="rtl"] .en-text,
    html[dir="ltr"] .ar-text {
        display: none !important;
    }

    /* التثبيت في زاوية الصفحة العلوية (يمين للعربية، يسار للإنجليزية) */
    .side-info-container {
        position: fixed;
        top: 20px;
        z-index: 99999;
        font-family: 'Cairo', sans-serif;
    }

    html[dir="rtl"] .side-info-container {
        right: 20px;
    }

    html[dir="ltr"] .side-info-container {
        left: 20px;
    }

    /* تصميم الزر الرئيسي */
    .side-main-btn {
        background: linear-gradient(135deg, #9333ea, #6b21a8);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .menu-icon-symbol {
        font-size: 16px;
        font-weight: bold;
    }

    .side-main-btn:hover {
        background: linear-gradient(135deg, #a855f7, #7e22ce);
        transform: scale(1.05);
    }

    .arrow-icon {
        font-size: 8px;
        transition: transform 0.3s ease;
    }

    /* القائمة المنسدلة */
    .side-submenu {
        position: absolute;
        top: 125%;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        width: 190px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        animation: fadeInSubSide 0.3s ease;
    }

    html[dir="rtl"] .side-submenu {
        right: 0;
        text-align: right;
    }

    html[dir="ltr"] .side-submenu {
        left: 0;
        text-align: left;
    }

    @keyframes fadeInSubSide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* تنسيق عنوان القائمة في البداية */
    .submenu-header-title {
        padding: 10px 15px 4px 15px;
        color: #d8b4fe;
        font-size: 13px;
        font-weight: bold;
        text-align: center;
    }

    /* الخط الفاصل */
    .submenu-divider {
        height: 1px;
        background: rgba(168, 85, 247, 0.4);
        margin: 4px 10px 8px 10px;
    }

    /* عناصر القائمة الرئيسية */
    .side-submenu-item {
        padding: 10px 15px;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease;
    }

    .side-submenu-item:hover {
        background: rgba(147, 51, 234, 0.4);
    }

    /* مجموعة الرياضات المتوفرة */
    .submenu-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    /* العنوان الرئيسي للرياضات (بخط أصغر) */
    .side-submenu-title {
        padding: 8px 15px;
        color: #c084fc;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* عناصر الرياضات الفرعية الأربع */
    .side-submenu-subitem {
        padding: 6px 15px 6px 25px;
        color: #e2e8f0;
        text-decoration: none;
        font-size: 12px;
        display: block;
        transition: background 0.2s ease, color 0.2s ease;
    }

    html[dir="ltr"] .side-submenu-subitem {
        padding: 6px 25px 6px 15px;
    }

    .side-submenu-subitem:hover {
        background: rgba(147, 51, 234, 0.25);
        color: #ffffff;
    }

    /* تفعيل القائمة وإدارة السهم */
    .side-info-container.active .side-submenu {
        display: flex;
    }

    .side-info-container.active .arrow-icon {
        transform: rotate(180deg);
    }
    