* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body { background: #0a0e27; color: #e0e6f0; font-size: 14px; }

.app { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: 240px; background: #0d1226; border-right: 1px solid #1e2340;
    position: fixed; height: 100vh; left: 0; top: 0; z-index: 100;
    transition: transform 0.3s;
}
.logo {
    padding: 25px 20px; border-bottom: 1px solid #1e2340;
    display: flex; align-items: center; gap: 10px;
}
.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.logo-text span { color: #ff8c00; }

.nav { padding: 15px 0; }
.nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: #8892a8; text-decoration: none;
    transition: all 0.2s; border-left: 3px solid transparent;
}
.nav a:hover { background: #151a2e; color: #fff; }
.nav a.active {
    background: #151a2e; color: #fff;
    border-left-color: #ff8c00;
}
.nav a span:first-child { font-size: 18px; }

/* MAIN */
.main { margin-left: 240px; flex: 1; width: calc(100% - 240px); }

.topbar {
    background: #0d1226; padding: 15px 25px; border-bottom: 1px solid #1e2340;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 50;
}
.menu-toggle { display: none; font-size: 22px; cursor: pointer; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info span { color: #a0a8bf; }
.logout-btn {
    background: #ff3d3d; color: #fff; padding: 6px 14px;
    border-radius: 6px; text-decoration: none; font-size: 13px;
}

.content { padding: 25px; }

/* CARDS */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-bottom: 30px;
}
.stat-card {
    background: #151a2e; border: 1px solid #1e2340; border-radius: 12px;
    padding: 20px; position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
}
.stat-card.green::before { background: #00d97e; }
.stat-card.orange::before { background: #ff8c00; }
.stat-card.blue::before { background: #3d7eff; }
.stat-card.purple::before { background: #a855f7; }

.stat-label { color: #8892a8; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; }
.stat-value.green { color: #00d97e; }
.stat-value.orange { color: #ff8c00; }
.stat-value.blue { color: #3d7eff; }
.stat-value.purple { color: #a855f7; }

/* TABLES */
.card {
    background: #151a2e; border: 1px solid #1e2340;
    border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.card-title {
    font-size: 16px; font-weight: 600; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
table { width: 100%; border-collapse: collapse; }
table th {
    text-align: left; padding: 12px 10px; font-size: 12px;
    color: #8892a8; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid #1e2340;
}
table td {
    padding: 14px 10px; border-bottom: 1px solid #1a1f38; font-size: 13px;
}
table tr:hover { background: #1a1f38; }

.badge {
    padding: 4px 10px; border-radius: 20px; font-size: 11px;
    font-weight: 600; letter-spacing: 0.5px;
}
.badge.win { background: rgba(0,217,126,0.15); color: #00d97e; }
.badge.lose { background: rgba(255,61,61,0.15); color: #ff3d3d; }
.badge.active { background: rgba(0,217,126,0.15); color: #00d97e; }
.badge.banned { background: rgba(255,61,61,0.15); color: #ff3d3d; }
.badge.inactive { background: rgba(136,146,168,0.15); color: #8892a8; }

/* BUTTONS */
.btn {
    padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block;
}
.btn-primary { background: linear-gradient(45deg, #ff6b00, #ff9500); color: #fff; }
.btn-danger { background: #ff3d3d; color: #fff; }
.btn-success { background: #00d97e; color: #fff; }
.btn-secondary { background: #252b45; color: #e0e6f0; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn:hover { opacity: 0.9; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 8px;
    color: #8892a8; font-size: 13px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; background: #0d1226;
    border: 1px solid #252b45; color: #fff; border-radius: 8px;
    font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #ff8c00;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* UTILITY */
.text-muted { color: #8892a8; }
.text-green { color: #00d97e; }
.text-red { color: #ff3d3d; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
.hidden { display: none; }

/* MOBILE */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; width: 100%; }
    .menu-toggle { display: block; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}