* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --primary-color: #00ff00;
    --secondary-color: #0099ff;
    --accent-color: #ff00ff;
    --text-dark: #0a0e27;
    --text-light: #00ff88;
    --bg-light: #0a0e27;
    --bg-white: #0f1419;
    --border-color: #00ff00;
    --success-color: #00ff00;
    --warning-color: #ffff00;
}

body {
    font-family: 'Courier New', 'Consolas', 'Courier', monospace;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ============ Matrix Background ============ */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(0, 255, 150, 0.12), rgba(0, 0, 0, 0.95));
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.matrix-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.05) 0px,
        rgba(0, 255, 0, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.3;
    animation: matrix-flicker 0.12s infinite;
    pointer-events: none;
}

.matrix-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 45%, rgba(0, 255, 0, 0.04) 100%);
    pointer-events: none;
}

@keyframes matrix-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: none;
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        opacity: 0.8;
    }
}

.matrix-char {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(120, 255, 120, 0.35);
    font-weight: 700;
    opacity: 0.08;
    text-shadow: 0 0 10px rgba(0, 255, 140, 0.2);
    font-size: 14px;
    letter-spacing: 0.35em;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

.matrix-char.active {
    opacity: 0.25;
    animation: matrix-fall linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 160, 0.35));
}

/* ============ Navigation ============ */
.navbar {
    background: rgba(5, 10, 20, 0.95);
    color: var(--primary-color);
    padding: 0.9rem 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 0 30px rgba(0, 255, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 0, 0.18);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.65rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(0, 255, 0, 0.6), 0 0 28px rgba(0, 255, 0, 0.16);
    letter-spacing: 0.16em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* ============ Dropdown Nav ============ */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(5,10,18,0.98);
    border: 1px solid rgba(0,255,0,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 18px rgba(0,255,0,0.04);
    border-radius: 8px;
    padding: 0.35rem 0.25rem;
    list-style: none;
    z-index: 2000;
    opacity: 0;
    transform-origin: top left;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}
.dropdown-menu li { padding: 0; }
.dropdown-menu a {
    display: block;
    padding: 0.45rem 0.85rem;
    color: rgba(225,255,225,0.92);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}
.dropdown-menu a:hover {
    background: rgba(0,255,0,0.06);
    color: #fff;
}
.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Mobile: make dropdowns act like accordions */
@media (max-width: 720px) {
    .nav-container { gap: 0.5rem; }
    .nav-links { width: 100%; justify-content: flex-start; }
    .dropdown-menu { position: static; transform: none; opacity: 1; display: none; pointer-events: auto; padding-left: 0.5rem }
    .dropdown.open .dropdown-menu { display: block; }
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: rgba(225, 255, 225, 0.88);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(0, 255, 0, 0.14);
    border-color: rgba(0, 255, 0, 0.24);
    box-shadow: 0 0 14px rgba(0, 255, 0, 0.12);
}

.nav-links a.active {
    background: rgba(0, 255, 0, 0.22);
    border-color: rgba(0, 255, 0, 0.36);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.25);
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 255, 0, 0.95), rgba(0, 255, 0, 0.28));
}

.btn-enter,
.nav-auth-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.14), rgba(0, 255, 0, 0.06));
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 0, 0.28);
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 14px rgba(0, 255, 0, 0.18), inset 0 0 8px rgba(0, 255, 0, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-enter:hover,
.nav-auth-item a:hover {
    box-shadow: 0 0 24px rgba(0, 255, 0, 0.55), inset 0 0 10px rgba(0, 255, 0, 0.18);
    background: rgba(0, 255, 0, 0.18);
    text-shadow: 0 0 20px var(--primary-color), 0 0 36px rgba(0, 255, 0, 0.65);
    transform: translateY(-1px);
}

.btn-hall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.18), rgba(255, 0, 0, 0.08));
    color: #ff4b4b;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255, 0, 0, 0.28);
    text-shadow: 0 0 4px rgba(255, 75, 75, 0.7);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.16), inset 0 0 8px rgba(255, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hall:hover {
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.45), inset 0 0 10px rgba(255, 0, 0, 0.18);
    background: rgba(255, 0, 0, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    color: #c6ffb4;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 0, 0.18);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.12);
    font-size: 0.92rem;
}

.nav-status::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #3cff3c;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    text-shadow: 0 0 5px currentColor;
}

.btn-primary {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6), inset 0 0 10px rgba(0, 255, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.8);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============ Hero Section ============ */
.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020908;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 0, 0.24);
    padding: 1.8rem 0;
    box-shadow: inset 0 0 120px rgba(0, 255, 0, 0.05);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 255, 0, 0.03), transparent 40%, rgba(0, 255, 0, 0.04));
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 100% 8px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
    animation: scanline-shift 6s linear infinite;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(0, 255, 0, 0.14), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(0, 153, 255, 0.12), transparent 18%),
        radial-gradient(circle at 50% 55%, rgba(255, 0, 0, 0.08), transparent 20%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    background-blend-mode: screen;
    z-index: 0;
    animation: matrix-glow 4.5s ease-in-out infinite;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 255, 0, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    opacity: 0.16;
    pointer-events: none;
}

@keyframes matrix-glow {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.65;
    }
}

