:root {
    color-scheme: dark;
    --bg: #050a11;
    --bg-soft: #08111c;
    --panel: rgba(9, 19, 31, 0.94);
    --panel-strong: #0b1725;
    --line: rgba(144, 177, 214, 0.14);
    --line-strong: rgba(63, 139, 255, 0.38);
    --text: #f5f8fc;
    --muted: #8f9bab;
    --muted-strong: #b5c0ce;
    --blue: #1476ff;
    --blue-light: #4ca0ff;
    --green: #54d76a;
    --red: #ff5d6c;
    --radius: 7px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 75% -10%, rgba(20, 118, 255, 0.11), transparent 32rem),
        linear-gradient(180deg, #050a11 0%, #07101a 55%, #050a11 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 10, 17, 0.92);
    backdrop-filter: blur(16px);
}

.utility-bar {
    border-bottom: 1px solid var(--line);
}

.utility-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 34px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    font-size: 30px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -2px;
    line-height: 1;
}

.brand-2k,
.footer-brand strong {
    color: var(--blue);
}

.brand-domain {
    margin-left: 1px;
}

.brand small {
    display: block;
    margin-left: 13px;
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-summary,
.account-actions,
.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-summary {
    gap: 24px;
    color: var(--muted-strong);
    font-size: 12px;
}

.live-summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.live-summary strong {
    color: var(--text);
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.live-dot-blue {
    color: var(--blue-light);
    background: currentColor;
}

.live-dot-green {
    color: var(--green);
    background: currentColor;
}

.button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(76, 160, 255, 0.5);
    outline-offset: 2px;
}

.button-primary {
    border-color: #2786ff;
    background: linear-gradient(180deg, #2585ff, #0865ed);
    box-shadow: 0 8px 24px rgba(10, 102, 238, 0.22);
}

.button-primary:hover {
    background: linear-gradient(180deg, #3b91ff, #1476ff);
}

.button-quiet {
    border-color: rgba(157, 180, 207, 0.2);
    background: rgba(139, 164, 193, 0.07);
}

.button-quiet:hover {
    border-color: rgba(76, 160, 255, 0.45);
    background: rgba(20, 118, 255, 0.09);
}

.button-large {
    min-height: 46px;
    padding-inline: 24px;
}

.button-full {
    width: 100%;
}

.button:disabled,
fieldset:disabled .button {
    cursor: not-allowed;
    opacity: 0.48;
}

.main-nav {
    min-height: 48px;
}

.nav-inner {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.nav-inner a,
.nav-inner .nav-soon {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: #aab5c3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.nav-inner a:hover {
    color: #fff;
    background: rgba(20, 118, 255, 0.07);
}

.nav-inner a.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(20, 118, 255, 0.2), rgba(20, 118, 255, 0.04));
}

.nav-inner a.is-active::after {
    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 2px;
    background: var(--blue);
    content: "";
}

.nav-soon {
    cursor: default;
    opacity: 0.45;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 78% 42%, rgba(16, 114, 255, 0.27), transparent 19rem),
        linear-gradient(108deg, rgba(5, 10, 17, 1) 12%, rgba(6, 17, 29, 0.93) 55%, rgba(7, 19, 33, 0.68));
}

.hero::before,
.hero::after {
    position: absolute;
    border: 1px solid rgba(76, 160, 255, 0.18);
    border-radius: 50%;
    content: "";
}

.hero::before {
    top: -230px;
    right: 2%;
    width: 630px;
    height: 630px;
}

.hero::after {
    top: -160px;
    right: 8%;
    width: 490px;
    height: 490px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, transparent, #000 70%, transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
    gap: 80px;
    align-items: center;
    padding-block: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero h1,
.page-heading h1,
.article-detail h1,
.server-detail h1,
.installer-card h1,
.error-card h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.048em;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero-copy > p {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--muted-strong);
    font-size: 17px;
}

.hero-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13, 31, 50, 0.96), rgba(7, 17, 28, 0.92));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
}

.hero-card::before {
    position: absolute;
    top: -1px;
    left: 24px;
    width: 80px;
    height: 2px;
    background: var(--blue);
    content: "";
}

.hero-card-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-server-status,
.online-label {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card h2 {
    clear: both;
    margin: 28px 0 8px;
    font-size: 24px;
}

.hero-card p {
    color: var(--muted);
}

.hero-server-meta,
.server-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.hero-server-meta span,
.server-card-stats span {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.hero-server-meta strong,
.server-card-stats strong {
    color: var(--text);
    font-size: 13px;
}

.hero-card > a,
.text-link {
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 800;
}

.portal-content {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, 0.75fr);
    gap: 16px;
    padding-block: 22px 56px;
}

.content-column,
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(10, 22, 35, 0.96), rgba(7, 15, 25, 0.94));
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.17);
}

.panel-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.panel-kicker {
    color: var(--blue-light);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.panel-plus {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--line);
    color: var(--blue-light);
    background: rgba(4, 11, 19, 0.36);
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    transition: color 160ms ease, background 160ms ease;
}

.panel-plus:hover {
    color: #fff;
    background: rgba(20, 118, 255, 0.1);
}

.news-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.news-row:last-child {
    border-bottom: 0;
}

.news-art {
    position: relative;
    min-height: 90px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background:
        linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.08) 43%, transparent 44%),
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.16), transparent 25%),
        linear-gradient(145deg, #16365b, #071423);
}

.news-art-2 {
    background-color: #48311f;
    background-image: linear-gradient(135deg, rgba(255, 144, 57, 0.25), transparent), repeating-linear-gradient(120deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 19px 20px);
}

.news-art-3 {
    background-color: #102945;
    background-image: radial-gradient(circle, rgba(64, 153, 255, 0.34), transparent 55%);
}

.news-art span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 22px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -0.08em;
}

.news-copy {
    min-width: 0;
}

.news-meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-meta span {
    color: var(--blue-light);
}

.news-copy h3,
.news-copy h2 {
    margin: 5px 0 3px;
    font-size: 16px;
    line-height: 1.25;
}

.news-copy h2 {
    font-size: 20px;
}

.news-copy h3 a:hover,
.news-copy h2 a:hover {
    color: var(--blue-light);
}

.news-copy p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.news-copy small {
    color: #6f7d8d;
    font-size: 10px;
}

.server-list {
    padding: 7px 10px;
}

.server-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 7px 6px;
    border-bottom: 1px solid var(--line);
}

.server-row:last-child {
    border-bottom: 0;
}

.server-row:hover {
    background: rgba(20, 118, 255, 0.06);
}

.server-mode {
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 4px;
    border: 1px solid rgba(20, 118, 255, 0.3);
    border-radius: 3px;
    color: var(--blue-light);
    background: rgba(20, 118, 255, 0.09);
    font-size: 8px;
    font-weight: 900;
}

.server-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.server-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-copy small {
    color: var(--muted);
    font-size: 10px;
}

.server-players {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-strong);
    font-size: 10px;
}

.signal {
    height: 14px;
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.signal b {
    width: 2px;
    display: block;
    background: var(--green);
}

.signal b:nth-child(1) { height: 5px; }
.signal b:nth-child(2) { height: 9px; }
.signal b:nth-child(3) { height: 13px; }

.community-strip {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
    padding: 25px;
}

.community-strip h2 {
    margin: 4px 0;
    font-size: 22px;
}

.community-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.community-count {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.community-count strong {
    color: var(--blue-light);
    font-size: 27px;
    line-height: 1;
}

.community-count span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.quick-links {
    padding-bottom: 8px;
}

.quick-links > a {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 12px;
}

.quick-links > a:last-child {
    border-bottom: 0;
}

.quick-links > a:hover,
.quick-links b {
    color: var(--blue-light);
}

/* Homepage portal dashboard */
.home-page {
    padding-top: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 118, 255, 0.07), transparent 36rem),
        #050c14;
}

