﻿/* ═══════════════════════════════════════════════════════════
   UNIFIED DESIGN SYSTEM — نفس الموقع الأصلي بالضبط
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── ROOT (Dark default — نفس الأصل) ───────────────────── */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --text-color: #f8f9fa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: rgba(30,30,30,0.95);
    --footer-bg: #000000;
    --footer-text: #f8f9fa;
    --shadow: 0 4px 6px rgba(0,0,0,0.4);
    --transition: all 0.3s ease;
    --menu-bg: #6c5ce7;
    --menu-text: #ffffff;
    --border-radius: 8px;
    --title-color: #6c5ce7;
    --bg-base: #121212;
    --bg-surface: #181818;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --bg-input: #141414;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --border-focus: rgba(108,92,231,0.55);
    --accent: #6c5ce7;
    --accent-dim: rgba(108,92,231,0.15);
    --accent-glow: rgba(108,92,231,0.25);
    --accent-soft: #a29bfe;
    --success: #00b894;
    --success-dim: rgba(0,184,148,0.15);
    --danger: #e17055;
    --danger-dim: rgba(225,112,85,0.15);
    --warning: #fdcb6e;
    --warning-dim: rgba(253,203,110,0.15);
    --text-primary: #f8f9fa;
    --text-secondary: #a29bfe;
    --text-muted: #888;
    --text-accent: #a29bfe;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font-ui: 'Sora', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ─── LIGHT THEME ────────────────────────────────────────── */
html.theme-light {
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --header-bg: rgba(255,255,255,0.95);
    --footer-bg: #343a40;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --menu-bg: #6c5ce7;
    --menu-text: #ffffff;
    --bg-base: #f8f9fa;
    --bg-surface: #ebebed;
    --bg-card: #ffffff;
    --bg-input: #f0f0f5;
    --border: rgba(0,0,0,0.09);
    --border-hover: rgba(0,0,0,0.18);
    --text-primary: #333;
    --text-secondary: #555560;
    --text-muted: #888;
    --accent-dim: rgba(108,92,231,0.1);
    --accent-glow: rgba(108,92,231,0.18);
    --success-dim: rgba(0,184,148,0.12);
    --danger-dim: rgba(225,112,85,0.12);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

    .logo i {
        margin: 0 10px;
        color: var(--primary-color);
    }

    .logo img {
        height: 50px;
        object-fit: contain;
    }

.logo-fallback {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.top-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

    .top-nav li {
        margin: 0 10px;
    }

    .top-nav a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        font-size: 0.9rem;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .top-nav a:hover {
            color: var(--primary-color);
        }

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 25px;
    flex-shrink: 0;
}

.theme-toggle, .lang-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--text-color) !important;
    font-size: 1.2rem !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-left: 15px;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center;
    transition: transform 0.3s ease !important;
    box-shadow: none !important;
}

    .theme-toggle:hover, .lang-toggle:hover {
        transform: rotate(360deg) !important;
        background: none !important;
        box-shadow: none !important;
    }

/* ═══════════════════════════════════════════════════════════
   MAIN NAV
   ═══════════════════════════════════════════════════════════ */
