        :root {
            --primary-color: #5865F2;
            --secondary-color: #7B68EE;
            --background-color: #12141d;
            --surface-color: #2a2d31;
            --text-color: #FFFFFF;
            --text-muted-color: #99AAB5;
            --gradient: linear-gradient(90deg, #5865F2, #7B68EE);
            --shadow-glow: rgba(88, 101, 242, 0.4);
            --glass-bg: rgba(25, 28, 41, 0.5); /* More transparent for better glass effect */
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-blur: 5px; /* Increased blur for a frostier look */
        }

        /* --- Keyframe Animations --- */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes backgroundPan {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        
        @keyframes textGradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* --- Base Body Styles --- */
        body {
            font-family: 'Cairo', sans-serif;
            margin: 0;
            background-color: var(--background-color);
            background-image: linear-gradient(-45deg, #12141d, #1e2030, #2c2f48, #5865F2);
            background-size: 400% 400%;
            animation: backgroundPan 15s ease infinite;
            color: var(--text-color);
            line-height: 1.7;
            overflow-x: hidden;
            position: relative;
        }

        .background-bubbles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .bubble {
            position: absolute;
            bottom: -100px;
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            border-radius: 50%;
            opacity: 0.1;
            animation: float 25s infinite;
        }

        .bubble:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: 2s; }
        .bubble:nth-child(3) { left: 20%; width: 60px; height: 60px; animation-duration: 20s; }
        .bubble:nth-child(4) { left: 40%; width: 80px; height: 80px; animation-duration: 18s; animation-delay: 5s; }
        .bubble:nth-child(5) { left: 65%; width: 30px; height: 30px; animation-duration: 12s; }
        .bubble:nth-child(6) { left: 85%; width: 50px; height: 50px; animation-duration: 22s; animation-delay: 7s; }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        .header-container {
            display: flex;
            justify-content: center;
            position: fixed;
            top: 20px; 
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 0 20px;
        }
        .floating-navbar {
            width: 100%;
            max-width: 1100px;
            background-color: var(--glass-bg);
            -webkit-backdrop-filter: blur(var(--glass-blur));
            backdrop-filter: blur(var(--glass-blur));
            border: 1px solid var(--glass-border);
            padding: 10px 30px;
            border-radius: 30px; /* More rounded */
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all .3s ease;
            animation: fadeInUp 0.8s ease-out;
        }

        .floating-navbar:hover {
            box-shadow: 0 0 40px var(--shadow-glow);
            border: 1px solid rgba(88, 101, 242, 0.5);
        }

.floating-navbar .logo {
    /* نستخدم flex لمحاذاة الصورة بشكل مثالي في المنتصف */
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-navbar .logo img {
    /* حدد ارتفاع الشعار هنا، سيتปรับ العرض تلقائيًا */
    height: 45px; /* يمكنك تغيير هذه القيمة لتناسب تصميمك */
    width: auto; /* للحفاظ على أبعاد الصورة الأصلية */
}
        .nav-links { display: flex; align-items: center; gap: 30px; }
        .nav-links a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s, text-shadow 0.3s; }
        .nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 15px var(--primary-color); }
        
        .btn {
            background: var(--gradient);
            color: #fff;
            padding: 12px 28px;
            border-radius: 30px; /* Match navbar roundness */
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.3s, box-shadow 0.3s, background-size 0.4s;
            border: none;
            background-size: 200% auto;
        }
        .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px var(--shadow-glow);
            background-position: right center; /* Change gradient direction */
            color: #fff;
        }

        /* --- Dynamic Hero Section --- */
        .hero {
            text-align: center;
            padding: 220px 20px 150px;
            position: relative;
        }
        .hero h1 { 
            font-size: 4.2rem; 
            margin-bottom: 20px; 
            line-height: 1.2;
            text-shadow: 0 5px 30px rgba(0,0,0,0.4);
        }
        .hero h1 .highlight { 
            background: linear-gradient(90deg, #8A2BE2, #5865F2, #41E0D0, #8A2BE2);
            background-size: 300% 300%;
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent;
            animation: textGradient 5s ease infinite;
        }
        .hero p { 
            font-size: 1.2rem; 
            max-width: 650px; 
            margin: 0 auto 40px; 
            color: var(--text-muted-color);
        }
        .hero-buttons { 
            display: flex; 
            justify-content: center; 
            gap: 20px;
        }
        .hero-buttons .btn-secondary { background: var(--surface-color);             background-color: rgba(126, 147, 170, 0.267);
            border: 2px solid rgba(103, 117, 134, 0.616);
        }     
.trk-secondary { 

    background: var(--gradient);
    color: #fff;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-size 0.4s;
    border: none;
    background-size: 200% auto;
background: var(--surface-color);        
     background-color: rgba(126, 147, 170, 0.267);
            border: 2px solid rgba(103, 117, 134, 0.616);
        }
        .hero-buttons .btn-secondary:hover { background: #36393e; box-shadow: 0 6px 25px rgba(0,0,0,0.3); }

        /* --- General Section Styling --- */
        .section {
            padding: 100px 0;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }
        .section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-header { margin-bottom: 60px; text-align: center; }
        .section-header h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; }
        .section-header p { color: var(--text-muted-color); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
        
        /* --- Animated Features Section --- */
        .feature-showcase { display: grid; grid-template-columns: 1fr; gap: 100px; }
        .feature-item { display: flex; gap: 50px; align-items: center; transition: transform 0.3s ease; }
        .feature-item:nth-child(even) { flex-direction: row-reverse; }
        .feature-item:hover { transform: scale(1.02); }
        .feature-text { flex: 1; }
        .feature-text h2 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; }
        .feature-text h3 { font-size: 1.1rem; color: var(--text-muted-color); line-height: 1.8; font-weight: 400; }
        
        .feature-item img {
            flex: 1;
            max-width: 50%;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 15px 30px var(--shadow-glow));
            transition: transform 0.4s ease-out, filter 0.4s ease-out;
            animation: float 6s ease-in-out infinite;
        }
        .feature-item:nth-child(even) img { animation-delay: 3s; }

        /* --- Enhanced Statistics Section --- */
        .stats-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
            gap: 30px; 
            justify-content: center; 
        }

        .stat-card {
            background-color: var(--glass-bg);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            padding: 10px;
            border-radius: 24px;
            border: 1px solid var(--glass-border);
            transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.2), transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-15px) scale(1.03);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--shadow-glow);
            border-color: rgba(88, 101, 242, 0.5);
        }
        
        .stat-card:hover::before {
            opacity: 1;
        }

        .main_statsIcon__O5agB { 
            font-size: 30px;
            margin-bottom: 15px;
            filter: drop-shadow(0 0 8px #ffffff80);
        }
        .stat-card h3 { font-size: 1.1rem; margin: 0 0 10px; color: var(--text-muted-color); font-weight: 500; }
        .stat-card .stat-number { 
            font-size: 3rem; 
            margin: 0;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 900;
        }
        
        /* --- CTA & Footer --- */
        .invite-cta { margin-top: 80px; text-align: center; }
        .invite-cta h4 { font-size: 1.5rem; margin-bottom: 20px; }
        .invite-cta a { 
            text-decoration: none; 
            color: var(--primary-color); 
            font-weight: 700; 
            position: relative;
            padding-bottom: 5px;
        }
        .invite-cta a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient);
            transition: transform 0.3s ease;
            transform-origin: right;
            transform: scaleX(0);
        }
        .invite-cta a:hover::after {
            transform-origin: left;
            transform: scaleX(1);
        }
        
        .main-footer {
            padding: 60px 0;
            background-color: #1a1c25; /* Darker footer */
            border-top: 1px solid var(--glass-border);
            position: relative;
        }
        .footer-content { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
        .footer-info { flex: 2; min-width: 250px; }
        .footer-info h3 { font-size: 1.8rem; font-weight: 900; margin: 0 0 15px; }
        .footer-info p { color: var(--text-muted-color); max-width: 350px; }
        .footer-links { flex: 3; display: flex; justify-content: space-around; gap: 30px; flex-wrap: wrap; }
        .link-column p { font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; }
        .link-column a { display: block; color: var(--text-muted-color); text-decoration: none; margin-bottom: 10px; transition: color 0.3s, transform 0.3s; }
        .link-column a:hover { color: var(--primary-color); transform: translateX(-5px); }
        .footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--glass-border); color: var(--text-muted-color); }

        /* --- Responsive Design --- */
        @media (max-width: 992px) {
            .feature-item, .feature-item:nth-child(even) { flex-direction: column; text-align: center; }
            .feature-item img { max-width: 70%; }
            .footer-content { flex-direction: column; text-align: center; }
            .footer-links { justify-content: center; }
            .footer-info p { margin-right: auto; margin-left: auto; }
        }
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.8rem; }
            .hero p { font-size: 1rem; }
            .section-header h2 { font-size: 2.2rem; }
            .nav-links { gap: 15px; }
            .nav-links a:not(.btn) { display: none; }
            .feature-item img { max-width: 80%; }
        }
		/* تنسيقات قسم دعوة البريميوم */
