:root {
  color-scheme: dark;
  --bg: #080b0b;
  --panel: #101514;
  --panel-2: #151b19;
  --line: #25302c;
  --line-soft: #1b2421;
  --text: #f4f8f5;
  --muted: #8d9b95;
  --acid: #c8ff32;
  --acid-deep: #7ca600;
  --cyan: #76e6d4;
  --red: #ff6f75;
  --amber: #ffc857;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(200, 255, 50, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 50, .025) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 max(20px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 11, 11, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.brand small { color: var(--acid); border: 1px solid rgba(200,255,50,.3); padding: 2px 6px; border-radius: 4px; font-size: .63rem; letter-spacing: .12em; }
.brand-mark { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 5px; background: #0d120f; }
.brand-mark i { width: 4px; background: var(--acid); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 7px; } .brand-mark i:nth-child(2) { height: 12px; } .brand-mark i:nth-child(3) { height: 17px; }
.network-pill { margin-left: auto; color: #bdc8c3; font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: #0c100f; }
.network-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(200,255,50,.6); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #0c100f; display: grid; place-items: center; cursor: pointer; }
.icon-button svg, .search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-button.spinning svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sponsor-banner {
  max-width: 1400px;
  margin: 16px auto 0;
  min-height: 88px;
  padding: 15px 18px 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(118,230,212,.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 0%, rgba(118,230,212,.13), transparent 35%),
    linear-gradient(110deg, #101917, #0b1110 60%, #11180d);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.sponsor-copy { display: grid; gap: 3px; }
.sponsor-copy .sponsor-label { color: var(--cyan); font: 800 .62rem/1 ui-monospace, monospace; letter-spacing: .13em; }
.sponsor-copy strong { font-size: clamp(.95rem, 2vw, 1.2rem); letter-spacing: -.02em; }
.sponsor-copy small { color: var(--muted); font-size: .72rem; }
.sponsor-cta { flex: 0 0 auto; min-width: 180px; display: grid; gap: 2px; padding: 11px 14px; color: #11150d; background: var(--acid); border-radius: 10px; text-decoration: none; text-align: center; box-shadow: 0 0 26px rgba(200,255,50,.14); }
.sponsor-cta span { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sponsor-cta strong { font-size: .88rem; }
.sponsor-cta:hover { background: #dcff7b; }

main { max-width: 1440px; margin: 0 auto; padding: 24px 20px 48px; }
.watch-card { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(500px, 1.7fr); overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.watch-lead { padding: 24px; border-right: 1px solid var(--line); background: #0d1210; position: relative; }
.watch-lead::after { content: ""; position: absolute; right: 18px; top: 18px; width: 70px; height: 70px; border: 1px solid rgba(200,255,50,.1); border-radius: 50%; box-shadow: 0 0 0 12px rgba(200,255,50,.025), 0 0 0 24px rgba(200,255,50,.015); }
.eyebrow { color: var(--muted); font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-right: 6px; box-shadow: 0 0 0 4px rgba(200,255,50,.1); }
.asset-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.coin-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #222c27; border: 1px solid #37443e; font: 800 .78rem/1 ui-monospace, monospace; color: var(--acid); flex: 0 0 auto; overflow: hidden; }
.coin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-avatar.jean { background: var(--acid); color: #10140b; border-color: #e5ff9a; }
.coin-avatar.mini { width: 34px; height: 34px; font-size: .65rem; }
.asset-line h1 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.copy-address { padding: 0; border: 0; background: transparent; color: var(--muted); font: .72rem/1.5 ui-monospace, monospace; cursor: pointer; }
.copy-address span { color: var(--acid); margin-left: 5px; opacity: 0; transition: opacity .2s; }
.copy-address:hover span { opacity: 1; }
.watch-price { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; }
.watch-price strong { font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.watch-price span { font: 700 .82rem/1 ui-monospace, monospace; }
.negative { color: var(--red); } .positive { color: var(--acid); }
.data-freshness { color: var(--muted); font-size: .74rem; margin-top: 12px; }

.plan-panel { padding: 22px 24px 20px; }
.plan-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.plan-heading div { display: grid; gap: 3px; }
.plan-heading span { font: 700 .7rem/1 ui-monospace, monospace; color: var(--muted); letter-spacing: .12em; }
.plan-heading strong { font-size: .93rem; }
.secondary-button { border: 1px solid var(--line); background: #171e1b; color: #dbe2de; border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: .78rem; font-weight: 700; }
.secondary-button.armed { border-color: rgba(200,255,50,.35); color: var(--acid); }
.allocation-bar { height: 4px; background: #222b27; border-radius: 3px; overflow: hidden; margin: 18px 0 12px; }
.allocation-bar span { display: block; height: 100%; background: var(--acid); box-shadow: 0 0 18px rgba(200,255,50,.4); }
.target-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.target-list li { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 10px; padding: 12px 13px; background: #111714; border-left: 1px solid var(--line-soft); }
.target-list li:first-child { border-left: 0; }
.target-list .target-state { grid-column: 1 / -1; color: var(--muted); font: 700 .61rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.target-list .filled .target-state { color: var(--acid); }
.target-list li.reached { background: rgba(200,255,50,.07); }
.target-list li.reached .target-state { color: var(--acid); }
.target-list strong { color: var(--muted); font-size: .85rem; }
.target-list b { text-align: right; font: 700 .88rem/1.4 ui-monospace, monospace; }
.target-list small { grid-column: 1 / -1; color: #6f7d77; font-size: .7rem; }
.invalidation { margin-top: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.invalidation strong { color: var(--red); font-family: ui-monospace, monospace; }

.market-shell { margin-top: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.market-header { display: flex; justify-content: space-between; align-items: end; padding: 22px 24px 15px; }
.market-header h2 { font-size: 1.55rem; letter-spacing: -.04em; margin: 6px 0 0; }
.market-stats { display: flex; gap: 18px; color: var(--muted); font: .72rem/1 ui-monospace, monospace; }
.controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 24px 16px; }
.filter-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: inline-flex; background: #0b100e; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 8px 15px; border-radius: 7px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.tab.active { color: #12160d; background: var(--acid); }
.chain-tabs .tab { padding-inline: 11px; }
.chain-tabs .tab.active { color: var(--text); background: #26332e; box-shadow: inset 0 0 0 1px #394840; }
.search-box { width: min(340px, 42vw); height: 38px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--muted); background: #0c100f; }
.search-box input { flex: 1; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: .8rem; }
.search-box kbd { border: 1px solid #303b36; border-radius: 5px; padding: 1px 5px; color: #75817c; font-size: .7rem; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-soft); }
table { width: 100%; min-width: 1060px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: 11px 14px; text-align: left; color: #68766f; background: #0c100f; font: 700 .65rem/1 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 13px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .16s; }
tbody tr:not(.skeleton-row):hover { background: #141a18; }
td > strong { display: block; font: 700 .84rem/1.3 ui-monospace, monospace; }
td > small, .token-cell small { display: block; color: #6f7d77; font-size: .69rem; margin-top: 3px; }
.token-cell { display: flex; align-items: center; gap: 10px; }
.token-cell .rank { width: 20px; color: #66726d; font: .72rem/1 ui-monospace, monospace; }
.token-cell strong { display: block; font-size: .82rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.chain-badge { display: inline-flex; align-items: center; border-radius: 4px; padding: 1px 4px; margin-right: 4px; color: #0d1110; font: 900 .52rem/1.3 ui-monospace, monospace; vertical-align: 1px; }
.chain-badge.solana { background: linear-gradient(90deg, #75f1c8, #b08cff); }
.chain-badge.bsc { background: #f3ba2f; }
.chain-badge.base { color: white; background: #2f6bff; }
.change { display: inline-flex; border-radius: 5px; padding: 4px 7px; font: 700 .73rem/1 ui-monospace, monospace; background: rgba(255,111,117,.08); }
.change.positive { background: rgba(200,255,50,.08); }
.score { display: flex; align-items: center; gap: 8px; }
.score b { width: 22px; font: 800 .78rem/1 ui-monospace, monospace; }
.score > span { width: 58px; height: 4px; background: #27302c; border-radius: 5px; overflow: hidden; }
.score i { display: block; height: 100%; background: var(--cyan); }
.risk { border: 1px solid; border-radius: 7px; padding: 5px 8px; background: transparent; font: 800 .67rem/1 ui-monospace, monospace; cursor: pointer; }
.risk.verified { color: var(--acid); border-color: rgba(200,255,50,.26); background: rgba(200,255,50,.05); }
.risk.caution { color: var(--amber); border-color: rgba(255,200,87,.25); background: rgba(255,200,87,.05); }
.risk.avoid { color: var(--red); border-color: rgba(255,111,117,.25); background: rgba(255,111,117,.05); }
.feature-row { background: rgba(200,255,50,.025); }
.skeleton-row span { display: block; height: 38px; border-radius: 7px; background: linear-gradient(90deg, #151b19, #1c2521, #151b19); background-size: 180% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -180% 0; } }
.legend { display: flex; gap: 18px; align-items: center; padding: 13px 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .7rem; }
.legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.verified-dot { background: var(--acid); } .caution-dot { background: var(--amber); } .avoid-dot { background: var(--red); }
.legend button { margin-left: auto; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: .72rem; }
.risk-strip { margin-top: 18px; border: 1px solid var(--line); background: #0d1210; border-radius: 14px; padding: 16px 20px; display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.risk-strip > div { display: grid; gap: 4px; }
.risk-strip span { color: var(--muted); font: 700 .65rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.risk-strip strong { font-size: .87rem; }
.risk-strip ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: .72rem; color: #aeb9b4; }
.risk-strip li b { color: var(--acid); margin-right: 4px; }.risk-strip li.warn b { color: var(--amber); }

dialog { width: min(560px, calc(100vw - 32px)); color: var(--text); background: #101514; border: 1px solid #35413c; border-radius: 18px; padding: 25px; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 13px; right: 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.6rem; }
.dialog-title { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.dialog-title h3 { margin: 0; font-size: 1.25rem; }
.dialog-title p { margin: 2px 0 0; color: var(--muted); font-size: .76rem; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.dialog-metric { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0c100f; }
.dialog-metric span { display: block; color: var(--muted); font-size: .7rem; }
.dialog-metric strong { display: block; margin-top: 4px; font-family: ui-monospace, monospace; }
.reason-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.reason-list li { color: #bac4c0; font-size: .8rem; padding-left: 18px; position: relative; }
.reason-list li::before { content: "·"; color: var(--acid); position: absolute; left: 3px; }
.source-note { color: #6f7d77; font-size: .7rem; margin-top: 18px; }
.dex-link { color: var(--acid); font-size: .78rem; text-decoration: none; }
.dex-link:hover { text-decoration: underline; }
.invalidation.reached strong { background: var(--red); color: #170607; border-radius: 5px; padding: 2px 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border: 1px solid #3a4942; background: #161e1a; color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: .78rem; transition: .2s; z-index: 40; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .sponsor-banner { margin-inline: 14px; }
  .watch-card { grid-template-columns: 1fr; }
  .watch-lead { border-right: 0; border-bottom: 1px solid var(--line); }
  .risk-strip { align-items: flex-start; flex-direction: column; }
  .risk-strip ul { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand small { display: none; }
  .network-pill { font-size: .67rem; padding: 6px 8px; }
  .sponsor-banner { margin: 10px 10px 0; min-height: 0; padding: 14px; align-items: stretch; flex-direction: column; gap: 12px; }
  .sponsor-cta { width: 100%; min-width: 0; }
  main { padding: 14px 10px 36px; }
  .watch-card, .market-shell { border-radius: 14px; }
  .watch-lead, .plan-panel { padding: 18px; }
  .watch-price strong { font-size: 2.45rem; }
  .target-list { grid-template-columns: 1fr; }
  .target-list li { border-left: 0; border-top: 1px solid var(--line-soft); grid-template-columns: auto auto 1fr; grid-template-rows: auto; align-items: center; }
  .target-list li:first-child { border-top: 0; }
  .target-list .target-state, .target-list small { grid-column: auto; }
  .target-list b { text-align: left; }
  .target-list small { text-align: right; }
  .market-header { padding: 18px 16px 14px; }
  .market-stats span:first-child { display: none; }
  .controls { padding: 0 16px 14px; align-items: stretch; flex-direction: column; }
  .filter-stack { display: grid; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .chain-tabs { grid-template-columns: repeat(4, 1fr); }
  .chain-tabs .tab { padding-inline: 5px; font-size: .7rem; }
  .search-box { width: 100%; }
  th:first-child, td:first-child { padding-left: 16px; }
  .legend { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .legend span:nth-child(3) { display: none; }
  .risk-strip { padding: 16px; }
  .risk-strip ul { display: grid; grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
