html:not([data-checkout]) .member-app {
  background-color: var(--bg);
  background-image: linear-gradient(146deg, #07070736, color-mix(in srgb, var(--bg) 49%, transparent) 71%, #05050575),
    url('/assets/art/member-backdrop.webp');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wallet-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.wallet-overview .panel, .wallet-history {
  padding: clamp(16px, 2.3vw, 28px);
}
.wallet-overview .wallet-balance {
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 238px;
  border-color: var(--outline-strong);
  background: linear-gradient(105deg, var(--surface) 10%, color-mix(in srgb, var(--surface) 90%, transparent) 51%, #0e0b0745),
    url('/assets/art/member-backdrop.webp') right 58% / cover no-repeat var(--surface);
}
.wallet-balance-head, .wallet-balance-values, .wallet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-balance-head h2 {
  font-size: .92rem;
  font-weight: 750;
  color: var(--text);
}
.wallet-balance-values {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-variant-numeric: tabular-nums;
}
.wallet-total-amount {
  color: var(--gold-bright);
  font: 800 clamp(1.9rem, 4.9vw, 3.6rem)/1.05 var(--display);
  letter-spacing: -.043em;
  overflow-wrap: anywhere;
}
.wallet-withdrawable {
  display: grid;
  gap: 4px;
  align-self: center;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--outline-strong);
  color: var(--muted);
  font-size: .78rem;
}
.wallet-withdrawable b {
  color: var(--text);
  font-size: .98rem;
}
.wallet-actions {
  flex-wrap: wrap;
}
.wallet-actions .btn {
  min-width: 130px;
}
.wallet-bank {
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--gold) 10%, transparent), transparent 76%), var(--surface);
}
.wallet-bank .section-head {
  margin: 0;
}
.wallet-bank h2 {
  font-size: clamp(1.03rem, 1.45vw, 1.25rem);
}
.wallet-bank-account {
  display: grid;
  gap: 5px;
  align-content: center;
  flex: 1;
  min-height: 64px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-size: .88rem;
  overflow-wrap: anywhere;
  background: var(--surface);
  color: var(--muted);
}
.wallet-bank-account b {
  color: var(--text);
}
.wallet-bank-account span {
  font-variant-numeric: tabular-nums;
  letter-spacing: .11em;
}
.wallet-history .section-head {
  flex-wrap: wrap;
}
.wallet-history .tabs {
  margin-bottom: 12px;
}
.gold-content .wallet-history .order-row {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-raised) 70%, var(--surface));
}
.gold-content .wallet-history .order-row:hover {
  border-color: var(--gold);
}
.wallet-history .order-row > .icon {
  color: var(--gold);
}

.task-grid.order-grid {
  max-width: 1120px;
}
.order-grid.two-column {
  grid-template-columns: minmax(0, 2.25fr) minmax(210px, 1fr);
}
.task-order {
  padding: clamp(16px, 2.25vw, 28px);
}
.order-receipt {
  display: grid;
  gap: 18px;
}
.order-receipt-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.order-receipt-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-receipt-label h2 {
  font-size: 1.15rem;
}
.order-receipt-amount {
  grid-column: 1 / -1;
  color: var(--gold-bright);
  font: 800 clamp(1.75rem, 3.6vw, 2.75rem)/1.14 var(--display);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.order-progress {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 13px;
}
.order-progress h2 {
  font-size: .98rem;
  margin-bottom: 16px;
}
.order-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.order-step {
  --step-line: color-mix(in srgb, var(--muted) 44%, var(--surface));
  --step-color: var(--step-line);
  position: relative;
  display: grid;
  grid-template-rows: 12px auto;
  align-content: start;
  gap: 10px;
  padding-inline-end: 8px;
}
.order-step:not(:last-child)::after {
  position: absolute;
  content: '';
  height: 2px;
  inset: 5px -6px auto 6px;
  background: var(--step-line);
}
.order-step[data-state="done"] {
  --step-color: #76e79a;
  --step-line: #427651;
}
.order-step[data-state="active"] {
  --step-color: #ffad5d;
}
.order-step[data-state="failed"] {
  --step-color: #ff7977;
}
.order-step-dot {
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--step-color);
  border-radius: 50%;
  background: var(--step-color);
}
.order-step[data-state="upcoming"] .order-step-dot {
  background: var(--surface);
}
.order-step[aria-current="step"] .order-step-dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color) 22%, transparent);
}
.order-step strong {
  display: block;
  font-size: .88rem;
  line-height: 1.35;
  margin-bottom: 4px;
}
.order-step time, .order-step-time {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.order-receipt-meta .dialog-stat {
  min-height: 39px;
}
.order-receipt-meta .dialog-stat:last-child {
  border-bottom: 0;
}

@media (max-width: 800px) {
  .order-grid.two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 660px) {
  html:not([data-checkout]) .member-app {
    background-image: linear-gradient(to bottom, #05050533 40%, var(--bg) 650px), url('/assets/art/member-backdrop.webp');
    background-size: auto, auto max(650px, 100svh);
    background-position: right top;
    background-attachment: scroll;
  }
  .wallet-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .wallet-overview .wallet-balance {
    min-height: 200px;
  }
}
@media (max-width: 460px) {
  .wallet-actions .btn {
    flex: 1;
    min-width: 0;
  }
  .wallet-withdrawable {
    padding-inline-start: 0;
    border: 0;
  }
  .wallet-history .order-row > .icon {
    display: none;
  }
  .order-timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-step {
    grid-template: auto / 12px minmax(0, 1fr);
    padding: 0 0 16px;
  }
  .order-step:last-child {
    padding: 0;
  }
  .order-step-dot {
    margin-top: 3px;
  }
  .order-step:not(:last-child)::after {
    width: 2px;
    height: auto;
    inset: 9px auto -6px 5px;
  }
}
