/* ═══════════════════════════════════════════════════════════════════
   ChainLens — Core Styles v3.2
   Professional crypto investigation tool — dark, data-dense, trustworthy
   Mobile-first responsive · No duplicates · Production-ready
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Backgrounds (darkest → lightest) */
  --bg0: #060710;
  --bg1: #0b0c14;
  --bg2: #10111a;
  --bg3: #181924;
  --bg4: #20212e;
  /* Borders */
  --brd: #282a3c;
  --brd2: #1c1d2e;
  /* Text (brightest → dimmest) */
  --t0: #eef0f6;
  --t1: #c4c6d6;
  --t2: #888aa4;
  --t3: #555770;
  /* Accent */
  --acc: #9945FF;
  --acc-s: rgba(153,69,255,.09);
  --acc-m: rgba(153,69,255,.25);
  /* Semantic */
  --grn: #00e87b;
  --grn-s: rgba(0,232,123,.08);
  --grn-m: rgba(0,232,123,.22);
  --red: #ff3d54;
  --red-s: rgba(255,61,84,.08);
  --red-m: rgba(255,61,84,.22);
  --yel: #ffbf00;
  --yel-s: rgba(255,191,0,.08);
  --yel-m: rgba(255,191,0,.22);
  --org: #F59E0B;
  --blu: #3b9eff;
  --blu-s: rgba(59,158,255,.08);
  --pur: #b44dff;
  --cyn: #00d4ff;
  /* Chain (overridden per chain) */
  --chain-color: #9945FF;
  /* Typography */
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg0);
  color: var(--t0);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Subtle noise texture for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .02;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app { position: relative; z-index: 1; }
a { color: var(--blu); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyn); text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brd); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.hdr {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--brd2);
  padding: .6rem 1rem;
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(6,7,16,.88);
}
.hdr-inner {
  display: flex; align-items: center; gap: .75rem;
  max-width: 1400px; margin: 0 auto; flex-wrap: wrap;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc), var(--grn) 50%));
  border-radius: 10px; display: grid; place-items: center;
  font-size: 1rem; color: #fff;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.3) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}
@keyframes logoShine { 0%,100% { transform: translateX(-120%); } 50% { transform: translateX(120%); } }

.logo h1 {
  font: 800 1.15rem/1.1 var(--sans); letter-spacing: -.03em; margin: 0;
  background: linear-gradient(135deg, #fff, var(--t1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo h1 span { -webkit-text-fill-color: var(--acc); }
.logo small {
  display: block; font: 500 .52rem/1 var(--mono);
  color: var(--t3); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px;
}

/* About link */
.about-link {
  font: 500 .72rem/1 var(--sans) !important; color: var(--t2) !important;
  text-decoration: none !important;
  padding: .35rem .7rem; border: 1px solid var(--brd2); border-radius: var(--radius-xs);
  transition: all .2s; margin-left: auto;
}
.about-link:hover { color: var(--t0) !important; border-color: var(--acc) !important; }

/* Header stats */
.hdr-stats { display: flex; gap: 1rem; }
.hs { text-align: center; }
.hs-v { font: 700 .85rem/1 var(--mono); color: var(--t0); }
.hs-l { font: 400 .52rem/1 var(--mono); color: var(--t3); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* Chain pills */
.chain-pills {
  display: flex; background: var(--bg2); border-radius: 10px;
  padding: 3px; border: 1px solid var(--brd2); gap: 1px; overflow-x: auto;
  scrollbar-width: none;
}
.chain-pills::-webkit-scrollbar { display: none; }
.cp {
  padding: 5px 11px; border: none; background: 0 0; color: var(--t3);
  font: 500 .7rem/1 var(--mono); border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.cp.active { background: var(--bg4); color: var(--t0); box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.cp:hover:not(.active) { color: var(--t1); }
.cd { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.chain-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  font: 600 .58rem/1 var(--mono);
  background: color-mix(in srgb, var(--chain-color) 12%, transparent);
  color: var(--chain-color); border: 1px solid color-mix(in srgb, var(--chain-color) 25%, transparent);
}
.chain-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--chain-color); }

/* ═══════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════ */
.search-area { padding: 1.25rem 1rem; }
.search-box { position: relative; max-width: 700px; margin: 0 auto; }
.search-input {
  width: 100%; padding: .9rem 6.5rem .9rem 2.8rem;
  background: var(--bg2); border: 1.5px solid var(--brd); border-radius: var(--radius);
  color: var(--t0); font: 400 .82rem/1.4 var(--mono); outline: none;
  transition: border .25s, box-shadow .25s;
}
.search-input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-s), 0 8px 40px rgba(0,0,0,.5);
}
.search-input::placeholder { color: var(--t3); }
.s-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 1.05rem; }
.scan-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc), var(--grn) 40%));
  border: none; border-radius: 9px; color: #fff; font: 700 .78rem/1 var(--sans);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; gap: .35rem;
}
.scan-btn:hover { transform: translateY(-50%) scale(1.03); box-shadow: 0 4px 24px var(--acc-m); }
.scan-btn:disabled { opacity: .35; cursor: not-allowed; transform: translateY(-50%); }

