/* ═══════════════════════════════════════════
   BACH v2 — MAIN STYLESHEET
   Themes: dark · light · hacker · sepia · midnight
═══════════════════════════════════════════ */

/* ── BASE TOKENS (dark) ── */
:root {
  --bg:      #0d0d0d;
  --bg2:     #141414;
  --bg3:     #1a1a1a;
  --bg4:     #222;
  --bg5:     #2a2a2a;
  --border:  #2a2a2a;
  --border2: #383838;
  --text:    #d4d4d4;
  --text2:   #888;
  --text3:   #555;
  --accent:  #c8a96e;
  --accent2: #e8c98e;
  --accent-dim: rgba(200,169,110,0.12);
  --red:     #c0392b;
  --red-dim: rgba(192,57,43,0.15);
  --green:   #27ae60;
  --green-dim: rgba(39,174,96,0.12);
  --blue:    #2980b9;
  --orange:  #e67e22;
  --purple:  #8e44ad;
  --verified:#3498db;
  --warned:  #f39c12;
  --shadow:  0 2px 8px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.7);
  --radius:  3px;
  --radius-lg: 6px;
  --font-mono: 'IBM Plex Mono','Courier New',monospace;
  --font-sans: 'IBM Plex Sans','Helvetica Neue',sans-serif;
  --font-jb:   'JetBrains Mono','Fira Code',monospace;
  --transition: 0.15s ease;
  --header-h: 44px;
  --post-gap: 2px;
  --post-pad: 14px;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:      #f5f0e8;
  --bg2:     #ede8e0;
  --bg3:     #ffffff;
  --bg4:     #f0ebe2;
  --bg5:     #e8e3da;
  --border:  #d0c8b8;
  --border2: #bfb8a8;
  --text:    #2c2422;
  --text2:   #6b635a;
  --text3:   #9e9690;
  --accent:  #8b4513;
  --accent2: #a0522d;
  --accent-dim: rgba(139,69,19,0.1);
  --shadow:  0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
}

/* ── HACKER THEME ── */
[data-theme="hacker"] {
  --bg:      #000;
  --bg2:     #050505;
  --bg3:     #0a0a0a;
  --bg4:     #111;
  --bg5:     #181818;
  --border:  #1a3a1a;
  --border2: #2a5a2a;
  --text:    #00ff41;
  --text2:   #00bb30;
  --text3:   #007a1f;
  --accent:  #00ff41;
  --accent2: #41ff41;
  --accent-dim: rgba(0,255,65,0.08);
  --red:     #ff4141;
  --green:   #00ff41;
}

/* ── SEPIA THEME ── */
[data-theme="sepia"] {
  --bg:      #1c1610;
  --bg2:     #241e16;
  --bg3:     #2e261c;
  --bg4:     #382e22;
  --bg5:     #403628;
  --border:  #4a3e2e;
  --border2: #5a4e3a;
  --text:    #d4b896;
  --text2:   #9a8060;
  --text3:   #6a5040;
  --accent:  #d4956a;
  --accent2: #e8b07a;
  --accent-dim: rgba(212,149,106,0.12);
}

/* ── MIDNIGHT THEME ── */
[data-theme="midnight"] {
  --bg:      #090b1a;
  --bg2:     #0f1228;
  --bg3:     #141830;
  --bg4:     #1a1e3a;
  --bg5:     #202540;
  --border:  #252b4a;
  --border2: #303860;
  --text:    #c8d0f0;
  --text2:   #8890c0;
  --text3:   #555880;
  --accent:  #7c8cff;
  --accent2: #9ca8ff;
  --accent-dim: rgba(124,140,255,0.12);
}

/* ── FONT VARIANTS ── */
body.font-sans  { font-family: var(--font-sans); }
body.font-jb    { font-family: var(--font-jb); }
body.font-mono  { font-family: var(--font-mono); }

