/* ============================================================
   JUST RP SCP — IMMERSIVE DARK UI
   SCP-inspired glassmorphism, amber glow, containment aesthetics
   ============================================================ */

:root {
    --bg-primary: #05080c;
    --bg-secondary: #0a0e14;
    --bg-card: rgba(12, 16, 24, 0.6);
    --bg-card-solid: #0c1018;
    --bg-glass: rgba(14, 18, 28, 0.45);
    --bg-glass-hover: rgba(24, 28, 42, 0.55);
    --bg-glass-strong: rgba(18, 22, 36, 0.7);
    --bg-input: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.11);
    --border-hover: rgba(255, 255, 255, 0.20);
    --border-glow: rgba(255, 255, 255, 0.30);

    --text-primary: #e8e6e3;
    --text-secondary: #8a8fa0;
    --text-muted: #4a4f60;
    --white: #f0ece6;

    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.7);
    --accent-glow: rgba(255, 255, 255, 0.04);
    --accent-glow-md: rgba(255, 255, 255, 0.08);
    --accent-glow-strong: rgba(255, 255, 255, 0.13);
    --accent-border: rgba(255, 255, 255, 0.12);

    --brand: #ffffff;
    --brand-glow: rgba(255, 255, 255, 0.06);
    --brand-glow-strong: rgba(255, 255, 255, 0.14);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.08);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.08);
    --warning: #f59e0b;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --blur: 24px;
    --blur-strong: 48px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.04);
    --shadow-brand: 0 0 30px rgba(255, 255, 255, 0.08);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms ease;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
    --header-h: 68px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.008) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.006) 0%, transparent 35%);
    background-attachment: fixed;
}
a { color: var(--white); text-decoration: none; transition: all var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--white); }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
::selection { background: rgba(255,255,255,0.2); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* LAYOUT */
.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.main-content { min-height: calc(100vh - var(--header-h) - 200px); padding-top: calc(var(--header-h) + 20px); padding-bottom: 40px; }

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h); z-index: 1000;
    background: rgba(5, 8, 12, 0.8);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04);
}
.header-container {
    max-width: 1300px; margin: 0 auto; padding: 0 28px;
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo:hover { opacity: 1; }
.logo:hover .logo-img { filter: drop-shadow(0 0 12px rgba(255,255,255,0.4)); }
.logo-img {
    width: 38px; height: 38px; min-width: 38px; max-width: 38px; min-height: 38px; max-height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
    transition: all var(--transition);
}
.logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12); color: var(--white);
    font-weight: 800; font-size: 0.72rem; letter-spacing: 1px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.logo-text {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    color: var(--white); letter-spacing: 1.5px; text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-secondary); transition: all var(--transition); text-decoration: none;
}
.nav-link:hover { color: var(--brand); background: var(--accent-glow); opacity: 1; }
.nav-link.active { color: var(--brand); background: var(--accent-glow-md); font-weight: 600; }
.nav-admin { color: var(--white) !important; }

.header-right { display: flex; align-items: center; gap: 14px; }

/* Search */
.search-bar { position: relative; }
.search-bar form { display: flex; align-items: center; }
.search-input {
    width: 220px; padding: 9px 16px; padding-right: 38px;
    background: var(--accent-glow); border: 1px solid var(--border);
    border-radius: var(--radius-full); color: var(--white);
    font-size: 0.85rem; transition: all var(--transition);
}
.search-input:focus {
    width: 280px; background: var(--accent-glow-md);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05), var(--shadow-glow);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-btn:hover { color: var(--white); }

.search-suggestions {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--bg-card-solid); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    z-index: 100; display: none; overflow: hidden;
}
.search-suggestions.active { display: block; }
.search-suggestion-item {
    display: block; padding: 12px 16px; font-size: 0.85rem;
    border-bottom: 1px solid var(--border); transition: background var(--transition);
    text-decoration: none; color: var(--text-primary);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--accent-glow); }
