:root {
  --wallet-bg: #11131f;
  --wallet-panel: #1a1d2b;
  --wallet-panel-soft: #202332;
  --wallet-text: #f4f6fb;
  --wallet-muted: #8b91a5;
  --wallet-line: rgba(255, 255, 255, .06);
  --wallet-primary: #08b99f;
  --wallet-blue: #1261f5;
  --wallet-danger: #ff4d62;
}

html,
body.wallet-page {
  min-height: 100%;
  background: var(--wallet-bg) !important;
  color: var(--wallet-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.wallet-page * { box-sizing: border-box; }
.wallet-page a { color: inherit !important; text-decoration: none !important; }
.wallet-page .wallet-shell { width: 100%; min-height: 100vh; padding-bottom: 82px; }

.wallet-page .wallet-hero {
  height: 160px;
  padding: 28px 14px 0;
  color: #fff;
  background: #078f82 url(/Public/Static/img/icon_bg_zc.65aa32a1.png) center/cover no-repeat;
  border-radius: 0 0 7px 7px;
  position: relative;
  overflow: hidden;
}

.wallet-page .wallet-eye {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  padding: 0;
}

.wallet-page .wallet-total-label { font-size: 12px; line-height: 18px; opacity: .94; }
.wallet-page .wallet-total { margin-top: 2px; font-size: 22px; line-height: 30px; font-weight: 500; }
.wallet-page .wallet-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
}

.wallet-page .wallet-action {
  width: 50%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.wallet-page .wallet-action i { font-size: 18px; font-weight: 400; }
.wallet-page .wallet-section-title { padding: 10px 13px 7px; font-size: 12px; color: #fff; }
.wallet-page .wallet-asset {
  display: block;
  min-height: 78px;
  padding: 10px 13px 9px;
  background: var(--wallet-panel);
  border-top: 1px solid var(--wallet-line);
  border-bottom: 1px solid var(--wallet-line);
}

.wallet-page .wallet-asset-head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.wallet-page .wallet-asset-name { font-size: 15px; font-weight: 500; color: #fff; }
.wallet-page .wallet-asset-head i { color: #656b7c; font-size: 14px; }
.wallet-page .wallet-asset-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; margin-top: 4px; }
.wallet-page .wallet-metric:nth-child(3) { text-align: right; }
.wallet-page .wallet-metric-label { display: block; color: var(--wallet-muted); font-size: 11px; line-height: 17px; }
.wallet-page .wallet-metric-value { display: block; color: #fff; font-size: 11px; line-height: 16px; font-weight: 500; }

.wallet-page .wallet-topbar {
  height: 45px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #778093;
}

.wallet-page .wallet-back,
.wallet-page .wallet-history {
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: #778093 !important;
  font-size: 20px;
  padding: 0;
}

.wallet-page .wallet-history { justify-content: flex-end; color: var(--wallet-primary) !important; }
.wallet-page .wallet-title { margin: 0; padding: 0 8px 12px; font-size: 16px; line-height: 22px; font-weight: 500; color: #fff; }
.wallet-page .wallet-card { margin: 0 8px 10px; padding: 13px 8px; background: var(--wallet-panel); border-radius: 8px; }
.wallet-page .wallet-field { margin-bottom: 12px; }
.wallet-page .wallet-field:last-child { margin-bottom: 0; }
.wallet-page .wallet-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wallet-page .wallet-label { display: block; margin-bottom: 7px; color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; }
.wallet-page .wallet-available { color: var(--wallet-muted); font-size: 10px; line-height: 16px; white-space: nowrap; }
.wallet-page .wallet-input,
.wallet-page .wallet-select-line {
  width: 100%;
  height: 33px;
  padding: 0 11px;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  background: #f3f3f4;
  color: #343746;
  font-size: 11px;
  outline: none;
}

.wallet-page .wallet-input::placeholder { color: #a2a6b0; }
.wallet-page .wallet-input:focus { background: #fff !important; border-color: var(--wallet-primary); }
.wallet-page .wallet-input-group {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  height: 33px;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f4;
}

.wallet-page .wallet-input-group .wallet-input { height: 31px; border: 0; border-radius: 0; }
.wallet-page .wallet-input-suffix,
.wallet-page .wallet-input-action { padding: 0 10px; color: #6e7382; font-size: 11px; white-space: nowrap; }
.wallet-page .wallet-input-action { border-left: 1px solid #d9dce3; color: var(--wallet-primary); cursor: pointer; }
.wallet-page button.wallet-input-action {
  height: 31px;
  border: 0;
  border-left: 1px solid #d9dce3;
  background: transparent;
}
.wallet-page .wallet-network-row { display: flex; gap: 8px; margin-bottom: 12px; }
.wallet-page .wallet-network {
  min-width: 76px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #5b6070;
  border-radius: 6px;
  background: transparent;
  color: #daddE6;
  font-size: 11px;
}

.wallet-page .wallet-network.active { border-color: var(--wallet-primary); background: rgba(8,185,159,.12); color: #fff; }
.wallet-page .wallet-submit {
  width: 100%;
  height: 33px;
  border: 0;
  border-radius: 4px;
  background: var(--wallet-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.wallet-page .wallet-submit.blue { background: var(--wallet-blue); }
.wallet-page .wallet-arrival { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; color: var(--wallet-muted); font-size: 10px; }
.wallet-page .wallet-notice { margin: 0 8px 20px; padding: 12px 11px; background: var(--wallet-panel); border-radius: 7px; }
.wallet-page .wallet-notice p { margin: 0 0 12px; color: #f3f4f8; font-size: 10px; line-height: 15px; }
.wallet-page .wallet-notice p:last-child { margin-bottom: 0; }
.wallet-page .wallet-notice .danger { color: var(--wallet-danger); }
.wallet-bank-withdraw-page .wallet-shell { padding-bottom: 22px; }
.wallet-bank-withdraw-page .wallet-title { padding-right: 15px; padding-left: 15px; }
.wallet-bank-withdraw-page .wallet-card { margin: 1px 15px 10px; padding: 21px 10px 15px; }
.wallet-bank-withdraw-page .wallet-field { margin-bottom: 16px; }
.wallet-bank-withdraw-page .wallet-title { padding-bottom: 13px; }
.wallet-bank-withdraw-page .wallet-submit { margin-top: 2px; }
.wallet-bank-withdraw-page .wallet-notice { min-height: 174px; margin-right: 15px; margin-left: 15px; }
.wallet-bank-deposit-page .wallet-shell { padding-bottom: 24px; }
.wallet-bank-deposit-page .wallet-title { padding-bottom: 18px; }
.wallet-bank-deposit-page .wallet-card { padding: 20px 12px 13px; }
.wallet-bank-deposit-page .wallet-field { margin-bottom: 13px; }
.wallet-bank-deposit-page .wallet-submit { margin-top: 3px; }
.wallet-coin-page .wallet-shell { padding-bottom: 78px; }
.wallet-coin-page .coin-summary { padding: 0 11px 22px; }
.wallet-coin-page .coin-summary h1 { margin: 0 0 18px; color: var(--wallet-primary); font-size: 21px; line-height: 30px; font-weight: 700; }
.wallet-coin-page .coin-summary-grid,
.wallet-coin-page .coin-record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wallet-coin-page .coin-summary-grid > div:nth-child(2),
.wallet-coin-page .coin-record-grid > div:nth-child(2) { text-align: center; }
.wallet-coin-page .coin-summary-grid > div:nth-child(3),
.wallet-coin-page .coin-record-grid > div:nth-child(3) { text-align: right; }
.wallet-coin-page .coin-summary-grid span,
.wallet-coin-page .coin-record-grid span { display: block; color: var(--wallet-muted); font-size: 10px; line-height: 17px; }
.wallet-coin-page .coin-summary-grid b,
.wallet-coin-page .coin-record-grid b { display: block; color: #fff; font-size: 11px; line-height: 18px; font-weight: 600; }
.wallet-coin-page .coin-records { padding: 0 8px; }
.wallet-coin-page .coin-records h2 { margin: 0; padding: 12px 0 13px; color: #fff; font-size: 18px; line-height: 24px; font-weight: 500; }
.wallet-coin-page .coin-record-item { padding: 0 8px 9px; background: var(--wallet-panel); border-bottom: 1px solid rgba(255,255,255,.05); }
.wallet-coin-page .coin-record-head { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.wallet-coin-page .coin-record-head strong { color: #fff; font-size: 12px; font-weight: 600; }
.wallet-coin-page .coin-record-head i { color: #626879; font-size: 14px; }
.wallet-coin-page .coin-record-empty { height: 66px; display: flex; align-items: center; justify-content: center; background: var(--wallet-panel); color: var(--wallet-muted); font-size: 11px; }
.wallet-coin-page .coin-record-footer { height: 65px; background: #fff; }
.wallet-coin-page .coin-actions { position: fixed; z-index: 10000; right: 0; bottom: 0; left: 0; height: 62px; padding: 10px 8px; display: flex; justify-content: space-between; background: var(--wallet-bg); }
.wallet-coin-page .coin-actions a { width: 47%; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--wallet-primary); color: #fff !important; font-size: 12px; }
.wallet-dialog { display: none; position: fixed; z-index: 30000; inset: 0; align-items: center; justify-content: center; padding: 20px; }
.wallet-dialog.is-open { display: flex; }
.wallet-dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); }
.wallet-dialog-panel { position: relative; width: min(100%, 350px); padding: 18px; border-radius: 10px; background: var(--wallet-panel); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.wallet-dialog-panel h2 { margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 600; }
.wallet-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wallet-dialog-actions button { height: 36px; border: 0; border-radius: 5px; color: #fff; font-size: 12px; }
.wallet-dialog-cancel { background: #343847; }
.wallet-dialog-confirm { background: var(--wallet-primary); }
.wallet-page .wallet-address-box { padding: 10px; background: var(--wallet-panel-soft); border-radius: 7px; text-align: center; }
.wallet-page .wallet-address-box img { width: 112px; height: 112px; object-fit: contain; background: #fff; border-radius: 4px; }
.wallet-page .wallet-address-text { display: block; margin: 8px 0; color: #fff; font-size: 10px; line-height: 15px; word-break: break-all; }
.wallet-page .wallet-address-box.compact { min-height: 40px; padding: 5px 6px 5px 11px; display: flex; align-items: center; gap: 8px; text-align: left; }
.wallet-page .wallet-address-box.compact .wallet-address-text { flex: 1; margin: 0; color: #d9dce5; }
.wallet-page .wallet-address-box.compact .wallet-copy { flex: 0 0 auto; }
.wallet-page .wallet-copy { height: 29px; padding: 0 16px; border: 1px solid var(--wallet-primary); border-radius: 4px; background: transparent; color: var(--wallet-primary); font-size: 11px; }
.wallet-page .wallet-upload { width: 100%; height: 56px; border: 1px dashed #5a6070; border-radius: 8px; background: var(--wallet-panel-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wallet-page .wallet-upload img { max-width: 100%; max-height: 50px; object-fit: contain; }

body.wallet-record-page { background: #fff !important; color: #171923; }
.wallet-record-page .wallet-shell { background: #fff; padding-bottom: 20px; }
.wallet-record-page .wallet-topbar { background: #f7f7f8; }
.wallet-record-page .record-title { height: 46px; padding: 0 10px; display: flex; align-items: center; background: #f7f7f8; font-size: 15px; font-weight: 400; }
.wallet-record-page .record-columns { height: 34px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-bottom: 1px solid #eff0f2; color: #1d2532; font-size: 11px; text-align: center; }
.wallet-record-page .record-empty { min-height: 115px; display: flex; align-items: center; justify-content: center; color: #8a909b; font-size: 10px; text-align: center; padding: 20px; }
.wallet-record-page .record-item { display: block; padding: 10px 12px; border-bottom: 1px solid #eff0f2; color: #171923 !important; }
.wallet-record-page .record-item-head,
.wallet-record-page .record-item-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-record-page .record-item-head { font-size: 12px; font-weight: 600; }
.wallet-record-page .record-item-head span:last-child,
.wallet-record-page .record-item-info span:last-child { text-align: right; }
.wallet-record-page .record-item-info { margin-top: 6px; color: #828894; font-size: 10px; }

@media (min-width: 540px) {
  .wallet-page .wallet-shell { max-width: 430px; margin: 0 auto; }
  .wallet-coin-page .coin-actions { right: auto; left: 50%; width: 430px; transform: translateX(-50%); }
}
