* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --gold: #d4af37;
    --gold-dark: #b8860b;
    --bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
    --text: #fff;
    --text-muted: #aaa;
    --sidebar-width: 260px;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    position: relative;
    cursor: default;
}
a, button, .gold-btn, .nav-item, .more-link, [onclick], .close-btn, 
.login-box input, .table-wrapper tr, .logout-premium, .stat-item {
    cursor: pointer;
}
.gold-btn, .nav-item, .more-link, .logout-premium {
    transition: all 0.2s ease;
}
.gold-btn:hover, .nav-item:hover, .more-link:hover, .logout-premium:hover {
    filter: drop-shadow(0 0 6px var(--gold));
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #1a1a1a;
}
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    transition: transform 0.3s ease;
}
.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.sidebar-logo span { color: #fff; }
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.nav-item i {
    font-style: normal;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
.nav-item:hover, .nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    filter: drop-shadow(0 0 6px var(--gold));
}
.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 1rem;
}
.main-content {
    margin-right: var(--sidebar-width);
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    height: 100vh;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.header-left h1 { font-size: 1.8rem; font-weight: 900; }
.header-left p { color: var(--text-muted); margin-top: 0.2rem; }
.header-actions { display: flex; gap: 1rem; align-items: center; }
.gold-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #000;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
}
.gold-btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}
.gold-btn:hover {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
}
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}
.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
}
.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.widget-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}
.chart-container {
    width: 100%;
    height: 250px;
    position: relative;
}
canvas.chart { width: 100%; height: 100%; }
.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: right;
    color: var(--gold);
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #333;
    font-weight: 700;
}
td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #222;
    color: #ddd;
}
tr:hover td { background: rgba(212, 175, 55, 0.05); }
.badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-online {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
    margin-left: 8px;
}
.content-footer {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #1a1a1a;
}
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.login-box {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 32px;
    padding: 2rem;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 60px rgba(212,175,55,0.3);
}
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 40px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}
.login-box input:focus {
    border-color: var(--gold);
    outline: none;
}
.error-msg {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 0.9rem;
}
.user-card-premium {
    position: relative;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.1);
    transition: all 0.3s ease;
}
.user-card-premium:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 25px 45px rgba(212,175,55,0.15);
    transform: translateY(-2px);
}
.user-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(0,0,0,0));
    pointer-events: none;
    border-radius: 32px;
}
.user-card-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}
.user-avatar-premium {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}
.avatar-glow {
    position: absolute;
    inset: -3px;
    background: radial-gradient(circle at 30% 30%, var(--gold), transparent 80%);
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(8px);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(0.95);}
    100% { opacity: 0.8; transform: scale(1.05);}
}
.avatar-initial {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e1e2a, #0a0a0f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}
.avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid #0a0a0f;
    box-shadow: 0 0 5px #2ecc71;
}
.user-info-premium {
    flex: 3;
    min-width: 240px;
}
.user-info-premium h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.user-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
}
.user-role {
    background: rgba(212,175,55,0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    color: var(--gold);
}
.user-status.online {
    color: #2ecc71;
    position: relative;
    padding-right: 1rem;
}
.user-status.online::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 5px #2ecc71;
}
.user-stats-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.03);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.2);
    cursor: pointer;
}
.stat-item .stat-icon {
    font-size: 1.4rem;
}
.stat-item small {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
}
.stat-item strong {
    font-size: 1.1rem;
    color: var(--gold);
}
.stat-item.total strong {
    font-size: 1.3rem;
    color: #ffd966;
}
.wealth-progress {
    margin-top: 0.5rem;
    max-width: 300px;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #ccc;
    margin-bottom: 5px;
}
.progress-bar-gold {
    background: #2a2a2a;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #ffd966);
    width: 0%;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(212,175,55,0.5);
    transition: width 0.5s ease;
}
.progress-tiers {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.7rem;
    color: #666;
}
.logout-premium {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.4);
    color: var(--gold);
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.logout-premium:hover {
    background: rgba(212,175,55,0.2);
    border-color: var(--gold);
    transform: scale(1.02);
    filter: drop-shadow(0 0 6px var(--gold));
}
.more-link {
    cursor: pointer;
    transition: 0.2s;
}
.more-link:hover {
    text-decoration: underline;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px var(--gold));
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        position: fixed;
        z-index: 20;
        transition: transform 0.3s;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-right: 0; }
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 30;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--gold);
        color: var(--gold);
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
    .widgets-grid { grid-template-columns: 1fr; }
    .user-card-inner {
        flex-direction: column;
        text-align: center;
    }
    .user-stats-premium {
        justify-content: center;
    }
    .wealth-progress {
        margin: 0 auto;
    }
    .logout-premium {
        align-self: center;
    }
}
@media (min-width: 769px) { .mobile-toggle { display: none; } }
.icon { font-style: normal; }
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    z-index: 2000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}