.search-suggestion-type { font-size: 0.65rem; text-transform: uppercase; color: var(--brand); margin-right: 8px; font-weight: 700; letter-spacing: 0.5px; }

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    color: var(--text-secondary); transition: all var(--transition); text-decoration: none;
}
.header-icon-btn:hover { color: var(--white); background: var(--accent-glow); }
.badge-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 0.62rem; font-weight: 700;
    background: var(--danger); color: #fff;
    border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
}
.user-menu-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 14px 4px 4px; border-radius: var(--radius-full);
    transition: all var(--transition);
}
.user-menu-btn:hover { background: var(--accent-glow); }
.header-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); object-fit: cover; }
.header-username { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: var(--radius-sm); }
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   DROPDOWNS
   ============================================================ */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 240px; background: var(--bg-card-solid);
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); z-index: 1001; display: none;
    overflow: hidden; animation: dropIn 200ms ease;
}
.dropdown-menu.show { display: block; }
@keyframes dropIn { from { opacity:0; transform: translateY(-8px) scale(0.98); } to { opacity:1; transform: translateY(0) scale(1); } }
.dropdown-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.dropdown-body { max-height: 340px; overflow-y: auto; }
.dropdown-item { display: block; padding: 11px 18px; font-size: 0.88rem; transition: background var(--transition); text-decoration: none; color: var(--text-primary); }
.dropdown-item:hover { background: var(--accent-glow); opacity: 1; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.text-danger { color: var(--danger) !important; }
.mark-all-read { font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; }
.mark-all-read:hover { color: var(--white); }
.notif-menu { min-width: 380px; }
.notif-empty { padding: 28px 18px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }
.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 18px; border-bottom: 1px solid var(--border);
    font-size: 0.83rem; text-decoration: none; color: var(--text-primary);
    transition: background var(--transition); position: relative;
}
.notif-item:hover { background: var(--bg-glass-hover); opacity: 1; }
.notif-item.unread { background: rgba(255,255,255,0.03); }
.notif-item.unread:hover { background: rgba(255,255,255,0.055); }
.notif-icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; margin-top: 1px;
    background: rgba(255,255,255,0.07);
}
.notif-icon-like    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.notif-icon-reply   { background: rgba(59,130,246,0.15); color: #3b82f6; }
.notif-icon-mention { background: rgba(168,85,247,0.15); color: #a855f7; }
.notif-icon-pm      { background: rgba(34,197,94,0.15);  color: #22c55e; }
.notif-icon-warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.notif-icon-delete  { background: rgba(239,68,68,0.12);  color: #f87171; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg  { display: block; line-height: 1.4; word-break: break-word; }
.notif-time { display: block; color: var(--text-muted); font-size: 0.71rem; margin-top: 3px; }
.notif-dot  {
    flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
    background: #3b82f6; margin-top: 6px;
}
.loading-spinner { display: flex; justify-content: center; padding: 24px; }
.loading-spinner::after { content:''; width: 24px; height: 24px; border: 3px solid var(--border-light); border-top-color: var(--white); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative; overflow: hidden;
    padding: 72px 48px; margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(14,18,28,0.7) 0%, rgba(255,255,255,0.02) 50%, rgba(14,18,28,0.7) 100%);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="50" text-anchor="middle" font-size="60" opacity="0.02" fill="%23ffffff">SCP</text></svg>') repeat;
    background-size: 200px; opacity: 0.3; pointer-events: none;
}
.hero-glow {
    position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 40%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 5px 18px;
    font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 3px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full); color: var(--white);
    margin-bottom: 22px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.hero-banner h1 {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
    margin-bottom: 14px; letter-spacing: 2px; text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #c8c4c0 50%, #ffffff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.15));
}
.hero-banner p { color: var(--text-secondary); font-size: 1.05rem; max-width: 580px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   HOME LAYOUT — 2 COLUMNS
   ============================================================ */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.home-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ============================================================
   CATEGORY & FORUM BLOCKS
   ============================================================ */
.category-block {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.category-block:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.category-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.category-header-left { display: flex; align-items: center; gap: 14px; }
.category-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); color: var(--white); flex-shrink: 0;
}
.category-header h2 { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.category-desc { font-size: 0.78rem; color: var(--text-muted); }
.category-count { font-size: 0.72rem; color: var(--text-muted); padding: 4px 10px; background: var(--accent-glow); border-radius: var(--radius-full); }

.forum-row {
    display: grid; grid-template-columns: 52px 1fr 130px 220px;
    align-items: center; gap: 18px;
    padding: 18px 24px; border-bottom: 1px solid var(--border);
    transition: all var(--transition); text-decoration: none; color: inherit;
}
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--accent-glow); }
.forum-row:hover .forum-icon { border-color: var(--border-glow); box-shadow: 0 0 20px rgba(255,255,255,0.06); }

.forum-icon-wrap { position: relative; }
.forum-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); color: var(--brand);
    transition: all var(--transition);
}
.forum-icon-badge { position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; }
.forum-icon-badge.locked { background: var(--danger); color: #fff; }

.forum-info h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.forum-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.forum-counters { display: flex; gap: 20px; }
.forum-counter { text-align: center; }
.counter-value { display: block; font-size: 1.05rem; font-weight: 700; color: var(--white); }
.counter-label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.forum-latest { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; min-width: 0; }
.latest-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.latest-info { min-width: 0; }
.latest-topic { display: block; font-weight: 500; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-meta { display: block; font-size: 0.72rem; color: var(--text-muted); }
.no-posts { color: var(--text-muted); font-size: 0.78rem; font-style: italic; }

/* ============================================================
   SIDEBAR — RIGHT COLUMN
   ============================================================ */
.home-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }

.sidebar-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.sidebar-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--text-secondary);
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* Stats grid */
.stats-grid-mini {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.stat-box {
    text-align: center; padding: 16px 10px;
    background: var(--accent-glow);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.stat-box:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 24px rgba(255,255,255,0.04);
    background: var(--accent-glow-md);
}
.stat-box-value { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat-box-label { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-footer { font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.stat-footer a { color: var(--white); font-weight: 500; }

/* Online */
.pulse-dot {
    display: inline-block; width: 8px; height: 8px;
    background: var(--success); border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.online-avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.online-avatar-link { --role-color: #22c55e; }
.online-avatar-link img {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--role-color);
    object-fit: cover; transition: all var(--transition);
}
.online-avatar-link img:hover { transform: scale(1.12); box-shadow: 0 0 10px var(--role-color); }
.sidebar-empty { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   SERVER WIDGET (index sidebar)
   ============================================================ */
.srv-section { margin-bottom: 8px; }
.srv-section-title {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted);
    padding: 0 0 10px 0; display: flex; align-items: center; gap: 7px;
}
.srv-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.srv-card:last-child { margin-bottom: 0; }
.srv-card:hover { border-color: var(--border-hover); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.srv-card-banner {
    position: relative; height: 90px;
    background-size: cover; background-position: center;
    background-color: #0c1018;
}
.srv-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
    display: flex; align-items: flex-end; padding: 8px 10px;
}
.srv-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 3px 8px; border-radius: 20px;
}
.srv-status-on  { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.srv-status-off { background: rgba(255,255,255,0.07); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
.srv-dot-pulse {
    width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 5px #4ade80; animation: pulse 1.8s infinite;
}
.srv-dot-off-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.srv-card-body { padding: 10px 12px 12px; }
.srv-card-name {
    font-size: 0.88rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srv-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.srv-card-meta span {
    font-size: 0.71rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
}
.srv-card-meta i { font-size: 0.65rem; }
.srv-card-players-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 5px;
}
.srv-card-players-label { font-size: 0.71rem; color: var(--text-muted); }
.srv-card-players-count { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); }
.srv-bar-wrap { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.srv-bar { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* ============================================================
   CHATBOX
   ============================================================ */
.chatbox-wrap {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.chatbox-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.chatbox-title {
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
}
.chatbox-live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 6px #4ade80;
    animation: pulse 1.8s infinite;
}
.chatbox-online { font-size: 0.75rem; color: var(--text-muted); }
.chatbox-clear-btn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px; font-size: 0.74rem; font-weight: 600;
    background: var(--danger-bg); color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2); cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.chatbox-clear-btn:hover { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.4); }
.chatbox-messages {
    height: 280px; overflow-y: auto;
    padding: 10px 0;
    display: flex; flex-direction: column;
    scroll-behavior: smooth;
}
.chatbox-messages::-webkit-scrollbar { width: 4px; }
.chatbox-messages::-webkit-scrollbar-track { background: transparent; }
.chatbox-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.chat-empty {
    text-align: center; color: var(--text-muted);
    font-size: 0.8rem; padding: 40px 20px; margin: auto;
}
.chat-msg {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 5px 18px; transition: background var(--transition);
}
.chat-msg:hover { background: rgba(255,255,255,0.025); }
.chat-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; margin-top: 2px; border: 1px solid var(--border);
}
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-name { font-size: 0.8rem; font-weight: 700; margin-right: 6px; }
.chat-msg-time { font-size: 0.69rem; color: var(--text-muted); margin-right: 4px; }
.chat-del-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 0.7rem; padding: 0 4px;
    opacity: 0; transition: opacity var(--transition), color var(--transition);
    vertical-align: middle;
}
.chat-msg:hover .chat-del-btn { opacity: 1; }
.chat-del-btn:hover { color: var(--danger); }
.chat-msg-text {
    font-size: 0.82rem; color: var(--text-secondary);
    word-break: break-word; line-height: 1.4; margin-top: 1px;
}
.chatbox-form {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.chatbox-form-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 1px solid var(--border);
}
.chatbox-input {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 12px; font-size: 0.83rem; color: var(--text-primary);
    outline: none; transition: border-color var(--transition); font-family: inherit;
}
.chatbox-input:focus { border-color: rgba(255,255,255,0.25); }
.chatbox-input::placeholder { color: var(--text-muted); }
.chatbox-send-btn {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 0.8rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}
.chatbox-send-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
.chatbox-guest {
    padding: 10px 18px; font-size: 0.8rem; color: var(--text-muted);
    border-top: 1px solid var(--border); text-align: center;
}
.chatbox-guest a { color: var(--text-primary); }
.chatbox-loading { display: flex; justify-content: center; align-items: center; height: 100%; }

/* Recent members */
.recent-members-list { display: flex; flex-direction: column; gap: 0; }
.recent-members-list li { border-bottom: 1px solid var(--border); }
.recent-members-list li:last-child { border-bottom: none; }
.recent-member-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; text-decoration: none; transition: opacity var(--transition);
}
.recent-member-link:hover { opacity: 0.8; }
.recent-member-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.recent-member-name { display: block; font-size: 0.85rem; font-weight: 500; }
.recent-member-date { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 0.84rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--white); opacity: 1; }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; font-size: 0.9rem; font-weight: 600;
    border-radius: var(--radius-md); border: 1px solid transparent;
    transition: all var(--transition); cursor: pointer; text-decoration: none; line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, #f0ece6, #d8d4ce); color: #05080c; border-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255,255,255,0.08), 0 0 60px rgba(255,255,255,0.03);
}
.btn-primary:hover {
    transform: translateY(-1px); color: #05080c; opacity: 1;
    box-shadow: 0 0 30px rgba(255,255,255,0.15), 0 0 80px rgba(255,255,255,0.06);
}
.btn-glass {
    background: var(--accent-glow-md); color: var(--white);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--accent-glow-strong); border-color: var(--border-glow); opacity: 1; }

