:root {
    --bg: #070A14;
    --bg-soft: #0C1222;
    --card: #101827;
    --card-2: #151F35;
    --border: #2A3650;
    --border-soft: rgba(148, 163, 184, .16);
    --text: #E5E7EB;
    --muted: #9CA3AF;
    --green: #8B5CF6;
    --green-2: #6D28D9;
    --gold: #38BDF8;
    --red: #EF4444;
    --cyan: #22D3EE;
    --shadow: 0 18px 45px rgba(0, 0, 0, .28);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, .18), transparent 28%),
        radial-gradient(circle at 84% 8%, rgba(56, 189, 248, .12), transparent 24%),
        var(--bg);
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 16, 24, .86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #05110A;
    background: linear-gradient(135deg, var(--green), var(--gold));
    border: 2px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a,
.nav-button {
    border: 0;
    color: var(--muted);
    background: transparent;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

.main-nav a:hover,
.nav-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.nav-cta {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--green), #2563EB) !important;
    font-weight: 800;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
}

.lang-switch a {
    padding: 5px 8px;
    font-size: .82rem;
    font-weight: 900;
}

.lang-switch a.active {
    color: #FFFFFF;
    background: rgba(139, 92, 246, .32);
}

.inline-form,
.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.flash-wrap {
    margin-top: 16px;
}

.flash,
.alert-list {
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, .94);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.flash-success {
    border-color: rgba(34, 197, 94, .42);
    color: #BBF7D0;
}

.flash-error,
.alert-list {
    border-color: rgba(239, 68, 68, .42);
    color: #FECACA;
}

.alert-list p {
    margin: 0;
}

.alert-list p + p {
    margin-top: 6px;
}

.hero {
    min-height: 620px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.network-hero {
    box-shadow: inset 0 -80px 120px rgba(7, 10, 20, .78);
}

.hero-inner {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 40px;
    padding: 80px 0 58px;
}

.hero-copy {
    max-width: 710px;
}

.server-state,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.server-state i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .16);
}

.server-state.offline {
    color: #FECACA;
}

.server-state.offline i {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, .16);
}

.server-state.mini {
    font-size: .82rem;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: 5.8rem;
    line-height: .92;
    max-width: 820px;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero p {
    margin: 0 0 26px;
    max-width: 620px;
    color: #C7D2E1;
    font-size: 1.08rem;
}

.server-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, .82);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}

.server-copy span {
    color: var(--muted);
    font-size: .88rem;
}

code,
.mono-input {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.server-copy code {
    color: var(--gold);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.server-ip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
}

.ip-card {
    padding: 14px;
    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 28px rgba(139, 92, 246, .08);
}

.ip-card > span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-weight: 950;
    text-transform: uppercase;
}

.ip-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
}

.ip-line + .ip-line {
    border-top: 1px solid var(--border-soft);
}

.ip-line code {
    color: #E0F2FE;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.hero-actions,
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 850;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

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

.btn-primary {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--green), #2563EB);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A78BFA, #3B82F6);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: rgba(250, 204, 21, .48);
}

.full {
    width: 100%;
}

.hero-status {
    display: grid;
    gap: 12px;
    align-self: end;
}

.hero-status div,
.metric-card,
.info-panel,
.panel,
.post-detail,
.comments,
.auth-panel,
.admin-panel,
.profile-panel {
    background: rgba(17, 24, 39, .9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-status div {
    padding: 20px;
}

.hero-status span,
.metric-card span {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
    color: var(--text);
    overflow-wrap: anywhere;
}

.hero-status small,
.metric-card small {
    color: var(--muted);
}

.hero-status .server-online span {
    color: var(--green);
}

.hero-status .server-offline span {
    color: #FECACA;
}

.section {
    padding: 64px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h1,
.section-head h2,
.form-page h1,
.auth-panel h1,
.profile-panel h1,
.post-head h1,
.blog-hero h1,
.admin-topbar h1 {
    margin: 4px 0 0;
    line-height: 1.08;
    text-wrap: balance;
}

.section-head h1 {
    font-size: 3.2rem;
}

.section-head h2 {
    font-size: 2.2rem;
}

.text-link {
    color: var(--gold);
    font-weight: 850;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .15s ease, border-color .15s ease;
}

.news-card:hover,
.thread-row:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, .45);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-soft);
}

