/* ============ DMANAV · shared styles ============ */
:root,
html[data-theme="ocean"] {
  --bg: #07131f;
  --bg-elev: #0b1c2c;
  --panel: rgba(15, 32, 48, 0.74);
  --panel-solid: #0d1f30;
  --line: rgba(148, 197, 220, 0.16);
  --line-strong: rgba(148, 197, 220, 0.32);
  --txt: #e6f4fb;
  --muted: #8fb0c4;
  --dim: #5e8098;
  --accent: #38bdf8;
  --accent-2: #2dd4bf;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.25);
  --btn-ink: #04141c;
  --cyan: var(--accent);
  --cyan-soft: var(--accent-soft);
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --header-bg: rgba(6, 20, 32, 0.8);
  --header-solid: rgba(8, 24, 38, 0.98);
  --footer-bg: rgba(6, 20, 32, 0.6);
  --side-bg: rgba(8, 24, 38, 0.86);
  --input-bg: rgba(5, 18, 29, 0.7);
  --grid-line: rgba(148, 197, 220, 0.055);
  --glow-1: rgba(56, 189, 248, 0.16);
  --glow-2: rgba(45, 212, 191, 0.12);
  --glow-3: rgba(99, 102, 241, 0.08);
  --rich-text: #c9d5e6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

html[data-theme="violet"] {
  --bg: #0b0918;
  --bg-elev: #151128;
  --panel: rgba(27, 22, 48, 0.76);
  --panel-solid: #16112a;
  --line: rgba(196, 181, 253, 0.16);
  --line-strong: rgba(196, 181, 253, 0.32);
  --txt: #f1ecff;
  --muted: #b4a7d6;
  --dim: #7f719e;
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-soft: rgba(167, 139, 250, 0.13);
  --accent-glow: rgba(167, 139, 250, 0.28);
  --btn-ink: #140b24;
  --violet: #e879f9;
  --header-bg: rgba(13, 10, 26, 0.82);
  --header-solid: rgba(17, 13, 32, 0.98);
  --footer-bg: rgba(13, 10, 26, 0.62);
  --side-bg: rgba(17, 13, 32, 0.88);
  --input-bg: rgba(11, 8, 22, 0.72);
  --grid-line: rgba(196, 181, 253, 0.06);
  --glow-1: rgba(167, 139, 250, 0.18);
  --glow-2: rgba(244, 114, 182, 0.12);
  --glow-3: rgba(99, 102, 241, 0.08);
  --rich-text: #d9d0f0;
}

html[data-theme="ember"] {
  --bg: #140f0b;
  --bg-elev: #221812;
  --panel: rgba(40, 28, 20, 0.76);
  --panel-solid: #241a13;
  --line: rgba(253, 186, 116, 0.16);
  --line-strong: rgba(253, 186, 116, 0.3);
  --txt: #f8eee2;
  --muted: #c6a98d;
  --dim: #8f735b;
  --accent: #fb923c;
  --accent-2: #fbbf24;
  --accent-soft: rgba(251, 146, 60, 0.12);
  --accent-glow: rgba(251, 146, 60, 0.26);
  --btn-ink: #241004;
  --violet: #f472b6;
  --green: #4ade80;
  --header-bg: rgba(20, 15, 11, 0.82);
  --header-solid: rgba(28, 20, 14, 0.98);
  --footer-bg: rgba(20, 15, 11, 0.62);
  --side-bg: rgba(28, 20, 14, 0.88);
  --input-bg: rgba(16, 11, 7, 0.72);
  --grid-line: rgba(253, 186, 116, 0.055);
  --glow-1: rgba(251, 146, 60, 0.16);
  --glow-2: rgba(251, 191, 36, 0.1);
  --glow-3: rgba(244, 114, 182, 0.06);
  --rich-text: #e7d6c4;
}

html[data-theme="midnight"] {
  --bg: #060910;
  --bg-elev: #0b1020;
  --panel: rgba(18, 24, 40, 0.72);
  --panel-solid: #0e1424;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.3);
  --txt: #e8eefb;
  --muted: #8b9bb4;
  --dim: #64748b;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.25);
  --btn-ink: #04121a;
  --violet: #a78bfa;
  --header-bg: rgba(6, 9, 16, 0.78);
  --header-solid: rgba(8, 12, 22, 0.98);
  --footer-bg: rgba(6, 9, 16, 0.6);
  --side-bg: rgba(8, 12, 22, 0.82);
  --input-bg: rgba(7, 11, 20, 0.65);
  --grid-line: rgba(148, 163, 184, 0.055);
  --glow-1: rgba(34, 211, 238, 0.16);
  --glow-2: rgba(167, 139, 250, 0.14);
  --glow-3: rgba(16, 185, 129, 0.06);
  --rich-text: #c9d5e6;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-elev: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.24);
  --txt: #111827;
  --muted: #4b5b70;
  --dim: #77859a;
  --accent: #0369a1;
  --accent-2: #4f46e5;
  --accent-soft: rgba(3, 105, 161, 0.1);
  --accent-glow: rgba(3, 105, 161, 0.18);
  --btn-ink: #ffffff;
  --violet: #7c3aed;
  --green: #047857;
  --amber: #b45309;
  --red: #dc2626;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-solid: rgba(255, 255, 255, 0.98);
  --footer-bg: rgba(255, 255, 255, 0.72);
  --side-bg: rgba(255, 255, 255, 0.94);
  --input-bg: #ffffff;
  --grid-line: rgba(15, 23, 42, 0.05);
  --glow-1: rgba(3, 105, 161, 0.1);
  --glow-2: rgba(79, 70, 229, 0.08);
  --glow-3: rgba(14, 165, 233, 0.05);
  --rich-text: #334155;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

/* background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 12% -8%, var(--glow-1), transparent 70%),
    radial-gradient(620px 380px at 88% 4%, var(--glow-2), transparent 70%),
    radial-gradient(900px 600px at 50% 100%, var(--glow-3), transparent 70%);
  pointer-events: none;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 22px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 22px var(--accent-glow);
}
.brand-mark.small { width: 28px; height: 28px; font-size: 15px; }
.brand-text { font-weight: 750; letter-spacing: 0.12em; font-size: 14px; }
.brand-text em { color: var(--cyan); font-style: normal; margin: 0 1px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.main-nav a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: 0.18s;
}
.main-nav a:hover { color: var(--txt); background: rgba(148, 163, 184, 0.08); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  width: 190px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  transition: 0.2s;
}
.search-box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 1.8; flex: none; }
.search-box input { width: 100%; border: 0; background: none; outline: none; font-size: 13px; }
.search-box input::placeholder { color: var(--dim); }
.auth-area { display: flex; align-items: center; gap: 8px; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
  border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 9px;
  background: rgba(52, 211, 153, 0.1); color: #6ee7b7; font-size: 12.5px;
}
.contact-btn:hover { background: rgba(52, 211, 153, 0.18); border-color: #34d399; }
.contact-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-btn { display: none; }
.icon-btn.menu-btn { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 13.5px;
  transition: 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--accent-glow); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line);
  color: var(--txt);
}
.btn.ghost:hover { border-color: var(--line-strong); box-shadow: none; background: rgba(148, 163, 184, 0.12); }
.btn.soft { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.btn.danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.3); color: var(--red); }
.btn.success { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); color: var(--green); }
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn:hover { color: var(--txt); border-color: var(--line-strong); }

/* layout */
.app-main { min-height: 62vh; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.page { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { margin: 0; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.section-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

/* hero */
.hero { padding: 64px 0 30px; }
.hero-inner { max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 620px; color: var(--muted); font-size: 15.5px; margin: 0 0 24px; }
.mobile-break { display: none; }
.desktop-sep { display: inline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 36px; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat-value span { color: var(--cyan); }
.stat-label { color: var(--dim); font-size: 12px; letter-spacing: 0.06em; }

/* board tiles */
.board-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 26px; }
.board-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.board-tile::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 120px; height: 120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0; transition: 0.25s;
}
.board-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.board-tile:hover::after { opacity: 1; }
.board-tile .bt-icon { color: var(--accent); width: 22px; height: 22px; }
.board-tile .bt-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.board-tile h3 { margin: 12px 0 4px; font-size: 14.5px; }
.board-tile p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.5; }
.board-tile .bt-count { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ads */
.ad-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--accent-soft), color-mix(in srgb, var(--violet) 10%, transparent));
  margin-top: 26px;
}
.ad-strip strong { font-size: 15px; }
.ad-strip p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.ad-label { font-size: 10px; letter-spacing: 0.16em; color: var(--violet); border: 1px solid rgba(167, 139, 250, 0.3); padding: 2px 6px; border-radius: 4px; margin-right: 8px; }
.ad-card {
  display: block;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
}
.ad-card h3 { margin: 6px 0 4px; font-size: 14px; }
.ad-card p { margin: 0; color: var(--dim); font-size: 12px; }

/* chips / tabs */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--muted);
  font-size: 12.5px;
  transition: 0.18s;
}
.chip:hover { color: var(--txt); border-color: var(--line-strong); }
.chip.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.chip .count { color: var(--dim); margin-left: 5px; font-family: var(--mono); font-size: 11px; }
.switch-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--input-bg); color: var(--muted); font-size: 12px; cursor: pointer;
}
.switch-chip input { width: auto; accent-color: var(--accent); }
.switch-chip:hover { border-color: var(--line-strong); color: var(--txt); }

/* cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.starter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.starter-hero {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-strong);
}
.starter-hero-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.starter-hero-head strong { font-size: 18px; }
.starter-hero-head span:last-child { color: var(--muted); font-size: 12.5px; }
.starter-hero-kicker { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.starter-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--panel));
  color: var(--txt); text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.starter-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.starter-num {
  flex: none; font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 8px;
}
.starter-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.starter-kicker { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.starter-body strong { font-size: 16px; line-height: 1.35; }
.starter-summary { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.starter-arrow { margin-top: 4px; color: var(--accent); font-size: 12.5px; }
.item-card {
  display: flex; flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(360px 160px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0; transition: 0.25s; pointer-events: none;
}
.item-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); box-shadow: var(--shadow); }
.item-card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 5px; border: 1px solid; white-space: nowrap;
}
.price-badge.paid { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.price-badge.free { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.price-badge.mixed { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.08); }
.price-badge.na { color: var(--dim); border-color: var(--line-strong); background: rgba(148, 163, 184, 0.06); }
.card-cat { font-size: 11px; color: var(--dim); }
.card-title { margin: 0 0 7px; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.card-title a:hover { color: var(--accent); }
.card-summary {
  margin: 0 0 14px; color: var(--muted); font-size: 12.8px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tag { font-size: 11px; color: var(--dim); background: var(--bg-elev); padding: 2px 7px; border-radius: 5px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-links { display: flex; gap: 12px; }
.card-links a { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.card-links a:hover { color: var(--accent); }
.card-links svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-arrow { color: var(--dim); font-size: 12px; }

/* posts */
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-row {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: 0.18s;
}
.post-row:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.post-row h3 { margin: 0 0 5px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.post-row p { margin: 0; color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; color: var(--dim); font-size: 11.5px; }
.pin { font-size: 10px; color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 4px; padding: 1px 5px; }

/* scam */
.scam-card {
  display: block; padding: 20px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(248, 113, 113, 0.055), rgba(18, 24, 40, 0.7));
  transition: 0.2s;
}
.scam-card:hover { border-color: rgba(248, 113, 113, 0.4); transform: translateY(-2px); }
.scam-card h3 { margin: 8px 0 6px; font-size: 15.5px; }
.scam-card p { margin: 0; color: var(--muted); font-size: 12.8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scam-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--dim); font-size: 11.5px; }
.risk-badge { color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); font-size: 10px; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.08em; }

