/* ==========================================================================
   MAHZEN FORUM - PREMIUM DARKNET FORUM UI
   Engineered for Tor Hidden Services: Zero-Egress, 100% NoScript, Ultra-Fast
   ========================================================================== */

:root {
    --bg-page: #05070a;
    --bg-card: #090c12;
    --bg-card-hover: #0e131b;
    --bg-header: #07090e;
    --bg-input: #040609;
    --bg-subtle: #0b0e15;
    --border-color: #131923;
    --border-subtle: #0e131a;
    --border-highlight: #ff3344;
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #586574;
    --text-bright: #ffffff;
    
    --accent-red: #ff3344;
    --accent-red-hover: #ff5566;
    --accent-red-glow: rgba(255, 51, 68, 0.2);
    --accent-blue: #235fa7;
    --accent-blue-hover: #3178c6;
    --accent-green: #238636;
    --accent-cyan: #00bcd4;
    --accent-amber: #d29922;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #232c3d #07090e;
}

/* Global Custom Dark Theme Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #07090e;
}

::-webkit-scrollbar-thumb {
    background: #232c3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3344;
}

::-webkit-scrollbar-corner {
    background: #07090e;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 51, 68, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
    color: var(--accent-red);
}

/* ==============================================================
   TOP STATUS RIBBON & NAVBAR
   ============================================================== */

.top-ribbon {
    background: #05070a;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 20px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.top-ribbon-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: #0d1017;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
}

.dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    display: inline-block;
}

/* Header Bar */
.navbar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: 0.8px;
}

.brand-logo:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.brand-logo .glow-symbol {
    color: var(--accent-red);
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 51, 68, 0.5));
}

.brand-badge {
    background: rgba(255, 51, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 68, 0.3);
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--text-bright);
    background: var(--bg-card);
    text-decoration: none;
}

.nav-link.active {
    color: var(--text-bright);
    background: rgba(255, 51, 68, 0.1);
    border: 1px solid rgba(255, 51, 68, 0.3);
}

.nav-btn-special {
    background: #18090b;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.nav-btn-special:hover {
    background: var(--accent-red);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 12px var(--accent-red-glow);
}

/* ==============================================================
   MAIN WRAPPER & CONTAINER
   ============================================================== */

.page-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
    flex: 1;
}

/* Hero Announcement Banner */
.forum-hero {
    background: linear-gradient(180deg, #131722 0%, #0f131c 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Telemetry Bar */
.telemetry-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.telemetry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.telemetry-card:hover {
    border-color: #2b364d;
    background: var(--bg-card-hover);
}

.telemetry-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.telemetry-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-bright);
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-mono);
}

.telemetry-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ==============================================================
   FORUM SECTION CARDS & TABLES
   ============================================================== */

.forum-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Modern Board Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.15s ease;
}

.board-row:hover {
    background-color: var(--bg-card-hover);
}

.board-cell-main {
    padding: 16px 20px;
    width: 60%;
}

.board-flex {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.board-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: #141926;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.board-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
    display: inline-block;
}

.board-title:hover {
    color: var(--accent-red);
}

.board-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.board-cell-stats {
    padding: 16px 20px;
    text-align: center;
    width: 25%;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.board-cell-stats strong {
    color: var(--text-bright);
}

.board-cell-action {
    padding: 16px 20px;
    text-align: right;
    width: 15%;
}

/* Modern Thread Rows */
.thread-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.15s ease;
}

.thread-row:hover {
    background-color: var(--bg-card-hover);
}

.thread-row.pinned {
    border-left: 3px solid var(--accent-red);
    background: rgba(255, 51, 68, 0.02);
}

.thread-cell-title {
    padding: 14px 20px;
}

.thread-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
    margin-right: 8px;
}

.thread-title:hover {
    color: var(--accent-red);
}

.thread-meta-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==============================================================
   BUTTONS & BADGES
   ============================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-primary, .btn-red {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.btn-primary:hover, .btn-red:hover {
    background: var(--accent-red-hover);
    color: #fff;
    box-shadow: 0 0 14px var(--accent-red-glow);
    text-decoration: none;
}

.btn-secondary {
    background: #151a26;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #1b2233;
    border-color: #2e384e;
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: #2b0e11;
    border-color: #69171f;
    color: #ff6b78;
}

.btn-danger:hover {
    background: #821520;
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 3px;
    border: 1px solid transparent;
}

.badge-admin {
    background: rgba(255, 51, 68, 0.15);
    border-color: rgba(255, 51, 68, 0.4);
    color: var(--accent-red);
}

.badge-mod {
    background: rgba(255, 183, 3, 0.15);
    border-color: rgba(255, 183, 3, 0.4);
    color: var(--accent-amber);
}

.badge-member {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
}

.badge-pinned {
    background: rgba(255, 51, 68, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.badge-locked {
    background: #1a202c;
    border-color: #334155;
    color: #94a3b8;
}

/* ==============================================================
   FORMS & INPUTS
   ============================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 8px rgba(255, 51, 68, 0.25);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-sans);
    line-height: 1.6;
}

.form-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Honeypot field (invisible to humans) */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
}

.alert-danger {
    background: #210a0d;
    border: 1px solid #701a24;
    color: #ffa8b0;
}

.alert-warning {
    background: #241a06;
    border: 1px solid #755209;
    color: #ffd680;
}

.alert-success {
    background: #092113;
    border: 1px solid #136637;
    color: #92f0be;
}

/* ==============================================================
   POST CARDS (FORUM THREAD VIEW)
   ============================================================== */

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.post-author {
    font-weight: 700;
    color: var(--text-bright);
}

.post-author:hover {
    color: var(--accent-red);
}

.post-body-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.author-sidebar {
    width: 180px;
    padding: 16px;
    background: #0c1017;
    border-right: 1px solid var(--border-color);
    font-size: 12px;
}

.post-content {
    flex: 1;
    min-width: 260px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #d1d5db;
    word-break: break-word;
}

.post-content p {
    margin-bottom: 12px;
}

.post-content pre {
    background: #06080d;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #e2e8f0;
}

.post-content code {
    background: #141a26;
    color: var(--accent-red);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-red);
    padding-left: 14px;
    color: var(--text-secondary);
    margin: 12px 0;
    font-style: italic;
}

/* Card Box (General) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-bright);
}

.card-body {
    padding: 20px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-header);
    padding: 24px 20px;
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--accent-red);
}

/* Tables generic */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 10px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.table tr:hover td {
    background: var(--bg-card-hover);
}


/* ==============================================================
   ADMIN & PERMISSIONS SYSTEM (CROWDAX STYLE)
   ============================================================== */

.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-tab-item {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-tab-item:hover {
    color: var(--text-bright);
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
}

.admin-tab-item.active {
    color: #ffffff;
    background: #18090b;
    border: 1px solid var(--accent-red);
    font-weight: 700;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid currentColor;
}

.role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.perm-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: var(--font-mono);
    background: #131722;
    border: 1px solid #1f2738;
    color: var(--text-secondary);
    margin: 2px;
}

.perm-pill.active {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--accent-green);
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.perm-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.perm-card:hover {
    border-color: var(--border-color);
    background: var(--bg-card-hover);
}

.perm-card input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-red);
}

