:root { --bg: #0b0c0e; --s1: #121417; --s2: #1a1d21; --s3: #22262b; --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --text: #eef0f3; --muted: rgba(238, 240, 243, .58); --gold: #f2c14e; --on-gold: #1a1404; --up: #3ce3ab; --down: #f23674; --serif: "Instrument Serif", Georgia, serif; --font: "Inter Tight", Inter, Arial, sans-serif; --mono: "DM Mono", ui-monospace, monospace; --r: 12px }
* { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { background: var(--bg); color-scheme: dark } body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh }
a { color: inherit; text-decoration: none; cursor: pointer } button, input { font: inherit; color: inherit } button { cursor: pointer; border: 0; background: none } em, i { font-style: normal }
.muted { color: var(--muted) } .mono { font-family: var(--mono) } .up { color: var(--up) } .down { color: var(--down) }
* { scrollbar-width: thin; scrollbar-color: rgba(242,193,78,.25) transparent }
.btn { height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); transition: opacity .15s, background .15s }
.btn.gold { background: var(--gold); color: var(--on-gold); border-color: transparent } .btn.gold:hover { opacity: .88 } .btn[disabled] { opacity: .4; cursor: not-allowed }
.btn.line:hover { background: rgba(255,255,255,.05) } .btn.sm { height: 32px; padding: 0 12px; font-size: 13px } .btn.wide { width: 100%; margin-top: 10px }

.top { position: sticky; top: 0; z-index: 10; height: 62px; display: flex; align-items: center; gap: 28px; padding: 0 20px; background: rgba(11,12,14,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line) }
.logo { display: flex; align-items: center; gap: 9px; font: 600 19px var(--font); letter-spacing: -.02em } .logo img { width: 26px; height: 26px; object-fit: contain } .logo span { transform: translateY(-1px) }
.top nav { display: flex; gap: 2px } .top nav a { height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 8px; color: var(--muted); font-weight: 500 } .top nav a.on { color: var(--text); background: var(--s2) } .top nav a:hover { color: var(--text) }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center }
.net { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: 13px } .net img { width: 16px; height: 16px }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 12px; padding: 12px; max-width: 1560px; margin: 0 auto; align-items: start }
.pane { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r) }
.pane-h { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.pane-h input { flex: 1; min-width: 160px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); outline: none } .pane-h input:focus { border-color: rgba(242,193,78,.5) }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line) } .seg a { flex: 1; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 7px; color: var(--muted); font-weight: 500; white-space: nowrap } .seg a.on { background: var(--s3); color: var(--text) }
.seg.big a { height: 40px; font-size: 15px } .seg.big a.on[data-s="sell"] { background: rgba(242,54,116,.14); color: var(--down) } .seg.big a.on[data-s="buy"] { background: rgba(60,227,171,.14); color: var(--up) }
.seg.sm a { height: 34px; font-size: 13px }

.thead, .row { display: grid; grid-template-columns: 84px minmax(120px, 1.2fr) 1fr 1fr 1fr .8fr 1fr; gap: 10px; align-items: center; padding: 0 16px }
.thead { height: 38px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line) } .r { text-align: right }
.row { min-height: 58px; border-bottom: 1px solid var(--line); font: 13px var(--mono); cursor: pointer; transition: background .12s } .row:hover, .row.on { background: rgba(255,255,255,.035) } .row.on { box-shadow: inset 2px 0 0 var(--gold) }
.row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.side-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 600 11px var(--font); width: max-content } .side-tag.sell { background: rgba(242,54,116,.12); color: var(--down) } .side-tag.buy { background: rgba(60,227,171,.12); color: var(--up) }
.coin { display: inline-flex; align-items: center; gap: 9px; font: 600 14px var(--font); min-width: 0 } .coin img { width: 24px; height: 24px; border-radius: 50%; background: var(--s3); object-fit: cover; flex: none }
.row small { display: block; color: var(--muted); font: 11px var(--font) }
.empty { padding: 70px 20px; text-align: center; color: var(--muted) } .empty b { display: block; font: 400 28px var(--serif); color: var(--text); margin-bottom: 6px } .empty .btn { margin-top: 18px }

