:root {
    /*
     * Core design tokens.
     * Keep raw values here when they are shared across components. Page-specific
     * theme files can override or extend these without duplicating component CSS.
     */
    --font-body: Candara, "Segoe UI Variable Text", sans-serif;
    --font-display: Bahnschrift, "Arial Narrow", sans-serif;
    --duration-fast: 140ms;
    --duration-normal: 180ms;
    --ease-standard: ease;
    --transition-fast: var(--duration-normal) var(--ease-standard);
    --transition-interactive:
        transform var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard),
        background var(--duration-normal) var(--ease-standard),
        box-shadow var(--duration-normal) var(--ease-standard),
        color var(--duration-normal) var(--ease-standard);
    --bg: #0b1115;
    --bg-soft: #121b21;
    --panel: rgba(14, 23, 29, 0.82);
    --panel-strong: rgba(10, 16, 20, 0.92);
    --line: rgba(216, 166, 68, 0.18);
    --line-strong: rgba(216, 166, 68, 0.38);
    --text: #eef2f4;
    --text-soft: #a6b5bb;
    --gold: #f3bf52;
    --gold-soft: #f8d889;
    --gold-strong: #ffda77;
    --green: #53d18b;
    --red: #f36c62;
    --warm: #ef9c3b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --content-width: 1340px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(5, 10, 13, 0.72), rgba(5, 10, 13, 0.82)),
        url('/assets/img/walper.jpg') center center / cover no-repeat fixed,
        linear-gradient(180deg, #091014 0%, #0d1519 32%, #0a1014 100%);
    color: var(--text);
    font: 400 16px/1.5 var(--font-body);
}

body.has-login-modal {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
}

.clipboard-helper {
    position: absolute;
    left: -9999px;
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.site-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    padding: 18px 0 42px;
}

body.is-login-page .site-shell {
    padding-top: 28px;
}

.login-page-shell {
    display: grid;
    min-height: calc(100vh - 170px);
    place-items: center;
    padding: 20px 0 8px;
}

body.is-login-page .login-page-shell {
    min-height: calc(100vh - 132px);
    padding-top: 0;
}

.login-page-frame {
    width: min(100%, 560px);
    display: grid;
    gap: 0;
}

.login-page-card {
    width: 100%;
}

.login-page-card .login-modal-brand {
    grid-template-columns: minmax(104px, 128px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 0;
}

.login-page-card .login-modal-logo {
    width: min(128px, 100%);
    justify-self: center;
}

.login-page-card .login-modal-wordmark {
    align-content: center;
}

.login-page-card .login-modal-copy {
    margin-bottom: 28px;
}

.login-page-return-note {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    text-align: center;
    color: rgba(214, 223, 227, 0.74);
    font-size: 0.95rem;
}

.login-modal-root {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(243, 191, 82, 0.12), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(101, 215, 208, 0.08), transparent 22%),
        rgba(5, 7, 9, 0.72);
    backdrop-filter: blur(12px);
}

.login-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 72px 28px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top center, rgba(243, 191, 82, 0.08), transparent 32%),
        radial-gradient(circle at 78% 16%, rgba(101, 215, 208, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(17, 27, 33, 0.98), rgba(9, 14, 18, 0.98));
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 78%);
}

.login-modal-close {
    position: absolute;
    top: 28px;
    right: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(9, 14, 18, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    font: 700 1.55rem/1 var(--font-display);
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    transition:
        transform var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard),
        background var(--duration-normal) var(--ease-standard),
        color var(--duration-normal) var(--ease-standard);
}

.login-modal-close:hover {
    color: var(--text);
    background: rgba(15, 23, 28, 0.96);
    border-color: rgba(243, 191, 82, 0.28);
    transform: translateY(-1px);
}

.login-modal-brand,
.login-modal-copy,
.login-modal-notice,
.login-modal-benefits {
    position: relative;
    z-index: 1;
}

