@font-face {
  font-family: Wallet Icons;
  src: url('/fonts/checkout-ui.ttf') format('truetype');
}
.wallet-page {
  --w-muted: #aaa8b3;
  --w-ink: #fafafa;
  --w-line: #ffffff20;
  --w-green: #80d297;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 20px;
  color: var(--w-ink);
}
.wallet-page .w-icon {
  font: 20px/1 'Wallet Icons';
  display: inline-grid;
  place-items: center;
  flex: none;
}
.w-icon::before { content: attr(data-glyph); }
.w-header { display: flex; align-items: center; gap: 14px; }
.w-back {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--w-line); border-radius: 50%; background: #1b1b20;
}
.w-header h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.w-header p, .w-description { margin-top: 5px; color: var(--w-muted); font-size: .9rem; }
.w-balance {
  padding: 24px; border: 1px solid #7a45fd4d; border-radius: 24px;
  background: linear-gradient(180deg, transparent 0% 50%, #7a45fd4d);
}
.w-summary { padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--w-line); }
.w-summary dt { color: var(--w-muted); text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; }
.w-total { margin-top: 7px; line-height: 1.12; font-size: clamp(34px, 8vw, 44px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.w-total strong { font-weight: 700; }
.w-unit { font-size: .56em; vertical-align: .16em; color: #c1bdcc; letter-spacing: -.015em; font-weight: 700; }
.w-part { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w-part + .w-part { margin-top: 6px; }
.w-part dt { color: var(--w-muted); font-size: .78rem; font-weight: 600; }
.w-part dd { text-align: right; font-weight: 650; font-size: .9rem; font-variant-numeric: tabular-nums; }
.w-summary + .w-part dd, .w-credit { color: var(--w-green); }
.w-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.w-action {
  display: grid; justify-items: start; gap: 12px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--w-line); background: #1b1b20; font-weight: 650;
}
.w-action:first-child {
  border-color: #7a45fd99;
  background: linear-gradient(145deg, #7a45fd26, #18125559 55%, #0009), #7a45fd26;
}
.w-action .w-icon, .w-row > .w-icon:first-child, .w-empty .w-icon {
  width: 40px; height: 40px; border-radius: 50%; color: #c5acff; background: #7a45fd20;
}
.w-action:first-child .w-icon { background: #7a45fd40; }
.w-action:last-child .w-icon { color: #fafafa; }
.w-history-head { display: flex; align-items: center; gap: 9px; }
.w-history h2 { font-size: 1.15rem; letter-spacing: -.025em; }
.w-count { font-size: .8rem; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.w-list { margin: 12px 0 0; padding: 0; list-style: none; }
.w-list li + li { border-top: 1px solid var(--w-line); }
.wallet-page .w-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 0; border: 0; border-radius: 0; background: transparent; overflow: visible;
}
.wallet-page a.w-row { grid-template-columns: 40px minmax(0,1fr) auto 12px; }
.w-row > .w-icon:first-child { border-radius: 12px; font-size: 18px; }
.w-row > .w-icon:last-child { font-size: 12px; color: var(--w-muted); }
.wallet-page .w-row h3 { margin: 0 0 3px; font-size: .95rem; line-height: 1.3; letter-spacing: -.015em; }
.w-info, .w-amounts { min-width: 0; }
.w-info time, .w-info span, .w-info small, .w-amounts small { font-size: .74rem; color: var(--w-muted); }
.w-info small, .w-amounts small { display: block; }
.w-info .w-status { white-space: nowrap; }
.w-amounts { text-align: right; font-variant-numeric: tabular-nums; max-width: 20ch; overflow-wrap: anywhere; }
.w-amounts strong { font-size: .92rem; }
.wallet-page .w-empty { text-align: center; padding: 24px 16px; border-radius: 16px; background: #19191e; }
.w-empty .w-icon { display: inline-grid; width: 44px; height: 44px; }
.wallet-page .w-empty h3 { font-size: 1.05rem; margin: 10px 0 4px; }
.w-tools, .w-paging { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.w-tools { border-top: 1px solid var(--w-line); padding-top: 4px; }
.w-tools a, .w-paging a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; color: #c9b5ff; }
.w-paging span, .w-note { color: var(--w-muted); font-size: .78rem; }
.w-note { margin-top: -12px; }
@media (hover: hover) {
  .w-action:hover, a.w-row:hover, .wallet-page .w-empty:hover { background-color: #27232f; }
  .w-tools a:hover, .w-paging a:hover { text-decoration: underline; }
}
@media (max-width: 550px) {
  .wallet-page .w-row { gap: 8px; }
  .w-amounts { max-width: 16ch; }
}
