        /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #0046c0;
            --primary-dark: #003399;
            --primary-light: #3377dd;
            --primary-gradient: linear-gradient(135deg, #0046c0, #3377dd);
            --secondary: #02d428;
            --secondary-dark: #01b522;
            --secondary-light: #4ae06a;
            --secondary-gradient: linear-gradient(135deg, #02d428, #4ae06a);
            --bg-main: #f0f4fc;
            --bg-card: #ffffff;
            --bg-sidebar: #ffffff;
            --bg-topbar: rgba(255, 255, 255, 0.95);
            --text-primary: #0a1a3a;
            --text-secondary: #2a4a7a;
            --text-muted: #6a8aaa;
            --border-color: #dce5f0;
            --shadow-sm: 0 2px 12px rgba(0, 70, 192, 0.08);
            --shadow-md: 0 8px 32px rgba(0, 70, 192, 0.12);
            --shadow-lg: 0 20px 60px rgba(0, 70, 192, 0.15);
            --radius: 16px;
            --radius-sm: 10px;
            --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.dark {
            --primary: #3377dd;
            --primary-dark: #0046c0;
            --primary-light: #6699ee;
            --bg-main: #0a0f1f;
            --bg-card: #141c30;
            --bg-sidebar: #0f1729;
            --bg-topbar: rgba(15, 23, 41, 0.95);
            --text-primary: #e8ecf5;
            --text-secondary: #a0b4d0;
            --text-muted: #5a6a8a;
            --border-color: #1a2a4a;
            --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            transition: var(--transition);
            display: flex;
            height: 100vh;
            overflow: hidden;
        }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: 280px;
            background: var(--bg-sidebar);
            border-left: 1px solid var(--border-color);
            padding: 20px 12px;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            overflow-y: auto;
            flex-shrink: 0;
            height: 100vh;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar.collapsed .brand-text,
        .sidebar.collapsed .menu-text,
        .sidebar.collapsed .user-info,
        .sidebar.collapsed .menu-badge {
            display: none;
        }

        .sidebar.collapsed .menu-link {
            justify-content: center;
            padding: 12px;
        }

        .sidebar.collapsed .brand {
            justify-content: center;
        }

        .sidebar.collapsed .user-card {
            justify-content: center;
            padding: 8px;
        }

        /* Brand */
        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 18px;
            transition: var(--transition);
        }

        .brand-logo {
            height: 40px;
            width: auto;
            flex-shrink: 0;
        }

        .brand-text {
            font-size: 20px;
            font-weight: 900;
            color: var(--primary);
            letter-spacing: -0.5px;
        }

        .brand-text span {
            font-weight: 300;
            color: var(--text-muted);
        }

        /* Menu */
/* ===== منوی سایدبار - نسخه نهایی ===== */
.menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.menu-label {
    color: #6a8aaa !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 12px 16px 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.6 !important;
}

.sidebar.collapsed .menu-label {
    display: none !important;
}

.menu-item {
    margin-bottom: 2px !important;
}

.menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    color: #a0b4d0 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.menu-link i {
    width: 20px !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    color: #5a6a8a !important;
    transition: all 0.3s ease !important;
}

.menu-link:hover {
    background: rgba(0, 70, 192, 0.1) !important;
    color: #3377dd !important;
}

.menu-link:hover i {
    color: #3377dd !important;
}