.login-modal-brand {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
    padding-right: 68px;
}

.login-modal-logo {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.3));
}

.login-modal-wordmark {
    display: grid;
    gap: 8px;
}

.login-modal-wordmark strong,
.login-modal-wordmark span,
.login-modal-copy h1,
.login-modal-copy h2 {
    font-family: var(--font-display);
}

.login-modal-wordmark strong {
    color: #f5f7fb;
    font-size: clamp(2.3rem, 6vw, 3.25rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.login-modal-wordmark span {
    color: #5a2d91;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(1.2rem, 3.4vw, 1.65rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: none;
}

.login-modal-copy {
    text-align: center;
    margin-bottom: 24px;
}

.login-modal-copy h1,
.login-modal-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 2.55rem);
    letter-spacing: -0.04em;
    text-shadow: none;
}

.login-modal-copy p,
.login-modal-benefit span:last-child,
.login-modal-legal {
    color: var(--text-soft);
}

.login-modal-copy p {
    margin: 10px 0 0;
    font-size: 1.02rem;
}

.login-modal-notice {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(243, 108, 98, 0.28);
    border-radius: 16px;
    background: rgba(72, 24, 20, 0.54);
}

.login-modal-notice strong {
    color: #ffd7d2;
}

.login-modal-provider-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.login-modal-provider {
    position: relative;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 68px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(21, 25, 31, 0.98), rgba(14, 17, 21, 0.98));
    color: var(--text);
    font: 700 1.02rem/1 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(0, 0, 0, 0.22);
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

.login-modal-provider:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.26);
    background: linear-gradient(180deg, rgba(29, 34, 42, 0.98), rgba(17, 21, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 40px rgba(0, 0, 0, 0.24);
}

.login-modal-provider.is-steam {
    border-color: rgba(102, 192, 244, 0.34);
    background: linear-gradient(135deg, #1b2838, #2a475e 52%, #66c0f4 120%);
    color: #f7fbff;
}

.login-modal-provider.is-steam:hover {
    border-color: rgba(135, 210, 250, 0.5);
    background: linear-gradient(135deg, #203246, #325572 52%, #7bd0ff 120%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 22px 40px rgba(17, 35, 53, 0.34);
}

.login-modal-provider.is-google {
    border-color: rgba(234, 67, 53, 0.28);
    background:
        linear-gradient(135deg, rgba(66, 133, 244, 0.16), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, #ffffff, #f7f9fc);
    color: #1f1f1f;
}

.login-modal-provider.is-google:hover {
    border-color: rgba(66, 133, 244, 0.34);
    background:
        linear-gradient(135deg, rgba(52, 168, 83, 0.14), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, #ffffff, #eef3fb);
    color: #171717;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 22px 40px rgba(28, 51, 82, 0.18);
}

.login-modal-provider.is-discord {
    border-color: rgba(165, 177, 255, 0.4);
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.98), rgba(71, 82, 196, 0.98));
    color: #f5f7ff;
}

.login-modal-provider.is-discord:hover {
    border-color: rgba(191, 199, 255, 0.52);
    background: linear-gradient(180deg, rgba(104, 116, 247, 0.98), rgba(79, 92, 214, 0.98));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 22px 40px rgba(50, 58, 145, 0.34);
}

.login-modal-provider-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 40px;
}

.login-modal-provider.is-steam .login-modal-provider-icon {
    background: rgba(7, 12, 19, 0.26);
    color: #f7fbff;
}

.login-modal-provider-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.login-modal-provider.is-google .login-modal-provider-icon {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(31, 31, 31, 0.08);
}

.login-modal-provider.is-google .login-modal-provider-icon img {
    width: 30px;
    height: 30px;
}

.login-modal-provider.is-discord .login-modal-provider-icon {
    background: rgba(255, 255, 255, 0.14);
}

.login-modal-benefits {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(243, 191, 82, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(16, 24, 29, 0.92), rgba(10, 15, 19, 0.96));
}

.login-modal-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232, 236, 239, 0.92);
}

