/* GTAperps: a Hyperliquid-style terminal, recoloured to GTA VI's Leonida night (Vice teal = long, Vice pink = short,
   the VI sunset for primary actions). Inter Tight for display (medium weight, tight tracking, white + grey two-tone), Inter for the UI with tabular numbers. */
:root {
  --bg: #0B0716; --bg2: #0E0920; --pane: #110A21; --pane2: #160E2A; --hover: #1C1233;
  --line: #231735; --line2: #33244F;
  --ink: #F4EEFF; --mid: #CFC3EA; --dim: #9B8DBA; --faint: #6C5F8C;
  --long: #2EE6C1; --long-bg: rgba(46, 230, 193, .12); --short: #FF4D8B; --short-bg: rgba(255, 77, 139, .12);
  --gold: #FFC25E;
  --sun: linear-gradient(100deg, #7A3FBE 0%, #C03FA8 28%, #F0618A 52%, #FF8E5C 78%, #FFC25E 100%);
  --sun-ink: #1B0A2C;
  --r: 8px; --r2: 12px;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Inter Tight', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 13px/1.45 var(--ui); overflow-x: hidden; }
/* tabular figures only where numbers line up (Inter's tnum also widens the hyphen, which breaks words like Take-Two) */
.stats, .ch-meta, .book, .order-pane, table.t, .mk-row, .kv, .acct, .pfc, .cap-row, .wc .vw, .live-num b, .solpx, .lev-big, .presets, .row { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.up { color: var(--long); } .dn { color: var(--short); }
.dim { color: var(--dim); }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* header */
.top { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 16px; background: rgba(11, 7, 22, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--sun); opacity: .55; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 20px/1 var(--disp); letter-spacing: -.025em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--dim); font-weight: 500; font-size: 14px; letter-spacing: -.01em; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.solpx { display: flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 600; }
.solpx img { width: 14px; height: 14px; opacity: .85; }

.btn { height: 36px; padding: 0 16px; border-radius: var(--r); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: filter .15s, background .15s, opacity .15s; }
.btn.sun { background: var(--sun); color: var(--sun-ink); }
.btn.sun:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--pane2); border: 1px solid var(--line2); color: var(--ink); }
.btn.ghost:hover { background: var(--hover); }
.ca-pill { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: var(--r); background: var(--pane2); border: 1px solid var(--line2); font-size: 12px; white-space: nowrap; }
.ca-pill span { font-weight: 800; color: #FF9DBC; }
.ca-pill code { color: var(--mid); font-size: 12px; }
.ca-pill:hover { border-color: #C03FA8; }
.foot-ca { color: var(--dim); font-size: 12px; word-break: break-all; }
.btn.long { background: var(--long); color: #04221C; }
.btn.short { background: var(--short); color: #2A0414; }
.btn.big { width: 100%; height: 42px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn .acc { width: 18px; height: 18px; border-radius: 50%; }
.mini { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--pane2); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; color: var(--mid); }
.mini:hover { color: var(--ink); }
.chip { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(240, 97, 138, .14); color: #FF9DBC; }

/* ticker */
.ticker { display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.mkt-btn { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: var(--r); flex: none; }
.mkt-btn:hover { background: var(--hover); }
.mkt-btn img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: #1d1233; }
.mkt-id { font: 600 19px/1 var(--disp); letter-spacing: -.025em; }
.mkt-btn .chev { width: 12px; height: 12px; color: var(--dim); }
.stats { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.stats::-webkit-scrollbar { display: none; }
.st { display: flex; flex-direction: column; gap: 2px; flex: none; }
.st i { font-style: normal; color: var(--dim); font-size: 11px; font-weight: 600; text-decoration: underline dotted rgba(155, 141, 186, .5); text-underline-offset: 3px; }
.st b { font-weight: 600; font-size: 13px; }

/* terminal grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px 336px; grid-template-rows: minmax(420px, 1fr) 300px; grid-template-areas: 'chart book order' 'bottom bottom order';
  height: calc(100vh - 116px); min-height: 760px; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.pane { background: var(--pane); min-width: 0; min-height: 0; }
.chart-pane { grid-area: chart; display: flex; flex-direction: column; }
.book-pane { grid-area: book; display: flex; flex-direction: column; }
.order-pane { grid-area: order; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.bottom-pane { grid-area: bottom; display: flex; flex-direction: column; }

.ch-head { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ivals { display: flex; gap: 2px; }
.ivals button { height: 26px; min-width: 34px; padding: 0 7px; border-radius: 6px; color: var(--dim); font-weight: 700; font-size: 12px; }
.ivals button:hover { color: var(--ink); }
.ivals button.on { color: var(--ink); background: var(--pane2); }
.ch-meta { margin-left: auto; color: var(--dim); font-size: 12px; display: flex; gap: 14px; white-space: nowrap; overflow: hidden; }
.ch-meta b { color: var(--mid); font-weight: 600; }
.chart { position: relative; flex: 1; min-height: 0; }
.ch-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; pointer-events: none; text-align: center; padding: 20px; }
.ch-live { position: absolute; left: 14px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.ch-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--short); box-shadow: 0 0 0 0 rgba(255, 77, 139, .6); animation: ping 1.6s infinite; }
.ch-live span { font: 700 12px/1 var(--ui); color: var(--mid); letter-spacing: .04em; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 139, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 139, 0); } }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 38px; padding: 0 10px; color: var(--dim); font-weight: 700; font-size: 12.5px; position: relative; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--sun); border-radius: 2px; }
.tabs.sm button { height: 36px; }
.tabs button span { color: var(--faint); font-weight: 600; }

/* stream book */
.book { flex: 1; overflow-y: auto; min-height: 0; }
.bk-h { display: grid; grid-template-columns: 1fr auto; padding: 8px 12px 6px; color: var(--dim); font-size: 11px; font-weight: 600; position: sticky; top: 0; background: var(--pane); z-index: 2; }
.bk-total { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bk-total b { display: block; font: 600 24px/1.1 var(--disp); letter-spacing: -.035em; }
.bk-total span { color: var(--dim); font-size: 11.5px; }
.bk-row { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 30px; padding: 0 12px; font-size: 12.5px; cursor: default; }
.bk-row .bar { position: absolute; right: 0; top: 3px; bottom: 3px; background: var(--long-bg); border-radius: 3px 0 0 3px; pointer-events: none; }
.bk-row img { width: 22px; height: 22px; border-radius: 50%; position: relative; }
.bk-row .nm { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bk-row .v { position: relative; font-weight: 600; color: var(--mid); }
.bk-row.mk { cursor: pointer; }
.bk-row.mk:hover { background: var(--hover); }
.bk-row.mk .nm::after { content: 'PERP'; margin-left: 6px; font-size: 9.5px; font-weight: 800; color: #FF9DBC; letter-spacing: .04em; }
.bk-row.cur { background: rgba(240, 97, 138, .08); }
.tp-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 5px 12px; font-size: 12px; }
.tp-row span:last-child { color: var(--dim); }
.empty { padding: 26px 16px; color: var(--dim); text-align: center; font-size: 12.5px; }
.feed-card { margin: 12px; padding: 12px; border-radius: var(--r); background: var(--pane2); border: 1px solid var(--line); }
.feed-card h4 { margin: 0 0 6px; font: 600 15px var(--disp); letter-spacing: -.02em; }
.feed-card p { margin: 0; color: var(--dim); font-size: 12px; }
.stream-hero { margin: 10px 12px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.stream-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stream-hero .tag { position: absolute; left: 8px; top: 8px; background: #E91916; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.stream-hero .t { padding: 8px 10px; font-size: 12px; color: var(--mid); background: var(--pane2); }

/* order panel */
.op-top { display: flex; gap: 8px; }
.pill { flex: 1; height: 32px; border-radius: var(--r); background: var(--pane2); border: 1px solid var(--line2); font-weight: 700; font-size: 12.5px; }
.pill:hover { background: var(--hover); }
.order-pane .tabs { padding: 0; }
.sides { display: grid; grid-template-columns: 1fr 1fr; background: var(--pane2); border-radius: var(--r); padding: 3px; gap: 3px; }
.sides button { height: 32px; border-radius: 6px; font-weight: 700; color: var(--dim); }
.sides button.on.long { background: var(--long); color: #04221C; }
.sides button.on.short { background: var(--short); color: #2A0414; }
.row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.row.dim span { color: var(--dim); }
.field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line2); transition: border-color .15s; }
.field:focus-within { border-color: #C03FA8; }
.field span { color: var(--dim); font-size: 12px; font-weight: 600; flex: none; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; text-align: right; font-weight: 700; font-size: 14px; }
.field em { font-style: normal; color: var(--mid); font-weight: 700; font-size: 12px; flex: none; }
.slider { position: relative; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 10px; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #C03FA8 var(--p, 0%), var(--line2) var(--p, 0%)); outline: 0; position: relative; z-index: 2; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #C03FA8; cursor: pointer; }
.slider input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #C03FA8; cursor: pointer; }
.slider .ticks { position: absolute; left: 0; right: 54px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.slider .ticks i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.slider b { text-align: right; font-size: 12px; color: var(--mid); }
.checks { display: flex; flex-direction: column; gap: 8px; }
.ck { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--mid); user-select: none; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck span { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ck input:checked + span { background: #C03FA8; border-color: #C03FA8; }
.ck input:checked + span::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-1px); }
.tpsl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 10px; }
.kv div, .acct div { display: flex; justify-content: space-between; font-size: 12.5px; }
.kv span, .acct span { color: var(--dim); }
.kv b, .acct b { font-weight: 600; }
.vault-note { font-size: 12px; color: var(--mid); background: rgba(255, 194, 94, .08); border: 1px solid rgba(255, 194, 94, .22); border-radius: var(--r); padding: 9px 10px; }
.acct { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.acct-h { font: 600 15px var(--disp); letter-spacing: -.02em; }
.acct-b { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* bottom tables */
.tbl-wrap { flex: 1; overflow: auto; min-height: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
table.t th { position: sticky; top: 0; background: var(--pane); color: var(--dim); font-weight: 600; text-align: left; padding: 8px 12px; font-size: 11.5px; white-space: nowrap; z-index: 1; }
table.t td { padding: 7px 12px; border-top: 1px solid rgba(35, 23, 53, .7); white-space: nowrap; }
table.t tr:hover td { background: rgba(28, 18, 51, .5); }
.cell-mk { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cell-mk img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.cell-mk .lev { font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 4px; }
.lev.long { background: var(--long-bg); color: var(--long); } .lev.short { background: var(--short-bg); color: var(--short); }
.tlink { color: #FF9DBC; font-weight: 700; }
.tlink:hover { text-decoration: underline; }
.acts { display: flex; gap: 6px; }

/* live section */
.live-sec { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.live-bg { position: absolute; inset: 0; }
.live-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.15); }
.live-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 7, 22, .55) 0%, rgba(11, 7, 22, .82) 46%, var(--bg) 100%); }
.live-in { position: relative; max-width: 1360px; margin: 0 auto; padding: 88px 24px 80px; }
.live-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.live-num b { font: 600 clamp(60px, 9.6vw, 144px)/.92 var(--disp); letter-spacing: -.06em; padding-right: .04em; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-num span { font: 500 clamp(22px, 2.7vw, 36px)/1.08 var(--disp); letter-spacing: -.04em; max-width: 560px; }
.live-num span i, .live-sub i, .how h2 i { font-style: normal; color: #8F84AE; }
.live-sub { color: var(--ink); font: 500 18px/1.4 var(--disp); letter-spacing: -.02em; max-width: 660px; margin: 22px 0 44px; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wc { position: relative; border-radius: var(--r2); overflow: hidden; background: var(--pane); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.wc:hover { transform: translateY(-2px); border-color: var(--line2); }
.wc .th { display: block; position: relative; aspect-ratio: 16 / 9; background: #120a22; overflow: hidden; }
.wc .th img { width: 100%; height: 100%; object-fit: cover; }
.wc .th .live { position: absolute; left: 8px; top: 8px; background: #E91916; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.wc .th .vw { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.wc .meta { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px 12px; }
.wc .meta img { width: 30px; height: 30px; border-radius: 50%; }
.wc .meta b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc .meta span { display: block; font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc .trade { height: 28px; padding: 0 10px; border-radius: 6px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: 11.5px; }

/* how */
.how { max-width: 1360px; margin: 0 auto; padding: 84px 24px; }
.how h2 { font: 500 clamp(38px, 4.8vw, 68px)/1 var(--disp); letter-spacing: -.055em; margin: 0 0 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.hw { background: var(--pane); padding: 26px 24px 28px; }
.hw h3 { font: 600 19px/1.2 var(--disp); letter-spacing: -.03em; margin: 0 0 10px; }
.hw p { margin: 0; color: #A397C2; font-size: 14px; line-height: 1.6; letter-spacing: -.005em; }
.hw-mk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hw-mk li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hw-mk li img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.hw-mk li b { font-weight: 700; }
.hw-mk li span { color: var(--dim); font-size: 12px; }
.hw-mk li em { font-style: normal; font-weight: 800; font-size: 12px; color: #FF9DBC; }

/* coin */
.coin { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.coin-in { max-width: 1360px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.coin-in > img { width: 52px; height: 52px; }
.coin-t b { display: block; font: 700 24px/1 var(--disp); letter-spacing: .01em; }
.coin-t span { color: var(--dim); font-size: 13px; }
.coin-ca { display: flex; align-items: center; gap: 10px; background: var(--pane); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px 6px 6px 12px; min-width: 0; max-width: 100%; }
.coin-ca code { font-size: 12.5px; color: var(--mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.coin-links { display: flex; gap: 10px; margin-left: auto; }
.coin-links a { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r); background: var(--pane); border: 1px solid var(--line2); font-weight: 700; font-size: 12.5px; }
.coin-links a img { width: 16px; height: 16px; border-radius: 4px; }
.coin-stat { display: flex; gap: 18px; color: var(--dim); font-size: 12.5px; }
.coin-stat b { color: var(--ink); font-weight: 700; }

/* pages */
.page-h { max-width: 1360px; margin: 0 auto; padding: 44px 24px 22px; }
.page-h h1 { font: 500 52px/1 var(--disp); letter-spacing: -.055em; margin: 0 0 10px; }
.page-h p { margin: 0; color: var(--dim); font-size: 15px; }
#vMarkets > .pane, #vPortfolio > .pane { max-width: 1360px; margin: 0 auto 60px; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
#vMarkets .tbl-wrap { max-height: none; }
.vault-grid { max-width: 1360px; margin: 0 auto 60px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vbox { border: 1px solid var(--line); border-radius: var(--r2); padding: 22px; }
.vbox h3 { font: 600 18px var(--disp); letter-spacing: -.03em; margin: 0 0 10px; }
.vbox h3 + * { margin-top: 0; }
.vbox p { font-size: 13.5px; }
.vbox a { color: #FF9DBC; font-weight: 700; font-size: 13px; }
.flow { margin: 0 0 18px; padding-left: 18px; color: var(--mid); line-height: 1.8; }
.cap-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cap-row img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.cap-row .up, .cap-row .dn { font-weight: 700; }
.pf-cards { max-width: 1360px; margin: 0 auto 14px; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pfc { background: var(--pane); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 20px; }
.pfc span { color: var(--dim); font-size: 12px; font-weight: 600; }
.pfc b { display: block; font: 600 28px/1.2 var(--disp); letter-spacing: -.04em; margin-top: 4px; }
#vPortfolio > .pane { margin-left: 24px; margin-right: 24px; }
@media (min-width: 1408px) { #vPortfolio > .pane { margin-left: auto; margin-right: auto; } }

/* footer */
.foot { background: var(--bg); }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 42px 24px 56px; display: grid; gap: 10px; }
.foot-in .brand img { width: 34px; height: 34px; }
.foot p { margin: 0; color: var(--mid); }
.foot .fine { color: var(--faint); font-size: 12px; max-width: 760px; }
.foot-l { display: flex; gap: 16px; margin-top: 6px; }
.foot-l a { color: var(--dim); font-weight: 700; }
.foot-l a:hover { color: var(--ink); }

/* sheets + modals */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(5, 2, 12, .62); backdrop-filter: blur(4px); display: grid; place-items: start center; padding: 72px 16px 16px; }
.sheet-card { width: 100%; max-width: 560px; background: var(--pane); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; }
.mk-card { max-width: 760px; }
.mk-search { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.mk-search input { flex: 1; height: 38px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line2); padding: 0 12px; outline: 0; }
.mk-search input:focus { border-color: #C03FA8; }
.x { width: 34px; height: 34px; border-radius: var(--r); background: var(--pane2); font-size: 20px; color: var(--dim); }
.x:hover { color: var(--ink); }
.mk-list { max-height: min(60vh, 560px); overflow-y: auto; }
.mk-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr .9fr .9fr 1fr; gap: 10px; align-items: center; padding: 9px 14px; font-size: 12.5px; cursor: pointer; }
.mk-row:hover, .mk-row.cur { background: var(--hover); }
.mk-row.h { cursor: default; color: var(--dim); font-size: 11.5px; font-weight: 600; position: sticky; top: 0; background: var(--pane); }
.mk-row.h:hover { background: var(--pane); }
.mk-row > :not(:first-child) { text-align: right; }
.modal-card { padding: 20px; max-width: 440px; }
.modal-card h3 { font: 600 22px var(--disp); letter-spacing: -.035em; margin: 0 0 6px; }
.modal-card p { color: var(--mid); margin: 0 0 14px; font-size: 13.5px; }
.modal-card .field { margin-bottom: 10px; }
.modal-card .btn.big { margin-top: 6px; }
.m-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.presets button { height: 32px; border-radius: 7px; background: var(--pane2); border: 1px solid var(--line2); font-weight: 700; font-size: 12px; }
.presets button:hover, .presets button.on { border-color: #C03FA8; }
.wl { display: flex; flex-direction: column; gap: 8px; }
.wo { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: var(--r); background: var(--pane2); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; }
.wo:hover { border-color: #C03FA8; }
.wo img { width: 28px; height: 28px; border-radius: 7px; }
.steps { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 9px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.steps li.run { color: var(--ink); } .steps li.run::before { border-color: #C03FA8; border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.ok { color: var(--ink); } .steps li.ok::before { background: var(--long); border-color: var(--long); }
@keyframes spin { to { transform: rotate(360deg); } }
.lev-big { font: 600 50px/1 var(--disp); letter-spacing: -.05em; text-align: center; margin: 10px 0 14px; }
.coins { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.coins button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--pane2); border: 1px solid var(--line2); font-weight: 700; font-size: 12px; }
.coins button.on { border-color: #C03FA8; background: rgba(192, 63, 168, .12); }
.coins button img { width: 16px; height: 16px; border-radius: 50%; }
.note { font-size: 12px; color: var(--dim); margin-top: 10px; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--pane2); border: 1px solid var(--line2); border-left: 3px solid #C03FA8; border-radius: var(--r); padding: 10px 12px; font-size: 13px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); animation: tin .25s ease-out; }
.toast.ok { border-left-color: var(--long); } .toast.bad { border-left-color: var(--short); }
.toast a { color: #FF9DBC; font-weight: 700; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* responsive */
@media (max-width: 1280px) {
  .grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 520px 300px 320px; grid-template-areas: 'chart order' 'book order' 'bottom bottom'; height: auto; min-height: 0; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .solpx { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px auto 340px 340px; grid-template-areas: 'chart' 'order' 'book' 'bottom'; }
  .order-pane { overflow: visible; }
  .acct { margin-top: 6px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-row { grid-template-columns: minmax(0, 1.5fr) 1fr .9fr; }
  .mk-row > :nth-child(4), .mk-row > :nth-child(5) { display: none; }
}
@media (max-width: 560px) {
  .top { gap: 12px; padding: 0 12px; }
  .brand span { font-size: 17px; }
  .ticker { height: auto; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px 10px; }
  .mkt-btn { align-self: flex-start; }
  .stats { gap: 18px; }
  .wall { grid-template-columns: minmax(0, 1fr); }
  .live-in { padding: 56px 16px 56px; }
  .how { padding: 60px 16px; }
  .coin-in { padding: 24px 16px; }
  .coin-links { margin-left: 0; }
  .page-h { padding: 32px 16px 18px; }
  .vault-grid, .pf-cards { padding: 0 16px; }
  #vPortfolio > .pane { margin-left: 16px; margin-right: 16px; }
  .foot-in { padding: 36px 16px 48px; }
}
