/* UyduX Premium Theme */
:root {
  --bg-base: #070a12;
  --bg-surface: #0d1220;
  --bg-card: #121a2e;
  --bg-elevated: #182038;
  --bg-hover: #1e2844;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #eef2f8;
  --text-muted: #8fa3bf;
  --text-dim: #5a6d85;
  --accent: #4f8cff;
  --accent-hover: #3b7aed;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --violet: #9b6dff;
  --gold: #f5b942;
  --success: #22c997;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-h: 80px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 140, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(155, 109, 255, 0.08), transparent),
    var(--bg-base);
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7eb0ff; }

.wrap {
  width: min(1140px, 94%);
  margin: 0 auto;
  max-width: 100%;
}

/* ── Header v3 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-glow {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.45), rgba(155, 109, 255, 0.35), transparent);
  pointer-events: none;
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.65rem 0;
  position: relative;
}

.header-center {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search:focus-within {
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search-icon { opacity: 0.55; font-size: 0.9rem; }

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.6rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.header-search input::placeholder { color: var(--text-dim); }

.header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.header-pill:hover {
  color: var(--text);
  background: rgba(79, 140, 255, 0.1);
  border-color: rgba(79, 140, 255, 0.25);
}

.header-pill-live em {
  font-style: normal;
  color: var(--success);
  font-weight: 700;
}

.header-pill-store { color: #c4b5fd; }
.header-pill-gold { color: var(--gold); border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.08); }

/* Gold strip banner */
.gold-strip-banner {
  position: relative;
  z-index: 99;
  overflow: hidden;
  background: linear-gradient(90deg, #3d2a06 0%, #7a5510 12%, #c9921a 28%, #f5b942 42%, #fde68a 50%, #f5b942 58%, #c9921a 72%, #7a5510 88%, #3d2a06 100%);
  border-bottom: 1px solid rgba(245, 185, 66, 0.45);
  box-shadow: 0 4px 24px rgba(245, 185, 66, 0.12);
}
.gold-strip-banner.is-hidden { display: none; }
.gold-strip-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  min-height: 44px;
}
.gold-strip-banner-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: #1a1200;
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
}
.gold-strip-banner-text strong {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gold-strip-crown {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.gold-strip-sep { opacity: 0.55; font-weight: 700; }
.gold-strip-price {
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(26, 18, 0, 0.12);
}
.gold-strip-desc { opacity: 0.88; font-weight: 500; }
.gold-strip-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.gold-strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.gold-strip-btn-primary {
  background: #1a1200;
  color: #fde68a;
  border: 1px solid rgba(26, 18, 0, 0.3);
}
.gold-strip-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.gold-strip-btn-outline {
  background: rgba(255, 255, 255, 0.22);
  color: #1a1200;
  border: 1px solid rgba(26, 18, 0, 0.2);
}
.gold-strip-btn-outline:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #1a1200;
}
.gold-strip-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 18, 0, 0.15);
  color: #1a1200;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.gold-strip-close:hover { background: rgba(26, 18, 0, 0.28); }
.gold-strip-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  animation: goldStripShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes goldStripShine {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  45% { opacity: 1; }
  55% { transform: translateX(120%); opacity: 0; }
}
@media (max-width: 768px) {
  .gold-strip-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.65rem 0;
  }
  .gold-strip-banner-text { justify-content: center; text-align: center; }
  .gold-strip-sep-md { display: none; }
  .gold-strip-desc {
    flex-basis: 100%;
    font-size: 0.75rem;
  }
  .gold-strip-banner-actions { justify-content: center; }
}

