:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --up: #16a34a;
  --up-bg: #dcfce7;
  --down: #dc2626;
  --down-bg: #fee2e2;
  --saffron: #ff9933;
  --navy: #1e3a8a;
  --brand: #4f46e5;
  --gold: #f59e0b;
  --share: #3b82f6;
  --you: #a855f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; font-weight: 700; }
.hint { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 500; color: #94a3b8; margin-left: 6px; }
.muted { color: var(--muted); font-weight: 500; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; }
.gap { gap: 6px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 45%, #f0fdf4 100%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .logo { font-size: 26px; }
.brand b { font-size: 18px; letter-spacing: -.01em; background: linear-gradient(90deg, var(--saffron), var(--brand) 60%, var(--up)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.index-pill { display: flex; align-items: baseline; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: help; }
.idx-name { font-size: 11px; font-weight: 700; color: var(--muted); }
.index-pill b { font-variant-numeric: tabular-nums; font-size: 16px; }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.clock { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.clock b { font-size: 16px; min-width: 76px; }
#dayLbl { color: var(--muted); font-size: 12px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e0e7ff; color: #3730a3; text-transform: uppercase; letter-spacing: .04em; }
.chip.open { background: var(--up-bg); color: #166534; }
.chip.open::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 5px; animation: blink 1.2s infinite; }
.chip.closed { background: #e2e8f0; color: #475569; }
.chip.halted { background: var(--down-bg); color: #991b1b; animation: blink .8s infinite; }
.chip.preopen { background: #fef3c7; color: #92400e; }
@keyframes blink { 50% { opacity: .35; } }
.controls { display: flex; align-items: center; gap: 8px; }
.speed { display: flex; background: var(--soft); border-radius: 10px; padding: 2px; }
.speed button { border: 0; background: transparent; padding: 5px 9px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.speed button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 7px 12px; font-weight: 600; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.icon { width: 36px; height: 34px; padding: 0; }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.big { width: 100%; padding: 11px; font-size: 15px; margin-top: 8px; border: 0; color: #fff; }
.btn.buy { background: var(--up); }
.btn.sell { background: var(--down); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* layout */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 320px; gap: 12px; padding: 12px 16px 0; align-items: start; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; border: 1px solid #eef2f7; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

/* watchlist */
.watch { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.wrow { display: grid; grid-template-columns: 6px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; position: relative; }
.wrow:hover { background: var(--soft); }
.wrow.sel { background: #eef2ff; box-shadow: inset 0 0 0 1px #c7d2fe; }
.wrow .bar { width: 6px; height: 30px; border-radius: 3px; }
.wrow .tk { font-weight: 700; font-size: 13px; }
.wrow .nm { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow .px { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wrow .px small { display: block; font-size: 11px; }
.wrow svg { position: absolute; right: 86px; top: 10px; opacity: .8; }
.badge { display: inline-block; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; letter-spacing: .03em; }
.badge.uc { background: var(--up); color: #fff; }
.badge.lc { background: var(--down); color: #fff; }
.badge.new { background: var(--saffron); color: #fff; }
.badge.ipo { background: #e0e7ff; color: #3730a3; }
.flash-up { animation: fup .6s; }
.flash-down { animation: fdown .6s; }
@keyframes fup { from { background: var(--up-bg); } }
@keyframes fdown { from { background: var(--down-bg); } }

/* news */
.news-btns { display: flex; flex-direction: column; gap: 8px; }
.nb-group { display: flex; flex-wrap: wrap; gap: 5px; }
.nb-group small { width: 100%; color: var(--muted); font-size: 11px; font-weight: 600; }
.nbtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 600; }
.nbtn.up:hover { background: var(--up-bg); border-color: #86efac; }
.nbtn.down:hover { background: var(--down-bg); border-color: #fca5a5; }

/* floor */
.floor-card { padding-bottom: 8px; }
.floor-wrap { position: relative; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #f8fafc, #eef2ff 90%); }
#floor { display: block; width: 100%; height: auto; user-select: none; }
#floor .node { cursor: pointer; }
#floor .node:hover .nbox { stroke-width: 2.5; }
#floor text { font-family: inherit; }
#floor .lbl { fill: #334155; font-weight: 600; }
#floor .sub { font-size: 10.5px; fill: #64748b; }
#floor .lane { font-size: 10px; fill: #94a3b8; font-weight: 700; letter-spacing: .12em; }
#floor .empty { font-size: 13px; fill: #94a3b8; font-style: italic; }
#floor .enter { animation: enter .7s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: center; }
@keyframes enter { from { transform: scale(0); opacity: 0; } }
#floor .wire { stroke: #cbd5e1; stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
#floor .bump { animation: bump .35s; transform-box: fill-box; transform-origin: center; }
@keyframes bump { 40% { transform: scale(1.18); } }
#floor .pulse { animation: pulse .6s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
#floor .spin { animation: spin 1s linear; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); padding: 6px 4px 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dot.buy { background: var(--up); } .dot.sell { background: var(--down); } .dot.coin { background: var(--gold); } .dot.share { background: var(--share); border-radius: 2px; } .dot.you { background: var(--you); box-shadow: 0 0 0 2px #e9d5ff; }
.halt-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(254, 226, 226, .82); backdrop-filter: blur(2px); text-align: center; }
.halt-overlay b { display: block; font-size: 22px; color: #991b1b; animation: blink 1s infinite; }
.halt-overlay span { color: #7f1d1d; font-weight: 600; }

/* setup / onboarding */
.setup-card { border: 2px solid #c7d2fe; background: linear-gradient(135deg, #eef2ff, #fff 55%, #fff7ed); }
.setup-card h2 { color: #3730a3; }
.prog { height: 6px; background: #e0e7ff; border-radius: 3px; overflow: hidden; margin: 2px 0 10px; }
.prog div { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--brand)); transition: width .6s; }
.steps { display: flex; flex-direction: column; gap: 6px; }
.stp { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: all .3s; }
.stp .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: var(--soft); }
.stp b { font-size: 14px; }
.stp p { margin: 2px 0 0; color: #475569; font-size: 13px; }
.stp.done { opacity: .75; }
.stp.done .ic { background: var(--up-bg); }
.stp.locked { opacity: .45; }
.stp.cur { border-color: var(--brand); box-shadow: 0 6px 20px rgba(79, 70, 229, .15); padding: 12px; }
.stp.cur .ic { background: var(--brand); animation: bump 1.6s infinite; }
.stp .more { font-size: 12px; color: var(--brand); background: none; border: 0; font-weight: 600; }
.welcome { text-align: center; }
.welcome .wave { font-size: 54px; animation: wave 1.6s ease-in-out 2; display: inline-block; transform-origin: 70% 80%; }
@keyframes wave { 20%, 60% { transform: rotate(16deg); } 40%, 80% { transform: rotate(-8deg); } }
.welcome h2 { font-size: 24px; margin: 6px 0; }
.welcome ol { text-align: left; list-style: none; padding: 0; margin: 14px auto; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.welcome li { background: var(--soft); border-radius: 10px; padding: 8px 12px; animation: slidein .4s backwards; }
.welcome .skip { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 12px; }
.empty-note { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 8px; }
.nbtn:disabled { opacity: .45; cursor: not-allowed; }
.choice { display: flex; gap: 8px; }
.choice label { flex: 1; flex-direction: row !important; align-items: flex-start; gap: 8px !important; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }

/* chart */
.chart-card canvas { width: 100%; display: block; }
.stock-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sdot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ltp { font-size: 20px; font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span[data-info] { cursor: help; border-bottom: 1px dotted #cbd5e1; }

/* depth */
.depth { font-variant-numeric: tabular-nums; font-size: 12px; }
.depth table { width: 100%; border-collapse: collapse; }
.depth th { font-size: 10px; color: var(--muted); font-weight: 700; text-align: right; padding: 2px 4px; text-transform: uppercase; }
.depth td { padding: 3px 4px; text-align: right; position: relative; }
.depth td.bq, .depth td.aq { width: 25%; }
.depth .bidbar, .depth .askbar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; z-index: 0; transition: width .3s; }
.depth .bidbar { right: 0; background: var(--up-bg); }
.depth .askbar { left: 0; background: var(--down-bg); }
.depth td span { position: relative; z-index: 1; }
.depth .bp { color: var(--up); font-weight: 700; }
.depth .ap { color: var(--down); font-weight: 700; text-align: left; }
.depth .mine { outline: 2px solid var(--you); outline-offset: -2px; border-radius: 4px; }
.depth .tot { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; margin-top: 6px; }
.depth .spread { text-align: center; font-size: 11px; color: var(--muted); margin-top: 4px; }
.seg { display: flex; background: var(--soft); border-radius: 10px; padding: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg.sm button { padding: 3px 8px; font-size: 12px; }
.seg.side button.on.buy { background: var(--up); color: #fff; }
.seg.side button.on.sell { background: var(--down); color: #fff; }

/* trade */
.trade-card label { display: flex; flex-direction: column; font-size: 11px; font-weight: 600; color: var(--muted); gap: 3px; }
.trade-card input { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font-size: 14px; background: #fff; width: 100%; font-variant-numeric: tabular-nums; }
.trade-card input:disabled { background: var(--soft); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.est { font-size: 12px; color: var(--muted); margin-top: 8px; background: var(--soft); border-radius: 9px; padding: 7px 9px; }
.est b { color: var(--ink); }
#openOrders .oo { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 6px; padding: 5px 8px; border: 1px dashed #d8b4fe; border-radius: 8px; background: #faf5ff; }
#openOrders .oo button { border: 0; background: transparent; color: var(--down); font-weight: 700; }

/* portfolio */
.funds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.funds div { background: var(--soft); border-radius: 9px; padding: 6px 8px; }
.funds small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.funds b { font-variant-numeric: tabular-nums; }
.holdings { margin-top: 8px; font-size: 12px; }
.holdings .hrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.holdings .hrow small { color: var(--muted); }
.holdings .empty { color: var(--muted); font-size: 12px; padding: 8px 0; text-align: center; }
.tag { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #e0e7ff; color: #3730a3; margin-left: 4px; }
.tag.mis { background: #fef3c7; color: #92400e; }

/* narrator */
.narrator { margin: 12px 16px 16px; }
.log { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.lg { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 6px 8px; border-radius: 9px; font-size: 13px; animation: slidein .35s; border-left: 3px solid #cbd5e1; background: #fafbfc; }
.lg time { color: #94a3b8; font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.lg p { margin: 0; }
.lg .ex { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.lg .ex { display: none; }
.lg.open .ex, .show-ex .lg .ex { display: block; animation: slidein .25s; }
.lg.has-ex { cursor: pointer; }
.lg.has-ex p::after { content: 'why?'; font-size: 10.5px; font-weight: 700; color: var(--brand); background: #eef2ff; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.lg.open p::after, .show-ex .lg p::after { display: none; }
.lg.up { border-color: var(--up); background: #f0fdf4; }
.lg.down { border-color: var(--down); background: #fef2f2; }
.lg.you { border-color: var(--you); background: #faf5ff; }
.lg.fill { border-color: var(--gold); background: #fffbeb; }
.lg.reject { border-color: #f97316; background: #fff7ed; }
.lg.ipo { border-color: var(--brand); background: #eef2ff; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.toggle { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; }

/* popover */
.pop { position: fixed; z-index: 60; max-width: 320px; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px 14px; font-size: 13px; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: pop .18s; }
.pop h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.pop p { margin: 4px 0; }
.pop .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 6px; font-size: 12px; }
.pop .kv span:nth-child(odd) { color: #94a3b8; }
.pop .x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #94a3b8; font-size: 16px; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: tin .3s; max-width: 340px; }
.toast.up { background: var(--up); } .toast.down { background: var(--down); } .toast.news { background: #1e293b; border-left: 4px solid var(--saffron); }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: pop .25s; }
.modal.wide { width: min(980px, 100%); }
.modal h2 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 4px; }
.modal .sub { color: var(--muted); margin: 0 0 12px; font-size: 13px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 14px; background: #fff; }
.form input[type=range] { padding: 0; }
.form small { font-weight: 500; color: #94a3b8; }
.calc { grid-column: 1 / -1; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.calc span { color: var(--muted); }
.calc b { font-variant-numeric: tabular-nums; }
.calc .verdict { grid-column: 1 / -1; margin-top: 4px; font-weight: 600; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* IPO stage */
.ipo-steps { display: flex; gap: 4px; margin: 6px 0 14px; overflow-x: auto; padding-bottom: 2px; }
.ipo-steps div { flex: 1; min-width: 84px; text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; padding: 6px 4px; border-radius: 8px; background: var(--soft); position: relative; transition: all .3s; }
.ipo-steps div.done { background: #dcfce7; color: #166534; }
.ipo-steps div.on { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 70, 229, .35); }
.ipo-scene { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ipo-scene svg { width: 100%; height: auto; background: radial-gradient(ellipse at 50% 60%, #f8fafc, #eef2ff 90%); border-radius: 14px; }
.ipo-text h3 { margin: 0 0 6px; font-size: 17px; }
.ipo-text p { margin: 6px 0; color: #334155; }
.ipo-text .kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.ipo-text .kv span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); animation: wpin .4s backwards; border-left: 4px solid var(--c, #c7d2fe); }
.ipo-text .kv span:nth-child(2) { animation-delay: .08s; } .ipo-text .kv span:nth-child(3) { animation-delay: .16s; } .ipo-text .kv span:nth-child(4) { animation-delay: .24s; }
.ipo-text .kv b { font-size: 17px; color: var(--ink); }
.ipo-text .kv.q { grid-template-columns: repeat(3, 1fr); }
.ipo-text p.one { font-size: 14px; color: #475569; }
.ipo-text p.warn { color: #b91c1c; font-weight: 600; }
.ipo-text .fact { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: #78350f; margin-top: 8px; }
.subs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.subs .sb { font-size: 12px; }
.subs .sb > div:first-child { display: flex; justify-content: space-between; font-weight: 600; }
.subs .track { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; position: relative; }
.subs .fill { height: 100%; border-radius: 6px; transition: width .5s; }
.subs .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #0f172a; opacity: .4; }
.apply-box { margin-top: 10px; padding: 10px; border: 2px dashed #c4b5fd; border-radius: 12px; background: #faf5ff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.apply-box input { width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; }
.big-num { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* tour */
.tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour .hole { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); transition: all .35s; outline: 3px solid var(--saffron); }
.tour .tip { position: absolute; pointer-events: auto; width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 16px 50px rgba(0,0,0,.3); transition: all .35s; }
.tour .tip h3 { margin: 0 0 6px; }
.tour .tip p { margin: 0 0 10px; color: #334155; }
.tour .tip .row { justify-content: space-between; }

@media (max-width: 1180px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { padding: 8px 16px; gap: 8px; }
  .brand small { display: none; }
  .controls { width: 100%; justify-content: space-between; }
  .layout { grid-template-columns: 1fr; padding: 10px 16px 0; }
  .center { order: -1; }
  .watch { max-height: 260px; }
  .narrator { margin: 12px 16px 16px; }
  .ipo-scene { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .wrow svg { display: none; }
  #tourBtn { padding: 7px 10px; }
  .clock b { font-size: 15px; }
  .index-pill { padding: 4px 12px; }
}


/* ============ 3D-ish market floor ============ */
.floor-wrap { perspective: 1600px; background: radial-gradient(ellipse at 50% 30%, #ffffff, #e9edfb 80%); }
#floor { transform: rotateX(16deg) scale(.97); transform-origin: 50% 85%; filter: drop-shadow(0 18px 18px rgba(30, 41, 99, .10)); }

/* ============ setup stepper ============ */
body.wiz-on { overflow: hidden; }
.wiz { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 20% 10%, #fff3e3 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #e3f7ea 0%, transparent 60%), linear-gradient(160deg, #eef1ff, #f7f8fc);
  animation: fade .4s; }
.wiz.leaving { animation: wizout .7s forwards; }
@keyframes wizout { to { opacity: 0; transform: scale(1.08); filter: blur(4px); } }
.wiz-top { display: flex; align-items: center; gap: 20px; padding: 14px 24px; }
.wiz-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.wiz-brand span { font-size: 24px; }
.wiz-brand b { background: linear-gradient(90deg, var(--saffron), var(--brand) 60%, var(--up)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wiz-steps { flex: 1; max-width: 640px; margin: 0 auto; display: flex; justify-content: space-between; position: relative; }
.ws-line { position: absolute; left: 24px; right: 24px; top: 21px; height: 4px; background: #dfe3f3; border-radius: 2px; }
.ws-line b { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--saffron), var(--brand)); transition: width .8s cubic-bezier(.3, 1.3, .5, 1); }
.ws { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.ws i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: #fff; border: 3px solid #dfe3f3; transition: all .35s; }
.ws.done i { background: var(--up); border-color: var(--up); color: #fff; font-size: 18px; font-weight: 900; }
.ws.on i { border-color: var(--brand); box-shadow: 0 0 0 6px rgba(79, 70, 229, .15); transform: scale(1.12); }
.ws.on { color: var(--brand); }
.ws:disabled { opacity: .5; cursor: default; }
.wiz-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 440px); gap: 8px; padding: 0 24px 24px; }
.wiz-stage { position: relative; min-height: 0; }
.wiz-panel { display: flex; align-items: center; min-height: 0; }
.wp { width: 100%; max-height: 100%; overflow: auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 22px; padding: 22px; box-shadow: 0 20px 60px rgba(30, 41, 99, .14); border: 1px solid #fff; }
.wp.in { animation: wpin .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes wpin { from { opacity: 0; transform: translateX(30px) scale(.97); } }
.wp-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.big-emoji { font-size: 40px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15)); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
.wp h1 { font-size: 30px; margin: 4px 0; letter-spacing: -.02em; }
.wp h2 { font-size: 22px; color: var(--ink); text-transform: none; letter-spacing: -.01em; margin: 0; }
.lead { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.wp .fields { display: flex; gap: 10px; margin-bottom: 12px; }
.wp .fields label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wp .fields label.sm { flex: 0 0 90px; }
.wp input[type=text], .wp .fields input { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; background: #fff; transition: border-color .2s; width: 100%; }
.wp .fields input:focus { outline: none; border-color: var(--brand); }
.btn.xl { width: 100%; padding: 14px; font-size: 16px; border-radius: 14px; margin-top: 6px; box-shadow: 0 8px 22px rgba(79, 70, 229, .3); }
.btn.xl:hover { transform: translateY(-1px); }
.btn.primary:disabled { box-shadow: none; }
.link { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--brand); font-weight: 600; font-size: 13px; }
.wp-nav { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.swatches { display: flex; gap: 10px; margin: 2px 0 14px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.swatches button.on { box-shadow: 0 0 0 3px var(--c); transform: scale(1.12); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--line); background: #fff; transition: all .2s; }
.choice i { font-style: normal; font-size: 28px; }
.choice b { font-size: 14px; }
.choice span { font-size: 11.5px; color: var(--muted); }
.choice.on { border-color: var(--brand); background: #eef2ff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(79, 70, 229, .15); }
.toggle-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #faf5ff; border: 2px dashed #d8b4fe; font-size: 14px; cursor: pointer; margin-bottom: 4px; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--you); }
.ok-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #dcfce7, #f0fdf4); border: 1px solid #bbf7d0; animation: wpin .5s; }
.ok-ic { font-size: 30px; animation: bump 1s; }
.ok-card b { display: block; font-size: 16px; }
.ok-card span { font-size: 13px; color: #166534; }
.hero { text-align: center; }
.hero .wave { font-size: 64px; display: inline-block; transform-origin: 70% 80%; animation: wave 1.8s ease-in-out 2; }
.mini-steps { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 20px 0; flex-wrap: wrap; }
.mini-steps div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); animation: wpin .5s backwards; }
.mini-steps i { font-style: normal; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #fff; box-shadow: var(--shadow); }
.mini-steps em { color: #cbd5e1; font-style: normal; margin-bottom: 18px; }
.people-grid { display: flex; flex-direction: column; gap: 8px; }
.pcard { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--line); transition: border-color .2s; }
.pcard:hover { border-color: var(--c); }
.pav { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c) 18%, #fff); border: 2px solid var(--c); }
.pt b { display: block; font-size: 14px; }
.pt span { font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--soft); font-size: 18px; font-weight: 700; color: var(--ink); }
.stepper button:last-child { background: var(--c); color: #fff; }
.stepper button:disabled { opacity: .35; }
.stepper b { min-width: 20px; text-align: center; font-size: 16px; }
.meter { position: relative; height: 26px; border-radius: 13px; background: var(--soft); overflow: hidden; margin-top: 12px; }
.meter div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #bbf7d0, #86efac); transition: width .5s; }
.meter span { position: relative; display: block; text-align: center; line-height: 26px; font-size: 12.5px; font-weight: 700; color: #166534; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-btn { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.chip-btn.on { border-color: var(--brand); background: #eef2ff; color: #3730a3; }
.slider { margin-bottom: 12px; }
.slider > div:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--muted); }
.slider b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.slider b small { color: var(--muted); font-size: 12px; font-weight: 600; }
.slider input[type=range] { width: 100%; accent-color: var(--brand); height: 22px; }
.gauge { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #22c55e, #facc15 50%, #ef4444); display: flex; justify-content: space-between; margin-top: 2px; }
.gauge i { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid #0f172a; transition: left .25s; }
.verdict { margin-top: 8px; font-weight: 700; font-size: 13.5px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.duo small { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg3 { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 3px; margin-top: 3px; }
.seg3 button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 6px; font-size: 18px; filter: grayscale(.8); opacity: .6; transition: all .2s; }
.seg3 button.on { background: #fff; box-shadow: var(--shadow); filter: none; opacity: 1; transform: scale(1.06); }
.sum { display: flex; justify-content: space-between; gap: 6px; background: #f8fafc; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; color: var(--muted); }
.sum b { color: var(--ink); }
.built { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 16px; }
.built div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); animation: wpin .5s backwards; }
.built div:nth-child(2) { animation-delay: .08s; } .built div:nth-child(3) { animation-delay: .16s; } .built div:nth-child(4) { animation-delay: .24s; }
.built i { font-style: normal; font-size: 24px; }
.built b { font-size: 22px; }
.built span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bell-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px auto; width: 170px; height: 170px; border-radius: 50%; border: 0; color: #fff; font-size: 16px; font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #ffc46b, #f59e0b 55%, #d97706); box-shadow: 0 16px 40px rgba(217, 119, 6, .45), inset 0 -8px 0 rgba(0, 0, 0, .12); animation: breathe 2s ease-in-out infinite; }
.bell-btn span { font-size: 64px; display: inline-block; transform-origin: 50% 10%; }
.bell-btn:hover span, .bell-btn.ringing span { animation: swing .35s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 22px 50px rgba(217, 119, 6, .55), inset 0 -8px 0 rgba(0, 0, 0, .12); } }
.hint-line { text-align: center; color: var(--muted); font-size: 13px; }
.confetti { position: absolute; top: 45%; width: 9px; height: 14px; border-radius: 2px; z-index: 5; pointer-events: none; }

/* ============ isometric 3D city ============ */
.iso { position: relative; width: 100%; height: 100%; min-height: 300px; overflow: hidden; }
.iso-fit { position: absolute; left: 50%; top: 52%; width: 800px; height: 540px; perspective: 2200px; }
.iso-plane { position: absolute; left: 140px; top: 10px; width: 520px; height: 520px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(45deg); border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #e8ecfb); box-shadow: 0 0 0 10px rgba(255, 255, 255, .6), 30px 30px 60px rgba(30, 41, 99, .18); animation: planein 1s cubic-bezier(.2, 1.1, .4, 1); }
@keyframes planein { from { transform: rotateX(60deg) rotateZ(10deg) scale(.6); opacity: 0; } }
.iso-grid { position: absolute; inset: 0; border-radius: 28px; background-image: linear-gradient(rgba(99, 102, 241, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .09) 1px, transparent 1px); background-size: 26px 26px; }
.iso-obj { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(var(--x), var(--y), 0); transition: transform .5s; }
.iso-obj.drop { animation: isodrop .85s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes isodrop { from { transform: translate3d(var(--x), var(--y), 320px); opacity: 0; } 40% { opacity: 1; } }
.iso-obj.leave { animation: isoleave .35s forwards; }
@keyframes isoleave { to { transform: translate3d(var(--x), var(--y), 80px); opacity: 0; } }
.iso-obj.ghost { animation: ghostbob 1.6s ease-in-out infinite; }
.iso-obj.ghost .f { opacity: .5; outline: 2px dashed rgba(15, 23, 42, .4); outline-offset: -2px; }
.iso-obj.ghost .sh { opacity: .4; }
@keyframes ghostbob { 50% { transform: translate3d(var(--x), var(--y), 14px); } }
.iso-obj .f { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.iso-obj .f.top { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.iso-obj .f.s { transform: rotateX(90deg); }
.iso-obj .f.e { transform: rotateY(-90deg); }
.iso-obj .f.win { background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, .45) 7px 13px, transparent 13px 18px), repeating-linear-gradient(0deg, transparent 0 6px, rgba(0, 0, 0, .08) 6px 8px); }
.iso-obj .sh { position: absolute; left: 6px; top: 6px; width: 100%; height: 100%; border-radius: 8px; background: rgba(30, 41, 99, .22); filter: blur(6px); transform: translate(10px, 10px); }
.iso-obj .sh.sm { width: 18px; height: 18px; left: -9px; top: -9px; border-radius: 50%; transform: none; filter: blur(3px); }
.iso-obj .bb { position: absolute; width: 140px; height: 80px; transform-origin: 50% 100%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.iso-obj .tag { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 3px 9px 3px 5px; box-shadow: 0 4px 10px rgba(15, 23, 42, .18); font-size: 12px; white-space: nowrap; margin-bottom: 6px; animation: tagin .5s .4s backwards; }
@keyframes tagin { from { opacity: 0; transform: translateY(8px); } }
.iso-obj .tag i { font-style: normal; font-size: 15px; }
.iso-obj .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #fff; border: 2.5px solid var(--c); box-shadow: 0 4px 8px rgba(15, 23, 42, .2); animation: hop 2.4s ease-in-out infinite; animation-delay: calc(var(--x) * -0.013s); }
.iso-obj .av.you { width: 36px; height: 36px; font-size: 20px; box-shadow: 0 0 0 4px rgba(168, 85, 247, .3), 0 4px 8px rgba(15, 23, 42, .2); }
@keyframes hop { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-6px); } }
.iso-obj .big-ic { font-size: 54px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); transform-origin: 50% 10%; animation: floaty 2s ease-in-out infinite; }
.iso-obj.ring .big-ic { animation: swing .25s ease-in-out infinite alternate; }
.iso-dot { position: absolute; left: 0; top: 0; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }

/* ground zones, roads, walkers, bubbles */
.iso-ground { position: absolute; inset: 0; }
.iso-pad { position: absolute; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, transparent); border: 2px solid color-mix(in srgb, var(--c) 28%, transparent); transition: background .4s, border-color .4s; }
.iso-pad b { position: absolute; left: 10px; bottom: 6px; font-size: 11px; letter-spacing: .14em; font-weight: 900; color: color-mix(in srgb, var(--c) 70%, #334155); opacity: .75; }
.iso-pad i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-style: normal; font-size: 34px; opacity: 0; transition: opacity .3s; }
.iso-pad.empty { border-style: dashed; background: transparent; }
.iso-pad.empty i { opacity: .28; }
.iso-pad.focus { border-color: var(--c); border-style: dashed; background: color-mix(in srgb, var(--c) 16%, transparent); animation: padpulse 1.6s ease-in-out infinite; }
.iso-pad.focus.empty i { opacity: .7; animation: floaty 2s ease-in-out infinite; }
.iso-pad.focus b { opacity: 1; }
@keyframes padpulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent); } }
.iso-link { position: absolute; transform-origin: 0 50%; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--c) 0 9px, color-mix(in srgb, var(--c) 30%, transparent) 9px 18px); opacity: .85; animation: roadflow 1s linear infinite; }
.iso-link.grow { animation: roadflow 1s linear infinite, roadgrow .8s cubic-bezier(.3, 1, .5, 1); }
@keyframes roadflow { to { background-position: 18px 0; } }
@keyframes roadgrow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.iso-obj.walker .av { animation: none; }
.iso-obj.walker.walking .av { animation: walkbob .32s ease-in-out infinite alternate; }
.iso-obj.walker.shake .av { animation: shake .4s 2; }
@keyframes walkbob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-5px) rotate(6deg); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bubble { position: relative; margin-bottom: 10px; background: #fff; border-radius: 12px; padding: 5px 11px; font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(15, 23, 42, .22); animation: bubin .35s cubic-bezier(.2, 1.5, .4, 1); }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.bubble.ok { color: #166534; }
.bubble.no { font-size: 26px; padding: 2px 8px; }
.bubble .ob { display: flex; gap: 4px; }
.bubble .ob b { padding: 2px 7px; border-radius: 6px; font-size: 11px; color: #fff; background: var(--up); }
.bubble .ob b + b { background: var(--down); }
@keyframes bubin { from { opacity: 0; transform: translateY(10px) scale(.6); } }
.stage-cap { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(30, 41, 99, .16); font-size: 17px; font-weight: 800; white-space: nowrap; z-index: 2; }
.stage-cap i { font-style: normal; font-size: 24px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; }
.beats { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; padding: 10px; border-radius: 16px; background: #f8fafc; }
.beat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #94a3b8; transition: color .3s; }
.beat i { font-style: normal; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; font-size: 17px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); filter: grayscale(1); opacity: .6; transition: all .3s; }
.beat.on { color: var(--ink); }
.beat.on i { filter: none; opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 3px #c7d2fe; }
.beat.done { color: #334155; }
.beat.done i { filter: none; opacity: 1; }
.beat.done span::after { content: ' ✓'; color: var(--up); font-weight: 900; }
.replay { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, .15); font-size: 12px; }
.beats.playing .replay { visibility: hidden; }
.btn.pulse { animation: btnpulse 1.4s ease-in-out infinite; }
@keyframes btnpulse { 50% { box-shadow: 0 0 0 8px rgba(79, 70, 229, .2); transform: scale(1.04); } }
.choices.one { grid-template-columns: 1fr; }
.choice[style*="--c"].on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.kyc { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 4px; }
.kyc span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 8px 2px; border-radius: 10px; background: #faf5ff; color: #6b21a8; }
.acct { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #faf5ff, #f0fdf4); border: 1px solid #e9d5ff; margin-bottom: 10px; animation: wpin .5s; }
.acct-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #fff; border: 3px solid var(--c, var(--you)); }
.acct b { display: block; font-size: 16px; }
.acct span { font-size: 13px; color: var(--muted); }
.acct-cash { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--up); text-align: right; }
.acct-cash.neg { color: var(--down); }
.acct-cash small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.btn.crowd { width: 100%; margin-top: 8px; border-style: dashed; font-weight: 700; }
.sec-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec-row .icons { display: flex; flex-wrap: wrap; gap: 4px; }
.sec-row .icons button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 17px; filter: grayscale(.7); opacity: .7; transition: all .15s; }
.sec-row .icons button.on { border-color: var(--brand); background: #eef2ff; filter: none; opacity: 1; transform: scale(1.1); }
.sec-row > b { font-size: 13px; color: var(--muted); white-space: nowrap; }
.built b + span { display: none; }

@media (max-width: 860px) {
  .wiz-top { padding: 10px 16px; flex-direction: column; gap: 8px; align-items: stretch; }
  .wiz-brand { justify-content: center; }
  .ws span { display: none; }
  .ws i { width: 38px; height: 38px; font-size: 16px; }
  .ws-line { top: 17px; }
  .wiz-main { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 36vh) auto; padding: 0 16px 16px; overflow: auto; }
  .wiz-panel { align-items: flex-start; }
  .wp { max-height: none; padding: 16px; }
  .wp h1 { font-size: 24px; }
  .bell-btn { width: 140px; height: 140px; }
  .bell-btn span { font-size: 50px; }
  .stage-cap { font-size: 13px; padding: 5px 12px 5px 6px; }
  .stage-cap i { width: 28px; height: 28px; font-size: 17px; }
  .wiz-main { grid-template-rows: minmax(230px, 36vh) auto; }
}