.side-panel { position: sticky; top: 74px; padding: 16px; max-height: calc(100vh - 86px); overflow: auto }
.f { display: block; margin-top: 14px; position: relative } .f > span:first-child { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px }
.f .bal { position: absolute; right: 0; top: 0; font: 12px var(--mono); color: var(--muted); cursor: pointer }
.f > input, .in { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); outline: none } .f > input { padding: 0 14px; font: 13px var(--mono) } .f > input:focus, .in:focus-within { border-color: rgba(242,193,78,.5) }
.in { display: flex; align-items: center; padding-right: 8px } .in input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; outline: none; font: 400 20px var(--mono) } .unit { color: var(--muted); font: 13px var(--mono); padding-right: 6px }
.max { height: 30px; padding: 0 10px; border-radius: 7px; background: var(--s3); color: var(--gold); font-size: 12px; font-weight: 600 }
.pick { width: 100%; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-align: left } .pick:hover { border-color: var(--line2) }
.pick img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--s3) } .pick b { font-size: 15px } .pick small { margin-left: auto; color: var(--muted); font: 12px var(--mono) }
.car { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); margin-left: 6px }
.menu { margin-top: 6px; border: 1px solid var(--line2); border-radius: 10px; background: var(--s2); overflow: hidden }
.menu input { width: 100%; height: 42px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: none; outline: none; font: 13px var(--font) }
#menuList { max-height: 300px; overflow: auto } #menuList a { display: flex; align-items: center; gap: 10px; padding: 9px 12px } #menuList a:hover { background: var(--s3) }
#menuList img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--s3) } #menuList b { display: block; font-size: 14px } #menuList small { display: block; color: var(--muted); font-size: 11px }
#menuList .mc { margin-left: auto; text-align: right; font: 12px var(--mono) }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap } .quick a { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: 12px } .quick a:hover { color: var(--text); border-color: var(--line2) }
.sum { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px } .sum div { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line) } .sum div:last-child { border-bottom: 0 }
.sum span, .kv span { color: var(--muted); font-size: 13px } .sum b, .kv b { font: 500 13px var(--mono); text-align: right }
.tog { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer } .tog input { display: none }
.tog .sw { width: 40px; height: 24px; border-radius: 999px; background: var(--s3); position: relative; flex: none; transition: background .2s; margin-top: 1px } .tog .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s }
.tog input:checked + .sw { background: #8a6d22 } .tog input:checked + .sw::after { transform: translateX(16px) }
.tog b { display: block; font-weight: 600 } .tog small { display: block; color: var(--muted); font-size: 12px }
.go { width: 100%; height: 50px; margin-top: 18px; font-size: 15px }
.note { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center }

.back { color: var(--muted); font-size: 13px; padding: 4px 0 } .back:hover { color: var(--text) } .back::before { content: "‹ " }
.fh { display: flex; align-items: center; gap: 10px; margin-top: 12px } .fh .coin { font-size: 22px } .fh .coin img { width: 34px; height: 34px } .fh .mono { margin-left: auto }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px } .pay div { padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line) } .pay span { display: block; color: var(--muted); font-size: 12px } .pay b { display: block; font: 500 16px var(--mono); margin-top: 3px; word-break: break-all }

.mine { display: grid; gap: 10px; padding: 12px }
.mo { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg) }
.mo .t { display: flex; align-items: center; gap: 10px } .mo .d { color: var(--muted); font: 12px var(--mono) } .mo .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--s3); overflow: hidden } .mo .bar i { display: block; height: 100%; background: var(--gold) }
.mo .act { display: flex; gap: 6px }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--s2); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 18px; z-index: 40; transition: .25s; pointer-events: none; max-width: 92vw } .toast.on { opacity: 1; transform: translate(-50%, 0) } .toast.bad { border-color: rgba(242,54,116,.6) }

@media (max-width: 1100px) { .thead, .row { grid-template-columns: 76px minmax(110px, 1.2fr) 1fr 1fr .8fr 1fr } .hs { display: none } }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr } .side-panel { position: static; max-height: none } .top nav, .net { display: none } .thead { display: none } .row { grid-template-columns: 70px 1fr 1fr; padding: 12px 14px; row-gap: 4px } .row > span:nth-child(n+4) { display: none } }
