:root {
  --bg: #0a0b0d;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232833;
  --border: #262b34;
  --text: #eaecef;
  --muted: #848e9c;
  --accent: #2b6cff;
  --accent-2: #6f4bff;
  --green: #0ecb81;
  --red: #f6465d;
  --gold: #f5b544;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(1200px 600px at 70% -10%, #16203a 0%, transparent 55%),
              radial-gradient(900px 500px at 10% 0%, #1b1630 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }

.app { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px) 48px; }

.navbar {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; }
.logo {
  font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
  color: #fff;
}
.logo span { color: var(--accent); }
.brand-sub {
  font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 42px; max-width: 60px; height: 32px; padding: 0 8px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font: inherit; line-height: 1;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-btn:focus-visible { outline: none; border-color: var(--accent); }
.lang-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex: none; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  display: none; flex-direction: column; min-width: 168px; max-height: 320px; overflow-y: auto;
  padding: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.lang-menu.open { display: flex; }
.lang-option {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  background: transparent; border: none; border-radius: 8px; color: var(--text);
  font: inherit; font-size: 13px; text-align: left; white-space: nowrap; cursor: pointer;
}
.lang-option:hover { background: var(--surface-3); }
.lang-option.active { color: #9db7ff; background: rgba(43,108,255,0.14); }
a.user-chip { text-decoration: none; }
.user-chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 20px;
  background: rgba(43,108,255,0.14); border: 1px solid rgba(43,108,255,0.4);
  color: #7ea2ff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.copy-line { display: flex; gap: 8px; }
.copy-line input { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 10px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  border: none; border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: #2c3341; }
.btn-block { width: 100%;margin-top: 10px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.icon-btn {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; display: inline-flex; padding: 4px; border-radius: 6px;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }

.notify-btn { position: relative; color: var(--muted); }
.notify-btn:hover { color: var(--text); }
.notify-dot {
  position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px var(--bg), 0 0 8px var(--red);
}
.section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); margin: 4px 0 10px;
}
.account-panel { max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; }
.account-grid {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.account-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 12px; }
.account-row span { color: var(--muted); flex: none; }
.account-row b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
@media (max-width: 560px) { .account-panel { max-width: calc(100% - 24px); } }
.main { padding-top: 12px; }
.wallet-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 20px; row-gap: 10px;
  align-items: start; margin-bottom: 10px;
}
.wallet-grid > * { min-width: 0; }
#root .wallet-grid > .card { margin: 0; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
#root .card { margin: 10px 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; }

.balance-card {
  background: linear-gradient(160deg, #1a2340 0%, #14171c 60%);
  border: 1px solid #2a3350;
}
.account-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 20px;
  font-size: 12px; color: var(--muted); font-family: monospace;
}
.total-usd { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.total-cny { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.tron-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; font-size: 12px;
  margin-bottom: 16px;
}
.tron-status:hover { border-color: var(--accent); }
.balance-actions { display: flex; gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px; padding: 12px 4px; cursor: pointer;
  font-size: 13px; transition: 0.2s; font-family: inherit;
}
.action:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.action-ico { font-size: 18px; }

.connect-card { text-align: center; }
.connect-illus { font-size: 40px; margin-bottom: 10px; }
.connect-card h3 { margin-bottom: 8px; }
.connect-card p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.connect-btns { display: flex; gap: 10px;margin-top: 10px; }
.connect-btns .btn { flex: 1; }
.readonly { display: flex; gap: 8px; margin-top: 16px; }
.readonly input { flex: 1; }

input, select {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-family: inherit; outline: none; width: 100%;
}
input:focus, select:focus { border-color: var(--accent); }
input[readonly] { color: var(--muted); cursor: default; }

.assets-card { grid-column: 2; grid-row: 1; }
.asset-list { display: flex; flex-direction: column; }
.asset-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 6px; border-bottom: 1px solid var(--border);
}
.asset-row:last-child { border-bottom: none; }
.token-ico {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.asset-main { flex: 1; }
.asset-main b { display: block; font-size: 15px; }
.asset-main small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.asset-right { text-align: right; }
.asset-right b { display: block; font-size: 15px; }
.asset-right small { color: var(--muted); font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.skeleton { color: var(--muted); padding: 20px 0; text-align: center; }

.history-card { min-height: 300px; margin-top: 10px; min-width: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 10px; }
.row-2 > * { min-width: 0; }
#root .row-2 > .card { margin: 0; }
.row-2 .history-card { margin-top: 0; }
.tx-list { display: flex; flex-direction: column; }
.tx-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.tx-row:last-child { border-bottom: none; }
.tx-dir {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.tx-dir.in { background: rgba(14,203,129,0.15); color: var(--green); }
.tx-dir.out { background: rgba(246,70,93,0.15); color: var(--red); }
.tx-main { flex: 1; min-width: 0; }
.tx-main b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tx-main small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-right { min-width: 0; text-align: right; }
.tx-right b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tx-right small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tx-right a { color: var(--accent); text-decoration: none; font-size: 12px; overflow-wrap: anywhere; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--muted); }
.status-tag { margin-left: 6px; cursor: pointer; }
.status-off { color: var(--gold); }
.status-on { color: var(--green); }

body:has(.modal), body:has(.drawer) { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; width: 100%; max-width: 420px; padding: 22px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: pop 0.18s ease-out;
}
.modal-panel.small { max-width: 360px; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%; max-width: 560px;
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 22px; overflow-y: auto;
  display: flex; flex-direction: column;
  animation: slideIn 0.2s ease-out;
}
.drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.drawer-foot .btn { flex: 1; min-width: 120px; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.builtin-bal { font-size: 12px; color: var(--muted); line-height: 1.6; word-break: break-all; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 17px; }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted);margin-top: 10px; }
.field em { font-style: normal; float: right; }
.fee-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.fee-line b { color: var(--text); font-weight: 500; }
.network-badge {
  display: inline-block; align-self: center;
  background: rgba(255, 6, 10, 0.14); color: #ff6b6f;
  border: 1px solid rgba(255, 6, 10, 0.4);
  padding: 4px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.qr-img { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; align-self: center; }
.receive-addr {
  font-family: monospace; font-size: 13px; word-break: break-all;
  background: var(--surface-2); padding: 12px; border-radius: 10px;
  margin: 10px 0;
}

.warn-banner {
  background: rgba(245, 181, 68, 0.12); border: 1px solid rgba(245, 181, 68, 0.4);
  color: #f5b544; font-size: 12px; line-height: 1.6; padding: 10px 12px; border-radius: 10px;
}
.builtin-list {
  display: flex; flex-direction: column; gap: 8px;
}
.builtin-item {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.builtin-item.active { border-color: var(--accent); }
.builtin-head { display: flex; align-items: center; justify-content: space-between; }
.builtin-head b { font-size: 14px; word-break: break-all; min-width: 0; flex: 1; }
.builtin-addrs { font-family: monospace; font-size: 12px; color: var(--muted); line-height: 1.7; word-break: break-all; }
.builtin-actions { display: flex; gap: 8px; }
.builtin-actions .btn { flex: 1; }
.mnemonic-input {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: 13px; font-family: inherit;
  resize: vertical; outline: none; width: 100%;
}
.mnemonic-input:focus { border-color: var(--accent); }
.badge-builtin {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  background: rgba(43,108,255,0.2); color: #7ea2ff;
}

.confirm-body { display: flex; flex-direction: column; gap: 10px; }
.confirm-amount { font-size: 24px; font-weight: 800; text-align: center; padding: 4px 0 10px; }
.confirm-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.confirm-row span { color: var(--muted); flex-shrink: 0; }
.confirm-row b { text-align: right; word-break: break-all; font-weight: 600; }

.mnemonic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
}
.mnemonic-word {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-3); border-radius: 8px; padding: 8px 10px;
  font-family: monospace; font-size: 13px; color: var(--gold);
}
.mnemonic-word i { font-style: normal; color: var(--muted); font-size: 11px; min-width: 14px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.check-line input { width: auto; }

.toast {
  position: fixed; top: 16px; right: 16px; transform: translateY(-16px);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 300;
  opacity: 0; pointer-events: none; transition: 0.25s; max-width: 90vw;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(14,203,129,0.5); }
.toast.error { border-color: rgba(246,70,93,0.5); }

.top-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 12px; color: var(--muted);
}

/* ---------- 顶部 Tab ---------- */
.nav-tabs { display: flex; gap: 6px; }
.tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: 0.2s;
}
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active { color: #fff; background: var(--surface-3); border-color: var(--border); }

/* ---------- 能量 / 充值 ---------- */
#gasPage .card + .card { margin-top: 10px; }
#rechargePage .card + .card { margin-top: 10px; }
#gasPage details.card summary { list-style: none; }
#gasPage details.card summary::-webkit-details-marker { display: none; }

@media (max-width: 760px) {
  .navbar { flex-wrap: wrap; gap: 12px; }
  .site-nav-links {
    order: 3; width: 100%; flex: 0 0 100%;
    justify-content: flex-start; margin-left: -4px;
    padding: 0 4px 2px; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .site-nav-links::-webkit-scrollbar { display: none; }
  .nav-right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .subnav { justify-content: flex-start; overflow-x: auto; }
  .nav-tabs { order: 3; width: 100%; }
  .wallet-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .assets-card { grid-column: auto; grid-row: auto; }
  .total-usd { font-size: 34px; }
  .brand-sub { display: none; }
}

/* ================= 科技感增强 ================= */

/* 背景：动感网格 + 极光光晕（纯固定层，不参与布局、不接收事件） */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: -1px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(43,108,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,108,255,0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% -10%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% -10%, #000 0%, transparent 75%);
  animation: gridPan 20s linear infinite;
}
body::after {
  content: ""; position: fixed; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 380px at 12% 6%, rgba(43,108,255,0.32), transparent 60%),
    radial-gradient(540px 350px at 88% 12%, rgba(111,75,255,0.28), transparent 60%),
    radial-gradient(660px 430px at 60% 108%, rgba(0,229,255,0.16), transparent 62%);
  filter: blur(10px);
  animation: aurora 16s ease-in-out infinite alternate;
}
.app { position: relative; z-index: 1; }

@keyframes gridPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 38px 38px, 38px 38px; }
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to   { transform: translate3d(0, -2%, 0) scale(1.08); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes sheen {
  0% { transform: translateX(-160%); }
  60%, 100% { transform: translateX(260%); }
}

/* 品牌发光 */
.logo { text-shadow: 0 0 20px rgba(43,108,255,0.7); }
.total-usd {
  background: linear-gradient(180deg, #ffffff 20%, #9db7ff 70%, #6f9bff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 顶部导航：霓虹底线 + 激活态发光 */
.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,108,255,0.7), rgba(0,229,255,0.7), rgba(111,75,255,0.7), transparent);
  box-shadow: 0 0 12px rgba(43,108,255,0.5);
}
.tab.active { box-shadow: 0 0 18px rgba(43,108,255,0.35), inset 0 0 14px rgba(43,108,255,0.14); }

/* 卡片：悬浮辉光 + 霓虹标题条 */
.card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,108,255,0.75), transparent);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(43,108,255,0.55);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 30px rgba(43,108,255,0.18);
}
.card:hover::before { opacity: 1; }
.balance-card { box-shadow: 0 0 50px rgba(43,108,255,0.14); border-color: rgba(43,108,255,0.35); }
.card-title::before {
  content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 9px;
  background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px;
  vertical-align: -2px; box-shadow: 0 0 10px rgba(43,108,255,0.9);
}

