/*
 * BLACKBREACH FORUM - Theme v4
 * Raw. Underground. Real.
 */

:root {
    --bg-primary: #0b0b0d;
    --bg-secondary: #101013;
    --bg-tertiary: #151518;
    --bg-hover: #1c1c21;
    --bg-input: #0a0a0c;
    --bg-card: #111114;

    --accent: #6b9bd1;
    --accent-dim: #4a7ab5;
    --accent-bg: rgba(107, 155, 209, 0.06);
    --accent-glow: rgba(107, 155, 209, 0.15);

    --danger: #c94444;
    --success: #4a9e62;
    --warning: #c9a044;
    --purple: #8e6bc9;
    --gold: #d4af37;

    --text-primary: #ccc;
    --text-secondary: #888;
    --text-muted: #555;

    --border-primary: #1e1e24;
    --border-secondary: #28282f;
    --border-glow: rgba(107, 155, 209, 0.1);

    --role-owner: #c94444;
    --role-admin: #d97744;
    --role-mod: #8e6bc9;
    --role-vip: #d4af37;

    /* More natural fonts */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Less perfect, more natural */
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 12px var(--accent-glow);
}

/* No external fonts - using system fonts for speed */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-dim);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #8cb4dd;
}

/* ========== SNOWFALL EFFECT ========== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: fall linear infinite, sway ease-in-out infinite;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes sway {

    0%,
    100% {
        margin-left: 0;
    }

    50% {
        margin-left: 30px;
    }
}

.snowflake:nth-child(1) {
    left: 5%;
    animation-duration: 10s, 3s;
    animation-delay: 0s;
    font-size: 0.8em;
}

.snowflake:nth-child(2) {
    left: 15%;
    animation-duration: 12s, 4s;
    animation-delay: 1s;
    font-size: 1.2em;
}

.snowflake:nth-child(3) {
    left: 25%;
    animation-duration: 8s, 2s;
    animation-delay: 2s;
    font-size: 0.6em;
}

.snowflake:nth-child(4) {
    left: 35%;
    animation-duration: 14s, 5s;
    animation-delay: 0.5s;
    font-size: 1em;
}

.snowflake:nth-child(5) {
    left: 45%;
    animation-duration: 11s, 3s;
    animation-delay: 1.5s;
    font-size: 0.9em;
}

.snowflake:nth-child(6) {
    left: 55%;
    animation-duration: 9s, 4s;
    animation-delay: 2.5s;
    font-size: 1.1em;
}

.snowflake:nth-child(7) {
    left: 65%;
    animation-duration: 13s, 2s;
    animation-delay: 0.8s;
    font-size: 0.7em;
}

.snowflake:nth-child(8) {
    left: 75%;
    animation-duration: 10s, 5s;
    animation-delay: 1.2s;
    font-size: 1.3em;
}

.snowflake:nth-child(9) {
    left: 85%;
    animation-duration: 15s, 3s;
    animation-delay: 2s;
    font-size: 0.8em;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 11s, 4s;
    animation-delay: 0.3s;
    font-size: 1em;
}

.snowflake:nth-child(11) {
    left: 10%;
    animation-duration: 9s, 2.5s;
    animation-delay: 3s;
    font-size: 0.5em;
}

.snowflake:nth-child(12) {
    left: 30%;
    animation-duration: 16s, 4.5s;
    animation-delay: 1.8s;
    font-size: 0.9em;
}

.snowflake:nth-child(13) {
    left: 50%;
    animation-duration: 7s, 3.5s;
    animation-delay: 0.7s;
    font-size: 1.4em;
}

.snowflake:nth-child(14) {
    left: 70%;
    animation-duration: 12s, 2.8s;
    animation-delay: 2.2s;
    font-size: 0.6em;
}

.snowflake:nth-child(15) {
    left: 90%;
    animation-duration: 10s, 3.2s;
    animation-delay: 1.1s;
    font-size: 1.1em;
}

/* ========== NEW YEAR BANNER ========== */
.ny-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ny-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffd700' opacity='0.3'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='%23ffd700' opacity='0.4'/%3E%3Ccircle cx='40' cy='70' r='1' fill='%23ffd700' opacity='0.3'/%3E%3Ccircle cx='90' cy='80' r='1' fill='%23ffd700' opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.ny-banner .content {
    position: relative;
    z-index: 1;
}

.ny-banner h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    background: linear-gradient(90deg, var(--gold), #fff5cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ny-banner p {
    font-size: 13px;
    color: var(--text-secondary);
}

