/* ======================================================================
   ANU: restrained dark terminal, one mint accent, subtle motion
   ====================================================================== */
:root {
  --bg: #08090b;
  --panel: #0f1013;
  --panel2: #14161a;
  --hover: #181a1f;
  --line: #1c1e23;
  --line2: #25282e;
  --text: #e9eaee;
  --muted: #8a8f9b;
  --dim: #565b66;
  --accent: #2ee6a6;
  --accent-a: rgba(46, 230, 166, .12);
  --up: #2ee6a6;
  --down: #ff4f6a;
  --warn: #f6b44b;
  --violet: #a98bff;
  --num: "SF Pro Display", "DIN Alternate", "Bahnschrift", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(46, 230, 166, .25); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #262931; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #333743; }
::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: var(--mono); }
td, .num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .dim { color: var(--dim); }
.sheen { position: fixed; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 300px at 50% -120px, rgba(46,230,166,.07), transparent 70%); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 20px;
  background: rgba(8,9,11,.82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 7px; }
.logo .mark { width: 32px; height: 32px; filter: drop-shadow(0 0 8px rgba(46,230,166,.25)); transition: transform .4s var(--ease), filter .4s; }
.logo:hover .mark { transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 14px rgba(46,230,166,.5)); }
.logo .word { font-weight: 800; font-size: 21px; letter-spacing: -.6px; line-height: 1; color: #f2f3f5; display: flex; align-items: baseline; }
.logo em { font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: -.2px; color: var(--accent); }
nav { display: flex; gap: 2px; }
nav a { position: relative; padding: 7px 13px; color: var(--muted); font-weight: 600; border-radius: 8px; transition: color .2s, background .2s; }
nav a:hover { color: var(--text); background: var(--panel2); }
nav a.on { color: var(--text); }
nav a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -10px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.search { position: relative; flex: 1; max-width: 460px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: var(--dim); stroke-width: 2; }
.search input { width: 100%; height: 34px; padding: 0 34px 0 32px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: rgba(46,230,166,.55); box-shadow: 0 0 0 3px rgba(46,230,166,.1); }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 10px var(--mono); color: var(--dim); padding: 1px 6px; border: 1px solid var(--line2); border-radius: 4px; }
.status { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.led { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.led.ok { background: var(--up); } .led.warn { background: var(--warn); } .led.bad { background: var(--down); }
.led.ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- live ticker ---------- */
.ticker { position: sticky; top: 56px; z-index: 29; display: flex; align-items: center; height: 32px; border-bottom: 1px solid var(--line);
  background: rgba(10,11,13,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.tlabel { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 20px; height: 100%; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px;
  border-right: 1px solid var(--line); background: var(--bg); }
.tlabel i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ttrack { flex: 1; display: flex; align-items: center; gap: 0; overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tk { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 32px; font-size: 12px; border-right: 1px solid var(--line); transition: background .2s; }
.tk:hover { background: var(--hover); }
.tk img, .tk .tav { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; background: var(--panel2); }
.tk b { font-weight: 700; }
.tk .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tk.in { animation: tkin .55s var(--ease); }
.tk.big .amt { text-shadow: 0 0 10px currentColor; }
@keyframes tkin { from { max-width: 0; opacity: 0; padding: 0; } to { max-width: 320px; opacity: 1; } }

main { padding: 16px 20px 56px; max-width: 1760px; margin: 0 auto; animation: page .35s var(--ease); }
@keyframes page { from { opacity: 0; transform: translateY(4px); } }
.banner { padding: 9px 14px; margin-bottom: 14px; border-radius: 10px; color: var(--warn); font-size: 12px; background: rgba(246,180,75,.07); border: 1px solid rgba(246,180,75,.25); }

/* ---------- surfaces with cursor spotlight ---------- */
.panel, .col, .tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel { overflow: hidden; }
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(46,230,166,.07), transparent 65%); }
.spot:hover::after { opacity: 1; }
.panel > h3 { margin: 0; padding: 12px 16px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.panel > h3 .tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--accent); padding: 1px 7px; border-radius: 5px; background: var(--accent-a); }

/* ---------- overview tiles ---------- */
.ov { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { padding: 12px 14px; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; width: 60%; height: 1px; background: linear-gradient(90deg, rgba(46,230,166,.6), transparent); }
.tile .k { color: var(--dim); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.tile .v { font: 700 21px var(--num); margin-top: 4px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--dim); font-size: 11px; margin-top: 1px; }

/* ---------- boards ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { display: flex; flex-direction: column; min-width: 0; height: calc(100vh - 230px); min-height: 520px; }
.col h2 { margin: 0; padding: 12px 14px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.col h2 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.col h2 .count { margin-left: auto; font: 600 11px var(--num); color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); }
.col .list { overflow-y: auto; flex: 1; }
.card { position: relative; display: grid; grid-template-columns: 50px 1fr auto; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line);
  transition: background .2s; animation: rise .4s var(--ease); }
.card:hover { background: var(--hover); }
.card.flash::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(46,230,166,.13), transparent 70%); animation: fade 1.2s ease-out forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fade { to { opacity: 0; } }
/* avatar with progress ring */
.av { --p: 0; position: relative; width: 50px; height: 50px; flex: none; border-radius: 12px; padding: 2px;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line2) 0); }
.av.grad { background: linear-gradient(135deg, var(--accent), rgba(46,230,166,.25)); box-shadow: 0 0 14px rgba(46,230,166,.25); }
.ava { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--muted); background: var(--panel2); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.card .sym { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.card .full { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; color: var(--dim); font-size: 11.5px; }
.card .meta b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.card .right { text-align: right; font-size: 11.5px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.card .mc { font: 700 14.5px var(--num); font-variant-numeric: tabular-nums; border-radius: 4px; padding: 0 3px; margin-right: -3px; }
.spark { display: block; width: 76px; height: 22px; overflow: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; height: 18px; border-radius: 5px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: var(--panel2); border: 1px solid var(--line2); }
.chip.r { color: var(--down); border-color: rgba(255,79,106,.28); background: rgba(255,79,106,.07); }
.chip.g { color: var(--up); border-color: rgba(46,230,166,.28); background: rgba(46,230,166,.07); }
.chip.a { color: var(--warn); border-color: rgba(246,180,75,.28); background: rgba(246,180,75,.07); }
.chip.p { color: var(--violet); border-color: rgba(169,139,255,.3); background: rgba(169,139,255,.08); }
a.chip:hover { color: var(--text); border-color: #3a3e47; }
.risk { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; font: 700 10.5px var(--num); }
.risk::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.risk.s { color: var(--up); background: rgba(46,230,166,.08); } .risk.w { color: var(--warn); background: rgba(246,180,75,.08); } .risk.d { color: var(--down); background: rgba(255,79,106,.08); }

/* number flash on change */
.fu { animation: fu 1s ease-out; } .fd { animation: fd 1s ease-out; }
@keyframes fu { 0% { background: rgba(46,230,166,.28); color: var(--up); } }
@keyframes fd { 0% { background: rgba(255,79,106,.28); color: var(--down); } }

/* skeleton */
.sk { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 50px 1fr 70px; gap: 11px; }
.sk i { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--panel2) 0%, #1c1f25 50%, var(--panel2) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.sk .a { height: 50px; border-radius: 12px; } .sk .l1 { height: 12px; width: 55%; } .sk .l2 { height: 10px; width: 85%; margin-top: 9px; } .sk .l3 { height: 10px; width: 40%; margin-top: 7px; }
.sk .r1 { height: 12px; } .sk .r2 { height: 18px; margin-top: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; z-index: 1; color: var(--dim); font-weight: 600; font-size: 11px; background: var(--panel); }
th.sortable { cursor: pointer; transition: color .2s; } th.sortable:hover { color: var(--text); }
th.on { color: var(--accent); }
td:first-child, th:first-child { text-align: left; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--hover); }
.tok { display: flex; align-items: center; gap: 9px; }
.tok .ava { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.scroll { overflow: auto; }

/* ---------- token page ---------- */
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.thead { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.thead .av { width: 60px; height: 60px; border-radius: 14px; }
.thead .ava { border-radius: 12px; }
.thead h1 { margin: 0; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thead .addr { color: var(--dim); font-family: var(--mono); font-size: 11.5px; cursor: pointer; transition: color .2s; }
.thead .addr:hover { color: var(--accent); }
.thead .links { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#hmc { text-align: right; margin-left: auto; }
#hmc .mcbig { font: 800 26px var(--num); letter-spacing: -.5px; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: 11px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.stats .k { color: var(--dim); font-size: 11px; }
.stats .v { font: 700 15.5px var(--num); margin-top: 2px; font-variant-numeric: tabular-nums; border-radius: 4px; display: inline-block; padding: 0 3px; margin-left: -3px; }
.chartbar { display: flex; gap: 2px; padding: 7px 10px; border-bottom: 1px solid var(--line); align-items: center; }
.chartbar button { padding: 4px 10px; border-radius: 6px; color: var(--muted); font: 600 12px var(--num); transition: color .2s, background .2s; }
.chartbar button:hover { color: var(--text); background: var(--panel2); }
.chartbar button.on { color: var(--accent); background: var(--accent-a); }
.chartbar .sp { flex: 1; }
.chartbar .sep { width: 1px; height: 16px; background: var(--line2); margin: 0 6px; }
#chart { height: 460px; }
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 11px 13px; color: var(--muted); font-weight: 600; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tradebody { max-height: 600px; overflow-y: auto; }
tr.new td { animation: rowin .9s var(--ease); }
tr.new.buy td { background-image: linear-gradient(90deg, rgba(46,230,166,.1), transparent 60%); }
tr.new.sell td { background-image: linear-gradient(90deg, rgba(255,79,106,.1), transparent 60%); }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } }
.side { font-weight: 700; }
.whale { font-weight: 800; text-shadow: 0 0 12px currentColor; }

/* risk gauge */
.riskbox { padding: 16px; }
.gauge { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ring { --v: 50; --c: var(--accent); position: relative; width: 86px; height: 86px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line2) 0); animation: ringin 1s var(--ease); }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel); }
.ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 22px -6px var(--c); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px var(--num); color: var(--c); }
.ring.s { --c: var(--up); } .ring.w { --c: var(--warn); } .ring.d { --c: var(--down); }
@keyframes ringin { from { transform: rotate(-90deg) scale(.9); opacity: 0; } }
.gauge .lvl { font-size: 15px; font-weight: 700; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border: 0; }
.kv b { font-variant-numeric: tabular-nums; font-weight: 600; }
.meter { height: 3px; border-radius: 3px; background: var(--line2); margin-top: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s var(--ease); }
.meter i.r { background: var(--down); } .meter i.a { background: var(--warn); }
.kvx { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kvx .row { display: flex; justify-content: space-between; }
.desc { padding: 12px 16px 16px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.wsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.wsum > div { padding: 13px 16px; border-right: 1px solid var(--line); }
.wsum b { font: 700 16px var(--num); }
.empty { padding: 44px; text-align: center; color: var(--dim); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 8px); padding: 8px 14px; border-radius: 9px; opacity: 0; pointer-events: none; font-size: 12px;
  background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .2s, transform .2s var(--ease); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1280px) { .ov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; } .col { height: auto; max-height: 72vh; min-height: 0; }
  .tgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top { gap: 10px; padding: 0 12px; } .search, .status #status-text, .tlabel { display: none; }
  nav a { padding: 7px 9px; } main { padding: 12px 12px 40px; } #chart { height: 320px; } .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ======================= feature components ======================= */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--panel2); border: 1px solid var(--line2); transition: color .2s, border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { color: var(--text); border-color: #353943; }
.btn.on { color: var(--accent); border-color: rgba(46,230,166,.4); background: var(--accent-a); }
.btn.pri { color: #04140e; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(46,230,166,.25); }
.btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.star { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--dim); font-size: 14px; line-height: 1; transition: color .2s, transform .2s, background .2s; }
.star:hover { color: var(--warn); background: rgba(246,180,75,.08); }
.star.on { color: var(--warn); text-shadow: 0 0 10px rgba(246,180,75,.6); }
.star.pop { animation: starpop .45s var(--ease); }
@keyframes starpop { 40% { transform: scale(1.5) rotate(-12deg); } }
.card .star { position: absolute; top: 8px; right: 8px; opacity: 0; }
.card:hover .star, .card .star.on { opacity: 1; }
.card .right { padding-right: 18px; }

/* toolbars & segmented controls */
.tb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line2); }
.seg button { padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.acc button.on { color: var(--accent); background: var(--accent-a); box-shadow: inset 0 0 0 1px rgba(46,230,166,.3); }
.tb .sp { flex: 1; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 9px; border-radius: 7px; font-size: 11.5px; color: var(--accent); background: var(--accent-a); border: 1px solid rgba(46,230,166,.3); }
.fchip button { width: 18px; height: 18px; border-radius: 5px; color: var(--accent); } .fchip button:hover { background: rgba(46,230,166,.18); }

/* board filter popover */
.col h2 .fbtn { position: relative; display: grid; place-items: center; width: 26px; height: 24px; border-radius: 7px; color: var(--muted); border: 1px solid var(--line2); background: var(--panel2); }
.col h2 .fbtn:hover, .col h2 .fbtn.on { color: var(--accent); border-color: rgba(46,230,166,.35); }
.col h2 .fbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.col h2 .fbtn i { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; font: 700 9.5px/15px var(--num); font-style: normal; color: #04140e; background: var(--accent); }
.col h2 .count { margin-left: 0; }
.col h2 .grow { flex: 1; }
.pop { position: absolute; z-index: 25; top: 46px; right: 10px; width: 270px; padding: 14px; border-radius: 12px; background: rgba(20,22,26,.97); border: 1px solid var(--line2);
  box-shadow: 0 24px 60px rgba(0,0,0,.6); backdrop-filter: blur(12px); animation: popin .18s var(--ease); }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop h4 { margin: 0 0 10px; font-size: 12.5px; }
.pop label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; color: var(--muted); font-size: 12px; }
.pop input[type=number] { width: 110px; height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); outline: none; font: 12px var(--num); }
.pop input[type=number]:focus { border-color: rgba(46,230,166,.5); }
.pop .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.tg { position: relative; width: 32px; height: 18px; flex: none; appearance: none; -webkit-appearance: none; border-radius: 9px; background: var(--line2); cursor: pointer; transition: background .2s; margin: 0; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #c9ccd3; transition: transform .2s var(--ease), background .2s; }
.tg:checked { background: rgba(46,230,166,.35); } .tg:checked::after { transform: translateX(14px); background: var(--accent); }

/* DexScreener-style window panel */
.winp .wtabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.winp .wtabs button { padding: 10px 6px; border-right: 1px solid var(--line); text-align: center; transition: background .2s; }
.winp .wtabs button:last-child { border-right: 0; }
.winp .wtabs button:hover { background: var(--hover); }
.winp .wtabs button.on { background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
.winp .wtabs .n { color: var(--dim); font-size: 11px; display: block; }
.winp .wtabs b { font: 700 14px var(--num); }
.wrows { padding: 6px 16px 14px; }
.wrow { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wrow:last-child { border: 0; }
.wrow .lab { color: var(--dim); font-size: 11px; letter-spacing: .4px; }
.wrow .lab b { display: block; color: var(--text); font: 700 15px var(--num); margin-top: 1px; letter-spacing: 0; }
.split .nums { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.split .nums span { color: var(--dim); } .split .nums b { font-weight: 700; }
.split .bar2 { display: flex; height: 5px; border-radius: 5px; overflow: hidden; background: var(--line2); gap: 2px; }
.split .bar2 i { display: block; height: 100%; transition: width .6s var(--ease); }
.split .bar2 .b { background: var(--up); box-shadow: 0 0 8px rgba(46,230,166,.4); border-radius: 5px 0 0 5px; }
.split .bar2 .s { background: var(--down); border-radius: 0 5px 5px 0; }

/* holder distribution */
.dist { padding: 14px 16px 16px; }
.dist .stack-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--line2); }
.dist .stack-bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.dist .leg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 12px; }
.dist .leg span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.dist .leg span i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.dist .leg b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }

/* contract security */
.sec { padding: 6px 16px 12px; }
.sec .it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sec .it:last-child { border: 0; }
.sec .ic { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.sec .ic.ok { color: var(--up); background: rgba(46,230,166,.1); } .sec .ic.bad { color: var(--down); background: rgba(255,79,106,.1); } .sec .ic.wa { color: var(--warn); background: rgba(246,180,75,.1); }
.sec .tx { flex: 1; } .sec .tx small { display: block; color: var(--dim); font-size: 11px; }
.sec .vv { font-weight: 700; font-variant-numeric: tabular-nums; }

/* trade filter row, maker filter */
.tfil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mk { opacity: 0; margin-left: 4px; color: var(--dim); font-size: 11px; transition: opacity .15s, color .15s; }
tr:hover .mk { opacity: 1; } .mk:hover { color: var(--accent); }

/* tracking page */
.trk { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; }
.wl .wi { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .2s; }
.wl .wi:hover { background: var(--hover); }
.wl .wi .who { flex: 1; min-width: 0; }
.wl .wi .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl .wi .who span { color: var(--dim); font: 11px var(--mono); }
.wl .add { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wl .add input { flex: 1; min-width: 0; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); outline: none; font: 12px var(--mono); }
.wl .add input:focus { border-color: rgba(46,230,166,.5); }
.ib { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--dim); } .ib:hover { color: var(--text); background: var(--panel2); }
.ib svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hint { padding: 26px 20px; color: var(--dim); text-align: center; line-height: 1.8; }
.hint b { color: var(--muted); }
.tav2 { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; background: var(--panel2); vertical-align: middle; }