.login-modal-benefit span:first-child {
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.login-modal-legal {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .login-modal-card {
        padding: 74px 20px 22px;
    }

    .login-modal-close {
        top: 24px;
        right: 24px;
    }

    .login-modal-brand {
        padding-right: 54px;
    }

    .login-page-card .login-modal-brand {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-items: center;
        text-align: center;
        padding-right: 0;
    }

    .login-page-card .login-modal-wordmark {
        justify-items: center;
    }

}

.topbar {
    position: relative;
    z-index: 2000;
    isolation: isolate;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(7, 13, 17, 0.74);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.section-heading h2,
.hero-copy h1,
.server-card h3,
.featured-card h3,
.empty-state h1,
.empty-state h3 {
    font-family: var(--font-display);
}

.brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

.brand-copy small {
    color: var(--text-soft);
}

.topnav {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topnav a {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    transition: var(--transition-fast);
}

.topnav a:hover,
.topnav a.is-active {
    color: var(--text);
    background: rgba(243, 191, 82, 0.12);
}

.topnav-account-menu {
    position: relative;
    z-index: 2100;
}

.topnav-language-menu {
    position: relative;
    z-index: 2100;
}

.topnav-language-menu summary {
    list-style: none;
}

.topnav-language-menu summary::-webkit-details-marker {
    display: none;
}

.topnav-language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(243, 191, 82, 0.22);
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    background: rgba(10, 14, 18, 0.58);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.topnav-language-trigger:hover,
.topnav-language-menu[open] .topnav-language-trigger {
    color: var(--text);
    background: rgba(243, 191, 82, 0.12);
}

.topnav-language-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(243, 191, 82, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 16, 20, 0.98), rgba(10, 13, 17, 0.98));
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
}

.topnav-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
}

.topnav-language-option:hover,
.topnav-language-option.is-active {
    color: var(--text);
    background: rgba(243, 191, 82, 0.12);
}

.topnav-language-option .fi,
.topnav-language-trigger .fi {
    font-size: 1.05rem;
}

.topnav-account-menu summary {
    list-style: none;
}

.topnav-account-menu summary::-webkit-details-marker {
    display: none;
}

.topnav-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(243, 191, 82, 0.38);
    border-radius: var(--radius-pill);
    color: var(--text);
    background: rgba(10, 14, 18, 0.78);
    cursor: pointer;
    user-select: none;
}

.topnav-account-trigger:hover,
.topnav-account-trigger.is-active,
.topnav-account-menu[open] .topnav-account-trigger {
    background: rgba(243, 191, 82, 0.14);
}

.topnav-account-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(243, 191, 82, 0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(16, 21, 27, 0.82);
    color: var(--text);
    font: 700 0.8rem/1 var(--font-display);
}

.topnav-account-avatar.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topnav-account-name {
    font: 700 0.95rem/1 var(--font-display);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topnav-account-caret {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
}

.topnav-account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 290px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 22, 17, 0.98), rgba(6, 11, 9, 0.98));
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
    z-index: 2200;
}

.topnav-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topnav-account-copy {
    display: grid;
    gap: 4px;
}

.topnav-account-copy strong {
    font: 700 1.08rem/1.2 var(--font-display);
}

.topnav-account-copy span {
    color: var(--gold-soft);
    font-size: 0.88rem;
}

