/* UserHub Pro — redesigned customer wallet. Scoped to .uh-wallet-page. */
.uh-wallet-page{display:flex;flex-direction:column;gap:18px;color:var(--uh-ink)}
.uh-wallet-hero{display:flex;align-items:stretch;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:26px;border-radius:22px;color:#fff;background:radial-gradient(circle at 12% 0,rgba(255,255,255,.22),transparent 45%),linear-gradient(135deg,var(--uh-primary),#3730a3 60%,var(--uh-accent));box-shadow:0 18px 40px color-mix(in srgb,var(--uh-primary) 30%,transparent)}
.uh-wallet-hero__label{font-size:13px;opacity:.85;font-weight:700}
.uh-wallet-page .uh-wallet-balance{display:flex;align-items:baseline;gap:8px;margin:6px 0}
.uh-wallet-page .uh-wallet-balance strong{font-size:clamp(30px,5vw,44px);line-height:1.2;font-weight:800;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.uh-wallet-page .uh-wallet-balance small{font-size:14px;opacity:.85}
.uh-wallet-hero__hint{margin:0;font-size:12.5px;opacity:.8}
.uh-wallet-summary{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:10px;margin:0;align-self:center}
.uh-wallet-summary>div{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(4px)}
.uh-wallet-summary dt{display:flex;align-items:center;gap:4px;font-size:12px;opacity:.85}
.uh-wallet-summary dt .dashicons{font-size:16px;width:16px;height:16px}
.uh-wallet-summary dd{margin:4px 0 0;font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.uh-wallet-topup,.uh-wallet-history-wrap{background:#fff;border:1px solid var(--uh-line);border-radius:18px;padding:20px}
.uh-wallet-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.uh-wallet-section-title h3{margin:0;font-size:16px}
.uh-wallet-page .uh-wallet-policy-note{margin:0;font-size:12px;color:var(--uh-muted);background:var(--uh-bg);border-radius:999px;padding:5px 11px}
.uh-wallet-page .uh-wallet-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.uh-wallet-chips{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}
.uh-wallet-page .uh-wallet-chip{border:1px solid var(--uh-line);background:var(--uh-bg);color:var(--uh-ink);border-radius:999px;padding:8px 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.uh-wallet-page .uh-wallet-chip:hover{border-color:var(--uh-primary);background:color-mix(in srgb,var(--uh-primary) 8%,#fff)}
.uh-wallet-page .uh-wallet-chip.is-active{border-color:var(--uh-primary);background:var(--uh-primary);color:#fff}
.uh-wallet-page .uh-wallet-chip:focus-visible,.uh-wallet-page .uh-wallet-field input:focus-visible{outline:2px solid var(--uh-primary);outline-offset:2px}
.uh-wallet-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;margin:0}
.uh-wallet-field input{border:1px solid #cbd5e1;border-radius:12px;padding:12px 14px;font:inherit;font-size:16px;background:#fff;min-height:48px;box-sizing:border-box;width:100%}
.uh-wallet-page .uh-wallet-form .uh-message{grid-column:1 / -1;margin:0}
.uh-wallet-history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.uh-wallet-tx{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--uh-line)}
.uh-wallet-tx:last-child{border-bottom:0}
.uh-wallet-tx__icon{flex:0 0 auto;display:grid!important;place-items:center;width:40px;height:40px;border-radius:12px;font-size:20px}
.uh-wallet-tx--credit .uh-wallet-tx__icon{background:#dcfce7;color:#166534}
.uh-wallet-tx--debit .uh-wallet-tx__icon{background:#fee2e2;color:#991b1b}
.uh-wallet-tx__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.uh-wallet-tx__body strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.uh-wallet-tx__body small{color:var(--uh-muted);font-size:12px}
.uh-wallet-tx__amount{flex:0 0 auto;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.uh-wallet-tx__amount small{font-weight:500;color:var(--uh-muted);font-size:11px}
.uh-wallet-tx__amount.credit{color:#15803d}.uh-wallet-tx__amount.debit{color:#b91c1c}
.uh-wallet-empty{display:grid;justify-items:center;gap:6px;padding:26px 10px;color:var(--uh-muted);text-align:center}
.uh-wallet-empty .dashicons{font-size:34px;width:34px;height:34px;opacity:.5}.uh-wallet-empty p{margin:0}
.uh-dashboard-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.uh-dashboard-wallet-head h2{margin:0}
@media(max-width:640px){
 .uh-wallet-hero{padding:20px}.uh-wallet-summary{width:100%;grid-template-columns:1fr 1fr}
 .uh-wallet-page .uh-wallet-form{grid-template-columns:1fr}
 .uh-wallet-page .uh-wallet-form>button[type=submit]{width:100%}
 .uh-wallet-tx__amount small{display:none}
}
/* Dark theme (the dashboard toggle sets data-uh-theme="dark") */
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-topup,.uh-dashboard[data-uh-theme="dark"] .uh-wallet-history-wrap{background:#1e293b;border-color:#334155}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-field input{background:#0f172a;border-color:#475569;color:var(--uh-ink)}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-page .uh-wallet-chip{background:#0f172a;border-color:#475569;color:var(--uh-ink)}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-page .uh-wallet-chip.is-active{background:var(--uh-primary);color:#fff}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-page .uh-wallet-policy-note{background:#0f172a}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-tx{border-color:#334155}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-tx--credit .uh-wallet-tx__icon{background:rgba(34,197,94,.16);color:#86efac}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-tx--debit .uh-wallet-tx__icon{background:rgba(239,68,68,.16);color:#fca5a5}
.uh-dashboard[data-uh-theme="dark"] .uh-wallet-tx__amount.credit{color:#86efac}.uh-dashboard[data-uh-theme="dark"] .uh-wallet-tx__amount.debit{color:#fca5a5}
@media(prefers-reduced-motion:reduce){.uh-wallet-page *{transition:none!important}}