.home-hero-stage {
    position: relative;
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 42px;
    align-items: end;
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(55, 142, 255, 0.35);
    border-radius: 7px;
    background: #050b13;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.home-hero-art,
.home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-art {
    object-fit: cover;
    object-position: center;
}

.home-hero-shade {
    background:
        linear-gradient(90deg, rgba(3, 8, 14, 0.98) 0%, rgba(3, 8, 14, 0.83) 35%, rgba(3, 8, 14, 0.17) 73%, rgba(3, 8, 14, 0.55) 100%),
        linear-gradient(0deg, rgba(3, 8, 14, 0.8), transparent 65%);
}

.home-feature-copy,
.home-live-card {
    position: relative;
    z-index: 2;
}

.home-feature-copy {
    max-width: 565px;
    padding-block: 8px;
}

.home-feature-copy h1 {
    max-width: 540px;
    margin: 13px 0 12px;
    font-size: clamp(34px, 4vw, 49px);
    line-height: 1.02;
    letter-spacing: -0.043em;
}

.home-feature-copy > p {
    max-width: 540px;
    margin: 0;
    color: #b2c0d1;
    font-size: 15px;
    line-height: 1.65;
}

.home-feature-meta {
    display: flex;
    gap: 18px;
    margin-top: 15px;
    color: #78889c;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.home-feature-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 23px;
}

.home-text-link,
.panel-header-link {
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 800;
}

.home-text-link:hover,
.panel-header-link:hover {
    color: #fff;
}

.home-live-card {
    padding: 20px;
    border: 1px solid rgba(96, 164, 247, 0.32);
    border-radius: 5px;
    background: rgba(5, 13, 22, 0.86);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.home-live-heading,
.home-live-game {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-live-heading > span {
    color: #8291a5;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-live-heading strong {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--green);
    font-size: 8px;
    text-transform: uppercase;
}

.home-live-game {
    justify-content: flex-start;
    gap: 7px;
    margin-top: 22px;
    color: #8fa0b4;
    font-size: 9px;
}

.home-live-card h2 {
    margin: 7px 0 1px;
    font-size: 19px;
}

.home-live-card > p {
    margin: 0;
    color: #7e8da0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}

.home-live-card dl {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
    margin: 18px 0;
}

.home-live-card dl > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(126, 168, 218, 0.13);
    border-radius: 3px;
    background: rgba(15, 35, 56, 0.52);
}

.home-live-card dt {
    color: #6c7b8e;
    font-size: 7px;
    text-transform: uppercase;
}

.home-live-card dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: #d4dfec;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-card > a {
    color: var(--blue-light);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.home-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(7, 16, 27, 0.92);
}

.home-status > a {
    min-width: 0;
    min-height: 68px;
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 10px 16px;
    border-right: 1px solid var(--line);
}

.home-status > a:last-child {
    border-right: 0;
}

.home-status > a:hover {
    background: rgba(20, 118, 255, 0.06);
}

.home-status > a > span:last-child {
    min-width: 0;
    display: grid;
}

.home-status strong {
    overflow: hidden;
    color: #b9c7d8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-status small {
    color: #617287;
    font-size: 8px;
}

.home-status-number {
    min-width: 28px;
    color: var(--blue-light);
    font-size: 19px;
    font-weight: 900;
    text-align: center;
}

.home-status-icon {
    min-width: 28px;
    text-align: center;
}

.home-page .portal-content {
    padding-top: 16px;
}

.home-page .panel-header {
    min-height: 54px;
}

.home-page .panel-header > div {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.home-page .panel-header h2 {
    font-size: 11px;
}

.panel-header-link {
    padding: 5px 0;
}

.news-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(6, 15, 25, 0.04), rgba(6, 15, 25, 0.72));
    content: "";
}

.news-art span {
    position: relative;
    z-index: 1;
}

.home-community-panel {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 24px;
}

.home-community-symbol {
    width: 78px;
    height: 78px;
    display: grid;
    place-content: center;
    border: 1px solid rgba(76, 160, 255, 0.3);
    border-radius: 50%;
    color: #d6e7fb;
    background: radial-gradient(circle, rgba(20, 118, 255, 0.22), rgba(20, 118, 255, 0.03));
    font-size: 17px;
    font-weight: 950;
    font-style: italic;
}

.home-community-symbol strong {
    color: var(--blue-light);
}

.home-community-panel h2 {
    margin: 2px 0 3px;
    font-size: 19px;
}

.home-community-panel p {
    max-width: 510px;
    margin: 0;
    color: #7e8ea2;
    font-size: 10px;
}

.home-community-actions {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.home-quick-links > a > span {
    display: grid;
}

.home-quick-links > a strong {
    color: #aebed1;
    font-size: 10px;
}

.home-quick-links > a small {
    color: #617287;
    font-size: 8px;
}

.home-coming-panel ul {
    margin: 0;
    padding: 8px 14px;
    list-style: none;
}

.home-coming-panel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    color: #9dacbf;
    font-size: 10px;
}

.home-coming-panel li:last-child {
    border-bottom: 0;
}

.home-coming-panel small {
    color: #5f7085;
    font-size: 8px;
}

.article-cover {
    width: 100%;
    max-height: 320px;
    display: block;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 5px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .home-hero-stage {
        grid-template-columns: 1fr;
        gap: 26px;
        align-items: end;
    }

    .home-live-card {
        width: min(100%, 380px);
    }

    .home-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-status > a:nth-child(2) {
        border-right: 0;
    }

    .home-status > a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .home-community-panel {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .home-community-actions {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: start;
    }
}

@media (max-width: 575px) {
    .home-page {
        padding-top: 12px;
    }

    .home-hero-stage {
        min-height: 0;
        padding: 24px 20px;
    }

    .home-hero-art {
        object-position: 64% center;
    }

    .home-hero-shade {
        background: linear-gradient(90deg, rgba(3, 8, 14, 0.96), rgba(3, 8, 14, 0.66)), linear-gradient(0deg, rgba(3, 8, 14, 0.9), transparent);
    }

    .home-feature-copy h1 {
        font-size: 31px;
    }

    .home-feature-copy > p {
        font-size: 13px;
    }

    .home-feature-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-status {
        grid-template-columns: 1fr;
    }

    .home-status > a {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-status > a:last-child {
        border-bottom: 0;
    }

    .home-community-panel {
        grid-template-columns: 1fr;
    }

    .home-community-symbol {
        width: 58px;
        height: 58px;
    }

    .home-community-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .home-page .panel-header > div {
        display: grid;
        gap: 0;
    }
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #04080e;
}

.footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 950;
    font-style: italic;
}

.footer-inner p {
    color: var(--muted);
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.footer-links span {
    cursor: default;
    opacity: 0.65;
}

.install-footer {
    border-top: 1px solid var(--line);
    background: rgba(4, 8, 14, 0.92);
}

.install-footer-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.install-footer-brand {
    font-size: 17px;
    font-style: italic;
    font-weight: 950;
}

.install-footer-brand strong {
    color: var(--blue);
}

.install-footer p,
.install-footer small {
    color: var(--muted);
    font-size: 10px;
}

.install-footer small {
    margin-left: auto;
}

.page-shell {
    min-height: 62vh;
    padding-block: 50px 70px;
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1,
.article-detail h1,
.server-detail h1,
.installer-card h1,
.error-card h1 {
    font-size: clamp(34px, 5vw, 52px);
}

.page-heading p,
.article-lead {
    max-width: 680px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 16px;
}

.news-archive {
    max-width: 900px;
}

.news-archive .news-row {
    grid-template-columns: 150px minmax(0, 1fr);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.server-card {
    padding: 22px;
}

.server-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-card .server-mode,
.server-detail .server-mode {
    min-height: 26px;
    padding-inline: 10px;
}

.server-card h2 {
    margin: 22px 0 3px;
}

.server-card > p {
    margin: 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.detail-layout {
    max-width: 900px;
}

.article-detail,
.server-detail {
    padding: clamp(24px, 5vw, 55px);
}

.article-detail h1,
.server-detail h1 {
    max-width: 750px;
}

.article-placeholder {
    margin: 32px 0;
    padding: 24px;
    border-left: 2px solid var(--blue);
    color: var(--muted);
    background: rgba(20, 118, 255, 0.055);
}

.server-detail .server-card-stats {
    max-width: 520px;
    margin-block: 30px;
}

.installer-shell,
.error-shell {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 50px 18px 70px;
}

.installer-card {
    width: min(100%, 820px);
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(11, 25, 40, 0.98), rgba(6, 14, 24, 0.98));
    box-shadow: var(--shadow);
}

.installer-heading p,
.installer-success p {
    color: var(--muted-strong);
}

.installer-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.installer-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.installer-steps li::before {
    position: absolute;
    z-index: 0;
    top: 15px;
    left: calc(-50% + 16px);
    width: calc(100% - 32px);
    height: 1px;
    background: var(--line);
    content: "";
}

.installer-steps li:first-child::before {
    display: none;
}

.installer-steps li > span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #08111c;
    font-size: 11px;
    font-weight: 900;
}

.installer-steps li > small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.installer-steps .is-complete,
.installer-steps .is-current {
    color: var(--blue-light);
}

.installer-steps .is-complete > span {
    border-color: rgba(84, 215, 106, 0.42);
    color: var(--green);
}

.installer-steps .is-complete::before,
.installer-steps .is-current::before {
    background: rgba(20, 118, 255, 0.48);
}

.installer-steps .is-current > span {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(20, 118, 255, 0.09);
}

.requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 28px 0;
}

.requirement {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted-strong);
    font-size: 11px;
}

.requirement small {
    color: var(--muted);
}

.requirement .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.requirement.is-ok .status-dot { background: var(--green); box-shadow: 0 0 8px rgba(84, 215, 106, 0.5); }
.requirement.is-error .status-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 93, 108, 0.5); }

.alert {
    margin: 24px 0;
    padding: 15px 18px;
    border-radius: 5px;
    font-size: 12px;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    border: 1px solid rgba(255, 93, 108, 0.34);
    color: #ffc7ce;
    background: rgba(255, 93, 108, 0.08);
}

