/* ---------- CUBEX 官网 · 资产 / 充值 ---------- */
.assets-page { background: radial-gradient(1200px 600px at 50% -10%, rgba(0,226,138,.06), transparent 60%), var(--bg); }

.a-wrap { max-width: 1180px; margin: 0 auto; padding: 104px 24px 90px; }

.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; color: var(--mint); font-weight: 700; }
.eyebrow i { width: 16px; height: 1px; background: var(--mint); display: inline-block; }
.a-head h1 { margin: 10px 0 6px; font-size: 34px; letter-spacing: -1px; font-weight: 850; }
.a-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.a-actions { display: flex; align-items: center; gap: 10px; }

.a-card { background: linear-gradient(180deg, #0b1017 0%, #080c12 100%); border: 1px solid var(--line); border-radius: 20px; }

/* 登录门 */
.gate { padding: 54px 24px; text-align: center; }
.gate-ico { font-size: 30px; color: var(--mint); opacity: .9; }
.gate h2 { margin: 12px 0 6px; font-size: 20px; }
.gate p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.gate-btns { display: flex; gap: 10px; justify-content: center; }

/* 总资产 */
.total { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; padding: 26px 28px; margin-bottom: 18px; }
.a-lab { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; letter-spacing: .04em; }
.eye { border: 0; background: transparent; color: #6d7a88; font-size: 11.5px; padding: 2px 0; }
.eye:hover { color: var(--text); }
.a-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.a-amount b { font-size: 40px; font-weight: 850; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; line-height: 1; }
.a-amount span { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .12em; }
.a-chg { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--mint); font-variant-numeric: tabular-nums; }
.a-chg.down { color: var(--red); }
.spark { margin-top: 16px; height: 64px; }
.spark svg { width: 100%; height: 100%; display: block; }

.total-side { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #b9c4d0; }
.side-row b { font-variant-numeric: tabular-nums; font-size: 14px; }
.side-hint { font-size: 11px; color: #66727f; margin-top: 4px; }

/* 明细 + 账单 */
.a-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.list-card { padding: 20px 22px 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.card-head h4 { margin: 0; font-size: 13px; }
.card-head a, .card-head .btn.link { color: #94a1ae; font-size: 11.5px; }
.card-head .btn.link:hover { color: #fff; }
.a-rows { display: flex; flex-direction: column; }

.asset-head {
  display: grid; grid-template-columns: minmax(0,1fr) 130px 130px 150px; gap: 12px;
  padding: 4px 0 9px; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 10.5px; letter-spacing: .08em; color: #66727f;
}
.asset-head .ta-r { text-align: right; }
.asset-row {
  display: grid; grid-template-columns: minmax(0,1fr) 130px 130px 150px; gap: 12px;
  align-items: center; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.055);
}
.asset-row:first-child { border-top: 0; }
.asset-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asset-num { text-align: right; font-variant-numeric: tabular-nums; }
.asset-num b { display: block; font-size: 13.5px; }
.asset-num span { display: block; font-size: 10px; color: #5f6b78; letter-spacing: .06em; margin-top: 2px; }
.asset-num.ta-r { text-align: right; }
.coin { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #04130d; flex: none; }
.asset-meta { flex: 1; min-width: 0; }
.asset-meta b { display: block; font-size: 13.5px; }
.asset-meta span { display: block; font-size: 11px; color: #6f7c89; margin-top: 2px; }
.asset-qty { text-align: right; margin-right: 14px; }
.asset-qty b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.asset-qty span { display: block; font-size: 11px; color: #6f7c89; font-variant-numeric: tabular-nums; }
.asset-val { width: 108px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: #cfd8e2; }
.asset-val span { display: block; font-size: 10px; color: #5f6b78; letter-spacing: .06em; }

.led-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.055); }
.led-row:first-child { border-top: 0; }
.led-ico { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #9aa6b3; flex: none; }
.led-meta { flex: 1; min-width: 0; }
.led-meta b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led-meta span { font-size: 10.5px; color: #5f6b78; }
.led-amt { font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 700; }
.led-amt.up { color: var(--mint); }
.led-amt.down { color: var(--red); }

.empty { padding: 26px 0; text-align: center; color: #5f6b78; font-size: 12px; }

/* 充值弹层 */
.dep-mask { position: fixed; inset: 0; z-index: 80; background: rgba(2,4,7,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dep-mask[hidden] { display: none; }
.dep-sheet { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: linear-gradient(180deg,#0c1219,#080c12); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.dep-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #7d8a97; font-size: 24px; line-height: 1; }
.dep-sheet h3 { margin: 0 0 6px; font-size: 19px; }
.dep-sub { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }

.dep-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dep-tabs button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #8b98a5; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.dep-tabs button.on { background: rgba(0,226,138,.12); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(0,226,138,.3); }

.dep-body { display: flex; gap: 18px; margin-top: 18px; align-items: center; }
.dep-qr { width: 168px; height: 168px; flex: none; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dep-qr img { width: 100%; height: 100%; display: block; }
.qr-skeleton { color: #9aa6b3; font-size: 11px; letter-spacing: .14em; }
.dep-info { flex: 1; min-width: 0; }
.dep-net { display: inline-block; font-size: 10.5px; letter-spacing: .14em; color: var(--mint); border: 1px solid rgba(0,226,138,.28); background: rgba(0,226,138,.06); padding: 4px 8px; border-radius: 6px; }
.dep-addr { display: block; margin: 10px 0; font-size: 12.5px; line-height: 1.55; word-break: break-all; color: #dbe3ea; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dep-btns { display: flex; align-items: center; gap: 8px; }
.dep-btns .btn { height: 34px; padding: 0 14px; font-size: 12px; }
.dep-btns .btn.link { color: #8b98a5; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }
.dep-btns .btn.link:hover { color: #fff; }
.dep-min { margin-top: 9px; font-size: 11px; color: #6f7c89; }
.dep-warn { margin-top: 16px; font-size: 11.5px; line-height: 1.6; color: #f0b46a; background: rgba(240,180,106,.07); border: 1px solid rgba(240,180,106,.22); border-radius: 10px; padding: 10px 12px; }
.dep-hist { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.dep-hist .a-rows { max-height: 210px; overflow: auto; }

.pill { font-size: 10px; padding: 2px 7px; border-radius: 999px; letter-spacing: .05em; }
.pill.ok { color: var(--mint); background: rgba(0,226,138,.1); }
.pill.wait { color: #f0b46a; background: rgba(240,180,106,.1); }
.pill.bad { color: var(--red); background: rgba(255,77,106,.1); }

/* 提现表单 */
.wd-sheet { width: min(520px, 100%); }
.wd-avail { margin-top: 14px; font-size: 12px; color: #8b98a5; }
.wd-avail b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 14px; }
.wd-field { margin-top: 14px; }
.wd-field label { display: block; font-size: 11.5px; color: #8b98a5; margin-bottom: 6px; letter-spacing: .03em; }
.wd-field input {
  width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035); color: var(--text); font-size: 13px; padding: 0 12px;
  font-variant-numeric: tabular-nums; outline: none;
}
.wd-field input:focus { border-color: rgba(0,226,138,.45); background: rgba(0,226,138,.04); }
.wd-field input::placeholder { color: #55616e; }
.wd-amt { display: flex; gap: 8px; align-items: center; }
.wd-amt input { flex: 1; }
.wd-amt .btn.link { flex: none; color: var(--mint); font-size: 12px; text-decoration: none; }
.wd-fee { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 11px; color: #6f7c89; font-variant-numeric: tabular-nums; }
.wd-fee b { color: #b9c4d0; font-weight: 600; }
.wd-code { display: flex; gap: 8px; }
.wd-code input { flex: 1; }
.wd-code .btn { flex: none; height: 44px; padding: 0 14px; font-size: 12px; }
.wd-submit { width: 100%; height: 44px; margin-top: 16px; font-size: 13.5px; border-radius: 11px; }
.wd-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
#wdNotice a { text-decoration: underline; }

@media (max-width: 900px) {
  .total { grid-template-columns: 1fr; }
  .total-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; }
  .a-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .a-wrap { padding: 92px 16px 80px; }
  .a-head h1 { font-size: 27px; }
  .a-actions { width: 100%; }
  .a-actions .btn { flex: 1; }
  .a-amount b { font-size: 33px; }
  .total { padding: 20px; }
  .dep-body { flex-direction: column; align-items: stretch; }
  .dep-qr { align-self: center; }
  .asset-head { grid-template-columns: minmax(0,1fr) 96px 88px; }
  .asset-head .col-frozen, .asset-row .col-frozen { display: none; }
  .asset-row { grid-template-columns: minmax(0,1fr) 96px 88px; }
  .dep-sheet { padding: 22px 18px 16px; border-radius: 18px; }
}
