* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #0c0c0c 100%);
    font-family: "Inter", sans-serif;
    color: #e5e5e5;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.gold-text {
    color: #d4af37 !important;
}
.gold-bg {
    background: linear-gradient(135deg, #d4af37, #b8960c) !important;
    color: #0a0a0a !important;
}

/* ========= 3D SIDEBAR STYLES ========= */
.sidebar {
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    width: 280px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.5);
    transition:
        transform 0.3s ease-in-out,
        margin-left 0.3s;
    overflow-y: auto;
}

@media (min-width: 993px) {
    .sidebar {
        transform: translateX(0) !important;
    }
    .sidebar.collapsed {
        transform: translateX(-100%) !important;
    }
    .main-content {
        margin-left: 280px;
        transition: margin-left 0.3s ease;
    }
    .main-content.expanded {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}

.sidebar .nav-link {
    color: #bfbfbf;
    padding: 10px 20px;
    margin: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar .nav-link i {
    width: 24px;
    font-size: 1.2rem;
}
.sidebar .nav-link:hover {
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0.05)
    );
    color: #d4af37;
    transform: translateX(5px);
}
.sidebar .nav-link.active {
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.25),
        rgba(212, 175, 55, 0.05)
    );
    color: #d4af37;
    border-left: 3px solid #d4af37;
    box-shadow: -5px 0 15px rgba(212, 175, 55, 0.1);
}
.logo-area {
    padding: 28px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0a0a0a, #0f0f0f);
}
.logo-area h4 {
    font-weight: 800;
    background: linear-gradient(135deg, #f5e7a3, #d4af37, #b8960c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-content {
    padding: 20px 28px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
    .main-content {
        padding: 16px;
    }
}

/* 3D Top Bar */
.top-bar {
    background: linear-gradient(135deg, #0f0f0f, #0a0a0a);
    border-radius: 24px;
    padding: 12px 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-toggle {
    background: linear-gradient(135deg, #1a1a1a, #121212);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    font-size: 1.4rem;
    padding: 6px 14px;
    border-radius: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.menu-toggle:hover {
    background: linear-gradient(135deg, #d4af37, #b8960c);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.retail-badge {
    background: linear-gradient(135deg, #1a1a1a, #121212);
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.user-welcome {
    background: linear-gradient(135deg, #151515, #0f0f0f);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ========= 3D STAT CARDS ========= */
.stat-card {
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border: none;
    border-radius: 28px;
    padding: 18px 20px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.6),
        -4px -4px 8px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* 3D Hover Effect */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        12px 12px 20px rgba(0, 0, 0, 0.7),
        -6px -6px 12px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Gold border glow on hover */
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #d4af37,
        #b8960c,
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a1a1aa;
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.stat-value.gold {
    background: linear-gradient(135deg, #f5e7a3, #d4af37, #b8960c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.small-stat {
    font-size: 1.4rem;
}

/* 3D Table */
.custom-table {
    background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.5);
}
.custom-table thead tr {
    background: linear-gradient(135deg, #0a0a0a, #0c0c0c);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.custom-table th {
    font-weight: 700;
    color: #d4af37;
    padding: 16px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.custom-table td {
    padding: 14px 20px;
    color: #cfcfcf;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.empty-row td {
    text-align: center;
    color: #6b6b6b;
    padding: 40px;
}

.mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        background: linear-gradient(145deg, #0f0f0f, #0a0a0a);
        border-radius: 28px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        padding: 12px 0;
        margin-top: 20px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
    }
}
.btn-gold {
    background: linear-gradient(135deg, #f5e7a3, #e5b417, #bb980d);
    border: none;
    border-radius: 10px;
    padding: 5px;
}

.table-dark {
    --bs-table-bg: #0f0f0f;
    --bs-table-border-color: rgba(212, 175, 55, 0.15);
}
@media (max-width: 576px) {
    .stat-value {
        font-size: 1.3rem;
    }
    .stat-card {
        padding: 12px;
    }
    .custom-table th,
    .custom-table td {
        padding: 10px 8px;
        font-size: 0.7rem;
    }
}
.btn:focus {
    box-shadow: none;
}
