.stats-hero {
    display: grid;
    align-items: center;
    min-height: 46vh;
    padding: 86px 6vw 76px;
    background:
        linear-gradient(rgba(15, 17, 21, 0.58), rgba(15, 17, 21, 0.9)),
        url("../images/LuxDeepSpace.jpg");
    background-position: center;
    background-size: cover;
}

.stats-hero-inner {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stats-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
}

.stats-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 26px 0 0;
    color: #d9dee8;
    font-size: 1.12rem;
}

.stats-section {
    padding: 94px 6vw;
    background:
        linear-gradient(135deg, rgba(111, 143, 245, 0.15), rgba(15, 17, 21, 0.12)),
        var(--bg);
}

.stats-alert {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 120, 120, 0.42);
    border-radius: 6px;
    color: #ffd4d4;
    background: rgba(255, 80, 80, 0.1);
}

.stats-server-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 143, 245, 0.28);
    border-radius: 8px;
}

.stats-server-switcher span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stats-server-switcher div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stats-server-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 96px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 800;
}

.stats-server-switcher a.active,
.stats-server-switcher a:hover,
.stats-server-switcher a:focus {
    color: #fff;
    background: var(--accent);
    border-color: rgba(111, 143, 245, 0.72);
}

.stats-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
    gap: 52px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 143, 245, 0.32);
    border-radius: 8px;
}

.stats-panel h2 {
    max-width: 560px;
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
}

.stats-panel p:not(.eyebrow) {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.primary-action,
.link-form button,
.profile-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    background: var(--accent);
    border: 0;
    border-radius: 4px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus,
.link-form button:hover,
.link-form button:focus,
.profile-bar a:hover,
.profile-bar a:focus {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.link-form {
    display: grid;
    gap: 12px;
}

.link-form label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.link-form input {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
}

.profile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 34px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 143, 245, 0.32);
    border-radius: 8px;
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-user img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.profile-user span,
.profile-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-user strong,
.profile-meta strong {
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stat-card h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.stat-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.stat-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.stat-card dl div:first-child {
    padding-top: 0;
    border-top: 0;
}

.stat-card dt {
    color: var(--muted);
}

.stat-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

@media (max-width: 920px) {
    .stats-panel,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-hero {
        min-height: 42vh;
        padding: 58px 6vw;
    }

    .stats-panel,
    .stats-server-switcher,
    .profile-bar {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }
}
