/* Miaoushi app: black + yellow exchange style. Auth (.auth), splash, panel (.app), P2P, sheets. */
:root {
  --bg: #0B0E11; --panel: #181A20; --card: #1E2329; --card2: #2B3139; --line: #2B3139; --line2: #3C4450;
  --fg: #EAECEF; --muted: #848E9C; --gold: #FCD535; --gold2: #F0B90B; --coral: #FF7A59; --ok: #2EBD85; --sell: #F6465D;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); }
a { color: var(--gold); text-decoration: none; font-weight: 600; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.okc { color: var(--ok); } .sellc { color: var(--sell); } .waitc { color: var(--gold); } .mut { color: var(--muted); }

/* ---------- buttons & inputs ---------- */
.btn { border: 0; border-radius: 10px; padding: 13px 16px; font: 700 .95rem var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--fg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pri, .btn.gold { background: var(--gold); color: #181A20; }
.btn.pri:hover, .btn.gold:hover { background: #FFE251; }
.btn.ghost { background: var(--card2); color: var(--fg); }
.btn.line { background: transparent; border: 1px solid var(--line2); color: var(--fg); }
.btn.buy { background: var(--ok); color: #fff; } .btn.sell { background: var(--sell); color: #fff; }
.btn.w { width: 100%; } .btn.sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.field { margin-bottom: 14px; }
.field > label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.inp { position: relative; }
.inp input, .in, select.in, textarea.in { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--fg); font: 500 16px var(--body); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.auth .inp input { height: 54px; background: #14181E; border-color: #262C35; }
.auth .inp input:focus { background: #171B22; box-shadow: 0 0 0 3px rgba(252,213,53,.12); }
.btn.lg { height: 54px; border-radius: 12px; font-size: 1rem; box-shadow: 0 8px 24px rgba(252,213,53,.18); }
.inp input { padding-left: 46px; padding-right: 44px; }
select.in { background: var(--bg); }
textarea.in { resize: vertical; min-height: 70px; }
.inp input::placeholder, .in::placeholder { color: #6B7480; }
.inp input:focus, .in:focus { border-color: var(--gold); }
.inp .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.inp .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: grid; }
.ico svg, .eye svg, .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.rules { list-style: none; padding: 0; margin: 8px 0 0; font-size: .82rem; color: var(--muted); display: grid; gap: 4px; }
.rules li::before { content: "○ "; } .rules li.ok { color: var(--ok); } .rules li.ok::before { content: "✓ "; }
.check { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.rowsb { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 18px; }
.msg-err { background: rgba(246,70,93,.1); border: 1px solid rgba(246,70,93,.35); color: #FFC9D0; padding: 10px 12px; border-radius: 10px; font-size: .88rem; margin-bottom: 14px; }
.msg-ok { background: rgba(46,189,133,.1); border: 1px solid rgba(46,189,133,.35); color: #C9F3E2; padding: 10px 12px; border-radius: 10px; font-size: .88rem; margin-bottom: 14px; }
.chipsel { display: flex; flex-wrap: wrap; gap: 8px; }
.chipsel label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--card2); font-weight: 600; font-size: .85rem; cursor: pointer; }
.chipsel input { accent-color: var(--gold); }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: radial-gradient(600px 420px at 50% 30%, rgba(252,213,53,.12), transparent 70%), var(--bg); transition: opacity .35s; }
.splash img { width: 108px; height: 108px; border-radius: 50%; box-shadow: 0 18px 50px rgba(252,213,53,.18); margin-bottom: 14px; }
.splash h1 { margin: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -.5px; }
.splash p { margin: 0; color: var(--muted); }
.splash .foot { position: absolute; bottom: 64px; left: 0; right: 0; }
.splash .foot b { display: block; font-weight: 600; } .splash .foot small { color: var(--muted); }
.splash .bar { width: 160px; height: 4px; border-radius: 4px; background: var(--card2); margin: 14px auto 0; overflow: hidden; }
.splash .bar i { display: block; height: 100%; width: 0; background: var(--gold); animation: load 1.1s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- auth ---------- */
html.lock, html.lock body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.auth.fixed { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.auth.fixed .amain { height: 100vh; height: 100dvh; padding: calc(env(safe-area-inset-top) + 14px) 22px calc(env(safe-area-inset-bottom) + 18px); align-items: stretch; }
.auth.fixed .abox { display: flex; flex-direction: column; height: 100%; }
.auth.fixed .lform { flex: none; min-height: 0; }
.auth.fixed .lhero { margin-top: auto; } /* logo + form sit together in the middle, footer at the bottom */
.auth.fixed .lfoot { margin-top: auto; }
.amain { background: radial-gradient(520px 320px at 50% -60px, rgba(252,213,53,.13), transparent 70%), var(--bg); }
.lhero { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4px 0 30px; }
.lring { position: relative; width: 76px; height: 76px; margin-bottom: 12px; }
.lring img { width: 76px; height: 76px; border-radius: 50%; position: relative; z-index: 1; box-shadow: 0 12px 34px rgba(252,213,53,.22); }
.lring::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(252,213,53,.35); }
.lhero b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.lhero small { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.lform h1 { text-align: left; }
.lfoot { padding-top: 12px; }
.lfoot .alt { margin: 0 0 10px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: #5E6673; font-size: .78rem; margin: 0; }
.secure .ic { width: 14px; height: 14px; }
.stepbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.stepbar i { height: 4px; border-radius: 4px; background: var(--card2); } .stepbar i.on { background: var(--gold); }
.steplbl { color: var(--muted); font-size: .78rem; font-weight: 600; margin-bottom: 14px; }
.rules.inline { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check.agree { margin: 2px 0 16px; align-items: flex-start; } .check.agree input { margin-top: 2px; }
.two2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.auth.fixed .abox:has(.stepbar) .secure, .auth.fixed .abox:has(.stepbar) .lhero small { display: none; }
.auth.fixed .abox:has(.stepbar) .lhero { margin-bottom: 18px; } .auth.fixed .abox:has(.stepbar) .lring, .auth.fixed .abox:has(.stepbar) .lring img { width: 60px; height: 60px; }
@media (max-height: 700px) { .lhero { margin-bottom: 12px; } .lring, .lring img { width: 56px; height: 56px; } .lhero b { font-size: 1.35rem; } .auth.fixed .sub { margin-bottom: 14px; } .auth .field { margin-bottom: 10px; } .auth .inp input, .btn.lg { height: 50px; } }
@media (max-height: 600px) { .lhero small, .secure { display: none; } }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.side { display: none; position: relative; overflow: hidden; padding: 56px; flex-direction: column; justify-content: center;
  background: radial-gradient(700px 500px at 30% 20%, rgba(252,213,53,.13), transparent 65%), radial-gradient(600px 500px at 90% 100%, rgba(255,122,89,.12), transparent 60%), #0F1216; border-right: 1px solid var(--line); }
@media (min-width: 960px) { .side { display: flex; } }
.side-in { max-width: 460px; margin: 0 auto; }
.side .hero-cat { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 20px 60px rgba(252,213,53,.2); margin-bottom: 28px; }
.side h2 { font-size: 2.6rem; line-height: 1.12; margin: 0 0 14px; letter-spacing: -.8px; font-weight: 800; }
.side h2 b { color: var(--gold); }
.side p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.feats { display: grid; gap: 12px; margin-top: 28px; }
.feat { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.feat i { font-style: normal; font-size: 1.2rem; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(252,213,53,.12); }
.feat b { display: block; } .feat small { color: var(--muted); font-size: .86rem; }
.amain { display: flex; justify-content: center; padding: 28px 20px 40px; }
@media (min-width: 960px) { .amain { align-items: center; } }
.abox { width: 100%; max-width: 420px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 32px; margin-bottom: 8px; }
.topbar a, .topbar button { color: var(--fg); background: none; border: 0; padding: 4px; cursor: pointer; display: grid; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 34px; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .8rem; }
.abox h1 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.3px; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: .92rem; }
.gwrap { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.alt { text-align: center; margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 6px 0 16px; }
.otp input { width: 100%; aspect-ratio: 1 / 1.1; text-align: center; font: 700 1.3rem var(--body); border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--fg); outline: none; }
.otp input:focus { border-color: var(--gold); }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line2); margin-bottom: 12px; cursor: pointer; }
.opt.on { border-color: var(--gold); background: rgba(252,213,53,.05); }
.opt.off { opacity: .45; cursor: not-allowed; }
.opt .oi { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.opt .t { flex: 1; } .opt b { display: block; font-size: .95rem; } .opt small { color: var(--muted); font-size: .8rem; }
.opt .rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; }
.opt.on .rd { border-color: var(--gold); background: var(--gold); color: #181A20; font-size: .8rem; font-weight: 900; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 12px; background: var(--card); margin-bottom: 14px; }
.qr img { width: 200px; height: 200px; border-radius: 8px; background: #fff; }
.qr code { font-family: var(--mono); font-size: .82rem; word-break: break-all; text-align: center; color: var(--gold); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1000px) { .app { grid-template-columns: 232px 1fr; } }
.app > div { min-width: 0; }
.nav { display: none; background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
@media (min-width: 1000px) { .nav { display: flex; flex-direction: column; } }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; padding: 0 10px 22px; color: var(--fg); }
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: var(--muted); margin-bottom: 2px; }
.nav a.on, .nav a:hover { background: var(--card); color: var(--fg); }
.nav a.on .ic { color: var(--gold); }
.nav .sp { flex: 1; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(11,14,17,.94); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); }
.top .mlogo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--fg); } .top .mlogo img { width: 28px; height: 28px; border-radius: 50%; }
@media (min-width: 1000px) { .top .mlogo { display: none; } .top { padding: 14px 28px; } }
.top h1 { margin: 0; font-size: 1.15rem; font-weight: 700; display: none; } @media (min-width: 1000px) { .top h1 { display: block; } }
.top .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--card); font-weight: 600; font-size: .8rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--card2); }
.avatar img { width: 100%; height: 100%; }
.content { padding: 16px 16px 96px; max-width: 1180px; width: 100%; }
@media (min-width: 1000px) { .content { padding: 24px 28px 40px; } }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 1000px) { .tabs { display: none; } }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.tabs a .ic { width: 22px; height: 22px; } .tabs a.on { color: var(--gold); }

.card { background: var(--card); border-radius: 14px; padding: 18px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1.4fr 1fr; } }
.lbl { color: var(--muted); font-size: .85rem; }
.h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h2 a { font-size: .85rem; }
.est { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.bal { font-size: 2.3rem; font-weight: 800; letter-spacing: -.6px; margin: 2px 0 0; } .bal small { font-size: 1rem; font-weight: 600; color: var(--fg); margin-left: 6px; }
.usd { color: var(--muted); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-size: .8rem; background: none; border: 0; cursor: pointer; padding: 0; }
.act span { width: 52px; height: 52px; border-radius: 14px; background: var(--card2); display: grid; place-items: center; }
.act .ic { width: 22px; height: 22px; }
.coin { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coin:last-child { border-bottom: 0; }
.coin img, .coin .ci { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; }
.coin .t { flex: 1; min-width: 0; } .coin .t b { display: block; } .coin .t small { color: var(--muted); }
.coin .v { text-align: right; } .coin .v b { display: block; } .coin .v small { color: var(--muted); }
.mine { display: flex; align-items: center; gap: 16px; }
.ring { width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) 0 var(--p, 0%), var(--card2) var(--p, 0%) 100%); }
.ring div { width: 72px; height: 72px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; font-size: .7rem; color: var(--muted); }
.ring b { display: block; color: var(--fg); font-size: .95rem; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--fg); font-weight: 500; }
.row:last-child { border-bottom: 0; }
.ri { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card2); flex: none; }
.row .t { flex: 1; min-width: 0; } .row .t b { display: block; font-size: .92rem; font-weight: 600; } .row .t small { color: var(--muted); }
.row .v { text-align: right; } .row .v b { display: block; } .row .v small { font-weight: 600; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; background: rgba(252,213,53,.08); border: 1px solid rgba(252,213,53,.3); }
.banner .t { flex: 1; } .banner b { display: block; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 14px; color: var(--muted); }

/* ---------- home ---------- */
.tbi { color: var(--fg); display: grid; padding: 4px; } .tbi .ic { width: 22px; height: 22px; }
.hero2 { position: relative; overflow: hidden; border-radius: 16px; min-height: 178px; display: flex; align-items: center;
  background: radial-gradient(420px 260px at 85% 40%, rgba(255,140,60,.25), transparent 70%), linear-gradient(120deg, #11142A 0%, #1E1B45 55%, #3A2550 100%); margin-bottom: 14px; }
.hero2 .ht { position: relative; z-index: 2; padding: 20px 18px; max-width: 62%; }
.hero2 h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.hero2 p { margin: 6px 0 14px; color: var(--gold); font-weight: 600; font-size: .9rem; }
.hero2 .btn { padding: 10px 18px; border-radius: 999px; font-size: .9rem; }
.hero2 .btn .ic { width: 16px; height: 16px; }
.hero2 img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 58%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
@media (min-width: 760px) { .hero2 { min-height: 220px; } .hero2 h2 { font-size: 2rem; } .hero2 .ht { padding: 28px 30px; } }
.balcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 16px; }
.eyeb { background: none; border: 0; color: var(--muted); padding: 0 0 0 4px; cursor: pointer; display: inline-grid; vertical-align: middle; } .eyeb .ic { width: 16px; height: 16px; }
.bal2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0; } .bal2 b { font-size: 2rem; font-weight: 800; letter-spacing: -.6px; }
.chg { font-weight: 700; font-size: .85rem; } .chg.up { color: var(--ok); } .chg.dn { color: var(--sell); }
.spark { width: 132px; height: 56px; flex: none; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 14px; background: var(--card); border: 0; color: var(--fg); font: 600 .82rem var(--body); cursor: pointer; }
.tile span { color: var(--gold); display: grid; } .tile .ic { width: 26px; height: 26px; stroke-width: 2; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(8, 1fr); } }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(252,213,53,.45); background: linear-gradient(110deg, rgba(252,213,53,.08), rgba(58,37,80,.5)); color: var(--fg); }
.promo small { color: var(--fg); font-weight: 600; font-size: .9rem; display: block; } .promo b { color: var(--gold); font-size: 1.05rem; }
.promo img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 6px 20px rgba(252,213,53,.25); }
.mrow { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; color: var(--fg); }
.mrow img { width: 38px; height: 38px; border-radius: 50%; } .mrow .t { flex: 1; } .mrow .t b { display: block; } .mrow .t small { color: var(--muted); font-size: .8rem; }
.mrow .p { font-size: 1.05rem; margin-right: 10px; }
.mstats2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (min-width: 760px) { .mstats2 { grid-template-columns: repeat(4, 1fr); } }
.mstats2 span { display: block; color: var(--muted); font-size: .8rem; } .mstats2 b { font-weight: 700; }

