/* ═══════════════════════════════════════════════════════════════════
   BaristaChat ☕ — Shared Stylesheet
   Extracted from index.html + extended for inner pages
═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:     #1a0f0a;
  --roast:        #2c1a10;
  --dark-brown:   #3d2314;
  --mid-brown:    #5c3420;
  --warm-brown:   #7a4a2c;
  --cream:        #f5ead8;
  --cream-dim:    #e8d5ba;
  --gold:         #d4a843;
  --gold-bright:  #f0c040;
  --gold-dim:     #a07828;
  --accent:       #c87941;
  --text-main:    #e8d5ba;
  --text-muted:   #a08060;
  --text-dim:     #705040;
  --border:       #3d2314;
  --border-light: #5c3420;
  --online:       #4caf7d;
  --shadow:       0 2px 12px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--espresso);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  background: var(--roast);
  border-bottom: 2px solid var(--gold-dim);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.6);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: -.5px;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(240,192,64,.3);
  text-decoration: none;
}
.logo:hover { color: var(--gold-bright); text-decoration: none; }

.main-nav {
  display: flex;
  gap: 2px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 6px 14px;
  color: var(--cream-dim);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--dark-brown);
  color: var(--gold);
  text-decoration: none;
}

.header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}
.header-search input {
  width: 100%;
  background: var(--espresso);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 16px 7px 36px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.header-search input::placeholder { color: var(--text-dim); }
.header-search input:focus { border-color: var(--gold-dim); }
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}

.join-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--espresso);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 2px 8px rgba(212,168,67,.3);
}
.join-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Sub-header breadcrumb ────────────────────────────────────────── */
.sub-header {
  background: var(--dark-brown);
  border-bottom: 1px solid var(--border);
}
.sub-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb span { color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.online-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--online);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--online);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ── Page Layout ──────────────────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.page-wrap-full {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

.page-wrap-thread {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ── Main Column ──────────────────────────────────────────────────── */
.main-col { min-width: 0; }

/* Section headings */
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-label h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-label a {
  font-size: 11px;
  color: var(--text-dim);
}
.section-label a:hover { color: var(--gold); }

/* ── Category Cards ───────────────────────────────────────────────── */
.categories { margin-bottom: 32px; }

.category-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 2px;
  overflow: hidden;
  transition: border-color .2s;
}
.category-card:first-of-type { border-radius: 10px 10px 0 0; }
.category-card:last-of-type  { border-radius: 0 0 10px 10px; }
.category-card:only-of-type  { border-radius: 10px; }
.category-card:hover { border-color: var(--gold-dim); }

.category-card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0;
  padding: 0;
}

.cat-icon {
  font-size: 26px;
  padding: 18px 20px;
  background: var(--dark-brown);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
}

.cat-info {
  padding: 14px 18px;
  min-width: 0;
}
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}
.cat-name a { color: inherit; }
.cat-name a:hover { color: var(--gold); text-decoration: none; }
.cat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cat-stats {
  padding: 14px 18px;
  text-align: center;
  min-width: 90px;
  border-left: 1px solid var(--border);
}
.cat-stats .stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream-dim);
  display: block;
}
.cat-stats .stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cat-latest {
  padding: 14px 18px;
  min-width: 180px;
  max-width: 200px;
  border-left: 1px solid var(--border);
}
.cat-latest .latest-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.cat-latest .latest-title {
  font-size: 12px;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-latest .latest-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Thread List (index) ──────────────────────────────────────────── */
.threads { margin-bottom: 32px; }

.thread-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: border-color .2s, background .2s;
}
.thread-card:hover {
  border-color: var(--warm-brown);
  background: var(--dark-brown);
}