/* detail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.detail-main, .detail-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
}
.detail-head h1 { margin: 8px 0 10px; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
.detail-lead { color: var(--muted); margin: 0 0 18px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.detail-side h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.side-support { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.support-links { display: flex; flex-direction: column; gap: 8px; }
.support-links a {
  display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--txt); text-decoration: none;
}
.support-links a:hover { border-color: var(--accent); }
.support-links strong { display: block; font-size: 12.5px; line-height: 1.45; }
.support-links span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.55;
}
.meta-list { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; }
.meta-list dt { color: var(--dim); }
.meta-list dd { margin: 0; text-align: right; color: var(--txt); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--dim); font-weight: 500; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.rich { color: var(--rich-text); font-size: 14px; }
.rich h3 { margin: 26px 0 10px; font-size: 17px; color: var(--txt); display: flex; align-items: center; gap: 8px; }
.rich h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); }
.rich h4 { margin: 20px 0 8px; font-size: 14.5px; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 22px; }
.rich li { margin: 5px 0; }
.rich li::marker { color: var(--accent); }
.rich strong { color: var(--txt); }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { color: var(--accent-2); }
.rich .table-wrap { margin: 14px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.rich-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.rich-table th, .rich-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-table th { color: var(--txt); background: var(--bg-elev); font-weight: 600; white-space: nowrap; }
.rich-table td { color: var(--muted); }
.rich-table tr:last-child td { border-bottom: 0; }
.rich code { font-family: var(--mono); font-size: 12.5px; background: rgba(148, 163, 184, 0.1); padding: 1px 5px; border-radius: 4px; }
.rich blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--violet); background: rgba(167, 139, 250, 0.07); color: var(--muted); }
.source-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
.tutorial-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.tutorial-gallery a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-elev); }
.tutorial-gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.tutorial-gallery span { display: block; padding: 7px 10px; color: var(--dim); font-size: 11px; }
.tutorial-gallery a:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* forms */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--muted); }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--input-bg);
  color: var(--txt);
  outline: none;
  font-size: 13.5px;
  transition: 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field .hint { color: var(--dim); font-size: 11.5px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.uploader {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  transition: 0.18s;
  cursor: pointer;
}
.uploader:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--muted); }
.uploader .hint { display: block; margin-top: 4px; }
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; line-height: 1; }
.notice-box { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.06); color: #f8d68b; font-size: 12.5px; }
.account-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); color: var(--muted); font-size: 12.5px; }
.account-box strong { display: block; color: var(--txt); margin-bottom: 4px; }
.account-box p { margin: 0; line-height: 1.7; }