.gold-page { max-width: 720px; margin: 0 auto; }
.gold-hero { text-align: center; padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.gold-hero-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.gold-hero h2 { margin: 0 0 0.5rem; color: var(--gold); }
.gold-hero p { margin: 0; color: var(--text-muted); }
.gold-flow-steps { padding-left: 1.25rem; line-height: 1.75; color: var(--text-muted); }
.gold-flow-steps li { margin-bottom: 0.5rem; }
.gold-flow-steps strong { color: var(--text); }
.gold-price-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 109, 22, 0.35), rgba(245, 185, 66, 0.25));
  border: 1px solid rgba(245, 185, 66, 0.45);
  color: #fde68a;
  font-size: 1.05rem;
}
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 109, 22, 0.35), rgba(245, 185, 66, 0.25));
  border: 1px solid rgba(245, 185, 66, 0.45);
  color: #fde68a;
  font-size: 1.05rem;
}
.gold-steps ol { padding-left: 1.25rem; line-height: 1.7; color: var(--text-muted); }
.gold-contact-box { margin: 1.5rem 0; padding: 1rem 1.15rem; border-radius: var(--radius); background: rgba(245, 185, 66, 0.08); border: 1px solid rgba(245, 185, 66, 0.25); }
.gold-contact-box h3 { margin: 0 0 0.65rem; font-size: 1rem; }
.gold-email { font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0 1rem; }
.gold-email a { color: var(--gold); text-decoration: none; }
.gold-email a:hover { text-decoration: underline; }
.gold-note { font-size: 0.85rem; color: var(--text-dim); margin: 0.75rem 0 0; }
.gold-checklist { margin: 0.75rem 0 1rem; padding-left: 1.25rem; color: var(--text-muted); line-height: 1.6; }
.gold-hero-kicker { margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--text-dim); }
.gold-section-lead { margin: 0 0 1rem; color: var(--text-muted); line-height: 1.65; }
.gold-ai-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gold-ai-feature-grid li {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 185, 66, 0.22);
  background: rgba(245, 185, 66, 0.06);
}
.gold-ai-feature-grid strong { display: block; margin-bottom: 0.25rem; color: var(--gold); font-size: 0.92rem; }
.gold-ai-feature-grid span { display: block; color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.gold-vitrin-card-tagline { margin: 0 0 0.65rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.gold-vitrin-home-top {
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-color: rgba(245, 185, 66, 0.58);
  box-shadow:
    0 0 0 1px rgba(245, 185, 66, 0.12),
    0 10px 32px rgba(245, 185, 66, 0.07),
    inset 0 1px 0 rgba(245, 185, 66, 0.28);
}
.gold-vitrin-home-top .gold-vitrin-header { padding: 1rem 1.15rem 0.75rem; }
.gold-vitrin-home-top .gold-vitrin-heading h2 { font-size: 1.2rem; }
.gold-vitrin-home-top .gold-vitrin-ai-pitch {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 95, 0.18);
  border-left: 2px solid rgba(212, 175, 95, 0.55);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.hero-banner-compact {
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.hero-banner-compact .hero-content h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.hero-banner-compact .hero-lead { font-size: 0.9rem; }
.gold-lock-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.1);
  border: 1px solid rgba(245, 185, 66, 0.22);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.gold-lock-stat strong { color: var(--gold); font-weight: 700; }
.gold-lock-stat-sep { opacity: 0.45; }
.gold-post-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.gold-post-badge-gold_ai_reply,
.gold-post-badge-gold_ai_topic {
  color: #fde68a;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.gold-post-badge-gold_editor_invite {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.gold-post-badge-gold_editor_topic,
.gold-post-badge-gold_editor {
  color: #fcd34d;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.28);
}
.gold-faq dt { font-weight: 600; margin-top: 0.85rem; color: var(--text); }
.gold-faq dd { margin: 0.25rem 0 0; color: var(--text-muted); line-height: 1.55; }
.gold-more { margin-top: 1rem; text-align: center; }
.gold-more a { color: var(--accent); }
.gold-access-page .gold-hero h2 { color: #fde68a; }
.badge-gold { background: rgba(245, 185, 66, 0.15); color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.35); }
.badge-xs { font-size: 0.72rem; padding: 0.1rem 0.35rem; vertical-align: middle; margin-left: 0.2rem; }
.gold-forum-notice { margin-bottom: 1rem; border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.08); }
.gold-vitrin {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(212, 175, 95, 0.48);
  border-radius: var(--radius);
  background: rgba(10, 13, 22, 0.94);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  box-shadow:
    0 0 0 1px rgba(245, 185, 66, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(245, 185, 66, 0.22);
}
.gold-vitrin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 95, 0.32);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}
.gold-vitrin-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c9a84c;
}
.gold-vitrin-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}
.gold-vitrin-sub {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.gold-vitrin-heading {
  flex: 1;
  min-width: 0;
}
.gold-vitrin-metrics { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.gold-vitrin-metric { text-align: right; min-width: 4rem; }
.gold-vitrin-metric-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #d4b86a;
  line-height: 1.1;
}
.gold-vitrin-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gold-vitrin-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 860px) {
  .gold-vitrin-body:not(.gold-vitrin-body--full) { grid-template-columns: 1fr min(280px, 32%); }
  .gold-vitrin-compact .gold-vitrin-body { grid-template-columns: 1fr; }
  .gold-vitrin-body--full { grid-template-columns: 1fr; }

  .gold-vitrin--full .gold-vitrin-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.55rem;
    overflow: visible;
  }

  .gold-vitrin--full .gold-vitrin-carousel-card {
    flex: unset;
    width: auto;
    min-height: 5.5rem;
  }

  .gold-vitrin--full .gold-vitrin-carousel-nav [data-carousel-prev],
  .gold-vitrin--full .gold-vitrin-carousel-nav [data-carousel-next] {
    display: none;
  }
}
.gold-vitrin-main { padding: 0; min-width: 0; max-width: 100%; }
.gold-vitrin-list { list-style: none; margin: 0; padding: 0; min-width: 0; max-width: 100%; }
.gold-vitrin-list > li { border-bottom: 1px solid rgba(212, 175, 95, 0.16); }
.gold-vitrin-list > li:last-child { border-bottom: none; }
.gold-vitrin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border-left: 2px solid transparent;
  min-width: 0;
  max-width: 100%;
}
.gold-vitrin-row:hover {
  background: rgba(245, 185, 66, 0.05);
  border-left-color: rgba(245, 185, 66, 0.75);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 95, 0.12);
}
.gold-vitrin-row:hover .gold-vitrin-title { color: #e8d5a3; }
.gold-vitrin-row-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  flex-shrink: 0;
}
.gold-vitrin-cat {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  border: 1px solid transparent;
  min-width: 3.2rem;
  text-align: center;
  line-height: 1.2;
}
.gold-vitrin-cat-uydu { color: #93c5fd; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.22); }
.gold-vitrin-cat-spor { color: #86efac; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.22); }
.gold-vitrin-cat-haber { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.22); }
.gold-vitrin-cat-guncel { color: #f9a8d4; background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.2); }
.gold-vitrin-cat-teknoloji { color: #a5b4fc; background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.22); }
.gold-vitrin-cat-oyun { color: #f0abfc; background: rgba(192, 38, 211, 0.12); border-color: rgba(192, 38, 211, 0.28); }
.gold-vitrin-cat-ozel { color: #d4b86a; background: rgba(212, 175, 95, 0.08); border-color: rgba(212, 175, 95, 0.2); }
.gold-vitrin-format {
  display: inline-block;
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #a89870;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}
.gold-vitrin-formats-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.gold-format-showcase { margin-top: 0.25rem; }
.gold-vitrin-row-main { min-width: 0; max-width: 100%; overflow: hidden; }
.gold-vitrin-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #e8eaed;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gold-vitrin-lock {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.3rem;
  opacity: 0.45;
  color: #a89870;
}
.gold-vitrin-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.gold-vitrin-meta-sep { margin: 0 0.25rem; opacity: 0.5; }
.gold-vitrin-arrow {
  flex: 0 0 auto;
  color: var(--text-dim);
  opacity: 0.35;
  font-size: 1rem;
  line-height: 1;
}
.gold-vitrin-row:hover .gold-vitrin-arrow { opacity: 0.7; color: #c9a84c; }
.gold-vitrin-empty {
  margin: 0.75rem;
  padding: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.gold-vitrin-aside {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(212, 175, 95, 0.28);
  background: rgba(245, 185, 66, 0.04);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 860px) {
  .gold-vitrin-aside {
    border-top: none;
    border-left: 1px solid rgba(212, 175, 95, 0.32);
  }
}
.gold-vitrin-card {
  padding: 0.85rem 0.9rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(212, 175, 95, 0.38);
  background: rgba(8, 11, 20, 0.55);
  box-shadow: inset 0 1px 0 rgba(245, 185, 66, 0.14);
}
.gold-vitrin-card-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.gold-vitrin-card-price { margin: 0 0 0.75rem; font-size: 1rem; color: var(--text); }
.gold-vitrin-card-price strong { font-size: 1.35rem; color: var(--gold); }
.gold-vitrin-card-price span { color: var(--text-dim); font-size: 0.88rem; }
.gold-vitrin-card-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.gold-vitrin-card-list li { margin-bottom: 0.25rem; }
.gold-vitrin-card .btn-block { width: 100%; margin-bottom: 0.45rem; }
.gold-vitrin-foot {
  padding: 0.65rem 1rem 0.8rem;
  border-top: 1px solid rgba(212, 175, 95, 0.28);
  font-size: 0.82rem;
  background: rgba(245, 185, 66, 0.03);
}
.gold-vitrin-foot a { color: var(--accent); text-decoration: none; }
.gold-vitrin-foot a:hover { text-decoration: underline; }
.gold-vitrin-ai-pitch {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42rem;
}
.gold-ai-badge-inline {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.gold-vitrin-teaser {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.gold-ai-teaser {
  position: relative;
  text-align: left;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(245, 185, 66, 0.22);
  overflow: hidden;
}
.gold-ai-teaser-head { margin-bottom: 0.5rem; }
.gold-ai-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.08);
}
.gold-ai-teaser-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}
.gold-ai-teaser-fade {
  height: 2rem;
  margin-top: -1.25rem;
  background: linear-gradient(to bottom, transparent, rgba(8, 11, 20, 0.92));
  pointer-events: none;
}
.gold-ai-teaser-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.gold-lock-benefits {
  text-align: left; margin: 0 0 1.25rem; padding: 1rem 1.1rem;
  border-radius: var(--radius); background: rgba(245, 185, 66, 0.06);
  border: 1px solid rgba(245, 185, 66, 0.2);
}
.gold-lock-benefits h3 { margin: 0 0 0.65rem; font-size: 0.95rem; color: var(--gold); }
.gold-lock-benefits ul { margin: 0; padding-left: 1.15rem; color: var(--text-muted); line-height: 1.65; }
.gold-lock-benefits li { margin-bottom: 0.35rem; }
.gold-content-lock { max-width: 720px; margin: 1rem auto 1.5rem; border: 1px solid rgba(245, 185, 66, 0.3); background: rgba(245, 185, 66, 0.06); }
.gold-content-lock-inner { text-align: center; padding: 0.5rem 0.25rem; }
.gold-content-lock-icon { font-size: 2.25rem; display: block; margin-bottom: 0.5rem; }
.gold-content-lock h2 { margin: 0 0 0.65rem; color: var(--gold); font-size: 1.25rem; }
.gold-content-lock p { margin: 0 0 1rem; color: var(--text-muted); line-height: 1.55; }
.gold-content-lock .gold-contact-box { text-align: left; }
.header-pill-admin {
  background: rgba(155, 109, 255, 0.12);
  border-color: rgba(155, 109, 255, 0.25);
  color: #c4b5fd;
}
.header-pill-muted { opacity: 0.85; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}

.header-icon-btn:hover { background: rgba(79, 140, 255, 0.12); }

.header-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--warn);
  color: #111;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  max-width: 150px;
}

.header-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-avatar { width: 28px; height: 28px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 68px;
  width: auto;
  max-width: min(320px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo-lg {
  height: 104px;
  max-width: min(420px, 92vw);
  margin: 0 auto 0.85rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.35);
}

.brand-mark-lg {
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
}

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

.nav-admin { color: var(--violet) !important; }

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.user-chip-link {
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.user-chip-link:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.06);
}

/* ── Avatars ── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
}

img.avatar.is-photo {
  display: block;
  object-fit: cover;
}

.avatar-letter {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.72rem; }
.avatar-md { width: 36px; height: 36px; font-size: 0.85rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(79, 140, 255, 0.25); }
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; box-shadow: 0 8px 24px rgba(79, 140, 255, 0.3); }

.user-chip-avatar { width: 28px; height: 28px; }

.stats-avatar.avatar-letter { background: linear-gradient(135deg, var(--accent), #818cf8); }
.stats-avatar-reply.avatar-letter { background: linear-gradient(135deg, #10b981, #34d399); }

.post-avatar { margin-bottom: 0.55rem; }
.post-avatar-sm { margin-bottom: 0; }

.post-author-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.post-author-link:hover .post-author { color: var(--accent); }
.post-author-link:hover .post-author.is-admin { color: #fca5a5; }
.post-author-link:hover .post-author.is-mod { color: #fdba74; }

.post-signature {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 100%;
  word-break: break-word;
}

/* ── Profile pages ── */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

.profile-layout-wide { max-width: 900px; }

.profile-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
}

.profile-avatar-wrap { flex-shrink: 0; }

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.profile-hero-info .page-title { margin: 0; font-size: 1.35rem; }

.profile-meta,
.profile-location {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-occupation {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.65rem;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.profile-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.profile-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.profile-staff-note {
  padding-top: 0;
  border-top: 1px dashed var(--border);
}

.profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.profile-grid-full { grid-column: 1 / -1; }

.profile-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-recent-post {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.profile-recent-post:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.profile-recent-post-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.profile-recent-post-head strong { font-size: 0.92rem; }

.profile-recent-post-head small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.profile-recent-post p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-card-rich {
  overflow: hidden;
  position: relative;
}

.profile-cover {
  height: 88px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.25));
  border-bottom: 1px solid var(--border);
}

.profile-hero-rich {
  margin-top: -2.5rem;
  align-items: flex-end;
  padding-top: 0;
}

.profile-avatar-wrap-rich {
  position: relative;
}

.profile-avatar-online,
.post-avatar-online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.user-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
  vertical-align: middle;
}

.user-online-dot-lg {
  width: 10px;
  height: 10px;
  position: absolute;
  right: 0;
  bottom: 0;
  border: 2px solid var(--bg-card);
}

.user-online-badge,
.user-offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.user-online-badge { color: #4ade80; }
.user-offline-badge { color: var(--text-dim); font-weight: 500; }

.profile-status-row { margin: 0.15rem 0 0.35rem; }

.profile-geo-note {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 400;
}

.profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.profile-body-grid .panel-body {
  border-right: 1px solid var(--border);
}

.profile-body-grid .panel-body:last-child {
  border-right: 0;
}

.profile-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.profile-info-list span { color: var(--text-dim); }
.profile-info-list strong { color: var(--text); text-align: right; }

.profile-signature-inline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.post-author-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-width: 0;
}

.post-author-card.is-admin { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.04); }
.post-author-card.is-mod { border-color: rgba(251, 146, 60, 0.45); background: rgba(251, 146, 60, 0.04); }
.post-author-card.is-gold {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 185, 66, 0.55);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.14) 0%, rgba(245, 185, 66, 0.05) 38%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.1), 0 10px 28px rgba(245, 185, 66, 0.1);
}

