:root {
    --bg-dark: #0a0a0a;
    --bg-card-dark: #1a1a1a;
    --accent: #FFD700;
    --accent-light: #FFED4A;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --border-dark: #333333;
}
* { margin:0; padding:0; box-sizing:border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background:#000; color:var(--text-white); }
.app-wrapper { max-width:1400px; margin:0 auto; background:var(--bg-dark); min-height:100vh; display:flex; flex-direction:column; }
.app-header { background:#111; padding:12px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:15px; border-bottom:1px solid var(--border-dark); }
.logo-area { display:flex; align-items:center; gap:10px; }
.logo-area img { height:50px; }
.logo-area span { font-size:1.6rem; font-weight:bold; color:var(--accent); }
.server-selector select, .user-info a { background:transparent; border:1px solid var(--accent); color:#fff; padding:6px 12px; border-radius:5px; cursor:pointer; }
.user-info { display:flex; align-items:center; gap:15px; }
.user-info span { color:var(--text-white); }
.main-content { padding:20px; flex:1; }
.dashboard-screen { background:var(--bg-dark); border-radius:8px; overflow:hidden; }
.dash-header { background:#111; padding:15px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--border-dark); }
.dash-header-left { display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.dash-logo-small i { font-size:32px; color:var(--accent); }
.player-name { font-size:1.2rem; font-weight:500; }
.player-tag { font-size:0.8rem; color:var(--text-gray); }
.dash-header-info { display:flex; gap:15px; flex-wrap:wrap; align-items:center; }
.info-item { display:flex; flex-direction:column; background:rgba(255,215,0,0.1); padding:4px 12px; border-radius:20px; white-space:nowrap; }
.info-item span { font-size:10px; color:var(--text-gray); }
.info-item strong { font-size:13px; color:var(--accent); }
.dash-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px; margin-bottom:20px; }
.dash-card, .server-card, .extended-card { background:var(--bg-card-dark); border-radius:8px; padding:20px; border:1px solid var(--border-dark); }
.dash-card-title, .extended-card-title { font-size:1.1rem; font-weight:600; margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid var(--border-dark); color:var(--accent); }
.dash-info-item { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #2a2a2a; }
.dash-info-item:last-child { border-bottom:none; }
.dash-buttons-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; margin-bottom:15px; }
.dash-btn { background:transparent; border:1px solid var(--accent); color:#fff; padding:10px 5px; border-radius:6px; font-size:0.85rem; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; transition:0.2s; }
.dash-btn:hover { background:var(--accent); color:#000; }
.dash-btn i { color:var(--accent); }
.dash-btn:hover i { color:#000; }
.table-responsive { overflow-x:auto; -webkit-overflow-scrolling:touch; margin-bottom:20px; }
table { width:100%; border-collapse:collapse; font-size:0.9rem; min-width:600px; }
th { background:#1a1a1a; text-align:left; padding:12px 10px; color:var(--accent); font-weight:600; border-bottom:2px solid var(--accent); }
td { padding:10px; border-bottom:1px solid #2a2a2a; color:#ddd; }
.btn-primary { background:var(--accent); color:#000; border:none; padding:6px 12px; border-radius:5px; cursor:pointer; font-size:0.8rem; transition:0.2s; }
.btn-primary:hover { background:var(--accent-light); }
.btn-success { background:#10B981; color:#fff; border:none; padding:6px 12px; border-radius:5px; cursor:pointer; }
.btn-secondary { background:#4B5563; color:#fff; border:none; padding:6px 12px; border-radius:5px; cursor:pointer; }
.pagination-container { display:flex; justify-content:center; flex-wrap:wrap; gap:5px; margin-top:20px; }
.page-btn { padding:5px 10px; background:var(--bg-card-dark); border:1px solid var(--border-dark); color:#fff; cursor:pointer; border-radius:4px; }
.page-btn.active { background:var(--accent); color:#000; border-color:var(--accent); }
.login-screen { display:flex; justify-content:center; align-items:center; min-height:100vh; background:#000; padding:20px; }
.login-box { background:var(--bg-card-dark); padding:30px 25px; border-radius:12px; width:100%; max-width:450px; border:1px solid var(--border-dark); }
.login-title { color:var(--accent); font-size:1.8rem; text-align:center; margin-bottom:10px; }
.login-sub { text-align:center; margin-bottom:30px; color:var(--text-gray); }
.input-group { margin-bottom:20px; }
.input-group label { display:block; color:var(--text-gray); font-size:0.9rem; margin-bottom:5px; }
.input-group input { width:100%; padding:12px 15px; background:#1a1a1a; border:1px solid var(--border-dark); border-radius:5px; color:#fff; }
.input-group input:focus { outline:2px solid var(--accent); }
.login-btn { width:100%; background:var(--accent); color:#000; padding:12px; border:none; border-radius:5px; font-weight:600; cursor:pointer; font-size:1rem; transition:0.2s; }
.login-btn:hover { background:var(--accent-light); }
.login-footer { margin-top:30px; text-align:center; color:var(--text-gray); font-size:0.8rem; }
.reports-sidebar { background:#111; border-right:1px solid var(--border-dark); }
.reports-sidebar .sidebar-item { color:var(--text-gray); cursor:pointer; padding:10px 12px; display:flex; align-items:center; gap:10px; border-radius:6px; margin:2px 0; }
.reports-sidebar .sidebar-item:hover { background:rgba(255,215,0,0.1); color:#fff; }
.reports-sidebar .sidebar-item.active { background:rgba(255,215,0,0.2); color:var(--accent); }
.reports-sidebar .sidebar-cat { font-size:11px; color:#666; text-transform:uppercase; font-weight:bold; margin-top:10px; padding-left:8px; }
.filter-box { background:var(--bg-card-dark); border:1px solid var(--border-dark); padding:20px; border-radius:5px; display:flex; gap:15px; flex-wrap:wrap; margin-bottom:20px; }
.filter-item { flex:1; display:flex; flex-direction:column; gap:5px; min-width:150px; }
.filter-item label { color:var(--text-gray); }
.filter-item input, .filter-item select { background:#1a1a1a; border:1px solid var(--border-dark); color:#fff; padding:8px; border-radius:4px; }
.filter-btn { background:var(--accent); color:#000; border:none; padding:8px 25px; border-radius:4px; cursor:pointer; height:34px; margin-top:auto; }
.table-btn { background:#4B5563; color:#fff; border:none; padding:5px 12px; border-radius:4px; cursor:pointer; font-size:12px; }
.purple-table-btn { background:var(--accent); color:#000; border:none; padding:5px 12px; border-radius:4px; cursor:pointer; }
.badge-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; border:2px solid var(--accent); color:var(--accent); font-size:10px; margin-right:6px; }
.extended-profile-screen { background:var(--bg-dark); padding:0; color:#fff; }
.profile-header-card { display:flex; justify-content:space-between; padding:20px; background:var(--bg-card-dark); border-radius:6px; margin-bottom:20px; align-items:center; flex-wrap:wrap; gap:15px; border:1px solid var(--border-dark); }
.extended-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.extended-card { background:var(--bg-card-dark); border-radius:5px; padding:15px; margin-bottom:20px; border:1px solid var(--border-dark); }
.money-footer { display:flex; gap:15px; justify-content:flex-start; margin-top:20px; flex-wrap:wrap; }
.money-block { display:flex; align-items:center; gap:15px; background:var(--bg-card-dark); padding:10px 20px; border-radius:5px; font-weight:bold; border:1px solid var(--border-dark); }
.money-icon { background:var(--accent); width:35px; height:35px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:#000; }
@media (max-width:768px) {
    .extended-grid { grid-template-columns:1fr; }
    .dash-header { flex-direction:column; align-items:flex-start; }
    .dash-buttons-grid { grid-template-columns:repeat(2,1fr); }
    .main-content { padding:15px; }
    .reports-sidebar { position:fixed; top:0; left:0; transform:translateX(-100%); transition:transform 0.3s; height:100%; z-index:1000; width:260px; overflow-y:auto; padding-bottom:20px; background:#0a0a0a; }
    .reports-sidebar.open-mobile { transform:translateX(0); }
    .login-box { padding:20px; }
    .logo-area img { height:40px; }
    .logo-area span { font-size:1.2rem; }
}
@media (max-width:480px) {
    .app-header { flex-direction:column; align-items:stretch; gap:10px; }
    .server-selector, .user-info { width:100%; text-align:center; }
    .dash-buttons-grid { grid-template-columns:1fr; }
    .filter-box { flex-direction:column; }
    .filter-item { min-width:100%; }
}
body.light-theme { background:#f5f5f5; color:#333; }
body.light-theme .app-header { background:#fff; border-color:#ddd; }
body.light-theme .nav-tabs { background:#f5f5f5 !important; border-color:#ddd; }
body.light-theme .nav-btn { color:#666; }
body.light-theme .nav-btn.active { background:var(--accent); color:#000; }
body.light-theme .dash-card, body.light-theme .server-card, body.light-theme .extended-card { background:#fff; border-color:#ddd; }
body.light-theme .login-box { background:#fff; }
body.light-theme .input-group input { background:#f5f5f5; color:#333; }
body.light-theme .info-item { background:rgba(255,215,0,0.2); }
body.light-theme .dash-btn { color:#333; }
body.light-theme .dash-btn:hover { color:#000; }