.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--accent-glow); border-color: var(--border-hover); opacity: 1; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; opacity: 1; color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: 0.72rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon:hover { background: var(--accent-glow); }

/* ============================================================
   FORMS
   ============================================================ */
.form-page { max-width: 720px; margin: 0 auto; }
.form-page h1 { margin-bottom: 6px; }
.form-subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.92rem; }
.main-form, .settings-section {
    background: var(--bg-glass); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; margin-bottom: 24px;
}
.settings-section h2 { font-size: 1.05rem; margin-bottom: 20px; color: var(--text-secondary); padding-bottom: 12px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"],
.form-group input[type="number"], .form-group input[type="url"], .form-group input[type="datetime-local"],
.form-group input[type="file"], .form-group select, .form-group textarea,
.form-control, .filter-search, .filter-input, .filter-select, .search-big-input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.9rem;
    transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.form-control:focus, .filter-search:focus, .search-big-input:focus {
    background: var(--accent-glow); border-color: var(--border-glow);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 0 20px rgba(255,255,255,0.02);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239999b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-checkboxes { display: flex; flex-wrap: wrap; gap: 14px; }
.checkbox-label {
    display: inline-flex; align-items: center; gap: 0;
    padding-left: 26px;
    font-size: 0.88rem; cursor: pointer; position: relative;
    user-select: none; color: var(--text-secondary);
    transition: color var(--transition);
    line-height: 1.4;
}
.checkbox-label span { padding-left: 10px; }
.checkbox-label:hover { color: var(--text-primary); }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
/* Box */
.checkbox-label::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px; border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.22);
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
/* Checkmark */
.checkbox-label::after {
    content: ''; position: absolute;
    left: 6px; top: 50%;
    transform: translateY(-68%) rotate(45deg);
    width: 5px; height: 9px;
    border-right: 2px solid #0a0b0f;
    border-bottom: 2px solid #0a0b0f;
    opacity: 0; transition: opacity .15s;
}
.checkbox-label:has(input:checked)::before { background: #fff; border-color: #fff; }
.checkbox-label:has(input:checked)::after { opacity: 1; }
.checkbox-label:has(input:checked) { color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.current-avatar { margin-bottom: 14px; }
.edit-avatar-preview { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); object-fit: cover; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.char-counter { font-size: 0.75rem; color: var(--text-muted); }

/* Auth pages */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 0; }
.auth-card {
    width: 100%; max-width: 440px; padding: 44px 36px; text-align: center;
    background: var(--bg-glass); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-light); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.auth-header { margin-bottom: 32px; }
.auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.15);
    font-weight: 800; font-size: 1rem; border-radius: var(--radius-md); margin-bottom: 18px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
.auth-header h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-header p { color: var(--text-secondary); font-size: 0.92rem; }
.auth-form .form-group { text-align: left; }
.auth-form .btn-full { margin-top: 10px; }
.auth-footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-secondary); }