@keyframes scanline-shift {
    0% { background-position: 0 0; }
    100% { background-position: 0 8px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    text-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(0, 255, 0, 0.5);
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 0.75rem;
    font-weight: 900;
    color: #7cff7c;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 26px rgba(0, 255, 0, 0.75), 0 0 50px rgba(0, 255, 0, 0.45);
    animation: neon-flicker 2.8s infinite;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    opacity: 0.92;
    color: #b4ffb4;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.22);
}

.hero-badge {
    display: inline-grid;
    place-items: center;
    margin-bottom: 1.2rem;
    padding: 0.58rem 1.1rem;
    background: rgba(255, 0, 0, 0.12);
    color: #ff8b8b;
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-radius: 999px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.82rem;
    line-height: 1;
    min-width: 18rem;
    min-height: 3rem;
    box-shadow: 0 0 22px rgba(255, 0, 0, 0.16);
    position: relative;
    overflow: hidden;
    animation: badge-pulse 1.6s ease-out 1, badge-flicker 2.8s infinite ease-in-out;
}

.hero-badge .badge-text {
    grid-area: 1 / 1;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s ease;
}

.hero-badge .badge-text-alt {
    opacity: 0;
    color: #ff4d4d;
}

.hero-badge .badge-text-primary {
    animation: badge-swap-primary 5s infinite ease-in-out;
}

.hero-badge .badge-text-alt {
    animation: badge-swap-alt 5s infinite ease-in-out;
}

@keyframes badge-swap-primary {
    0%, 40%, 100% { opacity: 1; }
    45%, 90% { opacity: 0; }
}

@keyframes badge-swap-alt {
    0%, 40%, 100% { opacity: 0; }
    45%, 90% { opacity: 1; }
}

.hero-badge::before,
.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 25%, rgba(255, 0, 0, 0.1));
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

.hero-badge::after {
    background: linear-gradient(180deg, transparent 40%, rgba(255, 0, 0, 0.18) 50%, transparent 62%);
    opacity: 0.18;
}

.hero-badge .badge-text {
    z-index: 1;
}

@keyframes badge-flicker {
    0%, 100% { opacity: 1; transform: translateX(0); }
    45% { opacity: 0.88; transform: translateX(-1px); }
    50% { opacity: 0.65; transform: translateX(1px); }
    55% { opacity: 0.9; transform: translateX(0); }
}

@keyframes badge-pulse {
    0% { transform: scale(0.96); box-shadow: 0 0 10px rgba(255, 0, 0, 0.2); }
    40% { transform: scale(1.05); box-shadow: 0 0 32px rgba(255, 0, 0, 0.45); }
    100% { transform: scale(1); box-shadow: 0 0 22px rgba(255, 0, 0, 0.16); }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-tag {
    display: inline-flex;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(0, 255, 0, 0.08);
    color: #82ff82;
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 0, 0.18);
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.12);
}

.hero-terminal {
    margin-top: 2rem;
    border: 1px solid rgba(0, 255, 0, 0.22);
    background: rgba(0, 0, 0, 0.85);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 34px rgba(0, 255, 0, 0.24);
    width: 100%;
    max-width: 520px;
}

.terminal-header {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #b0ffb0;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(0, 255, 0, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-terminal pre {
    margin: 0;
    padding: 1rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #8cff8c;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.85);
    text-shadow: 0 0 12px rgba(0, 255, 0, 0.15);
}

.hero-terminal::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.7);
    animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 26px rgba(0,255,0,0.8), 0 0 44px rgba(0,255,0,0.4); }
    20%, 24%, 55% { opacity: 0.75; text-shadow: 0 0 10px rgba(0,255,0,0.5); }
}

.account-summary {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
}

.owner-profile {
    padding: 1.5rem 0 0;
    display: flex;
    justify-content: center;
}

.owner-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 7rem 0.9rem 0.9rem;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#owner-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.48));
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.owner-card img {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255, 220, 110, 0.65);
    box-shadow: 0 0 24px rgba(255, 205, 95, 0.45);
}

.owner-details {
    flex: 1;
    color: #e8ffe8;
    /* add a subtle dark backdrop so text remains readable over scanlines */
    background: rgba(0, 0, 0, 0.36);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
}

.owner-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #eaf7d8;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(0, 255, 128, 0.06);
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    text-shadow: none;
    box-shadow: none;
}

.owner-details h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: 0.02em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#ownerTitle,
.owner-title {
    margin: 0.3rem 0 0.6rem;
    color: #c8ffd0;
    line-height: 1.35;
    font-size: 1.02rem;
    font-weight: 600;
    text-shadow: none;
}

.owner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.owner-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(0, 255, 0, 0.08);
    color: #c8ffd0;
    font-size: 0.9rem;
}

.owner-profile .btn {
    align-self: flex-start;
}

/* Make owner buttons stand out and readable */
.owner-profile .btn-primary {
    background: #00ff66;
    color: #021;
    border: 1px solid rgba(0, 200, 80, 0.9);
    box-shadow: 0 8px 30px rgba(0, 255, 120, 0.12);
    padding: 0.9rem 1.1rem;
}

.owner-profile .btn-secondary {
    background: rgba(0, 255, 102, 0.08);
    color: #c8ffd0;
    border: 1px solid rgba(0,255,0,0.08);
    padding: 0.9rem 1.1rem;
}

