/* =====================================================================
   SKIN 2: CYBER LAUNCHER — Full-Site Left/Right Fixed Sidebar
           + Wide Horizontal Product Cards + Gaming Arcade Tiles
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --primary-soft: rgba(6, 182, 212, 0.14);
    --accent: #a855f7;
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.14);
    --danger: #f43f5e;
    --danger-soft: rgba(244, 63, 94, 0.14);

    --bg: #edf2f7;
    --bg-subtle: #e2e8f0;
    --surface: #ffffff;
    --surface-glass: rgba(10, 15, 30, 0.96);
    --text: #0b1120;
    --muted: #475569;
    --border: #cbd5e1;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 10px;
    --shadow-sm: 0 2px 10px rgba(6, 182, 212, 0.08);
    --shadow-md: 0 12px 28px rgba(6, 182, 212, 0.18);
    --shadow-lg: 0 20px 50px rgba(6, 182, 212, 0.24);
}

[data-theme="dark"] {
    --primary: #22d3ee;
    --primary-hover: #67e8f9;
    --primary-soft: rgba(34, 211, 238, 0.15);
    --accent: #c084fc;
    --success: #34d399;
    --danger: #fb7185;

    --bg: #050812;
    --bg-subtle: #0d1326;
    --surface: #0a1020;
    --surface-glass: rgba(6, 10, 22, 0.96);
    --text: #f0f9ff;
    --muted: #8ea2c2;
    --border: rgba(34, 211, 238, 0.24);

    --shadow-sm: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 6px 20px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 0 24px rgba(34, 211, 238, 0.18), 0 14px 32px rgba(0, 0, 0, 0.72);
    --shadow-lg: 0 0 38px rgba(168, 85, 247, 0.22), 0 24px 55px rgba(0, 0, 0, 0.85);
}

body {
    font-family: 'Readex Pro', 'Cairo', sans-serif;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
    background-size: 30px 30px;
}
html[dir="ltr"] body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* =========================================================
   شريط جانبي ثابت للموقع بالكامل (المتجر + الإدارة + الموزعين)
   ========================================================= */
@media (min-width: 1081px) {
    body:has(> header.navbar) {
        padding-inline-start: 262px;
    }

    header.navbar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: 262px;
        height: 100vh;
        overflow-y: auto;
        background: #070b17 !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        border-inline-end: 2px solid #22d3ee !important;
        box-shadow: 0 0 35px rgba(34, 211, 238, 0.15);
        z-index: 600;
    }

    header.navbar .navbar-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        max-width: 100%;
        width: 100%;
        min-height: 100%;
        padding: 20px 14px;
        gap: 16px;
    }

    header.navbar .brand {
        color: #f8fafc;
        padding: 6px 8px 16px;
        border-bottom: 1px solid rgba(34, 211, 238, 0.22);
    }

    header.navbar .nav-desktop-links {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
    }

    header.navbar .nav-item-link,
    header.navbar .nav-dropdown > summary {
        width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 6px;
        color: #cbd5e1;
        border-inline-start: 3px solid transparent;
    }

    header.navbar .nav-item-link:hover,
    header.navbar .nav-item-link.active,
    header.navbar .nav-dropdown > summary:hover,
    header.navbar .nav-dropdown[open] > summary,
    header.navbar .nav-dropdown.is-active > summary {
        background: rgba(34, 211, 238, 0.14);
        color: #22d3ee;
        border-inline-start-color: #22d3ee;
    }

    /* قوائم Accordion داخل الشريط الجانبي */
    header.navbar .nav-dropdown-menu {
        position: static !important;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(34, 211, 238, 0.18);
        border-radius: 6px;
        box-shadow: none;
        animation: none;
    }

    header.navbar .nav-dropdown-item {
        color: #cbd5e1;
        font-size: 0.83rem;
        padding: 8px 10px;
        border-radius: 5px;
    }
    header.navbar .nav-dropdown-item:hover,
    header.navbar .nav-dropdown-item.active {
        background: rgba(34, 211, 238, 0.2);
        color: #67e8f9;
    }

    header.navbar .nav-end-bar {
        margin-top: auto;
        margin-inline-start: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(34, 211, 238, 0.22);
    }

    header.navbar .nav-balance-pill,
    header.navbar .profit-pill,
    header.navbar .nav-cart-btn {
        width: 100%;
        justify-content: center;
        border-radius: 6px;
        padding: 9px 12px;
        height: auto;
        background: rgba(34, 211, 238, 0.14);
        border-color: rgba(34, 211, 238, 0.35);
        color: #67e8f9;
    }

    header.navbar .nav-desktop-tools {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px;
        width: 100%;
    }
    header.navbar .nav-desktop-tools .nav-dropdown {
        width: 100%;
    }
    header.navbar .nav-icon-btn {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(34, 211, 238, 0.25);
        color: #e2e8f0;
        border-radius: 6px;
    }

    .container {
        max-width: 1320px;
        padding-inline: 28px;
    }
}

.brand-icon {
    border-radius: 6px;
    background: linear-gradient(135deg, #06b6d4, #9333ea);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

/* =========================================================
   هيرو سايبر مقصوص الزوايا داخل مساحة العمل
   ========================================================= */
.hero {
    margin: 22px 28px 30px;
    padding: 36px 28px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background:
        radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.35), transparent 45%),
        radial-gradient(circle at 12% 85%, rgba(6, 182, 212, 0.35), transparent 48%),
        #070c1c;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    box-shadow: 0 0 32px rgba(6, 182, 212, 0.2);
}
@media (max-width: 768px) {
    .hero { margin: 0 0 24px; clip-path: none; }
}

.hero-badge,
.order-badge,
.status-badge,
.count-label,
.filter-tab,
.digital-tag {
    border-radius: 4px;
}

/* =========================================================
   الأقسام: مربعات ألعاب عمودية (أيقونة كبيرة بالأعلى)
   ========================================================= */
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.category-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 12px;
    border-radius: 8px;
    gap: 10px;
}

.category-icon {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    font-size: 1.9rem;
    border: 1px solid var(--primary);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.category-name {
    white-space: normal;
    line-height: 1.3;
}

/* =========================================================
   المنتجات: بطاقات أفقية عريضة (Landscape List Cards)
   ========================================================= */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 16px;
}

@media (max-width: 680px) {
    .products-grid { grid-template-columns: 1fr; }
}

.product-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 8px;
    border-inline-start: 3px solid var(--primary);
}

.product-thumb {
    width: 175px;
    height: auto;
    min-height: 185px;
    flex-shrink: 0;
}

.product-body {
    padding: 16px 18px;
}

.product-desc {
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 540px) {
    .product-card { flex-direction: column; }
    .product-thumb { width: 100%; height: 155px; min-height: 0; }
}

.product-card:hover,
.game-card:hover,
.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.28);
}

/* =========================================================
   لوحة التحكم والبطاقات التقنية
   ========================================================= */
.stat-card {
    border-radius: 6px;
    border-top: 3px solid var(--primary);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 50%, var(--surface)), var(--surface));
}
.stat-card:nth-child(2n) {
    border-top-color: var(--accent);
}
.stat-value,
.price,
.offer-price,
.offer-dzd,
.checkout-price {
    font-family: 'Space Grotesk', Consolas, monospace;
}

.btn {
    border-radius: 5px;
}
.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #7c3aed);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.data-table th {
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    font-size: 0.78rem;
}

/* صفحة تسجيل الدخول بنمط مقسوم تقني */
body.auth-page {
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.24), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.24), transparent 45%),
        var(--bg);
}
.auth-card {
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}