/* Steam button */
.btn-steam {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; font-size: 0.95rem; font-weight: 700;
    background: linear-gradient(135deg, #171a21, #1b2838);
    color: #c7d5e0; border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: var(--radius-md); cursor: pointer;
    transition: all var(--transition); text-decoration: none; width: 100%;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.05);
}
.btn-steam:hover {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: rgba(102, 192, 244, 0.4); color: #fff; opacity: 1;
    box-shadow: 0 0 30px rgba(102, 192, 244, 0.1);
    transform: translateY(-1px);
}
.btn-steam.btn-sm {
    padding: 8px 18px; font-size: 0.82rem; width: auto;
}
.steam-info {
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
}
.steam-info p {
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
}

/* Font Awesome icon sizing helpers */
.category-icon i { font-size: 1rem; }
.forum-icon i { font-size: 1.2rem; }
.sidebar-title i { font-size: 0.85rem; }
.post-action-btn i { font-size: 0.9rem; }
.like-btn.liked i { color: var(--white); }
.search-btn i { font-size: 0.9rem; }
.header-icon-btn i { font-size: 1.1rem; }

/* ============================================================
   TOPIC LIST (forum.php)
   ============================================================ */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-header h1 { font-size: 1.5rem; }
.page-description { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.count { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }
.sort-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 0.84rem; color: var(--text-muted); }
.sort-link { padding: 7px 14px; border-radius: var(--radius-full); color: var(--text-secondary); transition: all var(--transition); text-decoration: none; }
.sort-link:hover { background: var(--accent-glow); color: var(--white); opacity: 1; }
.sort-link.active { background: var(--accent-glow-md); color: var(--white); font-weight: 600; }

.topic-list {
    display: flex; flex-direction: column;
    background: var(--bg-glass); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 22px;
}
.topic-row {
    display: grid; grid-template-columns: 36px 1fr 120px 140px;
    align-items: center; gap: 14px; padding: 16px 22px;
    border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: var(--accent-glow); }