.perm-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
}

.perm-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.code-hash {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    background: #090e17;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #142233;
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


/* ==============================================================
   FORUM CATEGORIES, CHANNELS, LATEST ACTIVITY & COMMUNITY BBS
   ============================================================== */

.announcement-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #14080a;
    border: 1px solid rgba(255, 51, 68, 0.3);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 24px;
}

.announcement-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.announcement-body {
    flex: 1;
}

.announcement-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.announcement-text {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 2-Column BBS Layout */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
}

.forum-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category Block */
.category-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.category-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 18px;
}

.category-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.category-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.empty-boards-msg {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Forum Table */
.forum-table {
    width: 100%;
    border-collapse: collapse;
}

.forum-table th {
    background: #0b0e14;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 8px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.board-tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;
}

.board-tr:last-child {
    border-bottom: none;
}

.board-tr:hover {
    background: var(--bg-card-hover);
}

.board-info-cell {
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.board-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #131722;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-red);
    flex-shrink: 0;
}

.board-meta {
    flex: 1;
}

.board-name-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    text-decoration: none;
}

.board-name-link:hover {
    color: var(--accent-red);
}

.board-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.board-stats-cell {
    padding: 14px 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.stat-num {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-bright);
}

.board-lastpost-cell {
    padding: 14px 18px;
    font-size: 12px;
}

.lastpost-title a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lastpost-title a:hover {
    color: var(--accent-red);
}

.lastpost-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lastpost-time {
    font-family: var(--font-mono);
}

.no-posts-text {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}

/* Sidebar Styling */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.sidebar-card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-bright);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.user-quick-card {
    border-color: rgba(255, 51, 68, 0.2);
    background: #110d10;
}

.user-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    object-fit: cover;
    background: #131722;
}

.user-card-names {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-card-username {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-bright);
    text-decoration: none;
}

.user-card-actions {
    display: flex;
    gap: 8px;
}

.recent-widget-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.recent-widget-item:last-child {
    border-bottom: none;
}

.recent-widget-title a {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.recent-widget-title a:hover {
    color: var(--accent-red);
}

.recent-widget-meta {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.recent-badge {
    font-size: 9px;
    padding: 1px 5px;
    background: #131722;
    border: 1px solid #1f2738;
    border-radius: 2px;
    color: var(--accent-red);
    text-decoration: none;
}

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

.sidebar-stat-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}

.stat-box-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-bright);
}

.stat-box-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

/* User Navbar */
.nav-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-avatar-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #131722;
}

/* Profile Page Overhaul */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-banner {
    height: 160px;
    background: linear-gradient(135deg, #18090b 0%, #0d1117 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-header-bar {
    padding: 0 24px 18px 24px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    margin-top: -45px;
}

.profile-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    overflow: hidden;
    background: #131722;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

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

.profile-meta-top {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-names {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-username {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
}

.profile-body-content {
    padding: 24px;
}

.profile-info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.info-strip-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.info-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.info-val {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-bright);
    margin-top: 4px;
    display: block;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-sec-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.profile-bio-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 13px;
    color: var(--text-primary);
}

.pgp-code-block {
    background: #06080d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #cbd5e1;
    max-height: 220px;
    overflow-x: auto;
}

.pgp-empty-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Notifications */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    gap: 14px;
}

.notif-unread {
    border-left: 4px solid var(--accent-red);
    background: #15090b;
}

.notif-content-wrapper {
    flex: 1;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
}

.notif-date {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.notif-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ==============================================================
   CLEAN AUTHENTIC BBS POSTING & THREAD EXPERIENCE
   ============================================================== */

.nav-btn-new-thread {
    background: var(--accent-red);
    color: #ffffff !important;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
    display: inline-block;
}

.nav-btn-new-thread:hover {
    opacity: 0.9;
}

.forum-breadcrumb {
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.forum-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.forum-breadcrumb a:hover {
    color: var(--accent-red);
}

.breadcrumb-current {
    color: var(--text-bright);
    font-weight: 600;
}

.thread-title-bar {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.thread-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thread-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.3;
}

.thread-meta-stats {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Authentic BBS Post Row */
.bbs-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    overflow: hidden;
}

@media (max-width: 700px) {
    .bbs-post-card {
        flex-direction: column;
    }
}

.op-post {
    border-left: 3px solid var(--accent-red);
}

.bbs-post-author {
    width: 150px;
    padding: 18px 12px;
    background: var(--bg-subtle);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .bbs-post-author {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
    }
}

.bbs-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    object-fit: cover;
    background: #131722;
}

.bbs-author-name {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    word-break: break-all;
}

.bbs-post-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bbs-post-header {
    background: #090c12;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.bbs-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
}

.post-num {
    color: var(--text-bright);
    font-weight: 700;
}

.bbs-mod-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbs-post-body {
    padding: 20px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-primary);
    flex: 1;
    overflow-wrap: break-word;
}

.bbs-post-footer {
    padding: 8px 18px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    justify-content: flex-end;
}

.quote-link {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.quote-link:hover {
    color: var(--accent-red);
}

.replies-divider {
    margin: 28px 0 16px 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.replies-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Quick Reply Card */
.quick-reply-section {
    margin-top: 32px;
}

.quick-reply-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quick-reply-header {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==============================================================
   GUEST CONTENT RESTRICTION (PAYLAŞIM KİLİDİ & OTURUM ZORUNLULUĞU)
   ============================================================== */

.guest-gate-box {
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.08) 0%, rgba(13, 17, 23, 0.95) 100%);
    border: 1px dashed rgba(230, 57, 70, 0.45);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    margin: 12px 0;
    text-align: center;
    box-shadow: inset 0 0 25px rgba(230, 57, 70, 0.05);
}

.guest-gate-icon {
    font-size: 38px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.6));
}

