/* Kraken prototype — fixed 1200×760 canvas scaled by demo.js.
   Phone products (onboarding, Krak, Kraken, Wallet) show one live phone and the flow beside it;
   Pro fills the canvas as a desktop trading terminal. */
@font-face { font-family: "Inter"; src: url("../../../assets/fonts/Inter-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --k: #7132F5; --k-2: #8D5BFF; --k-soft: rgba(113,50,245,.16); --k-ink: #C9B5FF;
  --bg: #0B0B10; --bg-2: #121218; --s1: #17171F; --s2: #1F1F29; --s3: #2A2A36; --line: #262632;
  --ink: #F4F4F8; --ink-2: #B4B4C2; --ink-3: #7D7D8E;
  --up: #3BC46A; --up-bg: rgba(59,196,106,.14); --dn: #FB7273; --dn-bg: rgba(251,114,115,.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: var(--font); color: var(--ink); font-size: 12px; line-height: 1.4; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: center; }
[hidden] { display: none !important; }
svg.i { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--k-2); outline-offset: 2px; border-radius: 6px; }
.sp { flex: 1; }
.up { color: var(--up); } .dn { color: var(--dn); }

#stage { position: absolute; top: 0; left: 0; width: 1200px; height: 760px; transform-origin: 0 0; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(700px 420px at 24% 40%, rgba(113,50,245,.28), transparent 70%), var(--bg); }
.no-bar .bar { display: none; }

/* ================= product depth switcher ================= */
.bar { height: 56px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(11,11,16,.8); position: relative; z-index: 5; }
.bar__logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: 17px; letter-spacing: -.02em; color: #fff; }
.bar__logo svg { width: 22px; height: 22px; color: var(--k-2); }
.depth { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); margin-left: 28px; }
.depth button { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 14px; border-radius: 10px; min-width: 104px; transition: background-color .2s; }
.depth button b { font-size: 12.5px; font-weight: 650; }
.depth button small { font-size: 10px; color: var(--ink-3); }
.depth button:hover { background: var(--s2); }
.depth button.is-on { background: var(--k); }
.depth button.is-on small { color: rgba(255,255,255,.75); }
.depth__k { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); }
.depth__k i { width: 90px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3a3a48, var(--k-2)); }

.scene { flex: 1; min-height: 0; position: relative; display: flex; animation: fade .35s ease; }