@media (max-width: 920px) {
    .owner-card {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .owner-card img {
        width: 88px;
        height: 88px;
        margin-bottom: 0.5rem;
    }

    .owner-details {
        width: 100%;
    }

    .owner-details h3 {
        font-size: 1.3rem;
    }

    .owner-title {
        margin: 0.35rem 0 0.75rem;
        font-size: 0.92rem;
    }

    .owner-meta {
        gap: 0.65rem;
    }

    .owner-meta span {
        padding: 0.3rem 0.65rem;
        font-size: 0.8rem;
    }
}

.nav-status {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-left: 1rem;
    align-self: center;
    white-space: nowrap;
}

.nav-auth-item a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.nav-links .btn-enter {
    padding: 0.45rem 1rem;
}

.navbar .nav-links {
    align-items: center;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.nav-auth-item a:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 1rem;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        gap: 0.5rem;
    }

    .nav-links a,
    .btn-enter,
    .btn-hall,
    .nav-auth-item a {
        font-size: 0.84rem;
        padding: 0.45rem 0.75rem;
    }

    .nav-status {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
    }

    .hero {
        min-height: auto;
        padding: 1.4rem 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3.2rem);
        letter-spacing: 0.08em;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-badge {
        width: min(100%, 18rem);
        min-width: 0;
        padding-inline: 0.8rem;
        letter-spacing: 0.14em;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .hero-terminal pre {
        font-size: 0.84rem;
        padding: 0.9rem 1rem;
    }

    .account-summary,
    .owner-profile {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .account-card,
    .owner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 1rem 1rem;
    }

    .account-card img,
    .owner-card img {
        width: 84px;
        height: 84px;
    }

    .account-info,
    .owner-details {
        width: 100%;
    }

    .account-info h3,
    .owner-details h3 {
        font-size: 1.25rem;
    }

    .features-grid,
    .system-stats,
    .footer-content,
    .profile-meta,
    .profile-actions {
        grid-template-columns: 1fr;
    }

    .features-grid {
        display: grid;
    }

    .system-stats {
        display: grid;
        gap: 1rem;
    }

    .feature-card,
    .system-stat-card,
    .footer-content,
    .profile-card,
    .profile-bio,
    .profile-threads {
        width: 100%;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links a.active::after {
        margin-top: 0.2rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        gap: 0.7rem;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }

    .nav-links {
        gap: 0.35rem;
    }

    .nav-links a,
    .btn-enter,
    .btn-hall,
    .nav-auth-item a {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        min-height: 2.6rem;
        font-size: 0.72rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .hero-terminal {
        border-radius: 14px;
    }

    .hero-terminal pre {
        line-height: 1.5;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .hero-tag {
        width: 100%;
    }

    .account-summary,
    .owner-profile,
    .profile-page {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-page {
        width: calc(100% - 1rem);
    }

    .profile-card {
        padding: 1.25rem;
    }

    .profile-card .profile-banner {
        height: 140px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
        margin-top: 78px;
    }

    .account-card img,
    .owner-card img {
        margin-bottom: 0.25rem;
    }

    .owner-card .btn,
    .profile-actions .btn,
    .account-info .btn {
        width: 100%;
        text-align: center;
    }

    .nav-status,
    .account-info p,
    .owner-details p,
    .hero p,
    .hero-terminal pre {
        word-break: break-word;
    }
}

.account-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    padding: 6rem 1.1rem 1.1rem;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 22px rgba(0, 255, 0, 0.15);
    overflow: hidden;
}

.profile-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(circle at top, rgba(0, 255, 0, 0.18), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.account-card img {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.3);
}

.profile-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 3.5rem auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-card {
    position: relative;
    background: rgba(6, 11, 27, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.14);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.08);
    padding: 2rem 2rem 1.5rem;
}

.profile-card .profile-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 170px;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.profile-avatar {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 22px rgba(0, 255, 0, 0.26);
    margin-top: 90px;
    background: #0b1225;
}

.profile-content {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.profile-content h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(2rem, 2.5vw, 2.8rem);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 0, 0.12);
    background: rgba(0, 255, 0, 0.04);
    color: #b8ffac;
    font-size: 0.95rem;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.profile-bio,
.profile-threads {
    background: rgba(8, 14, 35, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
}

.profile-bio h2,
.profile-threads h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.profile-thread-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-thread-item:last-child {
    border-bottom: none;
}

.profile-thread-link {
    color: #7aff83;
    font-weight: 700;
    text-decoration: none;
}

.profile-thread-link:hover {
    color: #c8ffb2;
}

.profile-thread-meta,
.profile-joined,
.profile-email {
    color: rgba(180, 255, 170, 0.78);
    font-size: 0.95rem;
}

.profile-joined,
.profile-email {
    margin: 0.35rem 0 0;
}

.account-info h3 {
    margin-bottom: 0.45rem;
    color: var(--primary-color);
    font-size: 1.45rem;
    position: relative;
    z-index: 2;
}

.account-info p {
    position: relative;
    z-index: 2;
}

.account-info p {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.92rem;
}

#accountRank,
#profile-rank {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 0, 0.18);
    background: rgba(0, 255, 0, 0.06);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.rank-badge.rank-admin {
    color: #ff99ff;
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.25);
}

.rank-badge.rank-site-owner {
    color: #fff6b8;
    background: linear-gradient(135deg, rgba(255, 233, 125, 0.3), rgba(255, 185, 70, 0.18));
    border-color: rgba(255, 215, 100, 0.4);
    box-shadow: 0 0 18px rgba(255, 205, 95, 0.45), inset 0 0 20px rgba(255, 245, 160, 0.25);
    text-shadow: 0 0 8px rgba(255, 235, 150, 0.65);
}

.rank-badge.rank-custom {
    color: #80d8ff;
    background: rgba(0, 170, 255, 0.12);
    border-color: rgba(0, 170, 255, 0.25);
}

.rank-badge.rank-member {
    color: #aaffaa;
    background: rgba(0, 255, 0, 0.08);
    border-color: rgba(0, 255, 0, 0.18);
}

.account-summary .btn-primary {
    max-width: fit-content;
}

.hidden {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    text-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(0, 255, 0, 0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 0 30px var(--primary-color), 0 0 40px rgba(0, 255, 0, 0.55);
    animation: neon-flicker 3s infinite;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    opacity: 0.95;
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.25);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-tag {
    display: inline-flex;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(0, 255, 0, 0.08);
    color: var(--primary-color);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 0, 0.18);
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.12);
}

.hero-terminal {
    margin-top: 2rem;
    border: 1px solid rgba(0, 255, 0, 0.16);
    background: rgba(0, 0, 0, 0.72);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.18);
    width: 100%;
    max-width: 520px;
}

.terminal-header {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #b0ffb0;
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(0, 255, 0, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-terminal pre {
    margin: 0;
    padding: 1rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #a2ff9f;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.72);
}

@media (max-width: 760px) {
    .hero {
        min-height: auto;
        padding: 2rem 0 3rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .hero-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .hero-terminal {
        max-width: 100%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 0, 0.18), transparent 28%),
        radial-gradient(circle at 80% 40%, rgba(0, 153, 255, 0.12), transparent 24%),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 0, 0.03) 0px,
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72));
    z-index: 0;
    animation: matrix-glow 4.5s ease-in-out infinite;
}
@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 0 0 36px var(--primary-color), 0 0 60px rgba(0, 255, 0, 0.72);
    }
    25%, 75% {
        text-shadow: 0 0 18px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 24px var(--primary-color), 0 0 40px rgba(0, 255, 0, 0.5);
    }
}