.topnav-account-actions {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.topnav-account-actions a,
.topnav-account-actions button {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(216, 166, 68, 0.14);
    border-radius: 12px;
    background: rgba(5, 12, 10, 0.72);
    color: var(--text);
    padding: 0 12px;
    text-decoration: none;
    font: 700 0.92rem/1 var(--font-display);
    cursor: pointer;
}

.topnav-account-actions a:hover,
.topnav-account-actions button:hover {
    border-color: rgba(243, 191, 82, 0.46);
    background: rgba(243, 191, 82, 0.12);
}

.topnav-account-actions button {
    color: #ff6969;
}

.page-grid {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.hero-panel,
.section-block,
.side-card,
.detail-card,
.notice,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(17, 27, 33, 0.92), rgba(9, 14, 18, 0.95));
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
    gap: 30px;
    padding: 42px;
    overflow: hidden;
    position: relative;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(243, 191, 82, 0.16), transparent 26%),
        radial-gradient(circle at 87% 10%, rgba(83, 209, 139, 0.12), transparent 18%);
}

.hero-panel-tight {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
}

.server-hero-panel {
    grid-template-columns: 1fr;
    padding: 34px 34px 30px;
}

.server-hero-panel .hero-copy h1 {
    max-width: 100%;
    margin: 10px 0 12px;
    font-size: clamp(1.2rem, 2.3vw, 2.2rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-copy,
.hero-stat-grid,
.section-heading,
.server-card,
.featured-card,
.side-card,
.detail-card {
    position: relative;
    z-index: 1;
}

.eyebrow,
.subheading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-strong);
    font: 700 0.76rem/1.2 var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 14px 0 14px;
    max-width: 14ch;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.hero-stat-grid {
    display: grid;
    gap: 16px;
    align-content: end;
}

.stat-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 10, 13, 0.66);
}

.stat-card span,
.metric-block span,
.detail-item span,
.rule-item span,
.list-header span,
.mini-item span,
.history-meta span,
.history-row span,
.rank-row span,
.muted,
.featured-meta span {
    color: var(--text-soft);
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.notice,
.empty-state {
    padding: 22px 24px;
}

.notice-error {
    border-color: rgba(243, 108, 98, 0.3);
    background: linear-gradient(180deg, rgba(49, 16, 15, 0.9), rgba(20, 11, 11, 0.95));
}

.notice-success {
    border-color: rgba(83, 209, 139, 0.3);
    background: linear-gradient(180deg, rgba(17, 49, 30, 0.88), rgba(10, 20, 15, 0.95));
}

.notice-info {
    border-color: rgba(243, 191, 82, 0.28);
    background: linear-gradient(180deg, rgba(56, 43, 13, 0.88), rgba(22, 18, 10, 0.95));
}

.section-block {
    padding: 28px;
}

.dashboard-page {
    margin-top: 28px;
}

.dashboard-shell {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
    min-height: calc(100vh - 120px);
    padding: 22px 18px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(12, 22, 17, 0.97), rgba(5, 10, 8, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-sidebar::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    bottom: 22px;
    width: 4px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, rgba(216, 166, 68, 0), rgba(216, 166, 68, 0.72), rgba(216, 166, 68, 0));
    opacity: 0.72;
}

.dashboard-sidebar-head,
.dashboard-sidebar-brand,
.dashboard-sidebar-user,
.dashboard-nav {
    position: relative;
    z-index: 1;
}

.dashboard-sidebar-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar-brand {
    display: grid;
    gap: 6px;
}

.dashboard-sidebar-brand strong,
.dashboard-user-copy strong,
.dashboard-nav-item,
.dashboard-sidebar-open {
    font-family: var(--font-display);
}

.dashboard-sidebar-brand strong {
    color: var(--gold);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.dashboard-sidebar-brand span,
.dashboard-user-copy span,
.dashboard-nav-section-title {
    color: var(--text-soft);
}

.dashboard-sidebar-brand span {
    font-size: 0.98rem;
}

.dashboard-sidebar-close,
.dashboard-sidebar-open {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.dashboard-sidebar-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-pill);
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-sidebar-close:hover,
.dashboard-sidebar-open:hover {
    border-color: rgba(243, 191, 82, 0.24);
    background: rgba(243, 191, 82, 0.08);
}

.dashboard-sidebar-user {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    justify-self: center;
    width: min(100%, 252px);
    padding: 12px 14px;
    border: 1px solid rgba(216, 166, 68, 0.18);
    border-radius: 16px;
    background: rgba(5, 12, 10, 0.7);
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 197, 57, 0.88);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 227, 139, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(14, 25, 32, 0.94), rgba(6, 11, 15, 0.98));
    color: var(--text);
    font: 700 1rem/1 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
}

