/* ============================================
   THE INNER CIRCLE - IMPROVED THEME
   Readable Dark Theme with Bengali Support
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;700;900&family=Hind+Siliguri:wght@300;400;600;700&family=Orbitron:wght@400;700;900&family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
    /* Backgrounds */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-hover: #2a2a2a;
    
    /* Text Colors */
    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    
    /* Accent Colors */
    --accent-green: #00ff88;
    --accent-green-dark: #00cc66;
    --accent-green-darker: #009944;
    --accent-red: #ff4444;
    --accent-amber: #ffaa00;
    
    /* Borders & Shadows */
    --border-color: #333333;
    --border-accent: #00ff8844;
    --shadow-glow: 0 0 15px rgba(0, 255, 136, 0.15);
    --shadow-strong: 0 0 25px rgba(0, 255, 136, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Bengali Text Optimization */
.bangla-text {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

/* Code/Monospace Elements */
code, pre, .monospace {
    font-family: 'Roboto Mono', monospace;
}

/* ============================================
   GATE PAGE (Landing/Master Password)
   ============================================ */

.gate-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
}

.gate-container {
    text-align: center;
    max-width: 500px;
    width: 90%;
    padding: 50px 40px;
    border: 2px solid var(--accent-green);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-strong);
    position: relative;
}

.gate-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-green), transparent);
    opacity: 0.1;
    z-index: -1;
}

.glitch-wrapper {
    margin-bottom: 30px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    letter-spacing: 3px;
}

.gate-message {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.gate-form {
    margin-bottom: 30px;
}

.gate-input {
    width: 100%;
    padding: 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s;
}

.gate-input:focus {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow);
}

.gate-button {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent-green);
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.gate-button:hover {
    background: var(--accent-green-dark);
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.gate-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 30px;
}

.error-message {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 45px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.site-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 13px 15px;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    font-size: 0.95rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.form-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.btn {
    padding: 13px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn-primary {
    width: 100%;
    background: var(--accent-green);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-green-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-green);
}

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

.btn-danger:hover {
    background: #dd3333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.auth-links {
    text-align: center;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.auth-links a {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.auth-links a:hover {
    color: var(--accent-green-dark);
    text-decoration: underline;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 0.95rem;
    border-radius: 4px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

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

.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-green);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */

.category-body {
    background: #050505;
}

.category-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52525b;
    font-size: 0.8rem;
    margin-bottom: 32px;
}

.category-breadcrumb a {
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s;
}

.category-breadcrumb a:hover {
    color: var(--accent-green-dark);
}

.category-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, #121212, #0a0a0a);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 50%;
    filter: blur(60px);
}

.category-hero-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.category-hero-content {
    flex: 1;
}

.category-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.category-hero-desc {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-new-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-green);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    flex-shrink: 0;
}

.category-new-btn:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
}

.category-threads {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-thread-card {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    gap: 20px;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid #1d1d20;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-thread-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.category-thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d1d20, #09090b);
    border: 1px solid #27272a;
    overflow: hidden;
}

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

.category-thread-content {
    flex: 1;
}

.category-thread-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: #71717a;
}

.category-thread-author {
    color: var(--accent-green);
    font-weight: 600;
}

.category-thread-pinned {
    background: rgba(255, 170, 0, 0.1);
    color: var(--accent-amber);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
}

.category-trending-icon {
    animation: flame 1.5s ease-in-out infinite;
}

.category-thread-title {
    margin: 0;
}

.category-thread-title a {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s;
}

.category-thread-card:hover .category-thread-title a {
    color: var(--accent-green);
}

.category-thread-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #52525b;
}

.category-thread-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-thread-last {
    margin-left: auto;
}

.category-thread-last strong {
    color: var(--accent-green);
}

.category-thread-arrow {
    color: #52525b;
    transition: all 0.3s;
}

.category-thread-card:hover .category-thread-arrow {
    color: var(--accent-green);
    transform: translateX(4px);
}

.category-empty {
    text-align: center;
    padding: 80px 40px;
    background: #0f0f0f;
    border: 2px dashed #1d1d20;
    border-radius: 16px;
}

.category-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.category-empty h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.category-empty p {
    color: #71717a;
    margin-bottom: 30px;
}

.category-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-green);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dash-body {
    background: #050505;
}

.dash-nav {
    background: #0a0a0a;
    border-bottom: 1px solid #1d1d20;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dash-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dash-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dash-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
}

.dash-nav-links {
    display: flex;
    gap: 30px;
}

.dash-nav-link {
    color: #71717a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.dash-nav-link:hover,
.dash-nav-link.active {
    color: var(--accent-green);
}

.dash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1d1d20;
}