/* ============ Features Section ============ */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.system-stats {
    max-width: 1280px;
    margin: 1.2rem auto 2.2rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.1rem;
}

.system-stat-card {
    background: linear-gradient(180deg, rgba(0, 12, 28, 0.97), rgba(1, 9, 20, 0.98));
    border: 1px solid rgba(0, 255, 0, 0.22);
    border-radius: 22px;
    padding: 1.35rem 1rem;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.system-stat-card h3 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(210, 255, 226, 0.74);
}

.system-stat-value {
    margin-top: 1rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 900;
    color: #7aff9a;
    text-shadow: 0 0 18px rgba(0, 255, 0, 0.38);
}

.home-bot-status-meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(198, 234, 206, 0.84);
    letter-spacing: 0.03em;
}

.home-bot-status-value.status-online {
    color: #3cff53;
    text-shadow: 0 0 12px rgba(0, 255, 0, 0.75), 0 0 26px rgba(0, 255, 0, 0.5);
}

.home-bot-status-value.status-offline {
    color: #ff6a6a;
    text-shadow: 0 0 10px rgba(255, 90, 90, 0.58), 0 0 22px rgba(255, 45, 45, 0.35);
}

.home-bot-status-value.status-unknown {
    color: #ffd95a;
    text-shadow: 0 0 10px rgba(255, 215, 90, 0.4);
}

@media (max-width: 920px) {
    .system-stats {
        grid-template-columns: 1fr;
    }
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.feature-card {
    background: rgba(15, 20, 25, 0.7);
    padding: 1.1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 14px rgba(0, 255, 0, 0.18), inset 0 0 8px rgba(0, 255, 0, 0.05);
    border: 2px solid rgba(0, 255, 0, 0.24);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.35), inset 0 0 10px rgba(0, 255, 0, 0.08);
    border-color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-color);
}

.feature-icon {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    text-shadow: 0 0 10px var(--primary-color);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.5);
        filter: brightness(1.2);
    }
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    text-shadow: 0 0 5px var(--text-light);
}

/* ============ About Section ============ */
.about {
    background: rgba(15, 20, 25, 0.5);
    padding: 4rem 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1), inset 0 0 20px rgba(0, 255, 0, 0.02);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-shadow: 0 0 5px var(--text-light);
}

/* ============ CTA Section ============ */
.cta {
    background: rgba(15, 20, 25, 0.9);
    color: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2), inset 0 0 20px rgba(0, 255, 0, 0.05);
    text-shadow: 0 0 15px var(--primary-color);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.4);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--text-light);
}

/* ============ Footer ============ */
.footer {
    background-color: rgba(10, 14, 39, 0.95);
    color: var(--primary-color);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 5px var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--primary-color);
}

.footer-links a:hover {
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 0, 0.5);
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ============ Forum Page ============ */
.forum-header {
    background: radial-gradient(circle at top left, rgba(0, 255, 0, 0.18), transparent 30%),
                linear-gradient(180deg, rgba(1, 6, 15, 0.98), rgba(8, 14, 28, 0.97));
    color: #d6ffdb;
    padding: 3.2rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 255, 0, 0.14);
    border-radius: 32px;
    box-shadow: 0 28px 90px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '/* system log: forum bootstrap initiated */';
    position: absolute;
    left: 1.5rem;
    top: 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: rgba(0, 255, 0, 0.35);
    letter-spacing: 0.08em;
}

.forum-header h1 {
    font-size: 3rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b9ffb9;
    text-shadow: 0 0 24px rgba(0, 255, 0, 0.32);
}

.forum-header p {
    font-size: 1.05rem;
    max-width: 860px;
    margin: 0 auto;
    opacity: 0.92;
    color: rgba(215, 255, 215, 0.82);
}

.category-page {
    max-width: 1180px;
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
}

.category-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.category-header-row > div {
    min-width: 280px;
    flex: 1;
}

.category-header-row h1 {
    font-size: clamp(2rem, 2.5vw, 2.7rem);
    color: rgba(176, 255, 176, 0.96);
    margin-bottom: 0.55rem;
}

.category-description {
    color: rgba(165, 255, 165, 0.78);
    line-height: 1.7;
    max-width: 860px;
}

.category-admin-panel {
    width: 100%;
    margin-bottom: 1.5rem;
}

.category-admin-panel .admin-panel-card {
    background: rgba(8, 12, 28, 0.96);
    border: 1px solid rgba(0, 255, 0, 0.14);
    border-radius: 22px;
    padding: 1.55rem;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.12);
}

.category-thread-form {
    display: grid;
    gap: 1rem;
}

.category-thread-form label {
    color: rgba(165, 255, 165, 0.9);
    font-size: 0.95rem;
    font-weight: 700;
}

.category-thread-form input,
.category-thread-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 0, 0.18);
    background: rgba(1, 4, 15, 0.68);
    color: rgba(222, 255, 222, 0.95);
    font-family: inherit;
    font-size: 0.98rem;
}

.category-thread-form textarea {
    min-height: 160px;
    resize: vertical;
}

.category-login-prompt {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.category-threads {
    width: 100%;
    background: rgba(10, 14, 39, 0.94);
    border: 1px solid rgba(0, 255, 0, 0.08);
    border-radius: 16px;
    padding: 0.75rem;
}

.category-thread-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.06);
}

.category-thread-row:last-child {
    border-bottom: none;
}

.category-thread-row h3 {
    margin: 0;
    font-size: 1.05rem;
}

.category-thread-row p {
    margin: 0.35rem 0 0;
    color: rgba(180, 255, 180, 0.8);
}

.category-thread-row .ctr-left,
.category-thread-row .ctr-mid,
.category-thread-row .ctr-right {
    min-width: 0;
}

.category-thread-row .ctr-right {
    margin-left: auto;
    text-align: right;
}

.category-thread-row .ctr-right .ctr-stats {
    justify-content: flex-end;
}