.topic-row.pinned { background: var(--accent-glow); border-left: 3px solid rgba(255,255,255,0.2); }
.topic-row.announcement { background: var(--info-bg); border-left: 3px solid var(--info); }
.topic-status { display: flex; align-items: center; justify-content: center; }
.topic-title { font-size: 0.98rem; font-weight: 500; margin-bottom: 3px; }
.topic-title a { color: var(--text-primary); text-decoration: none; }
.topic-title a:hover { color: var(--white); opacity: 1; }
.topic-badge { display: inline-block; font-size: 0.6rem; padding: 2px 8px; border-radius: var(--radius-full); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 6px; vertical-align: middle; }
.badge-pinned { background: var(--accent-glow-strong); color: var(--white); }
.badge-announcement { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }
.badge-locked { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.topic-meta { font-size: 0.76rem; color: var(--text-muted); }
.topic-meta a { text-decoration: none; }
.topic-stats { display: flex; gap: 18px; justify-content: center; }
.topic-last-post { font-size: 0.78rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 52px 24px; color: var(--text-muted); }

/* ============================================================
   POST CARDS (topic.php)
   ============================================================ */
.topic-meta-info { display: flex; gap: 8px; font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; flex-wrap: wrap; }
.posts-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.post-card {
    display: grid; grid-template-columns: 190px 1fr;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-glass); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.post-card:hover { border-color: var(--border-hover); }
.post-sidebar {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 18px; background: rgba(0,0,0,0.12);
    border-right: 1px solid var(--border); gap: 6px; text-align: center;
}
.post-avatar-link { position: relative; display: block; margin-bottom: 6px; }
.post-avatar {
    width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.12);
    object-fit: cover; transition: all var(--transition);
}
.post-avatar:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 0 20px rgba(255,255,255,0.06); }
.post-username { font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.post-username:hover { opacity: 0.8; }
.post-user-stats { display: flex; flex-direction: column; gap: 2px; font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; }
.post-main { padding: 22px 28px; display: flex; flex-direction: column; }
.post-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.post-date { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; }
.post-date:hover { color: var(--white); opacity: 1; }
.post-number { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.post-content { flex: 1; font-size: 0.94rem; line-height: 1.75; word-wrap: break-word; }
.post-content img.bbcode-img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.post-signature { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 0.78rem; color: var(--text-muted); }
.post-edited { font-size: 0.72rem; color: var(--text-muted); font-style: italic; margin-top: 8px; }
.post-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.post-actions-left, .post-actions-right { display: flex; gap: 6px; align-items: center; }
.post-action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; font-size: 0.78rem; border-radius: var(--radius-full);
    color: var(--text-secondary); background: var(--accent-glow);
    border: 1px solid var(--border); transition: all var(--transition);
    text-decoration: none; cursor: pointer;
}
.post-action-btn:hover { background: var(--accent-glow-md); color: var(--white); border-color: var(--border-hover); opacity: 1; }
.like-btn.liked { color: var(--white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); }
.like-btn.liked svg { fill: var(--white); }

/* BBCode */
.bbcode-quote { margin: 14px 0; padding: 16px 20px; background: var(--accent-glow); border-left: 3px solid rgba(255,255,255,0.2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.bbcode-quote cite { display: block; font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; font-style: normal; margin-bottom: 6px; }
.bbcode-code { margin: 14px 0; padding: 16px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.84rem; overflow-x: auto; white-space: pre; }
.bbcode-spoiler { margin: 10px 0; }
.spoiler-toggle { padding: 6px 14px; font-size: 0.78rem; background: var(--accent-glow); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; }
.spoiler-toggle:hover { background: var(--accent-glow-md); }
.spoiler-content { display: none; margin-top: 8px; padding: 14px; background: rgba(0,0,0,0.15); border-radius: var(--radius-sm); }
.bbcode-spoiler.open .spoiler-content { display: block; }
.bbcode-list { padding-left: 20px; }
.bbcode-list li { position: relative; padding-left: 14px; margin: 4px 0; }
.bbcode-list li::before { content: '•'; position: absolute; left: 0; color: var(--white); }
.bbcode-center { text-align: center; }
.bbcode-left { text-align: left; }
.bbcode-right { text-align: right; }
.bbcode-justify { text-align: justify; }
.mention { color: var(--info); font-weight: 500; }
.topic-locked-notice { display: flex; align-items: center; gap: 10px; padding: 18px 22px; background: var(--danger-bg); border: 1px solid rgba(239,68,68,0.15); border-radius: var(--radius-md); color: var(--danger); font-size: 0.9rem; }

/* Reply form */
.reply-form-container { background: var(--bg-glass); backdrop-filter: blur(var(--blur)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-top: 10px; }
.reply-form-container h3 { font-size: 1.1rem; margin-bottom: 18px; }
.bbcode-toolbar { display: flex; gap: 3px; padding: 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; flex-wrap: wrap; align-items: center; }
.bbcode-toolbar button { min-width: 34px; padding: 6px 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); background: var(--accent-glow); border-radius: 6px; transition: all var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.bbcode-toolbar button:hover { background: var(--accent-glow-md); color: var(--white); }
.bbcode-toolbar button i { font-size: 0.9rem; }
.toolbar-sep { width: 1px; background: var(--border); margin: 0 4px; align-self: stretch; }
.bbcode-font-dropdown { position: relative; display: inline-flex; }
.bbcode-font-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 180px; padding: 6px; background: #15151f; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none; flex-direction: column; gap: 2px; }
.bbcode-font-menu.show { display: flex; }
.bbcode-font-menu button { width: 100%; min-width: 0; justify-content: flex-start; padding: 8px 12px; font-size: 0.85rem; text-align: left; background: transparent; color: var(--text-primary); border-radius: 4px; }
.bbcode-font-menu button:hover { background: var(--accent-glow-md); color: var(--white); }
.bbcode-color-dropdown { position: relative; display: inline-flex; }
.bbcode-color-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; padding: 10px; background: #15151f; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none; }
.bbcode-color-menu.show { display: block; }
.bbcode-color-grid { display: grid; grid-template-columns: repeat(8, 22px); gap: 5px; }
.bbcode-color-swatch { width: 22px; height: 22px; border-radius: 4px; cursor: pointer; border: 1px solid rgba(255,255,255,0.15); padding: 0; min-width: 0; transition: transform 0.12s; }
.bbcode-color-swatch:hover { transform: scale(1.18); border-color: rgba(255,255,255,0.6); }
.bbcode-color-custom { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.bbcode-color-custom label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; }
.bbcode-color-custom label:hover { color: var(--white); }
.bbcode-color-custom input[type="color"] { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 4px; background: none; cursor: pointer; padding: 0; }
.bbcode-color-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.bbcode-color-custom input[type="color"]::-webkit-color-swatch { border: none; border-radius: 3px; }

/* ============================================================
   ROLE BADGES & STATUS
   ============================================================ */
.role-badge { display: inline-block; padding: 3px 10px; font-size: 0.68rem; font-weight: 600; border-radius: var(--radius-full); color: #fff; text-transform: uppercase; letter-spacing: 0.3px; }
.status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-card-solid); }
.status-indicator.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-indicator.offline { background: var(--text-muted); }
.status-badge { display: inline-block; padding: 3px 10px; font-size: 0.68rem; font-weight: 600; border-radius: var(--radius-full); }
.status-badge.active { background: var(--success-bg); color: var(--success); }
.status-badge.banned { background: var(--danger-bg); color: var(--danger); }
.status-badge.locked { background: var(--danger-bg); color: var(--danger); }
.status-badge.private { background: rgba(155,89,182,0.12); color: #9b59b6; }
.status-badge.pinned { background: var(--accent-glow-md); color: var(--white); }
.status-badge.announce { background: var(--info-bg); color: var(--info); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.online { background: var(--success); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 22px 0; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    font-size: 0.84rem; font-weight: 500; border-radius: var(--radius-sm);
    color: var(--text-secondary); background: var(--bg-glass); border: 1px solid var(--border);
    transition: all var(--transition); text-decoration: none;
}
.page-link:hover { background: var(--accent-glow); color: var(--white); border-color: var(--border-hover); opacity: 1; }
.page-link.active { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.25); font-weight: 700; box-shadow: 0 0 16px rgba(255,255,255,0.06); }
.page-dots { color: var(--text-muted); padding: 0 6px; }

/* ============================================================
   ALERTS / TOASTS
   ============================================================ */
.alert {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 18px;
    font-size: 0.9rem; border: 1px solid; animation: alertIn 300ms ease;
}
@keyframes alertIn { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }
.alert-success { background: var(--success-bg); border-color: rgba(34,197,94,0.15); color: var(--success); }
.alert-error { background: var(--danger-bg); border-color: rgba(239,68,68,0.15); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.15); color: var(--warning); }
.alert-info { background: var(--info-bg); border-color: rgba(59,130,246,0.15); color: var(--info); }
.alert-close { font-size: 1.2rem; color: inherit; opacity: 0.6; cursor: pointer; }
.alert-close:hover { opacity: 1; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 16px 22px; background: var(--bg-card-solid); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.88rem; min-width: 260px; max-width: 420px; animation: toastIn 300ms ease; backdrop-filter: blur(var(--blur)); transition: all 300ms ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-header { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-glass); border: 1px solid var(--border); margin-bottom: 26px; }
.profile-banner { height: 150px; background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); }
.profile-info { display: flex; align-items: flex-end; gap: 22px; padding: 0 32px 28px; margin-top: -44px; flex-wrap: wrap; }
.profile-avatar-container { position: relative; flex-shrink: 0; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--bg-card-solid); object-fit: cover; box-shadow: var(--shadow); }
.profile-avatar-container .status-indicator { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; }
.profile-details { flex: 1; }
.profile-details h1 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-bio { color: var(--text-secondary); font-size: 0.9rem; margin-top: 6px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-stats-bar { display: flex; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; }
.profile-stat { flex: 1; text-align: center; padding: 18px 14px; border-right: 1px solid var(--border); }
.profile-stat:last-child { border-right: none; }
.profile-stat-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.profile-stat-label { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; margin-top: 3px; }
.profile-section { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; }
.profile-section h2 { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px; }
.empty-text { color: var(--text-muted); font-size: 0.88rem; }
.profile-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.profile-item:last-child { border-bottom: none; }
.profile-item a { font-weight: 500; }
.profile-item-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }
.profile-item-excerpt { font-size: 0.84rem; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   MEMBERS
   ============================================================ */
.members-filters { margin-bottom: 22px; }
.filters-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-search, .filter-input { max-width: 220px; }
.filter-select { max-width: 180px; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.member-card {
    padding: 28px 18px; text-align: center;
    background: var(--bg-glass); backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.member-card:hover { border-color: var(--border-glow); background: var(--bg-glass-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.member-card-link { text-decoration: none; display: block; }
.member-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.member-avatar { width: 68px; height: 68px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.1); object-fit: cover; }
.member-avatar-wrap .status-indicator { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; }
.member-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.member-stats { display: flex; justify-content: center; gap: 14px; font-size: 0.74rem; color: var(--text-muted); margin-top: 8px; }
.member-joined { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-form { background: var(--bg-glass); backdrop-filter: blur(var(--blur)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 26px; }
.search-main-input { display: flex; gap: 12px; margin-bottom: 16px; }
.search-big-input { flex: 1; padding: 14px 20px; font-size: 1.05rem; }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.search-results-info { margin-bottom: 18px; font-size: 0.9rem; color: var(--text-secondary); }
.search-results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.search-result-item { display: flex; gap: 16px; padding: 18px 22px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition); }
.search-result-item:hover { border-color: var(--border-hover); background: var(--bg-glass-hover); }
.result-type-badge { padding: 3px 10px; font-size: 0.65rem; font-weight: 700; background: var(--accent-glow-md); color: var(--white); border-radius: var(--radius-full); align-self: flex-start; text-transform: uppercase; letter-spacing: 0.5px; }
.result-content h3 { font-size: 1rem; margin-bottom: 4px; }
.result-content h3 a { color: var(--text-primary); }
.result-content h3 a:hover { color: var(--white); opacity: 1; }
.result-excerpt { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 4px; }
.result-meta { font-size: 0.76rem; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   MESSAGES
   ============================================================ */
.messages-tabs { display: flex; gap: 4px; }
.tab-link { padding: 8px 18px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); text-decoration: none; }
.tab-link:hover { background: var(--accent-glow); color: var(--white); opacity: 1; }
.tab-link.active { background: var(--accent-glow-md); color: var(--white); }
.messages-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.message-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 22px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition); text-decoration: none; color: inherit; }
.message-row:hover { background: var(--bg-glass-hover); border-color: var(--border-hover); opacity: 1; }
.message-row.unread { border-left: 3px solid var(--white); background: var(--accent-glow); }
.message-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.message-title { font-weight: 500; font-size: 0.92rem; margin-bottom: 2px; }
.message-snippet { font-size: 0.78rem; color: var(--text-muted); }
.message-date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.message-view { background: var(--bg-glass); backdrop-filter: blur(var(--blur)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-top: 18px; }
.message-header-info h2 { margin-bottom: 12px; }
.message-meta { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 22px; flex-wrap: wrap; }
.message-meta .message-avatar { width: 34px; height: 34px; }
.message-body { line-height: 1.75; margin-bottom: 22px; }
.message-actions { display: flex; gap: 8px; }

/* Report */
.report-preview { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px; }
.report-preview blockquote { margin-top: 10px; padding: 14px 18px; background: rgba(0,0,0,0.15); border-left: 3px solid rgba(255,255,255,0.15); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   TABLES
   ============================================================ */
.admin-table th { text-align: left; padding: 12px 16px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.admin-table tbody tr { transition: background var(--transition); }
.admin-table tbody tr:hover { background: var(--accent-glow); }
.admin-table-wrap { overflow-x: auto; }
.table-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.action-btns, .action-btns-wrap { display: flex; gap: 4px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 52px 0 28px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.footer-section h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-section p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.7; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul a { font-size: 0.84rem; color: var(--text-secondary); }
.footer-section ul a:hover { color: var(--white); }
.footer-stats li { font-size: 0.84rem; color: var(--text-secondary); }
.footer-stats strong { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-legal { margin-top: 6px; }

/* Error page */
.error-page { text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: 5rem; font-weight: 800; color: var(--white); margin-bottom: 10px; text-shadow: 0 0 60px rgba(255,255,255,0.15); font-family: var(--font-display); }
.error-page p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px; }

/* Inline form */
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .form-control { flex: 1; min-width: 150px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .home-layout { grid-template-columns: 1fr 280px; gap: 20px; }
    .forum-row { grid-template-columns: 48px 1fr 120px; }
    .forum-latest { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
}

@media (max-width: 768px) {
    :root { --header-h: 58px; }
    .mobile-menu-toggle { display: flex; }
    .main-nav {
        display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--bg-card-solid); border-bottom: 1px solid var(--border);
        padding: 14px; flex-direction: column; box-shadow: var(--shadow-lg); z-index: 999;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 14px 18px; }
    .search-bar { display: none; }
    .header-username { display: none; }
    .hero-banner { padding: 36px 24px; }
    .hero-banner h1 { font-size: 1.6rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .forum-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
    .forum-icon-wrap { display: none; }
    .forum-counters { justify-content: flex-start; gap: 16px; }
    .forum-latest { display: none; }
    .topic-row { grid-template-columns: 1fr; gap: 6px; }
    .topic-status { display: none; }
    .topic-stats { justify-content: flex-start; }
    .topic-last-post { display: none; }
    .post-card { grid-template-columns: 1fr; }
    .post-sidebar { flex-direction: row; padding: 16px 18px; border-right: none; border-bottom: 1px solid var(--border); justify-content: flex-start; gap: 14px; }
    .post-avatar { width: 50px; height: 50px; }
    .post-user-stats { flex-direction: row; gap: 8px; }
    .profile-info { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats-bar { flex-wrap: wrap; }
    .profile-stat { min-width: 33%; }
    .members-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 22px; }
    .notif-menu { min-width: 290px; right: -80px; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-banner { padding: 28px 18px; }
    .hero-banner h1 { font-size: 1.3rem; }
    .category-header { padding: 14px 16px; }
    .forum-row { padding: 14px 16px; }
    .post-main { padding: 18px; }
    .reply-form-container { padding: 20px; }
    .main-form { padding: 22px; }
    .header-actions .btn-outline { display: none; }
    .stats-grid-mini { gap: 8px; }
    .stat-box { padding: 12px 8px; }
    .stat-box-value { font-size: 1.2rem; }
}

/* ============================================================
   MOVE TOPIC BAR
   ============================================================ */
.move-topic-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.move-topic-bar .move-topic-icon {
    width: 30px; height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.move-topic-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}
.move-topic-form label {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.move-topic-form select {
    flex: 1;
    min-width: 220px;
    padding: 7px 36px 7px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.84rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239999b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.move-topic-form select:focus { outline: none; border-color: rgba(255,255,255,0.25); }

/* ============================================================
   MESSAGES TABS BAR
   ============================================================ */
.messages-tabs-bar {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.messages-tabs-bar .tab-link {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    border-bottom: none;
    position: relative; bottom: -1px;
}
.messages-tabs-bar .tab-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.messages-tabs-bar .tab-link.active {
    color: var(--white);
    background: var(--bg-glass);
    border-color: var(--border);
    border-bottom-color: var(--bg-body, #0a0b0f);
}
.tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: var(--white);
    color: #0a0b0f;
    font-size: 10px; font-weight: 700;
}

/* ============================================================
   EDITOR — bigger & wider
   ============================================================ */
.reply-form-container textarea,
.main-form textarea,
.form-page textarea {
    min-height: 260px;
    resize: vertical;
    width: 100%;
}
.form-page { max-width: 900px; }
.reply-form-container { max-width: 100%; }

/* ============================================================
   PM COMPOSE
   ============================================================ */
.pm-compose {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 820px;
    margin: 0 auto;
}
.pm-compose h2 { margin-bottom: 22px; font-size: 1.2rem; }
.pm-form .form-group { margin-bottom: 18px; }
.pm-recipient-wrap { position: relative; }
.pm-recipient-wrap input { width: 100%; }
.pm-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}
.pm-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background var(--transition);
}
.pm-suggestion-item:hover { background: var(--bg-glass-hover); }
.pm-suggestion-item img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================================
   CUSTOM SELECT — .cs-wrap
   ============================================================ */
.cs-wrap {
    position: relative;
    width: 100%;
    display: block;
    font-family: inherit;
}
.cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, background .15s;
    min-height: 44px;
}
.cs-trigger:hover,
.cs-wrap.is-open .cs-trigger {
    background: var(--accent-glow);
    border-color: var(--border-glow);
}
.cs-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.cs-arrow {
    flex-shrink: 0;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.4);
    transition: transform .18s;
    margin-left: 4px;
}
.cs-wrap.is-open .cs-arrow { transform: rotate(180deg); }

.cs-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0; right: 0;
    background: #13141c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.cs-wrap.is-open .cs-list { display: block; }
.cs-wrap.cs-up .cs-list { top: auto; bottom: calc(100% + 5px); }

.cs-option {
    padding: 10px 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: background .1s, color .1s;
    line-height: 1.4;
}
.cs-option:hover { background: rgba(255,255,255,0.07); color: #fff; }
.cs-option.is-selected { color: #fff; background: rgba(255,255,255,0.1); font-weight: 500; }
.cs-option.is-disabled { color: rgba(255,255,255,0.25); cursor: default; }
.cs-option:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.cs-option:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }

.cs-list::-webkit-scrollbar { width: 4px; }
.cs-list::-webkit-scrollbar-track { background: transparent; }
.cs-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* cs-wrap context overrides */
.move-topic-form .cs-wrap { flex: 1; min-width: 220px; width: auto; }
.move-topic-form .cs-trigger { min-height: 36px; padding: 7px 12px; font-size: 0.84rem; border-radius: var(--radius-sm); }
.filter-bar .cs-wrap,
.sort-bar .cs-wrap { width: auto; min-width: 160px; }
