:root {
    --bg: #020706;
    --panel: #07110f;
    --panel-2: #0b1714;
    --line: rgba(92, 255, 166, 0.17);
    --text: #e7f2ee;
    --muted: #94a39f;
    --green: #62ff94;
    --cyan: #41d7ee;
    --lime: #b8ff5c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(57, 255, 141, 0.12), transparent 34rem),
        radial-gradient(circle at 86% 10%, rgba(65, 215, 238, 0.12), transparent 32rem),
        linear-gradient(180deg, #020806 0%, #010403 100%);
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 4vw, 3rem);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(2, 7, 6, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions,
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand {
    font-weight: 900;
    letter-spacing: 0.02em;
}

.site-header a { position: relative; transition: color .18s ease, transform .18s ease, border-color .18s ease; }
.site-header a:hover { color: var(--green); transform: translateY(-1px); }
.nav-link::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,var(--green),var(--cyan)); transform: scaleX(0); transition: transform .18s ease; }
.nav-link:hover::after { transform: scaleX(1); }

.brand-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 0 22px rgba(98, 255, 148, 0.8);
}

.shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 4rem;
}

.hero,
.thread-head,
.form-card,
.panel,
.empty-box {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(12, 30, 24, 0.94), rgba(3, 9, 8, 0.96));
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero {
    padding: clamp(1.4rem, 4vw, 3rem);
    margin-bottom: 1.4rem;
}

.hero h1,
.page-title h1,
.thread-head h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero p,
.page-title p,
.forum-card p,
.thread-head p,
.post-card p {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn,
.nav-link,
.user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0 1.2rem;
    border-radius: 8px;
    font-weight: 900;
}

.btn {
    border: 0;
    color: #02100c;
    cursor: pointer;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.btn.ghost,
.nav-link,
.user-pill {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.small {
    min-height: 2.25rem;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.2rem;
    align-items: start;
}

.card-list,
.topic-list,
.posts {
    display: grid;
    gap: 1rem;
}

.forum-card,
.topic-row,
.post-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 13, 11, 0.88);
    padding: 1.35rem;
}

.forum-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    transition: transform 160ms ease, border-color 160ms ease;
}

.forum-card:hover,
.topic-row:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 255, 148, 0.42);
}

.forum-card h2,
.topic-row h2 {
    margin: 0.1rem 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 0.65rem;
    align-content: center;
}