.menu-item.active > .menu-link {
    background: linear-gradient(135deg, #0046c0, #003399) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 70, 192, 0.3) !important;
}

.menu-item.active > .menu-link i {
    color: #ffffff !important;
}

.menu-badge {
    margin-right: auto !important;
    background: rgba(2, 212, 40, 0.15) !important;
    color: #02d428 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
}

.menu-badge.warning {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #ff6b6b !important;
}

.menu-item.active .menu-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* زیرمنو */
.menu-item.has-submenu > .menu-link {
    cursor: pointer !important;
}

.submenu-arrow {
    margin-right: auto !important;
    font-size: 12px !important;
    color: #5a6a8a !important;
    transition: transform 0.3s ease !important;
}

.menu-item.has-submenu.open > .menu-link .submenu-arrow {
    transform: rotate(180deg) !important;
}

.submenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease, opacity 0.3s ease !important;
    opacity: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

.submenu.open {
    max-height: 500px !important;
    opacity: 1 !important;
    padding: 8px 0 !important;
}

.submenu .menu-link {
    padding: 8px 16px 8px 40px !important;
    font-size: 13px !important;
}

.submenu .menu-link i {
    font-size: 17px !important;
    width: 20px !important;
}

/* حالت جمع شده سایدبار */
.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-badge,
.sidebar.collapsed .submenu-arrow {
    display: none !important;
}

.sidebar.collapsed .menu-link {
    justify-content: center !important;
    padding: 12px !important;
}

.sidebar.collapsed .submenu {
    display: none !important;
}
        /* User Card */
        .user-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: var(--radius-sm);
            background: rgba(0, 70, 192, 0.04);
            border: 1px solid var(--border-color);
            margin-top: auto;
            transition: var(--transition);
            cursor: pointer;
        }

        .user-card:hover {
            background: rgba(0, 70, 192, 0.08);
        }

        .user-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 16px;
            flex-shrink: 0;
        }

        .user-info {
            flex: 1;
            min-width: 0;
        }

        .user-info h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .user-info span {
            font-size: 12px;
            color: var(--text-muted);
        }

        .user-card .chevron {
            color: var(--text-muted);
            font-size: 12px;
            transition: var(--transition);
        }

        .user-card:hover .chevron {
            transform: rotate(-90deg);
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            height: 100vh;
            min-width: 0;
        }

        /* ===== TOPBAR ===== */
        .topbar {
            background: var(--bg-topbar);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 10px 28px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 40;
            gap: 16px;
        }

        .topbar-left {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .sidebar-toggle-btn {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-secondary);
            font-size: 18px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .sidebar-toggle-btn:hover {
            background: rgba(0, 70, 192, 0.06);
            color: var(--primary);
            border-color: var(--primary);
            transform: rotate(90deg);
        }

        .search-box {
            position: relative;
            flex: 1;
            max-width: 380px;
        }

        .search-box input {
            width: 100%;
            padding: 9px 18px 9px 44px;
            border-radius: 40px;
            border: 1px solid var(--border-color);
            background: var(--bg-main);
            color: var(--text-primary);
            font-family: 'Vazirmatn', sans-serif;
            font-size: 14px;
            transition: var(--transition);
            outline: none;
        }

        .search-box input::placeholder {
            color: var(--text-muted);
        }

        .search-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(0, 70, 192, 0.08);
            background: var(--bg-card);
        }

        .search-box i {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 15px;
        }

        .icon-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 18px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
        }

        .icon-btn:hover {
            background: rgba(0, 70, 192, 0.06);
            color: var(--primary);
            transform: translateY(-1px);
        }

        .icon-btn .badge {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 18px;
            height: 18px;
            background: #ff6b6b;
            color: #fff;
            border-radius: 50%;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            border: 2px solid var(--bg-topbar);
        }

        /* Wallet */
        .wallet-box {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px 6px 12px;
            background: var(--bg-main);
            border-radius: 40px;
            border: 1px solid var(--border-color);
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            transition: var(--transition);
            cursor: default;
        }

        .wallet-box:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        .wallet-box i {
           color: #fff00e !important;
            font-size: 16px;
        }

        .wallet-box .amount {
            font-weight: 700;
            color: var(--primary);
        }

        .wallet-box .currency {
            font-weight: 400;
            color: var(--text-muted);
            font-size: 11px;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            padding: 4px 12px 4px 4px;
            border-radius: 40px;
            transition: var(--transition);
            border: 1px solid transparent;
        }

        .user-profile:hover {
            background: rgba(0, 70, 192, 0.04);
            border-color: var(--border-color);
        }

        .user-profile .avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 13px;
            flex-shrink: 0;
        }

        .user-profile .name {
            font-weight: 600;
            font-size: 13px;
            color: var(--text-primary);
        }

        .user-profile .dropdown-icon {
            font-size: 11px;
            color: var(--text-muted);
            transition: var(--transition);
        }

        .user-profile:hover .dropdown-icon {
            transform: rotate(180deg);
        }

        /* ===== NOTIFICATION DROPDOWN ===== */
        .notification-wrapper {
            position: relative;
        }

        .notification-dropdown {
            position: absolute;
            left: 0;
            top: 48px;
            width: 380px;
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
            padding: 8px 0;
            display: none;
            z-index: 200;
            overflow: hidden;
            max-height: 420px;
            overflow-y: auto;
        }

        .notification-dropdown.open {
            display: block;
            animation: slideDown 0.25s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .notification-dropdown .header {
            padding: 12px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 1;
        }

        .notification-dropdown .header h4 {
            font-size: 15px;
            font-weight: 700;
        }

        .notification-dropdown .header a {
            font-size: 12px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        .notification-dropdown .header a:hover {
            text-decoration: underline;
        }

        .notification-item {
            padding: 12px 20px;
            display: flex;
            gap: 14px;
            align-items: flex-start;
            transition: var(--transition);
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-item:hover {
            background: rgba(0, 70, 192, 0.03);
        }

        .notification-item .icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: rgba(0, 70, 192, 0.08);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 16px;
        }

        .notification-item .icon.success {
            background: rgba(2, 212, 40, 0.12);
            color: var(--secondary);
        }

        .notification-item .icon.warning {
            background: rgba(255, 107, 107, 0.1);
            color: #ff6b6b;
        }

        .notification-item .content {
            flex: 1;
            min-width: 0;
        }

        .notification-item .content p {
            font-size: 13px;
            line-height: 1.5;
            color: var(--text-primary);
        }

        .notification-item .content p strong {
            color: var(--primary);
        }

        .notification-item .content .time {
            font-size: 11px;
            color: var(--text-muted);
        }

        .notification-empty {
            padding: 30px 20px;
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
        }

        /* ===== DASHBOARD CONTENT ===== */
        .dashboard-content {
            padding: 28px 32px;
            flex: 1;
        }

        .page-header {
            margin-bottom: 28px;
        }

        .page-title {
            font-size: 24px;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .page-title .greeting {
            font-weight: 400;
            color: var(--text-muted);
            font-size: 20px;
        }

        .page-subtitle {
            color: var(--text-muted);
            font-size: 14px;
            margin-top: 4px;
            display: block;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 20px 24px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0;
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-card .label {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-card .label i {
            color: var(--primary);
            font-size: 14px;
        }

        .stat-card .value {
            font-size: 28px;
            font-weight: 900;
            margin: 6px 0 4px;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .stat-card .change {
            font-size: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 10px;
            border-radius: 20px;
        }

        .stat-card .change.up {
            color: var(--secondary);
            background: rgba(2, 212, 40, 0.1);
        }

        .stat-card .change.down {
            color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
        }

        .stat-card .stat-icon {
            position: absolute;
            left: 16px;
            bottom: 16px;
            font-size: 48px;
            opacity: 0.06;
            color: var(--primary);
        }

        /* Services Grid */
        .services-section {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            padding: 24px;
            margin-bottom: 24px;
        }

        .services-section .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }

        .services-section .header h3 {
            font-size: 17px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .services-section .header a {
            color: var(--primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
        }

        .services-section .header a:hover {
            text-decoration: underline;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .service-card {
            padding: 18px 20px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
        }

        .service-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
            transform: translateY(-2px);
        }

        .service-card .icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        .service-card .icon.blue {
            background: rgba(0, 70, 192, 0.1);
            color: var(--primary);
        }

        .service-card .icon.green {
            background: rgba(2, 212, 40, 0.1);
            color: var(--secondary);
        }

        .service-card .icon.purple {
            background: rgba(128, 90, 213, 0.1);
            color: #805ad5;
        }

        .service-card .info {
            flex: 1;
            min-width: 0;
        }

        .service-card .info h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .service-card .info p {
            font-size: 12px;
            color: var(--text-muted);
        }

        .service-card .info .count {
            font-size: 13px;
            font-weight: 700;
            color: var(--primary);
        }

        .service-card .status {
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }

        .service-card .status.active {
            background: rgba(2, 212, 40, 0.12);
            color: var(--secondary);
        }

        .service-card .status.inactive {
            background: rgba(255, 107, 107, 0.1);
            color: #ff6b6b;
        }

        .service-card .status.warning {
            background: rgba(251, 191, 36, 0.12);
            color: #f59e0b;
        }

        /* Bottom Grid */
        .bottom-grid {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 24px;
        }

        /* Activity Section */
        .activity-section {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            padding: 24px;
        }

        .activity-section .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }

        .activity-section .header h3 {
            font-size: 17px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .activity-section .header a {
            color: var(--primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
        }

        .activity-section .header a:hover {
            text-decoration: underline;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-item:hover {
            padding-right: 8px;
        }

        .activity-item .icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: rgba(0, 70, 192, 0.06);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .activity-item .icon.green {
            background: rgba(2, 212, 40, 0.08);
            color: var(--secondary);
        }

        .activity-item .icon.orange {
            background: rgba(251, 191, 36, 0.08);
            color: #f59e0b;
        }

        .activity-item .icon.red {
            background: rgba(255, 107, 107, 0.08);
            color: #ff6b6b;
        }

        .activity-item .info {
            flex: 1;
            min-width: 0;
        }

        .activity-item .info h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .activity-item .info p {
            font-size: 12px;
            color: var(--text-muted);
        }

        .activity-item .time {
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        /* Quick Actions */
        .quick-actions {
            background: var(--bg-card);
            border-radius: var(--radius);
            border: 1px solid var(--border-color);
            padding: 24px;
        }

        .quick-actions .header h3 {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quick-action-btn {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-primary);
            font-family: 'Vazirmatn', sans-serif;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            margin-bottom: 10px;
        }

        .quick-action-btn:last-child {
            margin-bottom: 0;
        }

        .quick-action-btn:hover {
            background: rgba(0, 70, 192, 0.04);
            border-color: var(--primary);
            transform: translateX(-4px);
        }

        .quick-action-btn i {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            background: rgba(0, 70, 192, 0.08);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }

        .quick-action-btn .arrow {
            margin-right: auto;
            color: var(--text-muted);
            font-size: 13px;
            transition: var(--transition);
        }

        .quick-action-btn:hover .arrow {
            transform: translateX(-4px);
            color: var(--primary);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .bottom-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 992px) {
            .sidebar {
                width: 80px;
                padding: 16px 8px;
            }
            .sidebar .brand-text,
            .sidebar .menu-text,
            .sidebar .user-info,
            .sidebar .menu-badge,
            .sidebar .menu-label {
                display: none;
            }
            .sidebar .menu-link {
                justify-content: center;
                padding: 12px;
            }
            .sidebar .brand {
                justify-content: center;
            }
            .sidebar .user-card {
                justify-content: center;
                padding: 10px;
            }
            .sidebar .user-avatar {
                width: 36px;
                height: 36px;
                font-size: 13px;
            }
            .sidebar .chevron {
                display: none;
            }
            .sidebar-toggle-btn {
                display: none !important;
            }
            .search-box {
                max-width: 200px;
            }
            .wallet-box .currency,
            .wallet-box .amount {
                font-size: 12px;
            }
        }

        @media (max-width: 768px) {
            .topbar {
                padding: 10px 16px;
                flex-wrap: wrap;
            }
            .topbar-left {
                order: 2;
                width: 100%;
                gap: 10px;
            }
            .topbar-right {
                order: 1;
                width: 100%;
                justify-content: flex-end;
                gap: 8px;
            }
            .search-box {
                max-width: 100%;
            }
            .search-box input {
                padding: 8px 14px 8px 38px;
                font-size: 13px;
            }
            .search-box i {
                right: 12px;
                font-size: 13px;
            }
            .dashboard-content {
                padding: 16px;
            }
            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }
            .stat-card {
                padding: 14px 16px;
            }
            .stat-card .value {
                font-size: 22px;
            }
            .stat-card .stat-icon {
                font-size: 32px;
            }
            .services-grid {
                grid-template-columns: 1fr;
            }
            .page-title {
                font-size: 20px;
            }
            .bottom-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .sidebar {
                position: fixed;
                right: -280px;
                top: 0;
                height: 100vh;
                z-index: 100;
                box-shadow: var(--shadow-lg);
                transition: right 0.3s ease;
                border-left: none;
                border-right: 1px solid var(--border-color);
            }
            .sidebar.mobile-open {
                right: 0;
            }
            .sidebar-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.4);
                z-index: 99;
                backdrop-filter: blur(4px);
            }
            .sidebar-overlay.active {
                display: block;
            }
            .sidebar-toggle-btn {
                display: flex !important;
            }
            .wallet-box span:not(.amount) {
                display: none;
            }
            .user-profile .name {
                display: none;
            }
            .notification-dropdown {
                width: 320px;
                left: -100px;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
            .topbar-right {
                gap: 6px;
            }
            .icon-btn {
                width: 32px;
                height: 32px;
                font-size: 15px;
            }
            .wallet-box {
                padding: 4px 10px 4px 8px;
                font-size: 12px;
            }
            .wallet-box i {
                font-size: 13px;
            }
            .user-profile {
                padding: 2px 8px 2px 2px;
            }
            .user-profile .avatar {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }
            .notification-dropdown {
                width: 280px;
                left: -140px;
            }
        }


/* ===== اسکرول بار کل صفحه ===== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0e2434 !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #feca57, #48dbfb) !important;
    border-radius: 10px !important;
    border: 2px solid #2d2d2d !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4757, #ffa502, #1dd1a1) !important;
}

/* ===== سایدبار راست ===== */
/* اینجا کلاس واقعی رو جایگزین کن */
aside,
.sidebar,
.right-sidebar,
[class*="sidebar"],
[class*="right"] {
    background-color: #0e2434 !important;
    color: #ffffff !important;
}

/* همه آیتم های داخل سایدبار */
aside *,
.sidebar *,
.right-sidebar *,
[class*="sidebar"] *,
[class*="right"] * {
    color: #ffffff !important;
}

/* لینک ها و آیتم های منو */
aside a,
.sidebar a,
aside li,
.sidebar li,
aside span,
.sidebar span {
    color: #f0f0f0 !important;
}

/* هاور */
aside a:hover,
.sidebar a:hover,
aside li:hover,
.sidebar li:hover {
    color: #ffd700 !important;
    background-color: #333333 !important;
    border-radius: 4px !important;
}

/* نیروی اضافی برای رفع هرگونه سفیدی */
/* .topbar, */
.topbar *,
.topbar-left,
.topbar-right,
.search-box,
.search-box *,
.wallet-box,
.wallet-box *,
.user-profile,
.user-profile *,
.icon-btn,
.icon-btn *,
.notification-dropdown,
.notification-dropdown * {
    background-color: #0e2434 !important;
    color: #ffffff !important;
}



 







.cart-dropdown{
    background-color: #0e2434 !important;
    color: #ffffff !important;
}






/* فقط برای جستجو که پس‌زمینه‌اش کمی روشن‌تره */
.search-box {
    background-color: #0e2434 !important;
}

/* برای دکمه‌ها که شفاف باشن */
.icon-btn {
    background: transparent !important;
}

.icon-btn:hover {
    background-color: #333333 !important;
}

/* حالت عادی (سایدبار باز) - لوگو نشون داده میشه، آیکون مخفی */
.brand-logo {
    display: block !important;
    max-width: 150px !important;
}

.brand-icon {
    display: none !important;
    width: 40px !important;
    height: 28px !important;
}

/* حالت بسته (سایدبار جمع شده) - آیکون نشون داده میشه، لوگو مخفی */
.sidebar.collapsed .brand-logo {
    display: none !important;
}

.sidebar.collapsed .brand-icon {
    display: block !important;
}