/* ── DENSITY ── */
body.density-compact { --post-pad: 8px; --post-gap: 1px; font-size: 12px; }
body.density-cozy    { --post-pad: 20px; --post-gap: 6px; font-size: 14px; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 13px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-mono); line-height: 1.65; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }
strong { font-weight: 600; }
em { font-style: italic; }
s  { text-decoration: line-through; opacity: 0.7; }
code { font-family: var(--font-mono); background: var(--bg4); padding: 1px 5px; border-radius: var(--radius); font-size: 11px; border: 1px solid var(--border); }
pre.code-block { background: var(--bg4); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 12px; border-radius: var(--radius); overflow-x: auto; font-size: 12px; margin: 8px 0; white-space: pre-wrap; word-break: break-all; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
::selection { background: var(--accent-dim); color: var(--accent); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
.hidden { display: none !important; }
.muted  { color: var(--text2); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 14px; height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
}
.hamburger {
  display: none; background: none; border: none;
  color: var(--text2); font-size: 18px; cursor: pointer;
  padding: 4px 6px; border-radius: var(--radius);
}
.hamburger:hover { color: var(--accent); }
.site-logo {
  font-size: 15px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; white-space: nowrap; flex-shrink: 0;
}
.site-logo:hover { color: var(--accent2); text-decoration: none; }
.board-nav { display: flex; gap: 1px; flex: 1; flex-wrap: wrap; overflow: hidden; max-height: 28px; }
.board-link { color: var(--text3); font-size: 12px; padding: 2px 5px; border-radius: var(--radius); transition: color var(--transition); }
.board-link:hover { color: var(--accent); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-link {
  color: var(--text2); font-size: 12px; padding: 4px 6px;
  border-radius: var(--radius); cursor: pointer;
  background: none; border: none; font-family: inherit;
  transition: color var(--transition); white-space: nowrap;
}
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-compose { color: var(--green); font-weight: 600; }
.nav-compose:hover { color: #2ecc71; }
.nav-admin  { color: var(--orange); }
.nav-admin:hover { color: #f39c12; }
.header-search-btn { font-size: 16px; }
.announcement-bar { background: var(--accent-dim); border-top: 1px solid var(--border); color: var(--accent); text-align: center; padding: 5px 16px; font-size: 12px; }

/* NOTIF BADGE */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--bg2);
}

/* ══════════════════════════════════════════
   FEED TABS
══════════════════════════════════════════ */
.feed-tabs-wrap { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 99; }
.feed-tabs { max-width: 1320px; margin: 0 auto; padding: 0 14px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.tab-link { color: var(--text2); font-size: 12px; padding: 8px 14px; border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--transition); display: block; flex-shrink: 0; }
.tab-link:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--border2); }
.tab-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.main-content { max-width: 1320px; margin: 0 auto; padding: 16px 14px; }
.layout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .layout-grid { grid-template-columns: 1fr; } .sidebar { display: none; } }
@media (max-width: 600px) { .hamburger { display: block; } .board-nav { display: none; } .main-content { padding: 10px 8px; } }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar { position: sticky; top: calc(var(--header-h) + 38px); display: flex; flex-direction: column; gap: 10px; transition: all var(--transition); }
.sidebar.collapsed { width: 36px; overflow: hidden; }
.sidebar.collapsed .sidebar-widget > *:not(.widget-title) { display: none; }
.sidebar-collapse-btn {
  align-self: flex-end; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text3); font-size: 11px; cursor: pointer; padding: 3px 6px;
  border-radius: var(--radius); transition: all var(--transition);
}
.sidebar-collapse-btn:hover { color: var(--accent); border-color: var(--accent); }
.sidebar-widget { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.widget-title { font-size: 10px; color: var(--accent); font-weight: 700; margin-bottom: 10px; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; }
.widget-text { font-size: 12px; color: var(--text2); line-height: 1.5; }
.site-stats { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--text3); }
.stat-item { color: var(--text2); }
.stat-sep { color: var(--text3); }
.refresh-btn { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 12px; padding: 0 2px; }
.refresh-btn:hover { color: var(--accent); }