.installer-form fieldset {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.installer-form legend {
    padding: 0 8px;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-grid-database {
    grid-template-columns: minmax(0, 1.7fr) minmax(90px, 0.5fr);
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 700;
}

.form-grid input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    background: rgba(2, 8, 14, 0.58);
}

.form-grid input:hover,
.form-grid input:focus {
    border-color: var(--line-strong);
}

.field-wide {
    grid-column: 1 / -1;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.installer-confirmation {
    margin: -6px 0 22px;
    color: var(--muted);
    font-size: 11px;
}

.installer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.installer-actions .button-primary {
    min-width: 220px;
}

.installer-summary {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.summary-section {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(2, 8, 14, 0.32);
}

.summary-section h2 {
    margin: 0 0 10px;
    color: var(--blue-light);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-section dl,
.summary-section dl div {
    margin: 0;
}

.summary-section dl div {
    display: grid;
    grid-template-columns: minmax(140px, 0.65fr) 1.35fr;
    gap: 16px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.summary-section dt {
    color: var(--muted);
}

.summary-section dd {
    color: var(--muted-strong);
    overflow-wrap: anywhere;
}

.installer-final-confirm {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid rgba(20, 118, 255, 0.25);
    border-radius: 5px;
    color: var(--muted-strong);
    background: rgba(20, 118, 255, 0.055);
    font-size: 11px;
    cursor: pointer;
}

.installer-final-confirm input {
    margin-top: 3px;
    accent-color: var(--blue);
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.installer-success {
    max-width: 620px;
    text-align: center;
}

.success-mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(84, 215, 106, 0.36);
    border-radius: 50%;
    color: var(--green);
    background: rgba(84, 215, 106, 0.08);
    font-size: 30px;
}

.error-card {
    max-width: 620px;
    padding: 50px;
    text-align: center;
}

.error-code {
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.error-card p {
    margin-bottom: 26px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .utility-inner {
        grid-template-columns: 1fr auto;
    }

    .live-summary {
        display: none;
    }

    .hero-content,
    .portal-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 36px;
    }

    .hero-card {
        max-width: 560px;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .utility-inner {
        min-height: 72px;
    }

    .brand {
        font-size: 25px;
    }

    .brand small,
    .account-actions .button-quiet {
        display: none;
    }

    .account-actions .button {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 10px;
    }

    .nav-inner {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
        scrollbar-color: rgba(76, 160, 255, 0.35) transparent;
        scrollbar-width: thin;
    }

    .nav-inner a,
    .nav-inner .nav-soon {
        min-width: max-content;
        padding-inline: 14px;
        scroll-snap-align: center;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding-block: 48px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .news-row,
    .news-archive .news-row {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .news-art {
        min-height: 82px;
    }

    .news-copy p {
        display: none;
    }

    .community-strip {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .community-count {
        text-align: left;
    }

    .sidebar,
    .server-grid,
    .requirements,
    .form-grid,
    .form-grid-database {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 25px;
    }

    .footer-inner p {
        margin: 0;
    }

    .footer-links {
        margin-left: 0;
    }

    .install-footer-inner {
        flex-wrap: wrap;
        padding-block: 20px;
    }

    .install-footer-inner p {
        margin: 0;
    }

    .install-footer small {
        width: 100%;
        margin-left: 0;
    }

    .installer-card,
    .error-card {
        padding: 24px 18px;
    }

    .installer-steps li > small {
        font-size: 0;
    }

    .installer-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .installer-actions .button {
        width: 100%;
    }

    .summary-section dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Market, VIP and maintenance */
.market-page { max-width: 1120px; }
.market-page-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin: 22px 0 28px; }
.market-page-heading h1 { margin: 7px 0 8px; color: #f2f7ff; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.market-page-heading p { max-width: 650px; margin: 0; color: #8498af; font-size: 12px; line-height: 1.65; }
.market-wallet-chip,
.wallet-balance,
.vip-validity { min-width: 180px; padding: 13px 16px; border: 1px solid rgba(64, 146, 255, 0.32); border-radius: 5px; background: linear-gradient(145deg, rgba(16, 66, 124, 0.3), rgba(6, 17, 29, 0.9)); }
.market-wallet-chip { color: inherit; }
.market-wallet-chip span,
.wallet-balance span,
.vip-validity span { display: block; color: #68809a; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.market-wallet-chip strong,
.wallet-balance strong,
.vip-validity strong { display: block; margin-top: 3px; color: #e8f3ff; font-size: 17px; }
.wallet-balance strong { color: #65aaff; font-size: 34px; line-height: 1; }
.wallet-balance small { color: #748ba5; }
.market-flash { margin: 0 0 18px; padding: 12px 15px; border: 1px solid; border-radius: 4px; font-size: 11px; }
.market-flash.is-success { border-color: rgba(67, 216, 120, .3); color: #9de2b6; background: rgba(26, 128, 68, .09); }
.market-flash.is-error { border-color: rgba(255, 102, 118, .32); color: #ffadb6; background: rgba(160, 33, 48, .09); }
.market-flash ul { margin: 0; padding-left: 18px; }
.vip-active-strip { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; padding: 11px 14px; border: 1px solid rgba(242, 190, 70, .28); border-radius: 4px; background: linear-gradient(90deg, rgba(160, 113, 12, .15), rgba(8, 20, 33, .65)); font-size: 10px; }
.vip-active-strip span { color: #f3c85e; font-weight: 900; text-transform: uppercase; }
.vip-active-strip strong { color: #bdcadd; }
.vip-active-strip a { margin-left: auto; color: #f4d77f; }
.market-section { margin-top: 26px; }
.market-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 13px; }
.market-section-heading h2 { margin: 3px 0 0; color: #edf5ff; font-size: 20px; }
.market-section-heading > a { color: var(--blue-light); font-size: 9px; }
.market-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.market-product { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 25px; overflow: hidden; }
.market-product::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, transparent, #2583ff, transparent); content: ""; }
.market-product.is-featured { border-color: rgba(76, 160, 255, .58); box-shadow: 0 15px 38px rgba(0, 72, 170, .13); }
.market-product-label { position: absolute; top: 15px; right: 15px; color: #76b6ff; font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.market-product-duration { color: #4ca0ff; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.market-product h2 { margin: 8px 0 10px; color: #f1f6fd; font-size: 23px; }
.market-product p { min-height: 52px; margin: 0; color: #7f93aa; font-size: 10px; line-height: 1.6; }
.market-product-price { display: flex; gap: 8px; align-items: baseline; margin: auto 0 18px; padding-top: 25px; }
.market-product-price strong { color: #fff; font-size: 36px; line-height: 1; }
.market-product-price span { color: #7190b2; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.market-product form,
.market-product .button { width: 100%; }
.market-two-column { display: grid; grid-template-columns: 1.08fr .92fr; gap: 13px; margin-top: 28px; }
.market-credit-panel,
.market-benefit-preview { padding: 24px; }
.market-credit-panel h2,
.market-benefit-preview h2 { margin: 5px 0 10px; color: #edf5ff; font-size: 20px; }
.market-credit-panel > p { color: #7f92a8; font-size: 10px; line-height: 1.65; }
.market-credit-panel > small { display: block; margin-top: 13px; color: #647a93; font-size: 8px; line-height: 1.55; }
.credit-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 12px; }
.credit-preview-grid span { padding: 12px 9px; border: 1px solid var(--line-strong); border-radius: 4px; color: #6d829a; background: #07121e; text-align: center; font-size: 8px; }
.credit-preview-grid strong { display: block; color: #c9d8e8; font-size: 17px; }
.market-coming { display: flex; gap: 8px; align-items: center; color: #89a0b9; font-size: 9px; }
.market-coming i { width: 7px; height: 7px; border-radius: 50%; background: #f0b93f; box-shadow: 0 0 10px rgba(240, 185, 63, .55); }
.market-benefit-preview ul { display: grid; gap: 9px; margin: 15px 0 18px; padding: 0; list-style: none; }
.market-benefit-preview li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.market-benefit-preview li > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(48, 139, 255, .32); border-radius: 50%; color: #56a5ff; font-size: 12px; }
.market-benefit-preview li strong,
.market-benefit-preview li small { display: block; }
.market-benefit-preview li strong { color: #bdccdc; font-size: 9px; }
.market-benefit-preview li small { margin-top: 2px; color: #60738a; font-size: 7px; }

.vip-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; align-items: center; margin: 22px 0 30px; padding: clamp(28px, 5vw, 58px); background: radial-gradient(circle at 15% 20%, rgba(27, 120, 255, .2), transparent 38%), radial-gradient(circle at 85% 60%, rgba(231, 174, 42, .1), transparent 32%), #07131f; }
.vip-mark { display: block; margin-bottom: 12px; color: #f0c458; font-size: 14px; font-weight: 950; }
.vip-hero h1 { margin: 8px 0 15px; color: #f4f8fd; font-size: clamp(30px, 4vw, 47px); line-height: 1.08; }
.vip-hero p { max-width: 650px; color: #8497ad; font-size: 11px; line-height: 1.7; }
.vip-hero-actions { display: flex; gap: 8px; margin-top: 22px; }
.vip-hero-card { padding: 22px; border: 1px solid rgba(238, 190, 72, .25); border-radius: 5px; background: rgba(8, 15, 23, .68); }
.vip-hero-card span,
.vip-hero-card small { display: block; color: #6f8298; font-size: 8px; }
.vip-hero-card strong { display: block; margin: 7px 0; color: #f0c458; font-size: 21px; }
.vip-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vip-benefit-card { min-height: 142px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 13px; padding: 20px; }
.vip-benefit-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(240, 196, 88, .3); border-radius: 4px; color: #efc65e; background: rgba(158, 109, 12, .08); font-size: 17px; }
.vip-benefit-card h3 { margin: 1px 0 7px; color: #dfeaf6; font-size: 12px; }
.vip-benefit-card p { margin: 0; color: #72869d; font-size: 9px; line-height: 1.55; }
.vip-benefit-card > div > small { display: inline-block; margin-top: 10px; color: #c39c47; font-size: 7px; text-transform: uppercase; }
.vip-benefit-card.is-future { border-style: dashed; }

.wallet-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.wallet-status-card { padding: 21px; }
.wallet-status-card > span,
.wallet-status-card > strong,
.wallet-status-card > small { display: block; }
.wallet-status-card > span { color: #657b94; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.wallet-status-card > strong { margin: 6px 0; color: #dce9f6; font-size: 18px; }
.wallet-status-card > small { min-height: 28px; color: #72869c; font-size: 8px; }
.wallet-status-card > a { display: inline-block; margin-top: 12px; color: var(--blue-light); font-size: 9px; }
.wallet-history { padding: 22px; }
.wallet-empty { padding: 38px; color: #6d8199; text-align: center; font-size: 10px; }
.wallet-transaction-list { display: grid; }
.wallet-transaction-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.wallet-transaction-sign { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 900; }
.wallet-transaction-sign.is-plus { color: #67df8c; background: rgba(38, 180, 87, .1); }
.wallet-transaction-sign.is-minus { color: #ff8491; background: rgba(214, 52, 70, .1); }
.wallet-transaction-list article > div strong,
.wallet-transaction-list article > div small { display: block; }
.wallet-transaction-list article > div strong { color: #bacadb; font-size: 10px; }
.wallet-transaction-list article > div small { margin-top: 3px; color: #62768d; font-size: 8px; }
.wallet-transaction-amount { text-align: right; }
.wallet-transaction-amount strong { font-size: 13px !important; }

.benefits-locked { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 15px; align-items: center; margin-bottom: 13px; padding: 18px; }
.benefits-locked > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(240, 196, 88, .3); border-radius: 50%; color: #f0c458; font-weight: 900; }
.benefits-locked h2 { margin: 0 0 4px; color: #dce7f3; font-size: 14px; }
.benefits-locked p { margin: 0; color: #71869d; font-size: 9px; }
.benefit-settings-form { padding: 22px; }
.benefit-toggle-list { display: grid; gap: 1px; }
.benefit-toggle { display: grid; grid-template-columns: 18px minmax(0, 1fr) 36px; gap: 13px; align-items: center; padding: 15px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.benefit-toggle > input { width: 16px; height: 16px; accent-color: #2583ff; }
.benefit-toggle span strong,
.benefit-toggle span small { display: block; }
.benefit-toggle span strong { color: #bdccdc; font-size: 10px; }
.benefit-toggle span small { margin-top: 3px; color: #667b92; font-size: 8px; }
.benefit-toggle > i { position: relative; width: 34px; height: 18px; border: 1px solid #2a3c50; border-radius: 20px; background: #06101a; }
.benefit-toggle > i::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #526579; transition: transform 150ms ease, background 150ms ease; content: ""; }
.benefit-toggle > input:checked ~ i { border-color: rgba(44, 139, 255, .55); background: rgba(20, 118, 255, .15); }
.benefit-toggle > input:checked ~ i::after { transform: translateX(16px); background: #4ca0ff; box-shadow: 0 0 9px rgba(76, 160, 255, .6); }
.benefit-toggle:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.market-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.market-form-actions .button:disabled { cursor: not-allowed; opacity: .5; }
.market-admin-form,
.maintenance-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 25px; }
.market-admin-form .is-wide,
.maintenance-form > * { grid-column: 1 / -1; }
.market-admin-form label,
.maintenance-form > label:not(.benefit-toggle) { display: block; margin-bottom: 6px; color: #90a4ba; font-size: 9px; }
.maintenance-form > label strong,
.maintenance-form > label small { display: block; }
.maintenance-form > label small { margin-top: 3px; color: #60748b; }
.market-admin-form input:not([type="checkbox"]),
.maintenance-form textarea,
.maintenance-form input[type="datetime-local"] { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: #d9e6f4; background: #050f19; font: inherit; }
.maintenance-form textarea { resize: vertical; }
.maintenance-master { padding: 4px 0 18px; }
.maintenance-state { padding: 7px 11px; border: 1px solid; border-radius: 20px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.maintenance-state.is-on { border-color: rgba(255, 174, 69, .35); color: #ffc16d; background: rgba(190, 113, 17, .08); }
.maintenance-state.is-off { border-color: rgba(67, 216, 120, .3); color: #86e2a5; background: rgba(27, 140, 66, .08); }

.vip-golden-name { color: #f1c75e !important; text-shadow: 0 0 14px rgba(222, 166, 38, .2); }
.vip-badge,
.forum-post-author > .vip-badge { display: inline-flex; width: fit-content; margin: 5px auto 0; padding: 2px 7px; border: 1px solid rgba(235, 186, 62, .38); border-radius: 3px; color: #f0c85f; background: rgba(132, 88, 7, .08); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.vip-inline-group { color: #e7bd54; font-weight: 800; }
.is-vip-profile { border-color: rgba(230, 181, 52, .25); box-shadow: 0 16px 40px rgba(141, 93, 3, .07); }
.is-vip-profile .profile-profile-banner::after { background: linear-gradient(90deg, rgba(5, 14, 24, .95), rgba(50, 39, 8, .24), rgba(5, 14, 24, .8)); }
.forum-post.is-vip-post { border-color: rgba(230, 181, 52, .28); box-shadow: inset 3px 0 0 rgba(238, 190, 65, .55), 0 10px 28px rgba(133, 90, 5, .05); }
.forum-post.is-vip-post .forum-post-author { background: linear-gradient(145deg, rgba(105, 75, 12, .11), rgba(4, 12, 20, .45)); }
.news-comment.is-vip-comment { margin: 5px 8px; border: 1px solid rgba(229, 180, 50, .22); border-radius: 4px; background: linear-gradient(90deg, rgba(113, 77, 7, .1), rgba(7, 18, 29, .12)); }
.profile-vip-locked { display: flex; gap: 11px; align-items: center; padding: 13px; border: 1px dashed rgba(232, 184, 58, .25); border-radius: 4px; }
.profile-vip-locked span { color: #eabf55; font-weight: 900; }
.profile-vip-locked p { margin: 0; color: #7d91a7; font-size: 9px; }
.profile-vip-locked a { color: #e9c260; }

.maintenance-public-page { min-height: 100dvh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(circle at 50% 30%, rgba(19, 99, 206, .16), transparent 35%), #040b13; }
.maintenance-public-card { width: min(620px, 100%); padding: clamp(30px, 6vw, 58px); border: 1px solid rgba(65, 149, 255, .32); border-radius: 7px; background: rgba(7, 19, 31, .94); box-shadow: 0 28px 80px rgba(0, 0, 0, .42); text-align: center; }
.maintenance-logo { margin-bottom: 35px; color: #eef5fd; font-size: 22px; font-weight: 950; font-style: italic; }
.maintenance-logo strong { color: #2583ff; }
.maintenance-public-card h1 { margin: 9px 0 13px; color: #f2f7fd; font-size: clamp(30px, 6vw, 47px); line-height: 1.08; }
.maintenance-public-card > p { margin: 0 auto; color: #8ca0b6; font-size: 12px; line-height: 1.7; }
.maintenance-return { margin: 24px auto 18px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #050f19; }
.maintenance-return span,
.maintenance-return strong { display: block; }
.maintenance-return span { color: #63778e; font-size: 8px; text-transform: uppercase; }
.maintenance-return strong { margin-top: 4px; color: #c4d4e5; font-size: 12px; }

@media (max-width: 820px) {
    .market-product-grid,
    .vip-benefit-grid { grid-template-columns: 1fr 1fr; }
    .market-two-column,
    .vip-hero { grid-template-columns: 1fr; }
    .vip-hero-card { max-width: 360px; }
}

@media (max-width: 560px) {
    .market-page-heading { align-items: stretch; flex-direction: column; }
    .market-wallet-chip,
    .wallet-balance,
    .vip-validity { width: 100%; }
    .market-product-grid,
    .vip-benefit-grid,
    .wallet-summary-grid,
    .market-admin-form { grid-template-columns: 1fr; }
    .vip-active-strip { align-items: flex-start; flex-direction: column; }
    .vip-active-strip a { margin-left: 0; }
    .vip-hero-actions,
    .market-form-actions { align-items: stretch; flex-direction: column; }
    .benefits-locked { grid-template-columns: 38px minmax(0, 1fr); }
    .benefits-locked .button { grid-column: 1 / -1; }
    .wallet-transaction-list article { grid-template-columns: 28px minmax(0, 1fr); }
    .wallet-transaction-amount { grid-column: 2; text-align: left; }
}

/* CS2K installer 0.2 — Bootstrap handles the grid and controls, this layer owns the portal identity. */
.installer-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    --bs-body-color: var(--text);
    --bs-body-bg: transparent;
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 118, 255, 0.13), transparent 30rem),
        radial-gradient(circle at 86% 88%, rgba(36, 108, 255, 0.07), transparent 28rem),
        linear-gradient(145deg, #040a12 0%, #07121e 48%, #050b13 100%);
}

.installer-layout #main-content {
    min-height: 0;
    display: flex;
    flex: 1;
}

.setup-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    display: grid;
    flex: 1;
    place-items: center;
    padding: clamp(30px, 5vh, 64px) 24px;
    overflow: hidden;
}

.setup-shell::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.19;
    background-image:
        linear-gradient(rgba(91, 151, 214, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 151, 214, 0.13) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    content: "";
    pointer-events: none;
}

.setup-shell::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(92vw, 1180px);
    height: min(72vh, 720px);
    border-radius: 50%;
    background: rgba(20, 118, 255, 0.075);
    filter: blur(100px);
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.setup-card {
    position: relative;
    width: min(100%, 1100px);
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(270px, 304px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(72, 146, 238, 0.34);
    border-radius: 18px;
    background: rgba(6, 15, 25, 0.94);
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.015) inset;
    backdrop-filter: blur(18px);
}

.setup-card::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 160, 255, 0.8), transparent);
    content: "";
}

.setup-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 32px 30px;
    border-right: 1px solid rgba(126, 168, 218, 0.12);
    background:
        radial-gradient(circle at 10% 0%, rgba(32, 126, 255, 0.18), transparent 18rem),
        linear-gradient(180deg, rgba(12, 31, 51, 0.96), rgba(7, 18, 30, 0.98));
}

.setup-sidebar::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 170px;
    height: 170px;
    opacity: 0.18;
    background:
        linear-gradient(135deg, transparent 48%, rgba(76, 160, 255, 0.35) 49%, transparent 51%);
    background-size: 22px 22px;
    content: "";
    pointer-events: none;
}

.setup-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 34px;
}

.setup-wordmark {
    color: #fff;
    font-size: 24px;
    font-style: italic;
    font-weight: 950;
    letter-spacing: -1.5px;
    line-height: 1;
}

.setup-wordmark strong {
    color: var(--blue-light);
}

.setup-badge {
    padding: 5px 8px;
    border: 1px solid rgba(76, 160, 255, 0.24);
    border-radius: 999px;
    color: #8bc1ff;
    background: rgba(20, 118, 255, 0.08);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setup-progress-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.setup-progress-meta strong {
    color: var(--blue-light);
}

.setup-progress {
    position: relative;
    z-index: 1;
    height: 4px;
    margin-bottom: 32px;
    border-radius: 999px;
    background: rgba(129, 168, 211, 0.12);
}

.setup-progress-value {
    border-radius: inherit;
    background: linear-gradient(90deg, #0a67ed, #4ca0ff);
    box-shadow: 0 0 12px rgba(20, 118, 255, 0.48);
}

.setup-progress-1 { width: 20%; }
.setup-progress-2 { width: 40%; }
.setup-progress-3 { width: 60%; }
.setup-progress-4 { width: 80%; }
.setup-progress-5 { width: 100%; }

.setup-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-steps li {
    position: relative;
    min-height: 65px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    color: #68788d;
}

.setup-steps li:not(:last-child)::after {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 16px;
    width: 1px;
    background: rgba(126, 168, 218, 0.14);
    content: "";
}

.setup-step-number {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 168, 218, 0.2);
    border-radius: 10px;
    color: #7589a0;
    background: #091522;
    font-size: 10px;
    font-weight: 900;
    transition: 160ms ease;
}

.setup-step-copy {
    min-width: 0;
    display: grid;
    align-content: start;
    padding-top: 1px;
}

.setup-step-copy strong {
    color: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.setup-step-copy small {
    color: #617085;
    font-size: 9px;
}

.setup-steps .is-current {
    color: #f4f8ff;
}

.setup-steps .is-current .setup-step-number {
    border-color: #2585ff;
    color: #fff;
    background: linear-gradient(145deg, #2585ff, #0964e9);
    box-shadow: 0 0 0 5px rgba(20, 118, 255, 0.1), 0 8px 20px rgba(5, 96, 219, 0.25);
}

.setup-steps .is-current .setup-step-copy small {
    color: #83b8f5;
}

.setup-steps .is-complete {
    color: #a9b8ca;
}

.setup-steps .is-complete .setup-step-number {
    border-color: rgba(84, 215, 106, 0.34);
    color: var(--green);
    background: rgba(84, 215, 106, 0.07);
}

.setup-steps .is-complete:not(:last-child)::after {
    background: rgba(84, 215, 106, 0.24);
}

.setup-security-note {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: auto;
    padding: 13px;
    border: 1px solid rgba(84, 215, 106, 0.15);
    border-radius: 9px;
    background: rgba(84, 215, 106, 0.035);
}

.setup-security-note > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--green);
    background: rgba(84, 215, 106, 0.09);
    font-size: 11px;
    font-weight: 900;
}

.setup-security-note p {
    margin: 0;
    color: #718198;
    font-size: 9px;
    line-height: 1.45;
}

.setup-security-note strong {
    display: block;
    margin-bottom: 2px;
    color: #aebdce;
    font-size: 9px;
}

.setup-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(38px, 4.5vw, 56px) clamp(34px, 5vw, 62px) 38px;
    background:
        linear-gradient(180deg, rgba(12, 27, 43, 0.42), transparent 35%),
        rgba(5, 14, 24, 0.76);
}

.setup-heading {
    margin-bottom: 30px;
}

.setup-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.setup-kicker span {
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.setup-kicker small {
    padding: 4px 8px;
    border: 1px solid rgba(126, 168, 218, 0.14);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(126, 168, 218, 0.04);
    font-size: 9px;
    font-weight: 800;
}

.setup-heading h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 46px);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.setup-heading p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #9daabc;
    font-size: 13px;
}

.setup-alert {
    margin: 0 0 22px;
    border-color: rgba(255, 93, 108, 0.34);
    color: #ffc7ce;
    background: rgba(255, 93, 108, 0.08);
    font-size: 11px;
}

.setup-form {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.setup-form-body {
    flex: 1;
}

.setup-requirements {
    margin-bottom: 22px;
}

.setup-requirement {
    height: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(126, 168, 218, 0.14);
    border-radius: 10px;
    background: rgba(3, 10, 18, 0.4);
    transition: border-color 160ms ease, background 160ms ease;
}

.setup-requirement:hover {
    border-color: rgba(76, 160, 255, 0.27);
    background: rgba(9, 24, 39, 0.68);
}

.setup-status-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 168, 218, 0.16);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
}

.setup-requirement.is-ok .setup-status-icon {
    border-color: rgba(84, 215, 106, 0.22);
    color: var(--green);
    background: rgba(84, 215, 106, 0.07);
}

.setup-requirement.is-error .setup-status-icon {
    border-color: rgba(255, 93, 108, 0.28);
    color: var(--red);
    background: rgba(255, 93, 108, 0.07);
}

.setup-requirement strong,
.setup-requirement small {
    display: block;
}

.setup-requirement strong {
    color: #c4cedb;
    font-size: 10px;
    font-weight: 800;
}

.setup-requirement small {
    margin-top: 2px;
    color: #718198;
    font-size: 9px;
}

.setup-info {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(76, 160, 255, 0.13);
    border-radius: 8px;
    color: #8493a7;
    background: rgba(20, 118, 255, 0.035);
}

.setup-info > span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #75b5ff;
    background: rgba(20, 118, 255, 0.11);
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
}

.setup-info p {
    margin: 1px 0 0;
    font-size: 10px;
    line-height: 1.55;
}

.setup-fieldset {
    min-width: 0;
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid rgba(126, 168, 218, 0.14);
    border-radius: 11px;
    background: rgba(3, 10, 18, 0.28);
}

.setup-fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 14px;
    padding: 0;
    color: #7ebaff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.setup-form .form-label {
    margin-bottom: 6px;
    color: #aebaca;
    font-size: 10px;
    font-weight: 750;
}

.setup-form .form-control {
    min-height: 46px;
    padding: 10px 13px;
    border-color: rgba(126, 168, 218, 0.16);
    border-radius: 7px;
    color: #f3f7fc;
    background: rgba(1, 7, 13, 0.62);
    font-size: 12px;
    box-shadow: none;
}

.setup-form .form-control:hover {
    border-color: rgba(76, 160, 255, 0.34);
}

.setup-form .form-control:focus {
    border-color: #2585ff;
    color: #fff;
    background: rgba(2, 9, 17, 0.9);
    box-shadow: 0 0 0 3px rgba(20, 118, 255, 0.12);
}

.setup-form .form-control::placeholder {
    color: #526177;
}

.setup-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.setup-summary-section {
    padding: 16px;
    border: 1px solid rgba(126, 168, 218, 0.14);
    border-radius: 10px;
    background: rgba(3, 10, 18, 0.34);
}

.setup-summary-section:first-child {
    grid-row: span 2;
}

.setup-summary-section h2 {
    margin: 0 0 10px;
    color: #79b7ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.setup-summary-section dl,
.setup-summary-section dl div {
    margin: 0;
}

.setup-summary-section dl div {
    display: grid;
    gap: 2px;
    padding: 7px 0;
    border-top: 1px solid rgba(126, 168, 218, 0.1);
    font-size: 10px;
}

.setup-summary-section dt {
    color: #6f7f94;
    font-weight: 500;
}

.setup-summary-section dd {
    color: #b8c4d2;
    overflow-wrap: anywhere;
}

.setup-final-confirm {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin: 16px 0 0;
    padding: 14px;
    border: 1px solid rgba(76, 160, 255, 0.2);
    border-radius: 9px;
    color: #9eacbd;
    background: rgba(20, 118, 255, 0.045);
    font-size: 10px;
    cursor: pointer;
}

.setup-final-confirm .form-check-input {
    margin: 2px 0 0;
    border-color: rgba(126, 168, 218, 0.35);
    background-color: rgba(1, 7, 13, 0.7);
    box-shadow: none;
}

.setup-final-confirm .form-check-input:checked {
    border-color: #2585ff;
    background-color: #1476ff;
}

.setup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(126, 168, 218, 0.11);
}

.setup-actions .button {
    min-height: 46px;
    border-radius: 8px;
    text-decoration: none;
}

.setup-actions .button-primary {
    min-width: 230px;
    gap: 14px;
}

.setup-actions .button-primary span {
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: transform 160ms ease;
}

.setup-actions .button-primary:hover span {
    transform: translateX(3px);
}

.setup-success-card {
    width: min(100%, 760px);
    min-height: 480px;
    display: grid;
    place-items: center;
    padding: clamp(36px, 7vw, 72px);
    border: 1px solid rgba(84, 215, 106, 0.25);
    border-radius: 18px;
    background: rgba(6, 15, 25, 0.96);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.46);
    text-align: center;
}

.setup-success-content {
    max-width: 560px;
}

.setup-success-content h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.setup-success-content p {
    color: #9eacbd;
}

.setup-success-content .button {
    min-height: 46px;
    margin-top: 12px;
    border-radius: 8px;
}

.setup-success-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(84, 215, 106, 0.32);
    border-radius: 18px;
    color: var(--green);
    background: rgba(84, 215, 106, 0.07);
    box-shadow: 0 0 0 8px rgba(84, 215, 106, 0.025);
    font-size: 27px;
}

.installer-layout .install-footer {
    flex: 0 0 auto;
    border-top-color: rgba(126, 168, 218, 0.1);
    background: rgba(3, 8, 14, 0.78);
    backdrop-filter: blur(12px);
}

.installer-layout .install-footer-inner {
    min-height: 68px;
}

@media (max-width: 920px) {
    .setup-shell {
        place-items: start center;
        padding: 20px;
        overflow: visible;
    }

    .setup-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .setup-sidebar {
        padding: 24px 26px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 168, 218, 0.12);
    }

    .setup-brand {
        margin-bottom: 18px;
    }

    .setup-progress {
        margin-bottom: 20px;
    }

    .setup-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .setup-steps li {
        min-height: 54px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 5px;
        text-align: center;
    }

    .setup-steps li:not(:last-child)::after {
        top: 16px;
        right: -50%;
        bottom: auto;
        left: 50%;
        width: 100%;
        height: 1px;
    }

    .setup-step-copy {
        padding: 0;
    }

    .setup-step-copy small {
        display: none;
    }

    .setup-security-note {
        display: none;
    }

    .setup-content {
        padding: 34px 30px 28px;
    }
}

@media (max-width: 575px) {
    .setup-shell {
        display: block;
        padding: 0;
    }

    .setup-shell::before,
    .setup-shell::after {
        display: none;
    }

    .setup-card {
        min-height: calc(100dvh - 104px);
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .setup-sidebar {
        padding: 20px 18px 16px;
    }

    .setup-wordmark {
        font-size: 21px;
    }

    .setup-badge {
        font-size: 7px;
    }

    .setup-progress-meta,
    .setup-progress {
        display: none;
    }

    .setup-step-number {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .setup-steps li:not(:last-child)::after {
        top: 15px;
    }

    .setup-step-copy strong {
        font-size: 7px;
    }

    .setup-content {
        padding: 28px 18px 22px;
    }

    .setup-kicker {
        margin-bottom: 10px;
    }

    .setup-heading {
        margin-bottom: 24px;
    }

    .setup-heading h1 {
        font-size: 32px;
    }

    .setup-heading p {
        font-size: 12px;
    }

    .setup-fieldset {
        padding: 16px;
    }

    .setup-summary {
        grid-template-columns: 1fr;
    }

    .setup-summary-section:first-child {
        grid-row: auto;
    }

    .setup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .setup-actions .button {
        width: 100%;
    }

    .installer-layout .install-footer-inner {
        gap: 8px;
        padding-block: 16px;
    }
}

.account-menu {
    position: relative;
    line-height: 1.15;
}

.account-trigger {
    min-height: 44px;
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(9, 23, 37, 0.74);
    cursor: pointer;
    list-style: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.account-trigger::-webkit-details-marker {
    display: none;
}

.account-trigger:hover,
.account-menu[open] .account-trigger {
    border-color: rgba(76, 160, 255, 0.4);
    background: #0a1a2a;
}

.account-trigger > img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid rgba(76, 160, 255, 0.35);
    border-radius: 50%;
    object-fit: cover;
}

.account-trigger-copy {
    min-width: 72px;
    display: grid;
    justify-items: end;
}

.account-trigger-copy strong {
    max-width: 130px;
    overflow: hidden;
    color: #eef5ff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger > i {
    width: 7px;
    height: 7px;
    border-right: 1px solid #6f8299;
    border-bottom: 1px solid #6f8299;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.account-menu[open] .account-trigger > i {
    transform: rotate(225deg) translate(-1px, -1px);
}

.account-dropdown {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    right: 0;
    width: 270px;
    overflow: hidden;
    border: 1px solid rgba(76, 160, 255, 0.3);
    border-radius: 6px;
    background: #07121e;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.account-dropdown-head {
    display: grid;
    padding: 14px 15px;
    border-bottom: 1px solid var(--line-strong);
    background: #091827;
}

.account-dropdown-head strong {
    color: #edf5ff;
    font-size: 12px;
}

.account-dropdown-head small {
    margin-top: 2px;
    color: var(--blue-light);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.account-dropdown > a,
.account-dropdown form button {
    width: 100%;
    display: grid;
    justify-items: start;
    padding: 12px 15px;
    border: 0;
    border-bottom: 1px solid rgba(126, 168, 218, 0.09);
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.account-dropdown > a:hover,
.account-dropdown form button:hover {
    background: rgba(20, 118, 255, 0.07);
}

.account-dropdown > a strong,
.account-dropdown form button strong {
    color: #b9c7d8;
    font-size: 10px;
}

.account-dropdown > a small,
.account-dropdown form button small {
    margin-top: 2px;
    color: #65758a;
    font-size: 8px;
}

.account-dropdown form {
    margin: 0;
}

.account-dropdown form button {
    border-bottom: 0;
}

.account-dropdown form button strong {
    color: #ff9daa;
}

@media (max-width: 575px) {
    .account-trigger {
        padding-right: 7px;
    }

    .account-trigger-copy {
        display: none;
    }

    .account-dropdown {
        width: min(270px, calc(100vw - 24px));
    }
}

.auth-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    --bs-body-color: var(--text);
    --bs-body-bg: transparent;
    background:
        radial-gradient(circle at 12% 15%, rgba(20, 118, 255, 0.11), transparent 27rem),
        radial-gradient(circle at 88% 80%, rgba(20, 118, 255, 0.07), transparent 25rem),
        linear-gradient(145deg, #040a12, #07121e 52%, #050b13);
}

.auth-layout #main-content {
    min-height: 0;
    display: flex;
    flex: 1;
}

.auth-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    display: grid;
    flex: 1;
    place-items: center;
    padding: clamp(34px, 6vh, 76px) 24px;
    overflow: hidden;
}

.auth-shell::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(91, 151, 214, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 151, 214, 0.12) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle, #000, transparent 72%);
    content: "";
}

.auth-card {
    width: min(100%, 980px);
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(285px, 340px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(72, 146, 238, 0.28);
    border-radius: 18px;
    background: rgba(6, 15, 25, 0.96);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px);
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 34px 30px;
    overflow: hidden;
    border-right: 1px solid rgba(126, 168, 218, 0.12);
    background:
        radial-gradient(circle at 20% 0%, rgba(32, 126, 255, 0.22), transparent 20rem),
        linear-gradient(165deg, rgba(12, 34, 56, 0.98), rgba(6, 18, 31, 0.98));
}

.auth-aside::after {
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(76, 160, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(76, 160, 255, 0.025),
        0 0 0 68px rgba(76, 160, 255, 0.018);
    content: "";
}

.auth-wordmark {
    position: relative;
    z-index: 1;
    width: fit-content;
    color: #fff;
    font-size: 25px;
    font-style: italic;
    font-weight: 950;
    letter-spacing: -1.6px;
    line-height: 1;
}

.auth-wordmark strong {
    color: var(--blue-light);
}

.auth-aside-copy {
    position: relative;
    z-index: 1;
    margin: 72px 0 34px;
}

.auth-aside-kicker {
    color: #6faef6;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-aside-copy h2 {
    max-width: 250px;
    margin: 12px 0;
    color: #f5f8fc;
    font-size: clamp(29px, 3vw, 38px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.auth-aside-copy p {
    max-width: 250px;
    margin: 0;
    color: #8d9caf;
    font-size: 11px;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.auth-benefits li > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(84, 215, 106, 0.18);
    border-radius: 8px;
    color: var(--green);
    background: rgba(84, 215, 106, 0.055);
    font-size: 9px;
}

.auth-benefits p,
.auth-benefits strong,
.auth-benefits small {
    display: block;
    margin: 0;
}

.auth-benefits strong {
    color: #b8c5d5;
    font-size: 9px;
}

.auth-benefits small {
    color: #69798f;
    font-size: 8px;
}

.auth-aside-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #5f7086;
    font-size: 8px;
}

.auth-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 62px);
    background:
        linear-gradient(180deg, rgba(12, 27, 43, 0.36), transparent 34%),
        rgba(5, 14, 24, 0.72);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 4vw, 46px);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.auth-heading p {
    max-width: 540px;
    margin: 0;
    color: #96a4b6;
    font-size: 12px;
}

.auth-form .form-label,
.auth-label-row .form-label {
    margin-bottom: 6px;
    color: #adb9c9;
    font-size: 10px;
    font-weight: 750;
}

.auth-form .form-control {
    min-height: 47px;
    padding: 10px 13px;
    border-color: rgba(126, 168, 218, 0.17);
    border-radius: 8px;
    color: #f3f7fc;
    background: rgba(1, 7, 13, 0.64);
    font-size: 12px;
    box-shadow: none;
}

.auth-form .form-control:hover {
    border-color: rgba(76, 160, 255, 0.34);
}

.auth-form .form-control:focus {
    border-color: #2585ff;
    color: #fff;
    background: rgba(2, 9, 17, 0.94);
    box-shadow: 0 0 0 3px rgba(20, 118, 255, 0.12);
}

.auth-form .form-control::placeholder {
    color: #536278;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-label-row a,
.auth-switch a {
    color: #65aaff;
    font-size: 10px;
    font-weight: 750;
}

.auth-label-row a:hover,
.auth-switch a:hover {
    color: #9bcaff;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    gap: 13px;
    margin-top: 22px;
    border-radius: 8px;
}

.auth-submit span {
    font-size: 17px;
    font-weight: 400;
    transition: transform 160ms ease;
}

.auth-submit:hover span {
    transform: translateX(3px);
}

.auth-switch {
    margin: 18px 0 0;
    color: #77869a;
    font-size: 10px;
    text-align: center;
}

.auth-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 18px 0 0;
    padding: 13px;
    border: 1px solid rgba(126, 168, 218, 0.13);
    border-radius: 8px;
    color: #8897aa;
    background: rgba(126, 168, 218, 0.025);
    font-size: 9px;
    cursor: pointer;
}

.auth-consent .form-check-input {
    margin: 2px 0 0;
    border-color: rgba(126, 168, 218, 0.35);
    background-color: rgba(1, 7, 13, 0.7);
    box-shadow: none;
}

.auth-consent .form-check-input:checked {
    border-color: #2585ff;
    background-color: #1476ff;
}

.auth-alert {
    margin: 0 0 22px;
    font-size: 10px;
}

.auth-alert.alert-danger {
    border-color: rgba(255, 93, 108, 0.3);
    color: #ffc7ce;
    background: rgba(255, 93, 108, 0.075);
}

.auth-alert.alert-success {
    border-color: rgba(84, 215, 106, 0.24);
    color: #bdf5c7;
    background: rgba(84, 215, 106, 0.065);
}

.auth-result {
    display: grid;
    justify-items: start;
}

.auth-result > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(84, 215, 106, 0.24);
    border-radius: 13px;
    color: var(--green);
    background: rgba(84, 215, 106, 0.06);
    font-size: 18px;
    font-weight: 900;
}

.auth-result h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.auth-result p {
    margin: 0 0 22px;
    color: #91a0b3;
    font-size: 11px;
}

.auth-result .button {
    min-height: 44px;
    border-radius: 8px;
}

.auth-result-error > span {
    border-color: rgba(255, 180, 72, 0.24);
    color: #ffb448;
    background: rgba(255, 180, 72, 0.06);
}

.auth-account-chip {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(76, 160, 255, 0.14);
    border-radius: 8px;
    color: #8494a8;
    background: rgba(20, 118, 255, 0.035);
    font-size: 9px;
}

.auth-account-chip strong {
    margin-left: 4px;
    color: #bad7f8;
}

@media (max-width: 860px) {
    .auth-card {
        width: min(100%, 660px);
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 190px;
        padding: 28px;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 168, 218, 0.12);
    }

    .auth-aside-copy {
        margin: 36px 0 0;
    }

    .auth-aside-copy h2 {
        max-width: 420px;
        font-size: 31px;
    }

    .auth-aside-copy p {
        max-width: 480px;
    }

    .auth-benefits,
    .auth-aside-footer {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-shell {
        display: block;
        padding: 0;
    }

    .auth-shell::before {
        display: none;
    }

    .auth-card {
        min-height: calc(100dvh - 132px);
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .auth-aside {
        min-height: 154px;
        padding: 22px 18px;
    }

    .auth-aside-copy {
        margin-top: 28px;
    }

    .auth-aside-kicker,
    .auth-aside-copy p {
        display: none;
    }

    .auth-aside-copy h2 {
        margin: 0;
        font-size: 28px;
    }

    .auth-content {
        padding: 30px 18px;
    }

    .auth-heading h1 {
        font-size: 34px;
    }
}

/* Auth pages deliberately follow the portal panels instead of a landing-page layout. */
.auth-layout {
    background: #050c14;
}

.auth-shell {
    place-items: start center;
    padding: clamp(34px, 6vw, 64px) 18px;
    overflow: visible;
}

.auth-shell::before {
    display: none;
}

.auth-card {
    width: min(100%, 500px);
    min-height: 0;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--blue);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
}

.auth-card-register {
    width: min(100%, 800px);
}

.auth-content {
    display: block;
    padding: clamp(26px, 4vw, 38px);
    background: transparent;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading h1 {
    margin: 6px 0 7px;
    font-size: clamp(27px, 4vw, 34px);
    letter-spacing: -0.025em;
}

.auth-heading p {
    font-size: 11px;
}

.auth-form .form-control {
    min-height: 44px;
    border-radius: 4px;
    background: #050c14;
}

.auth-submit {
    min-height: 44px;
    margin-top: 18px;
    border-radius: 4px;
}

.auth-consent,
.auth-result .button {
    border-radius: 4px;
}

.auth-card-register .auth-content {
    padding: 0;
}

.auth-card-register .auth-heading {
    margin: 0;
    padding: 30px 36px 25px;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 38, 59, 0.42);
}

.auth-card-register .auth-alert {
    margin: 24px 36px 0;
}

/* Registration keeps the compact row-based structure familiar from forum CMSs. */
.auth-card-register {
    width: min(100%, 760px);
}

.registration-form {
    padding: 0;
}

.registration-block {
    margin: 0;
}

.registration-block h2 {
    margin: 0;
    padding: 10px 36px;
    border-bottom: 1px solid var(--line);
    color: #a9c8ef;
    background: #091725;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.registration-block + .registration-block {
    border-top: 1px solid var(--line-strong);
}

.registration-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.35fr);
    gap: 28px;
    align-items: center;
    padding: 15px 36px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.registration-label label,
.registration-label small {
    display: block;
}

.registration-label label {
    color: #b8c4d3;
    font-size: 10px;
    font-weight: 800;
}

.registration-label small {
    margin-top: 3px;
    color: #65758a;
    font-size: 8px;
    line-height: 1.45;
}

.registration-bottom {
    padding: 20px 36px 26px;
    background: rgba(4, 11, 19, 0.42);
}

.registration-consent {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #8493a7;
    font-size: 9px;
    cursor: pointer;
}

.registration-consent .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    border-color: rgba(126, 168, 218, 0.35);
    background-color: #050c14;
    box-shadow: none;
}

.registration-consent .form-check-input:checked {
    border-color: var(--blue);
    background-color: var(--blue);
}

.registration-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
}

.registration-actions > a {
    color: var(--muted);
    font-size: 10px;
}

.registration-actions > a:hover {
    color: var(--blue-light);
}

.registration-actions .button {
    min-height: 42px;
    padding-inline: 24px;
}

@media (max-width: 650px) {
    .registration-block h2,
    .registration-row,
    .registration-bottom {
        padding-inline: 18px;
    }

    .registration-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .auth-shell {
        display: grid;
        padding: 24px 12px 36px;
    }

    .auth-card {
        min-height: 0;
        border-width: 1px;
        border-top-width: 2px;
        border-radius: 5px;
    }

    .auth-content {
        padding: 24px 18px;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-card-register .auth-heading {
        padding: 24px 18px 20px;
    }

    .auth-card-register .auth-alert {
        margin: 18px 18px 0;
    }

    .registration-actions {
        align-items: center;
        flex-direction: row;
        text-align: center;
    }
}

/* User profiles */
.profile-page {
    min-height: 66vh;
    padding: 28px 0 64px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 118, 255, 0.055), transparent 34rem),
        #050c14;
}

.profile-container {
    max-width: 1060px;
}

.profile-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 10px;
}

.profile-breadcrumb a:hover {
    color: var(--blue-light);
}

.profile-notice,
.profile-errors {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(84, 215, 106, 0.22);
    border-radius: 4px;
    color: #bdf5c7;
    background: rgba(84, 215, 106, 0.06);
    font-size: 10px;
}

.profile-hero,
.profile-panel,
.profile-settings {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--panel);
}

.profile-cover {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #07111d;
}

.profile-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 10, 17, 0.04), rgba(4, 10, 17, 0.82));
    content: "";
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity {
    position: relative;
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    margin-top: -58px;
    padding: 0 28px 26px;
}

.profile-avatar {
    position: relative;
    z-index: 1;
    width: 136px;
    height: 136px;
    border: 4px solid var(--panel);
    border-radius: 50%;
    background: #07111d;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.profile-name {
    position: relative;
    z-index: 1;
    padding-bottom: 5px;
}

.profile-name h1 {
    margin: 5px 0 2px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.035em;
}

.profile-name p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-badges span {
    padding: 4px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: #8697ac;
    background: rgba(4, 12, 21, 0.7);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-badges .profile-role {
    border-color: rgba(38, 133, 255, 0.3);
    color: #85bdff;
    background: rgba(20, 118, 255, 0.08);
}

.profile-edit-button {
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 16px;
    margin-top: 16px;
}

.profile-panel-heading {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: #091725;
}

.profile-panel-heading h2 {
    margin: 0;
    color: #b5c8df;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.profile-panel-body {
    min-height: 180px;
    padding: 22px;
}

.profile-panel-body p {
    margin: 0;
    color: #9aa9bb;
    font-size: 12px;
    line-height: 1.75;
}

.profile-panel-body .profile-empty {
    color: #617187;
    font-style: italic;
}

.profile-facts {
    margin: 0;
}

.profile-facts > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.profile-facts > div:last-child {
    border-bottom: 0;
}

.profile-facts dt,
.profile-facts dd {
    margin: 0;
    font-size: 9px;
}

.profile-facts dt {
    color: #63758b;
}

.profile-facts dd {
    min-width: 0;
    color: #aebbd0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-facts dd img {
    margin-right: 4px;
    image-rendering: auto;
}

.profile-facts dd a {
    color: var(--blue-light);
}

.profile-settings {
    max-width: 880px;
    margin-inline: auto;
}

.profile-settings-header {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 26px 30px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(17, 38, 59, 0.42);
}

.profile-settings-header img {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border: 3px solid rgba(76, 160, 255, 0.24);
    border-radius: 50%;
    object-fit: cover;
}

.profile-settings-header h1 {
    margin: 3px 0;
    font-size: 28px;
}

.profile-settings-header p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.profile-errors {
    margin: 20px 30px 0;
    border-color: rgba(255, 93, 108, 0.28);
    color: #ffc7ce;
    background: rgba(255, 93, 108, 0.07);
}

.profile-errors ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.profile-form-section {
    margin: 0;
    padding: 24px 30px 28px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
}

.profile-form-section > legend {
    width: auto;
    float: none;
    margin: 0 0 3px;
    padding: 0;
    color: #b5c8df;
    font-size: 11px;
    font-weight: 850;
}

.profile-form-section > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 9px;
}

.profile-cover-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.profile-cover-options label {
    min-width: 0;
    cursor: pointer;
}

.profile-cover-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-cover-options span {
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #07111d;
}

.profile-cover-options img {
    width: 100%;
    height: 45px;
    display: block;
    object-fit: cover;
    opacity: 0.72;
}

.profile-cover-options strong {
    display: block;
    padding: 6px;
    color: #718197;
    font-size: 8px;
    text-align: center;
}

.profile-cover-options input:checked + span {
    border-color: var(--blue);
}

.profile-cover-options input:checked + span img {
    opacity: 1;
}

.profile-cover-options input:checked + span strong {
    color: #b9d8ff;
}

.profile-cover-options input:focus-visible + span {
    outline: 3px solid rgba(76, 160, 255, 0.5);
    outline-offset: 2px;
}

.profile-form-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(280px, 1.4fr);
    gap: 26px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.profile-form-row:last-child {
    border-bottom: 0;
}

.profile-form-row-top {
    align-items: start;
}

.profile-form-row label,
.profile-form-row small {
    display: block;
}

.profile-form-row label {
    color: #b5c0d0;
    font-size: 10px;
    font-weight: 800;
}

.profile-form-row small {
    margin-top: 3px;
    color: #65758a;
    font-size: 8px;
}

.profile-form-row input,
.profile-form-row select,
.profile-form-row textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid rgba(126, 168, 218, 0.2);
    border-radius: 4px;
    color: var(--text);
    background: #050c14;
    font: inherit;
    font-size: 11px;
    box-shadow: none;
}

.profile-form-row textarea {
    min-height: 130px;
    resize: vertical;
}

.profile-form-row input:focus,
.profile-form-row select:focus,
.profile-form-row textarea:focus {
    border-color: var(--blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(20, 118, 255, 0.1);
}

.profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 20px 30px;
    background: rgba(4, 11, 19, 0.44);
}

.profile-form-actions > a {
    color: var(--muted);
    font-size: 10px;
}

.profile-form-actions > a:hover {
    color: var(--blue-light);
}

@media (max-width: 760px) {
    .profile-identity {
        grid-template-columns: 108px minmax(0, 1fr);
        margin-top: -44px;
    }

    .profile-avatar {
        width: 108px;
        height: 108px;
    }

    .profile-edit-button {
        grid-column: 2;
        width: fit-content;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-cover-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .profile-page {
        padding-top: 16px;
    }

    .profile-cover {
        height: 150px;
    }

    .profile-identity {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        margin-top: -34px;
        padding: 0 16px 20px;
    }

    .profile-avatar {
        width: 82px;
        height: 82px;
        border-width: 3px;
    }

    .profile-name h1 {
        font-size: 27px;
    }

    .profile-badges span {
        font-size: 7px;
    }

    .profile-settings-header,
    .profile-form-section,
    .profile-form-actions {
        padding-inline: 18px;
    }

    .profile-settings-header img {
        width: 58px;
        height: 58px;
    }

    .profile-cover-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-form-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

/* Compact phpBB-inspired public profile and groups */
.profile-view-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.profile-view-heading h1 {
    margin: 4px 0 0;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 650;
}

.profile-view-heading h1 strong {
    color: var(--blue-light);
}

.profile-overview {
    display: block;
}

.profile-profile-banner {
    position: relative;
    height: 176px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-strong);
    background: #07111d;
}

.profile-profile-banner::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 9, 16, 0.83), rgba(3, 9, 16, 0.25) 58%, rgba(3, 9, 16, 0.62)),
        linear-gradient(0deg, rgba(3, 9, 16, 0.86), transparent 72%);
    content: "";
}

.profile-profile-banner > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
}

.profile-banner-identity {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 18px;
    left: 24px;
    display: flex;
    gap: 17px;
    align-items: end;
}

.profile-user-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border: 3px solid rgba(139, 195, 255, 0.55);
    border-radius: 5px;
    background: #07111d;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.36);
}

.profile-banner-identity h2 {
    margin: 0 0 8px;
    color: #f2f7ff;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.profile-primary-group {
    display: inline-flex;
    padding: 4px 10px;
    border: 1px solid rgba(38, 133, 255, 0.32);
    border-radius: 3px;
    color: #9ccaff;
    background: rgba(20, 118, 255, 0.1);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.profile-main-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 8px 22px;
}

.profile-main-details > div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 58px;
    padding: 9px 18px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.09);
}

.profile-main-details > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.profile-main-details > div:nth-child(odd) {
    border-right: 1px solid rgba(126, 168, 218, 0.09);
}

.profile-main-details dt,
.profile-main-details dd {
    margin: 0;
    font-size: 10px;
}

.profile-main-details dt {
    color: #67798f;
}

.profile-main-details dd {
    min-width: 0;
    color: #aebcd0;
}

.profile-main-details dd > strong,
.profile-main-details dd > a {
    color: var(--blue-light);
}

.profile-main-details dd > img {
    margin-left: 5px;
}

.profile-group-menu {
    position: relative;
    width: min(100%, 310px);
}

.profile-group-menu summary {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: #b5c5d8;
    background: #050d16;
    cursor: pointer;
    list-style: none;
}

.profile-group-menu summary::-webkit-details-marker {
    display: none;
}

.profile-group-menu summary > span {
    min-width: 20px;
    padding: 2px 5px;
    border-radius: 8px;
    color: #94c5ff;
    background: rgba(20, 118, 255, 0.12);
    font-size: 8px;
    text-align: center;
}

.profile-group-menu > div {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid rgba(76, 160, 255, 0.3);
    border-radius: 4px;
    background: #07121e;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.profile-group-menu > div a {
    display: grid;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.profile-group-menu > div a:last-child {
    border-bottom: 0;
}

.profile-group-menu > div a:hover {
    background: rgba(20, 118, 255, 0.07);
}

.profile-group-menu > div strong {
    color: #b9c8da;
    font-size: 9px;
}

.profile-group-menu > div small {
    margin-top: 2px;
    color: #64768b;
    font-size: 7px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.profile-compact-list {
    margin: 0;
}

.profile-compact-list > div:not(.profile-list-empty) {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.profile-compact-list > div:last-child {
    border-bottom: 0;
}

.profile-compact-list dt,
.profile-compact-list dd {
    margin: 0;
    font-size: 9px;
}

.profile-compact-list dt {
    color: #687a90;
}

.profile-compact-list dd {
    color: #aebdd0;
}

.profile-compact-list dd a {
    color: var(--blue-light);
}

.profile-list-empty,
.group-empty {
    padding: 22px;
    color: #63758a;
    font-size: 10px;
    font-style: italic;
}

.profile-about-panel {
    margin-top: 16px;
}

.profile-about-panel .profile-panel-body {
    min-height: 110px;
}

.group-page-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.group-page-heading h1 {
    margin: 5px 0 7px;
    font-size: clamp(28px, 4vw, 40px);
}

.group-page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.group-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.group-directory-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--panel);
}

.group-directory-card:hover {
    border-color: rgba(76, 160, 255, 0.36);
    background: #0a1826;
}

.group-directory-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76, 160, 255, 0.28);
    border-radius: 5px;
    color: #8ec1ff;
    background: rgba(20, 118, 255, 0.08);
    font-size: 16px;
    font-weight: 900;
}

.group-directory-card.is-staff .group-directory-mark {
    border-color: rgba(255, 180, 72, 0.3);
    color: #ffc16a;
    background: rgba(255, 180, 72, 0.07);
}

.group-directory-card > span:nth-child(2),
.group-member-count {
    display: grid;
}

.group-directory-card > span:nth-child(2) strong {
    color: #becbdd;
    font-size: 11px;
}

.group-directory-card small {
    margin-top: 2px;
    color: #65768b;
    font-size: 8px;
}

.group-member-count {
    justify-items: end;
}

.group-member-count strong {
    color: var(--blue-light);
    font-size: 16px;
}

.group-detail-heading {
    max-width: none;
    display: flex;
    gap: 14px;
    align-items: center;
}

.group-detail-heading h1 {
    margin-block: 2px;
}

.group-members-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(126, 168, 218, 0.08);
}

.group-members-list a:last-child {
    border-bottom: 0;
}

.group-members-list a:hover {
    background: rgba(20, 118, 255, 0.05);
}

.group-members-list img {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    object-fit: cover;
}

.group-members-list a > span {
    display: grid;
}

.group-members-list a > span strong {
    color: #b9c8da;
    font-size: 10px;
}

.group-members-list a > span small {
    margin-top: 2px;
    color: #65778c;
    font-size: 8px;
}

.group-members-list em {
    padding: 3px 6px;
    border: 1px solid rgba(76, 160, 255, 0.22);
    border-radius: 3px;
    color: #86bfff;
    font-size: 7px;
    font-style: normal;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .profile-profile-banner {
        height: 158px;
    }

    .profile-main-details {
        grid-template-columns: 1fr;
        padding-inline: 16px;
    }

    .profile-main-details > div,
    .profile-main-details > div:nth-last-child(-n + 2) {
        grid-template-columns: 125px minmax(0, 1fr);
        border-right: 0;
        border-bottom: 1px solid rgba(126, 168, 218, 0.09);
    }

    .profile-main-details > div:last-child {
        border-bottom: 0;
    }

    .profile-info-grid,
    .group-directory {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .profile-view-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-view-heading .button {
        width: fit-content;
    }

    .profile-profile-banner {
        height: 190px;
    }

    .profile-banner-identity {
        right: 16px;
        bottom: 14px;
        left: 16px;
        gap: 13px;
    }

    .profile-user-avatar {
        width: 84px;
        height: 84px;
    }

    .profile-banner-identity h2 {
        font-size: 21px;
    }

    .profile-main-details > div {
        grid-template-columns: 1fr;
        gap: 5px;
        align-items: start;
    }

    .profile-group-menu {
        width: 100%;
    }

    .profile-compact-list > div:not(.profile-list-empty) {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .group-members-list em {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* News archive and discussions */
.news-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -10px 0 22px;
}

.news-category-nav a {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #8192a8;
    background: rgba(8, 18, 30, 0.72);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-category-nav a:hover,
.news-category-nav a.is-active {
    border-color: var(--line-strong);
    color: #e8f3ff;
    background: rgba(20, 118, 255, 0.12);
}

.news-empty,
.news-comments-empty {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.article-cover {
    width: calc(100% + clamp(48px, 10vw, 110px));
    max-width: none;
    height: clamp(210px, 34vw, 370px);
    margin: calc(clamp(24px, 5vw, 55px) * -1) calc(clamp(24px, 5vw, 55px) * -1) 30px;
    border-bottom: 1px solid var(--line);
    object-fit: cover;
}

.article-body,
.user-generated-content {
    color: #b8c6d8;
    line-height: 1.8;
}

.article-body {
    margin: 30px 0;
}

.article-body p,
.user-generated-content p,
.user-generated-content ul,
.user-generated-content ol,
.user-generated-content blockquote,
.user-generated-content pre {
    margin: 0 0 1em;
}

.user-generated-content h2,
.user-generated-content h3,
.user-generated-content h4 {
    margin: 1.25em 0 0.55em;
    color: #eef6ff;
    line-height: 1.25;
}

.user-generated-content a {
    color: var(--blue-light);
    text-decoration: underline;
}

.user-generated-content blockquote {
    padding: 10px 14px;
    border-left: 3px solid var(--blue);
    background: rgba(20, 118, 255, 0.07);
    color: #9db1c9;
}

.user-generated-content code,
.user-generated-content pre {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #040b12;
    color: #acd5ff;
    font-family: Consolas, "Courier New", monospace;
}

.user-generated-content code { padding: 2px 5px; }
.user-generated-content pre { overflow: auto; padding: 13px; }

.user-generated-content table {
    width: 100%;
    margin-bottom: 1em;
    border-spacing: 0;
    border-collapse: collapse;
}

.user-generated-content th,
.user-generated-content td {
    padding: 7px 9px;
    border: 1px solid #29425c;
    text-align: left;
}

.user-generated-content th { background: #102238; color: #ecf5ff; }
.user-generated-content .ugc-align-left { text-align: left; }
.user-generated-content .ugc-align-center { text-align: center; }
.user-generated-content .ugc-align-right { text-align: right; }
.user-generated-content .ugc-align-justify { text-align: justify; }
.user-generated-content .ugc-color-blue { color: #4ca0ff; }
.user-generated-content .ugc-color-green { color: #54d76a; }
.user-generated-content .ugc-color-orange { color: #ffb454; }
.user-generated-content .ugc-color-red { color: #ff5d6c; }
.user-generated-content .ugc-color-light { color: #f5f8fc; }
.user-generated-content .ugc-color-muted { color: #8f9bab; }
.user-generated-content .ugc-bg-blue { background-color: rgba(76, 160, 255, 0.2); }
.user-generated-content .ugc-bg-green { background-color: rgba(84, 215, 106, 0.2); }
.user-generated-content .ugc-bg-orange { background-color: rgba(255, 180, 84, 0.2); }
.user-generated-content .ugc-bg-red { background-color: rgba(255, 93, 108, 0.2); }
.user-generated-content .ugc-bg-light { background-color: rgba(245, 248, 252, 0.18); }
.user-generated-content .ugc-bg-muted { background-color: rgba(143, 155, 171, 0.18); }

.news-comments {
    margin-top: 16px;
}

.news-comment-count {
    min-width: 25px;
    padding: 2px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    color: var(--blue-light);
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}

.news-comment-flash,
.forum-flash {
    margin: 16px;
    padding: 10px 13px;
    border: 1px solid rgba(84, 215, 106, 0.3);
    border-radius: 4px;
    color: #95eaa4;
    background: rgba(84, 215, 106, 0.07);
    font-size: 11px;
}

.news-comment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}

.news-comment > img {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    object-fit: cover;
}

.news-comment header {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.news-comment header strong { font-size: 12px; }
.news-comment header span { color: var(--blue-light); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.news-comment header time { margin-left: auto; color: #60738a; font-size: 9px; }
.news-comment p { margin: 7px 0 0; color: #aab9cb; font-size: 12px; }

.news-comment-form,
.news-comment-login {
    padding: 18px;
}

.news-comment-login {
    color: var(--muted);
    font-size: 11px;
}

.news-comment-login a { color: var(--blue-light); }
.news-comment-form label { display: block; margin-bottom: 7px; color: #92a6bd; font-size: 10px; }

.news-comment-form textarea,
.forum-compose input,
.forum-compose textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    outline: 0;
    color: #dce8f6;
    background: #06101a;
    font: inherit;
}

.news-comment-form textarea,
.forum-compose textarea { resize: vertical; padding: 12px 14px; }
.news-comment-form textarea:focus,
.forum-compose input:focus,
.forum-compose textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 118, 255, 0.1); }
.news-comment-form .button { margin-top: 10px; }
.news-comment-errors,
.forum-form-errors { margin-bottom: 15px; color: #ff9da6; font-size: 10px; }

/* Forum */
.forum-page {
    max-width: 1180px;
}

.forum-heading {
    max-width: 760px;
}

.forum-directory {
    display: grid;
    gap: 18px;
}

.forum-category-head {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 118, 255, 0.04);
}

.forum-category-head h2 {
    margin: 0;
    font-size: 16px;
}

.forum-category-head p {
    max-width: 520px;
    margin: 0;
    color: #6f8197;
    font-size: 10px;
    text-align: right;
}

.forum-board-row {
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px minmax(240px, 1fr) 170px minmax(220px, 0.72fr);
    gap: 16px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.forum-board-row:last-child { border-bottom: 0; }
.forum-board-row:hover { background: rgba(20, 118, 255, 0.035); }

.forum-board-icon,
.forum-topic-icon,
.forum-latest-icon {
    position: relative;
    display: inline-block;
    border: 1px solid rgba(76, 160, 255, 0.35);
    border-radius: 50%;
    background: rgba(20, 118, 255, 0.1);
}

.forum-board-icon { width: 40px; height: 40px; }
.forum-board-icon::before,
.forum-topic-icon::before,
.forum-latest-icon::before {
    position: absolute;
    border: 1px solid #62adff;
    border-radius: 3px;
    content: "";
}

.forum-board-icon::before { inset: 10px 9px 12px; }
.forum-board-icon::after,
.forum-topic-icon::after,
.forum-latest-icon::after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-right: 1px solid #62adff;
    border-bottom: 1px solid #62adff;
    transform: skewY(-30deg);
    content: "";
}

.forum-board-icon::after { right: 10px; bottom: 8px; }
.forum-board-icon.is-locked,
.forum-topic-icon.is-locked { border-color: rgba(255, 93, 108, 0.32); background: rgba(255, 93, 108, 0.07); filter: grayscale(0.7); }

.forum-board-copy h3 { margin: 0 0 3px; font-size: 14px; }
.forum-board-copy h3 a:hover { color: var(--blue-light); }
.forum-board-copy p { margin: 0; color: #71849a; font-size: 10px; }

.forum-board-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 0;
}

.forum-board-stats div { display: grid; justify-items: center; }
.forum-board-stats dt { color: #65768b; font-size: 8px; text-transform: uppercase; }
.forum-board-stats dd { margin: 0; color: #b7c8dc; font-size: 14px; font-weight: 800; }

.forum-board-last { min-width: 0; display: grid; }
.forum-board-last small { color: #60738a; font-size: 8px; text-transform: uppercase; }
.forum-board-last a { overflow: hidden; color: #a9bdd3; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.forum-board-last a:hover { color: var(--blue-light); }
.forum-board-last span { color: #65778d; font-size: 8px; }
.forum-empty-note { font-style: italic; }

.forum-legend {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    color: #62758b;
    font-size: 9px;
}

.forum-legend span { display: flex; gap: 7px; align-items: center; }
.forum-legend .forum-board-icon { width: 20px; height: 20px; }
.forum-legend .forum-board-icon::before { inset: 5px; }
.forum-legend .forum-board-icon::after { right: 4px; bottom: 3px; width: 3px; height: 3px; }

.forum-view-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 10px 0 26px;
}

.forum-view-heading h1 { margin: 3px 0 4px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; }
.forum-view-heading p { margin: 0; color: var(--muted); }

.forum-topic-columns,
.forum-topic-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 80px 80px minmax(170px, 0.45fr);
    gap: 12px;
    align-items: center;
}

.forum-topic-columns {
    min-height: 38px;
    padding: 0 18px 0 72px;
    border-bottom: 1px solid var(--line);
    color: #60758e;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.forum-topic-columns span:nth-child(2),
.forum-topic-columns span:nth-child(3) { text-align: center; }

.forum-topic-row {
    position: relative;
    min-height: 74px;
    padding: 12px 18px 12px 72px;
    border-bottom: 1px solid var(--line);
}

.forum-topic-row:last-child { border-bottom: 0; }
.forum-topic-row:hover { background: rgba(20, 118, 255, 0.035); }
.forum-topic-icon { position: absolute; left: 22px; width: 30px; height: 30px; }
.forum-topic-icon::before { inset: 7px 6px 9px; }
.forum-topic-icon::after { right: 6px; bottom: 5px; width: 4px; height: 4px; }
.forum-topic-copy { min-width: 0; }
.forum-topic-copy h2 { margin: 0 0 2px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic-copy h2 a:hover { color: var(--blue-light); }
.forum-topic-copy p { margin: 0; color: #60748b; font-size: 8px; }
.forum-topic-copy p strong { color: #6dacfb; text-transform: uppercase; }
.forum-topic-number { color: #9dafc5; font-size: 11px; text-align: center; }
.forum-topic-last { display: grid; }
.forum-topic-last time { color: #a3b5ca; font-size: 9px; }
.forum-topic-last small { color: #61758d; font-size: 8px; }
.forum-topics-empty { display: grid; justify-items: center; padding: 46px 20px; color: #8497ad; }
.forum-topics-empty span { margin-top: 3px; color: #60748b; font-size: 10px; }
.forum-back-link { display: inline-block; margin-top: 16px; color: var(--blue-light); font-size: 10px; font-weight: 800; }

.forum-topic-heading-actions {
    display: flex;
    gap: 8px;
}

.forum-moderation-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin: -10px 0 14px;
}

.forum-moderation-bar > span {
    margin-right: auto;
    color: #60758e;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.forum-moderation-bar button,
.forum-moderation-bar select,
.forum-post-actions a,
.forum-post-actions button {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: #9dcaff;
    background: rgba(20, 118, 255, 0.07);
    font: inherit;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.forum-moderation-bar select { min-width: 150px; color: #adbed2; background: #071421; }
.forum-moderation-bar button:hover,
.forum-post-actions a:hover,
.forum-post-actions button:hover { color: #fff; background: rgba(20, 118, 255, 0.16); }
.forum-moderation-bar button.is-danger { border-color: rgba(255, 93, 108, 0.3); color: #ff9ba5; background: rgba(255, 93, 108, 0.06); }

.forum-post-list { display: grid; gap: 12px; }
.forum-post { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: visible; }
.forum-post-author { padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(4, 12, 20, 0.38); text-align: center; }
.forum-post-author img { display: block; width: 82px; height: 82px; margin: 0 auto 9px; border: 1px solid var(--line-strong); border-radius: 5px; object-fit: cover; }
.forum-post-author > strong { display: block; font-size: 12px; }
.forum-author-name { display: block; color: #e9f3ff; font-size: 12px; font-weight: 800; }
.forum-author-name:hover { color: var(--blue-light); }
.forum-post-author > span { display: inline-block; margin-top: 5px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--blue-light); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.forum-post-author dl { display: grid; gap: 3px; margin: 15px 0 0; }
.forum-post-author dl div { display: flex; justify-content: space-between; gap: 8px; color: #62748a; font-size: 8px; }
.forum-post-author dd { margin: 0; color: #95a9c0; }
.forum-post-main { min-width: 0; padding: 0 20px 22px; }
.forum-post-main > header { min-height: 42px; display: flex; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); color: #61758d; font-size: 8px; text-transform: uppercase; }
.forum-post-main > header a { color: var(--blue-light); }
.forum-post-main > header time { margin-left: auto; }
.forum-post-actions { display: flex; gap: 5px; margin-left: 6px; }
.forum-post-actions form { margin: 0; }
.forum-post-actions a,
.forum-post-actions button { min-height: 23px; padding: 2px 7px; }
.forum-post-body { padding-top: 18px; font-size: 12px; }

.forum-compose-page { max-width: 920px; }
.forum-compose { padding: clamp(20px, 4vw, 34px); overflow: visible; }
.forum-compose > label { display: block; margin: 0 0 6px; color: #91a6bd; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.forum-compose > input { margin-bottom: 18px; padding: 11px 13px; }
.forum-editor-note { margin: 9px 0 0; color: #65788e; font-size: 9px; }
.forum-compose-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.forum-reply-form { margin-top: 18px; }
.forum-reply-form h2 { margin: 0 0 14px; font-size: 18px; }
.forum-reply-form .forum-editor-note { margin-right: auto; }
.forum-reply-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: visible; scroll-margin-top: 20px; }
.forum-reply-card .forum-reply-author { border-bottom: 0; }
.forum-reply-editor { min-width: 0; padding: 22px 20px; }
.forum-reply-login { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 18px; }
.forum-reply-login span { color: var(--muted); font-size: 10px; }
.forum-reply-login .button { margin-left: auto; }
.forum-locked-notice { margin-top: 18px; padding: 15px; border: 1px solid rgba(255, 93, 108, 0.25); border-radius: 4px; color: #db9299; background: rgba(255, 93, 108, 0.05); font-size: 10px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.tox.tox-tinymce {
    border: 1px solid var(--line) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

.forum-latest-list > a {
    min-height: 58px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 18px;
    border-bottom: 1px solid var(--line);
}

.forum-latest-list > a:last-child { border-bottom: 0; }
.forum-latest-list > a:hover { background: rgba(20, 118, 255, 0.04); }
.forum-latest-icon { width: 26px; height: 26px; }
.forum-latest-icon::before { inset: 6px 5px 8px; }
.forum-latest-icon::after { right: 5px; bottom: 4px; width: 4px; height: 4px; }
.forum-latest-copy { min-width: 0; display: grid; }
.forum-latest-copy strong { overflow: hidden; color: #b6c6d9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.forum-latest-copy small { overflow: hidden; color: #60758d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.forum-latest-meta { display: grid; justify-items: end; color: #60758d; font-size: 8px; }
.forum-latest-meta b { min-width: 20px; padding: 1px 5px; border-radius: 20px; color: #86bdff; background: rgba(20, 118, 255, 0.1); text-align: center; }
.forum-latest-empty { padding: 24px; color: var(--muted); text-align: center; }

/* News editorial */
.news-editor-page { max-width: 1180px; }
.news-editor-columns,
.news-editor-row { display: grid; grid-template-columns: minmax(260px, 1fr) 160px 90px 170px; gap: 14px; align-items: center; }
.news-editor-columns { min-height: 38px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #60758e; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.news-editor-columns span:nth-child(3) { text-align: center; }
.news-editor-row { min-height: 82px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.news-editor-row:last-child { border-bottom: 0; }
.news-editor-row:hover { background: rgba(20, 118, 255, 0.035); }
.news-editor-row h2 { margin: 3px 0 1px; font-size: 13px; }
.news-editor-row small { color: #62758d; font-size: 8px; }
.news-editor-category { color: var(--blue-light); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.news-editor-status { width: fit-content; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: #9aacc1; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.news-editor-status.is-published { border-color: rgba(84, 215, 106, 0.3); color: #7de68e; }
.news-editor-status.is-draft { border-color: rgba(255, 180, 84, 0.3); color: #ffc170; }
.news-editor-comments { color: #9fb3ca; text-align: center; }
.news-editor-actions { display: flex; gap: 9px; align-items: center; justify-content: flex-end; }
.news-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.news-editor-main,
.news-editor-settings { padding: 24px; overflow: visible; }
.news-editor-main label,
.news-editor-settings > label:not(.news-editor-check) { display: block; margin: 0 0 6px; color: #91a6bd; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.news-editor-main input,
.news-editor-main textarea,
.news-editor-settings input,
.news-editor-settings select { width: 100%; margin: 0 0 18px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; outline: 0; color: #dce8f6; background: #06101a; font: inherit; }
.news-editor-main textarea { resize: vertical; }
.news-editor-main input:focus,
.news-editor-main textarea:focus,
.news-editor-settings input:focus,
.news-editor-settings select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 118, 255, 0.1); }
.news-editor-settings > small { display: block; margin: -12px 0 18px; color: #60758d; font-size: 8px; }
.news-editor-check { display: flex; gap: 8px; align-items: center; margin: 10px 0; color: #9aacc1; font-size: 9px; }
.news-editor-check input { width: auto; margin: 0; }
.news-editor-settings .button { width: 100%; margin-top: 10px; }
.news-editor-archive { display: flex; justify-content: flex-end; margin-top: 14px; }
.news-editor-archive button { border: 0; color: #d47f88; background: transparent; font-size: 9px; cursor: pointer; }

@media (max-width: 900px) {
    .forum-board-row { grid-template-columns: 38px minmax(0, 1fr) 140px; }
    .forum-board-stats { display: none; }
    .forum-topic-columns,
    .forum-topic-row { grid-template-columns: minmax(220px, 1fr) 70px minmax(140px, 0.45fr); }
    .forum-topic-columns { padding-left: 65px; }
    .forum-topic-columns span:nth-child(3),
    .forum-topic-row > .forum-topic-number:nth-of-type(3) { display: none; }
    .news-editor-columns,
    .news-editor-row { grid-template-columns: minmax(220px, 1fr) 130px 80px; }
    .news-editor-columns span:last-child,
    .news-editor-actions { display: none; }
    .news-editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .forum-category-head { align-items: flex-start; flex-direction: column; gap: 5px; }
    .forum-category-head p { text-align: left; }
    .forum-board-row { grid-template-columns: 34px minmax(0, 1fr); }
    .forum-board-icon { width: 32px; height: 32px; }
    .forum-board-icon::before { inset: 8px 7px 10px; }
    .forum-board-last { grid-column: 2; }
    .forum-view-heading { align-items: flex-start; flex-direction: column; }
    .forum-topic-columns { display: none; }
    .forum-topic-row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 64px; }
    .forum-topic-row > .forum-topic-number { display: none; }
    .forum-topic-last { text-align: right; }
    .forum-post { grid-template-columns: 1fr; }
    .forum-reply-card { grid-template-columns: 1fr; }
    .forum-post-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
    .forum-post-author img { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
    .forum-post-author > span { width: fit-content; margin: 0; }
    .forum-post-author dl { display: none; }
    .forum-post-main { padding-inline: 16px; }
    .forum-compose-actions,
    .forum-reply-login { align-items: stretch; flex-direction: column; }
    .forum-reply-login .button { margin-left: 0; }
    .forum-reply-form .forum-editor-note { margin-right: 0; }
    .forum-moderation-bar { justify-content: flex-start; }
    .forum-moderation-bar > span { width: 100%; }
    .forum-post-main > header { flex-wrap: wrap; }
    .forum-post-main > header time { margin-left: auto; }
    .forum-post-actions { width: 100%; margin-left: 0; }
    .news-editor-columns { display: none; }
    .news-editor-row { grid-template-columns: minmax(0, 1fr) auto; }
    .news-editor-row > .news-editor-comments { display: none; }
    .news-comment header time { width: 100%; margin-left: 0; }
}