/* Category view styles */
.category-view {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}
.collapsed-categories .threads-list { display: none !important; }
.category-view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.category-threads {
    background: rgba(10,14,39,0.9);
    border: 1px solid rgba(0,255,0,0.08);
    border-radius: 12px;
    padding: 0.5rem;
}
.category-thread-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0,255,0,0.03);
}
.category-thread-row:last-child { border-bottom: none; }
.ctr-left .ctr-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,255,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid rgba(0,255,0,0.06);
}
.ctr-avatar-img { width:56px; height:56px; border-radius:50%; object-fit:cover; border:2px solid rgba(0,255,0,0.06); }
.ctr-mid { flex: 1; }
.ctr-title a { color: var(--primary-color); font-size: 1.05rem; font-weight:700; text-decoration:none; }
.ctr-sub { color: var(--text-light); font-size:0.9rem; margin-top:0.25rem; }
.ctr-right { text-align: right; min-width:160px; }
.ctr-time { color: var(--text-light); font-size:0.85rem; }

/* badges and right-side stats */
.ctr-badge {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 170, 255, 0.08);
    color: #80d8ff;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 170, 255, 0.08);
}

.ctr-right .ctr-stats { display:flex; gap:0.6rem; justify-content:flex-end; margin-bottom:0.45rem; }
.ctr-right .stat-item { text-align:center; min-width:64px; }
.ctr-right .stat-item strong { display:block; color:var(--primary-color); font-size:1rem; }
.ctr-right .stat-item span { display:block; color:var(--text-light); font-size:0.75rem; }

.ctr-last { display:flex; align-items:center; gap:0.6rem; justify-content:flex-end; }
.last-avatar { width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,0.02); display:flex; align-items:center; justify-content:center; color:var(--primary-color); border:1px solid rgba(0,255,0,0.06); font-weight:700; }
.last-avatar-img { width:36px; height:36px; border-radius:50%; object-fit:cover; border:1px solid rgba(0,255,0,0.06); }
.last-meta { text-align:right; }
.last-name { color: var(--text-light); font-size:0.85rem; }



.forum-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.expose-modal-card {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.expose-form {
    display: grid;
    gap: 1rem;
}

.expose-form label {
    display: grid;
    gap: 0.45rem;
    color: #ffbdbd;
    font-size: 0.93rem;
}

.expose-form input,
.expose-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.expose-form input:focus,
.expose-form textarea:focus {
    border-color: rgba(255, 0, 0, 0.45);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.2);
}

.empty-state {
    width: 100%;
    padding: 2rem 1.5rem;
    background: rgba(12, 8, 8, 0.75);
    border: 1px dashed rgba(255, 0, 0, 0.2);
    border-radius: 18px;
    color: rgba(255, 180, 180, 0.87);
    text-align: center;
    grid-column: 1 / -1;
}

.hidden {
    display: none !important;
}

.forum-admin-posts {
    width: min(980px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 0.1rem;
}

.admin-post-card {
    background: rgba(10, 14, 39, 0.96);
    border: 1px solid rgba(0, 255, 0, 0.24);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
    border-radius: 22px;
    padding: 1.75rem;
    max-width: 980px;
}

.admin-post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-close-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.admin-category-form,
.admin-thread-form {
    display: grid;
    gap: 1rem;
}

.admin-category-form label,
.admin-thread-form label {
    display: none;
}

.admin-category-form input,
.admin-category-form textarea,
.admin-thread-form select,
.admin-thread-form input,
.admin-thread-form textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 0, 0.25);
    background: rgba(0, 0, 0, 0.68);
    color: var(--primary-color);
    font-size: 1rem;
    outline: none;
}

.admin-category-form textarea,
.admin-thread-form textarea {
    resize: vertical;
    min-height: 140px;
    max-height: 240px;
}

.admin-category-form input:focus,
.admin-category-form textarea:focus,
.admin-thread-form select:focus,
.admin-thread-form input:focus,
.admin-thread-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.18);
}

.admin-thread-form button,
.admin-category-form button {
    min-height: 3.5rem;
    width: 100%;
    padding: 0 1.75rem;
    border-radius: 12px;
}

.btn-secondary {
    color: #000;
    border-color: #00ff77;
    background: #00ff77;
}

.btn-secondary:hover {
    background: #88f79c;
}

.admin-categories-manage {
    margin-top: 1.5rem;
}

.admin-categories-manage h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

#admin-categories-list {
    display: grid;
    gap: 0.75rem;
}

.admin-category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 0, 0.08);
}

.admin-category-row span {
    color: var(--primary-color);
    font-weight: 600;
}

.admin-category-row .btn {
    min-width: 96px;
    padding: 0.55rem 1rem;
    border-radius: 8px;
}

.admin-category-row .btn:hover {
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.25);
}

    .form-message {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
        color: var(--primary-color);
        font-size: 0.95rem;
        min-height: 1.4rem;
    }

    /* Admin categories management styles */
    .admin-categories-manage {
        grid-column: 1 / -1;
        margin-top: 1.25rem;
    }

    .admin-categories-manage h3 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        font-size: 1.05rem;
    }

    #admin-categories-list {
        display: grid;
        gap: 0.75rem;
    }

    .admin-category-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(0, 255, 0, 0.12);
        width: 100%;
        max-width: 540px;
    }

    .admin-category-row span {
        color: var(--primary-color);
        font-weight: 600;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-category-row .btn {
        min-width: 96px;
        padding: 0.55rem 1rem;
        border-radius: 8px;
        background: rgba(255, 51, 51, 0.95);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    min-height: 1.4rem;
}

/* Admin categories management styles */
.admin-categories-manage {
    grid-column: 1 / -1;
    margin-top: 1.25rem;
}

.admin-categories-manage h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

#admin-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.admin-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 0, 0.12);
    width: 100%;
    max-width: 540px;
}