.blog-card-grid .featured-news {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.blog-card-grid .featured-news img {
    height: 100%;
    min-height: 320px;
    aspect-ratio: auto;
}

.blog-card-grid .featured-news .news-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-grid .featured-news h2 {
    font-size: 2.2rem;
}

.news-body {
    padding: 18px;
}

.news-body h2,
.news-body h3 {
    margin: 12px 0 8px;
    line-height: 1.25;
}

.news-body p,
.thread-main p,
.info-panel p,
.auth-panel p,
.profile-panel p,
.post-head p {
    color: var(--muted);
}

.news-body small {
    display: block;
    margin-top: 12px;
    color: #B6C2D2;
}

.badge,
.status,
.role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.2;
}

.badge {
    color: var(--text);
    background: rgba(139, 92, 246, .13);
    border: 1px solid var(--badge-color);
    box-shadow: inset 4px 0 0 var(--badge-color);
}

.discord-badge {
    --badge-color: #5865F2;
}

.status,
.role {
    color: #DDE7F4;
    background: rgba(148, 163, 184, .13);
    border: 1px solid var(--border-soft);
}

.status-approved,
.status-active,
.role-admin {
    color: #BBF7D0;
    border-color: rgba(34, 197, 94, .35);
}

.status-pending,
.status-draft,
.warning {
    color: #FEF3C7;
    border-color: rgba(250, 204, 21, .35);
}

.status-rejected,
.status-banned,
.status-hidden,
.role-mod {
    color: #FECACA;
    border-color: rgba(239, 68, 68, .35);
}

.pinned {
    color: #FEF08A;
    border-color: rgba(250, 204, 21, .45);
}

.locked {
    color: #BFDBFE;
    border-color: rgba(56, 189, 248, .4);
}

.section-split,
.profile-grid,
.admin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.section-copy {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.discord-post-grid,
.discord-forum-list {
    display: grid;
    gap: 14px;
}

.discord-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discord-post-card,
.discord-thread-card {
    overflow: hidden;
    background: rgba(16, 24, 39, .9);
    border: 1px solid rgba(80, 99, 140, .8);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .26);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.discord-post-card:hover,
.discord-thread-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, .72);
    box-shadow: 0 18px 52px rgba(37, 99, 235, .14);
}

.post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-soft);
}

.post-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.post-card-body h3,
.thread-card-main h2 {
    margin: 0;
    line-height: 1.25;
}

.post-card-body p,
.thread-card-main p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.post-author {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.post-author img,
.post-author span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, .36);
    background: linear-gradient(135deg, #5865F2, #22D3EE);
}

.post-author img {
    object-fit: cover;
}

.post-author span {
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-weight: 950;
}

.post-author small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-thread-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(120px, 180px) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.avatar-cell {
    align-self: start;
}

.avatar-cell img,
.avatar-cell span {
    width: 44px;
    height: 44px;
}

.thread-card-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.thread-thumb img {
    width: 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.glow-panel {
    border-color: rgba(139, 92, 246, .35);
    box-shadow: var(--shadow), 0 0 36px rgba(139, 92, 246, .08);
}

.thread-list {
    display: grid;
    gap: 12px;
}

.thread-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .15s ease, border-color .15s ease;
}

.thread-main {
    min-width: 0;
}

.thread-main h2,
.thread-main h3 {
    margin: 8px 0 6px;
    line-height: 1.25;
}

.thread-meta {
    display: grid;
    gap: 6px;
    align-content: center;
    color: var(--muted);
    font-size: .9rem;
    text-align: right;
    white-space: nowrap;
}

