:root {
    --bg: #09090d;
    --panel: #12121a;
    --panel2: #181824;
    --panel3: #1e1e2c;
    --line: #28283a;
    --text: #e4e4ef;
    --muted: #6b6b82;
    --brand: #7B3FF2;
    --brand-light: #a06aff;
    --ok: #00ff88;
    --warn: #ffaa44;
    --bad: #ff4d6d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

header {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.brand-text span {
    color: var(--brand-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-stats {
    display: flex;
    gap: 10px;
}

.stat-pill {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--muted);
}

.stat-num {
    color: var(--text);
    font-weight: 700;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.hero p {
    color: var(--muted);
    font-size: 16px;
}

.discord-btn {
    display: inline-block;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, filter 0.15s;
}

.discord-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.hero-btn {
    margin-top: 16px;
    padding: 12px 28px;
    font-size: 15px;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.leaderboard {
    margin-bottom: 40px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.staff-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s, border-color 0.15s;
}

.staff-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
}

.staff-card.top-1 {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255,215,0,0.05), var(--panel));
}

.staff-card.top-2 {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192,192,192,0.05), var(--panel));
}

.staff-card.top-3 {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205,127,50,0.05), var(--panel));
}

.staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-count {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-light);
}

.staff-count-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reps-section {
    margin-bottom: 40px;
}

.reps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s;
}

.rep-item:hover {
    border-color: var(--brand);
}

.rep-users {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rep-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rep-plus {
    color: var(--brand-light);
    font-size: 14px;
    font-weight: 700;
}

.rep-body {
    flex: 1;
    min-width: 0;
}

.rep-staff {
    font-weight: 700;
    font-size: 14px;
}

.rep-arrow {
    color: var(--brand-light);
    font-weight: 700;
}

.rep-desc {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rep-date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.rep-badge {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 40px;
    font-size: 14px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 40px;
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .staff-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rep-item {
        flex-wrap: wrap;
    }
    .rep-date {
        width: 100%;
        text-align: right;
    }
}
