/* ============ 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; position: relative; }
.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: 2px; margin-left: auto; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: 72vw; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--header-text); opacity: .78; font-weight: 500; font-size: .87rem; padding: 7px 11px; border-radius: 9px; transition: .18s; white-space: nowrap; flex-shrink: 0; }
.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: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 13px; padding: 0 20px; transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 2px 10px -6px rgba(0,0,0,.15);
}
.faq-item:nth-child(4n+2) { border-left-color: var(--accent2); }
.faq-item:nth-child(4n+3) { border-left-color: #f0a63b; }
.faq-item:nth-child(4n+4) { border-left-color: #ef4d5f; }
.faq-item:hover { transform: translateX(3px); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 45%, transparent); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none; position: relative; padding-right: 36px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; font-weight: 700;
  color: var(--accent); width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent);
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.faq-item[open] summary::after { content: '\2013'; transform: translateY(-50%) rotate(180deg); }
.faq-item p { color: var(--muted); padding-bottom: 18px; line-height: 1.65; }

/* ---------- Post page ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 34px 0 60px; align-items: start; min-width: 0; }
.post-layout > * { min-width: 0; }
.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 .sb-ad-content { text-align: center; }
.sb-widget .sb-ad-content img, .sb-widget .sb-ad-content iframe, .sb-widget .sb-ad-content ins, .sb-widget .sb-ad-content > a {
  display: block; margin-left: auto; margin-right: auto; max-width: 100%;
}
.sb-widget .sb-ad-content script { display: none !important; }
.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%; }
}

/* ============================================
   Crypto Tools - mega menu, tool pages, calculators
   ============================================ */

/* ---------- Tools mega-menu ---------- */
.nav-dropdown { position: static; flex-shrink: 0; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; cursor: pointer;
  color: var(--header-text); opacity: .78; font-weight: 500; font-size: .87rem; padding: 7px 11px; border-radius: 9px;
  font-family: inherit; transition: .18s; white-space: nowrap; flex-shrink: 0;
}
.nav-dropdown-toggle:hover { opacity: 1; background: rgba(255,255,255,.07); }
.nav-dropdown-toggle svg { transition: transform .18s; }
.nav-mega {
  display: none; position: absolute; top: calc(100% + 10px); right: 16px; left: auto; z-index: 80;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 20px; gap: 22px 26px; grid-template-columns: repeat(5, minmax(130px, 1fr));
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto;
}
.nav-mega.open { display: grid; }
.nav-mega-col h5 {
  font-family: 'Sora'; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px; font-weight: 700;
}
.nav-mega-col { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-col a {
  color: var(--text); font-size: .89rem; padding: 7px 8px; border-radius: 8px; transition: .15s; display: block;
}
.nav-mega-col a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); }
@media (max-width: 900px) {
  .nav-mega { position: static; width: 100%; grid-template-columns: 1fr 1fr; margin-top: 8px; box-shadow: none; max-height: none; }
}
@media (max-width: 700px) {
  .main-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 6px; }
  .nav-mega { grid-template-columns: 1fr 1fr; }
}

/* ---------- Tool page hero ---------- */
.tool-hero { padding: 54px 0 30px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.tool-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 8px 0 10px; letter-spacing: -.02em; }
.tool-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 14px; border-radius: 100px;
}
.tool-hero .hero-sub { max-width: 620px; margin: 0 auto; color: var(--muted); }
.tool-section { padding: 30px 0 60px; }
.section-title { font-family: 'Sora'; font-size: 1.25rem; margin: 36px 0 6px; }
.section-sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

