:root {
  --bg: #08090b;
  --side: #0b0c0e;
  --panel: #0f1013;
  --item: #14161a;
  --item-2: #1a1d22;
  --line: #1f2227;
  --line-2: #2a2e35;
  --text: #e6e8eb;
  --text-2: #b4b9c1;
  --muted: #7b828c;
  --blue: #1d9bf0;
  --green: #00ba7c;
  --red: #f4212e;
  --orange: #ff7a45;
  --purple: #a78bfa;
  --r: 15.5px;
  --r-sm: 11px;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 17.5px; height: 17.5px; flex: none; }
b { font-weight: 600; }
h1, h2, h3 { margin: 0; }
::selection { background: rgba(29,155,240,.35); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #22252b; border-radius: 11px; border: 3.5px solid var(--bg); }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; width: 251px; flex: none;
  background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 15.5px; padding: 15.5px 13px;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4.5px 9px 11px; font-weight: 800; font-size: 17.5px; letter-spacing: -.02em; }
.brand svg { width: 24px; height: 24px; }
.brand em { font-style: normal; font: 600 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6.5px; padding: 1px 5.5px; margin-left: auto; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 11px; height: 39.5px; padding: 0 11px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; border: 1px solid transparent; transition: background .12s, color .12s; }
.menu a:hover { background: var(--item); color: var(--text); }
.menu a.on { background: var(--item); color: var(--text); border-color: var(--line-2); font-weight: 600; }
.menu a svg { width: 18.5px; height: 18.5px; }
.menu-sep { height: 1px; background: var(--line); margin: 9px 4.5px; }
.badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 1px 7.5px; border-radius: 1099px; background: rgba(29,155,240,.15); color: var(--blue); }
.badge.ok { background: rgba(0,186,124,.15); color: var(--green); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 11px; }
.side-foot a { display: flex; align-items: center; gap: 11px; height: 35px; padding: 0 11px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14.5px; }
.side-foot a:hover { background: var(--item); color: var(--text); }
.side-foot .ext { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: 9px 11px 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; height: 61.5px; display: flex; align-items: center; gap: 13px; padding: 0 22px;
  background: rgba(8,9,11,.82); backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); border-bottom: 1px solid var(--line);
}
.top-title { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; margin-right: auto; }
.top .menu-btn { display: none; }
.ca { display: flex; align-items: center; gap: 9px; height: 37.5px; max-width: 418px; padding: 0 11px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; color: var(--text-2); min-width: 0; }
.ca:hover { border-color: #3a3f47; color: var(--text); }
.ca-k { font: 700 11.5px var(--mono); color: var(--muted); }
.ca-v { font: 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca svg { width: 15.5px; height: 15.5px; color: var(--muted); }
.mode { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #f5c451; background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.25); padding: 4.5px 9px; border-radius: 6.5px; white-space: nowrap; }
.top-user { display: flex; align-items: center; gap: 9px; }
.user-chip { display: flex; align-items: center; gap: 9px; height: 37.5px; padding: 0 4.5px 0 4.5px; border: 1px solid var(--line-2); border-radius: 1099px; }
.user-chip .av { width: 28.5px; height: 28.5px; font-size: 12px; }
.user-chip span { font-weight: 600; font-size: 14.5px; max-width: 154px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page { padding: 22px; flex: 1; animation: rise .2s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(4.5px); } }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 37.5px; padding: 0 15.5px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s; }
.btn svg { width: 16.5px; height: 16.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--text); color: #0b0c0e; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: var(--item); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #3a3f47; }
.btn-block { width: 100%; height: 42px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15.5px; }
.icon-btn { display: grid; place-items: center; width: 37.5px; height: 37.5px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: #3a3f47; }
.link { color: var(--blue); cursor: pointer; background: none; border: 0; padding: 0; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4.5px; }
.link:hover { text-decoration: underline; }
.link svg { width: 14.5px; height: 14.5px; }
.input { width: 100%; height: 44px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); padding: 0 13px; font: 15px var(--font); outline: none; transition: border-color .12s, box-shadow .12s; }
.input.mono { font-family: var(--mono); font-size: 14px; }
.input::placeholder { color: #565d67; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(29,155,240,.15); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--muted); width: 15.5px; height: 15.5px; }
.search .input { padding-left: 35px; height: 37.5px; }
.err { color: #ff6b75; font-size: 14px; }
.err:empty { display: none; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 11px; padding: 13px 15.5px; border-bottom: 1px solid var(--line); min-height: 55px; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.panel-head .right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.panel-body { padding: 15.5px; }
.panel-foot { border-top: 1px solid var(--line); padding: 11px 15.5px; }
.tile { width: 28.5px; height: 28.5px; border-radius: 9px; display: grid; place-items: center; background: var(--item-2); color: var(--text); flex: none; font-weight: 700; }
.tile svg { width: 15.5px; height: 15.5px; }
.tile-green { background: rgba(0,186,124,.14); color: var(--green); }
.tile-blue { background: rgba(29,155,240,.14); color: var(--blue); }
.tile-purple { background: rgba(167,139,250,.14); color: var(--purple); }
.tile-orange { background: rgba(255,122,69,.14); color: var(--orange); }
.chip { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px; border-radius: 6.5px; background: var(--item-2); color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.chip.blue { color: var(--blue); background: rgba(29,155,240,.1); border-color: rgba(29,155,240,.25); }
.chip.green { color: var(--green); background: rgba(0,186,124,.1); border-color: rgba(0,186,124,.25); }
.chip.red { color: #ff6b75; background: rgba(244,33,46,.1); border-color: rgba(244,33,46,.25); }
.chip.orange { color: var(--orange); background: rgba(255,122,69,.1); border-color: rgba(255,122,69,.25); }
.live { display: inline-flex; align-items: center; gap: 6.5px; font-size: 13px; color: var(--muted); }
.live i { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--green); animation: pulseg 2s infinite; }
@keyframes pulseg { 0% { box-shadow: 0 0 0 0 rgba(0,186,124,.6); } 70% { box-shadow: 0 0 0 6.5px rgba(0,186,124,0); } 100% { box-shadow: 0 0 0 0 rgba(0,186,124,0); } }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: none; height: 28.5px; padding: 0 11px; border-radius: 7.5px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg button.on { background: var(--item-2); color: var(--text); }
.empty { padding: 39.5px 17.5px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4.5px; }

/* page layouts */
.page-grid { display: grid; gap: 17.5px; align-items: start; }
.g-dash { grid-template-columns: 374px minmax(0, 1fr) 374px; }
.g-side { grid-template-columns: minmax(0, 1fr) 374px; }
.g-narrow { max-width: 836px; }
.stack { display: flex; flex-direction: column; gap: 17.5px; min-width: 0; }
.page-head { margin: 0 0 17.5px; max-width: 836px; }
.page-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4.5px; }
.page-head p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17.5px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 15.5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6.5px; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { color: var(--muted); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat-grid > div { padding: 13px 15.5px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.stat-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stat-grid b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-grid span { color: var(--muted); font-size: 13px; }
.next { padding: 13px 15.5px 15.5px; display: flex; flex-direction: column; gap: 9px; }
.next-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.next-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 6.5px; background: var(--item-2); border-radius: 6.5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 6.5px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar.lg { height: 9px; }

.split { display: flex; gap: 3.5px; height: 9px; border-radius: 9px; overflow: hidden; }
.s-burn { background: var(--orange); }
.s-sol { background: var(--purple); }
.s-tok { background: var(--text); }
.legend { list-style: none; margin: 13px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 14.5px; }
.legend li b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- posts ---------- */
.av { width: 37.5px; height: 37.5px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14.5px; color: #0b0c0e; object-fit: cover; background: #333; }
.av.sm { width: 28.5px; height: 28.5px; font-size: 12px; }
.feed { list-style: none; margin: 0; padding: 11px; display: flex; flex-direction: column; gap: 9px; }
.post { display: flex; gap: 11px; padding: 13px; background: var(--item); border: 1px solid var(--line); border-radius: 13px; animation: rise .25s ease; }
.post:hover { border-color: var(--line-2); }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 6.5px; min-width: 0; font-size: 14.5px; }
.post-head .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-head .handle, .post-head .time { color: var(--muted); white-space: nowrap; }
.post-head .handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-head .chip { margin-left: auto; }
.post-text { white-space: pre-wrap; word-break: break-word; margin-top: 4.5px; color: var(--text-2); font-size: 15px; }
.post-text .hl, .post-text .code { color: var(--blue); }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 15.5px; margin-top: 9px; font-size: 13px; color: var(--muted); }
.post-foot a { display: inline-flex; align-items: center; gap: 5.5px; }
.post-foot a:hover { color: var(--blue); }
.post-foot svg { width: 13px; height: 13px; }

/* ---------- drops ---------- */
.rows { list-style: none; margin: 0; padding: 6.5px; }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 9px; border-radius: 11px; }
.row:hover { background: var(--item); }
.row .rank { width: 24px; height: 24px; border-radius: 6.5px; background: var(--item-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.row .who { flex: 1; min-width: 0; line-height: 1.25; }
.row .who b, .row .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { color: var(--muted); font-size: 13px; }
.row .amt { text-align: right; line-height: 1.25; }
.row .amt b { color: var(--green); display: block; font-variant-numeric: tabular-nums; }
.row .amt span { color: var(--muted); font-size: 13px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 11px 15.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 15.5px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
td.num, th.num { text-align: right; }
td .u { display: flex; align-items: center; gap: 9px; }
td .u b { display: block; }
td .u span { color: var(--muted); font-size: 13px; }
td.green { color: var(--green); font-weight: 600; }
td a.tx { font-family: var(--mono); font-size: 13px; color: var(--blue); }
td .muted, .muted { color: var(--muted); }

/* ---------- claim ---------- */
.stepper { list-style: none; margin: 0; padding: 6.5px 15.5px 15.5px; }
.step { display: flex; gap: 13px; position: relative; padding-top: 13px; }
.step::before { content: ''; position: absolute; left: 14.5px; top: 46px; bottom: -13px; width: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step.done::before { background: rgba(0,186,124,.45); }
.step-n { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; background: var(--item-2); color: var(--muted); border: 1px solid var(--line-2); position: relative; z-index: 1; }
.step.active .step-n { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.step.done .step-n { background: var(--green); color: #04110b; border-color: var(--green); }
.step.done .step-n svg { width: 15.5px; height: 15.5px; }
.step-main { flex: 1; min-width: 0; padding-bottom: 6.5px; }
.step-title { display: flex; align-items: center; gap: 9px; min-height: 31px; font-weight: 600; font-size: 15.5px; }
.step:not(.active):not(.done) .step-title { color: var(--muted); font-weight: 500; }
.step-title small { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.step-body { display: flex; flex-direction: column; gap: 11px; margin: 6.5px 0 11px; animation: rise .2s ease; }
.step-body p { margin: 0; color: var(--text-2); }
.draft { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.5; padding: 13px 15.5px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 13px; color: var(--text); }
.draft .hl { color: var(--blue); }
.draft .code { color: var(--blue); font-weight: 700; }
.actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.callout { display: flex; gap: 11px; align-items: flex-start; background: var(--item); border: 1px solid var(--line-2); border-radius: 13px; padding: 11px 13px; color: var(--text-2); font-size: 14px; }
.callout b { color: var(--text); }
.callout svg { width: 16.5px; height: 16.5px; margin-top: 1px; color: var(--muted); }
.callout.warn { border-color: rgba(244,33,46,.3); background: rgba(244,33,46,.05); }
.callout.warn svg, .callout.warn b { color: #ff6b75; }
.q { display: flex; align-items: baseline; gap: 9px; }
.q b { font-size: 31px; font-weight: 800; letter-spacing: -.02em; }
.q span { color: var(--muted); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,155,240,.7); } 70% { box-shadow: 0 0 0 7.5px rgba(29,155,240,0); } 100% { box-shadow: 0 0 0 0 rgba(29,155,240,0); } }
.receipt { border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden; }
.receipt div { display: flex; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.receipt div:last-child { border-bottom: 0; }
.receipt span { color: var(--muted); }
.receipt .total b { color: var(--green); }

.get { padding: 15.5px; display: flex; flex-direction: column; gap: 11px; }
.get-big { font-size: 37.5px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.get-big span { color: var(--muted); }
.get-line { display: flex; align-items: center; gap: 11px; padding: 11px 13px; background: var(--item); border: 1px solid var(--line); border-radius: 13px; }
.get-line .tile { width: 33px; height: 33px; }
.get-line div { flex: 1; line-height: 1.3; }
.get-line div span { display: block; color: var(--muted); font-size: 13px; }
.checklist { list-style: none; margin: 0; padding: 13px 15.5px; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; gap: 11px; color: var(--text-2); font-size: 14.5px; }
.checklist li svg { width: 16.5px; height: 16.5px; color: var(--green); margin-top: 2px; }
.checklist li.neg svg { color: #ff6b75; }

/* dashboard claim card */
.claim-card { padding: 15.5px; display: flex; flex-direction: column; gap: 13px; }
.claim-card .big { font-size: 33px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.claim-card .big span { color: var(--muted); }
.claim-card p { margin: 0; color: var(--text-2); }
.mini-steps { display: flex; gap: 4.5px; }
.mini-steps i { flex: 1; height: 4.5px; border-radius: 4.5px; background: var(--item-2); }
.mini-steps i.on { background: var(--blue); }
.mini-steps i.ok { background: var(--green); }

/* ---------- articles ---------- */
.article { padding: 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.article h3 { color: var(--text); font-size: 16.5px; margin: 24px 0 9px; }
.article h3:first-child { margin-top: 0; }
.article p { margin: 0 0 11px; }
.article b { color: var(--text); }
.ledger { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden; }
.ledger li { display: flex; align-items: center; gap: 13px; padding: 12px 15.5px; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger div { flex: 1; min-width: 0; line-height: 1.35; }
.ledger small { display: block; color: var(--muted); font-size: 14px; }
.ledger em { font-style: normal; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ledger em.pos { color: var(--green); }
.ledger .total { background: var(--item); }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 11px; }
.howto li { counter-increment: s; display: flex; gap: 13px; }
.howto li::before { content: counter(s); width: 26.5px; height: 26.5px; border-radius: 50%; background: var(--item-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text); flex: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 9px 0 0; }
.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li { display: flex; gap: 13px; padding: 15.5px 20px; border-bottom: 1px solid var(--line); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list .n { width: 26.5px; height: 26.5px; border-radius: 7.5px; background: var(--item-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.rules-list div { line-height: 1.45; }
.rules-list b { display: block; margin-bottom: 2px; }
.rules-list span { color: var(--muted); }
.rules-list .neg .n { background: rgba(244,33,46,.14); color: #ff6b75; }
.rules-list .neg span { color: #ff8a92; }

.loader { display: flex; gap: 6.5px; padding: 22px; justify-content: center; }
.loader span { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.loader span:nth-child(2) { animation-delay: .15s; } .loader span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- responsive ---------- */
@media (max-width: 1452px) { .g-dash { grid-template-columns: 352px minmax(0, 1fr); } .g-dash > .dash-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .g-dash, .g-side { grid-template-columns: minmax(0, 1fr); }
  .g-dash > .dash-right { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 946px) {
  .side { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); display: none; }
  .scrim.open { display: block; }
  .top .menu-btn { display: grid; }
  .top { padding: 0 13px; gap: 9px; }
  .ca { max-width: 165px; }
  .mode { display: none; }
  .user-chip span { display: none; }
  .page { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =========================================================
   Detail pass: new components + visual polish
   ========================================================= */

/* surfaces: soft top light on every panel */
.panel, .kpi {
  background:
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0) 90px),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.4);
}
.panel { transition: border-color .2s; }
.panel-head { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29,155,240,.07), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(0,186,124,.05), transparent 60%);
}

/* sidebar: active indicator + nicer primary */
.menu a { position: relative; }
.menu a.on::before { content: ''; position: absolute; left: -13px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); box-shadow: 0 0 12px rgba(29,155,240,.6); }
.menu a.on svg { color: var(--blue); }
.btn-primary { background: linear-gradient(180deg, #fff, #dfe3e8); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px -6px rgba(255,255,255,.25); }
.btn-primary:hover { background: #fff; }
.btn:focus-visible, .pg:focus-visible, .link:focus-visible, .ulink:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.side .btn-block { white-space: normal; height: auto; min-height: 42px; padding: 8px 12px; line-height: 1.25; text-align: center; }

/* kpis: accent icon + subtle glow line */
.kpi { position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(29,155,240,.5), transparent); opacity: .5; }
.kpi span svg { color: var(--blue); }
.kpi b { transition: color .3s; }
.kpi b.bump, .stat-grid b.bump, [data-stat].bump { color: var(--green); }

/* profile links */
.ulink { color: inherit; text-decoration: none; }
.ulink:hover { text-decoration: underline; text-underline-offset: 2px; }
.ulink.av-link:hover, .user-chip.ulink:hover { text-decoration: none; }
.av-link { border-radius: 50%; display: block; flex: none; transition: box-shadow .15s; }
.av-link:hover { box-shadow: 0 0 0 2px var(--blue); }
.post-head .ulink.name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-head .ulink.handle { color: var(--muted); }
td .ulink.u { display: flex; align-items: center; gap: 9px; }
td .ulink.u:hover b { text-decoration: underline; }
.user-chip:hover { border-color: #3a3f47; }

/* receive breakdown */
.receive { display: flex; flex-direction: column; gap: 8px; }
.receive-total { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-size: 13.5px; color: var(--muted); }
.receive-total b { color: var(--green); font-size: 16.5px; font-variant-numeric: tabular-nums; }
.get-line { transition: border-color .15s, background .15s; }
.get-line:hover { border-color: var(--line-2); background: var(--item-2); }
.get-line b { font-variant-numeric: tabular-nums; }

/* stepper descriptions */
.step-desc { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.step.active .step-desc { color: var(--text-2); }
.step.active .step-n { box-shadow: 0 0 0 4px rgba(255,255,255,.08); }

/* toolbar + pagination */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 15px 0; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 200px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager-hidden { display: none; }
.pager-info { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: 4px; }
.pg { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--item); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s, color .12s; }
.pg:hover:not([disabled]):not(.on) { border-color: #3a3f47; color: var(--text); }
.pg.on { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.pg[disabled] { opacity: .35; cursor: not-allowed; }
.pg-gap { color: var(--muted); padding: 0 4px; }
.toolbar .pager { flex: none; }
.toolbar .pager-info { display: none; }

/* tables */
thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td a.tx { display: inline-flex; align-items: center; gap: 5px; }
td a.tx svg { width: 12px; height: 12px; opacity: .7; }
td a.tx:hover { text-decoration: underline; }

/* chips get a status dot */
.chip.green::before, .chip.blue::before, .chip.orange::before, .chip.red::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }

/* posts: left accent by status */
.post { position: relative; }
.post:hover { background: var(--item-2); }

/* profile */
.profile-head { overflow: hidden; }
.profile-head::before {
  content: ''; display: block; height: 96px;
  background:
    radial-gradient(420px 120px at 20% 0%, rgba(29,155,240,.35), transparent 70%),
    radial-gradient(360px 140px at 85% 10%, rgba(167,139,250,.28), transparent 70%),
    linear-gradient(180deg, #12151b, var(--panel));
  border-bottom: 1px solid var(--line);
}
.profile-top { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px 18px; margin-top: -38px; flex-wrap: wrap; }
.av.xl { width: 84px; height: 84px; font-size: 32px; border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.profile-id { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; padding-bottom: 2px; }
.profile-id h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.profile-meta b { color: var(--text); }
.profile-actions { padding-bottom: 4px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* skeleton loading */
.loader { display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.loader span { display: block; width: auto; height: 14px; border-radius: 7px; animation: none;
  background: linear-gradient(90deg, var(--item) 0%, var(--item-2) 40%, var(--item) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.loader span:nth-child(1) { width: 70%; } .loader span:nth-child(2) { width: 92%; } .loader span:nth-child(3) { width: 48%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* empty states */
.empty::before { content: ''; display: block; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px; background: var(--item-2) url("/img/mark-muted.png?v=bag") center / 20px no-repeat; }

/* top bar live dot next to title */
.top-title::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 10px; vertical-align: 2px; animation: pulseg 2s infinite; }

@media (max-width: 946px) { .profile-top { margin-top: -30px; } .av.xl { width: 68px; height: 68px; } }

/* ---------- fee flow diagram ---------- */
.flow { padding: 18px 16px 8px; overflow-x: auto; }
.flow svg { display: block; width: 100%; min-width: 720px; height: auto; }
.fl-line { fill: none; stroke: #2a2e35; stroke-width: 2; stroke-linecap: round; }
.fl-line-sol { stroke: #3a3450; }
.fl-line-tok { stroke: #3d4148; }
.fl-line-both { stroke: #2e3a36; }
.fl-coin use { filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.fl-card-bg { fill: #121418; stroke: #2a2e35; stroke-width: 1.2; }
.fl-tile { fill: #1b1e24; }
.fl-card svg { color: var(--text); }
.fl-purple .fl-tile { fill: rgba(167,139,250,.14); } .fl-purple svg { color: var(--purple); }
.fl-orange .fl-tile { fill: rgba(255,122,69,.14); } .fl-orange svg { color: var(--orange); }
.fl-green .fl-tile { fill: rgba(0,186,124,.14); } .fl-green svg { color: var(--green); }
.fl-green .fl-card-bg { stroke: rgba(0,186,124,.35); }
.fl-title { font: 700 14px var(--font); fill: var(--text); }
.fl-sub { font: 500 11.5px var(--font); fill: var(--muted); }
.fl-stat { font: 700 13px var(--font); fill: var(--text-2); font-variant-numeric: tabular-nums; }
.fl-stat.bump { fill: var(--green); }
.fl-pill rect { fill: #0f1013; stroke: #2a2e35; }
.fl-pill text { font: 600 11.5px var(--font); fill: var(--text-2); }
.fl-pill-sol rect { stroke: rgba(153,69,255,.45); } .fl-pill-sol text { fill: #c7b3ff; }
.fl-pill-tok rect { stroke: rgba(230,232,235,.35); } .fl-pill-tok text { fill: var(--text); }
@media (prefers-reduced-motion: reduce) { .fl-coin { display: none; } }

/* ---------- silver icon system (Lucide, one weight, no colour fills) ---------- */
:root { --silver: #c3c8d0; --silver-2: #8f96a1; }
.tile, .tile-green, .tile-blue, .tile-purple, .tile-orange {
  background: linear-gradient(180deg, #1d2025, #15171b);
  color: var(--silver);
  box-shadow: inset 0 0 0 1px #2c3036, inset 0 1px 0 rgba(255,255,255,.06);
}
.tile svg { width: 15px; height: 15px; }
.menu a svg, .side-foot a svg, .kpi span svg, .callout svg, .checklist li svg, .search svg, .ca svg { color: var(--silver-2); }
.menu a:hover svg, .menu a.on svg { color: var(--silver); }
.menu a.on::before { background: var(--silver); box-shadow: 0 0 10px rgba(195,200,208,.35); }
.checklist li svg { color: var(--silver); }
.checklist li.neg svg { color: #ff6b75; }
.callout.warn svg { color: #ff6b75; }
.kpi::after { background: linear-gradient(90deg, transparent, rgba(195,200,208,.35), transparent); }
.fl-tile, .fl-purple .fl-tile, .fl-orange .fl-tile, .fl-green .fl-tile { fill: #1a1d22; stroke: #2c3036; stroke-width: 1; }
.fl-card svg, .fl-purple svg, .fl-orange svg, .fl-green svg { color: var(--silver); }
.fl-green .fl-card-bg { stroke: #3a3f47; }

/* ---------- MCAP ticker ---------- */
.mcap { display: flex; align-items: center; gap: 8px; height: 37px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); white-space: nowrap; }
.mcap-k { font: 700 11.5px var(--mono); color: var(--muted); letter-spacing: .04em; }
.mcap-v { font: 700 15px var(--font); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 62px; }
.mcap-chg { font: 600 12.5px var(--font); font-variant-numeric: tabular-nums; }
.mcap-chg.up { color: var(--green); }
.mcap-chg.down { color: #ff6b75; }
@media (max-width: 946px) { .mcap-k, .mcap-chg { display: none; } .mcap { padding: 0 9px; } }

/* ---------- brightness pass ---------- */
:root {
  --panel: #121418;
  --item: #171a1f;
  --item-2: #1e2227;
  --line: #24282e;
  --line-2: #30353d;
  --text: #f0f2f5;
  --text-2: #c8cdd5;
  --muted: #929aa5;
  --silver: #d4d8df;
  --silver-2: #a4abb6;
}
.fl-card-bg { fill: #16191e; stroke: #353a42; }
.fl-line { stroke: #353a42; }
.fl-line-sol { stroke: #463f63; }
.fl-sub { fill: #9aa1ac; }

/* wallet logos */
.wallet-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line-2); }

/* treasury activity: plain white label with a silver icon, no coloured chips */
.act-type { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.act-type .tile { width: 28px; height: 28px; }
.act-type .tile svg { width: 14px; height: 14px; }
td.muted-2 { color: var(--text-2); }
td a.tx { color: var(--silver); }
td a.tx:hover { color: var(--text); }

/* ---------- overview ---------- */
.ov-intro { padding: 30px 30px 28px; margin-bottom: 16px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(212,216,223,.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 120px),
    var(--panel); }
.ov-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 13px var(--mono); color: var(--silver-2); letter-spacing: .02em; }
.ov-kicker svg { width: 16px; height: 16px; color: var(--silver); }
.ov-intro h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; max-width: 780px; margin-bottom: 14px; }
.ov-lead { margin: 0 0 22px; max-width: 700px; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.ov-lead b { color: var(--text); }
.flow-wrap-gap, .ov-intro + .kpis { margin-bottom: 16px; }
.ov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.ov-card { padding: 18px; gap: 10px; }
.ov-card .tile { width: 34px; height: 34px; }
.ov-card .tile svg { width: 17px; height: 17px; }
.ov-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; }
.ov-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.ov-split { grid-template-columns: 1fr 1fr; }
@media (max-width: 1250px) { .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ov-grid, .ov-split { grid-template-columns: 1fr; } .ov-intro { padding: 22px 18px; } }

/* =========================================================
   Posts rendered like X
   ========================================================= */
.feed { padding: 0; gap: 0; }
.feed > .empty { border: 0; }
.x-post { padding: 12px 16px 6px; border-bottom: 1px solid var(--line); transition: background .15s; animation: none; list-style: none; }
.x-post:last-child { border-bottom: 0; }
.x-post:hover { background: rgba(255,255,255,.02); }
.x-social { display: flex; align-items: center; gap: 8px; margin: 0 0 4px 32px; font-size: 13px; font-weight: 700; color: var(--muted); }
.x-social-ico { width: 16px; display: grid; place-items: center; }
.x-social-ico svg { width: 14px; height: 14px; }
.x-row { display: flex; gap: 12px; }
.x-row > .av-link .av { width: 42px; height: 42px; font-size: 16px; }
.x-main { flex: 1; min-width: 0; }
.x-head { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; line-height: 20px; }
.x-name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.x-verified { display: inline-grid; place-items: center; color: #1d9bf0; flex: none; }
.x-verified svg { width: 17px; height: 17px; fill: #1d9bf0; stroke: #fff; stroke-width: 2.2; }
.x-handle, .x-dot, .x-time { color: var(--muted); white-space: nowrap; }
.x-handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.x-time:hover { text-decoration: underline; }
.x-open { margin-left: auto; color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.x-open svg { width: 14px; height: 14px; }
.x-open:hover { background: rgba(29,155,240,.1); color: #1d9bf0; }
.x-text { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 20px; color: var(--text); margin-top: 2px; }
.x-text .hl, .x-text .code { color: #1d9bf0; }
.x-text a.hl:hover { text-decoration: underline; }
.x-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.x-more { background: none; border: 0; padding: 0; margin-top: 2px; color: #1d9bf0; font: inherit; font-size: 15px; cursor: pointer; }
.x-more:hover { text-decoration: underline; }

.x-media { display: grid; gap: 2px; margin-top: 12px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; max-height: 510px; }
.x-media.n1 { grid-template-columns: 1fr; }
.x-media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.x-media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.x-media.n3 .x-media-cell:first-child { grid-row: span 2; }
.x-media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.x-media-cell { position: relative; display: block; min-height: 0; background: #0b0c0e; }
.x-media-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.x-media-cell:hover img { filter: brightness(.92); }
.x-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: #1d9bf0; display: grid; place-items: center; color: #fff; border: 4px solid #fff; }
.x-play svg { width: 22px; height: 22px; fill: #fff; }

.x-actions { display: flex; justify-content: space-between; align-items: center; max-width: 440px; margin: 8px 0 0 -8px; }
.x-act { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; font-variant-numeric: tabular-nums; }
.x-act-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .15s, color .15s; }
.x-act-ico svg { width: 18px; height: 18px; }
.x-act-n { min-width: 24px; padding-left: 2px; transition: color .15s; }
.x-reply:hover, .x-views:hover, .x-share:hover { color: #1d9bf0; }
.x-reply:hover .x-act-ico, .x-views:hover .x-act-ico, .x-share:hover .x-act-ico { background: rgba(29,155,240,.1); }
.x-repost:hover { color: #00ba7c; } .x-repost:hover .x-act-ico { background: rgba(0,186,124,.1); }
.x-like:hover { color: #f91880; } .x-like:hover .x-act-ico { background: rgba(249,24,128,.1); }
.x-share.copied { color: #00ba7c; }
@media (max-width: 760px) { .x-post { padding: 12px 12px 4px; } .x-social { margin-left: 30px; } .x-row > .av-link .av { width: 38px; height: 38px; } }
.feed-x { max-width: 640px; margin: 0 auto; width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.x-verified svg { fill: none; stroke: none; }
.g-posts { grid-template-columns: minmax(0, 660px) 340px; justify-content: center; }
.g-posts .feed-x { max-width: none; border-left: 0; border-right: 0; }
@media (max-width: 1100px) { .g-posts { grid-template-columns: minmax(0, 1fr); } }
.g-posts > .stack { position: sticky; top: 76px; }

/* =========================================================
   THEME v2: flat, one accent, mono for meta and numbers.
   Layout is unchanged; this layer only restyles.
   ========================================================= */
:root {
  --bg: #07080a;
  --side: #0a0b0d;
  --panel: #0d0e11;
  --item: #121317;
  --item-2: #17191e;
  --line: #1b1d22;
  --line-2: #26292f;
  --text: #eceef1;
  --text-2: #b9bec6;
  --muted: #7d838d;
  --accent: #5b8cff;
  --accent-soft: rgba(91,140,255,.12);
  --green: #2fcf8a;
  --red: #ff5c67;
  --blue: #5b8cff;
  --silver: #cfd3da;
  --silver-2: #8a9099;
  --r: 12px;
  --r-sm: 9px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}
body { font-size: 14.5px; letter-spacing: -.005em; }
body::before { display: none; }

/* flat surfaces: no gradients, glows or inner light */
.panel, .kpi, .ov-intro { background: var(--panel); box-shadow: none; border-color: var(--line); }
.panel-head { background: none; border-bottom-color: var(--line); min-height: 50px; padding: 0 16px; gap: 10px; }
.panel-head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.panel-head .tile { background: none; box-shadow: none; width: auto; height: auto; color: var(--silver-2); }
.panel-head .tile svg { width: 16px; height: 16px; }
.panel-foot { border-top-color: var(--line); }
.kpi::after { display: none; }
.tile, .tile-green, .tile-blue, .tile-purple, .tile-orange { background: var(--item); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--silver); }

/* sidebar */
.side { background: var(--side); border-right-color: var(--line); }
.menu a { color: var(--silver-2); font-weight: 500; }
.menu a:hover { background: var(--item); color: var(--text); }
.menu a.on { background: var(--item); border-color: transparent; color: var(--text); font-weight: 600; }
.menu a.on::before { background: var(--accent); box-shadow: none; width: 2px; left: -13px; }
.menu a.on svg { color: var(--text); }
.brand em { font-family: var(--mono); border-color: var(--line-2); color: var(--muted); }
.side-foot { border-top-color: var(--line); }

/* top bar */
.top { background: rgba(7,8,10,.85); border-bottom-color: var(--line); }
.top-title { font-size: 15px; font-weight: 650; }
.top-title::after { display: none; }
.ca, .mcap { background: transparent; border-color: var(--line-2); border-radius: 999px; height: 34px; }
.ca-k, .mcap-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.ca-v { font-family: var(--mono); font-size: 12px; }
.mcap-v { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: -.02em; }
.mcap-chg { font-family: var(--mono); font-size: 11.5px; }
.mode { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); background: transparent; border-color: var(--line-2); border-radius: 999px; padding: 5px 10px; }
.user-chip { border-color: var(--line-2); }

/* buttons: pills */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: #f2f3f5; color: #0a0b0d; box-shadow: none; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--item); border-color: #34383f; }
.side .btn-block { border-radius: 999px; min-height: 40px; }
.icon-btn { border-radius: 999px; background: transparent; border-color: var(--line-2); }
.link, .x-more, .box-more { color: var(--accent); }
.btn:focus-visible, .pg:focus-visible, .link:focus-visible, .ulink:focus-visible, .input:focus { outline-color: var(--accent); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* meta labels + numbers in mono */
.kpi span { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi span svg { width: 13px; height: 13px; color: var(--muted); }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.stat-grid span, .next-line span, .receive-total span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stat-grid b, .next-line b, .row .amt b, .row .amt span, td.num, .pager-info, .pg, .fl-stat, .fl-pill text, .legend li b, .receipt b, .get-line div span, .x-act-n, .q b, .kv b { font-family: var(--mono); letter-spacing: -.02em; }
.row .amt b { font-weight: 600; font-size: 13.5px; }
.row .rank { background: transparent; color: var(--accent); font-family: var(--mono); font-size: 12px; width: 18px; }
.live { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live i { animation: none; background: var(--green); box-shadow: 0 0 0 3px rgba(47,207,138,.15); }

/* chips: mono, outline only, no dots */
.chip { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; border-radius: 999px; padding: 2px 9px; background: transparent; border-color: var(--line-2); color: var(--muted); }
.chip.green, .chip.blue, .chip.orange, .chip.red { background: transparent; }
.chip.green { color: var(--green); border-color: rgba(47,207,138,.3); }
.chip.blue { color: var(--accent); border-color: rgba(91,140,255,.3); }
.chip.orange { color: #ffa36b; border-color: rgba(255,163,107,.3); }
.chip.red { color: var(--red); border-color: rgba(255,92,103,.3); }
.chip.green::before, .chip.blue::before, .chip.orange::before, .chip.red::before { display: none; }
.badge { font-family: var(--mono); background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: rgba(47,207,138,.12); color: var(--green); }

/* tables */
thead th { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); background: var(--panel); padding-top: 12px; padding-bottom: 12px; }
td { border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
tbody tr:hover td { background: var(--item); }
td a.tx { font-family: var(--mono); color: var(--silver); }

/* lists, pager, search */
.row { border-radius: 8px; }
.row:hover { background: var(--item); }
.pg { border-radius: 999px; background: transparent; border-color: var(--line-2); font-size: 12px; }
.pg.on { background: #f2f3f5; color: #0a0b0d; border-color: #f2f3f5; }
.search .input { border-radius: 999px; background: transparent; }
.seg { border-radius: 999px; background: transparent; }
.seg button { border-radius: 999px; font-size: 12.5px; }
.seg button.on { background: var(--item-2); }

/* stepper */
.step.active .step-n { box-shadow: none; }
.step.done .step-n { background: transparent; color: var(--green); border-color: rgba(47,207,138,.5); }
.step.done::before { background: rgba(47,207,138,.3); }
.callout { background: transparent; border-color: var(--line-2); }
.callout.warn { background: rgba(255,92,103,.04); border-color: rgba(255,92,103,.25); }

/* overview */
.ov-intro { background: var(--panel); }
.ov-kicker { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.ov-intro h2 { font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.ov-intro h2 .accent { color: var(--accent); }
.ov-card { background: var(--panel); }
.ov-card .tile { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }

/* posts and flow stay flat too */
.x-post:hover { background: rgba(255,255,255,.015); }
.x-social { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fl-card-bg { fill: #101114; stroke: #262a30; }
.fl-green .fl-card-bg { stroke: #2d3138; }
.fl-tile, .fl-purple .fl-tile, .fl-orange .fl-tile, .fl-green .fl-tile { fill: transparent; stroke: #2a2e35; }
.fl-pill rect { fill: #0d0e11; }
.fl-pill text { font-family: var(--mono); font-size: 11px; }
.fl-title { font-weight: 650; }
.fl-sub { font-family: var(--mono); font-size: 10.5px; }

/* ---------- coin logos (ours / partner / SOL) ---------- */
.coin-logo { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); background: var(--item); }
.coin-logo svg { width: 55%; height: 55%; }
.coin-ours { background: #eceef1; color: #0a0b0d; }
.coin-sol { background: #0b0c0e; color: #b69cff; }
.coin-logo.xs { width: 16px; height: 16px; box-shadow: 0 0 0 1.5px var(--panel); }
.row .amt .coins { display: inline-flex; justify-content: flex-end; margin-top: 3px; }
.row .amt .coins .coin-logo + .coin-logo { margin-left: -4px; }
.get-line .coin-logo { width: 34px; height: 34px; }
.s-npc { background: #9aa0a8; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* =========================================================
   Top navigation (replaces the left sidebar)
   ========================================================= */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.side, .scrim, .menu-btn { display: none !important; }
.top { display: block; height: auto; padding: 0; gap: 0; position: sticky; top: 0; z-index: 30; background: rgba(7,8,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 62px; padding: 0 24px; max-width: 1528px; margin: 0 auto; }
.top .brand { padding: 0; gap: 9px; font-size: 16.5px; justify-self: start; }
.top .brand svg { width: 22px; height: 22px; color: var(--text); }
.top-right { display: flex; align-items: center; gap: 8px; justify-self: end; min-width: 0; }

.tabs { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.tabs > a, .more > summary { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; color: var(--silver-2); font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer; transition: color .12s, background .12s; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.tabs > a:hover, .more > summary:hover { color: var(--text); }
.tabs > a.on, .more > summary.on { color: var(--text); background: var(--item-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs .badge { margin-left: 0; font-size: 10.5px; padding: 1px 6px; }

.more { position: relative; }
.more > summary svg { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .15s; }
.more[open] > summary svg { transform: rotate(-90deg); }
.more[open] > summary { color: var(--text); }
.more-pop { position: absolute; top: calc(100% + 10px); right: -4px; width: 230px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); display: flex; flex-direction: column; }
.more-pop a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; }
.more-pop a:hover, .more-pop a.on { background: var(--item); color: var(--text); }
.more-pop a svg { width: 15px; height: 15px; color: var(--silver-2); }
.more-pop a .ext { width: 12px; height: 12px; margin-left: auto; }
.more-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.more-sep:last-child, .more-sep:has(+ a[hidden]:last-child) { display: none; }

.main { flex: 1; width: 100%; max-width: 1528px; margin: 0 auto; }
.page-title-row { padding: 22px 24px 0; }
.page-title-row .top-title { font-size: 22px; font-weight: 750; letter-spacing: -.025em; margin: 0; }
.page { padding: 18px 24px 28px; }

.foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font: 11.5px var(--mono); letter-spacing: .02em; max-width: 1528px; width: 100%; margin: 0 auto; }
.foot span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--silver-2); font-weight: 600; }
.foot svg { width: 14px; height: 14px; }

@media (max-width: 1180px) {
  .top-in { grid-template-columns: auto 1fr; height: auto; padding: 10px 16px; row-gap: 10px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .more-pop { right: auto; left: 0; }
}
@media (max-width: 700px) {
  .top .brand span { display: none; }
  .ca, .mode { display: none; }
  .page-title-row { padding: 16px 14px 0; }
  .page { padding: 14px 14px 24px; }
  .foot { padding: 14px; }
}
@media (max-width: 1180px) { .more-pop { position: fixed; top: 112px; left: 16px; right: auto; z-index: 40; } }
.top-in { grid-template-columns: auto minmax(0, 1fr) auto; }
.tabs { justify-self: center; }
@media (max-width: 1320px) { .mcap-k, .ca-k { display: none; } .ca { max-width: 150px; } }

/* ---------- referrals ---------- */
.s-team { background: #5b8cff; }
.s-ref { background: #f5c451; }
.reflink { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); min-width: 0; }
.reflink-k { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.reflink-v { flex: 1; min-width: 0; font: 600 14px var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.tips b { color: var(--text); }
td .green, span.green { color: var(--green); font-weight: 600; }
.sub-head { padding: 14px 16px 6px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- fee flow v3 (metro-style) ---------- */
.flow { padding: 14px 18px 10px; }
.flow svg { min-width: 900px; }
.fl-head { font: 600 10px var(--mono); letter-spacing: .12em; fill: var(--muted); }
.fl-line { stroke: #2b2f36; stroke-width: 1.6; fill: none; }
.fl-card-bg { fill: #111317; stroke: #2a2e35; stroke-width: 1; }
.fl-accent .fl-card-bg { stroke: #3b4150; fill: #13161b; }
.fl-side .fl-card-bg { stroke-dasharray: 3 3; }
.fl-title { font: 650 13.5px var(--font); fill: var(--text); }
.fl-sub { font: 500 10.5px var(--mono); fill: #8d949e; }
.fl-stat { font: 600 11.5px var(--mono); fill: var(--text-2); }
.fl-pill rect { fill: #0d0e11; stroke: #3a3450; }
.fl-pill text { font: 700 11.5px var(--mono); fill: #d8ccff; }

/* ---------- performance: no per-frame blur/filters, no idle infinite animations ---------- */
.top { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(7,8,10,.97) !important; }
.fl-coin use { filter: none !important; }
.live i, .top-title::after { animation: none !important; }
.flow svg { contain: layout paint; }
.panel, .kpi { contain: layout paint style; }
.x-media-cell img { content-visibility: auto; }
.x-post { content-visibility: auto; contain-intrinsic-size: auto 160px; }

/* ---------- profile header: X banner + bio ---------- */
.profile-head.has-banner::before { height: 170px; background: linear-gradient(180deg, rgba(7,8,10,0) 40%, var(--panel) 100%), var(--banner, none) center / cover no-repeat, #15171b; }
.profile-bio { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.45; max-width: 620px; white-space: pre-wrap; word-break: break-word; }

/* ---------- notifications: bell + toasts ---------- */
.bell { position: relative; }
.bell .icon-btn { position: relative; }
.bell .icon-btn svg { width: 17px; height: 17px; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent, var(--blue)); color: #fff; font: 600 10px/16px var(--mono); text-align: center; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; max-width: calc(100vw - 32px); max-height: 420px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.bell-head { padding: 8px 10px 6px; font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bell-empty { padding: 14px 10px; color: var(--muted); font-size: 13px; }
.nt-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }

.nt-item.unread { background: var(--item); }
.nt-item .tile { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--item-2); color: var(--silver, var(--text-2)); }
.nt-item .tile svg { width: 15px; height: 15px; }
.nt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.nt-body b { font-weight: 600; }
.nt-body span { color: var(--text-2); }
.nt-body small { color: var(--muted); font: 11px var(--mono); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { position: relative; pointer-events: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); animation: toast-in .18s ease-out; }
.toast .nt-item { padding: 12px 36px 12px 12px; }
.nt-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.nt-x:hover { color: var(--text); background: var(--item); }
.nt-x svg { width: 14px; height: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.nt-av { flex: none; }
.nt-av .av { width: 30px; height: 30px; }
.nt-who { color: var(--text); font-weight: 600; }
.nt-who:hover { text-decoration: underline; }
.nt-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.nt-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent, var(--blue)); text-decoration: none; }
.nt-link:hover { text-decoration: underline; }
.nt-link svg { width: 12px; height: 12px; }

/* project X account: top bar icon + footer link */
.x-top { flex: none; }
.x-top svg { width: 15px; height: 15px; }
.foot-x { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; }
.foot-x:hover { color: var(--text); }
.foot-x svg { width: 13px; height: 13px; }
.x-top[hidden], .foot-x[hidden] { display: none; }
.ca { white-space: nowrap; }