.admin-category-row span {
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-category-row .btn {
    min-width: 96px;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: rgba(255, 51, 51, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-category-row .btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 51, 51, 1);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
}

.forum-topbar {
    max-width: min(100%, 1200px);
    margin: 1.5rem auto 0;
    padding: 1.1rem 1.4rem;
    background: rgba(12, 18, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.forum-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
}

.forum-tab {
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.forum-tab.active,
.forum-tab:hover {
    background: rgba(0, 255, 0, 0.14);
    color: #f8fff8;
    border-color: rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

.forum-tab.active {
    box-shadow: 0 12px 24px rgba(0, 255, 0, 0.18);
}

.forum-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.forum-actions a,
.forum-actions button {
    min-width: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-btn.primary {
    min-width: 140px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.95), rgba(0, 200, 170, 0.95));
    color: #05110b;
    border-color: rgba(0, 255, 0, 0.45);
    box-shadow: 0 14px 28px rgba(0, 255, 0, 0.22);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.action-btn.hall-link {
    min-width: 160px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.92), rgba(180, 0, 0, 0.9));
    color: #fff;
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 14px 28px rgba(255, 0, 0, 0.2);
}

.action-btn.hall-link:hover {
    background: linear-gradient(135deg, rgba(255, 40, 40, 1), rgba(200, 0, 0, 0.95));
    box-shadow: 0 16px 32px rgba(255, 0, 0, 0.35);
}

.action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1120px) {
    .forum-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .forum-topbar {
        padding: 1rem 1.25rem;
        margin-bottom: 1rem;
    }

    .forum-tab {
        padding: 0.7rem 0.95rem;
        min-width: 100px;
        font-size: 0.88rem;
    }

    .action-btn {
        min-width: 100px;
        padding: 0 0.9rem;
        font-size: 0.88rem;
    }

    .forum-announcements,
    .forum-stats,
    .forum-content {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .forum-topbar {
        flex-wrap: wrap;
    }

    .forum-tabs,
    .forum-actions {
        width: 100%;
    }

    .forum-tabs {
        justify-content: flex-start;
    }

    .forum-actions {
        justify-content: flex-start;
    }
}


.forum-header {
    max-width: 1320px;
    margin: 2rem auto 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, rgba(2, 6, 20, 0.97), rgba(8, 14, 30, 0.96));
    border: 1px solid rgba(0, 255, 0, 0.08);
    border-radius: 32px;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.forum-header h1 {
    color: #e8ffe8;
    font-size: 3rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.forum-header p {
    color: rgba(220, 255, 220, 0.75);
    font-size: 1.05rem;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

.promo-boxes {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
}

.promo-box {
    background: rgba(4, 12, 10, 0.92);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 24px;
    padding: 1.4rem 1.4rem;
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 130px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 255, 0, 0.18);
}

.promo-box::before,
.promo-box::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.promo-box::before {
    background: linear-gradient(180deg, rgba(0, 255, 0, 0.06), transparent 40%);
    mix-blend-mode: screen;
}

.promo-box::after {
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 16px;
    opacity: 0.45;
}

.promo-box-title {
    position: relative;
    z-index: 1;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a8ff9c;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 14px rgba(168, 255, 156, 0.24);
}

.promo-box-title::after {
    content: '▌';
    position: absolute;
    right: -1.25rem;
    top: 0;
    color: rgba(168, 255, 156, 0.35);
    animation: blinkCursor 1.5s steps(2, start) infinite;
}

@keyframes blinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.promo-box-text {
    position: relative;
    z-index: 1;
    color: rgba(180, 255, 180, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.03em;
    font-family: 'Roboto Mono', 'Courier New', monospace;
}

.promo-box-warning {
    border-color: rgba(255, 70, 70, 0.28);
    background: linear-gradient(180deg, rgba(10, 8, 14, 0.98), rgba(18, 6, 10, 0.94));
}

.promo-box-warning::before {
    background: radial-gradient(circle at top left, rgba(255, 80, 80, 0.2), transparent 22%);
}

.promo-box-action {
    border-color: rgba(120, 110, 255, 0.28);
    background: linear-gradient(180deg, rgba(6, 10, 22, 0.96), rgba(8, 8, 18, 0.94));
}

.promo-box-action::before {
    background: radial-gradient(circle at top left, rgba(115, 123, 255, 0.18), transparent 22%);
}

.promo-box-highlight {
    border-color: rgba(0, 255, 0, 0.28);
    background: linear-gradient(180deg, rgba(6, 10, 16, 0.96), rgba(8, 12, 20, 0.94));
}

.promo-box-highlight::before {
    background: radial-gradient(circle at top left, rgba(0, 255, 0, 0.16), transparent 22%);
}

.forum-slider {
    max-width: 1400px;
    margin: 1.75rem auto 0;
    position: relative;
    padding: 0 1.5rem;
}

.forum-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0 0.45rem;
    min-height: 230px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.forum-slider-track::-webkit-scrollbar {
    height: 10px;
}

.forum-slider-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
}

.forum-slider-track::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.45);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.14);
}

.slider-card {
    flex: 0 0 min(320px, calc(100% - 2rem));
    scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(10, 12, 28, 0.96), rgba(5, 8, 18, 0.96));
    border: 1px solid rgba(0, 255, 0, 0.16);
    border-radius: 28px;
    padding: 1.5rem;
    min-width: 300px;
    max-width: 360px;
    box-shadow: 0 30px 80px rgba(0, 255, 0, 0.08);
    display: grid;
    gap: 1rem;
    position: relative;
    min-height: 220px;
}

.slider-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 90px rgba(0, 255, 0, 0.18);
}

.slider-card-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.7rem;
}

.slider-card h3 {
    margin: 0;
    color: #f5ffef;
    font-size: 1.2rem;
    line-height: 1.3;
    z-index: 2;
}

.slider-card p {
    margin: 0;
    color: rgba(205, 255, 205, 0.78);
    line-height: 1.6;
    font-size: 0.96rem;
    min-height: 86px;
    z-index: 2;
}

.slider-message {
    color: rgba(255, 255, 255, 0.78);
    padding: 2rem 1rem;
    border-radius: 18px;
    background: rgba(8, 12, 23, 0.97);
    border: 1px solid rgba(0, 255, 0, 0.12);
    box-shadow: 0 18px 40px rgba(0, 255, 0, 0.08);
    min-width: 100%;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem 0;
}