/* ---------- Chain tabs ---------- */
.chain-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chain-tab {
  font-size: .84rem; font-weight: 600; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); transition: .15s;
}
.chain-tab:hover { border-color: var(--accent); color: var(--text); }
.chain-tab.on { background: var(--accent); border-color: var(--accent); color: #05130d; }

/* ---------- Table toolbar + inputs ---------- */
.table-toolbar { margin-bottom: 16px; }
.tool-input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-size: .92rem; outline: none; transition: .15s; font-family: inherit;
}
.tool-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell img { border-radius: 50%; flex-shrink: 0; }
.coin-name { font-weight: 600; }
.coin-sym { font-size: .76rem; color: var(--muted); }
.muted { color: var(--muted); }
.pct.up { color: #22c07a; font-weight: 600; }
.pct.down { color: #ef4d5f; font-weight: 600; }
.pct.flat { color: var(--muted); font-weight: 600; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.page-btn { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--panel); font-weight: 600; font-size: .86rem; transition: .15s; }
.page-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.page-current { color: var(--muted); font-size: .86rem; }

.empty-state {
  text-align: center; padding: 44px 20px; color: var(--muted); background: var(--panel);
  border: 1px dashed var(--border); border-radius: 14px; font-size: .92rem;
}

.tool-seo-block { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.tool-seo-block h2 { font-size: 1.15rem; margin-bottom: 10px; }
.tool-seo-block p { color: var(--muted); font-size: .93rem; max-width: 780px; }

.info-banner {
  background: color-mix(in srgb, var(--accent2) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent2) 30%, var(--border));
  border-radius: 14px; padding: 16px 20px; font-size: .88rem; color: var(--text); margin-bottom: 22px; line-height: 1.6;
}
.info-banner strong { color: var(--accent2-ink); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.badge-hot { background: color-mix(in srgb, #ef4d5f 16%, transparent); color: #ef4d5f; }
.badge-info { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }

/* ---------- Radar cards ---------- */
.radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 8px; }
.radar-card {
  display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow); transition: .15s;
}
.radar-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.radar-card img { border-radius: 50%; flex-shrink: 0; }

/* ---------- Calculators ---------- */
.calc-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.field-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.field-row label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 18px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .tool-input { flex: 1; }
.mini-btn {
  white-space: nowrap; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2);
  color: var(--accent-ink); font-weight: 600; font-size: .82rem; transition: .15s;
}
.mini-btn:hover { border-color: var(--accent); }

.calc-result { margin-top: 18px; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: .92rem;
}
.calc-row:last-child { border-bottom: 0; }
.calc-row span { color: var(--muted); }
.calc-highlight { font-size: 1.02rem; }
.calc-highlight strong { font-size: 1.15rem; }

/* Converter specific */
.converter-card { max-width: 560px; }
.conv-row { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.conv-amount { max-width: 140px; }
.conv-select { flex: 1; }
.swap-btn {
  display: block; margin: 8px auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--accent-ink); font-size: 1.1rem; cursor: pointer; transition: .18s;
}
.swap-btn:hover { transform: rotate(180deg); border-color: var(--accent); }
.conv-result {
  flex: 1; font-family: 'Sora'; font-weight: 800; font-size: 1.35rem; padding: 12px 14px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; color: var(--accent-ink);
}
.conv-status { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.conv-change { margin-top: 4px; font-size: .9rem; }

/* ---------- Fear & Greed gauge ---------- */
.fg-wrap { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; margin-bottom: 20px; }
.fg-gauge {
  position: relative; width: 180px; height: 180px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: conic-gradient(var(--fg-color) calc(var(--fg-val) * 1%), color-mix(in srgb, var(--border) 60%, transparent) 0);
  flex-shrink: 0;
}
.fg-gauge::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--panel); }
.fg-num { position: relative; font-family: 'Sora'; font-size: 2.4rem; font-weight: 800; color: var(--fg-color); }
.fg-label { position: relative; font-size: .82rem; font-weight: 700; color: var(--fg-color); text-transform: uppercase; letter-spacing: .04em; }
.fg-meta p { margin-bottom: 6px; font-size: .9rem; }

/* ---------- Stat grid (dominance / halving) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-value { font-family: 'Sora'; font-size: 1.5rem; font-weight: 800; }

/* Dominance bars */
.dom-bars { display: flex; flex-direction: column; gap: 10px; }
.dom-row { display: flex; align-items: center; gap: 12px; }
.dom-sym { width: 56px; font-weight: 700; font-size: .84rem; flex-shrink: 0; }
.dom-track { flex: 1; height: 9px; border-radius: 100px; background: var(--panel-2); overflow: hidden; }
.dom-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 100px; }
.dom-pct { width: 60px; text-align: right; font-size: .84rem; color: var(--muted); flex-shrink: 0; }

/* Wallet tools QR */
.qr-wrap { margin-top: 20px; text-align: center; }
.qr-wrap #waQr { display: inline-block; padding: 14px; background: #fff; border-radius: 14px; }