.gold-member-ribbon {
  margin: -0.85rem -0.85rem 0.6rem;
  padding: 0.38rem 0.55rem;
  background: linear-gradient(90deg, #7a5510 0%, #c9921a 18%, #f5b942 42%, #fde68a 52%, #f5b942 72%, #c9921a 88%, #7a5510 100%);
  color: #1a1200;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.gold-member-ribbon-icon {
  font-size: 0.9rem;
  line-height: 1;
  color: #3d2a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gold-avatar-wrap {
  position: relative;
  display: inline-block;
}

.gold-avatar-wrap::before {
  content: '♛';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  line-height: 1;
  color: #fde68a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 12px rgba(245, 185, 66, 0.65);
  z-index: 3;
  pointer-events: none;
}

.gold-avatar-wrap .avatar,
.gold-avatar-wrap .avatar.is-photo {
  box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.9), 0 0 0 4px rgba(245, 185, 66, 0.18), 0 0 22px rgba(245, 185, 66, 0.35);
}

.gold-avatar-wrap-lg::before {
  top: -14px;
  font-size: 1.15rem;
}

.gold-avatar-wrap-lg .avatar,
.gold-avatar-wrap-lg .avatar.is-photo {
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.92), 0 0 0 6px rgba(245, 185, 66, 0.16), 0 0 28px rgba(245, 185, 66, 0.4);
}

.post-author.is-gold,
.profile-name-gold {
  background: linear-gradient(90deg, #fde68a 0%, #f5b942 45%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  text-shadow: none;
}

.post-author-link:hover .post-author.is-gold { filter: brightness(1.08); }

.role-gold {
  background: linear-gradient(90deg, rgba(122, 85, 16, 0.45), rgba(245, 185, 66, 0.35));
  color: #fde68a;
  border: 1px solid rgba(245, 185, 66, 0.45);
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.12);
}

.profile-card-gold {
  border-color: rgba(245, 185, 66, 0.42);
  box-shadow: 0 14px 42px rgba(245, 185, 66, 0.12);
}

.profile-card-gold .profile-cover {
  background: linear-gradient(135deg, rgba(90, 62, 10, 0.85) 0%, rgba(154, 109, 22, 0.75) 25%, rgba(245, 185, 66, 0.55) 55%, rgba(253, 230, 138, 0.35) 75%, rgba(120, 83, 14, 0.7) 100%);
}

.profile-gold-banner {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a6d16, #f5b942, #fde68a, #f5b942, #9a6d16);
  color: #1a1200;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.profile-gold-crown {
  font-size: 0.95rem;
  line-height: 1;
}

.user-card-gold {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 185, 66, 0.48);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.12) 0%, var(--bg-card) 42%);
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.08);
  padding-top: 0.35rem;
}

.user-card-gold .gold-member-ribbon {
  margin: -1rem -1rem 0.55rem;
  width: calc(100% + 2rem);
}

.user-card-gold:hover {
  border-color: rgba(253, 230, 138, 0.65);
  box-shadow: 0 10px 28px rgba(245, 185, 66, 0.16);
}

.compose-upload-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.bb-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.25);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.bb-attach:hover { background: rgba(79, 140, 255, 0.18); }

.post-avatar-wrap {
  position: relative;
  display: inline-block;
}

.post-author-location {
  font-size: 0.75rem;
  color: var(--accent);
  line-height: 1.35;
}

.post-author-status {
  font-size: 0.72rem;
  min-height: 1rem;
}

.post-author-occupation {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.post-author-profile-link {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
}

.post-author-profile-link:hover { text-decoration: underline; }

.user-card-online {
  position: relative;
  align-items: center;
  text-align: center;
}

.user-card-avatar-wrap {
  position: relative;
  display: inline-block;
}

.user-card-location,
.user-card-meta {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.profile-about,
.profile-signature {
  border-top: 1px solid var(--border);
}

.profile-about h2,
.profile-signature h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-about p,
.profile-signature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-form .panel { margin-bottom: 0; }

.profile-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 1rem;
}

.avatar-upload-label {
  display: inline-flex;
  cursor: pointer;
}

.avatar-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field span small {
  font-weight: 400;
  color: var(--text-dim);
}

.field input,
.field textarea {
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

@media (max-width: 520px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }
  .profile-grid-2 { grid-template-columns: 1fr; }
  .profile-actions-row { justify-content: center; }
  .profile-body-grid { grid-template-columns: 1fr; }
  .profile-body-grid .panel-body { border-right: 0; border-bottom: 1px solid var(--border); }
  .profile-body-grid .panel-body:last-child { border-bottom: 0; }
}

/* ── Main & Footer ── */
.site-main {
  padding: 1.5rem 0 3rem;
  min-height: calc(100vh - var(--header-h) - 80px);
  max-width: 100%;
  overflow-x: clip;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.4), rgba(6, 9, 18, 0.95));
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 12, 0.92);
  padding: 0.85rem 0 1rem;
}