.ny-banner .countdown {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ny-banner .countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.ny-banner .countdown-item .num {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ny-banner .countdown-item .label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-dim), var(--purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== LAYOUT ========== */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.logo img {
    height: 38px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.header-search:focus-within {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.header-search input {
    width: 200px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-main);
}

.header-search input:focus {
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: none;
    border-left: 1px solid var(--border-primary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.header-search button:hover {
    background: var(--accent-dim);
    color: #fff;
}

.header-search button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.user-dropdown:hover {
    border-color: var(--accent-dim);
    background: var(--bg-hover);
    box-shadow: var(--shadow-glow);
}

.user-dropdown img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-secondary);
}

.user-dropdown .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
}

.user-dropdown .rep {
    font-size: 10px;
    color: var(--success);
    font-family: var(--font-mono);
}

/* ========== NAVIGATION ========== */
.nav {
    display: flex;
    gap: 2px;
    padding: 6px 0;
}

.nav-item {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-dim), var(--purple));
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-main);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), #7aa8e8);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-danger {
    background: rgba(217, 69, 69, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 10px rgba(217, 69, 69, 0.3);
}

.btn-success {
    background: rgba(69, 179, 107, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.btn-success:hover {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 10px rgba(69, 179, 107, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

/* ========== MAIN LAYOUT ========== */
.main {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-primary);
}

/* ========== ANNOUNCEMENT ========== */
.announcement {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-primary);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.announcement-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.announcement-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.announcement-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== FORUM SECTION ========== */
.forum-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.section-header {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary));
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header .icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #fff;
    font-weight: 700;
}

/* ========== FORUM ROW ========== */
.forum-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: var(--bg-tertiary);
}

.forum-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}