.stats-grid span {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.stats-grid b {
    display: block;
    color: var(--text);
    font-size: 1.3rem;
}

.panel {
    padding: 1.2rem;
}

.latest-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.latest-list li {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.latest-list span,
.topic-row span,
.post-meta span {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-title {
    margin-bottom: 1.2rem;
}

.page-title .btn {
    margin-top: 1rem;
}

.topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.thread-head {
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.post-card {
    background: rgba(9, 18, 16, 0.9);
}

.form-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    margin-top: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--text);
    background: #030908;
    font: inherit;
}

textarea {
    resize: vertical;
}

.auth-wrap {
    max-width: 560px;
    margin: 2rem auto;
}

.alert,
.empty-box {
    padding: 1rem;
}

.alert {
    color: #ffd5d5;
    border: 1px solid rgba(255, 116, 116, 0.35);
    border-radius: 8px;
    background: rgba(98, 12, 12, 0.28);
}

.accent-cyan {
    border-color: rgba(65, 215, 238, 0.24);
}

.accent-lime {
    border-color: rgba(184, 255, 92, 0.24);
}

.admin-link {
    color: var(--accent);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.admin-panel {
    align-self: start;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(4, 13, 11, .88);
}

.admin-panel h2 {
    margin-top: 0;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-row span,
.admin-row em {
    display: block;
    margin-top: .3rem;
    color: var(--muted);
    font-size: .86rem;
}

.admin-row em { color: #ff9999; }

.admin-row form,
.moderation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .7rem;
}

.compact-input {
    max-width: 240px;
    padding: .62rem .75rem;
}

.btn.danger {
    color: #fff;
    border-color: rgba(255, 91, 91, .45);
    background: rgba(174, 31, 31, .35);
}

.btn.danger:hover {
    background: rgba(209, 45, 45, .52);
}

.user-admin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: .85rem;
}

.admin-user-info {
    min-width: 0;
}

.admin-user-info > b {
    display: block;
    font-size: 1.15rem;
}

.user-admin-row > form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: .75rem;
    width: 100%;
    margin: 0;
}

.user-admin-row .compact-input {
    max-width: none;
}

.user-admin-row .moderation-actions {
    flex-wrap: nowrap;
    margin: 0;
}

.self-account-note {
    padding: .8rem .9rem;
    border: 1px solid rgba(98, 255, 148, .18);
    border-radius: 8px;
    background: rgba(98, 255, 148, .055);
}

.self-account-note b,
.self-account-note span {
    display: block;
}

.self-account-note span {
    margin-top: .25rem;
    color: var(--muted);
    font-size: .86rem;
}

@media (max-width: 620px) {
    .user-admin-row > form {
        grid-template-columns: 1fr;
    }

    .user-admin-row .moderation-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    .site-header,
    .forum-card,
    .topic-row {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        position: static;
    }

    .site-header nav,
    .hero-actions,
    .forum-card,
    .topic-row {
        display: grid;
    }

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

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

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


/* 2026-06-27 FragZone forum visual refresh */
body {
    background:
        linear-gradient(180deg, rgba(1, 6, 5, .78), rgba(1, 6, 5, .96)),
        url("/assets/images/backgrounds/fragzone-bg-loop.webp") center top / cover fixed no-repeat,
        #020807;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 8, 7, .96), rgba(2, 8, 7, .68) 46%, rgba(2, 8, 7, .9)),
        radial-gradient(circle at 16% 16%, rgba(98, 255, 148, .2), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(65, 215, 238, .13), transparent 30%),
        url("/assets/images/backgrounds/fragzone-hero.png") center top / cover no-repeat;
    opacity: .76;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 8px),
        linear-gradient(180deg, rgba(2, 8, 7, .08), #020807 82%);
    opacity: .46;
}

.site-header {
    background: rgba(2, 8, 7, .72);
    border-bottom-color: rgba(98, 255, 148, .18);
}

.brand {
    text-transform: uppercase;
}

.brand-dot {
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(98, 255, 148, .26);
    background:
        radial-gradient(circle at 50% 50%, rgba(98,255,148,.45), transparent 34%),
        linear-gradient(135deg, rgba(98,255,148,.16), rgba(65,215,238,.1));
}

.shell {
    width: min(1480px, calc(100% - 2rem));
}

.hero,
.thread-topbar,
.thread-head,
.form-card,
.panel,
.empty-box,
.forum-card,
.topic-row,
.post-card {
    backdrop-filter: blur(14px);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-color: rgba(98, 255, 148, .24);
    background:
        linear-gradient(110deg, rgba(5, 18, 14, .98), rgba(5, 18, 14, .86) 54%, rgba(5, 18, 14, .58)),
        url("/assets/images/backgrounds/fragzone-hero.png") center / cover no-repeat;
}

.hero::after,
.thread-topbar::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 8px);
    mask-image: linear-gradient(#000, transparent 86%);
}

.hero > *,
.thread-topbar > * {
    position: relative;
    z-index: 1;
}

.forum-card,
.topic-row,
.panel,
.form-card,
.empty-box,
.admin-panel {
    border-color: rgba(98, 255, 148, .16);
    background: linear-gradient(145deg, rgba(9, 24, 20, .88), rgba(2, 8, 7, .9));
}

.thread-topbar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(98, 255, 148, .22);
    border-radius: 10px;
    background:
        linear-gradient(110deg, rgba(5, 18, 14, .98), rgba(5, 18, 14, .78)),
        url("/assets/images/backgrounds/fragzone-hero.png") center / cover no-repeat;
    box-shadow: var(--shadow);
}

.thread-topbar h1 {
    max-width: 980px;
    margin: .15rem 0 .45rem;
    color: #f2fff6;
    font-size: clamp(2rem, 4.4vw, 4.8rem);
    line-height: .92;
    text-transform: uppercase;
}

.thread-topbar span {
    color: var(--muted);
    font-weight: 800;
}

.forum-post-card {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-color: rgba(255, 111, 24, .38);
    background: rgba(8, 11, 10, .9);
    box-shadow: 0 22px 70px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.025);
}

.forum-post-card.original-post {
    border-color: rgba(255, 111, 24, .55);
}

.post-author {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: .72rem;
    min-height: 260px;
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(180deg, rgba(7, 18, 15, .96), rgba(4, 9, 8, .95)),
        radial-gradient(circle at 50% 0, rgba(98,255,148,.16), transparent 45%);
}

.avatar-ring {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 2px solid var(--green);
    border-radius: 999px;
    background: rgba(0,0,0,.36);
    box-shadow: 0 0 24px rgba(98,255,148,.32), inset 0 0 22px rgba(98,255,148,.08);
}