.main-nav {
    background-color: #1a1a1a;
    margin-top: 70px;
    padding: 12px 0;
    position: sticky;
    top: 70px;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

    .nav-links a {
        text-decoration: none;
        color: #c8c8d8;
        font-weight: 500;
        font-size: 0.88rem;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            color: #ffffff;
            transform: translateY(-2px);
        }

        .nav-links a.active {
            color: var(--primary-color);
            font-weight: 600;
        }

    .nav-links i {
        margin: 0 5px;
    }

html.theme-light .main-nav {
    background-color: var(--primary-color);
    border-bottom: none;
}

html.theme-light .nav-links a {
    color: #ffffff !important;
}

    html.theme-light .nav-links a:hover {
        background: rgba(255,255,255,0.15);
        color: #ffffff !important;
        transform: translateY(-3px);
    }

    html.theme-light .nav-links a.active {
        background: rgba(255,255,255,0.2);
        color: #ffffff !important;
    }

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════════════════════ */
.mobile-nav-toggle {
    display: none;
    background: var(--primary-color) !important;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: navPulse 2s infinite;
}

@keyframes navPulse {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.mobile-nav-menu {
    position: fixed;
    top: 70px;
    left: 15px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 15px;
    width: 260px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.08);
}

    .mobile-nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .mobile-nav-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        margin: 4px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

        .mobile-nav-menu li:last-child {
            border-bottom: none;
        }

    .mobile-nav-menu a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 11px 15px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .mobile-nav-menu a:hover {
            background: rgba(108,92,231,0.15);
            color: var(--primary-color);
        }

html.theme-light .mobile-nav-menu {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

    html.theme-light .mobile-nav-menu a {
        color: #333;
    }

    html.theme-light .mobile-nav-menu li {
        border-bottom-color: rgba(0,0,0,0.06);
    }

html.theme-light header {
    background-color: var(--header-bg);
}

[dir="ltr"] .mobile-nav-toggle {
    order: 1;
}

[dir="ltr"] .mobile-nav-menu {
    left: 15px;
    right: auto;
}

[dir="rtl"] .mobile-nav-menu {
    right: 15px;
    left: auto;
}

    [dir="rtl"] .mobile-nav-menu a {
        justify-content: flex-end;
    }

@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    .top-nav {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        position: static;
    }

    header {
        padding: 10px 0;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
    }

        .logo img {
            height: 40px;
        }

        .logo span {
            font-size: 1.2rem;
        }

    .controls {
        margin-right: 0;
        gap: 10px;
        order: 3;
    }

    .theme-toggle, .lang-toggle {
        margin-left: 0 !important;
        font-size: 1.1rem !important;
    }
    /* body padding-top شيلناه — الـ pub-page-wrapper بيتحكم في الـ offset */
    body {
        padding-top: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   PAGE WRAPPER + CONTENT
   ═══════════════════════════════════════════════════════════ */
.pub-page-wrapper {
    padding-top: calc(70px + 44px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pub-page-content {
    flex: 1;
    width: 100%;
    padding: 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .pub-page-wrapper {
        padding-top: 0;
    }

    .pub-page-content {
        display: block;
        /* padding-top يعوض الهيدر الـ fixed عشان الكارت يبان كامل */
        padding: 70px 1rem 1rem;
        min-height: auto;
    }

    .main-container {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }

    .main-header {
        padding: 1.1rem 1.25rem !important;
    }

    .main-body {
        padding: 1.25rem !important;
    }
}

/* login/register wrap */
.login-page-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .login-page-wrap {
        display: block;
        padding-top: 10px;
    }

        .login-page-wrap .main-container {
            max-width: 100% !important;
            width: 100% !important;
            border-radius: 12px !important;
            margin: 0 !important;
        }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.main-container {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

    .main-container.wide {
        max-width: 520px;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    padding: 1.75rem 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

    .main-header::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, var(--accent), transparent);
    }

    .main-header h2 {
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-primary);
        margin: 0;
    }

.main-body {
    padding: 1.75rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

        .form-group label i {
            font-size: 12px;
            color: var(--text-muted);
        }

.form-control, input.form-control, select.form-control {
    width: 100%;
    padding: 0.62rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

    .form-control:hover {
        border-color: var(--border-hover);
    }

    .form-control:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

html.theme-light .form-control {
    background: #f8f8fc;
    border-color: rgba(0,0,0,0.12);
    color: #333;
}

    html.theme-light .form-control:focus {
        background: #fff;
    }

/* Autofill fix */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input, #141414) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-input, #141414) inset !important;
    -webkit-text-fill-color: var(--text-primary, #f8f9fa) !important;
    caret-color: var(--text-primary, #f8f9fa) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

html.theme-light input:-webkit-autofill, html.theme-light input:-webkit-autofill:hover,
html.theme-light input:-webkit-autofill:focus, html.theme-light input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8f8fc inset !important;
    box-shadow: 0 0 0 1000px #f8f8fc inset !important;
    -webkit-text-fill-color: #333 !important;
    caret-color: #333 !important;
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.text-danger {
    color: var(--danger) !important;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.text-muted {
    color: var(--text-muted) !important;
}

.d-grid .btn, .d-grid button {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary, button.btn.btn-primary {
    background: var(--accent) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 1.25rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

    .btn-primary:hover, button.btn.btn-primary:hover {
        background: #7d6cf0 !important;
        box-shadow: 0 4px 20px var(--accent-glow) !important;
    }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.user-panel {
    position: fixed;
    top: 150px; /* ينزلها تحت شوية */
    left: 0;
    right: 0;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 10px !important;
    padding: 10px 16px !important;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    z-index: 90;
}

    .user-panel::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, var(--accent), transparent);
    }

.user-panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    border: 1px solid rgba(108,92,231,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-size: 16px;
}

.user-info .user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-info .user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
}

.balance-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--success-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 13px;
}

.balance-amount {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--success);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-btn {
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .language-btn:hover {
        background: var(--bg-card-hover);
        color: var(--text-primary);
    }

    .language-btn.active {
        background: var(--accent-dim);
        color: var(--accent-soft);
    }

.logout-btn {
    background: var(--danger-dim);
    color: var(--danger) !important;
    border: 1px solid rgba(225,112,85,0.2) !important;
    border-radius: var(--radius-sm) !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

    .logout-btn:hover {
        background: rgba(225,112,85,0.25) !important;
    }

/* theme toggle btn */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .theme-toggle-btn:hover {
        border-color: var(--accent);
        color: var(--accent-soft);
        background: var(--accent-dim);
        transform: rotate(20deg);
    }

    .theme-toggle-btn.dark {
        color: #a29bfe;
    }

    .theme-toggle-btn.light {
        color: #fdcb6e;
        border-color: rgba(253,203,110,0.3);
        background: rgba(253,203,110,0.1);
    }

        .theme-toggle-btn.light:hover {
            border-color: #fdcb6e;
            color: #f9a825;
            background: rgba(253,203,110,0.2);
        }

/* mobile user panel */
@media (max-width: 640px) {
    .user-panel {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .user-panel-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
        width: 100%;
    }

        .user-panel-top .user-info, .user-panel-top .balance-info {
            flex-direction: row !important;
            gap: 6px !important;
            padding: 6px 8px !important;
            background: rgba(255,255,255,0.03);
            border-radius: 9px;
            border: 1px solid var(--border);
            min-width: 0;
        }

    .user-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .balance-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }

    .user-name {
        font-size: .75rem !important;
    }

    .user-role {
        font-size: .6rem !important;
    }

    .balance-amount {
        font-size: .72rem !important;
    }

    .user-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .logout-btn {
        margin-left: auto !important;
        padding: 5px 10px !important;
        font-size: .72rem !important;
    }

    .language-btn {
        padding: 4px 8px !important;
        font-size: .68rem !important;
    }

    .theme-toggle-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .user-panel {
        top: 70px !important;
    }

    body {
        padding-top: 130px !important;
    }
}
@media (max-width: 480px) {
    .user-panel {
        top: 60px !important;
    }

    body {
        padding-top: 120px !important;
    }
}
/* cards */
.card, .bb-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

    .card:hover, .bb-card:hover {
        border-color: var(--border-hover) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
    }

    .card.border-success {
        border-color: rgba(0,184,148,0.3) !important;
        background: linear-gradient(135deg, var(--bg-card) 80%, rgba(0,184,148,0.04)) !important;
    }

.card-body {
    padding: 1.1rem 1.25rem !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0.85rem 1.25rem !important;
}

.badge {
    border-radius: var(--radius-sm) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}

    .badge.text-bg-success {
        background: var(--success-dim) !important;
        color: var(--success) !important;
        border: 1px solid rgba(0,184,148,0.2) !important;
    }

    .badge.text-bg-danger {
        background: var(--danger-dim) !important;
        color: var(--danger) !important;
        border: 1px solid rgba(225,112,85,0.2) !important;
    }

    .badge.text-bg-warning {
        background: var(--warning-dim) !important;
        color: var(--warning) !important;
        border: 1px solid rgba(253,203,110,0.2) !important;
    }

.btn, button.btn {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.3s ease !important;
}

.btn-success {
    background: var(--success-dim) !important;
    color: var(--success) !important;
    border: 1px solid rgba(0,184,148,0.25) !important;
}

    .btn-success:hover {
        background: rgba(0,184,148,0.25) !important;
    }

.btn-warning {
    background: var(--warning-dim) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(253,203,110,0.25) !important;
}

.btn-danger {
    background: var(--danger-dim) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(225,112,85,0.25) !important;
}

    .btn-danger:hover {
        background: rgba(225,112,85,0.25) !important;
    }

.btn-secondary {
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.09) !important;
        color: var(--text-primary) !important;
    }

.pagination .page-link {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.8rem !important;
    margin: 0 2px !important;
    transition: all 0.3s ease !important;
}

    .pagination .page-link:hover {
        background: var(--bg-card-hover) !important;
        color: var(--text-primary) !important;
    }

.pagination .active .page-link {
    background: var(--accent-dim) !important;
    color: var(--accent-soft) !important;
    border-color: rgba(108,92,231,0.35) !important;
}

p.text-muted.text-center {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted) !important;
}

.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 1.1rem 1.4rem !important;
}

.modal-body {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    padding: 1.25rem 1.4rem !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 0.9rem 1.4rem !important;
}

.btn-close {
    filter: invert(1) opacity(0.4) !important;
}

.modal-backdrop {
    backdrop-filter: blur(4px) !important;
}

.toast, .bb-toast {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-size: 0.82rem !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.spinner-border {
    color: var(--accent) !important;
    border-width: 2px !important;
}

.device-icon {
    font-size: 22px;
    color: var(--accent-soft);
    margin-right: 14px;
}

.container-fluid.py-4 {
    position: relative;
    z-index: 1;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.card-header.text-warning {
    color: var(--warning) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

.d-flex.bd-highlight .p-2:first-child {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.d-flex.bd-highlight .p-2:last-child {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

[id^="timer"], .timer-countdown {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.captcha-wrapper, [class*="captcha"] {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .main-container {
        border-radius: var(--radius-lg);
    }

    .main-body {
        padding: 1.25rem;
    }

    .main-header {
        padding: 1.25rem;
    }

    .card-body {
        padding: 0.9rem 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
    background-color: var(--footer-bg, #000);
    color: var(--footer-text, #f8f9fa);
    padding: 50px 0 20px;
    margin-top: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--secondary-color, #a29bfe);
}

.footer-section p {
    color: var(--footer-text, #f8f9fa);
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: var(--footer-text, #f8f9fa);
        text-decoration: none;
        opacity: 0.8;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        cursor: pointer;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--secondary-color, #a29bfe);
            padding-right: 5px;
        }

    .footer-links i {
        font-size: 14px;
        flex-shrink: 0;
    }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .social-links a {
        display: inline-flex;
        width: 40px;
        height: 40px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary-color, #6c5ce7);
            transform: translateY(-4px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

    .copyright p {
        color: white;
        font-size: 0.9rem;
        margin: 0;
    }

html.theme-light footer {
    background-color: #343a40;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .copyright p {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — MainLayout
   ═══════════════════════════════════════════════════════════ */

/* wrapper يبدأ تحت header + nav */
.dashboard-wrapper {
    /* header fixed ~80px + nav ~38px */
    padding-top: 118px;
    min-height: 100vh;
    width: 100%;
}

/* header في الـ dashboard — نفس الـ PublicLayout */
/* بس بدون top-nav لأن المحتوى في main-nav */

@media (max-width: 768px) {
    .dashboard-wrapper {
        padding-top: 70px;
    }

        /* user panel على الموبايل */
        .dashboard-wrapper .user-panel {
            border-radius: var(--radius-md) !important;
        }
}

/* تحسين المسافات للـ Layout */
.pub-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.pub-page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* للجوال */
@media (max-width: 768px) {
    .pub-page-content {
        padding: 1rem;
        min-height: calc(100vh - 150px);
        align-items: flex-start;
    }

    .main-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════ */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-section-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-soft);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* contact items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

    .contact-item:last-of-type {
        border-bottom: none;
    }

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

    .contact-icon.phone {
        background: rgba(0,184,148,0.12);
        color: var(--success);
    }

    .contact-icon.whatsapp {
        background: rgba(37,211,102,0.12);
        color: #25d366;
    }

    .contact-icon.email {
        background: rgba(108,92,231,0.12);
        color: var(--accent-soft);
    }

    .contact-icon.facebook {
        background: rgba(59,89,152,0.15);
        color: #4267b2;
    }

.contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .contact-value:hover {
        color: var(--accent-soft);
    }

/* social buttons */
.contact-socials {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

    .social-btn.fb {
        background: rgba(59,89,152,0.15);
        color: #4267b2;
    }

    .social-btn.ig {
        background: rgba(225,48,108,0.12);
        color: #e1306c;
    }

    .social-btn.wa {
        background: rgba(37,211,102,0.12);
        color: #25d366;
    }

    .social-btn.ph {
        background: rgba(0,184,148,0.12);
        color: var(--success);
    }

    .social-btn:hover {
        transform: translateY(-3px);
        opacity: 0.85;
    }

/* branch items */
.branch-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

    .branch-item:hover {
        background: var(--accent-dim);
    }

    .branch-item.active {
        background: var(--accent-dim);
        border-color: rgba(108,92,231,0.3);
    }

.branch-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    color: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.branch-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

.branch-address {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* map card */
.contact-map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* form */
.contact-info-card textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-submit-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

    .contact-submit-btn:hover {
        background: #7d6cf0;
    }

    .contact-submit-btn:active {
        transform: scale(0.98);
    }

    .contact-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* success / error */
.contact-success {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid rgba(0,184,148,0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

.contact-error {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(225,112,85,0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .contact-info-card {
        padding: 1.1rem;
    }

    .contact-socials {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   RECHARGE PAGE
   ═══════════════════════════════════════════════════════════ */

/* payment methods grid */
.recharge-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.recharge-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s;
    font-size: .72rem;
    color: var(--text-secondary);
    text-align: center;
}

    .recharge-method-btn i {
        font-size: 18px;
    }

    .recharge-method-btn:hover {
        border-color: var(--accent);
        background: var(--accent-dim);
        color: var(--accent-soft);
    }

    .recharge-method-btn.active {
        border-color: var(--accent);
        background: var(--accent-dim);
        color: var(--accent-soft);
        font-weight: 500;
    }

/* quick amounts */
.recharge-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.recharge-amount-btn {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.2s;
    font-size: .8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

    .recharge-amount-btn:hover {
        border-color: var(--success);
        background: var(--success-dim);
        color: var(--success);
    }

    .recharge-amount-btn.active {
        border-color: var(--success);
        background: var(--success-dim);
        color: var(--success);
        font-weight: 500;
    }

/* note */
.recharge-note {
    background: var(--warning-dim);
    border: 1px solid rgba(253,203,110,0.2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: .78rem;
    color: var(--warning);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

    .recharge-note i {
        margin-top: 2px;
        flex-shrink: 0;
    }

@media (max-width: 576px) {
    .recharge-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════ */

/* search */
.faq-search-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.faq-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.faq-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: .88rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .faq-search-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

[dir="rtl"] .faq-search-icon {
    left: auto;
    right: 14px;
}

[dir="rtl"] .faq-search-input {
    padding: 10px 38px 10px 14px;
}

/* section */
.faq-section {
    margin-bottom: 1.5rem;
}

.faq-section-title {
    font-size: .82rem;
    font-weight: 500;
    color: var(--accent-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .6rem;
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* item */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    overflow: hidden;
    transition: border-color .2s;
    cursor: pointer;
}

    .faq-item:hover {
        border-color: var(--border-hover);
    }

    .faq-item.open {
        border-color: rgba(108,92,231,.35);
    }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-primary);
    gap: 12px;
}

.faq-chevron {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .2s;
}

.faq-item.open .faq-chevron {
    color: var(--accent-soft);
}

.faq-answer {
    padding: 0 16px 14px;
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* empty state */
.faq-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

    .faq-empty i {
        font-size: 2rem;
        margin-bottom: 1rem;
        display: block;
        opacity: .4;
    }

    .faq-empty p {
        font-size: .88rem;
    }

/* contact banner */
.faq-contact-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(108,92,231,.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.faq-contact-title {
    font-size: .9rem;
    font-weight: 500;
    color: var(--accent-soft);
    margin-bottom: 4px;
}

.faq-contact-sub {
    font-size: .78rem;
    color: var(--text-muted);
}

.faq-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

    .faq-contact-btn:hover {
        background: #7d6cf0;
        color: #fff;
    }

@media (max-width: 576px) {
    .faq-contact-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-contact-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ═══════════════════════════════════════════════════════════
   DEVICES SUMMARY BAR
   ═══════════════════════════════════════════════════════════ */
.host-devices-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.host-devices-available,
.host-devices-busy,
.host-devices-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: .8rem;
    border: 1px solid var(--border);
}

.host-devices-available {
    background: var(--success-dim);
    border-color: rgba(0,184,148,0.2);
    color: var(--success);
}

.host-devices-busy {
    background: var(--danger-dim);
    border-color: rgba(225,112,85,0.2);
    color: var(--danger);
}

.host-devices-total {
    background: var(--bg-card);
    color: var(--text-secondary);
}

    .host-devices-available strong,
    .host-devices-busy strong,
    .host-devices-total strong {
        font-size: 1rem;
        font-family: var(--font-mono);
        font-weight: 600;
    }
/* تحذير الرصيد المنخفض */
.host-dash-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--danger-dim);
    border: 1px solid rgba(225,112,85,0.25);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    color: var(--danger);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
    transition: background .2s;
    animation: pulse-warning 2s infinite;
}

    .host-dash-warning:hover {
        background: rgba(225,112,85,0.2);
        color: var(--danger);
    }

    .host-dash-warning i:last-child {
        margin-left: auto;
    }

[dir="rtl"] .host-dash-warning i:last-child {
    margin-left: 0;
    margin-right: auto;
    transform: rotate(180deg);
}

@keyframes pulse-warning {
    0%, 100% {
        border-color: rgba(225,112,85,0.25);
    }

    50% {
        border-color: rgba(225,112,85,0.6);
    }
}

@media (max-width: 576px) {
    .host-dash-stat {
        min-width: calc(50% - 6px);
        padding: 10px 12px;
    }

    .host-dash-warning {
        min-width: 100%;
    }

    .host-dash-value {
        font-size: .85rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   SYSTEM STATUS PAGE
   ═══════════════════════════════════════════════════════════ */

/* update bar */
.status-update-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.status-update-time {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.status-refresh-btn {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s;
}

    .status-refresh-btn:hover {
        border-color: var(--accent);
        color: var(--accent-soft);
    }

[dir="rtl"] .status-refresh-btn {
    margin-left: 0;
    margin-right: auto;
}

/* table */
.status-table-wrap {
    overflow-x: auto;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

    .status-table thead th {
        padding: 10px 12px;
        text-align: start;
        font-size: .72rem;
        font-weight: 500;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .status-table tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
    }

    .status-table tbody tr:last-child td {
        border-bottom: none;
    }

    .status-table tbody tr:hover {
        background: rgba(255,255,255,0.02);
    }

.status-num {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-muted);
    width: 30px;
}

.status-branch-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: .85rem;
}

/* section badges */
.status-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.status-section-badge {
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--accent-dim);
    color: var(--accent-soft);
    font-size: .65rem;
    font-weight: 500;
    border: 1px solid rgba(108,92,231,0.2);
    white-space: nowrap;
}

/* status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
}

    .status-badge.online {
        background: var(--success-dim);
        color: var(--success);
        border: 1px solid rgba(0,184,148,0.2);
    }

    .status-badge.offline {
        background: var(--danger-dim);
        color: var(--danger);
        border: 1px solid rgba(225,112,85,0.2);
    }

/* services */
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

    .service-item:last-child {
        border-bottom: none;
    }

.service-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

    .service-icon.elec {
        background: var(--warning-dim);
        color: var(--warning);
    }

    .service-icon.wifi {
        background: var(--accent-dim);
        color: var(--accent-soft);
    }

    .service-icon.server {
        background: var(--success-dim);
        color: var(--success);
    }

.service-name {
    font-size: .82rem;
    color: var(--text-primary);
    font-weight: 500;
}

.service-item .status-badge {
    margin-left: auto;
}

[dir="rtl"] .service-item .status-badge {
    margin-left: 0;
    margin-right: auto;
}

/* working hours */
.workhours-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: .85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

    .workhours-item strong {
        margin-left: auto;
        font-family: var(--font-mono);
        color: var(--success);
        font-size: .9rem;
    }

[dir="rtl"] .workhours-item strong {
    margin-left: 0;
    margin-right: auto;
}

.workhours-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    font-size: .75rem;
    color: var(--text-muted);
}

@media (max-width: 576px) {
    .status-sections {
        gap: 3px;
    }

    .status-section-badge {
        font-size: .6rem;
        padding: 2px 6px;
    }

    .status-table thead th,
    .status-table tbody td {
        padding: 8px;
    }
}
/* ═══════════════════════════════════════════════════════════
   RULES MODAL
   ═══════════════════════════════════════════════════════════ */
.rules-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.rules-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

.rules-lang-btn {
    position: absolute;
    top: 1rem;
    left: 1rem; /* يمين في RTL */
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s;
}

[dir="rtl"] .rules-lang-btn {
    left: auto;
    right: 1rem;
}

.rules-lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
}

.rules-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-soft);
    text-align: center;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

    .rules-list p {
        font-size: .85rem;
        color: var(--text-secondary);
        line-height: 1.6;
        padding: 8px 12px;
        background: var(--bg-surface);
        border-radius: var(--radius-sm);
        border-right: 3px solid var(--accent);
        margin: 0;
    }

[dir="ltr"] .rules-list p {
    border-right: none;
    border-left: 3px solid var(--accent);
}

.rules-list p:last-child {
    border-color: var(--danger);
    background: var(--danger-dim);
    color: var(--danger);
    font-weight: 500;
}

.rules-accept-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

    .rules-accept-btn:hover {
        background: #7d6cf0;
    }

/* scrollbar داخل الـ modal */
.rules-modal::-webkit-scrollbar {
    width: 4px;
}

.rules-modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}
/* ═══════════════════════════════════════════════════════════
   MENU PAGE
   ═══════════════════════════════════════════════════════════ */

/* cart bar */
.menu-cart-bar {
    position: sticky;
    top: calc(70px + 44px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.menu-cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
}

    .menu-cart-info i {
        font-size: 18px;
    }

    .menu-cart-info strong {
        font-family: var(--font-mono);
        font-size: .95rem;
    }

.menu-order-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

    .menu-order-btn:hover {
        background: rgba(255,255,255,0.3);
    }

/* categories */
.menu-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-cat-btn {
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
}

    .menu-cat-btn:hover {
        border-color: var(--accent);
        color: var(--accent-soft);
    }

    .menu-cat-btn.active {
        background: var(--accent-dim);
        border-color: rgba(108,92,231,.4);
        color: var(--accent-soft);
        font-weight: 500;
    }

/* products grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all .2s;
}

    .menu-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-2px);
    }

.menu-card-emoji {
    font-size: 2rem;
    line-height: 1;
}

.menu-card-name {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.menu-card-price {
    font-size: .78rem;
    color: var(--success);
    font-family: var(--font-mono);
    font-weight: 500;
}

.menu-add-btn {
    width: 100%;
    padding: 6px;
    background: var(--accent-dim);
    border: 1px solid rgba(108,92,231,.25);
    border-radius: var(--radius-sm);
    color: var(--accent-soft);
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s;
    margin-top: 4px;
}

    .menu-add-btn:hover {
        background: var(--accent);
        color: #fff;
    }

/* qty control */
.menu-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

    .menu-qty-ctrl button {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--bg-surface);
        color: var(--text-primary);
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .2s;
    }

        .menu-qty-ctrl button:hover {
            background: var(--accent-dim);
            border-color: var(--accent);
        }

    .menu-qty-ctrl span {
        font-size: .88rem;
        font-weight: 500;
        min-width: 18px;
        text-align: center;
    }

/* order modal */
.menu-order-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp .3s cubic-bezier(.22,1,.36,1) both;
}

.menu-order-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: .75rem;
}

.menu-order-row {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--text-secondary);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

    .menu-order-row:last-child {
        border-bottom: none;
    }

.menu-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text-secondary);
}

    .menu-order-total strong {
        font-family: var(--font-mono);
        color: var(--success);
        font-size: .95rem;
    }

.menu-cancel-btn {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
}

    .menu-cancel-btn:hover {
        border-color: var(--danger);
        color: var(--danger);
    }

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .menu-card-emoji {
        font-size: 1.6rem;
    }

    .menu-cart-bar {
        top: 70px;
    }
}

/* menu branch info */
.menu-branch-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: var(--success-dim);
    border: 1px solid rgba(0,184,148,0.2);
    border-radius: var(--radius-md);
    font-size: .8rem;
    color: var(--success);
}

    .menu-branch-info strong {
        font-weight: 500;
    }

/* menu clear + remove buttons */
.menu-clear-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

    .menu-clear-btn:hover {
        background: rgba(225,112,85,0.5);
    }

.menu-remove-item-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--danger-dim);
    border: 1px solid rgba(225,112,85,0.2);
    color: var(--danger);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
}

    .menu-remove-item-btn:hover {
        background: var(--danger);
        color: #fff;
    }

/* menu item note input */
.menu-item-note {
    width: 100%;
    padding: 4px 10px;
    margin: 4px 0 8px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: .72rem;
    outline: none;
    transition: border-color .2s;
}

    .menu-item-note:focus {
        border-color: var(--accent);
        border-style: solid;
    }

    .menu-item-note::placeholder {
        color: var(--text-muted);
        font-style: italic;
    }

/* menu card description */
.menu-card-desc {
    font-size: .68rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    padding: 0 4px;
}
/* ═══════════════════════════════════════════════════════════
   MENU SEARCH
   ═══════════════════════════════════════════════════════════ */
.menu-search-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.menu-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.menu-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: .85rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .menu-search-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .menu-search-input::placeholder {
        color: var(--text-muted);
    }

[dir="rtl"] .menu-search-icon {
    left: auto;
    right: 14px;
}

[dir="rtl"] .menu-search-input {
    padding: 10px 40px 10px 14px;
}
/* ═══════════════════════════════════════════════════════════
   SESSION HISTORY PAGE
   ═══════════════════════════════════════════════════════════ */
.sessions-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.session-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    flex: 1;
    min-width: 160px;
}

.session-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

    .session-stat-icon.total {
        background: var(--accent-dim);
        color: var(--accent-soft);
    }

    .session-stat-icon.time {
        background: var(--success-dim);
        color: var(--success);
    }

.session-stat-val {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.session-stat-lbl {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* session card */
.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .2s;
}

    .session-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

.session-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.session-pc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-primary);
}

    .session-pc i {
        color: var(--accent-soft);
    }

.session-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-family: var(--font-mono);
    color: var(--success);
    background: var(--success-dim);
    border-radius: 99px;
    padding: 3px 10px;
}

.session-card-body {
    padding: 12px 14px;
}

.session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: .78rem;
}

    .session-row:last-child {
        border-bottom: none;
    }

.session-lbl {
    color: var(--text-muted);
}

.session-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

@media (max-width: 576px) {
    .session-stat-card {
        min-width: calc(50% - 6px);
    }
}
/* recharge account number */
.recharge-account-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--success-dim);
    border: 1px solid rgba(0,184,148,0.25);
    border-radius: var(--radius-md);
    font-size: .85rem;
    color: var(--success);
}

    .recharge-account-number strong {
        font-family: var(--font-mono);
        font-size: .95rem;
        letter-spacing: .05em;
        flex: 1;
    }

.recharge-copy-btn {
    background: none;
    border: none;
    color: var(--success);
    cursor: pointer;
    font-size: .85rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

    .recharge-copy-btn:hover {
        background: rgba(0,184,148,0.15);
    }
@media (max-width: 768px) {
    .host-devices-summary {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

        .host-devices-summary > div {
            flex: 1;
            text-align: center;
            padding: 8px 6px;
            border-radius: 10px;
            font-size: 0.75rem;
        }

        .host-devices-summary strong {
            display: block;
            font-size: 1rem;
            margin-top: 2px;
        }
}
/* ═══════════════════════════════════════════════════════════
   OFFER PRODUCTS PAGE
   ═══════════════════════════════════════════════════════════ */
.offer-product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all .25s;
    overflow: hidden;
}

    .offer-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), #a29bfe);
    }

    .offer-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(108,92,231,0.2);
        border-color: rgba(108,92,231,0.3);
    }

.offer-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--accent-dim);
    color: var(--accent-soft);
    font-size: .7rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.offer-product-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.offer-product-desc {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.offer-product-price {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--success);
    font-family: var(--font-mono);
}

/* offer products mobile fix */
@media (max-width: 576px) {
    .session-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .session-val {
        text-align: start;
        font-family: var(--font-ui);
        font-size: .78rem;
        line-height: 1.5;
    }

    .session-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
/* ═══════════════════════════════════════════════════════════
   LEADERBOARD PAGE
   ═══════════════════════════════════════════════════════════ */
.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.leaderboard-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
}

/* podium */
.leaderboard-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding: 0 16px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.podium-crown {
    font-size: 1.8rem;
    margin-bottom: -6px;
    filter: drop-shadow(0 2px 6px rgba(249,202,36,0.5));
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

    .podium-avatar.gold {
        border-color: #f9ca24;
        color: #f9ca24;
        background: rgba(249,202,36,0.12);
        box-shadow: 0 0 20px rgba(249,202,36,0.3);
    }

    .podium-avatar.bronze {
        border-color: #cd6133;
        color: #cd6133;
        background: rgba(205,97,51,0.12);
        box-shadow: 0 0 16px rgba(205,97,51,0.25);
    }

.second .podium-avatar {
    border-color: #c0c0c0;
    color: #c0c0c0;
    background: rgba(192,192,192,0.08);
}

.podium-rank {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.first .podium-rank {
    border-color: #f9ca24;
    color: #f9ca24;
}

.second .podium-rank {
    border-color: #c0c0c0;
    color: #c0c0c0;
}

.third .podium-rank {
    border-color: #cd6133;
    color: #cd6133;
}

.podium-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.first .podium-name {
    font-size: .9rem;
}

.podium-points {
    font-size: .88rem;
    font-family: var(--font-mono);
    color: var(--accent-soft);
    font-weight: 600;
    background: var(--accent-dim);
    padding: 2px 10px;
    border-radius: 99px;
}

    .podium-points small {
        font-size: .65rem;
        color: var(--text-muted);
        font-family: var(--font-ui);
    }

.podium-base {
    width: 110px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-top: 4px;
}

.first-base {
    height: 90px;
    background: linear-gradient(180deg, rgba(249,202,36,0.25), rgba(249,202,36,0.03));
    border: 1px solid rgba(249,202,36,0.3);
    border-bottom: none;
}

.second-base {
    height: 65px;
    background: linear-gradient(180deg, rgba(192,192,192,0.15), rgba(192,192,192,0.02));
    border: 1px solid rgba(192,192,192,0.2);
    border-bottom: none;
}

.third-base {
    height: 45px;
    background: linear-gradient(180deg, rgba(205,97,51,0.15), rgba(205,97,51,0.02));
    border: 1px solid rgba(205,97,51,0.2);
    border-bottom: none;
}

/* list */
.leaderboard-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .2s;
}

    .leaderboard-row:hover {
        border-color: var(--border-hover);
        transform: translateX(-2px);
    }

.lb-rank {
    width: 28px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.lb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.lb-name {
    flex: 1;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.lb-points {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-family: var(--font-mono);
    color: var(--accent-soft);
}

@media (max-width: 480px) {
    .podium-base {
        width: 80px;
    }

    .podium-avatar {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .podium-name {
        max-width: 80px;
        font-size: .75rem;
    }
}

/* leaderboard branch */
.podium-branch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--accent-dim);
    color: var(--accent-soft);
    font-size: .65rem;
    font-weight: 500;
    margin-top: 2px;
}

    .podium-branch i {
        font-size: .6rem;
    }

.lb-branch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--accent-dim);
    color: var(--accent-soft);
    font-size: .68rem;
    font-weight: 500;
    flex: 0 0 auto;
}

    .lb-branch i {
        font-size: .6rem;
    }

/* leaderboard tabs */
.lb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.lb-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

    .lb-tab:hover {
        border-color: var(--accent);
        color: var(--accent-soft);
    }

    .lb-tab.active {
        background: var(--accent-dim);
        border-color: var(--accent);
        color: var(--accent-soft);
        font-weight: 500;
    }

    .lb-tab i {
        font-size: .75rem;
    }

@media (max-width: 576px) {
    .lb-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .lb-tab {
        justify-content: center;
        border-radius: var(--radius-md);
        padding: 10px 16px;
    }
}

/* leaderboard row mobile fix */
@media (max-width: 576px) {
    .leaderboard-row {
        padding: 10px 12px;
        gap: 8px;
    }

    .lb-rank {
        width: 22px;
        font-size: .72rem;
    }

    .lb-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .lb-name {
        font-size: .78rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lb-branch {
        font-size: .62rem;
        padding: 2px 6px;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lb-points {
        font-size: .72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}
 