.dash-welcome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.dash-highlight {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.dash-welcome-subtitle {
    color: #71717a;
    font-size: 1rem;
}

.dash-welcome-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #0f0f0f;
    border: 1px solid #1d1d20;
    border-radius: 24px;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dash-welcome-status span {
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 600;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.dash-stat-card {
    background: linear-gradient(135deg, #121212, #0a0a0a);
    border: 1px solid #1d1d20;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.dash-stat-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dash-stat-user {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.02));
    border-color: rgba(0, 255, 136, 0.2);
}

.dash-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 600;
}

.dash-stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 8px;
}

.dash-stat-label {
    color: #52525b;
    font-size: 0.8rem;
}

.dash-stat-flex {
    display: flex;
    gap: 30px;
}

.dash-stat-mini {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-green);
    line-height: 1;
}

.dash-stat-mini-label {
    color: #71717a;
    font-size: 0.75rem;
    margin-top: 4px;
}

.dash-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.dash-section,
.dash-sidebar {
    background: #0f0f0f;
    border: 1px solid #1d1d20;
    border-radius: 16px;
    padding: 30px;
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.dash-section-link {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.dash-section-link:hover {
    color: var(--accent-green-dark);
}

.dash-online-count {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-threads {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-thread-item {
    padding: 18px;
    background: #0a0a0a;
    border: 1px solid #1d1d20;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.dash-thread-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
}

.dash-thread-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dash-thread-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.dash-thread-meta {
    display: flex;
    gap: 8px;
    color: #52525b;
    font-size: 0.75rem;
}

.dash-users {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.dash-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d1d20, #09090b);
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.dash-user-info {
    flex: 1;
}

.dash-user-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dash-user-time {
    color: #52525b;
    font-size: 0.7rem;
}

.dash-user-status {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-actions {
    padding-top: 30px;
    border-top: 1px solid #1d1d20;
}

.dash-actions h3 {
    font-size: 0.85rem;
    color: #71717a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #0a0a0a;
    border: 1px solid #1d1d20;
    border-radius: 10px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.dash-action-btn:hover {
    border-color: var(--accent-green);
    color: #fff;
    background: rgba(0, 255, 136, 0.05);
}

/* Responsive */
@media (max-width: 1100px) {
    .dash-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .category-thread-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-thread-arrow {
        display: none;
    }
    
    .dash-nav-links {
        display: none;
    }
    
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
}
   


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

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 8px;
}

.profile-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.profile-pic-container {
    text-align: center;
    margin-bottom: 25px;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
    object-fit: cover;
    box-shadow: var(--shadow-glow);
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-header {
    margin-bottom: 35px;
}

.admin-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.admin-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.admin-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-nav-link:hover {
    color: var(--text-primary);
}

.admin-nav-link.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.stat-card.alert-warning {
    border-color: var(--accent-amber);
}

.stat-card.alert-danger {
    border-color: var(--accent-red);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-green);
    margin: 12px 0;
}

.admin-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.admin-section h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 25px;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--bg-tertiary);
}

.admin-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 12px;
    font-weight: 700;
}

.badge-active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.badge-pending {
    background: rgba(255, 170, 0, 0.15);
    color: var(--accent-amber);
}

.badge-suspended {
    background: rgba(255, 170, 0, 0.15);
    color: var(--accent-amber);
}

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

.badge-used {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
}

.badge-role {
    background: rgba(68, 138, 255, 0.15);
    color: #5599ff;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 7px 12px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    color: var(--text-primary);
}

.btn-approve {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-approve:hover {
    background: var(--accent-green);
    color: #000;
}

.btn-suspend {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.btn-suspend:hover {
    background: var(--accent-amber);
    color: #000;
}

.btn-ban,
.btn-delete {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-ban:hover,
.btn-delete:hover {
    background: var(--accent-red);
    color: #fff;
}

.btn-info {
    border-color: #5599ff;
    color: #5599ff;
}

.btn-info:hover {
    background: #5599ff;
    color: #fff;
}

.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
}

.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    flex: 1;
    min-width: 220px;
}

.invite-code {
    background: var(--bg-tertiary);
    padding: 8px 14px;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 2px;
    border-radius: 4px;
    font-weight: 700;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.settings-section h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.text-warning {
    color: var(--accent-amber);
}

.text-muted {
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.forum-header {
    text-align: center;
    margin-bottom: 50px;
}

.forum-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 35px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 25px;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.3s;
    border-radius: 8px;
}

.category-card:hover {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.category-icon {
    font-size: 3.5rem;
    text-align: center;
}

.category-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.category-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.category-info h3 a:hover {
    color: var(--accent-green);
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: var(--accent-green);
}

.category-action {
    min-width: 140px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* Threads List */
.threads-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.thread-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 25px;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.3s;
    border-radius: 8px;
}

.thread-item:hover {
    border-color: var(--accent-green);
    background: var(--bg-hover);
}

.thread-item.pinned {
    border-color: var(--accent-amber);
    background: rgba(255, 170, 0, 0.05);
}

.thread-icon {
    font-size: 2.2rem;
    text-align: center;
}

.thread-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.thread-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.thread-content h3 a:hover {
    color: var(--accent-green);
}

.thread-meta {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.thread-author strong {
    color: var(--accent-green);
}

.thread-stats {
    display: flex;
    gap: 18px;
}

.stat-item-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-icon {
    opacity: 0.8;
}

.thread-activity {
    text-align: right;
    font-size: 0.9rem;
    min-width: 180px;
    color: var(--text-secondary);
}

.last-reply {
    margin-bottom: 6px;
}

.last-reply strong {
    color: var(--accent-green);
}

.last-activity {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 70px 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.no-content p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Create Thread Form */
.create-thread-header {
    text-align: center;
    margin-bottom: 45px;
}

.create-thread-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.create-thread-form {
    max-width: 950px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: 8px;
}

.file-info {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.file-preview {
    margin-top: 18px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.file-icon {
    font-size: 1.8rem;
}

.file-name {
    flex: 1;
    word-break: break-word;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Thread View */

/* ============================================
   MODERN THREAD PAGE DESIGN
   Clean, minimal, focused reading experience
   ============================================ */

.thread-body {
    background: #09090b;
    color: #e1e1e3;
}

/* Header */
.thread-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1d1d20;
}

.thread-header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.thread-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.thread-logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.thread-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-nav-links {
    display: flex;
    gap: 24px;
}

.thread-nav-links a {
    color: #52525b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.thread-nav-links a:hover,
.thread-nav-links a.active {
    color: #fff;
}

.thread-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    border: 2px solid #1d1d20;
}

/* Main Container */
.thread-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Breadcrumb */
.thread-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52525b;
    font-size: 0.75rem;
    margin-bottom: 32px;
}

.thread-breadcrumb a {
    color: #52525b;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Thread Article */
.thread-article {
    margin-bottom: 48px;
}

/* Meta Bar */
.thread-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.thread-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #52525b;
    font-size: 0.75rem;
}

/* Title */
.thread-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

/* Author Bar */
.thread-author-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #1d1d20;
    border-bottom: 1px solid #1d1d20;
    margin-bottom: 32px;
}

.thread-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thread-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d1d20, #09090b);
    border: 1px solid #27272a;
    overflow: hidden;
}

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

.thread-author-details {
    display: flex;
    flex-direction: column;
}

.thread-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.thread-author-role {
    font-size: 0.7rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thread-author-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #52525b;
    font-size: 0.75rem;
}

.thread-author-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown */
.thread-dropdown {
    position: relative;
}

.thread-more-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.thread-more-btn:hover {
    background: #1d1d20;
    color: #fff;
}

.thread-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #0c0c0e;
    border: 1px solid #1d1d20;
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 100;
}

.thread-dropdown.active .thread-dropdown-menu {
    display: block;
}

.thread-dropdown-menu a,
.thread-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.thread-dropdown-menu a:hover,
.thread-dropdown-menu button:hover {
    background: #1d1d20;
    color: #fff;
}

/* Content */
.thread-content {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Gallery */
.thread-gallery {
    margin-bottom: 40px;
}

.thread-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.thread-gallery-header h3 {
    font-size: 0.65rem;
    font-weight: 900;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.thread-gallery-nav {
    display: flex;
    gap: 4px;
}

.thread-gallery-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #1d1d20;
    background: transparent;
    color: #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.thread-gallery-btn:hover {
    border-color: #27272a;
    color: #fff;
}

.thread-gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thread-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.thread-gallery-item {
    position: relative;
    min-width: 280px;
    aspect-ratio: 4/5;
    border-radius: 12px;
    border: 1px solid #1d1d20;
    overflow: hidden;
    background: #161618;
}

.thread-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.7s;
}

.thread-gallery-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.thread-gallery-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: all 0.3s;
}

.thread-gallery-item:hover .thread-gallery-overlay {
    opacity: 1;
}

.thread-gallery-overlay button {
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

/* Like Section */
.thread-like-section {
    display: flex;
    gap: 12px;
}

.thread-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid #27272a;
    background: transparent;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.thread-like-btn:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: #fff;
}

.thread-like-btn.liked {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Responses */
.thread-responses {
    padding-top: 48px;
    border-top: 1px solid #1d1d20;
}

.thread-responses-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.thread-responses-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}

.thread-responses-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #1d1d20, transparent);
}

.thread-responses-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Comments */
.thread-comments {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.thread-comment {
    display: flex;
    gap: 20px;
}

.thread-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d1d20, #09090b);
    border: 1px solid #27272a;
    overflow: hidden;
    flex-shrink: 0;
}

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

.thread-comment-content {
    flex: 1;
}

.thread-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.thread-comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-comment-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.thread-comment-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: #1d1d20;
    color: #71717a;
    border-radius: 8px;
    border: 1px solid #27272a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thread-comment-time {
    font-size: 0.7rem;
    color: #3f3f46;
}

.thread-comment-actions {
    display: flex;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s;
}

.thread-comment:hover .thread-comment-actions {
    opacity: 1;
}

.thread-comment-actions button,
.thread-comment-actions a {
    background: transparent;
    border: none;
    color: #52525b;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.thread-comment-actions button:hover,
.thread-comment-actions a:hover {
    color: var(--accent-green);
}

.thread-quoted {
    background: #0c0c0e;
    border-left: 3px solid var(--accent-green);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.thread-quoted-header {
    font-size: 0.75rem;
    color: #71717a;
    margin-bottom: 6px;
}

.thread-quoted-content {
    font-size: 0.85rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.thread-comment-text {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 16px;
}

.thread-comment-media {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.thread-comment-media img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #1d1d20;
}

.thread-comment-like button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.thread-comment-like button:hover {
    color: var(--accent-green);
}

/* Reply Section */
.thread-reply-section {
    margin-top: 64px;
}

.thread-reply-section form {
    background: #0c0c0e;
    border: 1px solid #1d1d20;
    border-radius: 16px;
    padding: 28px;
}

.thread-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52525b;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.thread-reply-header svg {
    color: var(--accent-green);
}

.thread-reply-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #e1e1e3;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    min-height: 140px;
    outline: none;
    line-height: 1.7;
}

.thread-reply-textarea::placeholder {
    color: #27272a;
}

.thread-reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #1d1d20;
}

.thread-attach-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #52525b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thread-attach-btn:hover {
    color: var(--accent-green);
}

.thread-submit-btn {
    padding: 10px 32px;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.thread-submit-btn:hover {
    background: var(--accent-green-dark);
    transform: scale(1.02);
}

.thread-submit-btn:active {
    transform: scale(0.98);
}

.thread-locked {
    text-align: center;
    padding: 40px;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 12px;
    color: #ff4444;
    font-size: 0.95rem;
    margin-top: 64px;
}

/* Footer */
.thread-footer {
    padding: 64px 0;
    border-top: 1px solid #1d1d20;
    text-align: center;
}

.thread-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #1d1d20;
    border: 1px solid #27272a;
    border-radius: 24px;
    margin-bottom: 16px;
}

.thread-status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.thread-status span {
    font-size: 0.65rem;
    font-weight: 900;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.thread-footer p {
    font-size: 0.65rem;
    color: #27272a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .thread-nav-links {
        display: none;
    }
    
    .thread-title {
        font-size: 1.5rem;
    }
    
    .thread-author-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .thread-gallery-item {
        min-width: 240px;
    }
    
    .thread-comment {
        gap: 12px;
    }
    
    .thread-comment-avatar {
        width: 32px;
        height: 32px;
    }
}

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

@media (max-width: 968px) {
    .category-card {
        grid-template-columns: 70px 1fr;
        gap: 20px;
    }
    
    .category-stats,
    .category-action {
        grid-column: 1 / -1;
        margin-top: 18px;
    }
    
    .thread-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }
    
    .thread-stats {
        justify-content: center;
    }
    
    .thread-activity {
        text-align: center;
    }
    
    .thread-post {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .user-avatar img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .admin-nav {
        gap: 10px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form select,
    .filter-form input {
        width: 100%;
    }
    
    .dashboard-grid,
    .profile-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .forum-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-title {
        flex-direction: column;
    }
    
    .thread-header {
        flex-direction: column;
    }
    
    .thread-title-section h1 {
        font-size: 1.8rem;
    }
}
/* ============================================
   MODERN FORUM REDESIGN
   Clean, sleek interface inspired by modern forums
   ============================================ */

.forum-body {
    background: #050505;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, sans-serif;
}

/* Navigation */
.forum-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.forum-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.forum-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.forum-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.forum-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forum-nav-links {
    display: flex;
    gap: 30px;
}

.forum-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.forum-nav-link:hover {
    color: var(--accent-green);
}

.forum-nav-link.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.forum-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.forum-search {
    position: relative;
}

.forum-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.forum-search-input {
    background: #121212;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px 8px 38px;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    width: 250px;
    transition: all 0.3s;
}

.forum-search-input:focus {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.forum-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    border: 2px solid rgba(0, 255, 136, 0.2);
    cursor: pointer;
}

/* Main Container */
.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.forum-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
}

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

.forum-btn-new {
    background: var(--accent-green);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.forum-btn-new:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.3);
}

.forum-btn-new:active {
    transform: translateY(0);
}

/* Forum Cards */
.forum-card {
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.forum-card-header {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
}

.forum-card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-card-title svg {
    color: var(--accent-green);
}

/* Categories */
.forum-categories-list {
    padding: 8px;
}

.forum-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.forum-category-item:hover {
    background: rgba(0, 255, 136, 0.05);
}

.forum-category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-category-icon {
    font-size: 1.1rem;
}

.forum-category-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.forum-category-item:hover .forum-category-name {
    color: var(--accent-green);
}

.forum-category-count {
    background: #1a1a1a;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.3s;
}

.forum-category-item:hover .forum-category-count {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
}

/* Top Contributors */
.forum-contributors {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-contributor-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-contributor-rank {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
}

.forum-contributor-info {
    flex: 1;
}

.forum-contributor-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-contributor-name:hover {
    color: var(--accent-green);
}

.forum-contributor-karma {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Feed */
.forum-main-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Filter Tabs */
.forum-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: fit-content;
}

.forum-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-tab:hover {
    color: var(--text-primary);
}

.forum-tab.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1);
}

/* Thread Cards */
.forum-threads {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.forum-thread-card {
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.forum-thread-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.forum-thread-stats-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 50px;
}

.forum-thread-stats-mobile svg {
    color: var(--text-muted);
}

.forum-thread-stat-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.forum-thread-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.forum-thread-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-thread-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-thread-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-thread-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.forum-trending-icon {
    animation: flame 1.5s ease-in-out infinite;
}

@keyframes flame {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.forum-thread-title {
    margin: 0;
}

.forum-thread-title a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s;
}

.forum-thread-card:hover .forum-thread-title a {
    color: var(--accent-green);
}

.forum-thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-thread-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.forum-thread-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.forum-thread-author strong {
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-thread-author strong:hover {
    color: var(--accent-green);
}

.forum-thread-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.forum-thread-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forum-thread-arrow {
    transition: all 0.3s;
}

.forum-thread-card:hover .forum-thread-arrow {
    transform: translateX(3px);
}

/* Load More */
.forum-load-more {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-load-more:hover {
    border-color: rgba(0, 255, 136, 0.5);
    color: var(--accent-green);
}

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

/* Stats Card */
.forum-stats-card {
    background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
    position: relative;
    overflow: hidden;
}

.forum-stats-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 50%;
    filter: blur(40px);
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 18px;
}

.forum-stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.forum-stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.forum-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Activity List */
.forum-activity-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.forum-activity-item {
    border-left: 2px solid rgba(0, 255, 136, 0.2);
    padding-left: 15px;
}

.forum-activity-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.forum-activity-text strong {
    color: var(--accent-green);
    font-weight: 600;
}

.forum-activity-text a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.forum-activity-text a:hover {
    color: var(--accent-green);
}

.forum-activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Help Box */
.forum-help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 15px 0 18px;
    padding: 0 18px;
}

.forum-btn-help {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.forum-btn-help:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-green);
}

/* Footer Links */
.forum-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 10px;
}

.forum-footer-links a {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s;
}

.forum-footer-links a:hover {
    color: var(--accent-green);
}

/* Floating Action Button */
.forum-fab {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: var(--accent-green);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.forum-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

.forum-fab:active {
    transform: scale(0.95);
}

/* ============================================
   RESPONSIVE - IMPROVED MOBILE LAYOUT
   ============================================ */
/* Responsive */
@media (max-width: 1200px) {
    .forum-grid {
        grid-template-columns: 260px 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .forum-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar-left,
    .forum-sidebar-right {
        display: none;
    }
    
    .forum-nav-links {
        display: none;
    }
    
    .forum-fab {
        display: flex;
    }
}

@media (max-width: 640px) {
    .forum-search {
        display: none;
    }
    
    .forum-thread-card {
        padding: 18px;
    }
    
    .forum-thread-stats-mobile {
        display: none;
    }
    
    .forum-thread-title a {
        font-size: 1rem;
    }
}