.category-card {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 12, 28, 0.96), rgba(5, 8, 18, 0.96));
    border: 1px solid rgba(0, 255, 0, 0.18);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 255, 0, 0.08);
    overflow: hidden;
    min-height: 210px;
    display: grid;
    gap: 1rem;
}

.category-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-card-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(0, 255, 0, 0.12);
    color: var(--primary-color);
    font-size: 1.75rem;
    z-index: 2;
}

.category-card-body {
    display: grid;
    gap: 0.75rem;
    z-index: 2;
}

.category-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-card-row h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #f5ffef;
    line-height: 1.2;
}

.category-card-body p {
    margin: 0;
    color: rgba(205, 255, 205, 0.84);
    line-height: 1.65;
    font-size: 0.95rem;
    min-height: 72px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 0, 0.14);
    color: #cfffcf;
    border: 1px solid rgba(0, 255, 0, 0.22);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 36px 90px rgba(0, 255, 0, 0.16);
}

.slider-card .btn {
    width: fit-content;
    margin-top: auto;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 0, 0.24);
    background: rgba(1, 4, 18, 0.88);
    color: #e8ffe8;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    z-index: 20;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.slider-control.prev {
    left: 0.75rem;
}

.slider-control.next {
    right: 0.75rem;
}

.slider-control:hover {
    background: rgba(0, 255, 0, 0.16);
}

@media (max-width: 820px) {
    .forum-slider {
        padding: 0 1rem;
    }
    .slider-control {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
}

.forum-container {
    max-width: 1400px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    align-items: start;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(260px, 324px);
    gap: 1.5rem;
}

.forum-topbar {
    grid-column: 1 / -1;
    margin: 0 auto 1.75rem;
    background: rgba(5, 10, 18, 0.96);
    border: 1px solid rgba(0, 255, 0, 0.18);
    border-radius: 999px;
    padding: 1rem 1.15rem;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.forum-tabs {
    gap: 0.6rem;
}

.forum-actions {
    gap: 0.7rem;
}

.forum-actions .action-btn.primary {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.95), rgba(45, 240, 150, 0.85));
    color: #05110b;
}

.forum-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 0, 0.16);
}

/* Forum Stats Sidebar */
.forum-stats {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.forum-announcements {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.sticky-announcement {
    position: sticky;
    top: 1rem;
}

.stat-box {
    background: linear-gradient(180deg, rgba(0, 10, 20, 0.96), rgba(4, 12, 24, 0.96));
    border: 1px solid rgba(0, 255, 0, 0.16);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.08), 0 18px 38px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    text-shadow: 0 0 22px rgba(0, 255, 0, 0.22);
}

.stat-label {
    color: rgba(225, 255, 225, 0.88);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bot-status-box {
    position: relative;
    overflow: hidden;
}

.bot-status-box::after {
    content: '';
    position: absolute;
    inset: auto 14% 10px 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.45), transparent);
}

.bot-status-value {
    letter-spacing: 0.06em;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.bot-status-value.status-online {
    color: #4bff5f;
    text-shadow: 0 0 10px rgba(30, 255, 70, 0.7), 0 0 24px rgba(0, 255, 0, 0.5);
}

.bot-status-value.status-offline {
    color: #ff6464;
    text-shadow: 0 0 10px rgba(255, 90, 90, 0.55), 0 0 20px rgba(255, 0, 0, 0.32);
}

.bot-status-value.status-unknown {
    color: #ffd54a;
    text-shadow: 0 0 10px rgba(255, 215, 80, 0.35);
}

.bot-status-meta {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: rgba(199, 224, 199, 0.86);
    letter-spacing: 0.03em;
}

/* Forum Categories */
.forum-content {
    display: grid;
    gap: 1.5rem;
    grid-column: 2;
    min-width: 0;
    width: 100%;
    padding-top: 0.5rem;
}

.forum-list-header {
    display: none;
}

/* Thread list item box and readable text */
.thread-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(6,10,14,0.8), rgba(8,12,18,0.7));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 0 8px rgba(0,0,0,0.25);
    color: rgba(235,245,235,0.98);
}
.thread-item h3 { margin:0; font-size:1.05rem }
.thread-item h3 a { color: #ffdede; text-decoration: underline dotted; text-underline-offset:4px; font-weight:800 }
.thread-item h3 a:hover { color:#ffffff; text-decoration:underline; }
.thread-item .thread-info p { margin:0.25rem 0 0; color: rgba(200,235,200,0.78); font-size:0.92rem }
.thread-item .thread-forum, .thread-item .thread-replies, .thread-item .thread-viewing, .thread-item .thread-time {
    color: rgba(200,235,200,0.82);
}

.forum-announcements {
    display: grid;
    gap: 1rem;
    grid-column: 3;
    min-width: 0;
    width: 100%;
}

.forum-stats,
.forum-content,
.forum-announcements {
    min-width: 0;
}

.category {
    position: relative;
    background: radial-gradient(circle at 20% 10%, rgba(0, 255, 0, 0.06), transparent 24%),
                linear-gradient(180deg, rgba(4, 8, 16, 0.98), rgba(8, 14, 28, 0.96));
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 0, 0.12);
    box-shadow: 0 24px 58px rgba(0, 255, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(180deg, rgba(0, 255, 0, 0.95), rgba(0, 255, 0, 0.05));
    opacity: 0.7;
}

.category:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 0, 0.24);
    box-shadow: 0 52px 120px rgba(0, 255, 0, 0.16);
}