.row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-panel {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.info-panel h2 {
    margin: 0;
}

.auth-shell {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
    padding: 58px 0;
}

.auth-panel {
    width: min(720px, 100%);
    padding: 28px;
}

.auth-panel.narrow {
    width: min(480px, 100%);
}

.form-stack {
    display: grid;
    gap: 16px;
}

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

label span,
label {
    color: #CBD5E1;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    color: var(--text);
    background: #0D1521;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 13px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(34, 197, 94, .62);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

textarea {
    resize: vertical;
}

.rich-editor {
    overflow: hidden;
    color: #111827;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
}

.rich-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 48px;
    padding: 7px 8px;
    overflow-x: auto;
    background: linear-gradient(#F8FAFC, #EEF2F7);
    border-bottom: 1px solid #D1D5DB;
}

.rich-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
    padding-right: 7px;
    border-right: 1px solid #CBD5E1;
}

.rich-group:last-child {
    border-right: 0;
}

.rich-toolbar .rich-group select,
.rich-toolbar .rich-group button,
.rich-toolbar .rich-group .rich-color {
    width: auto !important;
    min-width: 0;
    min-height: 31px;
    margin: 0 !important;
    color: #1F2937;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 6px 9px;
    font-weight: 750;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .06);
}

.rich-toolbar .rich-group select {
    min-width: 118px;
    max-width: 160px;
    padding-right: 26px;
}

.rich-toolbar .rich-group button,
.rich-toolbar .rich-group .rich-color {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    cursor: pointer;
}

.rich-toolbar .rich-group button:hover,
.rich-toolbar .rich-group button.active,
.rich-toolbar .rich-group .rich-color:hover {
    background: #E5E7EB;
    border-color: #94A3B8;
}