/* ---------- market ---------- */
.mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mhead img { width: 40px; height: 40px; border-radius: 50%; } .mhead b { font-size: 1.25rem; font-weight: 800; display: block; } .mhead small { color: var(--muted); font-size: .8rem; }
.mprice { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mprice > div:first-child b { font-size: 2rem; font-weight: 800; letter-spacing: -.6px; display: block; line-height: 1.15; }
.mhl { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; align-content: center; }
.mhl span { display: block; color: var(--muted); font-size: .75rem; } .mhl b { font-size: .88rem; font-weight: 600; }
@media (max-width: 520px) { .mhl { grid-template-columns: repeat(3, 1fr); width: 100%; } }
.mgrid { display: grid; gap: 14px; } @media (min-width: 1000px) { .mgrid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.mcard { padding: 14px; }
.mtabs { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tfs { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 8px; padding: 3px; }
.tfs button { border: 0; background: none; color: var(--muted); font: 600 .82rem var(--body); padding: 6px 11px; border-radius: 6px; cursor: pointer; }
.tfs button.on { background: var(--card2); color: var(--fg); }
.tfs.big button { font-size: .95rem; padding: 7px 16px; } .tfs.big button.on { color: var(--gold); }
.chartbox { position: relative; height: 240px; } @media (min-width: 1000px) { .chartbox { height: 320px; } }
.mchart { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.axis { position: absolute; right: 4px; top: 4px; bottom: 4px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.axis span { font-size: .7rem; color: var(--muted); background: rgba(30,35,41,.8); padding: 1px 4px; border-radius: 4px; }
.tip { position: absolute; top: 6px; width: 120px; background: var(--card2); border-radius: 8px; padding: 6px 8px; pointer-events: none; text-align: center; }
.tip b { display: block; font-size: .9rem; } .tip small { color: var(--muted); font-size: .72rem; }
.mstats3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
@media (min-width: 760px) { .mstats3 { grid-template-columns: repeat(4, 1fr); } }
.mstats3 span { display: block; color: var(--muted); font-size: .78rem; } .mstats3 b { font-weight: 700; font-size: .92rem; }
.trh, .tr { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; font-size: .82rem; }
.trh { color: var(--muted); padding: 2px 0 8px; } .trh span:not(:first-child), .tr span:not(:first-child) { text-align: right; }
.tr { padding: 7px 0; color: var(--fg); font-weight: 500; border-top: 1px solid rgba(43,49,57,.6); }
.kv.mi div { padding: 2px 0; } .copy button { border: 0; background: var(--card2); color: var(--gold); border-radius: 6px; padding: 2px 8px; font: 600 .75rem var(--body); cursor: pointer; margin-left: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .links a { padding: 7px 12px; border-radius: 8px; background: var(--card2); font-size: .85rem; color: var(--fg); }
.tradebar { position: sticky; bottom: 74px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 3; }
@media (min-width: 1000px) { .tradebar { bottom: 10px; max-width: 520px; } }

/* ---------- spot trade ---------- */
.thead { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tchart { width: 46px; height: 46px; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: #7B8CFF; flex: none; }
.tp { flex: 1; min-width: 0; } .tp b { display: block; font-size: 1.1rem; } .tp small { color: var(--muted); }
.tlast { text-align: right; } .tlast b { display: block; font-size: 1.15rem; } .tlast small { color: var(--muted); font-size: .8rem; }
.tchg { padding: 8px 12px; border-radius: 6px; font-weight: 800; color: #fff; background: var(--ok); min-width: 74px; text-align: center; } .tchg.dn { background: var(--sell); }
.tgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
@media (min-width: 1000px) { .tgrid { grid-template-columns: 1fr 1fr; max-width: 900px; } }
.bs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card2); border-radius: 8px; padding: 3px; margin-bottom: 10px; }
.bs button { border: 0; background: none; padding: 9px; border-radius: 6px; font: 700 1rem var(--body); cursor: pointer; color: var(--muted); }
.bs button[data-side=sell] { color: var(--sell); } .bs.buy button[data-side=buy] { background: var(--ok); color: #fff; } .bs.sell button[data-side=sell] { background: var(--sell); color: #fff; }
.trow { display: flex; gap: 8px; margin-bottom: 10px; } .sel { padding: 9px 10px; font-size: .9rem; background: var(--card2); border-color: transparent; flex: 1; }
.gtc { padding: 9px 12px; border-radius: 10px; background: var(--card2); font-weight: 600; font-size: .9rem; }
.fbox { position: relative; display: block; border: 1px solid var(--line2); border-radius: 8px; padding: 18px 12px 8px; margin-bottom: 10px; }
.fbox > span { position: absolute; top: 4px; left: 12px; font-size: .72rem; color: var(--muted); }
.fbox input { width: 100%; border: 0; background: none; color: var(--fg); font: 600 16px var(--body); outline: none; padding: 0; }
.fbox em { position: absolute; right: 12px; bottom: 9px; font-style: normal; color: var(--muted); font-size: .8rem; }
.fbox:focus-within { border-color: var(--gold); } .fbox.mk b { font-weight: 600; color: var(--muted); }
.pcts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.pcts button { border: 0; border-right: 1px solid var(--line2); background: none; color: var(--fg); padding: 8px 0; font: 600 .82rem var(--body); cursor: pointer; } .pcts button:last-child { border-right: 0; }
.pcts button:active { background: var(--card2); }
.avail { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--muted); margin: 2px 0 12px; } .avail b { color: var(--fg); }
.tlinks { display: flex; justify-content: space-between; margin-top: 10px; font-size: .8rem; }
.tbook { font-size: .78rem; }
.bh { display: flex; justify-content: space-between; color: var(--muted); padding: 2px 2px 6px; }
.bk { position: relative; display: flex; justify-content: space-between; width: 100%; border: 0; background: none; color: var(--fg); padding: 5px 4px; font: 500 .8rem var(--body); cursor: pointer; }
.bk::before { content: ""; position: absolute; right: 0; top: 1px; bottom: 1px; width: var(--w); border-radius: 2px; }
.bk span { position: relative; } .bk.ask span:first-child { color: var(--sell); } .bk.bid span:first-child { color: var(--ok); }
.bk.ask::before { background: rgba(246,70,93,.14); } .bk.bid::before { background: rgba(46,189,133,.14); }
.mid { padding: 8px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; } .mid b { font-size: 1rem; display: block; } .mid small { color: var(--muted); }
.bempty { color: var(--muted); text-align: center; padding: 14px 0; }
.dec { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--line2); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.dec button { border: 0; background: none; color: var(--fg); padding: 7px; font-size: 1rem; cursor: pointer; } .dec b { text-align: center; padding: 7px; border-left: 1px solid var(--line2); border-right: 1px solid var(--line2); }
.tlists { margin-top: 16px; }
.orow { display: grid; grid-template-columns: 1.2fr 1.2fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.orow small { display: block; color: var(--muted); font-size: .75rem; }

/* ---------- profile ---------- */
.prof { display: flex; align-items: center; gap: 16px; padding: 6px 0 18px; }
.prof img { width: 72px; height: 72px; border-radius: 50%; }
.prof b { font-size: 1.25rem; display: flex; align-items: center; gap: 6px; }
.prof small { display: block; color: var(--muted); font-size: .85rem; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(46,189,133,.15); color: var(--ok); margin-top: 6px; }
.vbadge.no { background: rgba(132,142,156,.15); color: var(--muted); }
.plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); margin-bottom: 8px; color: var(--fg); }
.plan .t { flex: 1; } .plan b { display: block; } .plan small { color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: 600 .95rem var(--body); cursor: pointer; text-align: left; }
.menu .t { flex: 1; }
.menu .tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(46,189,133,.15); color: var(--ok); }
.menu .tag.no { background: rgba(132,142,156,.15); color: var(--muted); }
.chev { color: var(--muted); }

/* ---------- P2P ---------- */
.p2ptop { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 9px 24px; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.seg button.on { background: var(--fg); color: #181A20; }
.p2ptop .sp { flex: 1; }
.curbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--fg); background: none; color: var(--fg); font-weight: 700; cursor: pointer; }
.filters { display: flex; align-items: center; gap: 18px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.filters button { flex: none; background: none; border: 0; color: var(--fg); font: 600 .95rem var(--body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 0; }
.filters button.act2 { color: var(--gold); }
.filters .coinmini { width: 22px; height: 22px; border-radius: 50%; }
.ad { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ad { padding: 18px 6px; } }
.mer { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-weight: 600; }
.mer .av { width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: #181A20; display: grid; place-items: center; font-weight: 800; font-size: .8rem; position: relative; flex: none; }
.mer .av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.mstats { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; margin-top: -4px; }
.adl .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 4px; } .adl .price small { font-size: .82rem; color: var(--muted); font-weight: 500; margin-left: 2px; }
.adl .price .cs { font-size: 1rem; font-weight: 700; margin-right: 4px; }
.adl .kvs { font-size: .85rem; color: var(--muted); display: grid; gap: 4px; } .adl .kvs b { color: var(--fg); font-weight: 600; }
.adr { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 6px; text-align: right; }
.adr .pm { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.adr .pm::after { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--c, var(--gold)); }
.adr .tm { color: var(--muted); font-size: .82rem; text-decoration: underline dotted; }
.adr .btn { min-width: 128px; margin-top: 4px; }
.safe { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(252,213,53,.06); color: #EBDCA4; font-size: .84rem; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.step { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); }
.step i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: var(--card2); font-style: normal; color: var(--fg); font-weight: 700; }
.step.done i { background: var(--ok); } .step.cur i { background: var(--gold); color: #181A20; } .step.cur { color: var(--fg); }
.timer { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: rgba(252,213,53,.08); margin-bottom: 14px; font-weight: 600; }
.timer b { color: var(--gold); font-size: 1.1rem; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; } .kv span { color: var(--muted); } .kv b { text-align: right; word-break: break-word; font-weight: 600; }
.esc { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; background: rgba(46,189,133,.08); }
.esc i { font-style: normal; font-size: 1.5rem; }
.chat { display: grid; gap: 8px; max-height: 320px; overflow: auto; align-content: start; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: .88rem; background: var(--card2); white-space: pre-wrap; word-break: break-word; }
.msg.me { margin-left: auto; background: rgba(252,213,53,.16); } .msg.sys { max-width: 100%; text-align: center; background: none; color: var(--muted); font-size: .78rem; }
.chatin { display: flex; gap: 8px; margin-top: 10px; } .chatin input { flex: 1; }
.status-tag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card2); }
.paybox { background: var(--card2); padding: 12px 14px; border-radius: 10px; font-weight: 600; white-space: pre-wrap; word-break: break-word; }

/* ---------- sheets (bottom modals) ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 600px) { .modal { align-items: center; padding: 20px; } }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--panel); border-radius: 18px 18px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 14px; }
@media (min-width: 600px) { .sheet { border-radius: 18px; padding: 20px 24px; } .sheet::before { display: none; } }
.sheet h3 { margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 700; }
.sheet h3 button { border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.search .inp { flex: 1; } .search .inp input { background: var(--card2); border-color: transparent; padding-right: 14px; }
.search button { background: none; border: 0; color: var(--gold); font: 600 1rem var(--body); cursor: pointer; }
.curlist .grp { color: var(--muted); font-size: .9rem; margin: 14px 0 4px; }
.curlist button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 0; background: none; border: 0; color: var(--fg); cursor: pointer; text-align: left; }
.curlist .sym { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem; flex: none; }
.curlist b { display: block; font-weight: 600; } .curlist small { color: var(--muted); }
.curlist button.on b { color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; background: var(--card2); padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
@media (min-width: 1000px) { .toast { bottom: 28px; } }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.tp b { white-space: nowrap; font-size: 1rem; } .bh { font-size: .72rem; white-space: nowrap; gap: 6px; }
@media (max-width: 400px) { .tlast b { font-size: 1rem; } .tchg { min-width: 64px; padding: 7px 8px; font-size: .9rem; } .thead { gap: 8px; } .tchart { width: 40px; height: 40px; } }
