/* ============================================================
   holoX · 移动端
   视觉参考 OKX：纯黑底 / 低饱和面板 / 绿涨品红跌 / 大字号数字
   ============================================================ */
:root {
  color-scheme: dark; /* 让 select/input/滚动条等原生控件走暗色，不再出现白底 */
  --bg: #000000;
  --panel: #0e0e0e;
  --panel-2: #1d1d1d;
  --panel-3: #262626;
  --line: #1c1c1c;
  --line-2: #2e2e2e;
  --text: #fafafa;
  --text-2: #909090;
  --text-3: #6b6b6b;
  --up: #25a750;
  --down: #ca3f64;
  --up-soft: rgba(37, 167, 80, 0.12);
  --down-soft: rgba(202, 63, 100, 0.12);
  --radius: 12px;
  --radius-s: 4px;
  --nav-h: 54px;
  --top-h: 50px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-num: "SF Pro Display", -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  /* 与 OKX 实际使用的字体栈一致（不含其专有 OKXSans，用系统可用的替代） */
  font-family: "HarmonyOS Sans", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
input { outline: none; }
input::placeholder { color: var(--text-3); }
::-webkit-scrollbar { width: 0; height: 0; }
.num, .m-last, .ss-price, .ah-value, .book-list, .a-bal, .a-val, .o-mid { font-variant-numeric: tabular-nums; }

#app {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) {
  body { background: #050505; }
  #app { box-shadow: 0 0 80px rgba(0, 0, 0, 0.9); }
}

/* ---------------- 顶栏 ---------------- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  border-radius: 8px;
  position: relative;
}
.icon-btn:active { background: var(--panel-2); }
#btnBack { display: none; }
.brand { display: flex; align-items: center; gap: 8px; padding-left: 2px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background:#0B0E11 url('/img/holox-mark.png') center/86% auto no-repeat;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }
.dot-badge {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--down);
}

/* ---------------- 页面容器 ---------------- */
main { flex: 1; }
.page { display: none; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px); }
.page.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0.5; } to { opacity: 1; } }

/* ---------------- 底部导航 ---------------- */
#tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 520px;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 30;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-3); font-size: 10px; font-weight: 500;
}
.tab svg { color: var(--text-3); }
.tab.active { color: var(--text); }
.tab.active svg { color: var(--up); }

/* ---------------- 行情页 ---------------- */
.market-head { padding: 10px 16px 2px; }
.mh-title { font-size: 20px; font-weight: 800; letter-spacing: 0.2px; }
.mh-sub { color: var(--text-3); font-size: 11px; margin-top: 3px; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 10px 12px 4px;
}
.stat-card {
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 9px 10px 10px;
  min-width: 0;
}
.stat-card label { display: block; font-size: 10px; color: var(--text-2); margin-bottom: 3px; }
.stat-card b { display: block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }
.stat-card em { display: block; font-style: normal; font-size: 10px; margin-top: 2px; }

.seg-tabs {
  display: flex; gap: 20px; padding: 12px 16px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.seg {
  font-size: 14px; color: var(--text-3); font-weight: 500;
  padding: 0 0 9px; position: relative; white-space: nowrap;
}
.seg.active { color: var(--text); font-weight: 700; }
.seg.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--text); border-radius: 2px;
}

