:root {
  --bg: #f5f7fb;
  --card: #fff;
  --text: #111827;
  --muted: #6b7280;
  --blue: #2f80ed;
  --line: #eef0f4;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, system-ui, sans-serif; }
#gate { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.gate-card { text-align: center; }
.logo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(145deg, #2f80ed, #56ccf2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; margin: 0 auto 12px; }
.hidden { display: none !important; }
#app { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 72px; }
.top { padding: 28px 16px 8px; text-align: center; }
.bal { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.sub { color: var(--muted); margin-top: 2px; }
.actions { display: flex; justify-content: center; gap: 28px; margin: 18px 0 8px; }
.act { background: none; border: 0; color: var(--blue); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.act .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
main { padding: 8px 16px 16px; flex: 1; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.addr { background: #f3f4f6; border-radius: 12px; padding: 10px; font-size: 13px; word-break: break-all; margin: 8px 0; }
input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0; font-size: 15px; }
.primary, .ghost { width: 100%; border: 0; border-radius: 12px; padding: 12px; font-weight: 600; margin-top: 8px; }
.primary { background: var(--blue); color: #fff; }
.ghost { background: #eef2ff; color: var(--blue); }
.asset { display: flex; align-items: center; gap: 12px; }
.sym { width: 40px; height: 40px; border-radius: 50%; background: #2f80ed; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.meta .name { font-weight: 600; }
.meta .price { font-size: 12px; color: var(--muted); }
.amt { margin-left: auto; font-weight: 600; }
.profile { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #e5e7eb; object-fit: cover; }
.stats { display: grid; gap: 10px; }
.lbl { font-size: 12px; color: var(--muted); }
.val { font-weight: 600; }
.val.small { font-size: 12px; word-break: break-all; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--line); display: flex; }
.tab { flex: 1; border: 0; background: none; font-weight: 600; color: var(--muted); }
.tab.on { color: var(--blue); }
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tx .in { color: #16a34a; }
.tx .out { color: #dc2626; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: #111827; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; }