/* ================= phone layout ================= */
.ph-wrap { width: 470px; flex: none; display: grid; place-items: center; }
.phone { width: 306px; height: 650px; border-radius: 46px; background: #050507; padding: 10px; box-shadow: 0 0 0 1.5px #3a3a44, 0 40px 80px rgba(0,0,0,.6), 0 0 120px rgba(113,50,245,.18); position: relative; }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 14px; background: #000; z-index: 6; }
.scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #0E0E14; display: flex; flex-direction: column; }
.scr__st { height: 44px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 12px; font-weight: 650; }
.scr__b { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 16px 12px; gap: 12px; overflow: hidden; animation: fade .3s ease; }
.scr__nav { height: 62px; flex: none; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--line); background: #0E0E14; }
.scr__nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--ink-3); }
.scr__nav span.on { color: #fff; }
.scr__nav svg { width: 18px; height: 18px; }
.scr__nav .trade { width: 44px; height: 44px; border-radius: 50%; background: var(--k); color: #fff; display: grid; place-items: center; margin-top: -6px; }
.p-top { display: flex; align-items: center; gap: 10px; }
.p-top .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, #8D5BFF, #3B1C9E); display: grid; place-items: center; color: #fff; }
.p-top .av svg { width: 16px; height: 16px; }
.p-top .ib { width: 30px; height: 30px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; color: var(--ink-2); }
.p-top h4 { font-size: 15px; font-weight: 700; }
.p-back { width: 30px; height: 30px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; }
.bal small { font-size: 12px; color: var(--ink-2); }
.bal b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.bal em { font-style: normal; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.bal em svg { width: 11px; height: 11px; }
.chips { display: flex; gap: 6px; }
.chips span, .chips button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; }
.chips .on { background: var(--s2); color: #fff; }
.alist { border-radius: 16px; background: var(--s1); padding: 4px 12px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
.coin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex: none; }
.arow b { display: block; font-size: 12.5px; font-weight: 600; }
.arow small { font-size: 10.5px; color: var(--ink-3); }
.arow .spk { width: 54px; height: 22px; }
.arow .px { margin-left: auto; text-align: right; }
.arow .px b { font-size: 12px; }
.arow .px small { font-weight: 600; }
.pbtn { height: 48px; border-radius: 24px; background: var(--k); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; flex: none; transition: background-color .2s, transform .1s; }
.pbtn:hover { background: #7f45ff; }
.pbtn.ghost { background: var(--s2); }
.pbtn.green { background: #2FA85B; }
.pbtn.is-flash { box-shadow: 0 0 0 3px #0E0E14, 0 0 0 5px var(--k-2); }
.pbtn svg { width: 16px; height: 16px; }

/* buy keypad */
.amt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.amt b { font-size: 56px; font-weight: 600; letter-spacing: -.03em; }
.amt b .caret { display: inline-block; width: 2px; height: 46px; background: var(--k-2); vertical-align: -6px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
.amt small { font-size: 12px; color: var(--ink-3); }
.amt .conv { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.freq { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.freq button { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--s2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.freq button.on { background: var(--k-soft); color: var(--k-ink); box-shadow: inset 0 0 0 1.5px var(--k-2); }
.freq.is-flash { animation: glow 1.4s ease 2; border-radius: 16px; }
.pay { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--s1); font-size: 11.5px; }
.pay .coin { width: 26px; height: 26px; font-size: 11px; }
.pay b { display: block; font-weight: 600; }
.pay small { color: var(--ink-3); font-size: 10.5px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.keys button { height: 40px; font-size: 20px; font-weight: 500; border-radius: 10px; }
.keys button:hover { background: var(--s1); }
.sheet { position: absolute; inset: auto 0 0 0; z-index: 4; border-radius: 26px 26px 0 0; background: #17171F; padding: 18px 18px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -20px 40px rgba(0,0,0,.5); animation: up .35s ease both; }
.sheet h5 { font-size: 15px; font-weight: 700; }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--s3); margin: -6px auto 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; font-size: 12px; }
.kv span { color: var(--ink-2); } .kv b { font-weight: 600; text-align: right; }
.kv .tot { padding-top: 8px; border-top: 1px solid var(--line); }
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; animation: pop .45s ease both; }
.done .big { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFC266, #F7931A 60%); display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; box-shadow: 0 0 0 10px rgba(247,147,26,.12), 0 0 0 22px rgba(247,147,26,.06); }
.done .big.ok { background: radial-gradient(circle at 35% 30%, #6FE39A, #2FA85B 60%); box-shadow: 0 0 0 10px rgba(59,196,106,.12), 0 0 0 22px rgba(59,196,106,.06); }
.done .big svg { width: 38px; height: 38px; stroke-width: 2.4; }
.done h5 { font-size: 20px; font-weight: 700; }
.done p { font-size: 12px; color: var(--ink-2); max-width: 220px; }
.card { border-radius: 16px; background: var(--s1); padding: 12px 14px; }
.card.k { background: linear-gradient(140deg, #2A1760, #17171F 70%); box-shadow: inset 0 0 0 1px rgba(141,91,255,.35); }
.card h6 { font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.card p { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
.tg { width: 40px; height: 24px; border-radius: 12px; background: var(--s3); position: relative; flex: none; transition: background-color .2s; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tg.on { background: var(--k); }
.tg.on::after { transform: translateX(16px); }
.tg.is-flash { box-shadow: 0 0 0 3px #0E0E14, 0 0 0 5px var(--k-2); }
.erow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.erow:first-of-type { border-top: 0; }
.erow b { display: block; font-weight: 600; }
.erow small { color: var(--ink-3); font-size: 10.5px; }
.apy { white-space: nowrap; margin-left: auto; font-weight: 700; color: var(--up); font-size: 13px; }

/* onboarding */
.kyc-prog { display: flex; gap: 4px; }
.kyc-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--s3); transition: background-color .3s; }
.kyc-prog i.on { background: var(--k-2); }
.kyc-h { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.kyc-p { font-size: 12px; color: var(--ink-2); margin-top: -4px; }
.fld { height: 48px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 13.5px; }
.fld.on { box-shadow: inset 0 0 0 1.5px var(--k-2); }
.fld small { color: var(--ink-3); font-size: 10.5px; display: block; }
.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier { border-radius: 14px; background: var(--s1); padding: 11px 13px; box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; align-items: flex-start; }
.tier.on { box-shadow: inset 0 0 0 1.5px var(--k-2); background: rgba(113,50,245,.08); }
.tier i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); flex: none; margin-top: 1px; }
.tier.on i { box-shadow: inset 0 0 0 5px var(--k-2); }
.tier b { font-size: 13px; font-weight: 650; display: block; }
.tier small { font-size: 10.5px; color: var(--ink-2); }
.tier em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.scan { flex: 1; display: grid; place-items: center; position: relative; }
.scan__frame { width: 230px; height: 146px; border-radius: 14px; position: relative; background: linear-gradient(135deg, #2b2b38, #1b1b24); box-shadow: 0 0 0 2px var(--k-2), 0 0 0 999px rgba(0,0,0,.35); overflow: hidden; }
.scan__frame::before { content: ""; position: absolute; left: 14px; top: 26px; width: 52px; height: 64px; border-radius: 8px; background: #3a3a4a; }
.scan__frame::after { content: ""; position: absolute; left: 78px; top: 30px; width: 120px; height: 8px; border-radius: 4px; background: #3a3a4a; box-shadow: 0 18px 0 #3a3a4a, 0 36px 0 #33333f, 0 54px 0 #33333f; }
.scan__line { position: absolute; left: 0; right: 0; height: 2px; background: var(--k-2); box-shadow: 0 0 14px var(--k-2); animation: scanl 1.6s ease-in-out infinite; z-index: 2; }
.scan__face { width: 170px; height: 210px; border-radius: 50%; box-shadow: 0 0 0 3px var(--k-2), 0 0 0 999px rgba(0,0,0,.35); background: radial-gradient(circle at 50% 38%, #4a4a5a 0 22%, transparent 23%), radial-gradient(ellipse at 50% 92%, #4a4a5a 0 42%, transparent 43%), #26262f; position: relative; }
.scan__face::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--up); border-right-color: var(--up); animation: spin 1.2s linear infinite; }
.scan__tip { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.limits div { border-radius: 12px; background: var(--s1); padding: 10px 12px; }
.limits small { font-size: 10px; color: var(--ink-3); display: block; }
.limits b { font-size: 14px; }

/* krak */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--s2); font-size: 12px; font-weight: 600; }
.tag b { color: var(--k-ink); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acts button { height: 62px; border-radius: 16px; background: var(--s1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.acts button svg { width: 18px; height: 18px; color: var(--k-ink); }
.acts button.is-flash { box-shadow: inset 0 0 0 1.5px var(--k-2); background: rgba(113,50,245,.12); }
.to { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--s1); }
.to .av2 { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, #3BC46A, #1A6B3A); display: grid; place-items: center; font-weight: 800; color: #fff; }
.to b { display: block; font-size: 13px; }
.to small { font-size: 10.5px; color: var(--ink-3); }
.fx { border-radius: 14px; background: var(--s1); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.fx div { display: flex; justify-content: space-between; }
.fx span { color: var(--ink-2); }
.hold { position: relative; height: 54px; border-radius: 27px; background: var(--s2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--k); border-radius: 27px; transition: width 1s linear; }
.hold.go i { width: 100%; }
.hold span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; }
.hold svg { width: 16px; height: 16px; }

/* wallet */
.w-chain { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-3); }
.w-chain i { width: 8px; height: 8px; border-radius: 50%; }
.req { border-radius: 16px; background: var(--s1); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.req__dapp { display: flex; align-items: center; gap: 9px; }
.req__dapp .lg { width: 32px; height: 32px; border-radius: 9px; background: #FF007A; display: grid; place-items: center; font-weight: 800; color: #fff; }
.req__dapp b { display: block; font-size: 13px; }
.req__dapp small { font-size: 10.5px; color: var(--ink-3); }
.sim { border-radius: 14px; background: #101016; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 12px; }
.sim div { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.sim div:first-child { border-top: 0; }
.sim div b { margin-left: auto; font-weight: 650; }
.sim .coin { width: 22px; height: 22px; font-size: 10px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); }
.checks svg { width: 13px; height: 13px; color: var(--up); stroke-width: 2.2; }
.checks.is-flash { animation: glow 1.4s ease 2; border-radius: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.seed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; filter: blur(5px); transition: filter .3s; }
.seed span { height: 30px; border-radius: 8px; background: var(--s2); display: flex; align-items: center; gap: 5px; padding: 0 8px; font: 11px var(--mono); }
.seed span small { color: var(--ink-3); }

/* ================= right: the flow panel ================= */
.flow { flex: 1; min-width: 0; padding: 48px 56px 40px 10px; display: flex; flex-direction: column; gap: 18px; }
.flow__k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--k-ink); }
.flow__t { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; max-width: 560px; }
.flow__t span { color: var(--ink-3); }
.steps { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s, opacity .3s; opacity: .6; cursor: pointer; }
.steps li:hover { opacity: .85; }
.steps li i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 750; background: var(--s2); color: var(--ink-2); }
.steps li b { font-size: 14px; font-weight: 650; }
.steps li span { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.steps li.on { opacity: 1; background: rgba(113,50,245,.1); box-shadow: inset 0 0 0 1.5px rgba(141,91,255,.55); }
.steps li.on i { background: var(--k); color: #fff; }
.steps li.past { opacity: .85; }
.steps li.past i { background: var(--up-bg); color: var(--up); }
.flow__note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--s1); font-size: 12px; color: var(--ink-2); line-height: 1.5; max-width: 600px; }
.flow__note svg { width: 16px; height: 16px; color: var(--k-ink); margin-top: 1px; }
.flow__note b { color: #fff; }

/* ================= Pro desktop ================= */
.pro { flex: 1; display: flex; flex-direction: column; background: #0D0D12; font-size: 11px; min-width: 0; }
.pro__nav { height: 40px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.pro__nav b { font-weight: 600; color: var(--ink-2); }
.pro__nav b.on { color: #fff; }
.pro__nav .srch { height: 26px; width: 150px; border-radius: 7px; background: var(--s1); display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--ink-3); }
.pro__nav .srch svg { width: 12px; height: 12px; }
.pro__tick { height: 46px; flex: none; display: flex; align-items: center; gap: 22px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.pro__tick .pair { display: flex; align-items: center; gap: 8px; }
.pro__tick .pair b { font-size: 13px; }
.pro__tick .pair small { display: block; font-size: 10px; color: var(--ink-3); }
.pro__tick .lev { font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: var(--s2); color: var(--ink-2); font-weight: 700; }
.pro__tick dl { display: flex; flex-direction: column; }
.pro__tick dt { font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pro__tick dd { font-weight: 600; font-size: 11.5px; }
.lay { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 7px; background: var(--s1); }
.lay button { height: 24px; padding: 0 10px; border-radius: 5px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.lay button.on { background: var(--s3); color: #fff; }
.pro__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 236px 262px; grid-template-rows: minmax(0, 1fr) 150px; }
.pnl { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pnl__h { height: 32px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-3); }
.pnl__h b { color: #fff; font-weight: 600; }
.chart { position: relative; flex: 1; min-height: 0; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .ln { position: absolute; left: 0; right: 52px; height: 0; border-top: 1px dashed; display: flex; align-items: center; animation: fade .3s ease; }
.chart .ln span { position: absolute; left: 10px; top: -10px; height: 19px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chart .ln em { position: absolute; right: -52px; top: -9px; width: 52px; height: 18px; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; color: #fff; }
.ln--buy { border-color: var(--up); } .ln--buy span { background: #13361F; color: var(--up); box-shadow: inset 0 0 0 1px var(--up); } .ln--buy em { background: #2FA85B; }
.ln--liq { border-color: var(--dn); } .ln--liq span { background: #3A1515; color: var(--dn); box-shadow: inset 0 0 0 1px var(--dn); } .ln--liq em { background: #C94848; }
.ln--last em { background: var(--k); }
.ln--last { border-color: transparent; }
.book { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 10.5px; }
.book__h, .book__r { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 10px; }
.book__h { height: 24px; align-items: center; color: var(--ink-3); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; }
.book__h span:not(:first-child), .book__r span:not(:first-child) { text-align: right; }
.book__r { height: 18.5px; align-items: center; position: relative; }
.book__r i { position: absolute; right: 0; top: 1px; bottom: 1px; }
.book__r.a i { background: var(--dn-bg); } .book__r.b i { background: var(--up-bg); }
.book__r.a span:first-child { color: var(--dn); } .book__r.b span:first-child { color: var(--up); }
.book__r span { position: relative; }
.book__r.mine { box-shadow: inset 2px 0 0 var(--up); }
.book__sp { height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 12.5px; border-block: 1px solid var(--line); }
.book__sp small { font-size: 10px; color: var(--ink-3); font-weight: 500; }
.form { padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.bs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 8px; background: var(--s1); }
.bs button { height: 28px; border-radius: 6px; font-weight: 700; color: var(--ink-3); }
.bs button.on.b { background: #2FA85B; color: #fff; }
.bs button.on.s { background: #C94848; color: #fff; }
.mrg { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.mrg .tg { width: 32px; height: 18px; }
.mrg .tg::after { width: 12px; height: 12px; }
.mrg .tg.on::after { transform: translateX(14px); }
.mrg .lev { margin-left: auto; display: inline-flex; gap: 2px; }
.mrg .lev button { height: 22px; min-width: 30px; border-radius: 5px; background: var(--s1); font-size: 10px; font-weight: 700; color: var(--ink-3); }
.mrg .lev button.on { background: var(--k); color: #fff; }
.mrg .lev.off { opacity: .35; pointer-events: none; }
.otabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.otabs span { padding-bottom: 6px; color: var(--ink-3); font-weight: 600; }
.otabs span.on { color: #fff; box-shadow: inset 0 -2px 0 var(--k-2); }
.inp { height: 38px; border-radius: 8px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 10px; display: flex; flex-direction: column; justify-content: center; }
.inp small { font-size: 9.5px; color: var(--ink-3); }
.inp b { font-size: 12.5px; font-weight: 600; }
.inp.on { box-shadow: inset 0 0 0 1.5px var(--k-2); }
.inp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sld { height: 18px; position: relative; }
.sld::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 2px; background: var(--s3); }
.sld i { position: absolute; left: 0; top: 8px; height: 3px; border-radius: 2px; background: var(--k-2); transition: width .3s; }
.sld b { position: absolute; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translateX(-50%); transition: left .3s; }
.frow { display: flex; justify-content: space-between; color: var(--ink-3); }
.frow b { color: #fff; font-weight: 600; }
.liq { border-radius: 8px; padding: 8px 10px; background: rgba(251,114,115,.08); box-shadow: inset 0 0 0 1px rgba(251,114,115,.35); display: flex; flex-direction: column; gap: 5px; animation: fade .3s ease; }
.liq .frow b { color: var(--dn); }
.liq__bar { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--dn), #E8A23A 45%, var(--up)); position: relative; }
.liq__bar i { position: absolute; top: -3px; width: 2px; height: 11px; background: #fff; border-radius: 1px; }
.go { height: 38px; border-radius: 8px; background: #2FA85B; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.go.is-flash { box-shadow: 0 0 0 2px #0D0D12, 0 0 0 4px var(--up); }
.prev { border-radius: 8px; background: var(--s1); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; animation: fade .3s ease; }
.btm { grid-column: 1 / -1; border-right: 0; }
.otbl { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.otbl th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 6px 12px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; }
.otbl td { padding: 6px 12px; border-top: 1px solid var(--line); }
.otbl tr.new td { animation: rowin 1.2s ease; }
.empty { padding: 20px 12px; color: var(--ink-3); }

/* ================= toasts + demo chrome ================= */
.toasts { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: rise .3s ease; white-space: nowrap; }
.toast svg { color: var(--k); }
.demo-controls { position: absolute; right: 16px; bottom: 16px; z-index: 80; display: flex; gap: 6px; }
.demo-btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 15px 0 12px; border-radius: 999px; background: #fff; color: #111; font-weight: 650; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.demo-btn svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.demo-stop { width: 34px; height: 34px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; color: var(--ink-2); }
.caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 80; max-width: 620px; display: flex; gap: 10px; align-items: center; padding: 10px 15px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: rise .3s ease; }
.caption b { color: var(--k); font-size: 10.5px; }
.is-ambient .caption, .is-ambient .toasts { display: none; }
.cursor { position: absolute; z-index: 90; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transition: transform 1s cubic-bezier(.45,0,.2,1); }
.is-ambient .cursor { transition-duration: 1.35s; }
.cursor__hand { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); transform-origin: 40% 10%; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; opacity: .95; }
.cursor.is-idle .cursor__hand { transform: scale(.4); opacity: 0; }
.cursor.is-press .cursor__hand { transform: scale(.86); }
.cursor__ripple { position: absolute; left: 7px; top: 1px; }
.cursor__ripple::before { content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(141,91,255,.9); background: rgba(141,91,255,.2); transform: scale(0); opacity: 0; }
.cursor.is-click .cursor__ripple::before { animation: ripple .6s ease-out; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scanl { 0%, 100% { top: 8%; } 50% { top: 90%; } }
@keyframes glow { 50% { box-shadow: 0 0 0 2px var(--k-2); } }
@keyframes rowin { from { background: rgba(59,196,106,.18); } }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.is-still *, .is-still *::before, .is-still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