.footer-legal p {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-links {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  text-align: center;
}

.footer-legal strong { color: var(--text-muted); font-weight: 600; }

/* ── Buttons ── */
.btn, button[type="submit"]:not(.tb):not(.btn-like):not(.btn-reaction) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
}

.btn-primary, button[type="submit"].btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #5558e8);
  box-shadow: 0 6px 20px rgba(79, 140, 255, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

form.inline { display: inline; }

/* ── Hero (Home) ── */
.hero-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12) 0%, rgba(155, 109, 255, 0.08) 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hero-tag {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-banner h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.header-pill-accent {
  background: rgba(79, 140, 255, 0.15);
  border-color: rgba(79, 140, 255, 0.35);
  color: #93c5fd;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.forum-item-new {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.2);
  cursor: pointer;
}

.forum-item-new:hover {
  background: rgba(79, 140, 255, 0.2);
  color: #fff;
}

.stat-cards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ── Forum stats (Son Konular / Son Cevaplar) ── */
.forum-stats {
  margin-bottom: 1.25rem;
}

.forum-stats-bar {
  margin-bottom: 0.5rem;
}

.forum-stats-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.forum-stats-summary strong {
  color: var(--text);
  font-weight: 600;
}

.forum-stats-summary .dot {
  color: var(--text-dim);
  user-select: none;
}

.forum-stats-panel {
  margin-bottom: 0;
}

.forum-stats-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.stats-tab {
  position: relative;
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.stats-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.stats-tab.is-active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.stats-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.stats-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-grid-head,
.stats-grid-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(108px, 13%) 44px 52px 72px minmax(92px, 11%);
  align-items: center;
  gap: 0 0.5rem;
  width: 100%;
  min-width: 0;
}

.stats-grid-head {
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border);
}

.stats-grid-head .col-replies,
.stats-grid-head .col-views,
.stats-grid-row .col-replies,
.stats-grid-row .col-views {
  text-align: center;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats-grid-head .col-time,
.stats-grid-row .col-time {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.stats-grid-row {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  min-width: 640px;
}

.stats-grid-row:last-child {
  border-bottom: none;
}

.stats-grid-row .col-avatar {
  padding-right: 0;
}

.stats-grid-row .col-forum a {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  word-break: break-word;
}

.stats-grid-row .col-forum a:hover { color: var(--accent); }

.stats-grid-row .col-time a {
  color: var(--text-muted);
  text-decoration: none;
}

.stats-grid-row .col-time a:hover { color: var(--accent); }

.stats-pane[hidden] { display: none !important; }

.stats-grid-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stats-grid-row.stats-row--pinned {
  background: rgba(99, 102, 241, 0.04);
}

.stats-grid-row.stats-row--gold {
  box-shadow: inset 2px 0 0 rgba(245, 185, 66, 0.45);
}

.stats-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.stats-avatar-online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.55);
}

.stats-topic-cell {
  min-width: 0;
}

.stats-topic-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.stats-topic-meta {
  margin-top: 0.18rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-topic-meta-label {
  margin-right: 0.25rem;
}

.stats-user-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-username {
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.stats-username:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stats-username.username-admin { color: #fca5a5; }
.stats-username.username-mod { color: #fdba74; }
.stats-username.username-gold { color: var(--gold); }
.stats-username.username-gold::before {
  content: '♛ ';
  font-size: 0.72em;
  opacity: 0.92;
}

.stats-username:not(.username-admin):not(.username-mod):not(.username-gold) {
  color: var(--text);
}

.stats-username-empty {
  color: var(--text-dim);
}

.stats-avatar {
  /* legacy hook — sizes via .avatar-sm */
}

.stats-avatar-reply {
  /* letter variant via .avatar-letter.stats-avatar-reply */
}

.stats-topic-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
}

.stats-topic-link:hover { color: var(--accent); }

.badge-pin,
.badge-lock,
.badge-gold,
.badge-fresh {
  display: inline-block;
  margin: 0;
  padding: 0.08rem 0.32rem;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-pin {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.badge-lock {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.badge-gold {
  background: rgba(245, 185, 66, 0.18);
  color: #fde68a;
  border: 1px solid rgba(245, 185, 66, 0.28);
}

.badge-fresh {
  background: rgba(34, 201, 151, 0.15);
  color: #6ee7b7;
}

@media (max-width: 768px) {
  .stats-grid-head,
  .stats-grid-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px 72px minmax(88px, 24%);
    min-width: 0;
  }
  .stats-grid-head .col-forum,
  .stats-grid-head .col-views,
  .stats-grid-head .col-user,
  .stats-grid-row .col-forum,
  .stats-grid-row .col-views,
  .stats-grid-row .col-user { display: none; }
}

@media (max-width: 520px) {
  .stats-grid-head,
  .stats-grid-row {
    grid-template-columns: 36px minmax(0, 1fr) 44px 64px;
  }
}

/* ── Panels & Grid ── */
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.panel-body { padding: 0.75rem; }
.panel-body-flush { padding: 0; }

.panel-form { max-width: 720px; }

/* ── Ana sayfa forum listesi ── */
.panel-forums-home {
  border: 1px solid rgba(245, 185, 66, 0.38);
  box-shadow:
    0 0 0 1px rgba(245, 185, 66, 0.07),
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.panel-forums-home .panel-head-gold {
  border-bottom: 1px solid rgba(245, 185, 66, 0.28);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.12) 0%, rgba(0, 0, 0, 0.18) 100%);
}

.panel-forums-home .panel-head-gold h2 {
  color: var(--gold);
  letter-spacing: 0.02em;
}

.panel-body-forums {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.1);
}

.forum-group {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(8, 12, 22, 0.55);
}

.forum-group--gold {
  border-color: rgba(245, 185, 66, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(245, 185, 66, 0.08),
    0 4px 18px rgba(245, 185, 66, 0.06);
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.07) 0%, rgba(8, 12, 22, 0.6) 100%);
}

.forum-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.forum-group--gold .forum-group-title {
  border-bottom-color: rgba(245, 185, 66, 0.28);
  background: rgba(245, 185, 66, 0.1);
  color: #e8c76a;
}

.forum-group-title a {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-group-title a:hover { color: var(--gold); }

.forum-group-gold-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fde68a;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, 0.4);
  background: rgba(245, 185, 66, 0.12);
}

.forum-group-list {
  display: flex;
  flex-direction: column;
}

.forum-group { margin-bottom: 0; }
.forum-group:last-child { margin-bottom: 0; }

.forum-group-list .forum-item {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-group-list .forum-item:last-child {
  border-bottom: none;
}

.forum-item--gold {
  border-left: 3px solid rgba(245, 185, 66, 0.55);
  background: rgba(245, 185, 66, 0.04);
}

.forum-item--gold .forum-item-icon {
  color: var(--gold);
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.28);
}

.forum-item--gold:hover {
  background: rgba(245, 185, 66, 0.09);
  border-left-color: var(--gold);
}

.forum-item--gold .forum-item-info strong {
  color: #fde68a;
}

.forum-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.forum-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  text-decoration: none;
}

.forum-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.forum-item-info {
  flex: 1;
  min-width: 0;
}