.dashboard-avatar.is-image {
    background: #10161b;
}

.dashboard-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-user-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-user-copy strong {
    font-size: 1.12rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.dashboard-credit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(243, 191, 82, 0.16);
    color: var(--gold);
    font: 700 0.86rem/1 var(--font-display);
    letter-spacing: -0.02em;
}

.dashboard-nav,
.dashboard-nav-section,
.dashboard-nav-items {
    display: grid;
}

.dashboard-nav {
    gap: 22px;
}

.dashboard-nav-section {
    gap: 10px;
}

.dashboard-nav-items {
    gap: 8px;
}

.dashboard-nav-section-title {
    padding: 0 12px;
    font: 700 0.76rem/1 var(--font-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: rgba(245, 247, 248, 0.94);
    font-size: 1.28rem;
    letter-spacing: -0.03em;
    transition: var(--transition-fast);
}

.dashboard-nav-item:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav-item.is-active {
    border-color: rgba(243, 191, 82, 0.18);
    background: linear-gradient(180deg, rgba(79, 61, 18, 0.72), rgba(63, 48, 14, 0.74));
    color: var(--gold);
}

.dashboard-nav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(255, 220, 120, 0.98), rgba(243, 191, 82, 0.98));
}

.dashboard-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.dashboard-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-sidebar .dashboard-nav-item {
    border-radius: 14px;
}

.dashboard-sidebar .dashboard-nav-item:hover {
    border-color: rgba(216, 166, 68, 0.14);
    background: rgba(216, 166, 68, 0.06);
}

.dashboard-sidebar .dashboard-nav-item.is-active {
    border-color: rgba(216, 166, 68, 0.38);
    color: var(--gold-strong);
}

.dashboard-nav-text {
    white-space: nowrap;
}

.dashboard-sidebar-open {
    display: none;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    letter-spacing: -0.03em;
}

.dashboard-sidebar-open-icon {
    font-size: 1.1rem;
}

.dashboard-sidebar-backdrop {
    display: none;
}

.dashboard-main {
    min-width: 0;
    display: grid;
    gap: 28px;
}

.dashboard-shell.is-collapsed {
    grid-template-columns: 96px minmax(0, 1fr);
}

.dashboard-shell.is-collapsed .dashboard-sidebar {
    padding-left: 12px;
    padding-right: 12px;
}

.dashboard-shell.is-collapsed .dashboard-sidebar::after {
    top: 16px;
    bottom: 16px;
}

.dashboard-shell.is-collapsed .dashboard-sidebar-head {
    justify-content: center;
    padding-bottom: 14px;
}

.dashboard-shell.is-collapsed .dashboard-sidebar-brand,
.dashboard-shell.is-collapsed .dashboard-nav-section-title,
.dashboard-shell.is-collapsed .dashboard-nav-text,
.dashboard-shell.is-collapsed .dashboard-user-copy {
    display: none;
}

.dashboard-shell.is-collapsed .dashboard-sidebar-user {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 8px;
    width: 100%;
}

.dashboard-shell.is-collapsed .dashboard-avatar {
    width: 54px;
    height: 54px;
    font-size: 0.96rem;
}

.dashboard-shell.is-collapsed .dashboard-nav-item {
    width: 56px;
    margin: 0 auto;
    justify-content: center;
    padding: 0;
}

.dashboard-shell.is-collapsed .dashboard-nav-item::before {
    left: 6px;
}