/* QUICK COMPOSE */
.quick-form { display: flex; flex-direction: column; gap: 8px; }
.quick-textarea { width: 100%; min-height: 72px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 12px; padding: 8px; resize: vertical; transition: border-color var(--transition); }
.quick-textarea:focus { border-color: var(--accent); outline: none; }
.quick-char-bar { display: flex; align-items: center; gap: 6px; }
.quick-char-track { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.quick-char-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; transition: width 0.1s, background 0.2s; }
.quick-char-num { font-size: 10px; color: var(--text3); white-space: nowrap; }
.quick-opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.quick-select { background: var(--bg4); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 11px; padding: 3px 6px; border-radius: var(--radius); }
.quick-actions { }
.btn-hint { font-size: 10px; opacity: 0.5; }
.draft-bar { display: flex; gap: 6px; }
.draft-btn { background: none; border: none; color: var(--text3); font-family: inherit; font-size: 11px; cursor: pointer; padding: 2px 0; }
.draft-btn:hover { color: var(--accent); }

/* TRENDING */
#tags-list { display: flex; flex-direction: column; gap: 4px; }
.trending-tag-item { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.trending-tag-link { color: var(--accent); font-size: 12px; transition: color var(--transition); }
.trending-tag-link:hover { color: var(--accent2); }
.trending-tag-count { color: var(--text3); font-size: 11px; }
.trending-tag-bar { position: relative; }
.trending-tag-bg { position: absolute; inset: 0; background: var(--accent-dim); border-radius: 2px; transition: width 0.3s; }

/* ACTIVE USERS */
.active-user-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 12px; }
.active-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 5px var(--green); }
.active-user-link { color: var(--text2); }
.active-user-link:hover { color: var(--accent); }

/* BOARDS SIDEBAR */
.board-list-sidebar { display: flex; flex-wrap: wrap; gap: 4px; }
.board-pill { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-size: 11px; padding: 2px 7px; border-radius: var(--radius); transition: all var(--transition); }
.board-pill:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* SHORTCUTS */
.shortcuts-list { display: flex; flex-direction: column; gap: 4px; }
.shortcut-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text2); }
.shortcut-row kbd { background: var(--bg4); border: 1px solid var(--border2); padding: 1px 5px; border-radius: var(--radius); font-size: 10px; font-family: inherit; color: var(--text); }

/* CTA WIDGET */
.cta-widget p { font-size: 12px; color: var(--text2); margin-bottom: 4px; }

/* ══════════════════════════════════════════
   FEATURED POST
══════════════════════════════════════════ */
.featured-post-wrap { margin-bottom: 14px; }
.featured-label { font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.featured-post-wrap .post-card { border: 1px solid var(--orange); background: rgba(230,126,34,0.04); }

/* ══════════════════════════════════════════
   FEED
══════════════════════════════════════════ */
.feed { display: flex; flex-direction: column; gap: var(--post-gap); }
.feed-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.board-title { font-size: 17px; color: var(--accent); font-weight: 700; }
.board-title span { color: var(--text); }
.feed-sort { display: flex; gap: 4px; align-items: center; }
.sort-link { color: var(--text2); font-size: 12px; padding: 2px 4px; cursor: pointer; background: none; border: none; font-family: inherit; }
.sort-link:hover { color: var(--accent); text-decoration: none; }
.sort-link.active { color: var(--accent); font-weight: 600; }

/* ══════════════════════════════════════════
   POST CARD
══════════════════════════════════════════ */
.post-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--post-pad);
  transition: border-color var(--transition); position: relative;
}
.post-card:hover { border-color: var(--border2); }
.post-card:target { border-color: var(--accent); background: var(--accent-dim); }
.sticky-post   { border-left: 3px solid var(--orange); }
.pinned-post   { border-left: 3px solid var(--accent); }
.reply-card    { background: var(--bg3); margin-left: 14px; border-left: 2px solid var(--border); }
.mod-deleted-card { opacity: 0.6; border-left: 3px solid var(--red); }

.post-header   { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.post-avatar-wrap { flex-shrink: 0; cursor: pointer; }
.post-avatar   { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--border); transition: border-color var(--transition); }
.post-avatar:hover { border-color: var(--accent); }
.avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--bg4); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

