.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 88vw;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

.mobile-sidebar-logo img {
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-sidebar-profile {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.mobile-sidebar-profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-sidebar-profile-avatar {
    overflow: hidden;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.mobile-sidebar-profile-details {
    flex: 1;
    min-width: 0;
}

.mobile-sidebar-profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sidebar-profile-balance {
    font-size: 14px;
    color: #6c757d;
}

.mobile-sidebar-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #212529;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.mobile-sidebar-profile-link:hover {
    background-color: #333;
    color: #fff;
}

.mobile-sidebar-menu {
    padding: 8px 0;
}

.mobile-sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-sidebar-menu-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.mobile-sidebar-menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #555;
}

.mobile-sidebar-menu-item span {
    flex: 1;
    font-size: 15px;
}

.mobile-sidebar-menu-badge {
    background-color: #dc3545;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

html[data-theme="dark"] .mobile-sidebar {
    background-color: #111;
}

html[data-theme="dark"] .mobile-sidebar-header {
    border-bottom-color: #333;
}

html[data-theme="dark"] .mobile-sidebar-profile {
    background-color: #1a1a1a;
    border-bottom-color: #333;
}

html[data-theme="dark"] .mobile-sidebar-profile-name {
    color: #e5e5e5;
}

html[data-theme="dark"] .mobile-sidebar-profile-balance {
    color: #888;
}

html[data-theme="dark"] .mobile-sidebar-menu-item {
    color: #e5e5e5;
    border-bottom-color: #222;
}

html[data-theme="dark"] .mobile-sidebar-menu-item:hover {
    background-color: #1a1a1a;
}

html[data-theme="dark"] .mobile-sidebar-menu-item i {
    color: #aaa;
}

@media (min-width: 769px) {
    .mobile-sidebar-overlay,
    .mobile-sidebar {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .mobile-menu-toggle,
    #mobileMenuToggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle,
    #mobileMenuToggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0 !important;
        flex-shrink: 0;
    }

}