.guest-gate-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.guest-gate-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 24px auto;
}

.guest-gate-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.guest-replies-locked-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.guest-replies-locked-notice .locked-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.guest-replies-locked-notice .locked-text {
    flex: 1;
    line-height: 1.5;
}

.guest-replies-locked-notice .link-highlight {
    color: var(--accent-red);
    font-weight: 700;
    text-decoration: underline;
}

.guest-replies-locked-notice .link-highlight:hover {
    color: #ff6b77;
}

/* ==============================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS (TOR MOBILE BBS)
   ============================================================== */

/* Base & Typography on Mobile (Tablets & Phones <= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .page-wrapper {
        padding: 0 12px;
        margin: 12px auto;
    }

    .container {
        padding: 0;
    }

    /* Top Ribbon on Mobile */
    .top-ribbon {
        padding: 6px 12px;
    }

    .top-ribbon-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    /* Navbar on Mobile */
    .navbar {
        padding: 10px 12px;
    }

    .navbar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .brand-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .brand-logo {
        font-size: 16px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-link, .nav-btn-special, .nav-btn-new-thread {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .nav-user-badge {
        padding: 4px 8px;
        font-size: 12px;
    }

    .nav-avatar-img {
        width: 20px;
        height: 20px;
    }

    /* Announcement & Hero Banner */
    .announcement-banner {
        flex-direction: column;
        padding: 12px 14px;
        gap: 8px;
        text-align: left;
    }

    .announcement-icon {
        margin-bottom: 2px;
    }

    /* Cards & Forms */
    .card-header {
        padding: 10px 14px;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-body {
        padding: 14px 12px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Specific Phone Screen Optimizations (<= 680px) */
@media (max-width: 680px) {
    /* Transform Forum Table into Fluid Card Rows */
    .forum-table {
        display: block;
        width: 100%;
        border-collapse: separate;
    }

    .forum-table thead {
        display: none;
    }

    .forum-table tbody {
        display: block;
        width: 100%;
    }

    .board-tr {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 14px;
        box-sizing: border-box;
    }

    .board-info-cell {
        display: flex;
        padding: 0 0 6px 0;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .board-icon-box {
        width: 32px;
        height: 32px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .board-name-link {
        font-size: 14px;
        line-height: 1.3;
        display: block;
    }

    .board-desc-text {
        font-size: 11px;
        line-height: 1.4;
        margin-top: 3px;
    }

    .board-stats-cell {
        display: flex;
        gap: 12px;
        padding: 4px 0;
        text-align: left;
        font-size: 11px;
        color: var(--text-muted);
        width: 100%;
        box-sizing: border-box;
    }

    .board-lastpost-cell {
        display: block;
        padding: 4px 0 0 0;
        width: 100%;
        box-sizing: border-box;
        border-top: none;
        font-size: 11px;
    }

    .lastpost-title a {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Transform Standard BBS Tables (board.html, recent.html) into Responsive Rows */
    .table {
        display: block;
        width: 100%;
        border-collapse: separate;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: block;
        width: 100%;
    }

    .table tr {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-bottom: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .table td {
        display: block;
        width: 100%;
        padding: 3px 0;
        border-bottom: none;
        text-align: left !important;
        box-sizing: border-box;
    }

    /* Thread Title on Board */
    .thread-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .thread-heading {
        font-size: 17px;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Post Author & Header on Mobile */
    .bbs-post-card {
        flex-direction: column;
        border-radius: var(--radius-sm);
    }

    .bbs-post-author {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 14px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        box-sizing: border-box;
    }

    .bbs-avatar {
        width: 38px;
        height: 38px;
    }

    .bbs-post-header {
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bbs-mod-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .bbs-post-body {
        padding: 14px 12px;
        font-size: 13px;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .bbs-post-body pre {
        max-width: 100%;
        overflow-x: auto;
        padding: 10px;
        font-size: 11px;
    }

    .bbs-post-body img {
        max-width: 100%;
        height: auto;
    }

    /* Profile Header on Mobile */
    .profile-card {
        margin: 10px 0;
    }

    .profile-banner {
        height: 120px;
    }

    .profile-header-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -45px;
        padding: 0 14px 16px 14px;
    }

    .profile-meta-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .profile-names {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .profile-owner-actions {
        width: 100%;
        margin-top: 6px;
    }

    .profile-owner-actions .btn {
        width: 100%;
        text-align: center;
    }

    .profile-info-strip {
        flex-direction: column;
        gap: 8px;
        padding: 12px 14px;
    }

    .badges-grid {
        grid-template-columns: 1fr !important;
    }

    /* Admin Tabs Touch Scroll */
    .admin-tabs {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .admin-tab-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Quick Reply Card on Mobile */
    .quick-reply-card textarea {
        font-size: 14px;
    }

    .quick-reply-card button {
        width: 100%;
    }

    /* Search Results on Mobile */
    .search-results-list {
        padding: 0;
    }
}

/* ==============================================================
   MAHZEN BBS BBCODE EDITOR & CONTENT BLOCKS
   ============================================================== */

.tht-editor-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.tht-editor-toolbar {
    background: #090c12;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.tht-btn-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
}

.tht-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.tht-tool-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-color);
    color: var(--text-bright);
}

.tht-tool-btn:active {
    background: var(--accent-red);
    color: #fff;
}

.tht-tool-btn svg {
    width: 14px;
    height: 14px;
}

.tht-tool-sep {
    width: 1px;
    height: 18px;
    background: var(--border-color);
    margin: 0 3px;
}

.tht-editor-textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    background: var(--bg-page);
    border: none;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
}

.tht-editor-textarea:focus {
    background: #05070a;
}

/* Rendered BBCode Elements */
.tht-quote-box {
    background: #0a0d14;
    border-left: 3px solid var(--accent-red);
    padding: 12px 18px;
    margin: 12px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.tht-quote-author {
    font-style: normal;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 4px;
}

.tht-code-box {
    background: #05070c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #00e5ff;
}

.tht-terminal-box {
    background: #030508;
    border: 1px solid #1a2233;
    border-left: 3px solid #00e676;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #00e676;
}

.tht-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(14, 22, 33, 0.85);
    border: 1px solid #233144;
    color: #8b949e;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-sans);
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.tht-copy-btn:hover {
    color: #ffffff;
    background: #1c2a3d;
    border-color: #388bfd;
}

.tht-copy-btn.copied {
    color: #3fb950;
    border-color: #2ea043;
    background: rgba(46, 160, 67, 0.15);
}

.tht-spoiler {
    background: #0b0e16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin: 12px 0;
    overflow: hidden;
}

.tht-spoiler summary {
    background: #10141f;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 12px;
    color: var(--accent-red);
    cursor: pointer;
    user-select: none;
    outline: none;
}

.tht-spoiler summary:hover {
    background: #141a29;
}

.tht-spoiler-body {
    padding: 14px;
    border-top: 1px solid var(--border-color);
    background: #07090f;
    font-size: 13px;
    color: var(--text-bright);
}

.tht-alert-box {
    background: rgba(255, 51, 68, 0.08);
    border: 1px solid rgba(255, 51, 68, 0.35);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tht-alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.tht-alert-content {
    font-size: 13px;
    color: #ff99a4;
    line-height: 1.5;
}

.tht-pgp-block {
    background: #05070a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin: 12px 0;
    overflow: hidden;
}

.tht-pgp-header {
    background: #0c1017;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.tht-pgp-content {
    padding: 12px 16px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #94a3b8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.tht-list {
    margin: 8px 0 8px 24px;
    padding: 0;
}

.tht-list li {
    margin-bottom: 4px;
    color: var(--text-primary);
}

.tht-link {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: underline;
}

.tht-link:hover {
    color: #ff6b77;
}

.tht-embedded-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ==========================================================================
   MAHZEN BBS DARKNET UI COMPONENT STYLES
   ========================================================================== */

.bf-navbar {
    background: #0e1621;
    border-bottom: 1px solid #1a2533;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bf-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bf-nav-left {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.bf-nav-left::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Mahzen Brand Logo & Title */
.bf-brand-header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 6px;
    padding: 3px 8px 3px 5px;
    border-radius: 4px;
    background: rgba(255, 51, 68, 0.07);
    border: 1px solid rgba(255, 51, 68, 0.28);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bf-brand-header-link:hover {
    background: rgba(255, 51, 68, 0.16);
    border-color: rgba(255, 51, 68, 0.55);
    box-shadow: 0 0 12px rgba(255, 51, 68, 0.25);
}

.bf-brand-logo-icon {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    border-radius: 3px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 51, 68, 0.45));
}

.bf-brand-title-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f0f6fc;
    font-family: var(--font-mono);
}

.bf-brand-badge {
    background: #ff3344;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.bf-home-btn {
    width: 32px;
    height: 32px;
    background: #2b73b9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.bf-home-btn:hover {
    background: #388bfd;
    color: #ffffff;
}

.bf-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8b949e;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bf-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.bf-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.bf-tor-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    height: 26px;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.bf-tor-pill:hover {
    background: rgba(63, 185, 80, 0.25);
    border-color: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.3);
}

.bf-tor-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 6px #3fb950;
    display: inline-block;
    flex-shrink: 0;
    animation: torPulse 2s infinite;
}

@keyframes torPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.bf-tor-text {
    font-size: 11px;
    font-weight: 800;
    color: #3fb950;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.bf-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.bf-user-menu:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bf-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2b73b9;
}

.bf-username {
    font-size: 13px;
    font-weight: 700;
}

.bf-icon-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #8b949e;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.bf-icon-badge:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.bf-icon-badge .badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #1c2736;
    border: 1px solid #28394e;
    color: #8b949e;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    line-height: 14px;
}

.bf-credits-badge {
    display: flex;
    align-items: center;
    background: #131c26;
    border: 1px solid #202d3d;
    color: #ffaa00;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.bf-btn-thread {
    background: #2b73b9;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.bf-btn-thread:hover {
    background: #388bfd;
    color: #ffffff;
}

.bf-logout-btn, .bf-theme-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.bf-logout-btn:hover, .bf-theme-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.bf-page-container {
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 16px;
    width: 100%;
    flex: 1;
}

/* ==========================================================================
   MAHZEN PREMIUM DARKNET FOOTER
   ========================================================================== */
.bf-site-footer {
    border-top: 1px solid #131923;
    background: #06080d;
    padding: 36px 16px 24px;
    margin-top: 48px;
    color: var(--text-secondary);
    position: relative;
}

.bf-site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 68, 0.4), rgba(0, 188, 212, 0.4), transparent);
}

.bf-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* Telemetry & Network Status Bar */
.bf-footer-telemetry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    background: #090c12;
    border: 1px solid #131923;
    border-radius: 6px;
    margin-bottom: 32px;
}

.bf-footer-telemetry-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bf-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid rgba(35, 134, 54, 0.35);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #3fb950;
    letter-spacing: 0.5px;
}

.bf-status-dot-pulse {
    width: 7px;
    height: 7px;
    background: #3fb950;
    border-radius: 50%;
    box-shadow: 0 0 8px #3fb950;
}

.bf-onion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #07090e;
    border: 1px solid #1a2332;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #a371f7;
}