/* list toolbar / pagination */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.select-mini {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(7, 11, 20, 0.6); color: var(--muted); font-size: 12.5px; outline: none;
}
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); color: var(--muted); font-size: 12.5px; }
.pagination button.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* empty / loading */
.empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--dim); font-size: 13px; }
.empty strong { display: block; color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.skeleton { height: 150px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line), var(--line-strong), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* auth chips */
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 23, 42, 0.6); font-size: 12.5px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #04121a; background: linear-gradient(135deg, var(--cyan), var(--violet)); }

/* modal */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(2, 5, 10, 0.7); backdrop-filter: blur(6px); }
.modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 24px;
  animation: modalIn 0.2s ease both;
}
.modal.wide { width: min(820px, 100%); max-height: 90vh; overflow-y: auto; }
.spec-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 6px; }
.spec-row input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--input-bg); font-size: 12.5px; outline: none;
}
.spec-row input:focus { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.wechat-panel { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.wechat-panel img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; padding: 5px; }
.wechat-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.wechat-copy > span { color: var(--muted); font-size: 12px; }
.wechat-copy strong { font-family: var(--mono); font-size: 17px; color: var(--cyan); letter-spacing: 0.04em; }
.wechat-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted);
}
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7, 11, 20, 0.5); margin-bottom: 18px; }
.tabs button { flex: 1; padding: 7px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; }
.tabs button.active { background: var(--accent-soft); color: var(--accent); }

.captcha-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; }
.captcha-img { width: 112px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); object-fit: cover; }
.captcha-row input { min-width: 0; }

/* toast */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--txt);
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease both;
  max-width: 320px;
}
.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
.toast.err { border-color: rgba(248, 113, 113, 0.45); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* footer */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--footer-bg); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 34px 22px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.footer-brand { display: flex; gap: 12px; align-items: start; }
.footer-brand strong { letter-spacing: 0.1em; font-size: 13px; }
.footer-brand p { margin: 4px 0 0; color: var(--dim); font-size: 12px; }
.footer-brand .footer-contact { color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--cyan); padding: 0; font-size: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; align-content: start; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }

/* profile */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile-head .avatar { width: 46px; height: 46px; font-size: 18px; }
.profile-head h2 { margin: 0; font-size: 20px; }
.profile-head p { margin: 2px 0 0; color: var(--dim); font-size: 12.5px; }
.status-pill { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status-pill.pending { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.07); }
.status-pill.published { color: var(--green); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.07); }
.status-pill.rejected { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.07); }

/* ============ admin ============ */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.admin-side {
  border-right: 1px solid var(--line);
  background: var(--side-bg);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 0 6px; }
.admin-side .brand-text { font-size: 11px; letter-spacing: 0.08em; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.admin-nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.admin-nav a span { white-space: nowrap; }
.admin-nav a:hover { background: rgba(148, 163, 184, 0.07); color: var(--txt); }
.admin-nav a.active { background: var(--accent-soft); color: var(--accent); }
.admin-nav .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(248, 113, 113, 0.18); color: var(--red); font-size: 10.5px; display: grid; place-items: center; }
.admin-side-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-identity { font-size: 12px; color: var(--muted); padding: 0 4px 4px; }
.admin-identity strong { display: block; color: var(--txt); font-size: 13px; }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-eyebrow { margin: 0; color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.admin-head h1 { margin: 4px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.admin-actions { display: flex; gap: 8px; }
.admin-view { animation: fadeUp 0.3s ease both; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.stat-card .s-label { color: var(--dim); font-size: 11.5px; }
.stat-card .s-value { font-size: 24px; font-weight: 800; margin-top: 2px; }
.stat-card .s-value.warn { color: var(--amber); }
.stat-card .s-value.good { color: var(--green); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 620px; }
table.data th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11.5px; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(148, 163, 184, 0.035); }
table.data .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7, 11, 20, 0.7); font-size: 12px; color: var(--muted); }
.badge-role { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid; }
.badge-role.owner { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.badge-role.admin { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.08); }
.badge-role.user { color: var(--dim); border-color: var(--line-strong); background: rgba(148, 163, 184, 0.06); }
.grant-list { display: flex; flex-wrap: wrap; gap: 5px; }
.grant-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.grant-chip button { border: 0; background: none; color: var(--dim); padding: 0 0 0 2px; font-size: 11px; }
.admin-queue-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg-elev); }
.admin-queue-item h4 { margin: 0 0 5px; font-size: 14px; }
.admin-queue-item p { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; }
.admin-queue-item .q-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.review-flags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.review-flag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.12);
}
.discover-list { display: flex; flex-direction: column; gap: 8px; }
.discover-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev);
}
.admin-login { max-width: 400px; margin: 8vh auto; }
.admin-login .form-card { padding: 26px; }
.admin-login h1 { margin: 0 0 4px; font-size: 24px; }
.admin-login p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-grid .full { grid-column: 1 / -1; }

/* theme picker */
.theme-picker { position: relative; display: flex; align-items: center; flex: none; }
.theme-btn { width: 36px; height: 36px; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: 196px; padding: 8px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--panel-solid); box-shadow: var(--shadow);
}
.theme-menu-title { margin: 4px 8px 7px; color: var(--dim); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.theme-option {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 12.5px; text-align: left;
}
.theme-option:hover { background: var(--accent-soft); color: var(--txt); }
.theme-option.active { background: var(--accent-soft); color: var(--accent); }
.theme-dots { display: flex; gap: 3px; }
.theme-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; border: 1px solid rgba(255, 255, 255, 0.25); }
.theme-swatch {
  width: 28px; height: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border-radius: 5px; border: 1px solid var(--line-strong);
}
.theme-swatch i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.theme-check { margin-left: auto; opacity: 0; color: var(--accent); }
.theme-option.active .theme-check { opacity: 1; }
.admin-side-foot .theme-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.admin-side-foot { position: relative; }

/* content management / crawl */
.admin-board-tabs { margin: 2px 0 12px; }
.origin-badge {
  display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line-strong); color: var(--dim); white-space: nowrap;
}
.origin-badge.crawl { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

html[data-theme="light"] .bg-glow { opacity: 0.75; }
html[data-theme="light"] .scam-card { background: linear-gradient(160deg, rgba(220, 38, 38, 0.05), #ffffff); }
html[data-theme="light"] .notice-box { color: #92400e; background: rgba(251, 191, 36, 0.12); }
html[data-theme="light"] .admin-side .brand-text { color: var(--txt); }
@media (max-width: 1080px) {
  .board-tiles { grid-template-columns: repeat(3, 1fr); }
  .search-box { width: 150px; }
  .main-nav a { padding: 7px 8px; font-size: 12.5px; }
}
@media (max-width: 1200px) {
  .search-box { display: none; }
  .site-header .theme-picker { display: none; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 10px 14px 16px;
    background: var(--header-solid);
    border-bottom: 1px solid var(--line);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: 14px; }
  .icon-btn.menu-btn { display: grid; }
  .search-box { width: 150px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; gap: 10px; }
  .admin-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; flex: 1 0 100%; order: 3; padding-bottom: 4px; }
  .admin-nav a { padding: 7px 9px; font-size: 12px; flex: none; }
  .admin-side-foot { flex-direction: row; align-items: center; border: 0; padding: 0; }
  .admin-identity { display: none; }
  .admin-main { padding: 20px 16px 50px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 14px; gap: 10px; height: 62px; }
  .site-header .theme-picker { display: none; }
  .brand-text { display: none; }
  .contact-btn { padding: 7px; width: 36px; height: 36px; justify-content: center; }
  .contact-btn span { display: none; }
  .wechat-panel { grid-template-columns: 1fr; }
  .wechat-panel img { max-width: 220px; margin: 0 auto; }
  .search-box { display: none; }
  .main-nav { top: 62px; }
  .container { padding: 0 14px; }
  .hero { padding: 40px 0 18px; }
  .mobile-break { display: inline; }
  .desktop-sep { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .stat-value { font-size: 22px; }
  .board-tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-cards { grid-template-columns: 1fr; }
  .starter-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-main, .detail-side { padding: 20px; }
  .detail-head h1 { font-size: 24px; }
  .admin-head { flex-direction: column; align-items: start; }
  .hero-actions .btn { flex: 1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