/* ═══════════════════════════════════════════
   LAYOUT — Feed on desktop sidebar, after content on mobile
   ═══════════════════════════════════════════ */
.main-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 1rem;
  padding: 0 1rem 3rem; min-height: 75vh; max-width: 1400px; margin: 0 auto;
}
.analysis-panel { order: 1; min-width: 0; }
.feed-panel { order: 2; }

/* ═══════════════════════════════════════════
   FEED PANEL
   ═══════════════════════════════════════════ */
.feed-panel {
  background: var(--bg1); border: 1px solid var(--brd2); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: calc(100vh - 140px); position: sticky; top: 80px;
}
.feed-hdr {
  padding: .75rem 1rem; border-bottom: 1px solid var(--brd2);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.feed-title { font: 700 .82rem/1 var(--sans); display: flex; align-items: center; gap: .4rem; }
.feed-title i { color: var(--acc); }
.feed-r { display: flex; align-items: center; gap: .3rem; font: 500 .6rem/1 var(--mono); color: var(--grn); }
.live-dot { width: 5px; height: 5px; background: var(--grn); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.feed-body { overflow-y: auto; flex: 1; padding: .4rem; }
.feed-loading,.feed-empty,.fe {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 2rem; color: var(--t3); font: 400 .75rem/1 var(--mono);
}

/* Feed token item */
.tk {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem;
  border-radius: var(--radius-sm); cursor: pointer; transition: all .15s;
  border: 1px solid transparent; margin-bottom: 2px;
}
.tk:hover { background: var(--bg3); border-color: var(--brd); }
.tk-sc {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font: 700 .75rem/1 var(--mono); flex-shrink: 0;
}
.tk-sc.sg { background: var(--grn-s); color: var(--grn); border: 1px solid var(--grn-m); }
.tk-sc.sw { background: var(--yel-s); color: var(--yel); border: 1px solid var(--yel-m); }
.tk-sc.sr { background: var(--red-s); color: var(--red); border: 1px solid var(--red-m); }
.tk-sc.sl { background: var(--bg3); color: var(--t3); border: 1px solid var(--brd); }
.tk-i { flex: 1; min-width: 0; }
.tk-n { font: 600 .76rem/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-a { font: 400 .58rem/1 var(--mono); color: var(--t3); margin-top: 2px; }
.tk-r { text-align: right; flex-shrink: 0; }
.tk-p { font: 600 .7rem/1 var(--mono); color: var(--t1); }
.tk-l { font: 400 .58rem/1 var(--mono); color: var(--t3); margin-top: 2px; }
.fbr { color: var(--red); font-size: .6rem; }

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3.5rem 1.5rem; text-align: center;
}
.empty-main .e-icon { font-size: 3rem; opacity: .12; margin-bottom: 1.5rem; }
.empty-main h2 { font: 700 1.25rem/1.3 var(--sans); margin-bottom: .5rem; }
.empty-main p { font: 400 .82rem/1.5 var(--sans); color: var(--t2); max-width: 440px; }
.ex-chips { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: .75rem; }
.ex-chip {
  padding: .3rem .65rem; background: var(--bg3); border: 1px solid var(--brd);
  border-radius: var(--radius-sm); font: 500 .68rem/1 var(--mono); color: var(--t2);
  cursor: pointer; transition: all .15s;
}
.ex-chip:hover { border-color: var(--acc); color: var(--acc); }

/* Feature cards (landing page) */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1.5rem; max-width: 700px; }
.feature-card {
  display: flex; align-items: flex-start; gap: .7rem; padding: .85rem;
  background: var(--bg1); border: 1px solid var(--brd2); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--acc-m); transform: translateY(-1px); }
.feature-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--acc-s); color: var(--fc, var(--acc));
  border: 1px solid var(--acc-m);
}
.feature-text { min-width: 0; }
.feature-text strong { display: block; font: 600 .75rem/1.2 var(--sans); color: var(--t0); margin-bottom: 3px; }
.feature-text span { font: 400 .66rem/1.4 var(--sans); color: var(--t2); }

/* Overview grid: score left, patterns right on desktop */
.overview-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; margin-bottom: 1rem; }
.overview-left { display: flex; flex-direction: column; gap: .75rem; }
.overview-right { }

