/* STATS nav dropdown menu (dark, matches the navbar) */
.nav-stats-menu {
    background-color: #0e1c2a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
    padding: 4px 0;
    min-width: 160px;
}
.nav-stats-menu > li > a {
    color: #c5d2dd;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 18px;
}
.nav-stats-menu > li > a:hover {
    background-color: rgba(255,255,255,.06);
    color: #fff;
}

/* ── Leaderboards ─────────────────────────────────────────────────────────── */
#stats-wrapper {
    width: 100%;
    padding: 28px 5px 30px;
}

/* Card that "pops out" from the page background */
.lb-card {
    background-color: #0c1a28;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0,0,0,.45);
}

.lb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 16px 20px;
}

.lb-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 900;
    letter-spacing: 1px;
    color: #e8e3ec;
}
.lb-title i { color: #d5ad32; margin-right: 8px; }

.lb-filters { display: flex; gap: 8px; }

/* (Map / stat dropdown buttons reuse .btn-sort + .sort-menu from forums.css) */

/* Table */
.lb-table-wrap {
    background-color: transparent;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid rgba(0,0,0,.22);
}
.lb-row:not(.lb-row-head):hover { background-color: #13202e; }

.lb-row-head {
    background-color: #4a1f2e;   /* maroon header bar */
    border-top: none;
    font-size: 0.66em;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e7d3d9;
    padding-top: 12px;
    padding-bottom: 12px;
}

.lb-rank {
    width: 60px;
    flex-shrink: 0;
    font-weight: 700;
    color: #5a7a9a;
}
.lb-row:not(.lb-row-head) .lb-rank { font-size: 1.05em; }
.lb-row-head .lb-rank { color: #e7d3d9; }

.lb-user {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}
.lb-avatar { width: 26px; height: 26px; border-radius: 3px; flex-shrink: 0; }
.lb-row-head .lb-avatar { display: none; }
.lb-username {
    color: #75b3c7;
    font-weight: 600;
    font-size: 1.02em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s;
}
.lb-username:hover { color: #d5ad32; text-decoration: none; }

.lb-stat {
    width: 110px;
    flex-shrink: 0;
    text-align: right;
    color: #b8c8d8;
    font-weight: 700;
    font-size: 1em;
}
.lb-stat-wide { width: 160px; }
.lb-row-head .lb-stat { color: #e7d3d9; font-weight: 900; font-size: 1em; }

/* Highlight the column currently sorted by */
.lb-stat.lb-sorted { color: #d5ad32; }
.lb-row-head .lb-stat.lb-sorted { color: #f0c14b; }

/* Pagination */
.lb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,.22);
}
.lb-page, .lb-page-arrow, .lb-page-gap {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 700;
    color: #b8c8d8;
    text-decoration: none;
}
.lb-page:hover, .lb-page-arrow:not(.disabled):hover {
    background-color: #1c2c3c;
    color: #e8e3ec;
    text-decoration: none;
}
.lb-page.active {
    background-color: #4a1f2e;
    color: #fff;
}
.lb-page-arrow.disabled { opacity: 0.3; cursor: default; }
.lb-page-gap { color: #5a7a9a; }

/* Empty state */
.lb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #3e5468;
}
.lb-empty i { font-size: 2.4em; margin-bottom: 12px; color: #2a3a4a; }
.lb-empty p { font-size: 0.85em; letter-spacing: 1px; }

@media (max-width: 680px) {
    .lb-stat-wide { width: 92px; }
    .lb-stat { width: 64px; font-size: 0.82em; }
    .lb-rank { width: 38px; }
}