@media (max-width: 700px) {
  .fg-wrap { flex-direction: column; text-align: center; }
  .conv-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Tools hub ---------- */
.tool-card { text-decoration: none; align-items: flex-start; }
.tool-card-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.tool-card-desc { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.tools-hub-grid { margin-bottom: 8px; }
.nav-mega-footer { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.nav-mega-footer a { font-weight: 700; color: var(--accent-ink); }

/* ---------- Ad slots ---------- */
.ad-slot { text-align: center; margin: 18px auto; }
.ad-slot-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ad-slot-728 { max-width: 728px; }
.ad-slot-300 { max-width: 300px; }
.ad-slot-inner { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-728-wrap { padding-top: 14px; }

/* ---------- Clickable coin cells (link to scanner) ---------- */
a.coin-cell, a.radar-card { text-decoration: none; color: inherit; cursor: pointer; }
a.coin-cell:hover .coin-name, a.radar-card:hover .coin-name { color: var(--accent-ink); }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.load-more-btn {
  padding: 13px 32px; border-radius: 100px; border: none; cursor: pointer; font-weight: 700; font-size: .95rem;
  color: #05130d; background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .18s, box-shadow .18s; letter-spacing: .01em;
}
.load-more-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent2) 60%, transparent); }
.load-more-btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ---------- Crypto news grid (colorful cards, click-to-expand summary) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.news-card {
  border-radius: 16px; border: 1px solid var(--border); background: var(--panel);
  box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--news-accent);
  transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--news-accent) 45%, transparent); }
.news-card.open { box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--news-accent) 55%, transparent); }
.news-card-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer; padding: 18px 18px 16px; font-family: inherit; color: var(--text);
}
.news-source-badge {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 100px;
  background: color-mix(in srgb, var(--news-accent) 18%, transparent); color: var(--news-accent);
}
.news-card .news-title { font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--text); }
.news-card .news-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); width: 100%; }
.news-caret { margin-left: auto; transition: transform .18s; color: var(--news-accent); font-weight: 700; }
.news-card.open .news-caret { transform: rotate(180deg); }
.news-card-body { padding: 0 18px 18px; border-top: 1px dashed var(--border); }
.news-card-body p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 14px 0 12px; }
.news-readmore {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem;
  color: var(--news-accent); text-decoration: none;
}
.news-readmore:hover { text-decoration: underline; }

.footer-more-link { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--accent-ink); text-decoration: none; }
.footer-more-link:hover { text-decoration: underline; }