.avatar-ring span {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(135deg, #effff2, #96ffc1);
    color: #020807;
    font-size: 1.35rem;
    font-weight: 1000;
}

.post-author strong {
    overflow-wrap: anywhere;
    color: #e9fff0;
    font-size: 1.08rem;
    text-align: center;
}

.role-pill {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    justify-content: center;
    padding: 0 .78rem;
    border: 1px solid rgba(98,255,148,.2);
    border-radius: 999px;
    background: rgba(98,255,148,.08);
    color: var(--green);
    font-size: .72rem;
    font-weight: 1000;
}

.role-pill.admin {
    border-color: rgba(255,111,24,.38);
    background: rgba(255,111,24,.12);
    color: #ff9a4d;
}

.post-date-mobile {
    display: none;
}

.post-content {
    min-width: 0;
    padding: 1.45rem 1.65rem 1.75rem;
}

.post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.2rem;
    margin-bottom: 1.1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.56);
    color: #c8d5d1;
    font-size: .82rem;
    font-weight: 900;
}

.post-toolbar .moderation-actions {
    margin: 0;
}

.post-body {
    color: #dce7e4;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.8;
}

.post-body h2,
.post-body h3,
.post-body strong {
    color: #ff4c3f;
}

.posts {
    margin-top: 1rem;
}

.form-card {
    margin-top: 1.15rem;
}

@media (max-width: 760px) {
    body {
        background-attachment: scroll;
    }

    .thread-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-post-card {
        grid-template-columns: 1fr;
    }

    .post-author {
        grid-template-columns: auto 1fr;
        justify-items: start;
        min-height: 0;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .avatar-ring {
        grid-row: 1 / 4;
        width: 64px;
        height: 64px;
    }

    .avatar-ring span {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .post-date-mobile {
        display: block;
        color: var(--muted);
        font-size: .78rem;
    }

    .post-content {
        padding: 1rem;
    }

    .post-toolbar {
        display: none;
    }
}


/* 2026-06-27 full forum structure, profile and stats */
.forum-home-hero h1 {
    font-size: clamp(3rem, 7vw, 7rem);
    letter-spacing: .035em;
    text-transform: uppercase;
}

.forum-home-hero p {
    max-width: 820px;
    font-size: 1.02rem;
}

.forum-info-grid,
.forum-stats-footer,
.subcategory-card-grid {
    display: grid;
    gap: 1rem;
}

.forum-info-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.2rem;
}

.forum-info-grid article,
.forum-stats-footer > div,
.subcategory-card {
    border: 1px solid rgba(98, 255, 148, .16);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(9, 24, 20, .88), rgba(2, 8, 7, .9));
    box-shadow: 0 18px 55px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
}

.forum-info-grid article {
    padding: 1.15rem;
}

.forum-info-grid b {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: .8rem;
    border: 1px solid rgba(98,255,148,.22);
    border-radius: 8px;
    color: var(--green);
}

.forum-info-grid strong,
.subcategory-card strong {
    display: block;
    color: #f0fff5;
    font-size: 1.08rem;
}

.forum-info-grid span,
.subcategory-card span,
.subcategory-card small {
    display: block;
    margin-top: .35rem;
    color: var(--muted);
    line-height: 1.5;
}

.forum-hub-card {
    padding: 0;
    overflow: hidden;
}

.forum-card-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.3rem;
}

.forum-card-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(98,255,148,.24);
    border-radius: 14px;
    background: rgba(98,255,148,.08);
    color: var(--green);
    font-weight: 1000;
}

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: 0 1.3rem 1.25rem;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.2rem;
    padding: 0 .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: #dfffea;
    font-size: .78rem;
    font-weight: 900;
}

.subcategory-pill span,
.subcategory-empty {
    color: var(--muted);
    font-size: .72rem;
}

.forum-stats-footer {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 1.2rem;
}

.forum-stats-footer > div {
    padding: 1rem;
}

.forum-stats-footer small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.forum-stats-footer strong {
    display: block;
    overflow: hidden;
    margin-top: .35rem;
    color: #f3fff6;
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subcategory-card-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1rem;
}

.subcategory-card {
    padding: 1rem;
}

.modern-topic-row small {
    color: var(--green);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.avatar-ring {
    overflow: hidden;
}

.avatar-ring img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(98,255,148,.26));
}

.avatar-ring:has(img) {
    background: linear-gradient(145deg, rgba(98,255,148,.12), rgba(2,8,7,.85));
}

.author-mini-stat {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.profile-editor-hero {
    margin-bottom: 1rem;
}

.profile-editor-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid rgba(98,255,148,.22);
    border-radius: 10px;
    background:
        linear-gradient(110deg, rgba(5, 18, 14, .98), rgba(5, 18, 14, .76)),
        url("/assets/images/backgrounds/fragzone-hero.png") center / cover no-repeat;
    box-shadow: var(--shadow);
}

.profile-avatar-large {
    width: 112px;
    height: 112px;
}

.profile-editor-card h1 {
    margin: .1rem 0 .4rem;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: .92;
    text-transform: uppercase;
}