/* ═══════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════ */
.results { display: none; }
.results.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Token Header (rendered by JS) */
.tok-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.tok-img {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--brd); overflow: hidden;
  display: grid; place-items: center; font-size: 1.5rem; background: var(--bg3); flex-shrink: 0;
}
.tok-img img { width: 100%; height: 100%; object-fit: cover; }
.tok-title { flex: 1; min-width: 0; }
.tok-title h2 { font: 800 1.25rem/1.2 var(--sans); letter-spacing: -.02em; margin: 0; }
.tok-title .sym { font: 400 .75rem/1 var(--mono); color: var(--t2); }
.tok-meta { font: 400 .68rem/1 var(--mono); color: var(--t3); margin-top: 4px; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tok-desc { font: 400 .72rem/1.5 var(--sans); color: var(--t2); margin-top: 6px; max-width: 520px; }
.tok-links { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.tl {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border: 1px solid var(--brd); border-radius: var(--radius-xs);
  font: 500 .58rem/1 var(--mono); color: var(--t2); text-decoration: none; transition: all .15s;
}
.tl:hover { border-color: var(--acc); color: var(--acc); }
.tok-price { text-align: right; }
.tok-price .price { font: 700 1.25rem/1 var(--mono); }
.tok-price .chg { font: 500 .78rem/1 var(--mono); margin-top: 3px; }
.chg.up { color: var(--grn); }
.chg.dn { color: var(--red); }

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tabs {
  display: flex; gap: 1px; background: var(--bg1); border-radius: var(--radius);
  padding: 3px; margin-bottom: 1rem; overflow-x: auto; border: 1px solid var(--brd2);
  list-style: none; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: .55rem .9rem; background: 0 0; border: none; border-radius: 9px;
  font: 500 .75rem/1 var(--sans); color: var(--t3); cursor: pointer;
  transition: all .15s; white-space: nowrap; display: flex; align-items: center; gap: .3rem;
}
.tab.active { background: var(--bg3); color: var(--acc); font-weight: 600; }
.tab:hover:not(.active) { color: var(--t1); background: var(--bg2); }
.tab-badge {
  font: 600 .55rem/1 var(--mono); padding: 1px 5px;
  background: var(--acc-s); color: var(--acc); border-radius: var(--radius-xs);
}
.tab span:not(.tab-badge) { display: none; }
.tp { display: none; }
.tp.active { display: block; animation: fadeUp .2s ease; }

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card-s {
  background: var(--bg1); border: 1px solid var(--brd2);
  border-radius: var(--radius); padding: 1.1rem;
}
.tab-h {
  font: 600 .85rem/1.3 var(--sans); color: var(--t0);
  display: flex; align-items: center; gap: 6px; margin: 0 0 .6rem;
}
.tab-h i { color: var(--acc); font-size: .9rem; }
.tab-h2 { font: 600 .75rem/1 var(--sans); color: var(--t1); margin: .85rem 0 .4rem; }
.tab-sub { font: 400 .7rem/1.4 var(--sans); color: var(--t3); margin: 0 0 .75rem; }

/* ═══════════════════════════════════════════
   SCORE RING
   ═══════════════════════════════════════════ */
.sc-wrap { display: flex; flex-direction: column; align-items: center; padding: 1rem 0; }
.sc-ring { position: relative; width: 150px; height: 150px; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sr-bg { fill: none; stroke: var(--bg3); stroke-width: 10; }
.sr-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke .3s; }
.sc-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-n { font: 800 2.6rem/1 var(--sans); }
.sc-of { font: 400 .6rem/1 var(--mono); color: var(--t3); letter-spacing: .1em; margin-top: .2rem; }

/* Verdict */
.verdict { margin-top: .6rem; padding: .4rem 1rem; border-radius: var(--radius-sm); font: 700 .78rem/1 var(--sans); text-align: center; }
.v-safe { background: var(--grn); color: #000; }
.v-warn { background: var(--yel); color: #000; }
.v-risk { background: var(--org); color: #000; }
.v-danger { background: var(--red); color: #fff; }
.v-scam { background: var(--red); color: #fff; animation: pulseDanger 1.5s ease infinite; }
@keyframes pulseDanger { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.crit-note { font: 500 .6rem/1 var(--mono); color: var(--red); margin-top: 6px; text-align: center; }
.data-warn { font: 500 .62rem/1.3 var(--sans); color: var(--yel); margin-top: 6px; text-align: center; padding: .35rem .6rem; background: var(--yel-s); border: 1px solid var(--yel-m); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: .3rem; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Narrative */
.narrative {
  margin: .75rem auto 0; padding: .8rem 1rem; max-width: 540px;
  background: var(--bg2); border: 1px solid var(--brd2); border-radius: var(--radius-sm);
  font: 400 .78rem/1.6 var(--sans); color: var(--t1); text-align: center;
  border-left: 3px solid var(--acc); position: relative;
}
.narrative::before { content: '"'; position: absolute; left: 8px; top: 0; font-size: 2rem; color: var(--acc); opacity: .2; line-height: 1; }

/* Checks count */
.checks-count {
  margin-top: .4rem; font: 500 .68rem/1 var(--mono); color: var(--t3); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
}
.checks-count i { color: var(--grn); font-size: .75rem; }

/* ═══════════════════════════════════════════
   SCORE BREAKDOWN
   ═══════════════════════════════════════════ */
.bd-row { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--brd2); }
.bd-row:last-child { border-bottom: none; }
.bd-n { font: 500 .66rem/1 var(--sans); color: var(--t2); width: 85px; flex-shrink: 0; }
.bd-bar { flex: 1; height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.bd-v { font: 700 .66rem/1 var(--mono); width: 36px; text-align: right; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   RISK ITEMS
   ═══════════════════════════════════════════ */
.ri {
  display: flex; gap: .6rem; padding: .65rem .75rem; margin-bottom: .35rem;
  background: var(--bg2); border-radius: var(--radius-sm);
  border-left: 3px solid transparent; align-items: flex-start;
  transition: background .15s;
}
.ri:hover { background: var(--bg3); }
.ri i { flex-shrink: 0; margin-top: 1px; font-size: .85rem; }
.ri-t { font: 600 .76rem/1.3 var(--sans); color: var(--t0); }
.ri-d { font: 400 .68rem/1.4 var(--sans); color: var(--t2); margin-top: 2px; word-break: break-word; }
/* Severity colors */
.ri.danger { border-left-color: var(--red); background: var(--red-s); }
.ri.danger i { color: var(--red); }
.ri.warning { border-left-color: var(--yel); background: var(--yel-s); }
.ri.warning i { color: var(--yel); }
.ri.good { border-left-color: var(--grn); background: var(--grn-s); }
.ri.good i { color: var(--grn); }

/* ═══════════════════════════════════════════
   SCAM PATTERN CARDS
   ═══════════════════════════════════════════ */
.sp-card {
  border: 1px solid var(--brd); border-radius: var(--radius-sm);
  padding: .75rem; margin-bottom: .5rem; transition: border-color .2s;
}
.sp-fail { border-color: var(--red-m); background: rgba(255,61,84,.03); }
.sp-pass { border-color: var(--grn-m); background: rgba(0,232,123,.02); }
.sp-hdr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-icon { font-size: 1.15rem; }
.sp-name { font: 600 .8rem/1 var(--sans); color: var(--t0); flex: 1; }
.sp-badge { padding: 3px 10px; border-radius: 20px; font: 700 .58rem/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.sp-b-fail { background: var(--red); color: #fff; }
.sp-b-pass { background: var(--grn); color: #000; }
.sp-ev { margin: .5rem 0 0; padding: 0; list-style: none; font: 400 .68rem/1.5 var(--mono); color: var(--t2); }
.sp-ev li::before { content: '→ '; color: var(--t3); }
.sp-conf { font: 500 .58rem/1 var(--mono); color: var(--t3); margin-top: 4px; }
.sp-conf.high { color: var(--red); }
.sp-conf.medium { color: var(--yel); }

/* ═══════════════════════════════════════════
   STATS / METRICS
   ═══════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.stat-c { background: var(--bg2); border-radius: var(--radius-sm); padding: .75rem; text-align: center; border: 1px solid var(--brd2); }
.stat-v { font: 700 1.1rem/1 var(--sans); }
.stat-l { font: 400 .58rem/1 var(--mono); color: var(--t3); text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.st-buy { border: 1px solid var(--grn-m); }
.st-buy .stat-v { color: var(--grn); }
.st-sell { border: 1px solid var(--red-m); }
.st-sell .stat-v { color: var(--red); }

/* Distribution bar */
.dbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: .5rem 0; }
.ds { transition: width .8s cubic-bezier(.4,0,.2,1); min-width: 2px; }
.dleg { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.dleg span { display: flex; align-items: center; gap: .3rem; font: 400 .66rem/1 var(--sans); color: var(--t2); }
.dot { width: 7px; height: 7px; border-radius: 2px; }

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th {
  padding: .5rem .65rem; font: 500 .6rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .06em; color: var(--t3);
  text-align: left; border-bottom: 1px solid var(--brd2); position: sticky; top: 0; background: var(--bg1);
}
.tbl td {
  padding: .5rem .65rem; font: 400 .72rem/1.3 var(--mono);
  border-bottom: 1px solid var(--brd2); vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg3); }
.addr { color: var(--blu); text-decoration: none; font: 400 .68rem/1 var(--mono); }
.addr:hover { text-decoration: underline; color: var(--cyn); }

/* Progress bars */
.pbar { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.pbar-f, .pf { height: 100%; border-radius: 3px; transition: width .6s ease; }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge-s {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: 1px 6px; border-radius: var(--radius-xs); font: 600 .58rem/1.3 var(--mono); white-space: nowrap;
}
.b-bot { background: var(--red-s); color: var(--red); }
.b-whale { background: var(--blu-s); color: var(--blu); }
.b-ins { background: rgba(180,77,255,.1); color: var(--pur); }
.b-bun { background: var(--yel-s); color: var(--yel); }
.b-ok { background: var(--grn-s); color: var(--grn); }
.b-lp { background: rgba(255,136,0,.08); color: #ff8800; }
.badge-critical { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: var(--red); color: #fff; text-transform: uppercase; }
.badge-high { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: var(--yel); color: #000; text-transform: uppercase; }
.badge-low { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: var(--grn-m); color: var(--grn); text-transform: uppercase; }
.badge-lp { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: rgba(59,158,255,.12); color: var(--blu); text-transform: uppercase; display: inline-flex; align-items: center; gap: 3px; }
.badge-exchange { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: rgba(59,158,255,.12); color: var(--blu); display: inline-flex; align-items: center; gap: 3px; }
.badge-info { padding: 2px 7px; border-radius: var(--radius-xs); font: 700 .56rem/1.3 var(--mono); background: rgba(0,212,255,.1); color: var(--cyn); }

/* ═══════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════ */
.alert-s {
  padding: .65rem .8rem; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .4rem;
  font: 400 .75rem/1.4 var(--sans);
}
.alert-s.a-r { background: var(--red-s); border: 1px solid var(--red-m); color: var(--red); }
.alert-s.a-y { background: var(--yel-s); border: 1px solid var(--yel-m); color: var(--yel); }
.alert-s.a-g { background: var(--grn-s); border: 1px solid var(--grn-m); color: var(--grn); }
.alert-s i { margin-top: 1px; flex-shrink: 0; }
.alert-danger { display: flex; gap: 8px; padding: .6rem; border: 1px solid var(--red-m); border-radius: var(--radius-sm); background: var(--red-s); color: var(--t0); font: 400 .72rem/1.4 var(--sans); margin-bottom: .4rem; }
.alert-warning { display: flex; gap: 8px; padding: .6rem; border: 1px solid var(--yel-m); border-radius: var(--radius-sm); background: var(--yel-s); color: var(--t0); font: 400 .72rem/1.4 var(--sans); margin-bottom: .4rem; }

/* ═══════════════════════════════════════════
   EVIDENCE ROWS / TRADE ROWS
   ═══════════════════════════════════════════ */
.ev-row { display: flex; align-items: center; gap: 8px; padding: .35rem .5rem; border-bottom: 1px solid var(--brd2); font: 400 .7rem/1.4 var(--sans); }
.ev-row:last-child { border-bottom: none; }
.ev-val { font: 600 .7rem/1 var(--mono); color: var(--t0); min-width: 55px; }
.ev-desc { flex: 1; color: var(--t2); }
.tx-item { display: flex; align-items: center; gap: .5rem; padding: .5rem; border-radius: var(--radius-sm); margin-bottom: 2px; transition: background .1s; }
.tx-item:hover { background: var(--bg3); }
.tx-type { padding: 2px 7px; border-radius: var(--radius-xs); font: 600 .6rem/1 var(--mono); min-width: 36px; text-align: center; }
.tx-type.buy { background: var(--grn-s); color: var(--grn); }
.tx-type.sell { background: var(--red-s); color: var(--red); }

/* ═══════════════════════════════════════════
   LP / CLUSTERS / LINKS
   ═══════════════════════════════════════════ */
.lp-row {
  display: flex; align-items: center; gap: .5rem; padding: .6rem;
  background: var(--bg2); border-radius: var(--radius-sm); margin-bottom: .3rem; font: 400 .75rem/1.3 var(--sans);
}
.lp-row i { font-size: 1rem; }
.lp-ok i { color: var(--grn); }
.lp-bad { border: 1px solid var(--red-m); background: var(--red-s); }
.lp-bad i { color: var(--red); }

.cl-item { background: var(--bg2); border-radius: var(--radius-sm); padding: .65rem; margin-bottom: .35rem; border: 1px solid var(--brd2); }
.cl-hdr { font: 600 .72rem/1.3 var(--sans); margin-bottom: .3rem; display: flex; align-items: center; gap: .35rem; }
.cl-w { display: flex; align-items: center; gap: .3rem; padding: .25rem .45rem; background: var(--bg3); border-radius: var(--radius-xs); margin-bottom: 2px; font: 400 .65rem/1 var(--mono); }

.links-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px;
  border: 1px solid var(--brd); border-radius: var(--radius-sm);
  font: 500 .7rem/1 var(--sans); color: var(--t1); text-decoration: none; transition: all .15s;
}
.link-btn:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; background: var(--acc-s); }
.link-buy { background: var(--grn); color: #000; border-color: var(--grn); font-weight: 700; }
.link-buy:hover { background: #00d47e; color: #000; }
.pool-info { font: 400 .7rem/1.8 var(--mono); color: var(--t2); }

/* ═══════════════════════════════════════════
   SHARE BAR
   ═══════════════════════════════════════════ */
.share-bar {
  display: flex; align-items: center; gap: 5px; margin-bottom: .75rem;
  padding: .45rem .65rem; background: var(--bg1); border: 1px solid var(--brd2);
  border-radius: var(--radius-sm); flex-wrap: wrap;
}
.sh-btn {
  display: flex; align-items: center; gap: 4px; padding: 5px 9px;
  background: var(--bg3); border: 1px solid var(--brd); border-radius: var(--radius-xs);
  color: var(--t2); font: 500 .62rem/1 var(--mono); cursor: pointer; text-decoration: none; transition: all .15s;
}
.sh-btn:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.sh-score { margin-left: auto; font: 700 .72rem/1 var(--mono); }

/* Time filter bar */
.tf-bar { display: flex; align-items: center; gap: 3px; margin: .75rem 0 .5rem; flex-wrap: wrap; }
.tf-lbl { font: 500 .65rem/1 var(--mono); color: var(--t3); margin-right: 4px; }
.tf-btn {
  padding: 4px 9px; border: 1px solid var(--brd); border-radius: var(--radius-xs);
  font: 500 .6rem/1 var(--mono); color: var(--t2); cursor: pointer; background: transparent; transition: all .15s;
}
.tf-btn.active, .tf-btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-s); }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin: .5rem 0; }
.hm { aspect-ratio: 1; border-radius: 2px; min-height: 8px; }

/* ═══════════════════════════════════════════
   SCAN OVERLAY
   ═══════════════════════════════════════════ */
.scan-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(6,7,16,.9); z-index: 999; place-items: center;
  backdrop-filter: blur(16px);
}
.scan-overlay.on { display: grid; }
.ov-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.ov-spin {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--brd); position: relative;
  display: grid; place-items: center; font-size: 1.6rem; color: var(--acc);
}
.ov-spin::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--acc);
  animation: spin .8s linear infinite;
}
.ov-spin::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px solid transparent; border-bottom-color: var(--pur);
  animation: spin 1.2s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ov-label { font: 600 .82rem/1 var(--mono); color: var(--acc); }
.ov-sub { font: 400 .68rem/1 var(--mono); color: var(--t3); text-align: center; }

/* ═══════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════ */
.ad-slot { padding: 4px 0; text-align: center; position: relative; z-index: 1; overflow: hidden; }
.ad-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--bg1); border-top: 1px solid var(--brd2); padding: 3px 0; }

/* ═══════════════════════════════════════════
   FOOTER (EEAT / YMYL compliant)
   ═══════════════════════════════════════════ */
.ftr {
  padding: 1.5rem 1rem; border-top: 1px solid var(--brd2); margin-top: 2rem;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.ftr-main { text-align: center; margin-bottom: .75rem; }
.ftr-brand { display: block; font: 600 .75rem/1 var(--sans); color: var(--t1); margin-bottom: .3rem; }
.ftr-sources { display: block; font: 400 .6rem/1.3 var(--mono); color: var(--t3); }
.ftr-disclaimer {
  background: var(--bg2); border: 1px solid var(--brd2); border-radius: var(--radius-sm);
  padding: .75rem 1rem; margin-bottom: .75rem;
}
.ftr-disclaimer p { font: 400 .62rem/1.6 var(--sans); color: var(--t3); margin-bottom: .3rem; }
.ftr-disclaimer p:last-child { margin-bottom: 0; }
.ftr-disclaimer strong { color: var(--t2); }
.ftr-links {
  display: flex; justify-content: center; gap: 1rem; margin-bottom: .5rem;
}
.ftr-links a { font: 500 .68rem/1 var(--sans); color: var(--t2); text-decoration: none; }
.ftr-links a:hover { color: var(--acc); }
.ftr-copy { display: block; text-align: center; font: 400 .55rem/1 var(--mono); color: var(--t3); }

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.mt { margin-top: .75rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.small { font-size: .65rem; }
.muted { color: var(--t3); font: 400 .7rem/1.4 var(--sans); }
/* Grid: let Bootstrap handle .row/.col — only add missing utilities */
.g-2 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */
.about-content { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.about-content h2 { font: 700 1.3rem/1.3 var(--sans); color: var(--t0); margin: 2.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--brd2); display: flex; align-items: center; gap: .4rem; }
.about-content h2 i { color: var(--acc); font-size: 1.1rem; }
.about-content h3 { font: 600 1rem/1.3 var(--sans); color: var(--acc); margin: 1.5rem 0 .5rem; }
.about-content p, .about-content li { font: 400 .88rem/1.7 var(--sans); color: var(--t1); margin-bottom: .6rem; }
.about-content ul { padding-left: 1.2rem; margin-bottom: .75rem; }
.about-content li { margin-bottom: .25rem; }
.about-content a { color: var(--acc); }
.about-content strong { color: var(--t0); }
.hero-about { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero-about h1 { font: 800 1.8rem/1.2 var(--sans); color: var(--t0); margin-bottom: .5rem; }
.hero-about h1 span { color: var(--acc); }
.hero-about p { font: 400 .92rem/1.5 var(--sans); color: var(--t2); max-width: 580px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--acc) !important; font: 500 .8rem/1 var(--sans); }
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: .75rem 0; }
.api-card { background: var(--bg1); border: 1px solid var(--brd2); border-radius: var(--radius-sm); padding: .85rem; }
.api-card strong { display: block; color: var(--t0); margin-bottom: 3px; font-size: .82rem; }
.api-card span { font: 400 .72rem/1.4 var(--sans); color: var(--t2); }
.score-explain { display: grid; gap: .4rem; margin: .75rem 0; }
.se-row { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--brd2); background: var(--bg1); }
.se-score { font: 700 .78rem/1 var(--mono); width: 56px; text-align: center; padding: 4px 6px; border-radius: var(--radius-xs); flex-shrink: 0; }
.se-label { font: 600 .78rem/1.2 var(--sans); flex-shrink: 0; width: 120px; }
.se-desc { font: 400 .72rem/1.3 var(--sans); color: var(--t2); flex: 1; }
.faq-item { margin-bottom: 1.25rem; }
.faq-item h3 { display: flex; align-items: center; gap: .4rem; }
.faq-item h3 i { color: var(--acc); font-size: .8rem; }

/* ═══════════════════════════════════════════
   DONATE MODAL
   ═══════════════════════════════════════════ */
.donate-btn {
  font: 600 .7rem/1 var(--sans); color: var(--red) !important;
  background: var(--red-s); border: 1px solid var(--red-m); border-radius: var(--radius-xs);
  padding: .35rem .65rem; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: .3rem; white-space: nowrap;
}
.donate-btn:hover { background: var(--red-m); }
.donate-btn i { font-size: .65rem; }

.donate-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  place-items: center; padding: 1rem;
}
.donate-overlay.on { display: grid; }

.donate-modal {
  background: var(--bg1); border: 1px solid var(--brd); border-radius: 16px;
  padding: 1.5rem; width: 100%; max-width: 400px;
  animation: fadeUp .25s ease;
}
.dm-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dm-hdr h3 { font: 700 1rem/1.3 var(--sans); display: flex; align-items: center; gap: .4rem; }
.dm-hdr p { margin-top: .3rem; }
.dm-close {
  background: none; border: none; color: var(--t3); font-size: 1.1rem; cursor: pointer;
  padding: .3rem; border-radius: var(--radius-xs); transition: color .15s;
}
.dm-close:hover { color: var(--t0); }

.dm-tabs {
  display: flex; gap: 2px; background: var(--bg2); border-radius: var(--radius-sm);
  padding: 3px; margin-bottom: .75rem;
}
.dm-tab {
  flex: 1; padding: .45rem; border: none; border-radius: 6px; font: 600 .75rem/1 var(--mono);
  color: var(--t3); background: none; cursor: pointer; transition: all .15s; text-align: center;
}
.dm-tab.active { background: var(--bg4); color: var(--t0); }
.dm-tab:hover:not(.active) { color: var(--t1); }

.dm-amounts {
  display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.dm-amt {
  flex: 1; min-width: 55px; padding: .5rem .4rem; border: 1px solid var(--brd);
  border-radius: var(--radius-sm); background: var(--bg2); color: var(--t1);
  font: 600 .8rem/1 var(--mono); cursor: pointer; transition: all .15s; text-align: center;
}
.dm-amt.active { border-color: var(--acc); color: var(--acc); background: var(--acc-s); }
.dm-amt:hover:not(.active) { border-color: var(--t3); }
.dm-custom {
  display: flex; align-items: center; gap: 2px; flex: 1.2; min-width: 80px;
  background: var(--bg2); border: 1px solid var(--brd); border-radius: var(--radius-sm);
  padding: 0 .4rem; font: 600 .8rem/1 var(--mono); color: var(--t2);
}
.dm-custom input {
  background: none; border: none; color: var(--t0); font: 600 .8rem/1 var(--mono);
  width: 100%; padding: .5rem .2rem; outline: none;
}
.dm-custom input::placeholder { color: var(--t3); }

.dm-qr {
  display: flex; justify-content: center; padding: .75rem 0;
}
.dm-qr img { border-radius: var(--radius-sm); border: 2px solid var(--brd2); }

.dm-addr {
  display: flex; align-items: center; gap: .3rem; background: var(--bg2);
  border: 1px solid var(--brd2); border-radius: var(--radius-sm); padding: .4rem .6rem;
  margin-bottom: .75rem;
}
.dm-addr code {
  flex: 1; font: 400 .6rem/1.2 var(--mono); color: var(--t2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dm-addr button {
  background: none; border: none; color: var(--t3); cursor: pointer; font-size: .85rem;
  padding: .2rem; transition: color .15s;
}
.dm-addr button:hover { color: var(--acc); }

.dm-wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
  padding: .65rem; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc), var(--grn) 40%));
  border: none; border-radius: var(--radius-sm); color: #fff; font: 700 .82rem/1 var(--sans);
  cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.dm-wallet-btn:hover { opacity: .9; text-decoration: none; color: #fff; }

.dm-note {
  font: 400 .62rem/1.4 var(--sans); color: var(--t3); text-align: center; margin-top: .6rem;
}
.dm-security {
  display: flex; align-items: flex-start; gap: .4rem; margin-top: .6rem;
  padding: .5rem .65rem; background: var(--grn-s); border: 1px solid var(--grn-m);
  border-radius: var(--radius-sm); font: 400 .6rem/1.4 var(--sans); color: var(--grn);
}
.dm-security i { font-size: .75rem; margin-top: 1px; flex-shrink: 0; }
.dm-security strong { color: var(--t0); font-family: var(--mono); }
.dm-instructions {
  font: 400 .7rem/1.5 var(--sans); color: var(--t1);
  padding: .5rem .65rem; background: var(--bg2); border-radius: var(--radius-sm);
  margin-bottom: .75rem; text-align: center;
}
.dm-instructions strong { color: var(--acc); }
.dm-tokens {
  display: flex; gap: .4rem; justify-content: center; margin-bottom: .6rem;
}
.dm-token {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; background: var(--bg2); border: 1px solid var(--brd2);
  border-radius: 20px; font: 600 .7rem/1 var(--mono); color: var(--t1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }
  .analysis-panel { order: 1; }
  .feed-panel { order: 2; position: static; max-height: 350px; }
  .overview-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .hdr-inner { gap: .5rem; }
  .hdr-stats { display: none; }
  .logo small { display: none; }
  .about-link { font-size: .62rem !important; padding: .25rem .5rem !important; }
  .chain-pills { gap: 0; padding: 2px; }
  .cp { padding: 4px 8px; font-size: .62rem; gap: 3px; }
  .cd { width: 5px; height: 5px; }
  .search-input { padding: .75rem 5rem .75rem 2.4rem; font-size: .75rem; }
  .scan-btn { padding: .5rem .9rem; font-size: .7rem; }
  .s-icon { left: .75rem; }
  .main-grid { padding: 0 .5rem 3rem; gap: .75rem; }
  .card-s { padding: .85rem; }
  .tab span:not(.tab-badge) { display: none; }
  .tab { padding: .5rem .7rem; }
  .token-hdr, .tok-row { flex-direction: column; align-items: flex-start; }
  .tok-price { text-align: left; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; max-width: 100%; }
  .feature-card { padding: .7rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .bd-n { width: 70px; font-size: .6rem; }
  .empty-main { padding: 2rem 1rem; }
  .sc-ring { width: 120px; height: 120px; }
  .sc-n { font-size: 2rem; }
  .links-grid { gap: 5px; }
  .link-btn { padding: 7px 10px; font-size: .65rem; }
  body { padding-bottom: 50px; }
  .hero-about h1 { font-size: 1.4rem; }
  .se-label { width: 90px; font-size: .7rem; }
  .donate-btn { font-size: .6rem; padding: .25rem .5rem; }
  .donate-modal { padding: 1.1rem; }
}

/* Show tab labels on wider screens */
@media (min-width: 769px) {
  .tab span:not(.tab-badge) { display: inline; }
}

/* Ultra-wide: constrain content */
@media (min-width: 1600px) {
  .hdr-inner, .search-box { max-width: 1400px; }
}