.bf-onion-pill svg {
    width: 13px;
    height: 13px;
    color: #a371f7;
    flex-shrink: 0;
}

.bf-footer-telemetry-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bf-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #05070a;
    border: 1px solid #131923;
    border-radius: 4px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.bf-security-badge strong {
    color: #e6edf3;
}

/* 4-Column Grid */
.bf-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .bf-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .bf-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.bf-footer-col h3 {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-footer-col h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #131923;
}

.bf-footer-brand-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bf-footer-brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #ff5566;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.bf-footer-desc {
    font-size: 11px;
    line-height: 1.6;
    color: #8b949e;
    margin-bottom: 14px;
}

.bf-footer-pgp-card {
    background: #05070a;
    border: 1px solid #131923;
    border-left: 2px solid #ff3344;
    border-radius: 4px;
    padding: 8px 10px;
    font-family: var(--font-mono);
}

.bf-footer-pgp-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bf-footer-pgp-fingerprint {
    font-size: 10px;
    color: #9ece6a;
    word-break: break-all;
    line-height: 1.3;
}

.bf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-footer-links li {
    margin-bottom: 9px;
}

.bf-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8b949e;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.bf-footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.bf-footer-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bf-footer-link-tag {
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
}

.tag-canary {
    background: rgba(229, 165, 10, 0.15);
    color: #e5a50a;
    border: 1px solid rgba(229, 165, 10, 0.35);
}

