/* style.css: Phong cách thị giác hiện đại sắc nét (nền đen tuyền #000, thanh điều hướng đỏ thẫm,
   typography Be Vietnam Pro Black / ExtraBold + JetBrains Mono, nút khung ngoặc góc đỏ,
   thẻ đánh giá trắng tương phản cao), kết hợp bố cục riêng của Quạ Đen 1998. */
:root {
  --bg: #000000;
  --surface: #0e0e10;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .22);
  --ink: #ffffff;
  --ink-soft: #9a9da6;
  --nav-red-1: #640e0e;
  --nav-red-2: #480909;
  --accent: #e04338;
  --accent-soft: #ff6257;
  --accent-dark: #9e1b18;
  --font-display: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-ui: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 .45em;
}
a { color: var(--accent-soft); text-decoration: none; transition: color .18s ease, opacity .18s ease, border-color .18s ease; }
a:hover { color: #ffffff; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Header đỏ thẫm sắc nét ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--nav-red-1) 0%, #741212 50%, var(--nav-red-2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  min-height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}
.topnav .wrap {
  max-width: 1320px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}
.brand-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2px;
}
.brand-main {
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
}
.nav-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-top-link {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  transition: background .18s ease, color .18s ease;
}
.nav-top-link:hover,
.nav-top-link.active {
  color: #ffffff;
  background: rgba(0, 0, 0, .28);
}
.nav-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1.5px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  color: #ffffff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, .14);
  transition: background .18s ease, border-color .18s ease;
}
.nav-login-btn:hover { background: rgba(255, 255, 255, .14); border-color: #ffffff; color: #ffffff; }
.nav-user {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
  white-space: nowrap;
}
.burger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background .18s ease;
}
.burger-btn:hover { background: rgba(255, 255, 255, .12); }
.burger-btn span { width: 20px; height: 2px; background: #ffffff; border-radius: 2px; display: block; }

/* Floating compact dropdown menu (gọn góc phải, không chiếm hết chiều cao màn hình) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: transparent; display: none; }
.drawer-backdrop.open { display: block; }
.nav-drawer {
  position: fixed;
  top: 72px;
  right: clamp(14px, 3vw, 28px);
  width: min(250px, calc(100vw - 28px));
  height: auto;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, .14);
  border-top: 2.5px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .82);
  z-index: 80;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .18s ease, transform .2s cubic-bezier(.22, 1, .36, 1), visibility .18s ease;
}
.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.drawer-head strong { font-size: .76rem !important; letter-spacing: .12em !important; color: var(--ink-soft) !important; }
.drawer-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #ffffff;
  width: 26px;
  height: 26px;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-close:hover { border-color: var(--accent); color: var(--accent-soft); }
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 7px;
  color: #d8dae0;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid transparent;
}
.drawer-link:hover, .drawer-link.active {
  background: rgba(224, 67, 56, .16);
  border-color: rgba(224, 67, 56, .5);
  color: #ffffff;
}

/* Sub-pages nav compatibility */
.topnav:not(.home-nav) .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.topnav:not(.home-nav) .brand { margin-right: auto; }
.navlink { color: rgba(255, 255, 255, .82); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.navlink:hover, .navlink.active { color: #ffffff; background: rgba(0, 0, 0, .28); }

/* ---------- Buttons & Nút khung ngoặc góc đỏ đặc trưng ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  color: #ffffff; border: 1px solid var(--accent-soft);
  border-radius: 6px; padding: 11px 22px; min-height: 44px;
  font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: #c93329; color: #ffffff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(224, 67, 56, .35); }
.btn.ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); color: #ffffff; }
.btn.ghost:hover { border-color: var(--accent); background: rgba(224, 67, 56, .1); box-shadow: none; }
.btn.small { padding: 8px 16px; min-height: 36px; font-size: .78rem; }

/* Nút khung ngoặc 4 góc đỏ kiểu hiện đại */
.corner-cta {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  background: #101012;
  border: 1px solid rgba(224, 67, 56, .42);
  color: #ffffff;
  text-align: center;
  transition: transform .18s ease, background .18s ease, box-shadow .22s ease;
}
.corner-cta::before,
.corner-cta::after,
.corner-cta .cc-b::before,
.corner-cta .cc-b::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
  transition: width .2s ease, height .2s ease;
}
.corner-cta::before { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; }
.corner-cta::after { top: -1px; right: -1px; border-width: 2.5px 2.5px 0 0; }
.corner-cta .cc-b::before { bottom: -1px; left: -1px; border-width: 0 0 2.5px 2.5px; }
.corner-cta .cc-b::after { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; }
.corner-cta:hover {
  background: #171011;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 67, 56, .24);
  color: #ffffff;
}
.corner-cta:hover::before,
.corner-cta:hover::after,
.corner-cta:hover .cc-b::before,
.corner-cta:hover .cc-b::after { width: 20px; height: 20px; }
.corner-cta strong {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.corner-cta span {
  margin-top: 4px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 1. HERO BỐ CỤC RIÊNG: SPLIT 2 CỘT BẤT ĐỐI XỨNG ---------- */
.qd-hero {
  padding: clamp(46px, 7vw, 86px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(ellipse 52% 45% at 82% 28%, rgba(224, 67, 56, .13), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 80%, rgba(120, 16, 16, .14), transparent 72%),
    var(--bg);
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.hero-title {
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .96;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: #b7bac4;
  margin: 18px 0 28px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-lead b { color: #ffffff; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stat b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}
.hero-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Cột phải Hero: Thẻ Hồ sơ vụ án 1998 */
.dossier-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
}
.dossier-box::before,
.dossier-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
.dossier-box::before { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; }
.dossier-box::after { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; }
.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dossier-code {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}
.dossier-badge {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(224, 67, 56, .16);
  border: 1px solid rgba(224, 67, 56, .45);
  color: #ff8078;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.dossier-summary {
  font-size: .92rem;
  color: #c8cbd4;
  line-height: 1.68;
  margin: 0 0 18px;
}
.dossier-summary b { color: #ffffff; }
.route-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.route-mini li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: .82rem;
  color: #d6d9e0;
}
.route-mini li b {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .74rem;
  margin-right: 8px;
}
.route-mini li span {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: clamp(54px, 7vw, 88px) 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.section-kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-title {
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #ffffff;
  margin-bottom: 10px;
}

/* ---------- 2. KHO HỒ SƠ 6 CHƯƠNG: SCROLL REVEAL MƯỢT TỪNG CHƯƠNG ---------- */
.chapter-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 34px;
  padding-left: 34px;
}
.chapter-stream::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(224, 67, 56, .25) 100%);
}
.chapter-card {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(52px) scale(.97);
  transition:
    opacity .85s cubic-bezier(.22, 1, .36, 1),
    transform .85s cubic-bezier(.22, 1, .36, 1),
    border-color .3s ease,
    box-shadow .3s ease;
  will-change: transform, opacity;
}
.chapter-card::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1b1b1e;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
  transition: background .35s ease, box-shadow .35s ease;
  z-index: 3;
}
.chapter-card.shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chapter-card.shown::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(224, 67, 56, .8);
}
.chapter-card:hover {
  border-color: rgba(224, 67, 56, .65);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .85), 0 0 0 1px rgba(224, 67, 56, .22);
}
.chapter-card.rev { grid-template-columns: minmax(0, 1fr) 340px; }
.chapter-card.rev .ch-art { order: 2; border-right: none; border-left: 1px solid var(--line); }
.chapter-card.rev .ch-body { order: 1; }

.ch-art {
  position: relative;
  min-height: 224px;
  background: #070709;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.ch-art svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .72s cubic-bezier(.22, 1, .36, 1);
}
.chapter-card:hover .ch-art svg { transform: scale(1.06); }
.ch-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .86);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ch-time {
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 4px 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.ch-body {
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ch-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ch-body h3 {
  font-size: clamp(1.26rem, 2.3vw, 1.62rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}
.ch-body p {
  margin: 0;
  color: #b4b7c0;
  font-size: .94rem;
  line-height: 1.68;
}
.ch-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ch-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: #d2d5dc;
}
.ch-actions { margin-top: 8px; display: flex; align-items: center; gap: 12px; }

/* ---------- 3. ĐIỂM NỔI BẬT (SPLIT TAB DỌC BÊN TRÁI + KHUNG CHI TIẾT PHẢI) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  margin-top: 26px;
  align-items: stretch;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-tab {
  text-align: left;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  padding: 14px 16px;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .18s ease;
}
.feature-tab:hover { border-color: var(--line-strong); color: #ffffff; }
.feature-tab.active {
  background: #140c0c;
  border-color: rgba(224, 67, 56, .45);
  border-left: 3px solid var(--accent);
  color: #ffffff;
}
.feature-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-panel::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-top: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
}
.feature-panel h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px;
}
.feature-panel p {
  margin: 8px 0;
  color: #c2c5ce;
  font-size: .98rem;
  line-height: 1.75;
}

/* ---------- 4. HƯỚNG DẪN NHANH: LƯỚI 3 CỘT NGANG ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 22px;
}
.guide-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 10px;
}
.guide-card h3 {
  font-size: 1.06rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
}
.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
}

/* ---------- 5. KHẢO SÁT & THẺ ĐÁNH GIÁ TRẮNG NỔI BẬT + HUY HIỆU 5★ ĐỎ ---------- */
.survey-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; margin-top: 24px; align-items: start; }
.review-list { display: flex; flex-direction: column; gap: 18px; max-height: 460px; overflow-y: auto; padding-right: 6px; padding-bottom: 12px; }
.review-card {
  position: relative;
  background: #ffffff;
  color: #111114;
  border-radius: 16px 16px 16px 4px;
  padding: 18px 22px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
}
.review-card .rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.review-card .rc-top b { font-size: .95rem; font-weight: 800; color: #111114; }
.review-card .rc-meta { font-family: var(--font-mono); font-size: .72rem; color: #666a73; margin-bottom: 8px; }
.review-card .rc-text { font-size: .95rem; color: #1e2026; line-height: 1.6; padding-right: 36px; }
.rc-badge {
  position: absolute;
  right: 14px;
  bottom: -12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 900;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

/* ---------- Tables, Forms, Auth, Admin ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.table-wrap { background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); }
th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: #09090b; }
tr:last-child td { border-bottom: none; }
.auth-wrap, .panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 28px); }
.auth-tabs, .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 8px 16px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.tab.active { background: var(--accent); border-color: var(--accent-soft); color: #ffffff; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: .82rem; color: #d8dbe2; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea, .survey-input {
  width: 100%; padding: 11px 13px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16);
  background: #060608; color: #ffffff; font-family: inherit; font-size: .94rem;
}
.field input:focus, .survey-input:focus { border-color: var(--accent); outline: none; }
.auth-section {
  padding: 22px 0 26px;
  border-top: none;
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 136px);
}
.form-card { max-width: 520px; }
.auth-single {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 22px 26px;
}
.auth-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #060608;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.auth-switch-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.auth-switch-btn:hover { color: #ffffff; }
.auth-switch-btn.active { background: var(--accent); color: #ffffff; }
.auth-pane h2 { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; margin: 0 0 4px; color: #ffffff; }
.auth-pane > p.muted { margin: 0 0 10px; font-size: .88rem; }
.auth-pane form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: flex; flex-direction: column; }
.auth-pane label { display: block; font-size: .74rem; color: #d8dbe2; margin-top: 6px; margin-bottom: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.auth-pane input {
  width: 100%; padding: 9px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16);
  background: #060608; color: #ffffff; font-family: inherit; font-size: .92rem;
}
.auth-pane input:focus { border-color: var(--accent); outline: none; }
.auth-pane button[type="submit"] { margin-top: 12px; width: 100%; min-height: 42px; }
.form-switch { margin: 10px 0 0; font-size: .84rem; color: var(--ink-soft); text-align: center; }
.logged-box {
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: clamp(24px, 4vw, 36px); text-align: center;
}
.logged-box h2 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; margin: 8px 0 10px; color: #ffffff; }
.logged-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(224, 67, 56, .14); border: 1px solid rgba(224, 67, 56, .45);
  color: #ffffff; font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  margin-bottom: 12px;
}
.logged-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.lb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 14px; }
.lb-tab {
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 15px; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; transition: all .18s ease;
}
.lb-tab:hover { border-color: var(--line-strong); color: #ffffff; }
.lb-tab.active { background: var(--accent); border-color: var(--accent-soft); color: #ffffff; }

/* Admin KPI stats & controls */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 28px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 18px 14px; text-align: center;
}
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #ffffff; line-height: 1.1; }
.stat span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.adm-btn {
  padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: #ffffff; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; transition: all .16s ease;
}
.adm-btn:hover { border-color: var(--accent); background: rgba(224, 67, 56, .16); color: #ffffff; }
.adm-btn.danger { border-color: rgba(224, 67, 56, .55); color: #ff8a82; }
.adm-btn.danger:hover { background: var(--accent); color: #ffffff; }
.role-pill {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
.role-pill.admin { background: rgba(224, 67, 56, .2); color: #ff8a82; border: 1px solid rgba(224, 67, 56, .55); }
.role-pill.player { background: rgba(255, 255, 255, .07); color: #d0d3dc; border: 1px solid var(--line-strong); }
.msg, .status-line { font-size: .88rem; color: var(--ink-soft); margin: 10px 0; }
.msg-error { color: #ff7c74; }
.msg-ok { color: #7ee0ad; }
.empty-note { padding: 18px; text-align: center; color: var(--ink-soft); }
.footer { border-top: 1px solid var(--line); padding: 30px 0 36px; text-align: center; color: var(--ink-soft); font-family: var(--font-mono); font-size: .78rem; }
.footer b { color: #ffffff; }

@media (max-width: 920px) {
  .nav-center { display: none; }
  .burger-btn { display: inline-flex; }
  .hero-split { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .survey-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .chapter-card, .chapter-card.rev { grid-template-columns: 1fr; }
  .chapter-card.rev .ch-art { order: 0; border-left: none; border-bottom: 1px solid var(--line); }
  .ch-art { min-height: 190px; border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-row-2 { grid-template-columns: 1fr; gap: 4px; }
  .brand-main { font-size: 1.15rem; }
  .nav-login-btn { padding: 6px 12px; font-size: .72rem; }
  .nav-user { font-size: .72rem; padding: 5px 8px; }
  .chapter-stream { padding-left: 22px; gap: 24px; }
  .chapter-card::before { left: -20px; width: 12px; height: 12px; }
}