/* ---------- Guide / blog article page ---------- */
.article-section { max-width: 100%; }
.guide-article { max-width: 780px; margin: 0 auto; }
.guide-article h2 { font-size: 1.35rem; margin: 36px 0 14px; letter-spacing: -.01em; scroll-margin-top: 90px; }
.guide-article h2:first-child { margin-top: 0; }
.guide-article p { color: var(--text); opacity: .92; line-height: 1.75; margin-bottom: 14px; font-size: .97rem; }
.guide-article ul, .guide-article ol { margin: 0 0 18px 22px; color: var(--text); opacity: .92; line-height: 1.75; font-size: .97rem; }
.guide-article li { margin-bottom: 8px; }
.guide-article a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.guide-cta {
  max-width: 780px; margin: 44px auto 0; padding: 30px; text-align: center; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), color-mix(in srgb, var(--accent2) 10%, var(--panel)));
  border: 1px solid var(--border);
}
.guide-cta h3 { font-size: 1.2rem; margin-bottom: 8px; }
.guide-cta p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Narrow nav dropdown (Guide menu) ---------- */
.nav-mega-narrow { grid-template-columns: 1fr !important; min-width: 200px; width: auto !important; padding: 10px !important; }
.nav-mega-narrow .nav-mega-col { gap: 2px; }
.nav-mega-narrow a { white-space: nowrap; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s, box-shadow .18s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--accent) 45%, transparent); }
.blog-card-img { height: 160px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--panel-2)), color-mix(in srgb, var(--accent2) 14%, var(--panel-2))); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-fallback { font-size: 2.4rem; opacity: .7; }
.blog-card-body { padding: 18px 20px 20px; }
.blog-card-date { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.blog-card-excerpt { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.blog-article { padding: 28px 30px; min-width: 0; box-sizing: border-box; overflow-x: hidden; }
.blog-cover { width: 100%; height: auto; border-radius: 14px; margin-bottom: 20px; display: block; }
.blog-content h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.blog-content h2:first-child { margin-top: 0; }
.blog-content h2, .blog-content h3, .blog-content h4 { scroll-margin-top: 86px; }
html { scroll-behavior: smooth; }

/* ---------- Table of Contents (inserted via the blog editor) ---------- */
.toc-box {
  margin: 24px 0; padding: 20px 24px; border-radius: 16px; background: var(--panel-2, var(--panel));
  border: 1px solid var(--border);
}
.toc-box .toc-title { margin: 0 0 12px; font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.toc-box ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.toc-box li { font-size: .92rem; }
.toc-box a { color: var(--text); text-decoration: none; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
.toc-box a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Blog share bar ---------- */
.blog-share-bar {
  margin-top: 34px; padding: 30px 28px; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), color-mix(in srgb, var(--accent2) 11%, var(--panel)));
  border: 1px solid var(--border);
}
.blog-share-bar::before {
  content: ''; position: absolute; top: -60%; right: -10%; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none;
}
.blog-share-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; position: relative; }
.blog-share-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 65%, transparent);
}
.blog-share-label { display: block; font-size: 1.08rem; font-weight: 800; color: var(--text); }
.blog-share-sub { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.blog-share-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 10px; position: relative; }
.share-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; width: 100%; justify-self: center; cursor: pointer; border: none; background: none; font-family: inherit;
}
.sc-copy .share-chip-circle { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.sc-copy.copied .share-chip-circle { background: linear-gradient(135deg, #34e58a, #1da851); }
.sc-copy.copied .share-chip-name { color: var(--text); }
.share-chip-circle {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.35); transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, filter .22s;
}
.share-chip-name { font-size: .72rem; font-weight: 700; color: var(--muted); transition: color .18s; }
.share-chip:hover .share-chip-circle { transform: translateY(-5px) scale(1.1) rotate(-4deg); filter: brightness(1.12); box-shadow: 0 14px 26px -6px rgba(0,0,0,.5); }
.share-chip:hover .share-chip-name { color: var(--text); }
.sc-whatsapp .share-chip-circle { background: linear-gradient(135deg, #34e58a, #1da851); }
.sc-x .share-chip-circle { background: linear-gradient(135deg, #3a3a3a, #000); }
.sc-facebook .share-chip-circle { background: linear-gradient(135deg, #4a9fff, #1359c9); }
.sc-reddit .share-chip-circle { background: linear-gradient(135deg, #ff7a45, #e03d00); }
.sc-linkedin .share-chip-circle { background: linear-gradient(135deg, #2f8fe0, #084a91); }
.sc-pinterest .share-chip-circle { background: linear-gradient(135deg, #ff4d6a, #c2001a); }
.sc-telegram .share-chip-circle { background: linear-gradient(135deg, #5fc4f2, #1489c8); }
.sc-vk .share-chip-circle { background: linear-gradient(135deg, #3d9bff, #0056d6); }
.sc-line .share-chip-circle { background: linear-gradient(135deg, #3ce383, #049a4a); }

/* ---------- Custom HTML widget centered in main content ---------- */
.content-widget { margin: 26px 0; text-align: center; }
.content-widget h3 { margin: 0 0 14px; font-size: .95rem; }
.content-widget > *:not(h3) { display: inline-block; max-width: 100%; }
.content-widget script { display: none !important; }
.content-widget img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Blog keyword tags ---------- */
.blog-tags { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--border); }
.blog-tags-label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.blog-tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); transition: transform .18s, background .18s, border-color .18s;
}
.blog-tag::before { content: '#'; color: var(--accent); font-weight: 800; }
.blog-tag:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 20%, var(--panel)); border-color: var(--accent); }

/* ---------- Blog mobile fixes (prevent horizontal page overflow) ---------- */
@media (max-width: 700px) {
  .blog-article { padding: 20px 16px; }
  .blog-cover { max-width: 100%; }
  .blog-share-bar { padding: 20px 16px; margin-left: -4px; margin-right: -4px; }
  .share-chip-circle { width: 46px; height: 46px; }
  .share-chip-circle svg { width: 18px; height: 18px; }
  .share-chip-name { font-size: .64rem; }
  .blog-share-buttons { gap: 16px 6px; }
  html, body { overflow-x: hidden; }
}

/* ---------- Category sidebar widget ---------- */
.category-list li a { justify-content: space-between; }
.category-list .sb-name { flex: 1; }