.thread-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-brown), var(--mid-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.thread-body { min-width: 0; }
.thread-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-title a { color: inherit; }
.thread-title a:hover { color: var(--gold); text-decoration: none; }
.thread-snippet {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.thread-tag {
  background: var(--dark-brown);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: .3px;
}
.thread-author {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.thread-time {
  font-size: 11px;
  color: var(--text-dim);
}

.thread-counts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.count-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--dark-brown);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.count-pill .icon { font-size: 10px; }
.count-pill strong { color: var(--cream-dim); }

/* ── Badges ───────────────────────────────────────────────────────── */
.badge-hot {
  background: linear-gradient(90deg, #b33a1a, #d4512a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-new {
  background: linear-gradient(90deg, #1a5c2a, #2e8b48);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-pinned {
  background: linear-gradient(90deg, #2a3a6a, #3a50a0);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.widget-header {
  background: var(--dark-brown);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-header h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.widget-header .widget-icon { font-size: 14px; }

/* ── Best Coffee Widget ───────────────────────────────────────────── */
.best-coffee-widget .widget-header {
  background: linear-gradient(135deg, #2a1a05, #3a2510);
  border-bottom: 1px solid var(--gold-dim);
}
.best-coffee-widget .widget-header h3 {
  color: var(--gold);
  font-size: 13px;
}

.coffee-list { padding: 8px 0; }

.coffee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background .15s;
  cursor: default;
}
.coffee-item:hover { background: var(--dark-brown); }

.coffee-item.rank-1 {
  background: linear-gradient(90deg, rgba(212,168,67,.12), rgba(212,168,67,.04));
  border-top: 1px solid rgba(212,168,67,.2);
  border-bottom: 1px solid rgba(212,168,67,.2);
  padding-top: 12px;
  padding-bottom: 12px;
}
.coffee-item.rank-1:hover { background: linear-gradient(90deg, rgba(212,168,67,.18), rgba(212,168,67,.08)); }

.rank-badge {
  font-size: 16px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.rank-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.coffee-info { flex: 1; min-width: 0; }
.coffee-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coffee-item.rank-1 .coffee-name {
  font-size: 15px;
  color: var(--gold-bright);
  font-weight: 800;
}
.coffee-stars {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}

.coffee-votes {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
.coffee-item.rank-1 .coffee-votes {
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 12px;
}

.vote-bar-wrap { padding: 0 14px 2px; }
.vote-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width .6s ease;
}

.widget-footer-note {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ── Online Members Widget ────────────────────────────────────────── */
.online-grid {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.online-member {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--dark-brown);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3px 10px 3px 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.online-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-brown), var(--mid-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
}
.online-dot {
  width: 6px; height: 6px;
  background: var(--online);
  border-radius: 50%;
  flex-shrink: 0;
}
.online-count-line {
  padding: 0 14px 12px;
  font-size: 11px;
  color: var(--text-dim);
}
.online-count-line strong { color: var(--online); }

/* ── Forum Stats Widget ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.stat-cell {
  background: var(--roast);
  padding: 14px;
  text-align: center;
}
.stat-cell .big-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}
.stat-cell .stat-desc {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.stats-newest {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}
.stats-newest strong { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--roast);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
}

/* ── Ticker Banner ────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--dark-brown);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 45s linear infinite;
  padding: 6px 0;
  font-size: 11px;
  color: var(--text-muted);
}
.ticker-inner span { margin: 0 32px; }
.ticker-inner .tick-hi { color: var(--gold); font-weight: 600; }
@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── Utility ──────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGE STYLES
═══════════════════════════════════════════════════════════════════ */

/* ── Page Breadcrumb ──────────────────────────────────────────────── */
.page-breadcrumb {
  background: var(--dark-brown);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.page-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.page-breadcrumb nav a { color: var(--text-muted); }
.page-breadcrumb nav a:hover { color: var(--gold); }
.page-breadcrumb nav .sep { color: var(--text-dim); }
.page-breadcrumb nav .current { color: var(--cream-dim); }

/* ── Page Hero ────────────────────────────────────────────────────── */
.page-hero {
  background: var(--dark-brown);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.page-hero-left { flex: 1; min-width: 0; }
.page-hero-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}
.page-hero h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.page-hero p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 600px;
  line-height: 1.5;
}
.page-hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.page-hero-stats .hero-stat {
  font-size: 12px;
  color: var(--text-muted);
}
.page-hero-stats .hero-stat strong {
  color: var(--gold);
  font-weight: 700;
}
.page-hero-actions { display: flex; align-items: flex-start; gap: 10px; flex-shrink: 0; }

/* ── Gold Button ──────────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: var(--espresso);
  border: none;
  padding: 9px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 2px 8px rgba(212,168,67,.3);
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover { opacity: .9; transform: translateY(-1px); color: var(--espresso); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); text-decoration: none; }

/* ── Tabs ─────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 18px;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  transition: color .15s, background .15s;
  font-family: inherit;
  white-space: nowrap;
}
.tab:hover { color: var(--cream-dim); background: rgba(61,35,20,.5); }
.tab.active {
  background: var(--roast);
  border-color: var(--border);
  border-bottom-color: var(--roast);
  color: var(--gold);
}

/* ── Filter Bar ───────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar select {
  background: var(--roast);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.filter-bar select:focus { border-color: var(--gold-dim); }

/* ── Thread Table (category page) ────────────────────────────────── */
.thread-table-wrap {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.thread-table {
  width: 100%;
  border-collapse: collapse;
}
.thread-table th {
  background: var(--dark-brown);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.thread-table th:not(:first-child) { text-align: center; }
.thread-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.thread-table tr:last-child td { border-bottom: none; }
.thread-table tbody tr { transition: background .15s; }
.thread-table tbody tr:hover { background: rgba(61,35,20,.6); }
.thread-table .col-status { width: 36px; text-align: center; }
.thread-table .col-replies,
.thread-table .col-views { width: 80px; text-align: center; color: var(--text-muted); font-size: 12px; }
.thread-table .col-last { width: 160px; font-size: 11px; color: var(--text-dim); }

.tt-title-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}
.tt-title-main a { color: inherit; }
.tt-title-main a:hover { color: var(--gold); text-decoration: none; }
.tt-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tt-meta .tt-author { color: var(--accent); }
.status-icon { font-size: 14px; }

.tt-last-user { color: var(--accent); font-size: 11px; }
.tt-last-time { color: var(--text-dim); font-size: 10px; }

/* ── Pagination ───────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: var(--roast);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  font-family: inherit;
}
.page-btn:hover { background: var(--dark-brown); border-color: var(--gold-dim); color: var(--gold); text-decoration: none; }
.page-btn.active { background: var(--gold); color: var(--espresso); border-color: var(--gold); font-weight: 700; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-info { font-size: 12px; color: var(--text-dim); margin: 0 8px; }

/* ── Post Cards (thread page) ─────────────────────────────────────── */
.post-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
}
.post-card:target { border-color: var(--gold-dim); box-shadow: 0 0 0 2px rgba(212,168,67,.15); }

.post-author-panel {
  width: 130px;
  flex-shrink: 0;
  background: var(--dark-brown);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.post-avatar-lg {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
  border: 2px solid var(--border-light);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.post-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  word-break: break-word;
}
.post-username a { color: inherit; }
.post-username a:hover { color: var(--gold-bright); text-decoration: none; }
.post-user-title {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}
.post-user-stat {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
}
.post-user-stat strong { color: var(--text-muted); }
.post-rep-stars {
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 1px;
}
.post-op-badge {
  background: linear-gradient(90deg, #7a2e05, #a03d08);
  color: #f5c87a;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.post-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(61,35,20,.3);
  gap: 12px;
}
.post-num {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}
.post-timestamp {
  font-size: 11px;
  color: var(--text-dim);
}
.post-content {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
  flex: 1;
}
.post-content p { margin-bottom: 12px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content strong { color: var(--cream); }
.post-content em { color: var(--text-muted); }
.post-content .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}
.post-content .data-table th {
  background: var(--dark-brown);
  padding: 7px 12px;
  text-align: left;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1px solid var(--border);
}
.post-content .data-table td {
  padding: 7px 12px;
  border: 1px solid var(--border);
  color: var(--text-main);
}
.post-content .data-table tr:nth-child(even) td { background: rgba(61,35,20,.3); }

.post-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: rgba(26,15,10,.2);
  flex-wrap: wrap;
}
.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.post-action-btn:hover { background: var(--dark-brown); color: var(--cream-dim); border-color: var(--mid-brown); }
.post-action-btn.liked { color: var(--gold); border-color: var(--gold-dim); }
.post-action-btn .btn-icon { font-size: 13px; }
.post-action-btn .like-count { color: var(--gold-dim); font-weight: 600; }

/* ── Community Pick ───────────────────────────────────────────────── */
.community-pick-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, rgba(212,168,67,.15), rgba(212,168,67,.05));
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Reply Box ────────────────────────────────────────────────────── */
.reply-box {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
}
.reply-box-header {
  background: var(--dark-brown);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
}
.reply-box-body { padding: 18px; }
.reply-login-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.reply-login-note a { color: var(--gold); }
.reply-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.reply-tb-btn {
  background: var(--dark-brown);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}
.reply-tb-btn:hover { color: var(--cream-dim); border-color: var(--mid-brown); }
.reply-textarea {
  width: 100%;
  background: var(--espresso);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  outline: none;
  line-height: 1.6;
  transition: border-color .2s;
  display: block;
}
.reply-textarea::placeholder { color: var(--text-dim); }
.reply-textarea:focus { border-color: var(--gold-dim); }
.reply-box-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(26,15,10,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reply-box-footer .reply-note {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Thread Header ────────────────────────────────────────────────── */
.thread-page-header {
  background: var(--dark-brown);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.thread-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.3;
}
.thread-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.thread-page-meta .tm-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.thread-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Member Cards ─────────────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.member-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s, transform .15s;
  cursor: default;
}
.member-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.member-avatar-lg {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--cream);
  margin: 0 auto 10px;
  border: 2px solid var(--border-light);
}
.member-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}
.member-username a { color: inherit; }
.member-username a:hover { color: var(--gold); text-decoration: none; }
.member-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.badge-moderator { background: linear-gradient(90deg, #5c1a8a, #7a2ab8); color: #e8b8ff; }
.badge-expert    { background: linear-gradient(90deg, #1a4a7a, #2860a0); color: #a8d0f5; }
.badge-veteran   { background: linear-gradient(90deg, #6a3a05, #8a4e0a); color: #f5c87a; }
.badge-senior    { background: linear-gradient(90deg, #3a4a1a, #4e6422); color: #b8d870; }
.badge-member    { background: var(--dark-brown); color: var(--text-muted); border: 1px solid var(--border-light); }
.badge-new-member { background: linear-gradient(90deg, #1a3a3a, #246060); color: #78d0d0; }
.member-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.member-stat-item {
  text-align: center;
}
.member-stat-item .msi-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream-dim);
  display: block;
  line-height: 1.2;
}
.member-stat-item .msi-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.member-last-seen {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.member-bio {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}
.member-rep-stars {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* ── Member Search & Filter ───────────────────────────────────────── */
.members-search-bar {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.member-search-input {
  flex: 1;
  min-width: 200px;
  background: var(--espresso);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 18px 8px 38px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.member-search-input::placeholder { color: var(--text-dim); }
.member-search-input:focus { border-color: var(--gold-dim); }
.member-search-wrap { position: relative; flex: 1; min-width: 200px; }
.member-search-wrap .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 13px;
}
.filter-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--dark-brown);
  color: var(--text-muted);
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.filter-btn:hover { background: var(--mid-brown); color: var(--cream-dim); }
.filter-btn.active { background: var(--gold); color: var(--espresso); border-color: var(--gold); font-weight: 700; }

/* ── Leaderboard Table ────────────────────────────────────────────── */
.lb-table-wrap {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
}
.lb-table th {
  background: var(--dark-brown);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.lb-table th:not(:nth-child(2)):not(:nth-child(3)) { text-align: center; }
.lb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr { transition: background .15s; }
.lb-table tbody tr:hover { background: rgba(61,35,20,.5); }

.lb-rank-1 { background: linear-gradient(90deg, rgba(212,168,67,.15) 0%, rgba(212,168,67,.05) 100%) !important; }
.lb-rank-2 { background: linear-gradient(90deg, rgba(180,180,180,.1) 0%, rgba(180,180,180,.03) 100%) !important; }
.lb-rank-3 { background: linear-gradient(90deg, rgba(200,121,65,.12) 0%, rgba(200,121,65,.03) 100%) !important; }

.lb-rank-icon {
  font-size: 18px;
  text-align: center;
  display: block;
}
.lb-rank-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
  display: block;
}
.lb-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}
.lb-member-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
}
.lb-member-name a { color: inherit; }
.lb-member-name a:hover { color: var(--gold); text-decoration: none; }
.lb-member-badge {
  font-size: 10px;
  color: var(--text-dim);
}
.lb-num { text-align: center; color: var(--text-muted); font-size: 13px; }
.lb-num strong { color: var(--cream-dim); font-size: 14px; font-weight: 700; }

/* Most Helpful Posts */
.helpful-post-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.helpful-post-card:hover { border-color: var(--gold-dim); }
.helpful-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.helpful-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.helpful-author .sm-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--cream);
  border: 1px solid var(--border-light);
}
.helpful-author .ha-name { font-size: 12px; font-weight: 700; color: var(--accent); }
.helpful-author .ha-meta { font-size: 11px; color: var(--text-dim); }
.helpful-like-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.helpful-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rising Star card */
.rising-stars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.rising-star-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s;
}
.rising-star-card:hover { border-color: var(--gold-dim); }
.rising-fire { font-size: 28px; margin-bottom: 8px; }
.rs-name { font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.rs-stat { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.rs-new-posts { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ── About Page ───────────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--dark-brown) 60%, #2a1408 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "☕";
  position: absolute;
  font-size: 200px;
  opacity: .03;
  top: -20px;
  right: 10%;
  pointer-events: none;
  line-height: 1;
}
.about-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.about-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.about-hero h1 span { color: var(--gold-bright); }
.about-hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.about-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about-stat {
  text-align: center;
}
.about-stat .as-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-bright);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat .as-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.about-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}
.about-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -.3px;
}
.about-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-2col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.founders-quote {
  background: var(--dark-brown);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 24px 20px;
  font-style: italic;
}
.founders-quote blockquote {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}
.founders-quote cite {
  font-size: 12px;
  color: var(--text-muted);
  font-style: normal;
}
.founders-quote cite strong { color: var(--gold); }

/* Feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}
.feature-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, transform .15s;
}
.feature-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.feature-icon { font-size: 34px; margin-bottom: 12px; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Rules section */
.about-section-alt {
  background: var(--roast);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rule-list { list-style: none; padding: 0; }
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.rule-item:last-child { border-bottom: none; }
.rule-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--dark-brown);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.rule-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.rule-body h4 { font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 3px; }
.rule-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Mod cards */
.mod-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mod-card {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s;
}
.mod-card:hover { border-color: var(--gold-dim); }
.mod-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--cream);
  margin: 0 auto 10px;
  border: 2px solid var(--mid-brown);
}
.mod-name { font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.mod-role { font-size: 11px; color: var(--gold-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.mod-since { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.mod-specialty { font-size: 11px; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }
.mod-bio { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* FAQ Accordion */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  background: var(--roast);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--gold-dim); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.faq-question:hover { background: rgba(61,35,20,.5); }
.faq-q-text { font-size: 14px; font-weight: 600; color: var(--cream-dim); }
.faq-item.open .faq-q-text { color: var(--gold); }
.faq-chevron {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-answer { display: block; }

/* ── Tags cloud ───────────────────────────────────────────────────── */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
}
.tag-chip {
  background: var(--dark-brown);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  display: inline-block;
}
.tag-chip:hover { background: var(--mid-brown); color: var(--cream-dim); border-color: var(--warm-brown); text-decoration: none; }

/* ── Top Contributor mini list ────────────────────────────────────── */
.contrib-list { padding: 8px 0; }
.contrib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background .15s;
}
.contrib-item:hover { background: var(--dark-brown); }
.contrib-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--cream);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.contrib-info { flex: 1; min-width: 0; }
.contrib-name { font-size: 12px; font-weight: 700; color: var(--cream-dim); }
.contrib-posts { font-size: 11px; color: var(--text-dim); }
.contrib-rank { font-size: 14px; flex-shrink: 0; }

/* ── Toast notification ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-brown);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast .toast-icon { margin-right: 6px; }

/* ── Section divider label ────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}
.section-divider h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .mod-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .page-wrap-thread { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .category-card-inner { grid-template-columns: auto 1fr; }
  .cat-stats, .cat-latest { display: none; }
  .header-inner { gap: 12px; }
  .main-nav { display: none; }
  .about-2col { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr 1fr; }
  .rising-stars-grid { grid-template-columns: 1fr; }
  .post-author-panel { width: 100px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .thread-counts { display: none; }
  .header-search { max-width: 160px; }
  .about-stats-bar { gap: 20px; }
  .about-hero h1 { font-size: 26px; }
  .feature-cards { grid-template-columns: 1fr; }
  .mod-cards-grid { grid-template-columns: 1fr 1fr; }
  .rising-stars-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card { flex-direction: column; }
  .post-author-panel { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 10px; }
  .post-avatar-lg { width: 44px; height: 44px; font-size: 16px; margin-bottom: 0; }
}
@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
  .mod-cards-grid { grid-template-columns: 1fr; }
  .thread-table .col-views,
  .thread-table .col-last { display: none; }
  .lb-table .col-threads,
  .lb-table .col-joined { display: none; }
}