.forum-item-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-item-info small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.forum-item-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.forum-item:hover .forum-item-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.latest-item {
  display: block;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

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

.latest-item:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.latest-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.latest-item small {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb strong { color: var(--text-muted); font-weight: 500; }
.bc-sep { opacity: 0.4; }

/* ── Page toolbar ── */
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.page-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Data table (forum list) ── */
.data-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table-head,
.data-table-row {
  display: grid;
  grid-template-columns: 1fr 110px 70px 80px 90px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 1.15rem;
}

.data-table-head {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.data-table-row {
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.data-table-row:last-child { border-bottom: none; }

.data-table-row:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.col-topic { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }

.topic-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-user { font-size: 0.85rem; color: var(--text-muted); }
.col-num { font-size: 0.85rem; color: var(--text-dim); text-align: center; }
.col-date { font-size: 0.8rem; color: var(--text-dim); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.badge-pin { background: rgba(245, 185, 66, 0.15); color: var(--gold); }
.badge-lock { background: rgba(248, 113, 113, 0.12); color: var(--danger); }

/* ── Thread header ── */
.thread-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.thread-header .page-title { margin-top: 0.35rem; }

.thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.thread-quick-mod {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.35rem;
}

.compose-upload {
  margin-top: 0.75rem;
}

.compose-upload input[type=file] {
  font-size: 0.85rem;
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pm-tab {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  text-decoration: none;
}

.pm-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.tag-cloud-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill-lg {
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
}

.alert-warn-inline {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.pm-preview {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.badge-unread {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
}

.pm-conversation-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pm-conversation-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pm-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.pm-bubble {
  max-width: min(85%, 640px);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.pm-bubble.is-mine {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.25);
}

.pm-bubble.is-theirs {
  align-self: flex-start;
}

.pm-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.pm-bubble-meta strong {
  color: var(--text);
}

.pm-subject {
  font-style: italic;
}

.pm-bubble-body {
  font-size: 0.92rem;
  line-height: 1.55;
}

.pm-reply-box {
  margin-top: 1rem;
}

.badge-unread-dot {
  color: var(--accent);
  font-size: 0.65rem;
  margin-right: 0.25rem;
}

.post-edited {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.data-table-row.is-unread-row .topic-title,
.data-table-row:has(.badge-unread-dot) .topic-title {
  font-weight: 600;
}

.thread-edit-link {
  color: var(--accent);
  font-weight: 500;
}

.thread-edit-layout {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

.thread-mod-fields {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.thread-mod-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.thread-mod-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.thread-mod-note {
  margin: 0 0 0.85rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.thread-mod-danger .panel-head h2 {
  color: #f87171;
}

/* ── Posts ── */
.posts-stream {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.post-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-sidebar {
  padding: 1.15rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-avatar {
  /* sizes via .avatar-lg / .avatar-sm */
}

.post-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

.post-author.is-admin {
  color: #f87171;
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.25);
}

.post-author.is-mod {
  color: #fb923c;
  text-shadow: 0 0 18px rgba(251, 146, 60, 0.2);
}

.post-rank {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.role-badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-admin { background: rgba(248, 113, 113, 0.18); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); }
.role-moderator { background: rgba(251, 146, 60, 0.18); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.35); }

.post-main {
  padding: 1rem 1.25rem;
  min-width: 0;
}

.post-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

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

.post-content {
  word-break: break-word;
  line-height: 1.6;
  font-size: 0.92rem;
  color: var(--text);
}

.post-content a.bb-link,
.post-content a.bb-autolink,
.post-content a:not(.bb-mention) {
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(245, 185, 66, 0.55);
}

.post-content a.bb-link:hover,
.post-content a.bb-autolink:hover,
.post-content a:not(.bb-mention):hover {
  color: #fde68a !important;
  text-decoration-color: rgba(253, 230, 138, 0.65);
}

.editor-preview a {
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content img, .bb-img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: var(--radius-xs);
}

.bb-attach-missing {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.post-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-like:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text);
}

.btn-like.is-liked {
  background: rgba(34, 201, 151, 0.12);
  border-color: rgba(34, 201, 151, 0.35);
  color: var(--success);
}

.like-count { font-weight: 600; }
.like-readonly { font-size: 0.82rem; color: var(--text-dim); }

.reaction-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-right: 0.35rem;
}

.btn-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-reaction:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn-reaction.is-active { border-color: var(--accent); background: rgba(56, 189, 248, 0.12); }
.reaction-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.thread-poll { margin-bottom: 1rem; }
.poll-form { display: flex; flex-direction: column; gap: 0.5rem; }
.poll-option { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }
.poll-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.poll-result-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.25rem; }
.poll-result.is-mine .poll-result-label { color: var(--accent); }
.poll-bar { height: 8px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6366f1); border-radius: 999px; }
.poll-meta, .poll-closed { font-size: 0.82rem; color: var(--text-dim); margin: 0.75rem 0 0; }
.poll-add { margin: 0.75rem 0; padding: 0.75rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.poll-add summary { cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; }
.field-captcha { display: block; margin: 0.75rem 0 0.35rem; font-size: 0.9rem; }

/* ── Reply box ── */
.reply-box {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(79, 140, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.08), var(--shadow-sm);
}

.reply-box-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.gold-ai-reply-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-left: auto;
}

/* ── Editor ── */
.compose-editor {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.editor-toolbar .tb {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.editor-toolbar .tb:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-light);
}

.editor-toolbar .tb-hide {
  color: var(--gold);
  border-color: rgba(245, 185, 66, 0.25);
}

.editor-toolbar .tb-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 4px 0.25rem;
  align-self: center;
}

.editor-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 280px;
  padding: 0.85rem 1rem;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  display: block;
}

.editor-textarea:focus {
  outline: none;
}

.compose-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compose-form label:first-child { margin-top: 0; }

.compose-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Forms & Inputs (dark theme — tüm alanlar) ── */
.site-main input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
.auth-page input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]),
input[type=text],
input[type=email],
input[type=password],
input[type=search],
input[type=number],
input[type=url],
input:not([type]),
select,
textarea:not(.editor-textarea) {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.site-main input[disabled],
.auth-page input[disabled],
input[disabled] {
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--text-muted) !important;
  opacity: 1;
  cursor: not-allowed;
}

.site-main input::placeholder,
.auth-page input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #121a2e inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  border: 1px solid var(--border-light) !important;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(255, 255, 255, 0.06);
}

/* ── BBCode content ── */
.hide-box {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.06), rgba(245, 185, 66, 0.02));
  border: 1px dashed rgba(245, 185, 66, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0.65rem 0;
  text-align: center;
  font-size: 0.88rem;
}

.hide-box .hide-icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

.hide-box strong { color: var(--gold); }

.hide-hint {
  color: var(--warn);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.hide-box-unlocked {
  text-align: left;
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.hide-box-unlocked strong { color: #34d399; }

.hide-unlock-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.hide-body {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xs);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
}

.link-hidden {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.82rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.55rem;
}

.spoiler {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.65rem 0;
  overflow: hidden;
}

.spoiler summary {
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  list-style: none;
  background: rgba(79, 140, 255, 0.05);
  transition: background var(--transition);
}

.spoiler summary:hover { background: rgba(79, 140, 255, 0.1); }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler-body { padding: 0.75rem 1rem 1rem; font-size: 0.88rem; }

.bb-code {
  background: #050810;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
  max-height: 320px;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #a5b4c8;
}

.post-content .bb-size {
  line-height: 1.45;
}

.post-content .bb-size a {
  font-size: inherit;
}

.bb-center,
.bb-align-center {
  text-align: center;
  margin: 0.35rem 0;
}

.bb-left,
.bb-align-left {
  text-align: left;
  margin: 0.35rem 0;
}

.bb-right,
.bb-align-right {
  text-align: right;
  margin: 0.35rem 0;
}

.bb-align-justify {
  text-align: justify;
  margin: 0.35rem 0;
}

.bb-mention {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bb-mention:hover {
  text-decoration: underline;
}

.bb-list {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}

.bb-list li {
  margin: 0.2rem 0;
}

.bb-indent {
  margin-left: 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
}

.bb-hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.85rem;
  margin: 0.5rem 0;
  background: rgba(79, 140, 255, 0.05);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.quote-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.quote-body {
  display: block;
}

.post-content blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.alert-info {
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.2);
  color: var(--text-muted);
}

.alert-warn {
  background: rgba(245, 185, 66, 0.08);
  border: 1px solid rgba(245, 185, 66, 0.2);
  color: var(--warn);
}

.alert-error, .err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}

.alert-success, .ok {
  background: rgba(34, 201, 151, 0.1);
  border: 1px solid rgba(34, 201, 151, 0.25);
  color: var(--success);
}

.notice {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Auth pages ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2rem 0;
}

.auth-card {
  width: min(420px, 100%);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(24, 32, 56, 0.95), rgba(18, 26, 46, 0.98));
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.auth-card-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.auth-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-form label:first-of-type { margin-top: 0; }

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.auth-footer-muted {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0;
}

.thread-pagination {
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.page-link,
.page-current,
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
}

.page-link {
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.page-link:hover {
  color: var(--text);
  background: rgba(79, 140, 255, 0.1);
  border-color: rgba(79, 140, 255, 0.25);
}

.page-current {
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.page-ellipsis {
  color: var(--text-dim);
  padding: 0 0.15rem;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-jump-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.page-jump-input {
  width: 4.2rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
}

.page-info {
  font-size: 0.78rem;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
}

@media (min-width: 769px) {
  .page-info {
    width: auto;
    text-align: left;
    margin-left: auto;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 1.5rem; }
  .hero-banner h1 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  .data-table-head { display: none; }

  .data-table-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
  }

  .col-num, .col-date, .col-user {
    font-size: 0.78rem;
    text-align: left;
  }

  .col-num::before { content: 'Cevap: '; color: var(--text-dim); }
  .col-date::before { content: 'Son: '; color: var(--text-dim); }
  .col-user::before { content: 'Yazar: '; color: var(--text-dim); }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    flex-direction: row;
    text-align: left;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    gap: 0.65rem;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .post-author { font-size: 0.85rem; }
  .post-rank { margin-top: 0; }
  .role-badge { margin-top: 0; margin-left: auto; }

  .user-chip span:not(.user-chip-avatar) { display: none; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .stat-cards { width: 100%; }
  .stat-card { flex: 1; min-width: 0; }
}

/* ── Moderasyon ── */
.mod-panel { border-color: rgba(239, 68, 68, 0.25); }
.mod-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mod-panel-role { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mod-panel-body { display: grid; gap: 0.85rem; }
.mod-ban-form { display: grid; gap: 0.55rem; }
.mod-ban-form label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.mod-ban-form input[type="text"] {
  width: 100%; padding: 0.55rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.mod-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--text-muted); }
.mod-actions-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mod-form-inline { display: inline; }
.mod-note { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.mod-ban-alert { margin: 0; }

.mod-post-menu { position: relative; margin-left: auto; }
.mod-post-menu summary { list-style: none; cursor: pointer; font-size: 0.9rem; opacity: 0.65; padding: 0.15rem 0.35rem; border-radius: 6px; }
.mod-post-menu summary::-webkit-details-marker { display: none; }
.mod-post-menu[open] summary { opacity: 1; background: rgba(96, 165, 250, 0.12); }
.mod-post-dropdown {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  min-width: 180px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 0.35rem; display: grid; gap: 0.15rem;
}
.mod-post-dropdown a,
.mod-post-dropdown button {
  display: block; width: 100%; text-align: left; padding: 0.45rem 0.65rem;
  border: 0; background: none; color: var(--text); font: inherit; border-radius: 8px;
  text-decoration: none; cursor: pointer;
}
.mod-post-dropdown a:hover,
.mod-post-dropdown button:hover { background: rgba(96, 165, 250, 0.1); }
.mod-post-dropdown button.mod-danger { color: #f87171; }
.post-top { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

.btn-danger { background: #dc2626; color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }
.btn-warn { background: #d97706; color: #fff; border: none; }
.btn-warn:hover { background: #b45309; }
.profile-layout .mod-panel { margin-bottom: 1rem; }

.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Live dock (footer strip, above copyright) ── */
.live-dock {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(79, 140, 255, 0.12);
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.live-dock-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.65), rgba(79, 140, 255, 0.55), transparent);
  pointer-events: none;
}
.live-dock-shell {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.55rem 0;
}
.live-dock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.live-dock-toggle:hover {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.14);
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: live-pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.live-dock-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  min-width: 1ch;
  text-align: center;
}
.live-dock-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  opacity: 0.9;
}
.live-dock-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}
.live-dock.is-collapsed .live-dock-panel {
  display: none;
}
.live-dock-columns {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 0.5rem;
}
.live-dock-col {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem 0.5rem 0.4rem;
}
.live-dock-col-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}
.live-dock-col-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}
.live-dock-col-icon-member {
  background: rgba(74, 222, 128, 0.2);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.45);
}
.live-dock-col-icon-bot {
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.35);
}
.live-dock-col-icon-guest {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}
.live-dock-col-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}
.live-dock-col-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}
.live-dock-col-body {
  max-height: 4.5rem;
  overflow: auto;
  scrollbar-width: thin;
}
.live-dock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}
.live-dock-list-bots { flex-direction: column; flex-wrap: nowrap; gap: 0.2rem; }
.live-dock-list-stack { flex-direction: column; flex-wrap: nowrap; gap: 0.28rem; align-items: stretch; }
.live-dock-stack-item { width: 100%; }
.live-dock-user {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.74rem;
  padding: 0.12rem 0.35rem 0.12rem 0.12rem;
  border-radius: 999px;
  border: 1px solid transparent;
  max-width: 100%;
}
.live-dock-user:hover {
  border-color: rgba(79, 140, 255, 0.35);
  background: rgba(79, 140, 255, 0.08);
  color: var(--accent);
}
.live-dock-avatar {
  display: inline-flex;
  flex-shrink: 0;
}
.live-dock-avatar .avatar,
.live-dock-avatar-img {
  width: 18px !important;
  height: 18px !important;
  font-size: 0.62rem !important;
  border-radius: 50%;
}
.live-dock-user-name {
  font-weight: 600;
  font-size: 0.74rem;
  color: #e2e8f0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}
.live-dock-user-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.live-dock-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.live-dock-bot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: 0;
  flex: 1;
}
.presence-page-link {
  display: block;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.presence-page-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
.live-dock-page {
  opacity: 0.92;
}
.live-dock-page-bot { color: #fde68a; }
.live-dock-page-bot:hover { color: #fef3c7; }
.live-dock-page-guest { color: #cbd5e1; }
.live-dock-page-guest:hover { color: #f1f5f9; }
.live-dock-page-muted,
.presence-page-muted {
  color: var(--text-dim);
  cursor: default;
  text-decoration: none;
}
.live-dock-guest-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.live-dock-guest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.live-dock-guest-ago,
.presence-guest-ago {
  margin-left: auto;
  font-size: 0.58rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.live-dock-guest-more,
.presence-guest-more {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-style: italic;
  padding-left: 0.9rem;
}
.live-dock-list-guests { gap: 0.22rem; }
.live-dock-user-role {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: #fca5a5;
  letter-spacing: 0.04em;
}
.live-dock-bot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #fde68a;
}
.live-dock-bot-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  flex-shrink: 0;
}
.live-dock-bot-name { font-weight: 500; }
.live-dock-bot-ago { font-size: 0.62rem; color: var(--text-muted); margin-left: auto; }
.live-dock-guest-stat { text-align: center; padding: 0.15rem 0; }
.live-dock-guest-num {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.1;
}
.live-dock-guest-cap {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.live-dock-empty {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}
.live-dock-detail {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(79, 140, 255, 0.25);
  background: rgba(79, 140, 255, 0.08);
  white-space: nowrap;
}
.live-dock-detail:hover {
  background: rgba(79, 140, 255, 0.16);
  border-color: rgba(79, 140, 255, 0.45);
}

@media (max-width: 900px) {
  .live-dock-columns {
    grid-template-columns: 1fr 1fr;
  }
  .live-dock-col-guests { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .live-dock-shell { gap: 0.4rem; padding: 0.3rem 0; }
  .live-dock-toggle-label { display: none; }
  .live-dock-columns {
    grid-template-columns: 1fr;
    max-height: 9rem;
    overflow-y: auto;
  }
  .live-dock-detail span { display: none; }
  .live-dock-detail { padding: 0.45rem; }
}

.presence-section { margin-bottom: 1rem; }
.presence-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border: 1px solid rgba(79, 140, 255, 0.2);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), rgba(74, 222, 128, 0.05));
}
.presence-hero-main { display: flex; align-items: center; gap: 0.85rem; }
.presence-hero-pulse { width: 12px; height: 12px; }
.presence-hero-title { margin: 0; font-size: 1.25rem; }
.presence-hero-sub { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.88rem; }
.presence-hero-stats { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.presence-hero-stat {
  min-width: 4.5rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.presence-hero-stat strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #4ade80; }
.presence-hero-stat span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.presence-hero-stat-bot strong { color: #fde68a; }
.presence-hero-stat-guest strong { color: #cbd5e1; }
.presence-bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.presence-bot-card {
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(250, 204, 21, 0.06);
  padding: 0.7rem 0.8rem;
}
.presence-bot-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.presence-bot-card-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fde68a;
}
.presence-guest-highlight {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.presence-guest-highlight strong {
  font-size: 1.75rem;
  color: #e2e8f0;
  margin-right: 0.35rem;
}
.presence-guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.presence-guest-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.presence-guest-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.presence-page-link-card {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
}
.presence-page-link-bot { color: #fde68a; }
.presence-page-link-bot:hover { color: #fef3c7; }
.presence-page-link-guest { color: #cbd5e1; }
.presence-bot-page { margin: 0.35rem 0 0; }
.user-card-presence {
  display: block;
  margin-top: 0.1rem;
  padding: 0 0.65rem 0.55rem;
}
.user-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.presence-section-title { margin: 0 0 0.75rem; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.presence-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.presence-section-lead { margin: -0.35rem 0 0.85rem; color: var(--text-muted); font-size: 0.88rem; }
.presence-bot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.presence-bot-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(250, 204, 21, 0.06);
}
.presence-bot-label { font-weight: 600; color: #fde68a; }
.presence-bot-ago { font-size: 0.82rem; color: var(--text-muted); }
.presence-bot-path { font-size: 0.8rem; color: var(--accent); }
.presence-bot-ua {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 0.15rem;
}

.panel-form .panel-body,
.compose-form-wrap {
  padding: 1.25rem 1.35rem 1.35rem;
}

.panel-form,
.page-form-card {
  background: linear-gradient(180deg, rgba(24, 32, 56, 0.6), rgba(18, 26, 46, 0.85));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.form-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13, 18, 32, 0.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px); padding: 0.85rem 0;
}
.cookie-inner {
  width: min(1140px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.search-panel {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem;
  padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.search-panel input[type="search"] { flex: 1; min-width: 200px; padding: 0.65rem 0.85rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); }
.search-panel select { padding: 0.65rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); }
.search-meta { color: var(--text-muted); margin-bottom: 0.75rem; }
.search-result-card, .search-results { display: grid; gap: 0.65rem; }
.search-result-card { padding: 0.85rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.search-result-card p { margin: 0.35rem 0; color: var(--text-muted); }

.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.user-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
  padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color var(--transition), transform var(--transition);
}
.user-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.user-card-avatar { width: 48px; height: 48px; }

.notif-list { display: grid; gap: 0.45rem; }
.notif-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center;
  padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
}
.notif-item.is-unread { border-color: rgba(79, 140, 255, 0.35); background: rgba(79, 140, 255, 0.06); }
.notif-type { font-size: 0.72rem; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }

.is-unread-row { background: rgba(79, 140, 255, 0.05) !important; }
.pm-view .panel-head { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.pm-body { white-space: pre-wrap; line-height: 1.65; }

.ad-slot {
  margin: 1rem 0; padding: 0.5rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px dashed var(--border); overflow: hidden; min-height: 90px;
}
.stat-card-live .stat-value { color: var(--success); }

.post-report { display: inline-block; position: relative; }
.post-report summary { list-style: none; cursor: pointer; }
.post-report summary::-webkit-details-marker { display: none; }
.report-form {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 15;
  display: flex; gap: 0.35rem; padding: 0.5rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); min-width: 220px;
}
.report-form input { flex: 1; min-width: 0; padding: 0.4rem 0.55rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); }
.post-footer { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.legal-page h2 { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }
.legal-page ul { padding-left: 1.25rem; color: var(--text-muted); }
.auth-check { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
  }
  .header-pills { display: none; }
  .header-user-name { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-pill-admin,
  .header-pill-muted { display: none; }
}

@media (max-width: 960px) {
  body.nav-open .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .mobile-nav a {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
  }
  .mobile-nav a:hover { background: rgba(79, 140, 255, 0.1); color: var(--text); }
  .site-header { position: sticky; }
  .site-header .header-inner { position: relative; }
}

/* Tags, ranks, lists */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(79, 140, 255, 0.12); border: 1px solid rgba(79, 140, 255, 0.25);
  color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.tag-pill em { font-style: normal; color: var(--text-muted); font-size: 0.75rem; }
.tag-pill:hover { background: rgba(79, 140, 255, 0.2); color: #fff; }
.thread-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.user-rank {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.45rem; border-radius: 6px; margin-bottom: 0.25rem;
}
.rank-new { background: rgba(148,163,184,.15); color: #cbd5e1; }
.rank-active { background: rgba(59,130,246,.18); color: #93c5fd; }
.rank-veteran { background: rgba(249,115,22,.18); color: #fdba74; }
.rank-expert { background: rgba(168,85,247,.18); color: #d8b4fe; }
.rank-legend { background: rgba(234,179,8,.18); color: #fde047; }
.post-rank-meta { font-size: 0.72rem; color: var(--text-muted); }
.thread-list { display: flex; flex-direction: column; gap: 0.35rem; }
.thread-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(15,23,42,.45); text-decoration: none; color: inherit;
}
.thread-row:hover { border-color: rgba(79,140,255,.35); background: rgba(79,140,255,.06); }
.thread-row-main strong { display: block; margin-bottom: 0.2rem; }
.thread-row-main small { color: var(--text-muted); font-size: 0.8rem; }
.thread-row time { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.empty-state { color: var(--text-muted); text-align: center; padding: 2rem 1rem; }
.admin-check { display: flex; align-items: center; gap: 0.5rem; margin: 0.65rem 0; font-size: 0.9rem; }

/* Rank system v2 */
.rank-rookie { background: rgba(100,116,139,.18); color: #cbd5e1; }
.rank-senior { background: rgba(14,165,233,.18); color: #7dd3fc; }
.rank-master { background: rgba(245,158,11,.2); color: #fcd34d; }
.rank-admin { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.rank-mod { background: rgba(251, 146, 60, 0.2); color: #fdba74; }
.rank-progress-wrap { margin: 0.75rem 0 0.5rem; }
.rank-progress-head { font-size: 0.88rem; margin-bottom: 0.4rem; }
.rank-progress-bar { height: 8px; border-radius: 999px; background: rgba(148,163,184,.15); overflow: hidden; }
.rank-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg,#2563eb,#60a5fa); border-radius: 999px; }
.rank-progress-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }
.rank-ladder { display: flex; flex-direction: column; gap: 0.5rem; }
.rank-ladder-item { display: grid; grid-template-columns: 160px 100px 1fr; gap: 0.75rem; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.rank-ladder-min { color: var(--text-muted); font-size: 0.85rem; }
.rank-ladder-desc { color: var(--text-muted); font-size: 0.85rem; }
.rank-leaderboard { display: flex; flex-direction: column; gap: 0.35rem; }
.rank-leader-row { display: grid; grid-template-columns: 36px 40px 1fr auto auto; gap: 0.65rem; align-items: center; padding: 0.65rem 0.85rem; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.rank-leader-row:hover { border-color: rgba(79,140,255,.35); background: rgba(79,140,255,.06); }
.rank-leader-pos { font-weight: 800; color: var(--text-muted); }
.rank-leader-posts { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.rank-intro { color: var(--text-muted); margin: 0 0 1rem; }
.ranks-layout { display: flex; flex-direction: column; gap: 1rem; }

/* WYSIWYG editor tabs */
.editor-mode-tabs { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.editor-tab { border: 1px solid var(--border); background: rgba(15,23,42,.6); color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.editor-tab.is-active { background: rgba(79,140,255,.15); color: #fff; border-color: rgba(79,140,255,.35); }

.compose-editor .editor-hide-toolbar {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.compose-editor .sceditor-container {
  margin-top: 0.35rem;
}
.editor-pane { display: none; }
.editor-pane.is-active { display: block; }
.editor-preview { min-height: 200px; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(15,23,42,.55); }
.preview-placeholder { color: var(--text-muted); margin: 0; }
.profile-inline-form { max-width: 360px; }

@media (max-width: 640px) {
  .header-center { grid-column: 1 / -1; order: 3; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; }
  .brand-logo { height: 54px; max-width: min(240px, 62vw); }
  .header-actions { grid-column: 2; }
}

/* ── Theme pack v73 ── */
:root {
  --text-dim: #6d829c;
}

.panel-gold-frame {
  border: 1px solid rgba(245, 185, 66, 0.38);
  box-shadow:
    0 0 0 1px rgba(245, 185, 66, 0.07),
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(245, 185, 66, 0.14);
  max-width: 100%;
  min-width: 0;
}

.breadcrumb {
  padding: 0.45rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb strong { color: var(--text); font-weight: 600; }

.post-content a,
.bb-link { color: #e8c76a; }
.post-content a:hover,
.bb-link:hover { color: #fde68a; }

.bb-link--external { display: inline-flex; align-items: center; gap: 0.2rem; }
.bb-link-ext {
  font-size: 0.72em;
  opacity: 0.75;
  line-height: 1;
}

.hide-box {
  border: 1px solid rgba(245, 185, 66, 0.42);
  box-shadow: inset 0 1px 0 rgba(245, 185, 66, 0.12);
}

.empty-state-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
}

.empty-state-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.empty-state-title { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--text); }
.empty-state-text { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.empty-state-cta { margin-top: 0.25rem; }

.gold-strip {
  margin: 0 0 1rem;
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.1), rgba(245, 185, 66, 0.03));
}

.gold-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
}

.gold-strip-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.gold-strip-text { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--text-muted); }
.gold-strip-text strong { color: var(--gold); }
.gold-strip-today { font-size: 0.82rem; color: var(--text-dim); }
.gold-strip-today strong { color: #86efac; }
.gold-strip-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.forum-tag-games {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
}

.forum-tag-games-lg { margin: 0.35rem 0 0; }

.forum-item--games {
  border-color: rgba(168, 85, 247, 0.22);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), transparent);
}

.stats-topic-presence {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #86efac;
}

.stats-user-rank { display: inline-flex; margin-left: 0.25rem; vertical-align: middle; }
.stats-user-rank .rank-badge { font-size: 0.65rem; padding: 0.05rem 0.3rem; }

.stats-row.is-unread-row,
.stats-row:has(.badge-unread-dot) {
  background: rgba(79, 140, 255, 0.04);
}

.topic-preview-popover {
  position: fixed;
  z-index: 1200;
  max-width: min(360px, 92vw);
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.thread-presence-live {
  color: #86efac;
  font-size: 0.88rem;
}

.gold-vitrin-metric-today .gold-vitrin-metric-val { color: #86efac; }

.gold-vitrin-carousel {
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(212, 175, 95, 0.16);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gold-vitrin-carousel-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  max-width: 100%;
}

.gold-vitrin-carousel-card {
  flex: 0 0 min(240px, calc(100vw - 3.5rem));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(212, 175, 95, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
}

.gold-vitrin-carousel-card:hover {
  border-color: rgba(245, 185, 66, 0.45);
  background: rgba(245, 185, 66, 0.06);
}

.gold-vitrin-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.page-loading .site-main { opacity: 0; }
.page-ready .site-main { opacity: 1; transition: opacity 0.2s ease; }

.page-skeleton {
  position: fixed;
  inset: 72px 0 0;
  z-index: 50;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.page-loading .page-skeleton { opacity: 1; }
.page-ready .page-skeleton { opacity: 0; }

.skeleton-bar {
  height: 14px;
  width: 42%;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease infinite;
}

.skeleton-panel {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .wrap {
    width: min(1140px, calc(100% - 1.25rem));
  }

  .gold-vitrin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem 0.7rem;
  }

  .gold-vitrin-metrics {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
  }

  .gold-vitrin-metric {
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
  }

  .gold-vitrin-sub,
  .gold-vitrin-formats-note,
  .gold-vitrin-ai-pitch {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .gold-vitrin-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "tags"
      "main";
    gap: 0.4rem;
    padding: 0.75rem 0.85rem;
    align-items: start;
  }

  .gold-vitrin-row-tags {
    grid-area: tags;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .gold-vitrin-row-main { grid-area: main; }

  .gold-vitrin-arrow { display: none; }

  .gold-vitrin-aside {
    border-top: 1px solid rgba(212, 175, 95, 0.16);
  }

  .gold-vitrin-card {
    margin: 0.85rem;
  }

  .gold-vitrin-carousel {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .gold-vitrin-carousel-card {
    flex: 0 0 min(88%, calc(100vw - 2.75rem));
  }

  .gold-vitrin-carousel-nav {
    flex-wrap: wrap;
  }

  .gold-strip-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0.85rem;
  }

  .gold-strip-actions {
    width: 100%;
    justify-content: stretch;
  }

  .gold-strip-actions .btn {
    flex: 1;
    text-align: center;
  }

  .panel-body-forums .forum-group-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .panel-body-forums .forum-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.14);
  }

  .panel-body-forums .forum-item-arrow { display: none; }
  .panel-body-forums .forum-item-new { grid-column: 1 / -1; justify-self: start; }

  .data-table { border: none; background: transparent; }
  .data-table-head { display: none; }

  .data-table-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem;
    margin-bottom: 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
  }

  .data-table-row .col-user,
  .data-table-row .col-num,
  .data-table-row .col-date {
    font-size: 0.8rem;
    color: var(--text-dim);
  }

  .stats-grid-head { display: none; }
  .stats-grid-row {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "avatar topic"
      "avatar forum"
      "meta meta";
    gap: 0.35rem 0.55rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .stats-grid-row .col-avatar { grid-area: avatar; }
  .stats-grid-row .col-topic { grid-area: topic; }
  .stats-grid-row .col-forum { grid-area: forum; font-size: 0.78rem; }
  .stats-grid-row .col-replies,
  .stats-grid-row .col-views,
  .stats-grid-row .col-time,
  .stats-grid-row .col-user {
    grid-area: meta;
    display: inline;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-right: 0.65rem;
  }
}