@media (max-width: 1100px) { .trk { grid-template-columns: 1fr; } }

/* ---- bundle / linked wallets ---- */
.chip.o { color: #ff8a3d; border-color: rgba(255,138,61,.3); background: rgba(255,138,61,.08); }
.bsum { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-end; padding: 4px 2px 12px; }
.bsum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bsum .bcov { margin-left: auto; min-width: 180px; }
.bsum .bcov .meter { margin-top: 6px; }
.bgrp { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,.012); }
.bgrp .bh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255,138,61,.035); }
.bgrp .bh .sp { flex: 1; }
.bgrp .bvia { padding: 7px 12px; font-size: 12px; border-bottom: 1px solid var(--line); }
.bgrp table { margin: 0; }
.lwl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lwl span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.lwl span.me { border-color: rgba(255,138,61,.5); }

/* ---- account ---- */
.acct { position: relative; display: flex; align-items: center; gap: 6px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: default; }
.ubtn { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 4px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); font-weight: 600; font-size: 12.5px; }
.ubtn:hover { border-color: #353943; }
.uav { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #04140e;
  background: linear-gradient(135deg, #8dffd2, #2ee6a6 55%, #109e76); }
.ubtn .un { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ubtn .pro { font-size: 9.5px; font-weight: 800; color: #04140e; background: var(--warn); border-radius: 4px; padding: 0 4px; }
.ubtn .car { width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.umenu { position: absolute; right: 0; top: 40px; width: 230px; padding: 6px; border-radius: 12px; border: 1px solid var(--line2); background: #121317;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); display: none; z-index: 40; }
.acct.open .umenu { display: block; animation: mpop .16s var(--ease); }
.umenu .uh { display: flex; flex-direction: column; padding: 8px 10px 6px; }
.umenu .usync { display: flex; align-items: center; gap: 6px; margin: 0 4px 6px; padding: 7px 8px; border-radius: 8px; font-size: 11.5px; color: var(--muted); background: rgba(46,230,166,.06); }
.umenu .usync i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.umenu a, .umenu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; color: var(--text); }
.umenu a:hover, .umenu button:hover { background: rgba(255,255,255,.05); }
@keyframes mpop { from { opacity: 0; transform: translateY(-4px); } }

/* ---- modal ---- */
#modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(4,5,7,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#modal.on { display: grid; animation: mfade .18s; }
@keyframes mfade { from { opacity: 0; } }
.mbox { position: relative; width: 100%; max-width: 380px; padding: 26px 24px 22px; border-radius: 16px; border: 1px solid var(--line2);
  background: radial-gradient(120% 60% at 50% 0%, rgba(46,230,166,.08), transparent 60%), #111215; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: mpop .2s var(--ease); }
.mx { position: absolute; right: 12px; top: 10px; font-size: 20px; color: var(--dim); }
.mx:hover { color: var(--text); }
.mlogo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.mlogo img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(46,230,166,.35)); }
.mlogo b { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.mlogo em { font-style: normal; font-size: 14px; color: var(--accent); }
.mtabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.04); margin-bottom: 16px; }
.mtabs button { flex: 1; height: 32px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.mtabs button.on { color: var(--text); background: #1c1e23; }
.mtitle { margin: 0 0 14px; font-size: 16px; }
.mform { display: flex; flex-direction: column; gap: 12px; }
.mform label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.mform input, .mform select, .ain { height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #0b0c0e; color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.ain { height: 32px; }
.mform input:focus, .mform select:focus, .ain:focus { border-color: rgba(46,230,166,.55); box-shadow: 0 0 0 3px rgba(46,230,166,.1); }
.mform .btn.pri { height: 40px; justify-content: center; font-size: 14px; margin-top: 2px; }
.ferr { color: var(--down); font-size: 12px; min-height: 0; }
.ferr:empty { display: none; }
.mnote { font-size: 12px; color: var(--dim); text-align: center; line-height: 1.6; word-break: break-all; }
.newpw { margin-top: 14px; padding: 14px; border-radius: 10px; text-align: center; font-size: 20px; letter-spacing: 1px; cursor: pointer; background: rgba(46,230,166,.08); border: 1px dashed rgba(46,230,166,.4); color: var(--accent); }

/* ---- address labels ---- */
.lbl { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #c9ccd3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.lbl.k-kol { color: #c4b1ff; background: rgba(169,139,255,.1); border-color: rgba(169,139,255,.3); }
.lbl.k-project { color: #7fb2ff; background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); }
.lbl.k-smart { color: var(--accent); background: rgba(46,230,166,.08); border-color: rgba(46,230,166,.3); }
.lbl.k-whale { color: #5ee0ff; background: rgba(94,224,255,.08); border-color: rgba(94,224,255,.3); }
.lbl.k-scam { color: var(--down); background: rgba(255,79,106,.08); border-color: rgba(255,79,106,.3); }
.lbl.k-dev { color: var(--warn); background: rgba(246,180,75,.08); border-color: rgba(246,180,75,.3); }
.lbl.k-exchange, .lbl.k-bot { color: #9aa0aa; }
h1 .lbl { height: 22px; font-size: 13px; padding: 0 8px; }

/* ---- announcement bar ---- */
.annc { display: flex; align-items: center; gap: 10px; max-width: 1600px; margin: 12px auto 0; padding: 9px 14px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid rgba(46,230,166,.25); background: linear-gradient(90deg, rgba(46,230,166,.1), rgba(46,230,166,.02)); }
.annc i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.annc.warn { border-color: rgba(246,180,75,.3); background: linear-gradient(90deg, rgba(246,180,75,.12), rgba(246,180,75,.02)); }
.annc.warn i { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.annc span { flex: 1; }
.annc button { color: var(--dim); font-size: 16px; }
#annc:empty { display: none; }
#annc { padding: 0 20px; }

/* ---- admin ---- */
.adm { display: flex; flex-direction: column; gap: 14px; }
.admh { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.admh h1 { margin: 0; font-size: 20px; }
.admtabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.04); }
.admtabs a { padding: 6px 14px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.admtabs a.on { color: var(--text); background: #1c1e23; }
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.acard { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.acard b { font-size: 22px; font-variant-numeric: tabular-nums; }
.acard small { font-size: 11.5px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 16px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { width: 100%; max-width: 34px; min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #5ef5bd, rgba(46,230,166,.35)); }
.bar i { position: relative; }
.bar span { position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-size: 11px; color: var(--muted); }
.bars { padding-top: 22px; }
.bar em { font-style: normal; font-size: 10.5px; color: var(--dim); margin-top: 5px; }
.uact { text-align: left !important; white-space: normal; }
.uact .btn { height: 24px; padding: 0 8px; font-size: 11.5px; margin: 2px 2px 2px 0; }
.lform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lform .ain[name=addr] { width: 340px; max-width: 100%; }
.pager { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .acct .btn.ghost, .ubtn .un { display: none; }
  .lform .ain { width: 100% !important; }
}
.bmore summary { cursor: pointer; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.bmore summary:hover { color: var(--text); }
.bwrap { padding: 12px 14px 4px; }
.bhint { margin: 0 0 12px; text-align: left; padding: 0; }
.adm .lform { padding: 14px 16px; }
.adm .ahint { text-align: left; padding: 0 16px 14px; margin: 0; }
td.empty { text-align: center !important; }

/* ---- mobile fixes ---- */
.stack { min-width: 0; }
.thead .addr { word-break: break-all; }
.tradebody { overflow-x: auto; }
@media (max-width: 720px) {
  /* header: logo + account on the first row, nav scrolls horizontally on the second */
  .top { flex-wrap: wrap; height: auto; row-gap: 0; padding: 8px 12px 0; }
  .top .logo { order: 1; }
  .top .status { order: 2; }
  .top .acct { order: 3; }
  .top nav { order: 4; width: calc(100% + 24px); margin: 6px -12px 0; padding: 0 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; flex: none; padding: 8px 11px 10px; }
  .top nav a.on::after { bottom: 0; }
  .ticker { top: 92px; }
  .logo .word { font-size: 19px; }
  .thead { padding: 14px; }
  .thead > div[style*="margin-left:auto"] { margin-left: 0 !important; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #annc { padding: 0 12px; }
  .mbox { padding: 22px 18px 18px; }
}
.chartbar { overflow-x: auto; scrollbar-width: none; }
.chartbar::-webkit-scrollbar { display: none; }
.chartbar button { white-space: nowrap; flex: none; }
.lbody { padding: 4px 16px 14px; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