.profile-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.profile-mini-stats span {
    padding: .48rem .7rem;
    border: 1px solid rgba(98,255,148,.16);
    border-radius: 999px;
    background: rgba(98,255,148,.06);
    color: #dfffea;
    font-size: .78rem;
    font-weight: 900;
}

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

.profile-edit-form label:nth-of-type(2),
.profile-edit-form label:nth-of-type(5),
.profile-edit-form button {
    grid-column: 1 / -1;
}

@media (max-width: 920px) {
    .forum-info-grid,
    .forum-stats-footer,
    .subcategory-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .forum-card-main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .forum-card-main .stats-grid {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .forum-info-grid,
    .forum-stats-footer,
    .subcategory-card-grid,
    .profile-edit-form {
        grid-template-columns: 1fr;
    }

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


/* 2026-06-27 ideal forum index layout */
.forum-hub-list {
    gap: 1rem;
}

.forum-hub-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(98,255,148,.18);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(5, 17, 14, .94), rgba(1, 7, 6, .92));
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
    backdrop-filter: blur(14px);
}

.forum-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.forum-section-title {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
}

.forum-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    font-size: 1rem;
}

.forum-section-title small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.forum-section-title b {
    display: block;
    margin-top: .18rem;
    color: #f0fff5;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    line-height: 1;
}

.forum-section-title em {
    display: block;
    max-width: 720px;
    margin-top: .45rem;
    color: #9db0aa;
    font-style: normal;
    line-height: 1.55;
}

.forum-section-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, 1fr));
    gap: .65rem;
}

.forum-section-stats span {
    display: grid;
    align-content: center;
    min-height: 70px;
    padding: .8rem .95rem;
    border: 1px solid rgba(98,255,148,.16);
    border-radius: 8px;
    background: rgba(0, 8, 6, .48);
}

.forum-section-stats strong {
    color: #f2fff6;
    font-size: 1.55rem;
    line-height: 1;
}

.forum-section-stats small {
    margin-top: .22rem;
    color: var(--muted);
    font-size: .78rem;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .72rem;
    padding: 1rem 1.35rem 1.35rem;
}

.subcategory-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    min-height: 82px;
    padding: .85rem .95rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.subcategory-row:hover {
    transform: translateY(-1px);
    border-color: rgba(98,255,148,.32);
    background: rgba(98,255,148,.055);
}

.subcategory-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(98,255,148,.2);
    border-radius: 8px;
    background: rgba(98,255,148,.07);
    color: var(--green);
    font-size: .78rem;
    font-weight: 1000;
}

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

.subcategory-copy b {
    display: block;
    overflow: visible;
    color: #eaffef;
    font-size: .95rem;
    line-height: 1.15;
    white-space: normal;
}

.subcategory-copy small {
    display: block;
    display: -webkit-box;
    overflow: hidden;
    margin-top: .3rem;
    color: #849791;
    font-size: .74rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcategory-count {
    display: grid;
    min-width: 56px;
    justify-items: end;
}

.subcategory-count strong {
    color: #f3fff6;
    font-size: 1.15rem;
    line-height: 1;
}

.subcategory-count small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .67rem;
}

.subcategory-pill {
    min-height: auto;
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .forum-card-main {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .forum-section-title {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .forum-card-icon {
        width: 54px;
        height: 54px;
    }

    .forum-section-stats,
    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .subcategory-count {
        grid-column: 2;
        justify-items: start;
        display: flex;
        gap: .35rem;
        align-items: baseline;
    }
}


/* 2026-06-27 original logo and bottom forum navigation */
.brand-logo-link {
    gap: .95rem;
}

.forum-logo-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(98,255,148,.18), transparent 68%);
}

.forum-logo-frame::before {
    position: absolute;
    inset: -10px;
    z-index: -1;
    content: "";
    border-radius: 22px;
    background: radial-gradient(circle, rgba(98,255,148,.28), transparent 68%);
    filter: blur(10px);
}

.forum-header-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(98,255,148,.32));
}

.brand-logo-link > span:last-child {
    color: #f1fff5;
    font-size: 1.05rem;
    font-weight: 1000;
    letter-spacing: .03em;
}

.brand-dot {
    display: none;
}

.forum-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.25rem 0 0;
    padding: 1.05rem;
    border: 1px solid rgba(98,255,148,.16);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(5,17,14,.86), rgba(1,7,6,.9));
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
    backdrop-filter: blur(14px);
}

.forum-bottom-actions .btn {
    min-width: 170px;
}

.forum-back-button {
    color: #eaffef;
}

@media (max-width: 760px) {
    .forum-logo-frame,
    .forum-header-logo {
        width: 48px;
        height: 48px;
    }

    .brand-logo-link > span:last-child {
        font-size: .9rem;
    }

    .forum-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-bottom-actions .btn {
        width: 100%;
    }
}