.tag-monero {
    background: rgba(255, 102, 0, 0.15);
    color: #ff8533;
    border: 1px solid rgba(255, 102, 0, 0.35);
}

.tag-crypto {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    border: 1px solid rgba(0, 188, 212, 0.35);
}

.tag-drop {
    background: rgba(255, 51, 68, 0.15);
    color: #ff5566;
    border: 1px solid rgba(255, 51, 68, 0.35);
}

.tag-escrow {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.35);
}

.bf-footer-notice-box {
    background: #05070a;
    border: 1px solid #161f2c;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.5;
}

.bf-footer-notice-box.warning {
    border-left: 2px solid #e5a50a;
}

.bf-footer-notice-box.danger {
    border-left: 2px solid #ff3344;
}

.bf-footer-notice-box.info {
    border-left: 2px solid #388bfd;
}

.bf-footer-notice-box strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

/* Bottom Bar */
.bf-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #131923;
    padding-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.bf-footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.bf-footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Announcement Banner */
.bf-announcement-banner {
    background: #111923;
    border: 1px solid #1a2533;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bf-announcement-icon {
    color: #388bfd;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bf-announcement-text {
    font-size: 13px;
    color: #c9d1d9;
    font-weight: 500;
}

/* Sub-nav / Breadcrumb */
.bf-subnav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.bf-crumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e6edf3;
    text-decoration: none;
}

.bf-crumb-link:hover {
    color: #388bfd;
}

.bf-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-action-btn {
    background: #131c26;
    border: 1px solid #202d3d;
    color: #c9d1d9;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.bf-action-btn:hover {
    background: #2b73b9;
    border-color: #2b73b9;
    color: #ffffff;
}

/* Mahzen Canlı Telsiz (Shoutbox) */
.bf-shoutbox-card {
    background: #111923;
    border: 1px solid #1a2533;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.bf-shoutbox-header {
    background: #1f385c;
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #274875;
}

.bf-shoutbox-toggle-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 3px;
    transition: color 0.15s ease;
}

.bf-shoutbox-toggle-btn:hover {
    color: #ffffff;
}

.bf-shoutbox-tabs {
    background: #0e1520;
    border-bottom: 1px solid #1a2533;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 14px;
    font-size: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bf-shoutbox-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.bf-shout-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #8b949e;
    font-weight: 600;
    padding: 10px 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.bf-shout-tab.active {
    color: #388bfd;
    border-bottom-color: #388bfd;
}

.bf-shout-tab-static {
    color: #8b949e;
    font-size: 12px;
    white-space: nowrap;
    padding: 10px 0;
}

.bf-shout-tab-link {
    color: #58a6ff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 0;
}

.bf-shout-tab-link:hover {
    text-decoration: underline;
}

.bf-shoutbox-body {
    display: block;
}

.bf-shoutbox-messages {
    height: 230px;
    overflow-y: auto;
    padding: 12px 14px;
    background: #0c1219;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    scrollbar-width: thin;
    scrollbar-color: #232c3d #090e15;
}

.bf-shoutbox-messages::-webkit-scrollbar {
    width: 6px;
}

.bf-shoutbox-messages::-webkit-scrollbar-track {
    background: #090e15;
    border-radius: 3px;
}

.bf-shoutbox-messages::-webkit-scrollbar-thumb {
    background: #232c3d;
    border-radius: 3px;
}

.bf-shoutbox-messages::-webkit-scrollbar-thumb:hover {
    background: #388bfd;
}

.bf-shout-empty {
    color: #586574;
    font-size: 12px;
    text-align: center;
    padding: 40px 0;
}

.bf-shout-line {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.bf-shout-time {
    color: #586574;
    font-family: var(--font-mono);
    font-size: 11px;
    flex-shrink: 0;
}

.bf-shout-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bf-shout-username {
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-decoration: none;
}

.bf-shout-colon {
    color: #586574;
    margin-right: 2px;
}

.bf-shout-content {
    color: #c9d1d9;
}

.bf-shoutbox-form {
    background: #111923;
    border-top: 1px solid #1a2533;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-shoutbox-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bf-shout-tool-icon {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 3px 4px;
    border-radius: 3px;
    transition: background 0.15s ease;
}

.bf-shout-tool-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bf-shoutbox-input {
    flex: 1;
    background: #0c1219;
    border: 1px solid #1a2533;
    border-radius: 4px;
    padding: 7px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.bf-shoutbox-input:focus {
    border-color: #2b73b9;
}

.bf-shoutbox-submit-btn {
    background: #1f385c;
    border: 1px solid #274875;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bf-shoutbox-submit-btn:hover:not(:disabled) {
    background: #2b73b9;
    border-color: #2b73b9;
}

.bf-shoutbox-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Horizontal Category Tabs Navigation */
.bf-category-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px;
    margin-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.bf-category-tabs-bar::-webkit-scrollbar {
    height: 4px;
}

.bf-category-tabs-bar::-webkit-scrollbar-track {
    background: transparent;
}

.bf-category-tabs-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.bf-cat-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111923;
    border: 1px solid #1a2533;
    color: #8b949e;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.bf-cat-tab svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor;
    flex-shrink: 0;
}

.bf-cat-tab:hover {
    background: #16202c;
    color: #ffffff;
}

.bf-cat-tab.active {
    background: #2b73b9;
    border-color: #2b73b9;
    color: #ffffff;
}

/* Category block & table refinements */
.bf-category-header {
    background: #16202c;
    border-bottom: 1px solid #1a2533;
}

.bf-table thead th {
    background: #090c12;
    color: #8b949e;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #131923;
}

/* ==========================================================================
   FORUM BOARD & THREAD LIST ENRICHED STYLING
   ========================================================================== */

.bf-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.bf-breadcrumb-nav a {
    color: #8b949e;
}

.bf-breadcrumb-nav a:hover {
    color: #ffffff;
}

.bf-breadcrumb-nav .crumb-active {
    color: var(--text-bright);
    font-weight: 700;
}

.bf-board-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
}

.bf-board-title {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-bright);
    margin: 0;
}

