.wallet-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.wallet-card { display: flex; flex-direction: column; gap: 10px; }
.wallet-card__amount { font-size: clamp(40px, 8vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.wallet-card__idr { color: var(--text-2); font-size: 14px; }
.wallet-card__hint { color: var(--text-3); font-size: 13px; max-width: 46ch; margin-bottom: 6px; }
.wallet-card .btn { align-self: flex-start; }

.wallet-chip { display: flex; align-items: center; gap: 8px; }
.wallet-chip__balance { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 700; font-size: 14px; transition: border-color var(--ease), background var(--ease); }
.wallet-chip__balance:hover { text-decoration: none; border-color: var(--accent); background: var(--surface); color: var(--text); }
@media (max-width: 639px) { .wallet-chip .btn__label { display: none; } .wallet-chip .btn { padding: 0 9px; } }

.topup { display: flex; flex-direction: column; gap: 14px; }
.topup__estimate { color: var(--text-2); font-size: 13px; }
.topup__reference { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); }
.topup__reference code { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: text; }
.topup__email { color: var(--text-2); }
.topup__message { align-items: flex-start; }
.topup__message code { flex: 1 1 14rem; word-break: normal; overflow-wrap: break-word; } /* .mono breaks anywhere; wrap at the space instead */
.topup__message code > span:first-child { white-space: nowrap; }
.topup__steps { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--border); }
.topup__steps-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text); }
.topup-steps { margin: 0; padding-left: 22px; list-style: decimal outside; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.topup-steps li { display: list-item; padding-left: 2px; }
.topup-steps li::marker { color: var(--text-3); font-weight: 700; }
.topup-steps strong { color: var(--text); font-weight: 600; }
.topup__help { margin: 0; color: var(--text-3); font-size: 12.5px; }
.topup__discord { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color var(--ease), color var(--ease), background var(--ease); }
.topup__discord:hover { color: var(--text); border-color: var(--accent); background: var(--surface); text-decoration: none; }
.topup__discord .icon { flex: none; }
.topup-status--paid .topup__discord { align-self: center; }
.topup-status { display: flex; flex-direction: column; gap: 14px; }
.topup-status--paid { align-items: center; text-align: center; }
.topup-status--paid p { color: var(--text-2); }
.topup-status--paid .kv, .topup-status--paid .btn { width: 100%; }
.topup-status__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topup-status__amount { font-size: 22px; letter-spacing: -0.02em; }
.topup-status__expiry { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12.5px; }
.topup-status .btn-row .btn { flex: 1; }

.amount-in { color: var(--text); font-weight: 700; }
.amount-in--credit { color: var(--accent); }


@media (min-width: 900px) { .wallet-grid { grid-template-columns: 1fr 1fr; } }

/* Pending checkout: a compact Back link on top, then one full-width action per row. */
.topup-status__back { align-self: flex-start; margin: -6px 0 -4px -10px; }
.topup-status__actions { display: flex; flex-direction: column; gap: 8px; }