/* 按钮：渐变 + 扫光 + 辉光 */
.btn { position: relative; overflow: hidden; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(43,108,255,0.4);
}
.btn-primary::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-160%); pointer-events: none;
}
.btn-primary:hover::after { animation: sheen 0.9s ease; }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(43,108,255,0.65); }

/* 连接卡科技插画浮动 */
.connect-illus {
  width: 104px; height: 104px; margin: 0 auto 6px; display: block;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(43,108,255,0.55));
}

/* 地址等宽字体霓虹描边 */
.account-chip { border: 1px solid rgba(43,108,255,0.35); box-shadow: inset 0 0 12px rgba(43,108,255,0.15); }

/* 细滚动条：默认几乎透明，悬浮才亮 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(130,150,190,0.25);
  border: 2px solid transparent; background-clip: padding-box; border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(43,108,255,0.55); background-clip: padding-box; }

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .connect-illus, .btn-primary::after { animation: none; }
}

/* ================= 能量页 ================= */
.gas-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 20px; row-gap: 10px; align-items: start; }
.gas-main, .gas-side { min-width: 0; }
#gasPage > .card { margin-top: 10px; }
@media (max-width: 900px) { .gas-layout { grid-template-columns: 1fr; } }

.gas-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  color: var(--gold); background: rgba(245,181,68,0.12); border: 1px solid rgba(245,181,68,0.4);
}
.gas-unit-line { font-size: 13px; color: var(--muted); white-space: nowrap; }
.gas-unit-line b { color: #9db7ff; font-weight: 700; font-variant-numeric: tabular-nums; }

.gas-input-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.gas-step {
  width: 34px; height: 40px; flex: 0 0 auto; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit; transition: 0.2s;
}
.gas-step:hover { border-color: var(--accent); color: #9db7ff; }
.gas-energy-input { flex: 1 1 auto; min-width: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gas-convert { font-size: 12px; color: var(--muted); white-space: nowrap; }
.gas-unit-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.gas-unit-btn {
  background: transparent; border: none; color: var(--muted); padding: 9px 14px;
  font-size: 13px; cursor: pointer; font-family: inherit; transition: 0.2s;
}
.gas-unit-btn.active { background: rgba(43,108,255,0.16); color: #9db7ff; }

.gas-qty-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.gas-qty-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 8px; font-size: 13px; cursor: pointer; font-family: inherit; transition: 0.2s;
  text-align: center;
}
.gas-qty-btn:hover { border-color: var(--accent); }
.gas-qty-btn.active {
  background: rgba(43,108,255,0.16); border-color: var(--accent); color: #9db7ff;
  box-shadow: 0 0 12px rgba(43,108,255,0.25);
}
@media (max-width: 560px) { .gas-qty-btns { grid-template-columns: repeat(3, 1fr); } }

.gas-req { color: var(--red); font-style: normal; }
.gas-addr-input { width: 100%; font-family: monospace; font-size: 13px; line-height: 1.7; min-height: 200px; }
.gas-addr-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.gas-addr-stat b { color: var(--text); font-variant-numeric: tabular-nums; }
.gas-addr-stat .bad { color: var(--red); }
.gas-addr-stat .warn { color: var(--gold); }
.gas-addr-error { color: var(--red); font-size: 12px; margin-top: 4px; }

/* 开关 */
.gas-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.gas-switch input { display: none; }
.gas-switch-track {
  width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border); position: relative; transition: 0.2s; flex: 0 0 auto;
}
.gas-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: 0.2s;
}
.gas-switch input:checked + .gas-switch-track { background: var(--accent); border-color: var(--accent); }
.gas-switch input:checked + .gas-switch-track::after { transform: translateX(18px); }

.gas-info-box {
  background: rgba(43,108,255,0.08); border: 1px solid rgba(43,108,255,0.3);
  border-radius: 10px; padding: 12px; margin: 14px 0 10px; font-size: 12px; line-height: 1.8; color: var(--muted);
}
.gas-info-box b { color: #9db7ff; display: block; margin-bottom: 4px; }
.gas-info-box ul { margin: 0; padding-left: 16px; }
.gas-warn-box {
  background: rgba(245,181,68,0.10); border: 1px solid rgba(245,181,68,0.4);
  border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 12px; line-height: 1.8; color: var(--gold);
}
.gas-warn-box b { display: block; margin-bottom: 4px; }

.gas-guide { color: var(--accent); font-size: 13px; cursor: pointer; user-select: none; }
.gas-guide:hover { text-decoration: underline; }
.gas-pay-line { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.gas-pay-line span { font-size: 15px; font-weight: 600; color: var(--text); }
.gas-pay-line b { font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.gas-buy-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gas-buy-btn small { opacity: 0.85; font-weight: 500; font-size: 12px; }

.gas-range { display: inline-flex; gap: 6px; }
.gas-range-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; transition: 0.2s;
}
.gas-range-btn:hover { color: var(--text); border-color: var(--accent); }
.gas-range-btn.active { color: #fff; border-color: var(--accent); background: var(--surface-3); }

.gas-trend { margin-top: 6px; position: relative; }
.gas-trend-total { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.gas-chart-wrap { display: flex; gap: 8px; height: 200px; }
.gas-y-axis { position: relative; flex: none; width: 38px; font-size: 11px; color: var(--muted); }
.gas-y-axis span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.gas-plot { position: relative; flex: 1; min-width: 0; }
.gas-chart { width: 100%; height: 100%; display: block; }
.gas-grid-line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gas-bar { fill: var(--accent); opacity: 0.85; cursor: pointer; }
.gas-bar:hover { fill: var(--accent-2); opacity: 1; }
.gas-chart-axis { display: flex; justify-content: space-between; margin-left: 46px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.gas-hover-line { position: absolute; top: 8%; bottom: 4%; width: 0; border-left: 1px dashed var(--muted); opacity: 0.6; pointer-events: none; transform: translateX(-0.5px); }
.gas-tooltip { position: absolute; z-index: 5; min-width: 210px; max-width: calc(100% - 12px); padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); box-shadow: 0 16px 40px rgba(0,0,0,0.45); pointer-events: none; transform: translate(-50%, -100%); }
.gas-tooltip.below { transform: translate(-50%, 0); }
.gas-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; font-size: 13px; color: var(--text); white-space: nowrap; }
.gas-tip-head b { font-size: 14px; }
.gas-tip-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gas-tip-row i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.gas-tip-row span:last-child { margin-left: auto; color: var(--text); }

/* ================= 充值页 ================= */
.recharge-body { display: flex; gap: 18px; align-items: flex-start; margin-top: 6px; }
.recharge-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ================= 首页购买入口 ================= */
.buy-entry-grid { margin-top: 8px; }
.buy-entry {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  text-decoration: none; color: var(--text); transition: 0.2s;
}
.buy-entry:hover { border-color: var(--accent); transform: translateY(-2px); }
.buy-entry-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43,108,255,0.15); color: #7ea2ff; font-size: 21px;
}
.buy-entry h3 { font-size: 17px; margin-bottom: 5px; }
.buy-entry p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.buy-entry-arrow { margin-left: auto; color: var(--accent); font-size: 24px; }
.buy-order-pay { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }

/* ================= 移动端适配 ================= */
@media (max-width: 760px) {
  .app { padding: 0 14px 30px; }
  .card { padding: 16px; }
  .card-head { flex-wrap: wrap; gap: 6px; }
  .modal-panel { width: calc(100% - 24px); padding: 18px; }
  .history-card { min-height: 0; }
}

@media (max-width: 560px) {
  .app { padding: 0 12px 28px; }
  .card { padding: 14px; }
  .navbar { padding: 12px 0; }
  .nav-right { gap: 8px; }
  .user-chip { padding: 4px 10px; }

  .gas-unit-line { white-space: normal; }
  .gas-input-row { flex-wrap: wrap; gap: 8px; }
  .gas-energy-input { flex: 1 1 110px; font-size: 16px; }
  .gas-step { width: 30px; height: 36px; font-size: 18px; }
  .gas-convert { flex: 1 1 auto; }
  .gas-unit-toggle { margin-left: auto; }
  .gas-unit-btn { padding: 8px 12px; }

  .gas-qty-btns { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gas-qty-btn { padding: 9px 6px; }

  .gas-addr-stat { gap: 10px 14px; font-size: 12px; }
  .gas-switch { margin-left: 0; flex-basis: 100%; }
  .gas-addr-input { min-height: 150px; }

  .gas-pay-line span { font-size: 14px; }
  .gas-pay-line b { font-size: 20px; }
  .gas-chart-wrap { height: 150px; }
  .gas-y-axis { width: 34px; }
  .gas-chart-axis { margin-left: 42px; }
  .gas-tooltip { min-width: 0; }
  .gas-tip-row { gap: 6px; font-size: 11px; }

  .balance-actions { gap: 8px; }
  .action { font-size: 12px; padding: 10px 2px; }

  .tx-row { align-items: flex-start; gap: 6px; padding: 12px 2px; }
  .tx-dir { width: 30px; height: 30px; font-size: 14px; }
  .tx-main { flex: 1 1 auto; }
  .tx-right { flex: 0 0 auto; max-width: 50%; }
  .tx-right b { font-size: 13px; }

  .recharge-body { flex-direction: column; align-items: center; }
  .recharge-info { width: 100%; }
}

/* ================= 批量归集 ================= */
.batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.batch-options { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.batch-options .check-line { color: var(--text); }
.batch-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.batch-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.batch-table th, .batch-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 12px; }
.batch-table th { color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.batch-table tr:last-child td { border-bottom: 0; }
.batch-table td b { font-weight: 600; }
.batch-table input[type="checkbox"] { accent-color: var(--accent); }
.batch-summary { display: flex; flex-direction: column; gap: 5px; margin: 14px 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--muted); }
.batch-results { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.batch-result { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.batch-result.ok { border-color: rgba(14,203,129,0.3); background: rgba(14,203,129,0.06); }
.batch-result.bad { border-color: rgba(246,70,93,0.3); background: rgba(246,70,93,0.06); }
.batch-hash { font-family: Consolas, monospace; font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 4px; }

/* ================= 首页 / 登录页 ================= */
a.brand { text-decoration: none; color: inherit; }
a.btn { text-decoration: none; }

.home-main { padding: 18px 0 20px; }
.home-hero {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 54px 0 44px;
}
.home-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: #9db7ff; background: rgba(43,108,255,0.14); border: 1px solid rgba(43,108,255,0.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.home-hero h1 {
  font-size: 48px; line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 20%, #9db7ff 75%, #6f9bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-lead {
  max-width: 650px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; line-height: 1.8;
}
.home-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.home-cta .btn { padding: 12px 24px; }
.home-note { margin-top: 18px; }
.home-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px;
}
.home-pills span {
  font-size: 12px; font-weight: 600; color: #9db7ff;
  background: rgba(43,108,255,0.1); border: 1px solid rgba(43,108,255,0.3);
  padding: 5px 12px; border-radius: 999px;
}

.home-section { margin-top: 42px; }
.home-section-head { max-width: 720px; margin: 0 auto 20px; text-align: center; }
.home-section-head h2 { font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.8px; margin-bottom: 10px; }
.home-section-head p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.home-features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-top: 8px;
}
.home-feature { padding: 22px; }
.home-ico {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #9db7ff;
  background: rgba(43,108,255,0.14); border: 1px solid rgba(43,108,255,0.35);
  box-shadow: inset 0 0 14px rgba(43,108,255,0.14);
}
.home-feature h3 { font-size: 17px; margin-bottom: 8px; }
.home-feature p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.home-security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-list-card { padding: 22px; }
.home-list-card h3 { font-size: 17px; margin-bottom: 12px; }
.home-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.home-list li {
  position: relative; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.75;
}
.home-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(43,108,255,0.8);
}
.home-list-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }

.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-step { padding: 22px; }
.home-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(43,108,255,0.5);
}
.home-step h3 { font-size: 16px; margin-bottom: 8px; }
.home-step p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.home-faq { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1100px) {
  .home-faq { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 18px; transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(43,108,255,0.45); }
.faq-item summary {
  cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item p { color: var(--muted); font-size: 13px; line-height: 1.8; padding: 0 0 15px; }

.home-bottom {
  margin-top: 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.home-bottom h2 { font-size: 20px; margin-bottom: 6px; }
.home-bottom p { font-size: 13px; }
.home-bottom-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-footer {
  text-align: center; padding: 28px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.home-disclaimer {
  display: block; max-width: 900px; line-height: 1.75; font-size: 12px;
  color: var(--muted); padding-bottom: 2px;
}
.home-footlinks { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.home-footlinks a { color: var(--muted); text-decoration: none; }
.home-footlinks a:hover { color: var(--text); }

/* ================= 首页 v2 ================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.home-nav-links { display: flex; gap: 2px; margin-left: 8px; }
.home-nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  padding: 8px 10px; border-radius: 8px; transition: 0.2s;
}
.home-nav-links a:hover { color: var(--text); background: var(--surface-3); }

.site-nav-links { display: flex; gap: 2px; margin-left: 8px; }
.site-nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 11px; border-radius: 8px; transition: 0.2s; white-space: nowrap;
}
.site-nav-links a:hover { color: var(--text); background: var(--surface-3); }
.site-nav-links a.active { color: #fff; background: rgba(43,108,255,0.16); border: 1px solid rgba(43,108,255,0.28); }
.subnav { display: flex; justify-content: center; padding: 0 0 10px; }
.subnav .nav-tabs { overflow-x: auto; }

.hero-2col {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4vw, 72px);
  align-items: center; padding: clamp(36px, 4vw, 34px) 0 30px;
}
.hero-copy { min-width: 0; }
.hero-visual, .tour, .tour-panels, .tour-copy { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(46px, 4.2vw, 74px); line-height: 1.08; letter-spacing: -1.8px; margin-bottom: 18px;
  overflow-wrap: break-word;
}
.hero-copy h1 .grad {
  background: linear-gradient(180deg, #ffffff 20%, #9db7ff 70%, #6f9bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-copy .home-lead {
  margin: 0 0 26px; max-width: none; text-align: left; font-size: 16px;
}
.hero-copy .home-cta { justify-content: flex-start; }
.hero-copy .home-pills { justify-content: flex-start; }
.hero-proof { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-proof div { display: flex; flex-direction: column; gap: 2px; }
.hero-proof b {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff, #9db7ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-proof span {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
}

.hero-visual { position: relative; min-height: 440px; display: flex; align-items: center; }
.mock-window {
  position: relative; width: 100%; max-width: 100%; min-width: 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #1a2340 0%, #101318 70%);
  border: 1px solid #2a3350;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(43,108,255,0.18);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.45s ease;
}
.mock-window:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar em { margin-left: 8px; font-style: normal; font-size: 11px; color: var(--muted); }
.mock-screen { padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mock-net { display: inline-flex; align-items: center; gap: 6px; }
.mock-net i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.mock-chip {
  font-size: 10px; font-weight: 700; color: #9db7ff; padding: 3px 8px; border-radius: 999px;
  background: rgba(43,108,255,0.14); border: 1px solid rgba(43,108,255,0.35);
}
.mock-balance {
  background: linear-gradient(160deg, rgba(43,108,255,0.16), rgba(111,75,255,0.05));
  border: 1px solid rgba(43,108,255,0.28); border-radius: 14px; padding: 14px;
}
.mock-balance small { color: var(--muted); font-size: 11px; }
.mock-balance strong { display: block; font-size: 30px; letter-spacing: -0.8px; margin: 3px 0 0; }
.mock-balance strong em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-balance p { color: var(--muted); font-size: 11px; margin: 2px 0 10px; }
.mock-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock-actions span {
  text-align: center; padding: 7px 2px; border-radius: 8px; font-size: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); color: var(--text);
}
.mock-assets { display: flex; flex-direction: column; gap: 6px; }
.mock-asset {
  min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px;
}
.mock-asset > div { display: flex; flex-direction: column; gap: 1px; }
.mock-asset b { font-size: 11px; }
.mock-asset small { font-size: 9px; color: var(--muted); }
.mock-asset strong { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.mock-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px; font-weight: 800; color: #fff;
}
.mock-ico.usdt { background: #26a17b; }
.mock-ico.trx { background: #e50914; }
.mock-ico.usdc { background: #2775ca; }
.mock-tx {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-top: 1px solid rgba(255,255,255,0.06); margin-top: 2px;
}
.mock-tx > div { display: flex; flex-direction: column; gap: 1px; }
.mock-tx b { font-size: 11px; }
.mock-tx small { font-size: 9px; color: var(--muted); }
.mock-tx strong { margin-left: auto; font-size: 11px; color: var(--green); }
.mock-in {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px;
  color: var(--green); background: rgba(14,203,129,0.14);
}
.float-card {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 13px; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 2px;
}
.float-card b { font-size: 11px; }
.float-card small { font-size: 10px; color: var(--muted); }
.float-lock { left: -34px; bottom: -40px; border-color: rgba(14,203,129,0.4); }
.float-fee { right: -22px; top: 26px; border-color: rgba(43,108,255,0.45); }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; margin: 22px 0 6px;
}
.stat-strip > div { min-width: 0; background: var(--surface); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; text-align: center; }
.stat-strip b {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff, #9db7ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-strip span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; overflow-wrap: anywhere; }

.section-kicker, .tour-kicker {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: #9db7ff; margin-bottom: 8px;
}
.tour { display: flex; flex-direction: column; gap: 14px; }
.tour-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tour-tab {
  min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; display: flex; align-items: center; gap: 8px;
  color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: 0.2s;
}
.tour-tab:hover { border-color: rgba(43,108,255,0.5); color: var(--text); }
.tour-tab.active {
  background: linear-gradient(135deg, rgba(43,108,255,0.2), rgba(111,75,255,0.12));
  border-color: var(--accent); color: #fff;
  box-shadow: 0 0 24px rgba(43,108,255,0.18);
}
.tour-num { font-size: 9px; font-weight: 800; color: #9db7ff; }
.tour-tab b { font-size: 12px; }
.tour-panels {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; min-height: 360px;
}
.tour-panel { display: none; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.tour-panel.active { display: grid; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-copy h3 { font-size: 25px; letter-spacing: -0.5px; margin: 4px 0 10px; }
.tour-copy p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.tour-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; }
.tour-bullets li { position: relative; padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tour-bullets li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(43,108,255,0.8);
}
.tour-cta { color: #9db7ff; font-size: 13px; font-weight: 600; text-decoration: none; }
.tour-cta:hover { text-decoration: underline; }
.tour-visual { min-width: 0; }

.mock-card {
  min-width: 0; max-width: 100%; background: linear-gradient(160deg, #171d2b, #111419);
  border: 1px solid #293248; border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 9px; max-width: 420px; margin: 0 auto;
}
.mock-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.mock-card-head b { font-size: 14px; }
.mock-total {
  background: rgba(43,108,255,0.1); border: 1px solid rgba(43,108,255,0.25);
  border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.mock-total small { color: var(--muted); font-size: 11px; }
.mock-total strong { font-size: 24px; letter-spacing: -0.5px; }
.mock-total span { color: var(--muted); font-size: 11px; }
.mock-field {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px;
}
.mock-field small { color: var(--muted); }
.mock-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding: 2px; }
.mock-line b { color: var(--text); font-weight: 600; }
.mock-line b.good { color: var(--green); }
.mock-btn {
  margin-top: 5px; padding: 10px; text-align: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(43,108,255,0.35);
}
.mock-energy {
  display: flex; align-items: baseline; gap: 8px; padding: 12px;
  background: rgba(43,108,255,0.1); border: 1px solid rgba(43,108,255,0.25); border-radius: 12px;
}
.mock-energy strong { font-size: 28px; letter-spacing: -0.5px; }
.mock-energy span { color: var(--muted); font-size: 12px; }
.mock-energy small { margin-left: auto; color: var(--muted); font-size: 10px; }
.mock-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock-presets span {
  text-align: center; padding: 7px 4px; border-radius: 8px; font-size: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.mock-presets .active { border-color: var(--accent); color: #9db7ff; background: rgba(43,108,255,0.14); }
.mock-deposit-body { min-width: 0; display: flex; align-items: center; gap: 14px; }
.mock-deposit-body > div { min-width: 0; }
.mock-qr {
  width: 104px; height: 104px; flex: none; border-radius: 10px; background-color: #e9edf7;
  position: relative;
  background-image:
    linear-gradient(90deg, #111 2px, transparent 2px),
    linear-gradient(#111 2px, transparent 2px),
    linear-gradient(90deg, #111 2px, transparent 2px),
    linear-gradient(#111 2px, transparent 2px);
  background-size: 16px 16px, 16px 16px, 8px 8px, 8px 8px;
  background-position: 0 0, 0 0, 4px 4px, 4px 4px;
  box-shadow: 0 0 0 5px #fff inset;
}
.mock-qr::after { content: ""; position: absolute; inset: 38%; background: #111; border-radius: 2px; }
.mock-address { font-family: Consolas, monospace; font-size: 10px; color: var(--text); word-break: break-all; margin: 5px 0 7px; }
.mock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--green); }
.mock-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mock-tr {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: 8px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; font-size: 10px;
}
.mock-tr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; color: var(--muted); }
.mock-tr b { font-weight: 600; }
.mock-tr em { font-style: normal; text-align: right; color: var(--muted); }
.mock-tr em.good { color: var(--green); }
.mock-tr em.warn { color: var(--gold); }

.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fee-card { padding: 22px; }
.fee-card h3 { font-size: 17px; margin-bottom: 12px; }
.fee-visual-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.fee-visual-head b { color: var(--green); font-size: 13px; }
.fee-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.fee-row span { font-size: 12px; color: var(--muted); }
.fee-row b { font-size: 12px; white-space: nowrap; }
.fee-row .fee-amount { font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fee-row .fee-amount.good { color: var(--green); }
.fee-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.fee-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), #ff8a5c); }
.fee-bar.energy i { background: linear-gradient(90deg, var(--green), #00e5ff); }
.fee-visual > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 4px; }

.security-flow {
  display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
  padding: 20px; margin-bottom: 18px;
}
.flow-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.flow-step span { font-size: 10px; font-weight: 800; color: #9db7ff; }
.flow-step b { font-size: 13px; }
.flow-step small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.flow-arrow { width: 16px; flex: none; position: relative; background: linear-gradient(transparent, rgba(43,108,255,0.7), transparent); }
.flow-arrow::after {
  content: ""; position: absolute; top: 50%; left: 4px; width: 6px; height: 6px;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.auth-home-link {
  color: var(--muted); text-decoration: none; font-size: 13px;
  margin-left: 6px; padding: 7px 10px; border-radius: 8px; transition: 0.2s;
}
.auth-home-link:hover { color: var(--text); background: var(--surface-3); }

.auth-app { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main {
  flex: 1; width: 100%; max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(36px, 7vw, 120px); align-items: center; padding: 40px 0 80px;
}
.auth-side { min-width: 0; }
.auth-side h2 {
  font-size: clamp(38px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -1.6px;
  margin: 16px 0; color: var(--text);
}
.auth-side h2 .grad {
  background: linear-gradient(180deg, #ffffff 18%, #9db7ff 68%, #6f9bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-side p { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.auth-points li { position: relative; padding-left: 20px; color: var(--text); font-size: 14px; line-height: 1.6; }
.auth-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 8px rgba(37,99,235,0.6);
}
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.auth-trust span {
  font-size: 11px; color: #9db7ff; background: rgba(43,108,255,0.12);
  border: 1px solid rgba(43,108,255,0.35); padding: 4px 10px; border-radius: 999px;
}
.auth-pipeline {
  display: flex; align-items: stretch; gap: 8px; max-width: 640px; padding: 14px;
  background: linear-gradient(160deg, rgba(43,108,255,0.10), rgba(111,75,255,0.05));
  border: 1px solid rgba(43,108,255,0.25); border-radius: 14px;
}
.auth-pipe-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-pipe-step span { font-size: 9px; font-weight: 800; color: #9db7ff; }
.auth-pipe-step b { font-size: 12px; }
.auth-pipe-step small { font-size: 10px; color: var(--muted); line-height: 1.4; }
.auth-pipe-arrow { width: 12px; flex: none; position: relative; }
.auth-pipe-arrow::after {
  content: ""; position: absolute; top: 50%; left: 2px; width: 6px; height: 6px;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 1100px) {
  .auth-pipeline { flex-wrap: wrap; }
  .auth-pipe-arrow { display: none; }
  .auth-pipe-step { flex: 1 1 30%; }
}
.auth-mini-card {
  display: inline-flex; flex-direction: column; gap: 3px; padding: 14px 18px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.auth-mini-card span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 800; }
.auth-mini-card b { font-size: 15px; }
.auth-mini-card small { font-size: 11px; color: var(--muted); }
.auth-card { width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 6px; }
.auth-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: #9db7ff; background: rgba(43,108,255,0.14); border: 1px solid rgba(43,108,255,0.4);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.auth-head h1 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.auth-form .btn { margin-top: 4px; }
.auth-switch {
  display: block; width: 100%; margin-top: 16px; padding: 4px;
  background: none; border: none; color: var(--accent);
  font: inherit; font-size: 13px; cursor: pointer;
}
.auth-switch:hover { text-decoration: underline; }
.auth-back { display: block; text-align: center; margin-top: 12px; text-decoration: none; }
.auth-back:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero-2col { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .auth-main { display: flex; align-items: center; justify-content: center; padding: 26px 0 60px; }
  .auth-side { display: none; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy h1 { font-size: 44px; }
  .hero-visual { min-height: 0; }
  .mock-window { transform: none; }
  .float-lock { left: 0; bottom: -14px; }
  .float-fee { right: 0; top: -14px; }
  .tour-tabs { grid-template-columns: repeat(3, 1fr); }
  .tour-panel { grid-template-columns: 1fr; gap: 20px; }
  .fee-grid { grid-template-columns: 1fr; }
  .security-flow { flex-wrap: wrap; }
  .flow-step { flex: 1 1 40%; }
  .flow-arrow { display: none; }
}
@media (max-width: 900px) {
  .home-steps { grid-template-columns: 1fr; }
  .home-security { grid-template-columns: 1fr; }
  .home-list-wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-nav-links { display: none; }
  .home-login-btn { display: none; }
  .home-nav .nav-right { flex-wrap: wrap; justify-content: flex-end; }
  .hero-copy .home-lead { overflow-wrap: anywhere; }
  .home-hero { padding: 34px 0 30px; }
  .home-hero h1 { font-size: 34px; }
  .hero-copy h1 { font-size: 36px; letter-spacing: -1px; }
  .home-lead { font-size: 14px; }
  .home-section { margin-top: 32px; }
  .home-section-head h2 { font-size: 24px; }
  .home-features { grid-template-columns: 1fr; }
  .home-bottom { align-items: flex-start; }
  .hero-proof { gap: 18px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .tour-panels { padding: 18px; }
  .tour-copy h3 { font-size: 21px; }
  .float-card { display: none; }
  .fee-row { grid-template-columns: 1fr; gap: 6px; }
  .fee-row b { text-align: right; }
  .security-flow { flex-direction: column; }
  .flow-step { flex: auto; }
}
#batchPage .mnemonic-input { min-height: 120px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; row-gap: 10px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.settings-grid .card { padding: 28px; display: flex; flex-direction: column; }
#root .settings-grid > .card { margin: 0; }
.settings-grid .card-title { font-size: 17px; }
.settings-grid .account-grid { padding: 16px 18px; gap: 12px; }
.settings-grid .account-row { font-size: 13.5px; align-items: center; }
.settings-grid .card > .btn { width: 100%; margin-top: 14px; padding: 12px 18px; font-size: 15px; }
.settings-grid .connect-btns { margin-top: 14px; }
.settings-grid .connect-btns .btn { padding: 11px 16px; font-size: 14px; }
.settings-grid .section-title { margin-top: 20px; }
.settings-divider { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.settings-divider .section-title { margin: 0 0 10px; }
.settings-divider .btn { width: 100%; padding: 12px 18px; font-size: 15px; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }
