/* ============ RugProof - premium theme ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html[data-theme="dark"] {
  --accent-ink: var(--accent);
  --accent2-ink: var(--accent2);
  --bg: #0c111f;
  --bg-soft: #101729;
  --panel: #131a2e;
  --panel-2: #182138;
  --border: #232e4f;
  --text: #e9edf8;
  --muted: #96a0bd;
  --shadow: 0 10px 32px rgba(3, 7, 18, .45);
  --input-bg: #0e1526;
}
html[data-theme="light"] {
  --accent-ink: color-mix(in srgb, var(--accent) 52%, #123);
  --accent2-ink: color-mix(in srgb, var(--accent2) 62%, #123);
  --bg: #f4f6fb;
  --bg-soft: #edf0f8;
  --panel: #ffffff;
  --panel-2: #f7f9fe;
  --border: #e2e7f3;
  --text: #151b2e;
  --muted: #5d6884;
  --shadow: 0 8px 28px rgba(21, 27, 46, .08);
  --input-bg: #ffffff;
}

body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }
h1, h2, h3, h4, .brand-name { font-family: 'Sora', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header.sticky { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--header-text); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--header-text); opacity: .78; font-weight: 500; font-size: .93rem; padding: 8px 13px; border-radius: 9px; transition: .18s; }
.main-nav a:hover { opacity: 1; background: rgba(255,255,255,.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: transparent; color: var(--header-text); cursor: pointer; display: grid; place-items: center; transition: .18s;
}
.theme-toggle:hover { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .ic-moon { display: none; }
html[data-theme="light"] .ic-sun { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 20px; height: 2px; background: var(--header-text); border-radius: 2px; }

/* ---------- Hero + scan box ---------- */
.hero { padding: 64px 0 40px; background:
  radial-gradient(600px 280px at 15% 0%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent),
  radial-gradient(700px 320px at 90% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hero-sub { color: var(--muted); margin: 14px auto 30px; max-width: 620px; font-size: 1.02rem; }

.scan-box {
  display: flex; align-items: stretch; gap: 0; background: var(--panel);
  border: 1px solid var(--border); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent);
}
.scan-chain {
  border: 0; background: var(--input-bg); color: var(--text); font: inherit; font-weight: 600;
  border-radius: 10px; padding: 0 14px; min-width: 130px; cursor: pointer; border: 1px solid var(--border);
}
.scan-chain-fixed { display: grid; place-items: center; cursor: default; }
.scan-input {
  flex: 1; border: 0; background: transparent; color: var(--text); font: inherit;
  padding: 14px 16px; outline: none; min-width: 0;
}
.scan-input::placeholder { color: var(--muted); }
.scan-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #08110d;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent2)));
  padding: 0 26px; border-radius: 11px; transition: .18s; white-space: nowrap;
}
.scan-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.scan-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.scan-status {
  margin-top: 16px; padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: .95rem;
  background: var(--panel); border: 1px solid var(--border);
}
.scan-status.err { color: #ef4d5f; border-color: color-mix(in srgb, #ef4d5f 40%, transparent); }
.scan-status.busy { color: var(--accent-ink); }
.hero-meta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.hero-meta strong { color: var(--text); }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; }

/* ---------- Sections ---------- */
.posts-section { padding: 30px 0 50px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.section-sub { color: var(--muted); font-size: .92rem; }
.empty-state { padding: 46px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--border); border-radius: 16px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }

/* Coin icons */
.coin-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex-shrink: 0; border: 1px solid var(--border); }
.coin-icon.sm { width: 30px; height: 30px; }
.coin-icon.xl { width: 68px; height: 68px; }
.coin-fallback { display: inline-grid; place-items: center; font-weight: 800; color: var(--accent-ink); font-size: 1.05rem; text-transform: uppercase; }
.coin-icon.xl.coin-fallback { font-size: 1.6rem; }

/* Score pills / tags */
.score-pill {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 13px;
  font-family: 'Sora'; font-weight: 800; font-size: 1.05rem; color: var(--sc);
  background: color-mix(in srgb, var(--sc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 35%, transparent);
}
.score-pill.sm { min-width: 36px; height: 30px; font-size: .85rem; border-radius: 9px; }
.grade-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent);
  padding: 4px 11px; border-radius: 100px;
}
.grade-tag.lg { font-size: .88rem; padding: 7px 16px; }

/* Style 1: cards */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: .18s; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-name { flex: 1; min-width: 0; }
.pc-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.pc-name span { color: var(--muted); font-size: .84rem; }
.pc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-meta { color: var(--muted); font-size: .82rem; }

/* Style 2: list */
.posts-list { display: flex; flex-direction: column; gap: 10px; }
.post-row { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; transition: .18s; box-shadow: var(--shadow); }
.post-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateX(3px); }
.pr-name { flex: 1; min-width: 0; }
.pr-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-name em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .85em; }
.pr-name > span { color: var(--muted); font-size: .82rem; }
.pr-stats { display: flex; flex-direction: column; align-items: flex-end; font-size: .88rem; color: var(--muted); min-width: 110px; }
.pr-stats span:first-child { color: var(--text); font-weight: 600; }
.pr-score { display: flex; align-items: center; gap: 10px; min-width: 160px; justify-content: flex-end; }
.score-bar { width: 90px; height: 7px; background: var(--bg-soft); border-radius: 100px; overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 100px; }
.pr-score-num { font-weight: 700; font-size: .9rem; font-family: 'Sora'; }

/* Style 3: table */
.posts-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.posts-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.posts-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.posts-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.posts-table tbody tr { cursor: pointer; transition: .15s; }
.posts-table tbody tr:hover { background: var(--panel-2); }
.posts-table tbody tr:last-child td { border-bottom: 0; }
.pt-token { display: flex; align-items: center; gap: 10px; }
.pt-token span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; color: var(--muted); }
.pt-token strong { color: var(--text); margin-right: 6px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
.page-link { font-weight: 600; color: var(--accent-ink); padding: 9px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); transition: .18s; }
.page-link:hover { border-color: var(--accent); }
.page-info { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 10px 0 60px; max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent-ink); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { color: var(--muted); padding-bottom: 18px; }

/* ---------- Post page ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 34px 0 60px; align-items: start; }
.post-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.post-hero { padding: 26px; }
.post-hero-token { display: flex; gap: 18px; align-items: flex-start; }
.post-hero-token > div:nth-child(2) { flex: 1; min-width: 0; }
.post-hero h1 { font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.02em; line-height: 1.25; }
.post-hero h1 .sym { color: var(--muted); font-weight: 600; font-size: .75em; }
.post-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.chain-tag { font-size: .78rem; font-weight: 700; color: var(--accent2-ink); background: color-mix(in srgb, var(--accent2) 12%, transparent); padding: 4px 11px; border-radius: 100px; }
.addr { font-size: .78rem; color: var(--muted); background: var(--input-bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.addr:hover { color: var(--accent-ink); }
.post-socials { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.post-socials a { font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); padding: 4px 12px; border-radius: 100px; transition: .15s; }
.post-socials a:hover { color: var(--accent-ink); border-color: var(--accent); }

.score-gauge { position: relative; flex-shrink: 0; }
.gauge-track { fill: none; stroke: var(--bg-soft); stroke-width: 10; }
.gauge-fill { fill: none; stroke: var(--sc); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--sc) 55%, transparent)); }
.gauge-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge-num b { font-family: 'Sora'; font-size: 1.7rem; color: var(--sc); display: block; line-height: 1; }
.gauge-num span { font-size: .7rem; color: var(--muted); }

.post-hero-grade { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.check-counts { display: flex; gap: 12px; font-size: .84rem; font-style: normal; }
.cc { font-style: normal; font-weight: 600; }
.cc.pass { color: #22c07a; } .cc.warn { color: #e8b93c; } .cc.fail { color: #ef4d5f; }
.rescan-btn { margin-left: auto; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: .18s; }
.rescan-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.rescan-btn[disabled] { opacity: .6; cursor: wait; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.m-stat { padding: 16px 18px; }
.m-stat span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.m-stat b { font-family: 'Sora'; font-size: 1.12rem; letter-spacing: -.01em; }
.m-stat .chg { display: block; font-size: .8rem; font-style: normal; font-weight: 600; margin-top: 2px; }
.chg.up, .up-t { color: #22c07a; } .chg.down, .down-t { color: #ef4d5f; }

.checks-panel, .verdict-panel { padding: 24px 26px; }
.checks-panel h2, .verdict-panel h2 { font-size: 1.15rem; margin-bottom: 16px; }
.checks-list { list-style: none; display: flex; flex-direction: column; }
.check-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: 0; }
.check-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; font-weight: 700; }
.check-item.pass .check-ic { color: #22c07a; background: rgba(34,192,122,.12); }
.check-item.fail .check-ic { color: #ef4d5f; background: rgba(239,77,95,.12); }
.check-item.warn .check-ic { color: #e8b93c; background: rgba(232,185,60,.12); }
.check-item.info .check-ic { color: var(--muted); background: var(--bg-soft); }
.check-body strong { display: block; font-size: .95rem; }
.check-body span { color: var(--muted); font-size: .88rem; }
.pen { font-style: normal; font-weight: 600; font-size: .78rem; color: #ef4d5f; margin-left: 6px; }
.verdict-panel p { color: var(--text); }
.verdict-note { color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.sb-widget { padding: 0; overflow: hidden; }
.sb-widget h3 {
  display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  padding: 15px 18px 13px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), transparent);
}
.sb-widget h3::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); flex-shrink: 0; box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent); }
.sb-widget > *:not(h3) { margin: 14px 18px; }
.sb-widget > ul.sb-list { margin: 6px 10px 10px; }
.sb-list { list-style: none; display: flex; flex-direction: column; counter-reset: sbrank; }
.sb-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 11px; transition: .15s; }
.sb-list li a:hover { background: var(--panel-2); transform: translateX(2px); }
.sb-list.ranked li a::before {
  counter-increment: sbrank; content: counter(sbrank);
  font-family: 'Sora'; font-size: .72rem; font-weight: 800; color: var(--accent-ink);
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent); flex-shrink: 0;
}
.sb-list.ranked.risk li a::before { color: #ef4d5f; background: rgba(239,77,95,.1); }
.sb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-name b { font-size: .88rem; }
.sb-name i { font-style: normal; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: .15s; white-space: nowrap; }
.share-btn:hover { transform: translateY(-1px); }
.share-x:hover { background: #0f1419; color: #fff; border-color: #0f1419; }
.share-tg:hover { background: #2aabee; color: #fff; border-color: #2aabee; }
.share-cp:hover { border-color: var(--accent); color: var(--accent-ink); }
.embed-block { border-top: 1px dashed var(--border); padding-top: 14px; }
.embed-label { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.embed-code { width: 100%; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: .72rem; padding: 10px; resize: none; line-height: 1.5; }
.embed-code:focus { border-color: var(--accent); outline: none; }


/* ---------- Static pages ---------- */
.static-page { padding: 44px 0 70px; max-width: 820px; }
.page-content { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 36px 40px; box-shadow: var(--shadow); }
.page-content h1, .page-content h2 { letter-spacing: -.02em; margin-bottom: 14px; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { margin: 20px 0 8px; }
.page-content p, .page-content li { color: var(--muted); margin-bottom: 12px; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content a { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 46px 20px 30px; }
.footer-brand { font-family: 'Sora'; font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
html[data-theme="light"] .footer-brand { color: var(--footer-text); filter: brightness(.6); }
.footer-about p { font-size: .9rem; opacity: .85; max-width: 380px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; opacity: .7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: .9rem; }
.footer-col a { opacity: .85; transition: .15s; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-chains li { opacity: .75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 26px; border-top: 1px solid rgba(255,255,255,.07); font-size: .84rem; opacity: .75; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--header-bg); padding: 12px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); z-index: 55;
  }
  .main-nav.open { display: flex; }
  .nav-burger { display: flex; }
  .header-inner { position: relative; }
  .hero { padding: 40px 0 30px; }
  .scan-box { flex-direction: column; gap: 8px; }
  .scan-chain { padding: 13px 14px; width: 100%; }
  .scan-btn { padding: 14px; }
  .post-hero-token { flex-wrap: wrap; }
  .score-gauge { order: -1; margin: 0 auto; }
  .post-hero-token > div:nth-child(2) { flex-basis: 100%; text-align: center; }
  .post-hero-meta, .post-socials { justify-content: center; }
  .post-hero-token .coin-icon.xl { margin: 0 auto; order: -2; }
  .rescan-btn { margin-left: 0; width: 100%; }
  .pr-stats { display: none; }
  .pr-score { min-width: auto; }
  .score-bar { width: 56px; }
  .page-content { padding: 26px 22px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============ Brand logo ============ */
.brand-logo { height: 38px; width: auto; max-width: 190px; object-fit: contain; display: block; }
@media (max-width: 700px) { .brand-logo { height: 32px; max-width: 150px; } }

/* ============ Scan Style 2: chain chips ============ */
.scan-v2 { flex-direction: column; gap: 14px; padding: 22px; }
.chain-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chain-chip {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--muted); background: var(--input-bg); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 100px; transition: .16s;
}
.chain-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.chain-chip.on {
  color: var(--accent-ink); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.chain-chip.fixed { cursor: default; }
.scan-input.v2 {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; font-size: 1rem; text-align: center;
}
.scan-input.v2:focus { border-color: var(--accent); }
.scan-btn.v2 { width: 100%; padding: 16px; font-size: 1.02rem; border-radius: 12px; }

/* ============ Scan Style 3: terminal ============ */
.scan-v3 { flex-direction: column; padding: 0; overflow: hidden; position: relative; text-align: left; }
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ef4d5f; } .term-dot.y { background: #e8b93c; } .term-dot.g { background: #22c07a; }
.term-title { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--muted); margin-left: 6px; }
.term-chain {
  margin-left: auto; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; font-weight: 600;
  background: var(--input-bg); color: var(--accent-ink); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; cursor: pointer;
}
.term-chain.fixed { cursor: default; }
.term-body { display: flex; align-items: center; gap: 10px; padding: 20px 18px; }
.term-prompt { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--accent-ink); font-size: 1.1rem; }
.scan-input.v3 {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--text);
  font-family: ui-monospace, Menlo, monospace; font-size: .95rem; padding: 8px 0; min-width: 0;
}
.scan-input.v3::placeholder { color: var(--muted); opacity: .6; }
.scan-btn.v3 { font-family: ui-monospace, Menlo, monospace; font-size: .84rem; letter-spacing: .08em; padding: 11px 20px; border-radius: 9px; }
.term-scanline { height: 3px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent); background-size: 200% 100%; animation: scanmove 2.6s linear infinite; opacity: .8; }
@keyframes scanmove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ Trending strip ============ */
.trend-strip { display: flex; align-items: center; gap: 14px; padding-top: 24px; }
.trend-label {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-ink);
}
.trend-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.trend-scroll::-webkit-scrollbar { display: none; }
.trend-chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 14px 6px 7px; font-size: .84rem; transition: .16s; box-shadow: var(--shadow);
}
.trend-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.trend-chip img, .tc-fb { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.tc-fb { display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--accent-ink); }
.trend-chip b { font-weight: 700; }
.trend-chip span { font-family: 'Sora'; font-weight: 800; font-size: .8rem; }

/* ============ Post search ============ */
.section-head { justify-content: space-between; align-items: center; }
.section-head-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.post-search {
  display: flex; align-items: center; gap: 8px; position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 16px; min-width: 250px; transition: .16s; color: var(--muted);
}
.post-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.post-search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: .9rem; min-width: 0; }
.post-search input::placeholder { color: var(--muted); }
.ps-clear { font-size: 1.2rem; line-height: 1; color: var(--muted); padding: 0 2px; }
.ps-clear:hover { color: #ef4d5f; }
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: stretch; }
  .post-search { min-width: 0; }
  .trend-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scan-v3 .term-body { flex-wrap: wrap; }
  .scan-btn.v3 { width: 100%; }
}