.bf-board-num-badge {
    background: #0f1622;
    border: 1px solid #1c2738;
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.bf-board-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.bf-threads-card {
    background: #090c12;
    border: 1px solid #131923;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.bf-thread-table {
    width: 100%;
    border-collapse: collapse;
}

.bf-thread-table thead th {
    background: #07090e;
    color: #8b949e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-bottom: 1px solid #131923;
}

.bf-thread-tr {
    border-bottom: 1px solid #0e131b;
    transition: background 0.15s ease;
}

.bf-thread-tr:hover {
    background: #0d121a;
}

.bf-thread-tr.pinned-tr {
    background: rgba(255, 51, 68, 0.03);
    border-left: 3px solid var(--accent-red);
}

.bf-thread-main-td {
    padding: 12px 14px;
}

.bf-thread-row-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bf-thread-avatar-link {
    flex-shrink: 0;
}

.bf-thread-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #233144;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.bf-thread-avatar:hover {
    transform: scale(1.05);
}

.bf-thread-info {
    flex: 1;
    min-width: 0;
}

.bf-thread-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.bf-thread-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bf-thread-link:hover {
    color: var(--accent-red);
}

.bf-thread-meta-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bf-meta-author {
    font-weight: 700;
    text-decoration: none;
}

.bf-meta-author:hover {
    text-decoration: underline;
}

.bf-meta-dot {
    color: #384554;
}

.bf-author-td {
    padding: 12px 14px;
}

.bf-author-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bf-author-name-link {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bf-author-role-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid;
    width: fit-content;
    background: rgba(0, 0, 0, 0.2);
}

.bf-author-stats-line {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bf-stats-td {
    padding: 12px 14px;
    text-align: center;
}

.bf-stats-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.bf-stat-reply {
    font-size: 12px;
    color: var(--text-bright);
}

.bf-stat-views {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bf-lastpost-td {
    padding: 12px 14px;
}

.bf-lastpost-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bf-lastpost-text {
    text-align: right;
}

.bf-lastpost-user {
    font-size: 12px;
}

.bf-lastpost-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bf-lastpost-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #1c2738;
}

.bf-lastpost-empty {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bf-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #131923;
    background: #07090e;
}

.bf-page-indicator {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Post View Author Sidebar details */
.bbs-avatar-wrapper {
    margin-bottom: 8px;
}

.bbs-post-author .bbs-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.bbs-author-info-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.author-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info-row .info-lbl {
    color: var(--text-muted);
}

.author-info-row .info-val {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Sibling Board Channel Pills */
.bf-channel-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bf-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #090c12;
    border: 1px solid #161e2a;
    border-radius: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.bf-channel-pill:hover {
    background: #111722;
    color: var(--text-bright);
    border-color: #263345;
}

.bf-channel-pill.active {
    background: #131a26;
    color: #ff3344;
    border-color: #ff3344;
    font-weight: 700;
}

.bf-channel-num {
    font-family: var(--font-mono);
    color: #8b949e;
    font-size: 11px;
}

/* Board Header Chips */
.bf-header-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(22, 30, 42, 0.6);
    border: 1px solid #161e2a;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Thread Table Status Icon */
.bf-thread-status-td {
    width: 44px;
    text-align: center;
    padding: 12px 6px 12px 14px;
    vertical-align: middle;
}

.bf-status-icon-box {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #0c1017;
    border: 1px solid #17202c;
    color: #58a6ff;
}

.bf-status-icon-box.pinned {
    color: #ff3344;
    border-color: rgba(255, 51, 68, 0.35);
    background: rgba(255, 51, 68, 0.08);
}

.bf-status-icon-box.locked {
    color: #8b949e;
    border-color: #212836;
}

.bf-status-icon-box.hot {
    color: #ff7b72;
    border-color: rgba(255, 123, 114, 0.3);
    background: rgba(255, 123, 114, 0.08);
}

/* Thread Title Prefix Badges */
.bf-prefix-badge {
    display: inline-block;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-right: 4px;
    vertical-align: 1px;
}

.prefix-duyuru {
    background: rgba(255, 51, 68, 0.18);
    color: #ff5566;
    border: 1px solid rgba(255, 51, 68, 0.4);
}

.prefix-kurallar {
    background: rgba(218, 54, 51, 0.2);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.45);
}

.prefix-rehber {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.35);
}

.prefix-exploit {
    background: rgba(188, 140, 255, 0.15);
    color: #bc8cff;
    border: 1px solid rgba(188, 140, 255, 0.35);
}

.prefix-veri {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.35);
}

