/* =========================================================
   BASE
========================================================= */

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(
        circle at center top,
        rgba(190, 44, 28, 0.22),
        transparent 35%
        ),
        linear-gradient(
        rgba(4, 4, 4, 0.74),
        rgba(4, 4, 4, 0.90)
        ),
        url('/assets/img/background.jpg')
        center / cover fixed;
}

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

.site-shell {
    width: min(var(--page-width), calc(100% - 48px));
    margin: 15px auto;
    padding: 14px;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   CONTENT PAGES
========================================================= */

.content-page .panel-body {
    padding: 10px;
}

.content-box {
    display: grid;
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.7;
}

.content-box h1 {
    margin: 0;
    color: var(--cream);
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.content-box h2 {
    margin: 0;
    color: var(--gold);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.content-box h3 {
    margin: 8px 0 0;
    color: var(--cream);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.content-box p {
    margin: 0;
}

.content-box ul,
.content-box ol {
    margin: 0;
    padding-left: 22px;
}

.content-box li {
    margin-bottom: 6px;
}

.content-box li:last-child {
    margin-bottom: 0;
}

.content-box a {
    color: var(--gold);
    font-weight: 900;
}

.content-box a:hover {
    color: #fff;
}

.content-box strong {
    color: var(--cream);
}

.content-box hr {
    width: 100%;
    height: 1px;
    margin: 4px 0;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .10),
        transparent
        );
}

.content-note {
    padding: 12px 14px;
    border: 1px solid #252525;
    background:
        linear-gradient(#181818, #101010),
        radial-gradient(circle at top right, rgba(201, 22, 22, .12), transparent 45%);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.content-note strong {
    color: var(--cream);
}

.content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* =========================================================
   CHECKBOX / RULE ACCEPT
========================================================= */

.form-check {
    display: grid;
    gap: 8px;
}

.form-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    color: var(--cream);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    cursor: pointer;
}

.form-check label:hover {
    border-color: #3a1515;
    background: linear-gradient(#211313, #101010);
}

.form-check input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--red);
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.pagination-info {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

/* =========================================================
   TEAM
========================================================= */

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

.team-card .panel-body {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.team-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #3a1515;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .28), transparent 58%),
        #090909;
    color: var(--cream);
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.team-card h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.team-card h3 a:hover {
    color: var(--cream);
}

.team-card strong {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

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

/* =========================================================
   GALLERY
========================================================= */

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

.gallery-item {
    position: relative;
    display: block;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid #252525;
    background: #080808;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    transition:
        transform .22s ease,
        filter .22s ease;
}

.gallery-item span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(217, 179, 108, .25);
    background: rgba(0, 0, 0, .72);
    color: var(--cream);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-item:hover {
    border-color: var(--red);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.12);
}

/* =========================================================
   HELPERS
========================================================= */

.diamond {
    font-weight: 900;
    text-shadow: 0 0 8px currentColor;
}

.blue {
    color: var(--blue);
}

.red {
    color: #e01414;
}

.role-admin,
.online-user.role-admin {
    color: #ff3b3b;
}

.role-moderator,
.online-user.role-moderator {
    color: #5fa8ff;
}

.role-premium,
.online-user.role-premium {
    color: #d9b36c;
}

.role-user,
.online-user.role-user {
    color: #cfcfcf;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #333;
    background: linear-gradient(#1f1f1f, #101010);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    border-color: #9a1515;
    background: linear-gradient(#c51616, #620b0b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-danger {
    border-color: #7a1717;
    background: linear-gradient(#8f1b1b, #3b0909);
    color: #fff;
}

.btn:hover {
    filter: brightness(1.12);
}

/* =========================================================
   FORMS
========================================================= */

.form,
.auth-form,
.form-box,
.login-form,
.forum-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.form-box,
.form-compact {
    max-width: 620px;
}

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

.form-group {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.form-group.form-full {
    grid-column: 1 / -1;
}

.form-group label,
.login-form label {
    display: grid;
    gap: 6px;
    color: var(--cream);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.form-group input,
.form-group select,
.form-group textarea,
.login-form input,
.forum-form textarea,
.chat-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #333;
    background: linear-gradient(#0d0d0d, #080808);
    color: var(--text);
    font-size: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 0 0 rgba(201, 22, 22, 0);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.form-group textarea,
.forum-form textarea {
    min-height: 140px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
}

.forum-form textarea {
    min-height: 160px;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.login-form input::placeholder,
.chat-form input::placeholder {
    color: #666;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.login-form input:hover,
.forum-form textarea:hover,
.chat-form input:hover {
    border-color: #444;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.login-form input:focus,
.forum-form textarea:focus,
.chat-form input:focus {
    outline: none;
    border-color: var(--red);
    background: #090909;
    box-shadow: 0 0 0 2px rgba(201, 22, 22, .2);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.form-help {
    margin-top: -2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.form-note {
    padding: 12px 14px;
    border: 1px solid #252525;
    background:
        linear-gradient(#181818, #101010),
        radial-gradient(circle at top right, rgba(201, 22, 22, .12), transparent 45%);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.form-note strong {
    color: var(--cream);
}

.form-divider {
    height: 1px;
    margin: 4px 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .08),
        transparent
        );
}

.form-actions,
.auth-actions,
.profile-actions,
.forum-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.form-actions.between {
    justify-content: space-between;
}

.form-actions.center {
    justify-content: center;
}

.form-actions .btn,
.auth-actions .btn {
    min-width: 150px;
}

.login-form {
    gap: 12px;
}

.login-form button {
    width: 100%;
    margin-top: 4px;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.login-links a:hover {
    color: var(--cream);
}

.auth-panel .panel-body {
    padding: 18px;
}

.login-remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.login-remember input {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    padding: 0 !important;
    accent-color: var(--red);
}

/* =========================================================
   BREADCRUMB
========================================================= */

.bd-container {
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid #202020;
    background: rgba(14, 14, 14, .94);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
}

.breadcrumb-item a {
    color: #bdbdbd;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: var(--cream);
}

.breadcrumb-arrow {
    color: var(--red);
    font-size: 18px;
    line-height: 1;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 13px;
    border: 1px solid #202020;
    background: rgba(14, 14, 14, 0.94);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid transparent;
    color: #bdbdbd;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.nav-link .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.nav-arrow {
    margin-left: 2px;
    color: #777;
    font-size: 11px;
    transition: transform .18s ease, color .18s ease;
}

.nav-item:hover > .nav-link,
.nav-item.active > .nav-link,
.nav-link:hover,
.nav-link.active {
    color: #fff;
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
    box-shadow: inset 3px 0 0 var(--red);
}

.nav-item:hover > .nav-link .nav-arrow {
    color: #fff;
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    border: 1px solid #252525;
    background: rgba(12, 12, 12, .98);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .72);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown a {
    display: block;
    padding: 10px 11px;
    border: 1px solid transparent;
    color: #aaa;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    color: #fff;
    border-color: #3b1515;
    background: linear-gradient(#2a1111, #111);
    box-shadow: inset 3px 0 0 var(--red);
}

.badge {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 99px;
    background: linear-gradient(#c91616, #650909);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* =========================================================
   SERVER STATUS
========================================================= */

.server-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.server-pill::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.server-pill.online {
    color: var(--green);
}

.server-pill.online::before {
    animation: pill-flash 1.4s infinite ease-in-out;
}

.server-pill.maintenance {
    color: var(--gold);
}

.server-pill.maintenance::before {
    animation: pill-flash 2s infinite ease-in-out;
}

.server-pill.offline {
    color: var(--red);
}

.server-status {
    padding: 18px 10px;
    text-align: center;
}

#serverStatusText {
    display: block;
    transform: translateY(-1px);
}

.server-status h3 {
    margin: 0 0 10px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 24px;
    border-bottom: 1px solid var(--red);
}

.status-online {
    color: #fff200;
    font-weight: 900;
}

.status-value {
    color: #fff;
    font-weight: 900;
}

@keyframes pill-flash {
    0%, 100% {
        opacity: 0.65;
        box-shadow: 0 0 4px currentColor;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        box-shadow:
            0 0 4px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
        transform: scale(1.0);
    }
}

/* =========================================================
   LAYOUT
========================================================= */

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

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.section-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

/* =========================================================
   PANELS
========================================================= */

.panel,
.stat-card,
.news-card,
.feature-card {
    background: var(--panel);
    border: 1px solid #202020;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel {
    margin-bottom: 14px;
}

.panel-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: linear-gradient(#252525, #121212);
    border-bottom: 1px solid #292929;
    box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.05);
    color: #aaa;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.panel-body {
    padding: 14px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid #571010;
    background:
        linear-gradient(
        90deg,
        rgba(5, 5, 5, 0.92),
        rgba(5, 5, 5, 0.60) 48%,
        rgba(5, 5, 5, 0.30)
        ),
        linear-gradient(
        rgba(110, 20, 16, 0.42),
        rgba(20, 4, 4, 0.70)
        ),
        url('https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=1800&q=80')
        center / cover;
    margin-bottom: 14px;
}

.hero.center {
    place-items: center;
    text-align: center;
    background:
        linear-gradient(
        rgba(5, 5, 5, 0.55),
        rgba(5, 5, 5, 0.82)
        ),
        linear-gradient(
        rgba(110, 20, 16, 0.44),
        rgba(20, 4, 4, 0.70)
        ),
        url('https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=1800&q=80')
        center / cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.hero-content img {
    width: 60%;
    margin-bottom: 12px;
}

.hero.center .hero-content {
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    margin: 0 0 13px;
    color: var(--cream);
    font-size: clamp(38px, 5vw, 76px);
    line-height: .92;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #000,
        0 0 18px rgba(0, 0, 0, 0.9);
}

.hero h1 strong {
    color: var(--red);
}

.hero p {
    margin: 0 0 24px;
    color: #c7c7c7;
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero.center .hero-actions {
    justify-content: center;
}

/* =========================================================
   HERO SLIDER
========================================================= */

.hero-slider {
    position: relative;
    min-height: 350px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #571010;
    background: #050505;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
}

.hero-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.hero-slider .hero-content {
    position: relative;
    z-index: 2;
    justify-self: center;
    align-self: center;
    width: min(760px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
}

.hero-slider .eyebrow {
    margin-bottom: 12px;
}

.hero-slider h1 {
    margin: 0 auto 13px;
    max-width: 100%;
    color: var(--cream);
    font-size: clamp(30px, 4.2vw, 62px);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    text-shadow:
        0 3px 0 #000,
        0 0 18px rgba(0, 0, 0, .9);
}

.hero-slider h1 strong {
    display: inline;
    color: var(--red);
}

.hero-slider p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: #c7c7c7;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.hero-slider .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    cursor: pointer;
}

.hero-slider-dots button.active {
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 0 12px rgba(201, 22, 22, .85);
}

.hero-slide-base {
    display: grid;
    place-items: end center;
    align-items: end;
    justify-items: center;
}

.hero-slide-base .hero-content {
    align-self: end;
    justify-self: center;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 24px 46px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-slide-base .hero-content:empty {
    display: none;
}

.hero-slide-base .eyebrow,
.hero-slide-base h1,
.hero-slide-base p,
.hero-slide-base .hero-actions {
    display: none;
}

.hero-slide-base .hero-base-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(217, 179, 108, .35);
    background: rgba(0, 0, 0, .68);
    color: var(--cream);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(0, 0, 0, .55);
}

.hero-slide-base .hero-base-credit span {
    color: var(--muted);
}

.hero-slide-base .hero-base-credit strong {
    color: var(--gold);
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 14px 0;
}

.stat-card {
    padding: 18px;
    text-align: center;
}

.stat-number {
    display: block;
    margin-bottom: 4px;
    color: var(--cream);
    font-size: 28px;
    font-weight: 900;
}

.stat-number.bloodmoon {
    color: #ff3300;
    text-shadow: 0 0 10px rgba(255, 51, 0, .75);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stats-list {
    display: grid;
    gap: 7px;
}

.stats-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.stats-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.stats-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stats-list strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.stats-list strong a {
    color: #fff;
}

.stats-list strong a:hover {
    color: var(--cream);
}

.stats-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.stats-panel-grid div {
    padding: 11px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    text-align: center;
}

.stats-panel-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.stats-panel-grid strong a {
    color: #fff;
}

.stats-panel-grid strong a:hover {
    color: var(--cream);
}

.stats-panel-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.stats-newest-user strong {
    font-size: 15px;
}

/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-card {
    overflow: hidden;
}

.feature-icon {
    height: 96px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #282828;
    background:
        radial-gradient(
        circle at center,
        rgba(138, 20, 20, 0.28),
        rgba(0, 0, 0, 0.2) 48%,
        rgba(0, 0, 0, 0.62)
        );
    font-size: 44px;
}

.feature-card h3,
.news-card h3 {
    margin: 0 0 8px;
    color: var(--cream);
    font-size: 18px;
}

.feature-card p,
.news-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   NEWS
========================================================= */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #262626;
    background:
        linear-gradient(
        rgba(20, 20, 20, 0.92),
        rgba(10, 10, 10, 0.96)
        ),
        radial-gradient(
        circle at top right,
        rgba(180, 20, 20, 0.18),
        transparent 45%
        );
    transition: .18s ease;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(#ff2d2d, #5f0b0b);
}

.news-card:hover {
    border-color: #5a1515;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(120, 12, 12, 0.28);
}

.news-meta {
    margin-bottom: 10px;
    color: #d9b36c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0 0 10px;
    color: #f0e2bc;
    font-size: 24px;
    font-weight: 900;
}

.news-card p {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   SIDEBAR
========================================================= */

.side-list {
    display: grid;
    gap: 8px;
}

.side-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #2a2a2a;
    background: linear-gradient(#1e1e1e, #111);
    color: #bfbfbf;
    font-size: 13px;
    font-weight: 800;
}

.side-link:hover,
.side-link.active {
    color: #fff;
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
    box-shadow: inset 3px 0 0 var(--red);
}

/* =========================================================
   WIDE CARDS
========================================================= */

.wide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.wide-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border: 1px solid #262626;
    background:
        linear-gradient(
        rgba(20, 20, 20, 0.20),
        rgba(8, 8, 8, 0.92)
        ),
        radial-gradient(
        circle at top,
        rgba(145, 20, 20, 0.35),
        transparent 52%
        );
}

.wide-card h3 {
    margin: 0 0 6px;
    color: var(--cream);
    font-size: 20px;
}

.wide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   FORUM
========================================================= */

.forum-page {
    display: grid;
    gap: 14px;
}

.forum-category-desc {
    padding: 12px 14px;
    border-bottom: 1px solid #202020;
    background: rgba(8, 8, 8, .35);
    color: var(--muted);
    font-size: 13px;
}

.forum-board-list,
.forum-topic-list,
.forum-post-list {
    display: grid;
}

.forum-post-list {
    gap: 14px;
    margin-bottom: 14px;
}

.forum-board-row,
.forum-topic-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #202020;
    color: var(--text);
    transition: .18s ease;
}

.forum-board-row {
    grid-template-columns: 54px minmax(0, 1fr) 90px 90px 230px;
}

.forum-topic-row {
    grid-template-columns: 54px minmax(0, 1fr) 90px 90px 200px;
}

.forum-board-row:last-child,
.forum-topic-row:last-child {
    border-bottom: 0;
}

.forum-board-row:hover,
.forum-topic-row:hover {
    background:
        linear-gradient(90deg, rgba(120, 10, 10, .20), transparent),
        rgba(255, 255, 255, .02);
}

.forum-board-icon,
.forum-topic-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #303030;
    background: radial-gradient(circle at center, rgba(138, 20, 20, .28), rgba(0, 0, 0, .72));
    font-size: 20px;
}

.forum-board-title,
.forum-topic-title {
    color: var(--cream);
    font-weight: 900;
}

.forum-board-title {
    font-size: 15px;
}

.forum-topic-title {
    font-size: 15px;
}

.forum-board-desc,
.forum-topic-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.forum-topic-meta {
    font-size: 12px;
}

.forum-board-stats,
.forum-topic-stats {
    text-align: center;
}

.forum-board-stats strong,
.forum-topic-stats strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.forum-board-stats span,
.forum-topic-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.forum-board-last,
.forum-topic-last {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.forum-board-last strong,
.forum-topic-last strong {
    display: block;
    margin-bottom: 4px;
    color: #d9d9d9;
}

.forum-board-last strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-empty {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.forum-post {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border: 1px solid #202020;
    background: var(--panel);
}

.forum-post-user {
    padding: 18px 14px;
    border-right: 1px solid #202020;
    background: rgba(8, 8, 8, .35);
    text-align: center;
}

.forum-post-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border: 1px solid #3a1515;
    background: radial-gradient(circle at center, rgba(201, 22, 22, .25), rgba(0, 0, 0, .78));
    color: var(--cream);
    font-size: 28px;
    font-weight: 900;
}

.forum-post-user strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cream);
}

.forum-post-user span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.forum-post-content {
    min-width: 0;
}

.forum-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #202020;
    background: linear-gradient(#1b1b1b, #101010);
    color: var(--muted);
    font-size: 12px;
}

/* =========================================================
   FORUM ACTIONS
========================================================= */

.forum-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.forum-actions form {
    margin: 0;
}

.forum-actions-icons {
    gap: 7px;
}

.forum-actions-icons form {
    display: inline-flex;
}

/* Große Icon Buttons, z.B. Topic-Actions */
.forum-icon-action {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #303030;
    background: linear-gradient(#1f1f1f, #101010);
    color: #bdbdbd;
    cursor: pointer;
    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.forum-icon-action .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.forum-icon-action:hover {
    color: #fff;
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
    box-shadow: inset 3px 0 0 var(--red);
}

.forum-icon-action.primary {
    color: #fff;
    border-color: #9a1515;
    background: linear-gradient(#c51616, #620b0b);
}

.forum-icon-action.primary:hover {
    color: #fff;
    border-color: #d71919;
    background: linear-gradient(#d71919, #6b0b0b);
    box-shadow: inset 3px 0 0 #ff2525;
}

.forum-icon-action.danger {
    color: #fff;
    border-color: #7c1111;
    background: linear-gradient(#9b1111, #400808);
}

.forum-icon-action.danger:hover {
    color: #fff;
    border-color: #ff2525;
    background: linear-gradient(#c51616, #620b0b);
    box-shadow: inset 3px 0 0 #ff2525;
}

/* Kleine Icon Buttons in Beiträgen */
.forum-post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.forum-post-actions form {
    display: inline-flex;
    margin: 0;
}

.forum-post-actions .forum-icon-action {
    width: 28px;
    height: 28px;
}

.forum-post-actions .forum-icon-action .material-symbols-outlined {
    font-size: 17px;
}

.forum-post-text {
    padding: 18px 14px;
    color: #d6d6d6;
    line-height: 1.65;
}

.forum-icon-action.is-pinned,
.forum-icon-action.active-pin {
    color: var(--gold);
    border-color: rgba(217, 179, 108, .55);
    background: linear-gradient(#30250f, #151006);
    box-shadow: inset 3px 0 0 var(--gold);
}

.forum-icon-action.is-pinned:hover,
.forum-icon-action.active-pin:hover {
    color: #fff0bf;
    border-color: var(--gold);
    background: linear-gradient(#4a3512, #1d1406);
    box-shadow:
        inset 3px 0 0 var(--gold),
        0 0 12px rgba(217, 179, 108, .22);
}

.forum-icon-action.is-locked {
    color: #ff7a7a;
    border-color: rgba(255, 80, 80, .45);
    background: linear-gradient(#331111, #160808);
    box-shadow: inset 3px 0 0 #d71919;
}

.forum-icon-action.is-locked:hover {
    color: #ffd0d0;
    border-color: #d71919;
    background: linear-gradient(#541414, #1f0808);
    box-shadow:
        inset 3px 0 0 #d71919,
        0 0 12px rgba(215, 25, 25, .25);
}

.forum-icon-action.is-muted {
    color: #888;
}

.forum-icon-action.is-muted:hover {
    color: #fff;
}

.forum-admin-title-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-admin-title-actions form,
.forum-admin-actions form {
    margin: 0;
}

.forum-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #202020;
    background: rgba(8, 8, 8, .18);
}

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

.forum-admin-row:hover {
    background:
        linear-gradient(90deg, rgba(120, 10, 10, .20), transparent),
        rgba(255, 255, 255, .02);
}

.forum-admin-row strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cream);
    font-size: 14px;
    font-weight: 900;
}

.forum-admin-row span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.forum-admin-status {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.forum-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

@media (max-width: 720px) {
    .forum-admin-row {
        grid-template-columns: 1fr;
    }

    .forum-admin-status {
        text-align: left;
    }

    .forum-admin-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   ALERT
========================================================= */

.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 46px 13px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 10px 22px rgba(0, 0, 0, .35);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: .85;
}

.alert-success {
    color: #c8f7d0;
    border-color: #215c32;
    background:
        linear-gradient(90deg, rgba(26, 95, 45, .96), rgba(14, 38, 24, .96)),
        radial-gradient(circle at top left, rgba(84, 255, 128, .22), transparent 45%);
}

.alert-danger {
    color: #ffd0d0;
    border-color: #6b1717;
    background:
        linear-gradient(90deg, rgba(105, 18, 18, .96), rgba(42, 12, 12, .96)),
        radial-gradient(circle at top left, rgba(255, 50, 50, .25), transparent 45%);
}

.alert-warning {
    color: #ffe7a8;
    border-color: #73591b;
    background:
        linear-gradient(90deg, rgba(115, 78, 20, .96), rgba(45, 32, 13, .96)),
        radial-gradient(circle at top left, rgba(255, 196, 52, .25), transparent 45%);
}

.alert-info {
    color: #c9ecff;
    border-color: #1d526d;
    background:
        linear-gradient(90deg, rgba(24, 78, 104, .96), rgba(12, 36, 50, .96)),
        radial-gradient(circle at top left, rgba(54, 173, 255, .22), transparent 45%);
}

.alert-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 0 6px currentColor);
}

.alert-message {
    min-width: 0;
}

.alert-message ul {
    margin: 0;
    padding-left: 18px;
}

.alert .btn-close {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    background: rgba(0, 0, 0, .18);
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: .15s ease;
}

.alert .btn-close:hover {
    background: rgba(255, 255, 255, .08);
    transform: scale(1.05);
}

.alert.fade.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
}

.alert.fade.hide {
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: all .25s ease;
}

/* =========================================================
   PROFILE
========================================================= */

.profile-view {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #333;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .25), transparent 58%),
        #090909;
    color: var(--cream);
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.profile-info h2 {
    margin: 0 0 14px;
    color: var(--cream);
    font-size: 28px;
    text-transform: uppercase;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.profile-meta div {
    padding: 12px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
}

.profile-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-meta strong {
    color: #fff;
    font-size: 14px;
}

.profile-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--group-color), transparent 35%);
    background: linear-gradient(#181818, #101010);
    color: var(--group-color);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: inset 3px 0 0 var(--group-color);
}

/* =========================================================
   ADMIN / TABLES
========================================================= */

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

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

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #252525;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: #111;
    color: var(--cream);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.admin-table td {
    color: var(--text);
}

.admin-table tr:hover td {
    background: rgba(201, 22, 22, .08);
}

/* =========================================================
   USER PANEL
========================================================= */

.user-panel .panel-body {
    padding: 14px;
}

.user-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.user-panel-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .32), transparent 58%),
        linear-gradient(#171717, #090909);
    color: var(--cream);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.user-panel-name {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-panel-name a {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-panel-name span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.user-panel-wallet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.user-panel-wallet div {
    padding: 10px 8px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    text-align: center;
}

.user-panel-wallet strong {
    display: block;
    margin: 4px 0 2px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.user-panel-wallet small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-panel-links {
    display: grid;
    gap: 7px;
}

.user-panel-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid #2a2a2a;
    background: linear-gradient(#1e1e1e, #111);
    color: #bfbfbf;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-panel-links a:hover {
    color: #fff;
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
    box-shadow: inset 3px 0 0 var(--red);
}

.user-panel-links b {
    color: var(--red);
    font-size: 16px;
    line-height: 1;
}

/* =========================================================
   NEWEST USERS
========================================================= */

.newest-users-list {
    display: grid;
    gap: 8px;
}

.newest-user {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    color: inherit;
}

.newest-user:hover {
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
    box-shadow: inset 3px 0 0 var(--red);
}

.newest-user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #333;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .28), transparent 58%),
        #090909;
    color: var(--cream);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.newest-user-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.newest-user-info strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.newest-user-info span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.newest-user b {
    color: var(--red);
    font-size: 16px;
}

/* =========================================================
   ONLINE USERS
========================================================= */

.online-users-panel .panel-body {
    display: grid;
    gap: 12px;
}

.online-summary {
    padding: 12px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    text-align: center;
}

.online-summary strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.online-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.online-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-user {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #2a2a2a;
    background: linear-gradient(#1e1e1e, #111);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.online-user:hover {
    border-color: var(--red);
    background: linear-gradient(#3a1111, #151111);
}

.online-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #252525;
}

.online-legend span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

/* =========================================================
   CHAT
========================================================= */

.chat-panel .panel-body {
    padding: 0;
}

.chat-messages {
    height: 360px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.chat-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #333;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .28), transparent 58%),
        #090909;
    color: var(--cream);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.chat-content {
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.chat-user {
    font-size: 12px;
    font-weight: 900;
}

.chat-meta span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.chat-text {
    color: #d7d7d7;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #252525;
    background: rgba(10, 10, 10, .72);
}

.chat-login-info,
.chat-empty {
    padding: 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* =========================================================
   MAINTENANCE
========================================================= */

.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at center top, rgba(190, 44, 28, .22), transparent 35%),
        linear-gradient(rgba(4, 4, 4, .74), rgba(4, 4, 4, .92));
}

.maintenance-card {
    padding: 28px;
    border: 1px solid #571010;
    background:
        linear-gradient(rgba(20, 20, 20, .96), rgba(8, 8, 8, .98)),
        radial-gradient(circle at top, rgba(201, 22, 22, .22), transparent 45%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .75),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    text-align: center;
}

.maintenance-logo {
    margin-bottom: 18px;
}

.maintenance-logo img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.maintenance-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid #733;
    background:
        radial-gradient(circle at center, rgba(201, 22, 22, .35), transparent 58%),
        linear-gradient(#1b1b1b, #090909);
    color: var(--gold);
    box-shadow: 0 0 24px rgba(201, 22, 22, .25);
}

.maintenance-icon .material-symbols-outlined {
    font-size: 38px;
}

.maintenance-card h1 {
    margin: 0 0 12px;
    color: var(--cream);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #000,
        0 0 18px rgba(0, 0, 0, .9);
}

.maintenance-card p {
    margin: 0 0 16px;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.6;
}

.maintenance-note {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid rgba(217, 179, 108, .28);
    background: rgba(0, 0, 0, .35);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-form {
    text-align: left;
}

.maintenance-form .btn {
    width: 100%;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: min(var(--page-width), calc(100% - 48px));
    margin: 0 auto 15px;
    padding: 18px;
    border: 1px solid #202020;
    border-top: 1px solid #3a1111;
    background: rgba(10, 10, 10, 0.82);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    box-shadow: var(--shadow);
}

/* =========================================================
   GALLERY MODAL
========================================================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(4px);
}

.gallery-modal-box {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #3a1515;
    background: linear-gradient(#151515, #080808);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .85),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: scale(.96);
    transition: transform .18s ease;
}

.gallery-modal.active .gallery-modal-box {
    transform: scale(1);
}

.gallery-modal-box img {
    width: 100%;
    max-height: calc(100vh - 140px);
    display: block;
    object-fit: contain;
    background: #050505;
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #4b1c1c;
    background: linear-gradient(#241010, #100909);
    color: #d86b6b;
    cursor: pointer;
    transition: .16s ease;
}

.gallery-modal-close:hover {
    color: #fff;
    border-color: #b71c1c;
    background: linear-gradient(#7a1717, #280808);
    box-shadow:
        inset 3px 0 0 #d71919,
        0 0 12px rgba(215, 25, 25, .25);
}

.gallery-modal-close .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.gallery-modal-title {
    padding: 9px 10px;
    border: 1px solid #252525;
    background: rgba(0, 0, 0, .45);
    color: var(--cream);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.gallery-modal-open {
    overflow: hidden;
}

/* =========================================================
   DOWNLOADS / WALLPAPERS
========================================================= */

.download-list {
    display: grid;
    gap: 14px;
}

.download-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #202020;
    background: var(--panel);
}

.download-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    background: #080808;
}

.download-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease, filter .18s ease;
}

.download-thumb:hover img {
    transform: scale(1.04);
    filter: brightness(1.12);
}

.download-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.download-content h2 {
    margin: 0;
    color: var(--cream);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.download-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.download-meta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
}

.download-meta span {
    padding: 7px 10px;
    border: 1px solid #252525;
    background: linear-gradient(#181818, #101010);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.download-meta strong {
    color: #fff;
}

.download-actions {
    margin-top: auto;
    padding-top: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

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

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

    .stats-grid,
    .section-grid,
    .section-grid.two,
    .wide-cards,
    .admin-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-board-row,
    .forum-topic-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .forum-board-stats,
    .forum-topic-stats,
    .forum-board-last,
    .forum-topic-last {
        display: none;
    }
}

@media (max-width: 720px) {
    .download-item {
        grid-template-columns: 1fr;
    }

    .download-thumb {
        aspect-ratio: 16 / 9;
    }

    .download-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .download-actions .btn {
        width: 100%;
    }

    .content-page .panel-body {
        padding: 10px;
    }

    .content-box h1 {
        font-size: 23px;
    }

    .content-actions,
    .pagination {
        display: grid;
        grid-template-columns: 1fr;
    }

    .content-actions .btn,
    .pagination .btn,
    .pagination-info {
        width: 100%;
    }

    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 190px;
    }

    .site-shell,
    .footer {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .nav {
        align-items: center;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        justify-content: center;
    }

    .nav-item:hover > .nav-link,
    .nav-item.active > .nav-link,
    .nav-link:hover,
    .nav-link.active {
        box-shadow:
            inset 3px 0 0 var(--red),
            inset -3px 0 0 var(--red);
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        margin-top: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .nav-item:hover > .nav-dropdown {
        display: block;
    }

    .form-grid,
    .stats-grid,
    .section-grid,
    .section-grid.two,
    .wide-cards,
    .admin-dashboard,
    .profile-meta {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .auth-actions,
    .profile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .form-actions .btn,
    .auth-actions .btn,
    .profile-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .forum-actions:not(.forum-actions-icons) {
        display: grid;
        grid-template-columns: 1fr;
    }

    .forum-actions:not(.forum-actions-icons) .btn {
        width: 100%;
        min-width: 0;
    }

    .forum-actions-icons {
        display: flex;
        justify-content: center;
    }

    .forum-actions-icons .forum-icon-action {
        width: 38px;
        min-width: 38px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content img {
        width: 100%;
    }

    .hero-content > .hero-actions {
        display: none;
    }

    .hero-content,
    .hero-slider .hero-content {
        padding: 15px;
    }

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

    .forum-post-user {
        border-right: 0;
        border-bottom: 1px solid #202020;
    }

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

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }
}