/* core.css - auto-built bundle (scratchpad/build_css.ps1): style.css + assets/header.css + assets/footer.css. Do not edit directly. */
/* ===== style.css ===== */
/* ==========================================================
   مكتب التضامن - النظام البرمجي والهوية البصرية الحديثة
   Modern Glassmorphism & Cyber-Luxury Design System
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* إخفاء الأسهم الافتراضية لحقول الأرقام (Chrome, Safari, Edge, Opera) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* إخفاء الأسهم الافتراضية لحقول الأرقام (Firefox) */
input[type=number] {
    -moz-appearance: textfield;
}

:root {
    /* لوحة الألوان الأساسية - درجات الفخامة والأناقة */
    --bg-dark: #080b11;
    --bg-surface: #0f131a;
    --bg-surface-glass: rgba(15, 19, 26, 0.75);
    
    --accent: #ffcc00;
    --accent-glow: rgba(255, 204, 0, 0.15);
    --accent-hover: #e6b800;
    --accent-light: rgba(255, 204, 0, 0.08);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-muted-light: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 204, 0, 0.2);
    --border-active: rgba(255, 204, 0, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(255, 204, 0, 0.15);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 20px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 204, 0, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 204, 0, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ==========================================================
   القائمة العلوية وشريط البحث الأساسي (Navbar Styles)
   ========================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #000;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted-light);
    font-weight: 500;
}

/* شريط البحث المبتكر */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 25px;
}

.search-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

.search-form input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 15px;
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--accent);
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.search-form button:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

/* ==========================================================
   القسم الترحيبي العصري (Hero Block)
   ========================================================== */
.hero {
    margin-top: 30px;
    text-align: right;
    background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.05) 0%, transparent 70%), var(--bg-surface);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.015) 0%, transparent 60%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 204, 0, 0.15);
}

.hero h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.3;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
}

.hero p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 750px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-outline {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.btn-outline {
    border: 1px solid #334155;
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ==========================================================
   المميزات (Features Block)
   ========================================================== */
.features-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.feature-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-box i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 13px;
    color: var(--text-muted-light);
}

/* رؤوس الأقسام */
.section-header {
    text-align: right;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--text-muted-light);
    font-size: 14px;
}

/* ==========================================================
   تصميم الأقسام الرئيسية (Categories List)
   ========================================================== */