.premium-cta .cta-box {
    background: var(--gradient);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-glow);
}
.premium-cta h2 {
    font-size: 2.5rem;
    margin-top: 0;
}
.premium-cta p {
    max-width: 600px;
    margin: 15px auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}
.premium-cta .btn {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}
/* ========== [تنسيقات قائمة المستخدم المنسدلة] ========== */
.user-menu {
    position: relative;
}

.user-avatar-btn {
    background: none;
    border: 2px solid var(--glass-border);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
    width: 48px;
    height: 48px;
}

.user-avatar-btn:hover, .user-avatar-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 60px; /* تحت زر الأفاتار */
    left: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    width: 220px;
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 8px;
}

.dropdown-menu .user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.dropdown-menu .user-info span {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-menu hr {
    border: none;
    height: 1px;
    background-color: var(--glass-border);
    margin: 8px 0;
}

.dropdown-menu a.logout-link:hover {
    background-color: #ED4245; /* أحمر ديسكورد */
}

.dropdown-menu svg {
    width: 20px;
    height: 20px;
}
.language-dropdown {
    position: relative;
    margin-left: 20px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-toggle .flag {
    width: 24px;
    height: auto;
    border-radius: 3px;
}

.dropdown-toggle .arrow {
    font-size: 1.2rem;
    opacity: 0.7;
}

.language-dropdown .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #1c1e2a; /* لون أغمق قليلاً */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.language-dropdown .dropdown-menu.show {
    display: block; /* Shown with JS */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-muted-color);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item .flag {
    width: 28px;
    height: auto;
    border-radius: 4px;
}