.rich-toolbar input[type="color"] {
    width: 22px;
    height: 22px;
    margin: 0 0 0 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.rich-editable,
.rich-source {
    width: 100%;
    min-height: 280px;
    margin: 0;
    padding: 16px;
    color: #111827;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    outline: none;
    overflow: auto;
}

.rich-source {
    display: block;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    resize: vertical;
}

.rich-editable:focus,
.rich-source:focus {
    box-shadow: inset 0 0 0 2px rgba(34, 197, 94, .35);
}

.rich-editor .rich-content,
.rich-editor .rich-content h2,
.rich-editor .rich-content h3,
.rich-editor .rich-content h4 {
    color: #111827;
}

.rich-editor .rich-content blockquote {
    color: #334155;
    background: #EFF6FF;
    border-left-color: #38BDF8;
}

.rich-editor .rich-content th,
.rich-editor .rich-content td,
.rich-editor .rich-content table {
    border-color: #CBD5E1;
}

.form-note {
    margin: 18px 0 0;
    color: var(--muted);
}

.form-note a {
    color: var(--gold);
    font-weight: 850;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 14px;
    background: rgba(17, 24, 39, .72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag-strip a {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
}

.tag-strip a.active,
.tag-strip a:hover {
    color: #06130B;
    background: var(--green);
    border-color: var(--green);
    font-weight: 900;
}

.empty-state {
    padding: 42px 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(17, 24, 39, .72);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-state.compact {
    padding: 18px;
}

.empty-icon {
    display: block;
    font-size: 3rem;
    color: var(--gold);
    font-weight: 950;
}

.form-page,
.readable {
    width: min(860px, 100%);
    margin: 0 auto;
}

.post-detail,
.comments,
.panel {
    padding: 24px;
}

.post-head h1 {
    font-size: 3.5rem;
}

.post-content,
.article-body {
    margin-top: 24px;
    color: #DCE6F2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.article-body {
    width: min(860px, 100%);
    margin: 0 auto;
    font-size: 1.08rem;
}

.article-section {
    padding-top: 42px;
}

.rich-content {
    color: #DCE6F2;
    line-height: 1.85;
}

.rich-content p {
    margin: 0 0 1.15em;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 1.6em 0 .55em;
    line-height: 1.18;
    color: var(--text);
}

.rich-content h2 {
    font-size: 2rem;
}

.rich-content h3 {
    font-size: 1.45rem;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 1.2em 1.25em;
    padding: 0;
}

.rich-content li + li {
    margin-top: .35em;
}

.rich-content blockquote {
    margin: 1.4em 0;
    padding: 14px 18px;
    color: #D7E2EF;
    background: rgba(56, 189, 248, .08);
    border-left: 4px solid var(--cyan);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.rich-content a {
    color: var(--gold);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content img {
    width: auto;
    max-width: 100%;
    margin: 18px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.rich-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rich-content th,
.rich-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    vertical-align: top;
}

.rich-content th {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.rich-content pre,
.rich-content code {
    background: rgba(0, 0, 0, .24);
    border: 1px solid var(--border-soft);
}

.rich-content pre {
    padding: 14px;
    overflow-x: auto;
    border-radius: var(--radius);
}

.rich-content code {
    padding: 2px 5px;
    border-radius: 4px;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.comments {
    margin-top: 22px;
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0D1521;
}

.comment-item p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.comment-image {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 10px 0;
}

.comment-image img {
    max-width: min(520px, 100%);
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.comment-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.blog-hero {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: end;
}

.blog-hero-inner {
    padding: 118px 0 44px;
}

.blog-hero h1 {
    max-width: 820px;
    margin: 12px 0 8px;
    font-size: 3.45rem;
}

.profile-grid {
    grid-template-columns: 310px minmax(0, 1fr);
}

.profile-panel {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: #04110A;
    font-size: 2rem;
    font-weight: 950;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.profile-content {
    display: grid;
    gap: 22px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    background: #080D14;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    margin: 6px 0 0;
}

.footer-server {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.footer-server span:not(.server-state) {
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text);
}

.admin-body {
    background: #090F17;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: #0B1018;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-brand {
    margin-bottom: 8px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 11px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.admin-nav a.active,
.admin-nav a:hover {
    color: var(--text);
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .28);
}

.admin-main {
    padding: 28px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.admin-section {
    display: grid;
    gap: 20px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    padding: 18px;
}

.metric-card.warning {
    background: rgba(250, 204, 21, .08);
}

.admin-panel {
    padding: 18px;
}

.admin-subsection {
    display: grid;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #B9C5D5;
    font-size: .82rem;
    text-transform: uppercase;
}

.admin-table td {
    color: #DDE6F2;
}

.table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 500;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.check-row input {
    width: auto;
    margin: 0;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, .025);
}

.actions form,
.actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: #0D1521;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 850;
}

.btn-mini:hover {
    border-color: rgba(250, 204, 21, .45);
}

.btn-mini.success {
    color: #BBF7D0;
    border-color: rgba(34, 197, 94, .34);
}

.btn-mini.danger {
    color: #FECACA;
    border-color: rgba(239, 68, 68, .34);
}

.empty-cell {
    text-align: center !important;
    color: var(--muted) !important;
    padding: 28px !important;
}

.wide-form {
    max-width: 980px;
}

.thumb-preview {
    width: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.logo-preview {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

@media (max-width: 980px) {
    .hero-inner,
    .section-split,
    .profile-grid,
    .admin-two-col {
        grid-template-columns: 1fr;
    }

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

    .card-grid.three,
    .discord-post-grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discord-thread-card {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .thread-thumb {
        display: none;
    }

    .blog-card-grid .featured-news {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .blog-card-grid .featured-news img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .profile-panel {
        position: static;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero h1 {
        font-size: 4.1rem;
    }

    .section-head h1,
    .post-head h1 {
        font-size: 2.75rem;
    }

    .section-head h2 {
        font-size: 1.9rem;
    }

    .blog-hero h1 {
        font-size: 2.85rem;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #0B1018;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a,
    .nav-button,
    .inline-form,
    .lang-switch {
        width: 100%;
    }

    .lang-switch {
        justify-content: stretch;
    }

    .lang-switch a {
        flex: 1;
        text-align: center;
    }

    .nav-button {
        text-align: left;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-inner {
        padding: 58px 0 34px;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .section-head h1,
    .post-head h1 {
        font-size: 2.25rem;
    }

    .section-head h2 {
        font-size: 1.65rem;
    }

    .blog-hero h1 {
        font-size: 2.25rem;
    }

    .server-copy,
    .server-copy .btn {
        width: 100%;
    }

    .hero-status,
    .server-ip-grid,
    .discord-post-grid,
    .card-grid.three,
    .metric-grid,
    .form-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .blog-card-grid .featured-news h2 {
        font-size: 1.55rem;
    }

    .thread-row {
        grid-template-columns: 1fr;
    }

    .discord-thread-card {
        grid-template-columns: 1fr;
    }

    .avatar-cell {
        display: none;
    }

    .thread-meta {
        text-align: left;
        white-space: normal;
    }

    .section-head,
    .footer-grid,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-main {
        padding: 18px;
    }

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

@media (max-width: 460px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .auth-panel,
    .post-detail,
    .comments,
    .panel,
    .admin-panel {
        padding: 16px;
    }

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