.categories-section {
    margin-top: 40px;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    background-color: var(--bg-surface);
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.category-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    padding: 30px 20px;
    border-radius: 18px;
    text-align: center;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.btn-category {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    border: 1px solid rgba(255, 204, 0, 0.1);
    transition: var(--transition-smooth);
}

.category-card:hover .btn-category {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
}

/* ==========================================================
   الفوتر الاحترافي المحدث (Site Footer)
   ========================================================== */
.site-footer {
    background-color: #05070a;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 70px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    flex: 2;
    min-width: 280px;
}

.footer-about p {
    color: var(--text-muted-light);
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.8;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-contact h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    width: fit-content;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 12px;
    color: var(--text-muted-light);
    font-size: 14px;
}

.footer-links ul li a {
    display: inline-block;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.footer-contact ul li i {
    color: var(--accent);
    margin-left: 10px;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================
   شاشات الهواتف والأجهزة اللوحية (Responsive System)
   ========================================================== */
@media (max-width: 850px) {
    .navbar {
        padding: 12px 4%;
    }
    
    .search-container {
        display: none; /* يتم استبداله ببحث الموبايل المنبثق */
    }
    
    .nav-links {
        gap: 15px;
        font-size: 13px;
    }
    
    .hero {
        padding: 30px 20px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .features-section {
        flex-wrap: wrap;
        margin-top: 10px;
        gap: 12px;
    }
    
    .feature-box {
        min-width: calc(50% - 6px);
        padding: 18px;
    }

    .categories-section {
        padding: 25px 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    .category-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .footer-links h3, .footer-contact h3 {
        margin: 0 auto 15px;
    }
    
    .footer-links ul li a:hover {
        transform: none; /* إيقاف الإزاحة الجانبية باللمس */
    }
}

@media (max-width: 480px) {
    .feature-box {
        min-width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== header.css ===== */
/* ===== Header / navigation / cart drawer / search styles (extracted from header.php) ===== */
        input, select, textarea { font-size: 16px !important; }
        html, body { touch-action: manipulation !important; -ms-touch-action: manipulation !important; margin: 0; padding-top: 80px; }
        
        .main-header { 
            position: fixed; 
            top: 0; 
            right: 0; 
            width: 100%; 
            z-index: 1000; 
            background-color: var(--bg-surface-glass); 
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color); 
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            transition: top 0.3s; 
        }
        
        .logo a { display: flex; align-items: center; text-decoration: none; gap: 15px; color: white; font-weight: 800; font-size: 24px; transition: 0.3s; }
        .logo a:hover { color: var(--accent); }
        .logo-img { height: 60px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
        .logo-icon { 
            background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%); 
            color: black; 
            width: 38px; 
            height: 38px; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            border-radius: 10px; 
            font-size: 20px; 
            font-weight: 900;
            box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
        }
        .site-title-text { white-space: nowrap; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 20px; }
        
        .desktop-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; height: 80px; box-sizing: border-box;}
        
        .logo-search-wrapper { display: flex; align-items: center; gap: 20px; }
        
        .nav-links { display: flex; align-items: center; gap: 15px; list-style: none; margin: 0; padding: 0; }
        .nav-links li { display: flex; align-items: center; gap: 15px; }
        .nav-links li:not(:last-child)::after { content: ''; width: 2px; height: 20px; background-color: rgba(255,255,255,0.08); border-radius: 2px; }
        .nav-links a { position: relative; color: var(--text-secondary); text-decoration: none; font-size: 16px; font-weight: 600; transition: color 0.3s; }
        .nav-links a::after { 
            content: ''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; 
            background-color: var(--accent); border-radius: 2px; transition: width 0.3s ease-in-out; 
        }
        .nav-links a:hover, .nav-links a.active { color: var(--accent); }
        .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } 
        
        .header-actions { display: flex; gap: 12px; align-items: center; }
        
        .action-icon-btn { 
            position: relative; 
            background: rgba(255, 255, 255, 0.03); 
            color: white; 
            border: 1px solid var(--border-color); 
            width: 50px; 
            height: 50px; 
            border-radius: 12px; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            font-size: 18px; 
            text-decoration: none; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            cursor: pointer; 
        }
        .action-icon-btn:hover { 
            background: rgba(255, 255, 255, 0.06); 
            border-color: var(--accent); 
            color: var(--accent); 
            box-shadow: 0 0 12px var(--accent-glow);
            transform: translateY(-2px);
        }
        
        .push-bell-btn.subscribed { color: var(--accent); border-color: var(--accent); }
        .action-icon-btn:hover .fa-bell { animation: ring 0.5s ease-in-out both; }
        @keyframes ring { 0% { transform: rotate(0); } 25% { transform: rotate(15deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
        
        .cart-btn { 
            position: relative; 
            background: rgba(255, 204, 0, 0.05); 
            color: var(--accent); 
            border: 1px solid rgba(255, 204, 0, 0.2); 
            padding: 0; 
            height: 50px;
            width: 50px; 
            border-radius: 12px; 
            text-decoration: none; 
            font-weight: bold; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            display: flex;
            justify-content: center; 
            align-items: center; 
            gap: 8px; 
        }
        .cart-btn:hover { 
            background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%); 
            color: black; 
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
            transform: translateY(-2px);
        }
        
        .header-badge {
            position: absolute; 
            top: -6px; 
            right: -6px; 
            background: #ef4444; 
            color: white;
            font-size: 11px; 
            font-weight: bold; 
            padding: 2px 6px; 
            border-radius: 12px;
            min-width: 18px; 
            text-align: center; 
            border: 2px solid var(--bg-dark); 
            display: none; 
            font-family: 'Cairo', sans-serif;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
        }
        .header-badge.pop { animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        
        .whatsapp-btn {
            position: relative; 
            width: 50px; 
            height: 50px; 
            border-radius: 50%; 
            background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%);
            display: flex; 
            justify-content: center; 
            align-items: center; 
            color: black; 
            font-size: 24px; 
            text-decoration: none; 
            border: none;
            cursor: pointer; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
        }
        .whatsapp-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 6px 20px rgba(255, 204, 0, 0.5); }
        .whatsapp-btn::before {
            content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 204, 0, 0.4) 0%, rgba(255, 204, 0, 0) 70%); animation: pulse-whatsapp 2s infinite; z-index: -1;
        }
        @keyframes pulse-whatsapp { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
        
        /* --- تنسيقات نظام البحث المتقدم المشتركة --- */
        .search-input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
        .search-input {
            width: 100%; 
            background: rgba(255, 255, 255, 0.03); 
            border: 1px solid var(--border-color); 
            color: white;
            padding: 12px 45px 12px 15px; 
            border-radius: 12px; 
            font-family: 'Cairo', sans-serif;
            font-size: 15px; 
            transition: all 0.3s ease; 
            outline: none; 
            height: 48px;
        }
        .search-input:focus { border-color: var(--accent); box-shadow: var(--shadow-glow); background: rgba(255, 255, 255, 0.05); }
        .search-icon-inside { position: absolute; right: 15px; color: var(--text-muted); font-size: 18px; pointer-events: none; }
        
        .search-dropdown {
            position: absolute; 
            top: calc(100% + 5px); 
            right: 0; 
            width: 100%; 
            background: var(--bg-light);
            border: 1px solid var(--border-color); 
            border-radius: 16px; 
            box-shadow: var(--shadow-lg);
            z-index: 1001; 
            display: none; 
            flex-direction: column; 
            direction: rtl;
            max-height: 60vh;
            overflow-y: auto;
            overscroll-behavior: contain;          /* التمرير داخل نتائج البحث لا ينتقل للصفحة خلفها */
            -webkit-overflow-scrolling: touch;
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
        }
        .search-dropdown.active { display: flex; animation: slideDownDesktop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); }
        /* أثناء فتح البحث نقفل تمرير الصفحة حتى لا تتحرك خلف النتائج */
        body.search-open { overflow: hidden; }
        
        .search-dropdown::-webkit-scrollbar { width: 6px; }
        .search-dropdown::-webkit-scrollbar-track { background: var(--bg-light); }
        .search-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 8px; }
        .search-dropdown::-webkit-scrollbar-thumb:hover { background: var(--accent); }
        
        .search-dropdown-header {
            padding: 12px 18px; 
            background: rgba(255, 255, 255, 0.02); 
            color: var(--text-muted-light); 
            font-size: 12px; 
            font-weight: 700;
            border-bottom: 1px solid var(--border-color); 
            display: flex; 
            justify-content: space-between; 
            align-items: center;
            position: sticky; 
            top: 0; 
            z-index: 2;
        }
        .clear-history-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700; }
        
        .search-result-item {
            display: flex; 
            align-items: center; 
            padding: 12px 18px; 
            gap: 15px; 
            text-decoration: none;
            color: var(--text-secondary); 
            border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
            transition: var(--transition-fast);
        }
        .search-result-item:hover { background: rgba(255, 255, 255, 0.04); color: white; }
        .search-result-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; background: #1f2937; border: 1px solid rgba(255,255,255,0.05); }
        .search-result-info { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
        .search-result-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: white; }
        .search-result-price { font-size: 12px; color: var(--accent); font-weight: bold; margin-top: 3px; display: flex; flex-direction: column; }
        .search-show-more {
            padding: 14px; 
            text-align: center; 
            background: rgba(255, 204, 0, 0.06); 
            color: var(--accent);
            text-decoration: none; 
            font-size: 13px; 
            font-weight: bold; 
            transition: var(--transition-smooth);
            position: sticky; 
            bottom: 0; 
            z-index: 2; 
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 204, 0, 0.1);
        }
        .search-show-more:hover { background: var(--accent); color: black; }
        .search-show-more__badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(255, 204, 0, 0.18); font-size: 11px; margin: 0 4px; }
        .search-show-more:hover .search-show-more__badge { background: rgba(0, 0, 0, 0.15); }
        .search-all-link { color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
        .search-all-link:hover { text-decoration: underline; }
        .search-result-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        /* أيقونة العدسة داخل الحقل = زر "كل النتائج في المتجر" */
        .search-icon-inside.is-clickable { pointer-events: auto; cursor: pointer; transition: color .2s; }
        .search-icon-inside.is-clickable:hover { color: var(--accent); }
        .no-results { padding: 18px; text-align: center; color: var(--text-muted-light); font-size: 13px; }
        
        /* طبقة التظليل الخاصة ببحث الكمبيوتر والموبايل */
        .search-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition-smooth);
        }
        .search-overlay.active { opacity: 1; visibility: visible; }
        
        /* شريط بحث الكمبيوتر */
        .desktop-search-bar {
            position: absolute; 
            top: 100%; 
            left: 50%; 
            transform: translateX(-50%);
            width: 650px; 
            max-width: 95%; 
            background: var(--bg-light); 
            padding: 20px; 
            box-sizing: border-box;
            border: 1px solid var(--border-color);
            border-top: none; 
            border-radius: 0 0 20px 20px; 
            box-shadow: var(--shadow-lg);
            display: none; 
            z-index: 999;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        .desktop-search-bar.active { display: block; animation: slideDownDesktop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); }
        @keyframes slideDownDesktop { from { transform: translate(-50%, -15px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
        
        /* --- تنسيقات الموبايل --- */
        .mobile-header { 
            display: none; 
            justify-content: space-between; 
            align-items: center; 
            padding: 10px 20px; 
            height: 75px; 
            box-sizing: border-box; 
            background: rgba(15, 19, 26, 0.45); 
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-bottom: 1px solid var(--border-color);
            z-index: 1000; 
            position: relative;
        }
        .menu-toggle { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px; }
        .mobile-header-left { display: flex; align-items: center; gap: 15px; } 
        
        /* شريط بحث الموبايل */
        .mobile-search-bar {
            position: absolute; 
            top: 100%; 
            left: 3%; 
            width: 94%; 
            background: var(--bg-light); 
            padding: 15px;
            box-sizing: border-box; 
            border: 1px solid var(--border-color);
            border-top: none; 
            border-radius: 0 0 20px 20px; 
            display: none; 
            z-index: 999; 
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        .mobile-search-bar.active { display: block; animation: slideDownMobile 0.3s ease-out; }
        @keyframes slideDownMobile { from { transform: translateY(-15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        
        .mobile-menu { 
            position: fixed; 
            top: 0; 
            right: -100%; 
            width: 280px; 
            height: 100vh; 
            z-index: 10001; 
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
            box-shadow: var(--shadow-lg); 
            padding: 30px 25px; 
            display: flex; 
            flex-direction: column; 
            gap: 25px; 
            background: rgba(15, 19, 26, 0.85); 
            backdrop-filter: blur(25px); 
            -webkit-backdrop-filter: blur(25px);
            border-left: 1px solid var(--border-color);
        }
        .mobile-menu.active { right: 0; }
        .close-menu { align-self: flex-end; background: none; border: none; color: white; font-size: 24px; cursor: pointer; transition: var(--transition-fast); }
        .close-menu:hover { color: #ef4444; }
        
        .mobile-nav-links { display: flex; flex-direction: column; gap: 18px; list-style: none; padding: 0; margin: 0; }
        .mobile-nav-links a { 
            color: var(--text-secondary); 
            text-decoration: none; 
            font-size: 17px; 
            font-weight: 600; 
            display: flex; 
            align-items: center; 
            gap: 15px; 
            padding-bottom: 12px; 
            border-bottom: 1px solid rgba(255, 255, 255, 0.04); 
            transition: var(--transition-smooth); 
            cursor: pointer; 
            position: relative;
        }
        .mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--accent); }
        .mobile-nav-links a:hover i, .mobile-nav-links a.active i { color: var(--accent); }
        .mobile-nav-links i { color: var(--text-muted); width: 20px; text-align: center; transition: var(--transition-smooth); font-size: 18px; }
        .mobile-menu-badge { background: #ef4444; color: white; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 12px; min-width: 18px; text-align: center; margin-right: auto; display: none; box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4); }
        
        .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; display: none; backdrop-filter: blur(3px); }
        .overlay.active { display: block; }
        
        /* --- تنسيقات نافذة الإشعارات المحدثة --- */
        .push-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
            z-index: 999998; opacity: 0; visibility: hidden; transition: 0.3s;
        }
        .push-overlay.show { opacity: 1; visibility: visible; }
        
        .push-banner {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
            width: 90%; max-width: 400px; background: var(--bg-light); border: 1px solid var(--border-color);
            border-bottom: 4px solid var(--accent); border-radius: 20px; padding: 25px;
            display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-lg);
            z-index: 999999; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            opacity: 0; visibility: hidden; font-family: 'Cairo', sans-serif; direction: rtl;
            backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
        }
        .push-banner.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
        .push-banner-content { display: flex; align-items: center; gap: 15px; }
        .push-icon { background: var(--accent-light); color: var(--accent); width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 26px; flex-shrink: 0; }
        .push-text h4 { margin: 0 0 8px 0; color: white; font-size: 17px; font-weight: bold;}
        .push-text p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6;}
        .push-actions { display: flex; gap: 12px; width: 100%; }
        .btn-allow { flex: 1; background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%); color: black; border: none; padding: 12px; border-radius: 12px; font-weight: bold; font-family: 'Cairo', sans-serif; font-size: 14px; cursor: pointer; transition: var(--transition-smooth); box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2); }
        .btn-allow:hover { background: #e6b800; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3); }
        .btn-close { flex: 1; background: transparent; color: var(--text-muted-light); border: 1px solid rgba(255,255,255,0.08); padding: 12px; border-radius: 12px; font-weight: bold; font-family: 'Cairo', sans-serif; font-size: 14px; cursor: pointer; transition: var(--transition-smooth); }
        .btn-close:hover { background: rgba(255,255,255,0.04); color: white; }
        
        @media (max-width: 1024px) {
            body { padding-top: 40px; }
            .desktop-header { display: none; }
            .mobile-header { display: flex; }
            .logo a { font-size: 18px; gap: 8px; } 
            .logo-img { height: 38px; } 
            .header-actions { display: flex; gap: 8px; align-items: center; }
            .whatsapp-btn { width: 32px; height: 32px; font-size: 14px; }
            .mobile-action-btn { width: 32px; height: 32px; font-size: 14px; }
            .menu-toggle { font-size: 18px; padding: 4px; }
        }

        .search-result-item {
            display: flex; 
            align-items: center; 
            padding: 12px 18px; 
            gap: 15px; 
            text-decoration: none;
            color: var(--text-secondary); 
            border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .search-result-item::after {
            content: '\f053'; 
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 20px;
            opacity: 0;
            transform: translateX(10px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--accent);
            font-size: 12px;
        }
        .search-result-item:hover { 
            background: rgba(255, 255, 255, 0.04); 
            color: white; 
            padding-left: 30px;
        }
        .search-result-item:hover::after {
            opacity: 1;
            transform: translateX(0);
        }

        /* --- تنسيقات سلة التسوق المنزلقة (Mini-Cart Drawer) --- */
        .cart-drawer-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 10002;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        .cart-drawer-backdrop.active {
            opacity: 1;
            visibility: visible;
        }
        .cart-drawer {
            position: fixed;
            top: 0;
            left: -420px;
            width: 400px;
            max-width: 90%;
            height: 100vh;
            background: rgba(15, 19, 26, 0.85);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-right: 1px solid var(--border-color);
            z-index: 10003;
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Cairo', sans-serif;
            direction: rtl;
        }
        .cart-drawer.active {
            left: 0;
        }
        .cart-drawer.admin-active {
            top: 40px;
            height: calc(100vh - 40px);
        }
        .cart-drawer-header {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .cart-drawer-header h3 {
            margin: 0;
            color: white;
            font-size: 18px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .cart-drawer-header h3 i {
            color: var(--accent);
        }
        .cart-drawer-close {
            background: none;
            border: none;
            color: #64748b;
            font-size: 22px;
            cursor: pointer;
            transition: color 0.2s;
        }
        .cart-drawer-close:hover {
            color: #ef4444;
        }
        .cart-drawer-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px 25px;
            -webkit-overflow-scrolling: touch;
        }
        .cart-drawer-body::-webkit-scrollbar {
            width: 6px;
        }
        .cart-drawer-body::-webkit-scrollbar-track {
            background: transparent;
        }
        .cart-drawer-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        .cart-drawer-body::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }
        
        /* empty state inside drawer */
        .drawer-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            text-align: center;
            color: var(--text-secondary);
            gap: 15px;
            padding: 20px 0;
        }
        .drawer-empty-state i {
            font-size: 48px;
            color: var(--text-muted);
        }
        .btn-drawer-browse, .btn-drawer-login {
            background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%);
            color: black;
            border: none;
            padding: 10px 24px;
            border-radius: 12px;
            font-weight: bold;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
            display: inline-block;
            margin-top: 10px;
        }
        .btn-drawer-browse:hover, .btn-drawer-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3);
            color: black;
        }

        /* items styles */
        .cart-drawer-item {
            display: flex;
            gap: 15px;
            padding-bottom: 20px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            align-items: flex-start;
            text-align: right;
        }
        .item-img-link {
            width: 75px;
            height: 75px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            flex-shrink: 0;
            background: #1f2937;
        }
        .item-img-link img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .item-title-link {
            text-decoration: none;
            color: white;
            transition: color 0.2s;
        }
        .item-title-link:hover {
            color: var(--accent);
        }
        .item-title {
            margin: 0;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: white;
        }
        .item-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 3px;
        }
        .item-tag {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .tag-color i {
            font-size: 10px;
        }
        .item-pricing {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 5px;
        }
        .item-price {
            font-size: 13px;
            color: var(--text-secondary);
        }
        .item-line-total {
            font-size: 14px;
            font-weight: bold;
            color: var(--accent);
        }
        .item-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
        }
        .drawer-qty-wrapper {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        .drawer-qty-wrapper button {
            background: none;
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .drawer-qty-wrapper button:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--accent);
        }
        .drawer-qty-wrapper input {
            width: 32px;
            border: none;
            background: transparent;
            text-align: center;
            color: white;
            font-weight: bold;
            font-size: 13px;
            padding: 0;
            pointer-events: none;
            -moz-appearance: textfield;
        }
        .drawer-qty-wrapper input::-webkit-outer-spin-button,
        .drawer-qty-wrapper input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .btn-drawer-delete {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
            transition: color 0.2s;
            padding: 5px 8px;
        }
        .btn-drawer-delete:hover {
            color: #ef4444;
        }

        /* drawer footer */
        .cart-drawer-footer {
            padding: 20px 25px;
            border-top: 1px solid var(--border-color);
            background: rgba(10, 13, 18, 0.95);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .drawer-total-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
            color: white;
        }
        .drawer-total-amount {
            color: var(--accent);
            font-size: 18px;
        }
        .drawer-footer-actions {
            display: flex;
            gap: 12px;
        }
        .btn-drawer-cart, .btn-drawer-checkout {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            text-align: center;
            font-weight: bold;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        .btn-drawer-cart {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-color);
            color: white;
        }
        .btn-drawer-cart:hover {
            background: rgba(255, 255, 255, 0.06);
            color: var(--accent);
            border-color: var(--accent);
        }
        .btn-drawer-checkout {
            background: linear-gradient(135deg, var(--accent) 0%, #e6b800 100%);
            color: black;
            border: none;
            box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-drawer-checkout:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3);
            color: black;
        }