.list-head {
  display: flex; justify-content: space-between;
  padding: 11px 16px 6px; font-size: 11px; color: var(--text-3);
}
.market-list { padding: 0 0 4px; }
.m-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
}
.m-row:active { background: #101010; }
.m-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  background: #2a2a2a;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.m-icon[data-c="BTC"] { background: linear-gradient(160deg, #f7931a, #c76f00); }
.m-icon[data-c="ETH"] { background: linear-gradient(160deg, #7f8fe8, #4a5bb5); }
.m-icon[data-c="BNB"] { background: linear-gradient(160deg, #f3ba2f, #c08e00); }
.m-icon[data-c="SOL"] { background: linear-gradient(160deg, #9945ff, #14f195); }
.m-icon[data-c="TRX"] { background: linear-gradient(160deg, #ef0027, #b3001e); }
.m-icon[data-c="DOGE"] { background: linear-gradient(160deg, #cfae3a, #8f7820); }
.m-icon[data-c="USDT"] { background: linear-gradient(160deg, #26a17b, #16765a); }
.m-icon svg { width: 22px; height: 22px; display: block; }
.m-name { flex: 1; min-width: 0; }
.m-pair { font-size: 15px; font-weight: 700; letter-spacing: 0.1px; }
.m-pair em { font-style: normal; color: var(--text-3); font-weight: 500; font-size: 11px; }
.m-vol { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.m-price { text-align: right; }
.m-last { font-size: 15px; font-weight: 700; color: var(--text); }
.m-last.up { color: var(--up); }
.m-last.down { color: var(--down); }
.m-chg { font-size: 11px; margin-top: 2px; font-weight: 600; }
.m-chg.up { color: var(--up); }
.m-chg.down { color: var(--down); }
.m-chg.flat { color: var(--text-3); }
.list-foot { text-align: center; color: var(--text-3); font-size: 10px; padding: 16px 0 8px; }

/* ---------------- 交易页 ---------------- */
.symbol-bar { padding: 8px 16px 6px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.sym-picker {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 15px; font-weight: 700; padding: 2px 0;
}
.sym-picker svg { color: var(--text-2); }
.sym-stat { flex: 1; padding-left: 2px; }
.ss-price { font-size: 21px; font-weight: 800; line-height: 1.15; color: var(--text); }
.ss-price.up { color: var(--up); }
.ss-price.down { color: var(--down); }
.ss-change { font-size: 12px; font-weight: 600; margin-top: 1px; }
.ss-change.up { color: var(--up); }
.ss-change.down { color: var(--down); }
.sym-extra { display: flex; gap: 18px; width: 100%; padding-top: 4px; }
.sym-extra div { display: flex; flex-direction: column; gap: 1px; }
.sym-extra label { font-size: 9px; color: var(--text-3); }
.sym-extra b { font-size: 11px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

.chart-wrap { border-top: 8px solid #0a0a0a; }
.chart-head {
  width: 100%; height: 38px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-2); font-weight: 500;
}
.chart-head svg { transition: transform 0.2s; }
.chart-head.open svg { transform: rotate(180deg); }
.chart-body { padding-bottom: 6px; }
.chart-tabs { display: flex; gap: 8px; padding: 6px 16px 0; }
.ct {
  font-size: 12px; color: var(--text-3); padding: 4px 10px; border-radius: 999px;
  background: var(--panel-2);
}
.ct.active { color: var(--text); background: var(--panel-3); font-weight: 600; }
.interval-tabs { display: flex; gap: 4px; padding: 8px 14px 6px; overflow-x: auto; }
.it {
  font-size: 11px; color: var(--text-3); padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.it.active { color: var(--text); background: var(--panel-2); font-weight: 700; }
.canvas-box { position: relative; height: 246px; margin: 0 2px; }
#klineCanvas, #depthCanvas { width: 100%; height: 100%; display: block; touch-action: pan-x; }
.chart-tip {
  position: absolute; left: 8px; top: 6px;
  font-size: 10px; color: var(--text-2);
  background: rgba(20, 20, 20, 0.86);
  padding: 3px 7px; border-radius: 4px;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
}

/* 交易主区：左下单 / 右盘口（OKX 移动端排布） */
.trade-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 0 6px 4px; }
.book-side { border-left: 1px solid var(--line); padding-left: 8px; padding-top: 2px; }
.book-side-tabs { display: flex; gap: 14px; padding: 0 4px 6px; }
.bs { font-size: 11px; color: var(--text-3); padding-bottom: 3px; position: relative; }
.bs.active { color: var(--text); font-weight: 700; }
.bs.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--text); border-radius: 2px;
}
.book-head {
  display: flex; justify-content: space-between;
  padding: 0 4px 4px; font-size: 9px; color: var(--text-3);
}
.book-list { font-size: 12px; }
.book-head.three { display: grid; grid-template-columns: 1fr 1fr 26px; gap: 2px; }
.book-head.three span:nth-child(2) { text-align: right; }
.book-head.three span:nth-child(3) { text-align: center; }
.book-list .row {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr 26px; gap: 2px;
  align-items: center;
  padding: 0 4px; height: 21px;
  overflow: hidden;
}
.book-list .row .bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 0; z-index: 0; opacity: 0.16;
}
.book-list.asks .row .bar { background: var(--down); }
.book-list.bids .row .bar { background: var(--up); }
/* 防溢出：价格位数变长时省略，不撑破三列布局 */
.book-list .row span {
  position: relative; z-index: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.book-list .row .amt { text-align: right; color: var(--text-2); }
.book-list .row .price { font-weight: 600; }
.book-list.asks .price { color: var(--down); }
.book-list.bids .price { color: var(--up); }
.book-list.trades .price.up { color: var(--up); }
.book-list.trades .price.down { color: var(--down); }
.row-act {
  position: relative; z-index: 2;
  height: 16px; padding: 0;
  font-size: 9px; font-weight: 700;
  border-radius: 4px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.row-act:active { transform: scale(0.92); }
.row-act.buy { color: var(--up); background: rgba(37, 167, 80, 0.18); border-color: rgba(37, 167, 80, 0.3); }
.row-act.sell { color: var(--down); background: rgba(202, 63, 100, 0.18); border-color: rgba(202, 63, 100, 0.3); }
.row-act.mine { box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.35) inset; }
.book-mid {
  padding: 3px 4px; font-size: 15px; font-weight: 800;
  color: var(--up); background: #101010;
  font-variant-numeric: tabular-nums;
}
.book-mid.down { color: var(--down); }
.book-mid.flat { color: var(--text); }
.book-list.trades .row { display: flex; justify-content: space-between; padding: 3px 12px; height: 22px; }

/* ---------------- 下单面板 ---------------- */
.order-panel { padding: 2px 4px 0; border: 0; }
.op-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 11px; }
.op-tab {
  height: 34px; border-radius: 4px;
  font-size: 13px; font-weight: 700;
  background: var(--panel-2); color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.op-tab.buy.active { background: var(--up); color: #fff; }
.op-tab.sell.active { background: var(--down); color: #fff; }

.type-tabs { display: flex; gap: 14px; margin-bottom: 8px; }
.ot { font-size: 11px; color: var(--text-3); padding: 2px 0; position: relative; }
.ot.active { color: var(--text); font-weight: 700; }
.ot.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--text); border-radius: 2px;
}

.price-chips { display: flex; gap: 5px; margin: 4px 0 8px; flex-wrap: wrap; }
.pc {
  font-size: 10px; color: var(--text-2);
  padding: 3px 7px; border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid transparent;
}
.pc:active, .pc.on { color: var(--up); border-color: rgba(37, 167, 80, 0.45); background: rgba(37, 167, 80, 0.1); }

.order-panel.flash { animation: panelFlash 0.9s ease; }
@keyframes panelFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(37, 167, 80, 0); }
  25% { box-shadow: inset 0 0 0 2px rgba(37, 167, 80, 0.55); }
  100% { box-shadow: inset 0 0 0 0 rgba(37, 167, 80, 0); }
}

.o-progress { height: 2px; background: #232323; border-radius: 2px; margin: 7px 0 4px; overflow: hidden; }
.o-progress i { display: block; height: 100%; background: var(--up); width: 0; }
.o-edit {
  font-size: 11px; color: var(--text); padding: 3px 10px;
  border-radius: 4px; background: var(--panel-3); margin-right: 6px;
}

.form-row { display: block; margin-bottom: 8px; }
.form-row label { display: block; width: auto; color: var(--text-3); font-size: 10px; margin-bottom: 4px; }
.input-box {
  display: flex; align-items: center; gap: 5px;
  min-width: 0; height: 40px; padding: 0 8px;
  background: var(--panel-2); border-radius: var(--radius-s);
  border: 1px solid transparent;
}
.input-box:focus-within { border-color: rgba(250, 250, 250, 0.22); }
.input-box input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: 0;
  font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.input-box .unit { color: var(--text-3); font-size: 10px; white-space: nowrap; }
.step-btn {
  width: 24px; height: 24px; border-radius: 4px;
  background: #2c2c2c; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; flex-shrink: 0;
}
.step-btn:active { background: #383838; }
#rowStop { display: none; }

.pct-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.pct {
  height: 26px; font-size: 10px;
  color: var(--text-2); background: var(--panel-2);
  border-radius: 4px;
}
.pct:active { color: var(--text); background: var(--panel-3); }

.avail-line {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10px; color: var(--text-3); margin-bottom: 8px;
}
/* 数值变长时按需省略，不让整行超出下单面板（曾把"预计 xx"的末位裁掉） */
.avail-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avail-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.submit-btn {
  width: 100%; height: 42px; border-radius: var(--radius-s);
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  transition: transform 0.12s, opacity 0.15s;
}
.submit-btn:active { transform: scale(0.985); opacity: 0.92; }
.submit-btn.buy { background: var(--up); color: #fff; }
.submit-btn.sell { background: var(--down); color: #fff; }
.submit-btn.trade { background: var(--up); color: #fff; }
.fee-hint { text-align: center; color: var(--text-3); font-size: 10px; padding: 9px 0 2px; }

/* ---------------- 委托 ---------------- */
.orders-block { border-top: 8px solid #0a0a0a; margin-top: 2px; }
.ob-tabs { display: flex; gap: 22px; padding: 10px 16px 8px; border-bottom: 1px solid var(--line); }
.ob { font-size: 12px; color: var(--text-3); padding-bottom: 5px; position: relative; }
.ob.active { color: var(--text); font-weight: 700; }
.ob.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--text); border-radius: 2px;
}
.order-list { min-height: 110px; }
.o-item {
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.o-top { display: flex; justify-content: space-between; align-items: center; }
.o-left { display: flex; align-items: center; }
.o-sym { font-size: 13px; font-weight: 700; }
.o-side { font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.o-side.buy { color: var(--up); background: var(--up-soft); }
.o-side.sell { color: var(--down); background: var(--down-soft); }
.o-status { font-size: 11px; color: var(--text-3); }
.o-mid { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-2); font-size: 11px; }
.o-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--text-3); font-size: 10px; }
.o-cancel {
  font-size: 11px; color: var(--text);
  padding: 3px 10px; border-radius: 4px; background: var(--panel-3);
}
.empty-tip { text-align: center; color: var(--text-3); font-size: 12px; padding: 34px 0; }

/* ---------------- 资产 ---------------- */
.asset-hero {
  margin: 12px; padding: 16px;
  background: var(--panel-2); border-radius: var(--radius);
}
.ah-label { color: var(--text-2); font-size: 11px; }
.ah-value { font-size: 30px; font-weight: 800; margin: 6px 0 16px; letter-spacing: 0.2px; }
.ah-actions { display: flex; gap: 8px; }
.pill {
  flex: 1; height: 34px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  background: var(--panel-3); color: var(--text);
}
.pill:active { background: #333; }
.asset-list-head {
  display: grid; grid-template-columns: 1fr 1.1fr 0.8fr;
  padding: 6px 16px; font-size: 11px; color: var(--text-3);
}
.asset-list-head span:nth-child(2), .asset-list-head span:nth-child(3) { text-align: right; }
.a-row {
  display: grid; grid-template-columns: 1fr 1.1fr 0.8fr; gap: 8px;
  padding: 12px 16px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.a-row:active { background: #0d0d0d; }
.a-coin { display: flex; align-items: center; gap: 9px; min-width: 0; }
.a-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff; background: #2a2a2a;
}
.a-dot[data-c="BTC"] { background: linear-gradient(160deg, #f7931a, #c76f00); }
.a-dot[data-c="ETH"] { background: linear-gradient(160deg, #7f8fe8, #4a5bb5); }
.a-dot[data-c="BNB"] { background: linear-gradient(160deg, #f3ba2f, #c08e00); }
.a-dot[data-c="SOL"] { background: linear-gradient(160deg, #9945ff, #14f195); }
.a-dot[data-c="TRX"] { background: linear-gradient(160deg, #ef0027, #b3001e); }
.a-dot[data-c="DOGE"] { background: linear-gradient(160deg, #cfae3a, #8f7820); }
.a-dot[data-c="USDT"] { background: linear-gradient(160deg, #26a17b, #16765a); }
.a-dot svg { width: 18px; height: 18px; display: block; }
.a-name { font-size: 14px; font-weight: 700; }
.a-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.a-bal { text-align: right; font-size: 14px; font-weight: 600; }
.a-frozen { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.a-val { text-align: right; font-size: 12px; color: var(--text-2); }

/* ---------------- 我的 ---------------- */
.me-hero { display: flex; align-items: center; gap: 12px; padding: 20px 16px 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  background: linear-gradient(150deg, #25a750, #14713a);
  color: #fff;
  overflow: hidden; position: relative; flex: 0 0 auto;
  cursor: pointer; transition: transform .15s ease;
}
.avatar:active { transform: scale(.95); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 未设置头像时，右下一个相机小角标提示可点击更换 */
.avatar:not(.has-img)::after {
  content: ""; position: absolute; right: 2px; bottom: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #0b0b0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l2-2h6l2 2h3v11H4z' fill='none' stroke='%23fafafa' stroke-width='2'/%3E%3Ccircle cx='12' cy='13' r='3.2' fill='none' stroke='%23fafafa' stroke-width='2'/%3E%3C/svg%3E") center/9px 9px no-repeat;
  border: 1px solid #2e2e2e;
}
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 17px; font-weight: 700; }
.me-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.kyc-badge {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  color: var(--up); background: var(--up-soft); white-space: nowrap;
}
.me-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 12px; padding: 12px 0;
  background: var(--panel-2); border-radius: var(--radius);
}
.me-cell { padding: 4px 0; text-align: center; }
.me-cell b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-cell span { font-size: 10px; color: var(--text-3); }
.me-menu {
  margin: 12px; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2);
}
.menu-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid #262626;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:active { background: #242424; }
.menu-item em { font-style: normal; color: var(--text-3); font-size: 11px; }
.menu-item.danger { color: var(--down); }
.risk-note { padding: 14px 16px 10px; color: var(--text-3); font-size: 10px; line-height: 1.8; }

/* ---------------- 浮层 / 弹层 ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: #131313;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 22px 20px 18px;
  animation: pop 0.2s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-logo {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 12px; background: var(--up); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.auth-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.auth-head p { margin: 5px 0 0; font-size: 11px; color: var(--text-3); }
.auth-form .field { margin-bottom: 11px; }
.field label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 5px; padding-left: 2px; }
.field input {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--panel-2); border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: 14px;
}
.field input:focus { border-color: rgba(250, 250, 250, 0.24); }
.auth-err { color: var(--down); font-size: 11px; min-height: 16px; padding: 0 2px 6px; }
.auth-switch { display: flex; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.auth-switch button { color: var(--up); font-weight: 600; }
.auth-note { text-align: center; color: var(--text-3); font-size: 10px; margin-top: 14px; line-height: 1.6; }

.sheet-mask {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end;
}
.sheet {
  width: 100%; max-width: 520px; margin: 0 auto;
  background: #131313;
  border-radius: 16px 16px 0 0;
  padding: 4px 0 calc(8px + var(--safe-b));
  max-height: 86vh; display: flex; flex-direction: column;
  animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.sheet-body { padding: 14px 16px; overflow-y: auto; }

.toast {
  position: fixed; left: 50%; bottom: 108px;
  transform: translateX(-50%) translateY(10px);
  background: #1f1f1f; color: var(--text);
  border: 1px solid #333;
  padding: 9px 16px; border-radius: 999px;
  font-size: 12px; max-width: 86vw; text-align: center;
  opacity: 0; pointer-events: none; transition: all 0.22s; z-index: 60;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   弹层表单（充值 / 提现 / 实名认证 / 邀请 / 安全中心共用）
   这几个类原来没有样式，控件会退回浏览器原生白底外观
   ============================================================ */
.field-row { margin-bottom: 12px; }
.field-row label {
  display: block; font-size: 11px; color: var(--text-2);
  margin-bottom: 6px; padding-left: 2px;
}
.field-row input,
.field-row select {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
                    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.field-row input::placeholder { color: var(--text-3); }
.field-row input:focus,
.field-row select:focus { border-color: rgba(250, 250, 250, 0.24); }
.btn-row { margin-top: 14px; }
.btn-primary {
  width: 100%; height: 44px; border: 0;
  border-radius: var(--radius-s);
  background: var(--up); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-primary:active { opacity: 0.9; }
.btn-ghost {
  width: 100%; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: transparent; color: var(--text-2);
  font-size: 14px; cursor: pointer;
}

/* ============================================================
   弹层列表与详情（选择交易对 / 资金流水 / 键值行）
   这批类此前只在 app.js 里拼接出现、app.css 从未定义，
   币种弹层与流水页会退回浏览器原生按钮外观、条目挤在一起
   ============================================================ */

/* 币种矢量图标：没有被 .m-icon / .a-dot 包裹时给一个基础尺寸
   （.m-icon svg / .a-dot svg 选择器特异性更高，会覆盖这里的值） */
.ci { width: 20px; height: 20px; display: block; flex: none; }

.sym-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sym-cell {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-s);
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; cursor: pointer;
}
.sym-cell:active { background: var(--panel-3); }
.sym-cell.active { border-color: rgba(37, 167, 80, 0.5); background: rgba(37, 167, 80, 0.1); }
.sym-cell .p { font-size: 12px; font-weight: 600; }
.sym-cell .c { font-size: 10px; margin-top: 3px; font-variant-numeric: tabular-nums; }

.kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-2); }
.kv b { color: var(--text); font-weight: 600; text-align: right; }

.ledger-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text);
}
.ledger-top b { font-variant-numeric: tabular-nums; }
.ledger-top b.pos { color: var(--up); }
.ledger-top b.neg { color: var(--down); }
.ledger-sub {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 3px; font-size: 10px; color: var(--text-3);
  overflow: hidden;
}
.ledger-sub span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-sub span:last-child { flex: none; font-variant-numeric: tabular-nums; }

.asset-list { padding: 0; }