.post-meta     { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; min-width: 0; }
.post-author   { font-weight: 600; color: var(--text); font-size: 13px; }
.post-author:hover { color: var(--accent); text-decoration: none; }
.post-handle   { color: var(--text2); }
.post-sep      { color: var(--text3); }
.post-time     { color: var(--text2); }
.post-time:hover { color: var(--text); text-decoration: none; }
.post-edited   { color: var(--text3); font-size: 11px; font-style: italic; }
.post-board    { color: var(--text3); font-size: 11px; }
.post-board:hover { color: var(--accent); text-decoration: none; }

/* FLAGS */
.flag { font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 2px; letter-spacing: 0.5px; text-transform: uppercase; }
.flag-nsfw     { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.flag-spoiler  { background: var(--bg5); color: var(--text3); border: 1px solid var(--border); }
.flag-sage     { color: var(--text3); font-style: italic; }
.flag-sticky   { color: var(--orange); }
.flag-locked   { color: var(--text3); }
.flag-mod      { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.flag-verified { color: var(--verified); }
.flag-admin    { background: rgba(230,126,34,0.15); color: var(--orange); border: 1px solid var(--orange); }
.flag-mod-role { background: var(--blue-dim,rgba(41,128,185,0.12)); color: var(--blue); border: 1px solid var(--blue); }

/* POST BODY */
.post-body { margin-left: 46px; }
.post-content { font-size: 13px; line-height: 1.7; word-break: break-word; white-space: pre-wrap; margin-bottom: 8px; }
.greentext { color: var(--green); display: block; }
.pinktext  { color: #e06c75; display: block; }
.tag-link      { color: var(--accent); }
.tag-link:hover{ color: var(--accent2); }
.mention-link  { color: var(--blue); cursor: pointer; }
.mention-link:hover { text-decoration: underline; }
.quote-link    { color: var(--green); font-style: italic; }
.url-link      { color: var(--blue); word-break: break-all; font-size: 12px; }

.quote-block   { background: var(--bg4); border-left: 3px solid var(--accent); padding: 8px 10px; margin: 8px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.quote-author  { font-size: 11px; color: var(--accent); font-weight: 700; display: block; margin-bottom: 3px; }
.quote-content { font-size: 12px; color: var(--text2); }
.repost-header { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.post-tags     { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* MEDIA */
.media-grid    { display: grid; gap: 3px; margin: 8px 0; border-radius: var(--radius); overflow: hidden; }
.media-count-1 { grid-template-columns: 1fr; max-width: 420px; }
.media-count-2 { grid-template-columns: 1fr 1fr; }
.media-count-3 { grid-template-columns: 1fr 1fr; }
.media-count-3 .post-media:first-child { grid-column: 1 / -1; }
.media-count-4 { grid-template-columns: 1fr 1fr; }
.post-media    { width: 100%; max-height: 300px; object-fit: cover; display: block; cursor: pointer; transition: opacity var(--transition); }
.post-media:hover { opacity: 0.9; }
.post-video    { cursor: default; }

/* POLLS */
.poll-block    { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin: 8px 0; }
.poll-option   { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poll-bar-wrap { flex: 1; position: relative; background: var(--bg4); border-radius: var(--radius); height: 26px; overflow: hidden; display: flex; align-items: center; padding: 0 8px; }
.poll-bar      { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-dim); border-radius: var(--radius); transition: width 0.4s ease; }
.poll-label    { position: relative; z-index: 1; font-size: 12px; flex: 1; }
.poll-pct      { position: relative; z-index: 1; font-size: 11px; color: var(--text2); }
.poll-vote-btn { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-family: inherit; font-size: 11px; padding: 3px 8px; border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.poll-vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.poll-meta     { font-size: 11px; margin-top: 4px; }
.poll-editor   { display: flex; flex-direction: column; gap: 8px; }
.poll-editor-title { font-size: 12px; color: var(--accent); font-weight: 600; }
.compose-poll-wrap { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }

/* REACTIONS */
.reactions-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.reaction-pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 12px; padding: 2px 8px; font-size: 13px;
  cursor: pointer; transition: all var(--transition);
}
.reaction-pill:hover { border-color: var(--accent); background: var(--accent-dim); }
.reaction-pill.reacted { border-color: var(--accent); background: var(--accent-dim); }
.reaction-pill span { font-size: 11px; color: var(--text2); }
.reaction-picker-wrap { position: relative; }
.reaction-add-btn { font-size: 14px !important; }
.reaction-picker {
  position: absolute; bottom: 30px; left: 0; z-index: 200;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  display: flex; gap: 3px; flex-wrap: wrap; width: 180px;
  box-shadow: var(--shadow-lg);
}
.reaction-picker button { background: none; border: none; font-size: 18px; cursor: pointer; padding: 3px; border-radius: var(--radius); transition: background var(--transition); }
.reaction-picker button:hover { background: var(--bg4); }

/* POST FOOTER */
.post-footer { margin-left: 46px; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.post-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.action-btn {
  background: none; border: none; color: var(--text2);
  font-family: inherit; font-size: 12px; cursor: pointer;
  padding: 3px 7px; border-radius: var(--radius);
  transition: all var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
}
.action-btn:hover { color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.action-btn.active { color: var(--accent); }
.like-btn.active   { color: var(--red); }
.action-delete:hover { color: var(--red); background: var(--red-dim); }
.action-mod:hover  { color: var(--orange); }
.post-id-display   { font-size: 10px; color: var(--text3); font-family: var(--font-mono); }
.post-id-display:hover { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════════════════
   THREAD PAGE
══════════════════════════════════════════ */
.thread-page       { display: flex; flex-direction: column; gap: 8px; }
.parent-post       { opacity: 0.7; }
.thread-connector  { height: 16px; border-left: 2px solid var(--border); margin-left: 24px; }
.main-post .post-card { border-color: var(--accent); background: var(--accent-dim); }
.replies-section   { margin-top: 10px; }
.replies-header    { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; font-size: 12px; }
.replies-list      { display: flex; flex-direction: column; gap: 3px; }
.thread-locked-notice { padding: 12px; color: var(--text2); font-size: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.reply-form-wrap   { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.reply-form        { display: flex; gap: 10px; align-items: flex-start; }
.reply-inputs      { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.reply-textarea    { width: 100%; min-height: 80px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; padding: 8px; resize: vertical; transition: border-color var(--transition); }
.reply-textarea:focus { border-color: var(--accent); outline: none; }
.reply-char-bar    { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.reply-char-fill   { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }
.post-opts-row     { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   COMPOSE PAGE
══════════════════════════════════════════ */
.compose-page  { max-width: 680px; }
.compose-page h1 { font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.compose-form  { display: flex; flex-direction: column; gap: 10px; }
.compose-textarea { width: 100%; min-height: 130px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 14px; padding: 12px; resize: vertical; transition: border-color var(--transition); }
.compose-textarea:focus { border-color: var(--accent); outline: none; }
.compose-toolbar { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.fmt-btn { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-family: inherit; font-size: 12px; padding: 3px 8px; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.fmt-btn:hover { border-color: var(--accent); color: var(--accent); }
.char-counter { margin-left: auto; font-size: 11px; color: var(--text3); }
.compose-opts  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.compose-media { font-size: 12px; color: var(--text2); }
.compose-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.media-preview-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.media-preview-row img, .media-preview-row video { max-height: 120px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ══════════════════════════════════════════
   FORMS & BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--radius); font-family: inherit;
  font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #0d0d0d; }
.btn-secondary{ background: var(--bg4); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger   { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-full     { width: 100%; }
.btn-sm       { padding: 3px 8px; font-size: 11px; }

.check-label  { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text2); cursor: pointer; }
.check-label input { cursor: pointer; accent-color: var(--accent); }
.form-input, .form-select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: inherit;
  font-size: 13px; padding: 8px 10px; transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus { border-color: var(--accent); outline: none; }
.form-textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 12px; padding: 8px 10px; resize: vertical; transition: border-color var(--transition); }
.form-textarea:focus { border-color: var(--accent); outline: none; }
.file-input { font-family: inherit; font-size: 11px; color: var(--text2); cursor: pointer; }
.file-input::file-selector-button { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-family: inherit; font-size: 11px; padding: 3px 8px; border-radius: var(--radius); cursor: pointer; margin-right: 8px; }
.file-input::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

.auth-box { max-width: 540px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.auth-box h1 { font-size: 20px; color: var(--accent); margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text2); }
.auth-footer { margin-top: 14px; font-size: 12px; color: var(--text2); }
.pgp-help { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; font-size: 12px; color: var(--text2); }
.nonce-display { background: var(--bg3); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.nonce-code { background: var(--bg4); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; font-size: 11px; word-break: break-all; white-space: pre-wrap; color: var(--green); margin: 8px 0; }

/* ══════════════════════════════════════════
   PROFILE
══════════════════════════════════════════ */
.profile-banner { height: 150px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg3) 0%, var(--bg5) 100%); }
.profile-header { background: var(--bg2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 16px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.profile-avatar-wrap { margin-top: -48px; flex-shrink: 0; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg2); }
.avatar-placeholder-lg { width: 84px; height: 84px; border-radius: 50%; background: var(--bg4); border: 3px solid var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--accent); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-handle { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.profile-bio { font-size: 13px; margin-bottom: 8px; line-height: 1.5; }
.verified-badge { color: var(--verified); }
.profile-meta-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.profile-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text2); margin-bottom: 10px; }
.profile-stats strong { color: var(--text); }
.profile-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 10px; overflow-x: auto; }
.profile-tab { padding: 8px 16px; font-size: 12px; color: var(--text2); border-bottom: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.profile-tab:hover { color: var(--text); text-decoration: none; }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-user-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* USER HOVER CARD */
.user-hover-card {
  position: fixed; z-index: 500; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; width: 260px; box-shadow: var(--shadow-lg);
  transition: opacity 0.15s; pointer-events: none;
}
.user-hover-card .uhc-name { font-weight: 700; font-size: 14px; }
.user-hover-card .uhc-handle { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.user-hover-card .uhc-bio { font-size: 12px; color: var(--text2); margin-bottom: 8px; line-height: 1.4; }
.user-hover-card .uhc-stats { display: flex; gap: 12px; font-size: 11px; color: var(--text2); }
.user-hover-card .uhc-stats strong { color: var(--text); }
.uhc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; float: right; margin-left: 8px; border: 1px solid var(--border); }

/* ══════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════ */
.notifications-page h1 { font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.notification-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 10px; align-items: center; margin-bottom: 2px; font-size: 13px; transition: border-color var(--transition); }
.notification-item.unread { border-left: 3px solid var(--accent); background: var(--accent-dim); }
.notification-item:hover { border-color: var(--border2); }
.notif-type { font-size: 16px; flex-shrink: 0; }
.notif-text { flex: 1; min-width: 0; }
.notif-time { font-size: 11px; color: var(--text3); white-space: nowrap; }

/* NOTIF DRAWER */
.notif-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 340px;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 600; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: transform 0.25s ease;
}
.notif-drawer.hidden { display: none; }
.notif-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.notif-drawer-actions { display: flex; align-items: center; gap: 8px; }
.notif-drawer-close { background: none; border: none; color: var(--text2); font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: var(--radius); }
.notif-drawer-close:hover { color: var(--text); }
.notif-drawer-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.notif-loading { padding: 20px; text-align: center; color: var(--text2); font-size: 12px; }
.notif-drawer-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; cursor: pointer; transition: all var(--transition); }
.notif-drawer-item:hover { border-color: var(--accent); }
.notif-drawer-item.unread { border-left: 3px solid var(--accent); }
.notif-drawer-footer { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; text-align: center; flex-shrink: 0; }

/* ══════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════ */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg2); overflow-y: auto;
  padding-bottom: 40px;
}
.mobile-drawer.hidden { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 490; }
.drawer-backdrop.hidden { display: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-logo { font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
.drawer-close { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }
.drawer-user { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.drawer-handle { font-size: 14px; font-weight: 600; color: var(--accent); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-link { color: var(--text); padding: 12px 20px; font-size: 15px; border-bottom: 1px solid var(--border); transition: all var(--transition); }
.drawer-link:hover { color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.drawer-compose { color: var(--green); }
.drawer-admin   { color: var(--orange); }
.drawer-logout  { color: var(--red); }
.drawer-sep     { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.drawer-boards  { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px; }
.drawer-board-link { color: var(--text2); font-size: 13px; }
.drawer-board-link:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   COMMAND PALETTE
══════════════════════════════════════════ */
.cmd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; z-index: 600;
}
.cmd-overlay.hidden { display: none; }
.cmd-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 540px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cmd-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.cmd-icon { font-size: 16px; color: var(--text3); flex-shrink: 0; }
.cmd-input { flex: 1; background: none; border: none; color: var(--text); font-family: inherit; font-size: 15px; outline: none; }
.cmd-esc { background: var(--bg4); border: 1px solid var(--border); color: var(--text3); font-size: 11px; padding: 2px 6px; border-radius: var(--radius); font-family: inherit; }
.cmd-results { max-height: 340px; overflow-y: auto; }
.cmd-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background var(--transition); font-size: 13px; border-bottom: 1px solid var(--border); }
.cmd-result-item:hover, .cmd-result-item.selected { background: var(--accent-dim); color: var(--accent); }
.cmd-result-icon { font-size: 14px; color: var(--text3); width: 20px; text-align: center; flex-shrink: 0; }
.cmd-result-label { flex: 1; }
.cmd-result-sub { font-size: 11px; color: var(--text3); }
.cmd-result-kbd { font-size: 10px; color: var(--text3); }
.cmd-footer { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text3); }
.cmd-footer kbd { background: var(--bg4); border: 1px solid var(--border); padding: 1px 4px; border-radius: var(--radius); font-family: inherit; }

/* ══════════════════════════════════════════
   THEME PICKER
══════════════════════════════════════════ */
.theme-picker {
  position: fixed; bottom: 60px; right: 16px; z-index: 300;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 200px;
}
.theme-picker.hidden { display: none; }
.theme-picker-inner { padding: 14px; }
.theme-section-title { font-size: 10px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.theme-swatch { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-family: inherit; font-size: 12px; padding: 6px 10px; border-radius: var(--radius); cursor: pointer; text-align: left; transition: all var(--transition); }
.theme-swatch:hover, .theme-swatch.active { border-color: var(--accent); color: var(--accent); }
.accent-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.accent-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: all var(--transition); }
.accent-btn:hover, .accent-btn.active { border-color: var(--text); transform: scale(1.2); }
.font-swatches { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.font-btn { background: var(--bg4); border: 1px solid var(--border); color: var(--text2); font-family: inherit; font-size: 11px; padding: 4px 8px; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.font-btn:hover, .font-btn.active { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   SEARCH
══════════════════════════════════════════ */
.search-form-wrap { margin-bottom: 14px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-input { flex: 1; min-width: 180px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; padding: 8px 10px; transition: border-color var(--transition); }
.search-input:focus { border-color: var(--accent); outline: none; }
.search-select { background: var(--bg2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 12px; padding: 8px; border-radius: var(--radius); }
.search-users { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.user-result-card { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: border-color var(--transition); color: var(--text); }
.user-result-card:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.result-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg4); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════════
   ADMIN
══════════════════════════════════════════ */
.admin-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
@media (max-width: 700px) { .admin-wrap { grid-template-columns: 1fr; } }
.admin-nav { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; position: sticky; top: 90px; }
.admin-nav strong { color: var(--accent); margin-bottom: 8px; display: block; }
.admin-nav a { color: var(--text2); padding: 5px 7px; border-radius: var(--radius); }
.admin-nav a:hover { color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.admin-content { min-width: 0; }
.admin-content h1 { font-size: 20px; color: var(--accent); margin-bottom: 16px; }
.admin-content h2 { font-size: 13px; color: var(--text2); margin: 18px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; margin-bottom: 20px; }
.admin-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; text-align: center; }
.admin-stat.stat-alert { border-color: var(--orange); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--accent); display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 14px; }
.admin-table th { background: var(--bg3); border: 1px solid var(--border); padding: 7px 10px; text-align: left; color: var(--text2); font-weight: 600; }
.admin-table td { border: 1px solid var(--border); padding: 7px 10px; vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg3); }
.row-deleted td { opacity: 0.45; }
.content-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-alert { color: var(--orange); font-weight: 600; }
.status-badge { display: inline-block; padding: 1px 6px; border-radius: var(--radius); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-active  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.status-banned  { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.status-pending { background: rgba(230,126,34,0.15); color: var(--orange); border: 1px solid var(--orange); }
.status-deleted { background: var(--bg4); color: var(--text3); border: 1px solid var(--border); }
.admin-filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-action-forms { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-table { font-size: 12px; width: 100%; }
.detail-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
.detail-table td:first-child { color: var(--text2); width: 140px; white-space: nowrap; }
.warnings-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.warning-item { background: rgba(243,156,18,0.08); border: 1px solid var(--warned); border-radius: var(--radius); padding: 8px 12px; font-size: 12px; color: var(--text2); }
.export-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; }
.export-section h2 { margin-top: 0; border: none; padding: 0; }
.export-section p { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.settings-form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.settings-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text2); }
.settings-page h1 { font-size: 20px; color: var(--accent); margin-bottom: 14px; }

/* ══════════════════════════════════════════
   MISC
══════════════════════════════════════════ */
.pagination { display: flex; gap: 5px; align-items: center; justify-content: center; padding: 16px 0; flex-wrap: wrap; }
.page-link { color: var(--text2); padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; transition: all var(--transition); }
.page-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-link.active { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }
.empty-feed { text-align: center; padding: 50px 20px; color: var(--text2); font-size: 13px; background: var(--bg2); border: 1px dashed var(--border); border-radius: var(--radius); }
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 52px; color: var(--accent); margin-bottom: 12px; }
.error-page p { color: var(--text2); margin-bottom: 16px; }
.about-page { max-width: 640px; }
.about-page h1 { font-size: 24px; color: var(--accent); margin-bottom: 8px; }
.about-tagline { color: var(--text2); margin-bottom: 16px; }
.about-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.about-stat { text-align: center; }
.about-stat .stat-num { font-size: 28px; font-weight: 700; color: var(--accent); display: block; }
.about-stat span { font-size: 12px; color: var(--text2); }
.about-page h2 { font-size: 14px; color: var(--accent); margin: 18px 0 8px; }
.about-page ul { font-size: 13px; color: var(--text2); padding-left: 20px; line-height: 2.2; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--text2); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.modal-close:hover { color: var(--text); }
.modal-image { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: var(--radius); }
.report-form, .quote-form { display: flex; flex-direction: column; gap: 10px; }
.report-form h3, .quote-form h3 { font-size: 14px; color: var(--accent); }
.toast-stack { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; }
.toast-item { background: var(--bg2); border: 1px solid var(--border); color: var(--text); font-family: var(--font-mono); font-size: 12px; padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 300px; animation: toastIn 0.2s ease; pointer-events: auto; }
.toast-item.toast-success { border-color: var(--green); }
.toast-item.toast-error   { border-color: var(--red); }
.toast-item.toast-info    { border-color: var(--accent); }
.toast-item.toast-warn    { border-color: var(--orange); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.site-footer { border-top: 1px solid var(--border); padding: 14px 16px; text-align: center; display: flex; justify-content: center; gap: 20px; font-size: 11px; color: var(--text3); margin-top: 40px; flex-wrap: wrap; }
.site-footer a { color: var(--text3); }
.site-footer a:hover { color: var(--accent); }
.user-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 4px; }
.user-card-inner { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text); }
.user-card-inner:hover { text-decoration: none; }
.user-card-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg4); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.warning-text { color: var(--orange); }
.error-text   { color: var(--red); }
.admin-table button[disabled] { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
