/* Arfi Exchange (CEX) — last-phase design mock. Requires ../tokens.css + ../kit.css */

/* Not-live phase strip, shown on every page */
.phase { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem .75rem; padding: .55rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-xs); color: var(--text-2); text-align: center; }
.phase__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .55rem; border-radius: 4px; background: var(--down-soft); color: var(--down); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.phase a { color: var(--gold-400); font-weight: 700; }
.phase a:hover { text-decoration: underline; }

.top__right .pill { height: 28px; }
.nav .is-later { color: var(--faint); cursor: default; }
.nav .is-later em { font-style: normal; font-size: 10px; margin-left: .3rem; padding: .05rem .35rem; border-radius: 4px; background: var(--card); }
.sample { display: inline-flex; align-items: center; gap: .3rem; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 4px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; vertical-align: middle; }
.spark { width: 96px; height: 30px; }
.chg { display: inline-block; min-width: 66px; padding: .2rem .45rem; border-radius: 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.up { background: var(--up-soft); }
.chg.down { background: var(--down-soft); }

/* ============ Landing ============ */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; background: radial-gradient(760px 360px at 80% -10%, rgba(233,185,73,.13), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.07; letter-spacing: -.02em; margin: .9rem 0 1.1rem; }
.hero h1 span { color: var(--gold-400); }
.hero__sub { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.hero__fine { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--faint); }
.hero__fine svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.preview__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.preview__head b { font-size: var(--fs-sm); }
.preview__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px auto; gap: 1rem; align-items: center; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.preview__row:last-child { border-bottom: 0; }
.preview__row .num { text-align: right; font-weight: 700; }
.tok small { display: block; font-size: var(--fs-xs); color: var(--faint); font-weight: 600; }

.gates { margin-top: -1px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.gates__in { display: grid; grid-template-columns: 220px repeat(5, minmax(0, 1fr)); }
.gates__lead { padding: 1.4rem 1.25rem 1.4rem 0; }
.gates__lead b { display: block; font-size: var(--fs-sm); }
.gates__lead span { font-size: var(--fs-xs); color: var(--muted); }
.gate { padding: 1.4rem 1.1rem; border-left: 1px solid var(--line-soft); }
.gate i { font-style: normal; font-size: var(--fs-xs); color: var(--faint); font-weight: 700; }
.gate b { display: block; margin: .25rem 0 .55rem; font-size: var(--fs-sm); }

.sec { padding: 4.5rem 0; }
.sec--alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.sec__head h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.01em; margin-top: .35rem; }
.sec__head p { color: var(--muted); max-width: 38rem; margin-top: .5rem; }
.mkt .t td { padding-top: 1rem; padding-bottom: 1rem; }
.mkt .t .tok__ico { width: 30px; height: 30px; }

.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feat .card { padding: 1.25rem; }
.feat h3 { font-size: 1rem; margin: .9rem 0 .35rem; }
.feat p { font-size: var(--fs-sm); color: var(--muted); }
.ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--gold-soft); display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.por__ratio { display: flex; align-items: baseline; gap: .6rem; padding: 1.25rem; border-bottom: 1px solid var(--line-soft); }
.por__ratio b { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.por__ratio span { color: var(--muted); font-size: var(--fs-sm); }
.por__verify { padding: 1.25rem; border-top: 1px solid var(--line-soft); display: grid; gap: .6rem; }
.por__verify div { display: flex; gap: .5rem; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.trio .card { padding: 1.4rem; }
.trio h3 { font-size: 1.05rem; margin: .9rem 0 .4rem; }
.trio p { color: var(--muted); font-size: var(--fs-sm); }
.trio .rows { margin-top: .9rem; }
.band { padding: 3rem 0; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.25rem; border-radius: var(--r-lg); background: radial-gradient(600px 240px at 100% 0, rgba(233,185,73,.14), transparent 70%), var(--surface); border: 1px solid var(--line); }
.band__in h2 { font-size: 1.5rem; }
.band__in p { color: var(--muted); margin-top: .35rem; max-width: 40rem; }
.band__in div:last-child { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============ Trade ============ */
body.trade-page { background: #090b0e; }
.trade { display: grid; gap: 4px; padding: 4px; grid-template-columns: 320px minmax(0, 1fr) 320px; grid-template-rows: auto 470px auto auto; grid-template-areas: "pair pair pair" "book chart markets" "book form trades" "orders orders orders"; }
.pane { background: var(--surface); border-radius: var(--r-sm); min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.pane__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; height: 42px; padding: 0 .9rem; border-bottom: 1px solid var(--line-soft); flex: none; }
.pane__head h2 { font-size: var(--fs-sm); }
.pane--pair { grid-area: pair; }
.pane--book { grid-area: book; }
.pane--chart { grid-area: chart; }
.pane--markets { grid-area: markets; max-height: 470px; }
.pane--form { grid-area: form; }
.pane--trades { grid-area: trades; }
.pane--orders { grid-area: orders; min-height: 260px; }
.mtabs, .mbar-buy { display: none; }
.trade [hidden] { display: none !important; }

/* Pair bar */
.pair { display: flex; align-items: center; gap: 2rem; padding: .7rem 1rem; overflow-x: auto; scrollbar-width: none; }
.pair::-webkit-scrollbar { display: none; }
.pair__sym { display: flex; align-items: center; gap: .6rem; flex: none; }
.pair__sym .tok__ico { width: 30px; height: 30px; }
.pair__sym b { font-size: 1.15rem; font-weight: 800; }
.pair__sym small { display: block; font-size: 11px; color: var(--faint); }
.star { width: 28px; height: 28px; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; padding: 0; }
.star svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star.is-on { color: var(--gold-400); }
.star.is-on svg { fill: currentColor; }
.pair__last { flex: none; }
.pair__last b { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pair__last small { font-size: var(--fs-xs); color: var(--muted); }
.pair__stat { flex: none; font-size: var(--fs-xs); }
.pair__stat span { display: block; color: var(--faint); margin-bottom: .1rem; }
.pair__stat b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pair__end { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex: none; }

/* Order book */
.ob { font-size: 12px; font-variant-numeric: tabular-nums; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ob__cols, .ob__row, .tr__row, .mk__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; padding: 0 .9rem; }
.ob__cols { height: 30px; align-items: center; color: var(--faint); font-size: 11px; }
.ob__cols span:not(:first-child), .ob__row span:not(:first-child), .tr__row span:not(:first-child) { text-align: right; }
.ob__side { display: flex; flex-direction: column; }
.ob__side--ask { justify-content: flex-end; }
.ob__row { height: 21px; align-items: center; position: relative; cursor: pointer; }
.ob__row::before { content: ""; position: absolute; top: 1px; bottom: 1px; right: 0; width: var(--d, 0%); }
.ob__row > * { position: relative; }
.ob__row--ask::before { background: var(--down-soft); }
.ob__row--bid::before { background: var(--up-soft); }
.ob__row--ask span:first-child { color: var(--down); }
.ob__row--bid span:first-child { color: var(--up); }
.ob__row:hover { background: var(--card); }
.ob__row span:not(:first-child) { color: var(--text-2); }
.ob__mid { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .9rem; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ob__mid b { font-size: 1.15rem; font-weight: 800; }
.ob__mid small { color: var(--muted); }
.ob__mid a { margin-left: auto; font-size: 11px; color: var(--faint); }
.ob__ratio { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; margin-top: auto; border-top: 1px solid var(--line-soft); font-size: 11px; font-weight: 700; }
.ob__ratio .rb { flex: 1; display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.ob__ratio .rb i:first-child { background: var(--up); }
.ob__ratio .rb i:last-child { background: var(--down); }
.ob__views { display: flex; gap: .25rem; }
.ob__views button { width: 24px; height: 24px; border-radius: 4px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; opacity: .5; }
.ob__views button.is-on { opacity: 1; background: var(--card); }
.ob__views i { display: grid; gap: 2px; width: 12px; }
.ob__views i b { height: 3px; border-radius: 1px; background: var(--muted); }
.ob__views i b.r { background: var(--down); }
.ob__views i b.g { background: var(--up); }
.tick { height: 26px; padding: 0 .4rem; border-radius: 4px; background: var(--card); border: 1px solid var(--line-soft); font-size: 11px; color: var(--text-2); }

/* Chart */
.ctool { display: flex; align-items: center; gap: .2rem; height: 40px; padding: 0 .6rem; border-bottom: 1px solid var(--line-soft); font-size: 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.ctool button { height: 26px; padding: 0 .55rem; border: 0; border-radius: 4px; background: none; color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.ctool button.is-on { color: var(--gold-400); background: var(--card); }
.ctool .sep { width: 1px; height: 16px; background: var(--line); margin: 0 .35rem; flex: none; }
.ctool__r { margin-left: auto; display: flex; gap: .2rem; align-items: center; }
.cinfo { display: flex; flex-wrap: wrap; gap: .2rem .9rem; padding: .45rem .8rem 0; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cinfo b { font-weight: 700; color: var(--text-2); }
.cinfo .ma7 { color: var(--gold-400); }
.cinfo .ma25 { color: #8b7cf6; }
.chart { position: relative; flex: 1; min-height: 0; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__wm { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: .2em; color: rgba(234,236,239,.06); pointer-events: none; white-space: nowrap; text-transform: uppercase; }

/* Order form */
.of__top { display: flex; align-items: center; gap: .25rem; height: 42px; padding: 0 .6rem; border-bottom: 1px solid var(--line-soft); }
.of__top .tabs button { font-size: 13px; padding: .4rem .7rem; }
.of__top .fee { margin-left: auto; font-size: 11px; color: var(--faint); }
.of__types { display: flex; gap: .2rem; padding: .6rem .6rem 0; }
.of__types button { padding: .35rem .65rem; border: 0; background: none; border-radius: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.of__types button.is-on { color: var(--text); }
.of__types .hint { margin-left: auto; align-self: center; font-size: 11px; color: var(--faint); }
.of__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: .7rem .9rem 1rem; }
.of__side { display: grid; gap: .6rem; align-content: start; }
.of__avbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.of__avbl b { color: var(--text-2); font-weight: 700; }
.ofin { display: flex; align-items: center; height: 40px; padding: 0 .75rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.ofin:focus-within { border-color: var(--gold-500); }
.ofin label { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ofin input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 .5rem; }
.ofin input::placeholder { color: var(--faint); font-weight: 600; }
.ofin span { color: var(--text-2); font-size: 12px; font-weight: 700; }
.ofin--ro { background: var(--card); }
.ofin--ro input { color: var(--muted); }
.slider { position: relative; height: 22px; display: flex; align-items: center; }
.slider input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; z-index: 2; }
.slider__track { position: relative; width: 100%; height: 3px; background: var(--line); border-radius: 2px; }
.slider__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-2); border-radius: 2px; }
.slider__dots { position: absolute; inset: 0; }
.slider__dots i { position: absolute; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); background: var(--surface); border: 2px solid var(--line); border-radius: 2px; }
.slider__dots i.is-on { border-color: var(--text-2); background: var(--text-2); }
.slider__knob { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%) rotate(45deg); background: var(--bg); border: 3px solid var(--text); border-radius: 3px; }
.slider--up .slider__fill, .slider--up .slider__dots i.is-on { background: var(--up); border-color: var(--up); }
.slider--down .slider__fill, .slider--down .slider__dots i.is-on { background: var(--down); border-color: var(--down); }
.slider__marks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: -.2rem; }
.of__meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.of__side .btn { height: 42px; border-radius: var(--r-sm); }
.of__login { text-align: center; font-size: 12px; color: var(--muted); }
.of__login a { color: var(--gold-400); font-weight: 700; }
.of__seg { display: none; }

/* Markets / trades lists */
.mk__search { display: flex; align-items: center; gap: .5rem; margin: .6rem .9rem .3rem; height: 32px; padding: 0 .6rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-soft); }
.mk__search svg { width: 14px; height: 14px; fill: none; stroke: var(--faint); stroke-width: 1.8; flex: none; }
.mk__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 12px; }
.mk__tabs { display: flex; gap: .1rem; padding: 0 .6rem; border-bottom: 1px solid var(--line-soft); }
.mk__tabs button { padding: .45rem .5rem; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.mk__tabs button.is-on { color: var(--text); border-bottom-color: var(--gold-400); }
.mk__list, .tr__list { overflow-y: auto; flex: 1; min-height: 0; font-size: 12px; font-variant-numeric: tabular-nums; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mk__row { grid-template-columns: 1.25fr 1fr .8fr; height: 26px; align-items: center; cursor: pointer; }
.mk__row:hover { background: var(--card); }
.mk__row span:not(:first-child) { text-align: right; }
.mk__row b { font-weight: 700; }
.mk__row b small { color: var(--faint); font-weight: 600; font-size: 11px; }
.mk__row.is-on { background: var(--card); }
.mk__row .st { color: var(--faint); margin-right: .25rem; }
.mk__row .st.is-on { color: var(--gold-400); }
.tr__row { height: 21px; align-items: center; }
.tr__row span:last-child { color: var(--faint); }
.pane--trades { max-height: 470px; }

/* Orders */
.ord__top { display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .6rem; border-bottom: 1px solid var(--line-soft); }
.ord__top .tabs button { font-size: 13px; }
.ord__top label { margin-left: auto; font-size: 12px; }
.pane--orders .t { font-size: 12.5px; }
.pane--orders .t th { padding: .55rem .9rem; font-size: 11px; background: transparent; }
.pane--orders .t td { padding: .6rem .9rem; }
.side-b { color: var(--up); font-weight: 700; }
.side-s { color: var(--down); font-weight: 700; }
.lnk { color: var(--gold-400); font-weight: 700; background: none; border: 0; cursor: pointer; font-size: 12px; padding: 0; }

/* ============ Auth / KYC ============ */
.auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: calc(100vh - 150px); }
.auth__aside { padding: 3.5rem clamp(1.5rem, 4vw, 4rem); background: radial-gradient(600px 300px at 0 0, rgba(233,185,73,.1), transparent 70%), var(--bg-2); border-right: 1px solid var(--line-soft); }
.auth__aside h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; line-height: 1.15; margin: .8rem 0 1rem; }
.auth__aside > p { color: var(--muted); max-width: 30rem; }
.tips { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 30rem; }
.tips li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.tips b { display: block; font-size: var(--fs-sm); }
.tips span { font-size: var(--fs-sm); color: var(--muted); }
.url { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; padding: .55rem .9rem; border-radius: var(--r-sm); background: var(--up-soft); color: var(--up); font-size: var(--fs-sm); font-weight: 700; }
.url svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth__main { display: grid; place-items: start center; padding: 3.5rem 1.5rem; }
.authbox { width: min(440px, 100%); }
.authbox h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.authbox > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.authbox .tabs { margin-bottom: 1.5rem; padding: 3px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.authbox .tabs button { flex: 1; border-radius: 9px; }
.authbox form { display: grid; gap: 1rem; }
.pw { position: relative; }
.pw .input { padding-right: 3rem; }
.pw button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.pw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength i { height: 4px; border-radius: 2px; background: var(--card-hover); }
.strength i.on { background: var(--up); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; font-size: var(--fs-xs); color: var(--faint); }
.rules li.ok { color: var(--up); }
.or { display: flex; align-items: center; gap: .8rem; font-size: var(--fs-xs); color: var(--faint); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--fs-sm); }
.otp6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.otp6 input { height: 52px; text-align: center; font-size: 1.3rem; font-weight: 800; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); outline: 0; min-width: 0; }
.otp6 input:focus { border-color: var(--gold-500); }
.apc { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--gold-soft); border: 1px solid rgba(233,185,73,.25); font-size: var(--fs-sm); }
.apc b { font-weight: 800; letter-spacing: .12em; color: var(--gold-400); }
.mbox { padding: 1.4rem; display: grid; gap: 1rem; }
.mbox__top { display: flex; align-items: center; justify-content: space-between; }
.mbox__top h2 { font-size: 1.15rem; }
.xbtn { width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.xbtn:hover { background: var(--card-hover); }
.xbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* KYC */
.kyc { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; padding: 2rem 0 4rem; }
.steps { list-style: none; margin: 0; padding: .5rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.steps button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: .8rem; align-items: center; padding: .7rem .7rem; border: 0; border-radius: var(--r-md); background: none; text-align: left; cursor: pointer; position: relative; }
.steps button:hover { background: var(--card); }
.steps button.is-on { background: var(--card); }
.steps li:not(:last-child) button::after { content: ""; position: absolute; left: calc(.7rem + 14px); top: calc(.7rem + 32px); width: 2px; height: calc(100% - 34px); background: var(--line-soft); }
.steps li.done button::after { background: rgba(22,199,132,.35); }
.steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); position: relative; z-index: 1; }
.steps .done .n { background: var(--up); border-color: var(--up); color: #06140e; }
.steps .done .n svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.steps button.is-on .n { border-color: var(--gold-400); color: var(--gold-400); }
.steps b { display: block; font-size: var(--fs-sm); }
.steps small { display: block; font-size: var(--fs-xs); color: var(--faint); }
.kyc__panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.kyc__head { padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.kyc__head h1 { font-size: 1.35rem; margin: .4rem 0 .25rem; }
.kyc__head p { color: var(--muted); font-size: var(--fs-sm); }
.kyc__body { padding: 1.5rem; display: grid; gap: 1.1rem; }
.kyc__foot { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.doc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.doc-types label { display: grid; gap: .5rem; justify-items: center; padding: 1rem .75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); cursor: pointer; font-size: var(--fs-sm); font-weight: 700; text-align: center; }
.doc-types label:has(input:checked) { border-color: var(--gold-400); background: var(--gold-soft); }
.doc-types input { position: absolute; opacity: 0; }
.doc-types svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dropzone { display: grid; place-items: center; gap: .4rem; padding: 1.6rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--r-md); text-align: center; font-size: var(--fs-sm); color: var(--muted); background: var(--bg-2); }
.dropzone svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dropzone b { color: var(--text); }
.dropzone small { font-size: var(--fs-xs); color: var(--faint); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; font-size: var(--fs-sm); }
.dos div { padding: .8rem 1rem; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-soft); }
.dos b { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.dos ul { margin: 0; padding-left: 1rem; color: var(--muted); display: grid; gap: .2rem; }
.face { display: grid; place-items: center; padding: 2rem 1rem; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-soft); }
.face__ring { width: 180px; height: 220px; border-radius: 50%; border: 3px dashed var(--gold-500); display: grid; place-items: center; }
.face__ring svg { width: 80px; height: 80px; fill: none; stroke: var(--faint); stroke-width: 1.2; }
.levels .t th, .levels .t td { padding: .7rem 1rem; }
.levels .t td { white-space: normal; font-size: var(--fs-xs); }
.side-card { padding: 1.25rem; }
.side-card h3 { font-size: .95rem; margin-bottom: .5rem; }
.side-card p { font-size: var(--fs-sm); color: var(--muted); }
.review-state { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 2rem 1rem; }
.review-state .ico { width: 56px; height: 56px; border-radius: 16px; }
.review-state .ico svg { width: 26px; height: 26px; }

/* ============ Responsive ============ */
@media (max-width: 1280px) {
  .trade { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 440px auto auto auto; grid-template-areas: "pair pair" "book chart" "book form" "trades markets" "orders orders"; }
  .pane--markets, .pane--trades { max-height: 360px; }
  .gates__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gates__lead { grid-column: 1 / -1; padding-bottom: 0; }
  .gate:nth-child(2), .gate:nth-child(5) { border-left: 0; padding-left: 0; }
  .kyc { grid-template-columns: 240px minmax(0, 1fr); }
  .kyc__aside { grid-column: 2; }
}
@media (max-width: 1000px) {
  .hero__in, .sec-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .trio { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { order: 2; border-right: 0; border-top: 1px solid var(--line-soft); padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .kyc { grid-template-columns: minmax(0, 1fr); }
  .kyc > * { min-width: 0; }
  .kyc__aside { grid-column: auto; }
  .steps { display: flex; overflow-x: auto; scrollbar-width: none; }
  .steps li { flex: none; }
  .steps button { grid-template-columns: 26px auto; gap: .5rem; padding: .55rem .7rem; }
  .steps button::after { display: none; }
  .steps small { display: none; }
  .steps .n { width: 26px; height: 26px; }
}
@media (max-width: 900px) {
  .top__right .pill, .top__right .btn--ghost { display: none; }
}
@media (max-width: 760px) {
  .trade { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .pane { border-radius: 0; border-bottom: 4px solid #090b0e; }
  .pane--markets, .pane--trades { max-height: none; }
  .trade [data-mpane] { display: none; }
  .trade[data-mview="chart"] [data-mpane="chart"], .trade[data-mview="book"] [data-mpane="book"], .trade[data-mview="trades"] [data-mpane="trades"], .trade[data-mview="markets"] [data-mpane="markets"] { display: flex; }
  .pane--chart { height: 400px; }
  .pane--book .ob__side .ob__row:nth-child(-n+4) { display: none; }
  .pane--markets .mk__list, .pane--trades .tr__list { max-height: 420px; }
  .mtabs { display: flex; gap: .25rem; padding: .4rem .6rem; background: var(--surface); border-bottom: 1px solid var(--line-soft); position: sticky; top: 64px; z-index: 5; }
  .mtabs button { flex: 1; padding: .5rem .3rem; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
  .mtabs button.is-on { color: var(--text); border-bottom-color: var(--gold-400); }
  .pair { flex-wrap: wrap; gap: .7rem 1.2rem; }
  .pair__sym { width: 100%; }
  .pair__last { width: 100%; }
  .pair__stat { width: calc(50% - .6rem); }
  .pair__end { position: absolute; right: 1rem; top: 1.1rem; }
  .pane--pair { position: relative; }
  .of__seg { display: flex; padding: .6rem .9rem 0; }
  .of__seg .seg { width: 100%; }
  .of__seg .seg button { flex: 1; }
  .of__seg .seg button.is-on[data-side="buy"] { background: var(--up); color: #06140e; }
  .of__seg .seg button.is-on[data-side="sell"] { background: var(--down); color: #fff; }
  .of__cols { grid-template-columns: 1fr; }
  .of__cols[data-show="buy"] .of__side--sell, .of__cols[data-show="sell"] .of__side--buy { display: none; }
  .of__top .fee { display: none; }
  .mbar-buy { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(22,26,30,.97); border-top: 1px solid var(--line); }
  .mbar-buy .btn { height: 44px; border-radius: var(--r-sm); }
  body.trade-page { padding-bottom: 68px; }
  .ord__top label { display: none; }
  .hero { padding: 2.5rem 0 2.5rem; }
  .preview__row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .preview__row [data-spark] { display: none; }
  .gates__in { grid-template-columns: 1fr; }
  .gate { border-left: 0; padding: .9rem 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; }
  .gate i { grid-column: 1; }
  .gate b { grid-column: 1; margin: 0; }
  .gate .pill { grid-column: 2; grid-row: 1 / span 2; }
  .gate:nth-child(2), .gate:nth-child(5) { padding-left: 0; }
  .sec { padding: 3rem 0; }
  .feat { grid-template-columns: 1fr; }
  .band__in { padding: 1.5rem; }
  .f2, .drops, .dos { grid-template-columns: 1fr; }
  .doc-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .doc-types label { padding: .8rem .4rem; font-size: var(--fs-xs); }
  .kyc { padding-top: 1rem; gap: 1rem; }
  .kyc__body, .kyc__head { padding-left: 1.1rem; padding-right: 1.1rem; }
  .kyc__foot { padding: .9rem 1.1rem; }
  .auth__main { padding: 2rem 1rem; }
  .mkt .hide-sm { display: none; }
}