.prefix-genel {
    background: rgba(139, 148, 158, 0.15);
    color: #c9d1d9;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

/* Author Column - Deep Profile Card */
.bf-author-card-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-author-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #0d121a;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.bf-author-avatar-img:hover {
    transform: scale(1.08);
}

.bf-author-meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bf-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bf-author-badges-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.bf-author-rep-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #f1e05a;
    background: rgba(241, 224, 90, 0.12);
    border: 1px solid rgba(241, 224, 90, 0.3);
    padding: 0 5px;
    border-radius: 3px;
}

.bf-author-posts-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.bf-author-pgp-badge {
    font-size: 9px;
    font-weight: 700;
    color: #3fb950;
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.3);
    padding: 0 4px;
    border-radius: 2px;
}

/* OPSEC Safe External Image Notice */
.tht-ext-img-notice {
    display: inline-block;
    padding: 2px 8px;
    background: #0f141d;
    border: 1px dashed #2d3748;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Mahzen Hide Tags */
.bf-hide-box {
    margin: 14px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #090c12;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-hide-box.author-preview {
    border: 1px solid rgba(88, 166, 255, 0.35);
    background: #090d14;
}

.bf-hide-box.locked-reply {
    border: 1px solid rgba(255, 85, 102, 0.35);
    background: linear-gradient(180deg, rgba(255, 85, 102, 0.04) 0%, #090c12 100%);
}

.bf-hide-box.locked-both {
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, #090c12 100%);
}

.bf-hide-box.locked-like {
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.04) 0%, #090c12 100%);
}

.bf-hide-box.locked-either {
    border: 1px solid rgba(255, 85, 102, 0.35);
    background: linear-gradient(180deg, rgba(255, 85, 102, 0.04) 0%, #090c12 100%);
}

.bf-hide-box.locked-credits {
    border: 1px solid rgba(241, 224, 90, 0.35);
    background: linear-gradient(180deg, rgba(241, 224, 90, 0.04) 0%, #090c12 100%);
}

.bf-hide-box.unlocked {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.04) 0%, #090c12 100%);
}

.bf-hide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.bf-hide-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-hide-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bf-hide-title {
    color: var(--text-primary, #e6edf3);
    font-weight: 700;
}

.bf-hide-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.bf-badge-author {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.25);
}

.bf-badge-unlocked {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bf-badge-locked {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.bf-hide-body {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.bf-hide-hint {
    color: var(--text-secondary, #8b949e);
    font-size: 12px;
    margin-bottom: 10px;
}

.bf-hide-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.bf-btn-done {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
}

/* ==============================================================
   FLOATING TOP-RIGHT TOAST NOTIFICATION (Darknet OPSEC Style)
   ============================================================== */
@keyframes slideInToast {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.bf-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    min-width: 320px;
    max-width: 460px;
    background: #090c12;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-sans);
    animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bf-toast-danger {
    border: 1px solid #ff5566;
    border-left: 5px solid #ff5566;
}

.bf-toast-warning {
    border: 1px solid #f1e05a;
    border-left: 5px solid #f1e05a;
}

.bf-toast-success {
    border: 1px solid #3fb950;
    border-left: 5px solid #3fb950;
}

/* ==============================================================
   MAHZEN RESPONSIVE & MOBILE ENHANCEMENTS
   ============================================================== */

/* Mobile stat chip in thread list */
.bf-mobile-stat-chip {
    display: none;
    color: #8b949e;
    font-family: var(--font-mono);
    font-size: 11px;
}

@media (max-width: 860px) {
    .bf-thread-table th:nth-child(4),
    .bf-stats-td {
        display: none !important;
    }
    .bf-mobile-stat-chip {
        display: inline;
    }
}

@media (max-width: 680px) {
    .bf-thread-table th:nth-child(3),
    .bf-thread-table th:nth-child(5),
    .bf-author-td,
    .bf-lastpost-td {
        display: none !important;
    }
    .bf-thread-table th:nth-child(1) {
        width: 38px;
    }
    .bf-thread-main-td {
        padding: 10px 8px;
    }
    .bf-nav-link span {
        display: none;
    }
    .bf-nav-link {
        padding: 6px 8px;
    }
    .bf-credits-badge span {
        display: none;
    }
    .bf-credits-badge {
        padding: 4px 6px;
    }
    .bf-toast {
        left: 16px;
        right: 16px;
        min-width: auto;
        max-width: none;
        top: 12px;
    }
}

@media (max-width: 768px) {
    .board-stats-cell {
        display: none !important;
    }
    .forum-table th:nth-child(2) {
        display: none !important;
    }
}

@media (max-width: 580px) {
    .board-lastpost-cell {
        display: none !important;
    }
    .forum-table th:nth-child(3) {
        display: none !important;
    }
    .board-info-cell {
        padding: 10px 12px;
    }
    .bf-board-title {
        font-size: 18px;
    }
    .bf-header-chips {
        display: none;
    }
}

/* Discreet Darknet Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #06080d;
}

::-webkit-scrollbar-thumb {
    background: #1c2738;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b3e58;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1c2738 #06080d;
}

/* Shoutbox Mentions & Live System */
.shout-mention {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}
.shout-mention:hover {
    background: rgba(245, 158, 11, 0.35);
    text-shadow: 0 0 8px #f59e0b;
}
.bf-shout-highlight {
    background: rgba(245, 158, 11, 0.12) !important;
    border-left: 3px solid #f59e0b !important;
    padding-left: 8px !important;
    border-radius: 4px;
    animation: mentionGlow 1.8s ease-out;
}
@keyframes mentionGlow {
    0% { background: rgba(245, 158, 11, 0.35); }
    100% { background: rgba(245, 158, 11, 0.12); }
}
.bf-shout-username {
    cursor: pointer;
    transition: all 0.15s ease;
}
.bf-shout-username:hover {
    filter: brightness(1.3);
    text-shadow: 0 0 6px currentColor;
}

/* ==========================================================================
   CYBERPUNK AMBIENT BACKGROUND & ULTRA-SMOOTH ANIMATIONS
   ========================================================================== */

/* Fixed Ambient Cyber Background */
.cyber-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animated Isometric Cyber Grid */
.cyber-grid {
    position: absolute;
    inset: -60% -40% -40% -40%;
    width: 180%;
    height: 180%;
    background-image: 
        linear-gradient(rgba(255, 51, 68, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 68, 0.04) 1px, transparent 1px);
    background-size: 54px 54px;
    background-position: 0 0;
    transform: perspective(650px) rotateX(28deg);
    transform-origin: center top;
    opacity: 0.7;
    animation: gridStream 40s linear infinite;
    will-change: transform;
}

@keyframes gridStream {
    0% {
        transform: perspective(650px) rotateX(28deg) translateY(0);
    }
    100% {
        transform: perspective(650px) rotateX(28deg) translateY(54px);
    }
}

/* Ambient Radial Glow Orbs */
.cyber-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.22;
    will-change: transform, opacity;
}

.cyber-glow-top {
    top: -140px;
    left: 50%;
    width: 750px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 51, 68, 0.45) 0%, rgba(220, 38, 38, 0.14) 55%, transparent 80%);
    animation: ambientBreath 12s ease-in-out infinite alternate;
}

.cyber-glow-bottom {
    bottom: -160px;
    right: 8%;
    width: 600px;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.28) 0%, rgba(35, 134, 54, 0.12) 50%, transparent 75%);
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

@keyframes ambientBreath {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.18;
    }
    50% {
        transform: translateX(-50%) scale(1.18);
        opacity: 0.35;
    }
    100% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.20;
    }
}

@keyframes ambientDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.16;
    }
    100% {
        transform: translate(-45px, -35px) scale(1.22);
        opacity: 0.30;
    }
}

