

    /* ===== CSS لقائمة الموبايل ===== */

    /* 1. إخفاء القائمة الأصلية وإظهار زر القائمة المتنقلة في الموبايل */
    @media (max-width: 992px) {
        .nav__menu {
            display: none !important;
        }
        
        .nav__actions {
            display: none !important;
        }
        
        .mobile-menu-toggle {
            display: block !important;
        }
        
        .mobile-menu {
            display: none;
        }
    }

    /* 2. زر قائمة الموبايل (هامبرغر) */
    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* 3. قائمة الموبايل الرئيسية */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* 4. رأس قائمة الموبايل */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
    }

    .mobile-logo img {
        max-width: 100px;
        height: auto;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 5px;
    }

    /* 5. قسم معلومات المستخدم في الموبايل */
    .mobile-user-section {
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .mobile-user-avatar {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .mobile-user-details {
        flex: 1;
    }

    .mobile-user-name {
        display: block;
        font-weight: 600;
        font-size: 16px;
    }

    .mobile-user-status {
        display: block;
        font-size: 12px;
        opacity: 0.8;
    }

    .mobile-dashboard-btn,
    .mobile-login-btn {
        display: block;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        text-align: center;
        font-size: 14px;
        transition: background 0.3s;
    }

    .mobile-dashboard-btn:hover,
    .mobile-login-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* 6. قائمة التنقل في الموبايل */
    .mobile-menu-list {
        flex: 1;
        padding: 15px 0;
        list-style: none;
    }

    .mobile-menu-item {
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        transition: background 0.3s;
    }

    .mobile-menu-link:hover {
        background: #f8f9fa;
    }

    .mobile-menu-link i:first-child {
        width: 24px;
        margin-right: 15px;
        font-size: 18px;
        color: #667eea;
    }

    .mobile-menu-link span {
        flex: 1;
        font-size: 15px;
    }

    .submenu-toggle {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .mobile-menu-item.active .submenu-toggle {
        transform: rotate(180deg);
    }

    /* 7. القوائم الفرعية في الموبايل */
    .mobile-submenu {
        display: none;
        background: #f8f9fa;
        padding: 10px 0;
    }

    .mobile-menu-item.active .mobile-submenu {
        display: block;
    }

    .mobile-submenu-section {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .mobile-submenu-section h5 {
        font-size: 14px;
        color: #667eea;
        margin: 15px 0 10px 0;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-submenu ul {
        list-style: none;
        padding: 0;
    }

    .mobile-submenu li a {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        border-radius: 6px;
        margin-bottom: 5px;
        transition: all 0.3s;
    }

    .mobile-submenu li a:hover {
        background: white;
        color: #667eea;
        transform: translateX(5px);
    }

    .mobile-submenu li a i {
        margin-right: 10px;
        width: 20px;
        font-size: 14px;
    }

    .mobile-view-all {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        background: #667eea;
        color: white !important;
        border-radius: 6px;
        margin-top: 10px;
        text-align: center;
    }

    .mobile-view-all:hover {
        background: #5a67d8 !important;
        transform: none !important;
    }

    /* 8. الأدوات المميزة في الموبايل */
    .mobile-featured-tools {
        padding: 20px;
        background: white;
        margin: 10px;
        border-radius: 10px;
        border: 1px solid #e0e0e0;
    }

    .mobile-featured-tools h5 {
        color: #333;
        margin-bottom: 15px;
        font-size: 16px;
    }

    .featured-tools-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .featured-tool {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s;
    }

    .featured-tool:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
    }

    .featured-tool i {
        font-size: 24px;
        margin-bottom: 8px;
        color: #667eea;
    }

    .featured-tool:hover i {
        color: white;
    }

    .featured-tool span {
        font-size: 12px;
        text-align: center;
        font-weight: 500;
    }

    /* 9. أزرار التحكم في الموبايل */
    .mobile-menu-actions {
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .mobile-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        background: #f8f9fa;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .mobile-action-btn:hover {
        background: #667eea;
        color: white;
    }

    .mobile-action-btn.logout {
        background: #fee2e2;
        color: #dc2626;
    }

    .mobile-action-btn.logout:hover {
        background: #dc2626;
        color: white;
    }

    .mobile-action-btn.register {
        background: #667eea;
        color: white;
        grid-column: span 2;
    }

    .mobile-action-btn.register:hover {
        background: #5a67d8;
    }

    /* 10. تذييل قائمة الموبايل */
    .mobile-menu-footer {
        padding: 20px;
        background: #f8f9fa;
        border-top: 1px solid #eee;
    }

    /* تحسينات لمحدد اللغة في الموبايل */
    .mobile-language-selector {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
        background: white;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }

    .mobile-language-selector i {
        color: #667eea;
        font-size: 16px;
    }

    .mobile-language-selector select {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        color: #333;
        outline: none;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .mobile-language-selector select:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .mobile-language-selector select:focus {
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* تنسيق للغة العربية */
    [dir="rtl"] .mobile-language-selector {
        text-align: right;
    }

    [dir="rtl"] .mobile-language-selector select {
        text-align: right;
    }

    .mobile-copyright {
        text-align: center;
        font-size: 12px;
        color: #666;
        line-height: 1.5;
    }

    /* 11. تحسينات للشاشات الصغيرة جداً */
    @media (max-width: 576px) {
        .mobile-menu {
            width: 100%;
            max-width: none;
        }
        
        .featured-tools-grid {
            grid-template-columns: 1fr;
        }
        
        .mobile-action-buttons {
            grid-template-columns: 1fr;
        }
        
        .mobile-action-btn.register {
            grid-column: span 1;
        }
    }

    /* 12. تحسينات للميجا مينو على الموبايل */
    @media (max-width: 992px) {
        .mega-menu {
            display: none !important;
        }
        
        .has-mega-menu .nav-link::after {
            display: none;
        }
    }

    /* 13. تحسينات للشعار في الموبايل */
    @media (max-width: 768px) {
        .nav__logo img {
            max-width: 120px;
            height: auto;
        }
    }

    /* 14. منع التمرير عند فتح القائمة */
    body.menu-open {
        overflow: hidden;
    }
    
    /* ===== Fixed Mobile Header ===== */
@media (max-width: 768px){

.container {
    margin: 0px 10px important;
    border-radius: 8px important;
}

    .header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 55px;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

}