.forum-icon.new {
    background: var(--accent-bg);
    border-color: var(--accent-dim);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.forum-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.forum-info {
    flex: 1;
    min-width: 0;
}

.forum-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.forum-title a {
    color: var(--text-primary);
}

.forum-title a:hover {
    color: var(--accent);
}

.forum-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.forum-stats {
    display: flex;
    gap: 28px;
    padding: 0 24px;
}

.stat-box {
    text-align: center;
    min-width: 50px;
}

.stat-box .num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-box .label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-lastpost {
    width: 170px;
    font-size: 11px;
}

.lastpost-title {
    color: var(--text-secondary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lastpost-meta {
    color: var(--text-muted);
}

/* ========== THREAD LIST ========== */
.thread-header {
    display: flex;
    background: var(--bg-primary);
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
}

.thread-header .col-topic {
    flex: 1;
}

.thread-header .col-stats {
    width: 90px;
    text-align: center;
}

.thread-header .col-lastpost {
    width: 150px;
}

.thread-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s;
}

.thread-row:last-child {
    border-bottom: none;
}

.thread-row:hover {
    background: var(--bg-tertiary);
}

.thread-row.sticky {
    background: linear-gradient(90deg, var(--accent-bg), transparent);
    border-left: 3px solid var(--accent);
}

.thread-row.hot {
    background: linear-gradient(90deg, rgba(217, 69, 69, 0.05), transparent);
}

.thread-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.thread-icon.unread {
    background: var(--accent-bg);
    border-color: var(--accent-dim);
    color: var(--accent);
}

.thread-icon.hot {
    background: rgba(217, 69, 69, 0.12);
    border-color: var(--danger);
    color: var(--danger);
}

.thread-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.thread-content {
    flex: 1;
    min-width: 0;
}

.thread-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.thread-title {
    font-size: 14px;
    font-weight: 500;
}

.thread-title a {
    color: var(--text-primary);
}

.thread-title a:hover {
    color: var(--accent);
}

.thread-prefix {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.prefix-sticky {
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    color: #fff;
}

.prefix-hot {
    background: linear-gradient(135deg, #c0392b, var(--danger));
    color: #fff;
}

.prefix-locked {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.prefix-solved {
    background: linear-gradient(135deg, #27ae60, var(--success));
    color: #fff;
}

.thread-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.thread-meta a {
    color: var(--text-secondary);
}

.thread-meta a:hover {
    color: var(--accent);
}

.thread-stats {
    width: 90px;
    text-align: center;
}

.thread-stats .replies {
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.thread-stats .views {
    font-size: 10px;
    color: var(--text-muted);
}

.thread-lastpost {
    width: 150px;
    font-size: 11px;
}

.thread-lastpost .time {
    color: var(--text-secondary);
}

.thread-lastpost .author {
    color: var(--text-muted);
    margin-top: 2px;
}

.thread-lastpost .author a {
    color: var(--text-secondary);
}

/* ========== WIDGETS ========== */
.widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary));
    padding: 12px 14px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
}

.widget-body {
    padding: 14px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 12px;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-item:first-child {
    padding-top: 0;
}

.stat-item .label {
    color: var(--text-muted);
}

.stat-item .value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 11px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
}

.online-user:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.online-user:first-child {
    padding-top: 0;
}

.online-user img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-secondary);
}

.online-user .name {
    flex: 1;
    font-size: 12px;
}

.online-user .name a {
    color: var(--text-secondary);
}

.online-user .name a:hover {
    color: var(--accent);
}

.online-user .status {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

/* ========== SHOUTBOX ========== */
.shoutbox {
    max-height: 220px;
    display: flex;
    flex-direction: column;
}

.shoutbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 11px;
    max-height: 160px;
}

.shout {
    padding: 5px 0;
    line-height: 1.5;
}

.shout .time {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.shout .author {
    color: var(--accent);
    font-weight: 600;
    margin: 0 4px;
}

.shout .message {
    color: var(--text-secondary);
}

.shoutbox-input {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.shoutbox-input input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 11px;
    font-family: var(--font-main);
}

.shoutbox-input input:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.shoutbox-input input::placeholder {
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 20px 0;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========== POST/THREAD VIEW ========== */
.post-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post {
    display: flex;
    border-bottom: 1px solid var(--border-primary);
}

.post:last-child {
    border-bottom: none;
}

.post-sidebar {
    width: 180px;
    padding: 20px;
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    border-right: 1px solid var(--border-primary);
    text-align: center;
    flex-shrink: 0;
}

.post-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    border: 3px solid var(--border-secondary);
    box-shadow: var(--shadow-sm);
}

.post-username {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.post-username a {
    color: var(--text-primary);
}

.post-role {
    font-size: 9px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.role-owner {
    background: linear-gradient(135deg, #c0392b, var(--role-owner));
    color: #fff;
}

.role-admin {
    background: linear-gradient(135deg, #d35400, var(--role-admin));
    color: #fff;
}

.role-moderator {
    background: linear-gradient(135deg, #8e44ad, var(--role-mod));
    color: #fff;
}

.role-vip {
    background: linear-gradient(135deg, #f39c12, var(--role-vip));
    color: #000;
}

.role-user {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.post-stats {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 12px;
}

.post-stats div {
    padding: 4px 0;
}

.post-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    font-size: 11px;
    color: var(--text-muted);
}

.post-header .date {
    font-family: var(--font-mono);
}

.post-header .actions a {
    color: var(--text-muted);
    padding: 0 8px;
}

.post-header .actions a:hover {
    color: var(--accent);
}

.post-content {
    padding: 20px;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 14px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content blockquote {
    background: var(--bg-primary);
    border-left: 4px solid var(--accent-dim);
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content code {
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}

.post-content pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 14px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-footer {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-signature {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px dashed var(--border-primary);
    padding-top: 12px;
    margin-top: 16px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-error {
    font-size: 11px;
    color: var(--danger);
    margin-top: 5px;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid;
}

.alert-success {
    background: rgba(69, 179, 107, 0.1);
    border-color: rgba(69, 179, 107, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(217, 69, 69, 0.1);
    border-color: rgba(217, 69, 69, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(217, 167, 69, 0.1);
    border-color: rgba(217, 167, 69, 0.3);
    color: var(--warning);
}

.alert-info {
    background: var(--accent-bg);
    border-color: rgba(91, 141, 217, 0.3);
    color: var(--accent);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    gap: 6px;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

.pagination .active {
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    border-color: var(--accent);
    color: #fff;
}

/* ========== PROFILE ========== */
.profile-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--border-secondary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .num {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.profile-stat .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ========== MEMBERS LIST ========== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.member-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.member-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-dim);
    box-shadow: var(--shadow-glow);
}

.member-card img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-secondary);
}

.member-card .info {
    flex: 1;
    min-width: 0;
}

.member-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.member-card .name a {
    color: var(--text-primary);
}

.member-card .meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top, rgba(91, 141, 217, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.auth-box h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-box .form-group {
    margin-bottom: 18px;
}

.auth-box .btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content {
        order: 1;
    }

    .forum-stats,
    .forum-lastpost {
        display: none;
    }

    .thread-stats {
        width: 70px;
    }

    .thread-lastpost {
        display: none;
    }

    .post {
        flex-direction: column;
    }

    .post-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .post-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .post-stats {
        display: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .ny-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .wrapper {
        padding: 0 14px;
    }

    .header-search {
        display: none;
    }

    .nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        white-space: nowrap;
    }

    .announcement {
        flex-direction: column;
        text-align: center;
    }

    .auth-box {
        padding: 28px 24px;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .ny-banner .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== UTILITY ========== */
.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--text-primary);
}

.text-accent {
    color: var(--accent);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-gold {
    color: var(--gold);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ========== GLOW EFFECTS ========== */
.glow-text {
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.glow-box {
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(91, 141, 217, 0.05);
}

/* ========== PARTICLE BACKGROUND ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}