:root {
    --bg: #061019;
    --bg-soft: #0d1725;
    --panel: rgba(15, 25, 40, 0.88);
    --panel-strong: #132033;
    --line: rgba(170, 195, 225, 0.18);
    --text: #edf4ff;
    --muted: #9fb2cd;
    --cyan: #82e8ff;
    --mint: #7ef0bf;
    --gold: #ffd36e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --font-display: "Segoe UI", "Helvetica Neue", sans-serif;
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(126, 240, 191, 0.16), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(130, 232, 255, 0.18), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(255, 211, 110, 0.08), transparent 28%),
        linear-gradient(160deg, #040a12 0%, #07111d 45%, #081626 100%);
}
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: radial-gradient(circle at center, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.16));
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-shell { width: min(1280px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.topbar {
    position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: auto 1fr auto;
    gap: 20px; align-items: center; padding: 16px 22px; background: rgba(8, 16, 27, 0.84);
    backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.brand-cluster, .account-cluster { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: center; gap: 14px; }
.brand-mark img { width: 180px; max-width: 32vw; height: auto; object-fit: contain; display: block; }
.topnav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.topnav a, .dashboard-button, .ghost-button, .primary-button, .role-button {
    border-radius: 999px; padding: 12px 18px; border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.topnav a:hover, .dashboard-button:hover, .ghost-button:hover, .primary-button:hover, .role-button:hover, .burger-button:hover { transform: translateY(-1px); }
.topnav a { color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.ghost-button { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line); cursor: pointer; }
.primary-button { background: linear-gradient(135deg, var(--mint), #8ec5ff); color: #061019; font-weight: 700; cursor: pointer; }
.primary-button--large, .ghost-button--large { padding: 16px 24px; }
.dashboard-button { background: rgba(130,232,255,0.12); border-color: rgba(130,232,255,0.28); color: var(--cyan); }
.role-button { font-weight: 700; }
.role-button--admin { background: rgba(255,90,90,0.16); border-color: rgba(255,90,90,0.35); color: #ff8a8a; }
.role-button--dev { background: rgba(255,138,61,0.15); border-color: rgba(255,138,61,0.32); color: #ffbc8f; }
.role-button--support { background: rgba(125,180,255,0.14); border-color: rgba(125,180,255,0.3); color: #c7dfff; }
.role-button--premium { background: rgba(255,224,123,0.14); border-color: rgba(255,224,123,0.28); color: #ffe9a1; }
.role-button--user { background: rgba(133,255,203,0.11); border-color: rgba(133,255,203,0.26); color: #c6ffe8; }
.user-chip { padding: 8px 14px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.user-chip__label { display: block; color: var(--muted); font-size: 0.72rem; }
.logout-form { margin: 0; }
.burger-button {
    display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255,255,255,0.03); cursor: pointer; padding: 0;
}
.burger-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); }
.flash-stack { margin: 18px 0 0; display: grid; gap: 10px; }
.flash { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); }
.flash--success { background: rgba(126,240,191,0.12); color: #bcffe1; }
.flash--error { background: rgba(255,90,90,0.14); color: #ffc0c0; }
.hero-section {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 28px; margin-top: 28px; align-items: stretch;
}
.hero-copy, .hero-panel, .feature-band article, .systems-section, .season-section, .community-section, .modal-card {
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-copy, .hero-panel, .systems-section, .season-section, .community-section { border-radius: 28px; padding: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; }
.hero-copy h1, .section-heading h2 { margin: 0; font-family: var(--font-display); line-height: 1.05; }
.hero-copy h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); max-width: 11ch; }
.hero-text { max-width: 58ch; font-size: 1.06rem; line-height: 1.7; color: #d4dded; margin: 22px 0 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.hero-meta div, .status-card, .season-cards article, .community-panel { border-radius: 22px; background: var(--panel-strong); border: 1px solid rgba(167, 192, 225, 0.12); }
.hero-meta div { padding: 16px; }
.hero-meta span, .status-card span { display: block; color: var(--muted); font-size: 0.78rem; }
.hero-meta strong, .status-card strong { display: block; margin-top: 8px; font-size: 1.08rem; }
.hero-panel {
    background: linear-gradient(160deg, rgba(130,232,255,0.08), transparent 45%), linear-gradient(200deg, rgba(255,211,110,0.08), transparent 55%), var(--panel);
    display: flex;
    flex-direction: column;
}
.panel-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.panel-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}
.event-feed {
    display: grid;
    gap: 14px;
}
.event-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(10, 18, 30, 0.88);
    border: 1px solid rgba(154, 179, 209, 0.14);
}
.event-card--alert {
    border-color: rgba(255,90,90,0.28);
    background: linear-gradient(140deg, rgba(255,90,90,0.12), rgba(255,138,61,0.08));
}
.event-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--cyan);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.event-card h3 {
    margin: 14px 0 10px;
    font-size: 1.02rem;
    line-height: 1.35;
}
.event-card p {
    margin: 0;
    color: #ced9eb;
    line-height: 1.6;
}
.feature-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.feature-band article { padding: 26px; border-radius: 20px; }
.feature-band h2 { margin-top: 0; font-size: 1.25rem; }
.feature-band p, .systems-section p, .community-copy p, .community-copy li, .community-note, .season-cards span { color: #c9d4e8; line-height: 1.65; }
.systems-section, .season-section, .community-section { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.system-grid, .season-cards { display: grid; gap: 16px; }
.system-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.system-grid article, .season-cards article { padding: 20px; border-radius: 20px; background: rgba(12,24,39,0.85); border: 1px solid rgba(154,179,209,0.14); }
.season-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.season-cards strong { display: block; margin-bottom: 12px; font-size: 1.06rem; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 22px; }
.community-copy ul { margin: 18px 0 0; padding-left: 18px; }
.community-panel { padding: 24px; }
.role-pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.role-pill { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; }
.role-pill--admin { background: rgba(255,90,90,0.14); border-color: rgba(255,90,90,0.3); color: #ffb0b0; }
.role-pill--dev { background: rgba(255,138,61,0.14); border-color: rgba(255,138,61,0.3); color: #ffd1aa; }
.role-pill--support { background: rgba(125,180,255,0.14); border-color: rgba(125,180,255,0.3); color: #d2e5ff; }
.role-pill--premium { background: rgba(255,224,123,0.14); border-color: rgba(255,224,123,0.3); color: #fff0b2; }
.role-pill--user { background: rgba(133,255,203,0.13); border-color: rgba(133,255,203,0.26); color: #defff1; }
.modal-backdrop {
    position: fixed; inset: 0; display: none; place-items: center; padding: 20px;
    background: rgba(3,9,18,0.74); backdrop-filter: blur(16px); z-index: 50;
}
.modal-backdrop.is-open { display: grid; }
.modal-card { width: min(100%, 520px); border-radius: 24px; padding: 28px; position: relative; }
.modal-card h2 { margin-top: 0; }
.modal-card form { display: grid; gap: 10px; }
.modal-card label { color: #dae6f9; font-size: 0.92rem; }
.modal-card input {
    width: 100%; border-radius: 14px; border: 1px solid rgba(150,173,203,0.2);
    background: rgba(5,10,18,0.46); color: var(--text); padding: 14px 15px;
}
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; font-size: 1.4rem;
}
@media (max-width: 1120px) {
    .hero-section, .community-layout, .feature-band, .season-cards, .system-grid { grid-template-columns: 1fr; }
    .hero-meta { grid-template-columns: 1fr; }
    .topbar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .burger-button { display: inline-block; }
    .brand-cluster { justify-content: space-between; }
    .topnav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }
    .topnav.is-open { display: flex; }
    .account-cluster { flex-wrap: wrap; justify-content: flex-start; }
    .hero-copy, .hero-panel, .systems-section, .season-section, .community-section { padding: 24px; }
    .hero-copy h1 { max-width: none; font-size: clamp(2.4rem, 12vw, 4.2rem); }
    .brand-mark img { width: 150px; max-width: 46vw; }
}