/* ===== Loader animations & search highlight (extracted) ===== */
        @keyframes spin-loader {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @keyframes pulse-logo {
            0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
            50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
        }
        @keyframes pulse-text {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
        .search-result-item.highlighted {
            background: rgba(255, 204, 0, 0.1) !important;
            border-right: 3px solid var(--accent) !important;
        }
        .search-show-more.highlighted {
            background: var(--accent) !important;
            color: black !important;
        }

/* =====================================================================
   Admin quick bar (شريط الأدمن السريع) — markup in header.php (if $is_admin)
   Height stays 40px on every breakpoint (the fixed site header sits at top:40px)
   ===================================================================== */
.admin-quick-bar { position: fixed; top: 0; left: 0; width: 100%; height: 40px; z-index: 2000; box-sizing: border-box;
    background: linear-gradient(90deg, #0b0f19 0%, #0e131d 50%, #0b0f19 100%); border-bottom: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); font-family: 'Cairo', sans-serif; font-size: 13px; direction: rtl; }
.admin-quick-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: .8; }
.aqb-inner { max-width: 1500px; height: 40px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 14px; }
.aqb-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; text-decoration: none; white-space: nowrap; padding-inline-end: 12px; border-inline-end: 1px solid rgba(255,255,255,.08); height: 26px; }
.aqb-brand i { font-size: 15px; filter: drop-shadow(0 0 6px rgba(255, 204, 0, .35)); }
.aqb-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: visible; }
.aqb-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; color: #cbd5e1; text-decoration: none; font-weight: 700; white-space: nowrap; background: transparent; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 13px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.aqb-link i { font-size: 14px; color: #94a3b8; transition: color .2s, transform .2s; }
.aqb-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.aqb-link:hover i { color: var(--accent); transform: translateY(-1px); }
.aqb-link.is-active { background: rgba(255, 204, 0, 0.12); color: var(--accent); border-color: rgba(255, 204, 0, 0.25); }
.aqb-link.is-active i { color: var(--accent); }
.aqb-link:focus-visible, .aqb-user:focus-visible, .aqb-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.aqb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #000; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(255, 204, 0, .35); }
.aqb-badge--red { background: #ef4444; color: #fff; box-shadow: 0 2px 6px rgba(239, 68, 68, .4); }
.aqb-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.aqb-cta { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--accent); color: #000; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 10px rgba(255, 204, 0, .25); transition: transform .2s, box-shadow .2s, background .2s; }
.aqb-cta:hover { background: #ffd633; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255, 204, 0, .35); }
.aqb-user { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #e2e8f0; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; max-width: 180px; transition: background .2s, border-color .2s; }
.aqb-user:hover, .aqb-user[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 204, 0, 0.3); }
.aqb-user__avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #e6b800); color: #000; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex: 0 0 auto; }
.aqb-user__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqb-user__caret { font-size: 10px; color: #94a3b8; transition: transform .2s; }
.aqb-user[aria-expanded="true"] .aqb-user__caret { transform: rotate(180deg); }
.aqb-dd { position: relative; }
.aqb-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; padding: 6px; border-radius: 14px; background: rgba(13, 17, 26, 0.97); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 2100; }
.aqb-menu--end { inset-inline-start: auto; inset-inline-end: 0; }
.aqb-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.aqb-menu__item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-weight: 700; font-size: 13px; transition: background .15s, color .15s; }
.aqb-menu__item i { width: 18px; text-align: center; color: #94a3b8; font-size: 14px; }
.aqb-menu__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.aqb-menu__item:hover i { color: var(--accent); }
.aqb-menu__item.is-active { background: rgba(255, 204, 0, 0.12); color: var(--accent); }
.aqb-menu__item.is-active i { color: var(--accent); }
.aqb-menu__item .aqb-badge { margin-inline-start: auto; }
.aqb-menu__item--danger { color: #f87171; }
.aqb-menu__item--danger i { color: #f87171; }
.aqb-menu__item--danger:hover { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.aqb-mobile-more { display: none; }
.aqb-sheet { display: none; }

/* ≤1200px: hide labels of the primary links (icons + badges only), keep the brand icon */
@media (max-width: 1200px) {
    .aqb-link > span { display: none; }
    .aqb-link { padding: 0 9px; }
    .aqb-brand span { display: none; }
    .aqb-brand { padding-inline-end: 8px; }
}
/* ≤1024px (mobile header): compact bar — icons only, user chip becomes avatar only, full-labels sheet via the ☰ button */
@media (max-width: 1024px) {
    .aqb-inner { padding: 0 10px; gap: 8px; }
    .aqb-nav { gap: 0; justify-content: space-between; }
    .aqb-link { height: 32px; padding: 0 7px; }
    .aqb-link i { font-size: 16px; }
    .aqb-dd:not(.aqb-dd--user):not(.aqb-dd--notif) { display: none; }         /* "المزيد" dropdown → use the sheet instead (الجرس يبقى) */
    .aqb-cta span { display: none; }
    .aqb-cta { width: 28px; padding: 0; justify-content: center; border-radius: 50%; }
    .aqb-user { padding: 0; width: 30px; justify-content: center; border-radius: 50%; }
    .aqb-user__name, .aqb-user__caret { display: none; }
    .aqb-mobile-more { display: inline-flex; }
    .aqb-sheet { display: block; position: fixed; top: 40px; left: 0; right: 0; max-height: calc(100vh - 40px); overflow-y: auto; background: #0b0f19; border-bottom: 1px solid rgba(255, 204, 0, 0.35); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); padding: 12px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 2050; }
    .aqb-sheet.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .aqb-sheet__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
    .aqb-sheet__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: #cbd5e1; text-decoration: none; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; transition: background .15s, color .15s; /* يلغي transition:all الموروثة من style.css على الروابط */ }
    .aqb-sheet__item i { font-size: 18px; color: #94a3b8; }
    .aqb-sheet__item.is-active { background: rgba(255, 204, 0, 0.12); border-color: rgba(255, 204, 0, 0.3); color: var(--accent); }
    .aqb-sheet__item.is-active i { color: var(--accent); }
    .aqb-sheet__item .aqb-badge { position: absolute; top: 6px; inset-inline-end: 6px; }
    .aqb-sheet__item--cta { background: rgba(255, 204, 0, 0.14); color: var(--accent); }
    .aqb-sheet__item--cta i { color: var(--accent); }
    .aqb-sheet__item--danger { color: #f87171; }
    .aqb-sheet__item--danger i { color: #f87171; }
}
@media (max-width: 400px) {
    .aqb-link { padding: 0 5px; }
    .aqb-brand { display: none; }
}

/* ===== مركز التنبيهات (شريط الأدمن) ===== */
.aqb-bell { position: relative; width: 34px; padding: 0; justify-content: center; border-radius: 50%; }
.aqb-bell .aqb-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
.aqb-bell .fa-solid.fa-bell { color: var(--accent); animation: aqbRing 2.4s ease-in-out 1; transform-origin: top center; }
@keyframes aqbRing { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-8deg); } 50% { transform: rotate(0); } }
.aqb-notif { min-width: 340px; max-width: min(92vw, 400px); padding: 0; overflow: hidden; }
.aqb-notif__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #fff; }
.aqb-notif__head b i { color: var(--accent); margin-inline-end: 6px; }
.aqb-notif__refresh { border: none; background: rgba(255, 255, 255, 0.06); color: #cbd5e1; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.aqb-notif__refresh:hover { color: var(--accent); }
.aqb-notif__body { max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; }
.aqb-notif__group { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #e2e8f0; text-decoration: none; font-weight: 800; font-size: 13px; margin-top: 4px; background: rgba(255, 255, 255, 0.03); transition: background .15s; }
.aqb-notif__group:hover { background: rgba(255, 255, 255, 0.07); }
.aqb-notif__group.is-zero { opacity: .55; }
.aqb-notif__group i { width: 20px; text-align: center; font-size: 14px; }
.aqb-notif__ico--yellow { color: var(--accent); } .aqb-notif__ico--sky { color: #38bdf8; } .aqb-notif__ico--blue { color: #60a5fa; } .aqb-notif__ico--red { color: #f87171; } .aqb-notif__ico--purple { color: #a78bfa; } .aqb-notif__ico--muted { color: #94a3b8; }
.aqb-notif__label { flex: 1; }
.aqb-badge--zero { background: rgba(255, 255, 255, 0.1); color: #94a3b8; box-shadow: none; }
.aqb-notif__item { display: flex; flex-direction: column; gap: 2px; padding: 7px 12px 7px 12px; margin-inline-start: 30px; border-inline-start: 2px solid rgba(255, 255, 255, 0.08); color: #cbd5e1; text-decoration: none; font-size: 12.5px; transition: background .15s, color .15s; border-radius: 0 8px 8px 0; }
.aqb-notif__item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.aqb-notif__t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqb-notif__item small { color: #94a3b8; font-size: 11px; }
.aqb-notif__empty { padding: 22px 12px; text-align: center; color: #94a3b8; font-size: 13px; }
@media (max-width: 1024px) {
    .aqb-dd--notif .aqb-menu { position: fixed; top: 44px; inset-inline: 8px; min-width: 0; max-width: none; }
}
/* ===== footer.css ===== */
/* ===== Footer / bottom nav / install banner / modals (extracted from footer.php) ===== */
    /* --- تنسيقات الفوتر الأساسي (للكمبيوتر) --- */
    .main-footer { 
        background-color: #05070a; 
        border-top: 1px solid rgba(255, 255, 255, 0.05); 
        padding: 50px 20px 20px; 
        margin-top: 50px; 
        color: var(--text-muted-light, #cbd5e1); 
    }
    
    .footer-container { 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
        gap: 30px; 
        max-width: 1200px; 
        margin: 0 auto; 
        padding-bottom: 30px; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    }
    
    .footer-col h3 { 
        color: white; 
        font-size: 18px; 
        margin-bottom: 20px; 
        display: flex; 
        align-items: center; 
        gap: 10px; 
        font-weight: 800;
    }
    .footer-col p { line-height: 1.8; font-size: 14px; color: #94a3b8; }
    .footer-links { list-style: none; padding: 0; margin: 0; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { color: #94a3b8; text-decoration: none; transition: var(--transition-smooth, 0.3s); display: inline-block; }
    .footer-links a:hover { color: var(--accent, #ffcc00); transform: translateX(-5px); }
    
    .social-icons { display: flex; gap: 12px; margin-top: 20px; }
    .social-icons a { 
        width: 38px; 
        height: 38px; 
        background: rgba(255, 255, 255, 0.03); 
        color: white; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        border-radius: 50%; 
        border: 1px solid rgba(255, 255, 255, 0.05);
        text-decoration: none; 
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }
    .social-icons a:hover { 
        background: var(--accent, #ffcc00); 
        color: black; 
        border-color: transparent;
        transform: translateY(-4px); 
        box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    }
    .footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; color: #64748b; }

    /* تنسيق خاص لاسم المطور والخط السفلي */
    .developer-credit {
        font-size: 11px;
        color: #64748b;
        margin-top: 8px;
        display: inline-block;
        border-bottom: 1px dashed rgba(255, 204, 0, 0.4);
        padding-bottom: 4px;
    }
    .developer-credit a {
        color: #94a3b8;
        text-decoration: none;
        transition: 0.3s;
        font-weight: 600;
        cursor: pointer;
    }
    .developer-credit a:hover {
        color: var(--accent, #ffcc00);
    }

    /* --- تنسيقات شريط التنقل السفلي للموبايل --- */
    .bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: rgba(15, 19, 26, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 9998;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
        /* مسافة إضافية من الأسفل حتى لا تلتصق الأيقونات بحافة الشاشة/شريط الهوم */
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    }

    @media (max-width: 1024px) {
        .bottom-nav {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0 5px calc(env(safe-area-inset-bottom, 0px) + 12px);
        }
        body { padding-bottom: 100px !important; }
    }

    .nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        font-size: 11px;
        font-family: 'Cairo', sans-serif;
        font-weight: 700;
        flex: 1;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-item i {
        font-size: 18px;
        padding: 6px 12px;
        border-radius: 12px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 4px;
    }

    .nav-item.active { color: white; }
    .nav-item.active i {
        color: var(--accent, #ffcc00);
        background: rgba(255, 204, 0, 0.12);
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
    }

    .nav-item:not(.active):hover { color: #94a3b8; }
    .nav-item:not(.active):hover i { transform: translateY(-2px); }

    .nav-icon-wrapper {
        position: relative;
        display: inline-block;
    }

    .nav-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background: #ef4444;
        color: white;
        font-size: 10px;
        font-weight: 900;
        padding: 2px 6px;
        border-radius: 12px;
        min-width: 18px;
        text-align: center;
        border: 2px solid #0f131a;
        box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
        transition: transform 0.3s ease;
    }

    @keyframes badgePop {
        0% { transform: scale(1); }
        50% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }
    .nav-badge.pop {
        animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-item:not(:last-child)::after {
        content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: rgba(255, 255, 255, 0.05);
    }



    /* --- تنسيقات النوافذ المنبثقة العامة (للتثبيت والمطور) --- */
    .modal-overlay-generic {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .modal-overlay-generic.show { opacity: 1; visibility: visible; }
    .modal-box-generic {
        background: #0f131a; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 30px 25px; width: 90%; max-width: 380px;
        text-align: center; font-family: 'Cairo', sans-serif; direction: rtl; position: relative; transform: translateY(20px); transition: 0.3s;
        max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
    }
    .modal-overlay-generic.show .modal-box-generic { transform: translateY(0); }
    .modal-close-generic { position: absolute; top: 15px; left: 15px; background: transparent; border: none; color: #64748b; font-size: 20px; cursor: pointer; transition: 0.2s; }
    .modal-close-generic:hover { color: #ef4444; }

    /* --- تنسيقات بانر التثبيت --- */
    .install-banner {
        position: fixed; 
        top: -100%; 
        left: 50%; 
        transform: translateX(-50%); 
        width: 100%; 
        max-width: 500px;
        background: rgba(15, 19, 26, 0.9); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: none; 
        border-radius: 0 0 20px 20px;
        padding: 15px 20px;
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        box-shadow: 0 10px 35px rgba(0,0,0,0.4);
        z-index: 999999; 
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
        font-family: 'Cairo', sans-serif; 
        direction: rtl; 
        box-sizing: border-box;
    }
    .install-banner.show { top: 0; }
    
    .install-banner-content { display: flex; align-items: center; gap: 12px; }
    .install-app-icon img { width: 45px; height: 45px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.05); }
    .install-app-text { display: flex; flex-direction: column; }
    .install-app-text strong { color: white; font-size: 15px; font-weight: 800; }
    .install-app-text span { color: #94a3b8; font-size: 12px; }
    
    .install-actions { display: flex; align-items: center; gap: 10px; }
    .btn-install-app {
        background: linear-gradient(135deg, var(--accent, #ffcc00) 0%, #e6b800 100%); 
        color: black; 
        border: none; 
        padding: 8px 18px; 
        border-radius: 20px;
        font-weight: 800; 
        font-family: 'Cairo', sans-serif; 
        font-size: 13.5px; 
        cursor: pointer; 
        transition: var(--transition-smooth, 0.3s);
        box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
    }
    .btn-install-app:hover { transform: scale(1.05) translateY(-1px); box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3); }
    .btn-close-install { background: transparent; color: #64748b; border: none; font-size: 20px; cursor: pointer; padding: 5px; transition: 0.2s; }
    .btn-close-install:hover { color: #ef4444; }
    
    .ios-steps { list-style: none; padding: 0; margin: 0; text-align: right; background: rgba(255,255,255,0.01); padding: 15px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); }
    .ios-steps li { display: flex; align-items: flex-start; gap: 12px; color: white; font-size: 14px; margin-bottom: 20px; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 15px;}
    .ios-steps li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0;}
    .step-num { background: var(--accent); color: black; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
    .step-text { flex: 1; }
    .step-img-full { display: block; width: 100%; max-width: 220px; margin: 10px auto 0; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    /* تنبيه "افتح في سفاري" لمتصفحات التطبيقات (انستغرام/فيسبوك/واتساب) على الآيفون */
    .ios-inapp { text-align: right; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
    .ios-inapp p { margin: 0 0 10px; color: #fde68a; font-size: 13px; line-height: 1.7; }
    .ios-inapp p i { margin-left: 4px; }
    .ios-inapp__actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .ios-inapp__btn { flex: 1 1 auto; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
    .ios-inapp__btn--primary { background: var(--accent, #ffcc00); border-color: var(--accent, #ffcc00); color: #000; }
    .ios-inapp small { display: block; margin-top: 8px; color: #94a3b8; font-size: 11.5px; line-height: 1.6; }