/* Subtle CRT Scanline Texture */
.cyber-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.3;
}

/* Page Smooth Entrance Animation */
.bf-page-container, main, .bf-thread-container, .bf-board-container {
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card & Widget Hover Glow & Smooth Elevation */
.bf-card, .bf-board-card, .bf-category-card, .bf-widget {
    position: relative;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                border-color 0.2s ease,
                background-color 0.2s ease !important;
}

.bf-card:hover, .bf-board-card:hover, .bf-category-card:hover, .bf-widget:hover {
    border-color: rgba(255, 51, 68, 0.45) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 51, 68, 0.12) !important;
    transform: translateY(-2px);
}

.bf-thread-item {
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease !important;
}

.bf-thread-item:hover {
    background-color: #0e141f !important;
    border-color: rgba(255, 51, 68, 0.35) !important;
    transform: translateX(4px);
}

/* Brand Logo Glowing Neon Effect */
.bf-brand-header-link {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.bf-brand-header-link:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(255, 51, 68, 0.6));
}

.bf-brand-title-text {
    background: linear-gradient(135deg, #ffffff 45%, #ff5566 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.25s ease;
}

.bf-brand-badge {
    animation: neonBorderPulse 3.5s ease-in-out infinite alternate;
}

@keyframes neonBorderPulse {
    0% {
        box-shadow: 0 0 4px rgba(255, 51, 68, 0.3);
        border-color: rgba(255, 51, 68, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 51, 68, 0.7);
        border-color: rgba(255, 51, 68, 0.9);
    }
}

/* Live Radar Ping Animation for Tor & Status Dots */
.bf-tor-pill {
    position: relative;
    overflow: visible;
    transition: all 0.2s ease;
}

.bf-tor-pill:hover {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(63, 185, 80, 0.35) !important;
}

.bf-tor-pill span:first-child, .dot-pulse {
    position: relative;
}

.bf-tor-pill span:first-child::after, .dot-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: inherit;
    animation: radarRipple 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

@keyframes radarRipple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 320%;
        height: 320%;
        opacity: 0;
    }
}

/* Button Shimmer Sweep Effect */
.btn-primary, .bf-btn-thread {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.btn-primary:hover, .bf-btn-thread:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(255, 51, 68, 0.35), 0 0 10px rgba(255, 51, 68, 0.2) !important;
}

.btn-primary::after, .bf-btn-thread::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    transform: rotate(25deg);
    pointer-events: none;
    transition: none;
}

.btn-primary:hover::after, .bf-btn-thread:hover::after {
    animation: btnSweep 0.75s ease-out;
}

@keyframes btnSweep {
    0% { left: -75%; }
    100% { left: 135%; }
}

.btn-secondary {
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-secondary:hover {
    transform: translateY(-1.5px);
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Interactive Navbar Links with Glowing Micro-Underline */
.bf-nav-link {
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bf-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    box-shadow: 0 0 6px var(--accent-red);
    transition: width 0.22s ease, left 0.22s ease;
    border-radius: 2px;
}

.bf-nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.bf-nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Badges & User Menu Micro-Interactions */
.bf-user-menu {
    transition: all 0.2s ease;
}

.bf-user-menu:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.bf-nav-avatar {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bf-user-menu:hover .bf-nav-avatar {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 8px rgba(255, 51, 68, 0.4);
}

.bf-credits-badge {
    transition: all 0.2s ease;
}

.bf-credits-badge:hover {
    transform: scale(1.05);
    border-color: rgba(255, 51, 68, 0.4) !important;
    box-shadow: 0 0 8px rgba(255, 51, 68, 0.2);
}

.bf-icon-badge {
    transition: all 0.18s ease;
}

.bf-icon-badge:hover {
    color: #ffffff !important;
    background: rgba(255, 51, 68, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 51, 68, 0.25);
}