.category-header {
    background: rgba(0, 0, 0, 0.45);
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.category-title h2 {
    color: #e8ffe8;
    margin-bottom: 0.25rem;
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    letter-spacing: 0.08em;
}

.category-title p {
    color: rgba(180, 255, 180, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 680px;
}

.category-stats {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.category-stats span {
    background: rgba(0, 255, 0, 0.12);
    color: #d1ffd1;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 0, 0.16);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.08);
}

.category-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* Hide thread lists under each category to show only category cards */
.category .threads-list {
    display: none;
}

.announcement-card {
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.98), rgba(10, 14, 30, 0.96));
    border: 1px solid rgba(0, 255, 0, 0.14);
    border-radius: 24px;
    padding: 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 255, 0, 0.08);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.12);
    color: #99ff99;
    font-size: 1.45rem;
    box-shadow: inset 0 0 12px rgba(0, 255, 0, 0.1);
}

.announcement-card h2 {
    margin: 0;
    font-size: 1.45rem;
    color: #ecffec;
    letter-spacing: 0.06em;
}

.announcement-card p {
    margin: 0.15rem 0 0;
    color: rgba(200, 255, 200, 0.8);
    font-size: 0.95rem;
    line-height: 1.55;
}

.announcement-list {
    display: grid;
    gap: 0.95rem;
}

.announcement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    color: #f7fff7;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(0, 255, 0, 0.08);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.05);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.announcement-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 255, 0, 0.08);
    border-color: rgba(0, 255, 0, 0.18);
}

.announcement-primary {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.12), rgba(0, 255, 0, 0.06));
}

.announcement-secondary {
    background: linear-gradient(135deg, rgba(0, 175, 255, 0.14), rgba(0, 175, 255, 0.06));
}

.announcement-danger {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.14), rgba(255, 80, 80, 0.06));
}

.announcement-item::after {
    content: '↦';
    opacity: 0.9;
    margin-left: 0.75rem;
}

.online-members-panel {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1.5rem;
    background: rgba(0, 8, 14, 0.94);
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 255, 0, 0.08);
}

.online-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.online-members-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.online-members-header p {
    margin: 0.2rem 0 0;
    color: rgba(200, 255, 200, 0.72);
    font-size: 0.82rem;
}

#online-members-count {
    font-weight: 700;
    color: #b8ffb8;
    font-size: 0.85rem;
}

.online-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.45rem;
}

.online-member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.12);
    border-radius: 14px;
    padding: 0.4rem 0.65rem;
    color: #e8ffe8;
    font-weight: 600;
    min-height: 34px;
    font-size: 0.78rem;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 255, 0, 0.06);
}

.online-member-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7cff7c;
    box-shadow: 0 0 6px rgba(124, 255, 124, 0.35);
}

.online-member-name {
    color: #e8ffe8;
    flex: 1 1 100%;
    min-width: 0;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.online-member-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.25rem;
    background: rgba(0, 255, 0, 0.18);
    border: 1px solid rgba(0, 255, 0, 0.18);
    border-radius: 999px;
    color: #f7fff7;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-width: 42px;
    text-align: center;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.06);
}

.thread-detail-page {
    min-height: calc(100vh - 100px);
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(0, 255, 0, 0.08), transparent 45%), rgba(5, 11, 22, 1);
}

.thread-detail-card {
    width: min(1080px, 100%);
    border-radius: 24px;
    background: rgba(8, 16, 32, 0.96);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    color: #eef9ff;
}

.thread-detail-back {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: rgba(180, 255, 180, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.thread-detail-back:hover {
    color: #d1ffd1;
}

.thread-detail-header {
    margin-bottom: 1.5rem;
}

.thread-detail-header h1 {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.thread-detail-meta {
    color: rgba(200, 255, 200, 0.78);
    line-height: 1.5;
}

.thread-detail-content {
    margin-top: 1.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.thread-image-wrapper {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.12);
}

.thread-image-wrapper img,
.thread-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.thread-detail-posts {
    margin-top: 2rem;
}

.thread-detail-posts h2 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.thread-reply-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.thread-reply-card label {
    color: rgba(220, 255, 220, 0.88);
    font-weight: 600;
}

.thread-reply-card textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    padding: 1rem;
    resize: vertical;
    font-family: inherit;
}

.thread-reply-card textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.08);
}

.thread-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.reply-message {
    color: rgba(170, 255, 170, 0.9);
    font-size: 0.95rem;
}

.reply-login-message {
    color: rgba(220, 255, 220, 0.88);
    font-size: 0.95rem;
}

.reply-login-message a {
    color: #a0ff9e;
    text-decoration: none;
}

.reply-login-message a:hover {
    text-decoration: underline;
}

.thread-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.post-author {
    font-weight: 700;
    color: #d7ffd7;
    margin-bottom: 0.35rem;
}

.post-date {
    color: rgba(200, 255, 200, 0.72);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.thread-post-content {
    color: rgba(235, 255, 235, 0.95);
    line-height: 1.8;
}

.thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    white-space: nowrap;
}

.thread-meta span {
    background: rgba(0, 255, 0, 0.14);
    color: rgba(220, 255, 220, 0.96);
    padding: 0.4rem 0.75rem;
    border-radius: 14px;
    font-size: 0.82rem;
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features h2,
    .about h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .forum-container {
        grid-template-columns: 1fr;
    }

    .admin-thread-form {
        grid-template-columns: 1fr;
    }

    .admin-thread-form button {
        width: 100%;
    }

    .category-header {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .category-stats {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .thread-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .thread-icon {
        margin-right: 0;
        margin-bottom: 0.85rem;
    }

    .thread-meta {
        margin-top: 0.8rem;
        width: 100%;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding: 0.65rem 0.25rem;
        background: rgba(0, 10, 16, 0.94);
        border-radius: 16px;
        border: 1px solid rgba(0, 255, 0, 0.12);
        box-shadow: inset 0 0 18px rgba(0, 255, 0, 0.08);
    }

    .nav-links a,
    .btn-enter,
    .nav-auth-item a {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .nav-container {
        padding: 0.85rem 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .nav-links a,
    .btn-enter,
    .nav-auth-item a,
    .btn-large {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem 2rem;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(1.3rem, 5.5vw, 1.9rem);
        line-height: 1.2;
    }

    .content-panel,
    .settings-container,
    .settings-panel,
    .panel,
    .page-container {
        width: 100%;
        max-width: 100%;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
