:root {
    color-scheme: light;
    --paper: #f5f1e8;
    --white: #fffdf9;
    --ink: #11243e;
    --blue: #183b72;
    --muted: #4e5e71;
    --line: #d9dce2;
    --accent: #f7d28e;
    --green: #1d6149;
    --red: #9a2e31;
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 3px; }
.site {
    padding: 1.2rem clamp(1.15rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--white);
}
.brand { color: var(--ink); font: bold 1.6rem/1 Georgia, serif; text-decoration: none; }
.brand span { font: 700 .66rem/1 system-ui, sans-serif; letter-spacing: .16em; margin-left: .65rem; }
.demo { background: #f2dfbc; padding: .4rem 1rem; text-align: center; font-size: .8rem; }
main { padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; min-height: 76vh; }
footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 1rem; }
.guest { width: min(100%, 470px); margin: 0 auto; }
.staff { width: min(100%, 1040px); margin: 0 auto; }
.eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
h1 { font: 500 clamp(2.15rem, 7vw, 3.65rem)/1.05 Georgia, serif; letter-spacing: -.04em; margin: .35rem 0 1rem; }
h2 { font-size: 1.1rem; line-height: 1.25; margin: 0 0 .9rem; }
p { margin: 0 0 .8rem; }
.lead, .quiet { color: var(--muted); }
.lead { max-width: 36ch; }
.panel, .balance, .offer {
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 1.5rem);
    margin: 1rem 0;
    overflow-wrap: anywhere;
}
.panel { border: 1px solid var(--line); background: var(--white); }
.balance, .offer { background: var(--blue); color: #fff; }
.balance strong { font-size: clamp(2.8rem, 10vw, 4rem); line-height: 1.12; letter-spacing: -.05em; }
.balance p:last-child { margin: .55rem 0 0; }
.offer { background: #152f58; position: relative; }
.badge {
    display: inline-block; border-radius: 100px; background: var(--accent);
    color: #352819; padding: .35rem .66rem; font-size: .77rem; font-weight: 750;
}
.offer-title { font: 500 clamp(2.3rem, 10vw, 3.2rem)/1.12 Georgia, serif; margin: .75rem 0 .35rem; }
.offer-title span { font: inherit; font-size: .52em; white-space: nowrap; }
.price { font-size: 1.05rem; }
.price del { color: #d9e1ef; margin-right: .2rem; }
.fine { font-size: .85rem; }
.offer button { background: var(--accent); color: #251c15; width: 100%; margin-top: .3rem; }
.stack { display: grid; gap: .68rem; }
.stack p, .stack h2 { margin: 0; }
.stack label, .filter label { font-weight: 680; }
input:not([type="hidden"]), select, button, .button {
    font: inherit;
    border-radius: .55rem;
    min-height: 46px;
    padding: .55rem .72rem;
}
input:not([type="hidden"]), select { width: 100%; border: 1px solid #a1adbb; background: #fff; color: var(--ink); }
button, .button {
    border: 1px solid transparent; background: var(--blue); color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
    font-weight: 650; text-decoration: none;
}
button:disabled { opacity: .6; cursor: progress; }
.secondary { background: #eaf0f8; color: var(--blue); border-color: #c4d1e1; }
.text-button { background: transparent; color: var(--blue); text-decoration: underline; padding-left: 0; }
:focus-visible { outline: 3px solid #c17a21; outline-offset: 3px; }
.packs, .filter { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filter input { width: auto; }
.staff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-grid > .panel { margin: 0; }
.staff-grid + * { margin-top: 1rem; }
.history { list-style: none; padding: 0; margin: 0; }
.history li, .amounts > div {
    display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap;
    align-items: center; border-top: 1px solid var(--line); padding: .6rem 0;
}
.history li:first-child { border-top: 0; }
small { display: block; color: var(--muted); }
.amounts { margin: 0; }
.amounts dd { margin: 0; font-weight: 740; }
.bill-total { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.qr { text-align: center; }
.qr img { width: min(275px, 100%); height: auto; image-rendering: pixelated; }
.success { color: var(--green); font-weight: 670; }
.error { color: var(--red); font-weight: 670; }
@media (max-width: 690px) { .staff-grid { grid-template-columns: 1fr; } }

/* Customer app */
.wallet-app-body { background: #e3e8ee; }
.wallet-app {
    --surface: #f8f7f2;
    --app-navy: #142e56;
    --app-line: #dce2e8;
    --app-blue-tint: #e9eff8;
    --app-gold: #f9dca8;
    --app-gutter: clamp(1rem, 5vw, 1.65rem);
    width: min(100%, 32rem);
    min-height: 100vh;
    min-height: 100dvh;
    margin: auto;
    background: var(--surface);
    box-shadow: 0 0 3.5rem #11243e18;
    display: flex;
    flex-direction: column;
}
.wallet-app svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.wallet-app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: calc(.8rem + env(safe-area-inset-top)) var(--app-gutter) .8rem;
    min-height: 4.5rem; border-bottom: 1px solid var(--app-line); background: #fffdf9;
}
.wallet-header-label { color: var(--muted); font-size: .75rem; font-weight: 650; }
.wallet-wordmark {
    display: inline-flex; align-items: center; gap: .6rem; color: var(--ink);
    font: 700 1.5rem/.9 Georgia, serif; letter-spacing: -.045em; text-decoration: none;
}
.wallet-wordmark small { margin-top: .25rem; font: 750 .6rem/1 system-ui, sans-serif; letter-spacing: .2em; }
.wallet-logo, .wallet-icon-link, .wallet-auth-emblem, .wallet-detail-icon, .wallet-verified {
    display: grid; place-items: center; flex: 0 0 auto;
}
.wallet-logo { width: 2.45rem; height: 2.45rem; border-radius: .8rem; background: var(--app-navy); color: white; }
.wallet-icon-link {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--app-navy);
    background: var(--app-blue-tint); border: 1px solid var(--app-line);
}
.wallet-main { padding: 0; min-height: 0; display: flex; flex: 1; flex-direction: column; }
.wallet-auth { padding: 1.2rem var(--app-gutter) 2rem; }
.wallet-card-art {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff; border-radius: 1.4rem; background: linear-gradient(140deg, #132849 0%, #1e4070 70%, #2c5085 100%);
    box-shadow: 0 .55rem 1.15rem #122b4a22;
}
.wallet-card-art::after {
    content: ''; z-index: -1; position: absolute; pointer-events: none;
    width: 12rem; height: 12rem; border: 1px solid #fff4; border-radius: 50%;
    bottom: -5rem; right: -5.75rem;
    box-shadow: 0 0 0 .85rem #fff1, 0 0 0 1.75rem #fff1, 0 0 0 2.65rem #fff1;
}
.wallet-auth-hero { padding: 1.5rem; }
.wallet-auth-emblem {
    width: 2.85rem; height: 2.85rem; border-radius: .9rem; margin-bottom: 1.05rem;
    background: var(--app-gold); color: var(--app-navy);
}
.wallet-auth-emblem svg { width: 1.55rem; height: 1.55rem; }
.wallet-kicker { color: #375582; font-size: .68rem; letter-spacing: .16em; font-weight: 800; margin: 0; }
.wallet-app h1 { font-size: clamp(2.35rem, 9vw, 3.3rem); margin: .42rem 0 .8rem; }
.wallet-auth-hero .wallet-kicker { color: var(--app-gold); }
.wallet-auth-hero h1 { margin-bottom: 0; }
.wallet-auth-content {
    padding: clamp(1.05rem, 5vw, 1.5rem);
    margin-top: 1rem; border: 1px solid var(--app-line); border-radius: 1.3rem; background: #fffdf9;
}
.wallet-auth-content h2 { margin: 0 0 .4rem; font-size: 1.22rem; }
.wallet-intro { color: var(--muted); max-width: 38ch; overflow-wrap: anywhere; }
.wallet-auth-form { margin-top: 1rem; gap: .55rem; }
.wallet-auth-form input:not([type="hidden"]) {
    min-height: 3.4rem; padding: .7rem .9rem; border-radius: .85rem; border-color: #a2b0bf;
}
.wallet-auth-form input.wallet-code {
    font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .42em; font-size: 1.3rem;
}
.wallet-app .wallet-primary {
    position: relative; min-height: 3.4rem; margin-top: .25rem; border-radius: .85rem;
    padding-inline: 2.45rem; background: var(--app-navy); box-shadow: 0 .3rem .65rem #142e5626;
}
.wallet-primary svg { position: absolute; right: .9rem; }
.wallet-auth-caption {
    color: var(--muted); display: flex; align-items: center; gap: .45rem; font-size: .8rem; margin: 1rem 0 0;
}
.wallet-auth-caption svg { width: .95rem; height: .95rem; }
.wallet-code-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .25rem .65rem; margin-top: .5rem; font-size: .9rem; }
.wallet-code-actions a { display: flex; align-items: center; min-height: 44px; }
.wallet-dashboard { padding: 1.6rem var(--app-gutter) 1rem; flex: 1; }
.wallet-screen { scroll-margin-top: 1rem; }
.wallet-screen + .wallet-screen { margin-top: 1.65rem; }
.wallet-screen[hidden] { display: none; }
.wallet-dashboard[data-tabs-ready] .wallet-screen { margin-top: 0; }
.wallet-balance {
    min-height: 12rem; padding: 1.15rem 1.35rem 1.35rem;
    margin-top: 1.25rem;
}
.wallet-balance-label { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.wallet-balance-label p { display: flex; align-items: center; gap: .45rem; margin: 0; color: #e7eef9; }
.wallet-balance-label p svg { color: var(--app-gold); }
.wallet-balance-label a {
    color: #fff; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border-radius: .85rem; border: 1px solid #ffffff42; background: #fff1;
}
.wallet-balance > strong {
    display: block; font-size: clamp(3.35rem, 13vw, 4.3rem); letter-spacing: -.065em;
    line-height: 1.05; overflow-wrap: anywhere; margin: .5rem 0 .62rem;
    font-variant-numeric: tabular-nums;
}
.wallet-currency {
    display: inline-block; padding: .19rem .48rem; border-radius: .4rem; background: var(--app-gold);
    color: var(--app-navy); font-size: .68rem; font-weight: 800; letter-spacing: .1em;
}
.wallet-held { color: #e3ebf8; margin: .5rem 0 0; font-size: .84rem; }
.wallet-recharge { margin-top: 1.4rem; }
.wallet-recharge-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .65rem; }
.wallet-recharge-heading h2 { margin: 0; font-size: 1.2rem; }
.wallet-recharge .wallet-intro { font-size: .86rem; margin-bottom: .65rem; }
.wallet-pack-list { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.wallet-pack {
    display: flex; align-items: center; justify-content: space-between; gap: .65rem; width: 100%;
    padding: .75rem .9rem; border: 1px solid var(--app-line); border-radius: .85rem;
    background: #fffdf9; color: var(--ink); text-align: left;
}
.wallet-pack small { font-size: .73rem; font-weight: 600; }
.wallet-pack strong { display: block; font-size: 1.06rem; }
.wallet-pack-credit { text-align: right; margin-left: auto; }
.wallet-pack-credit strong { color: var(--app-navy); }
button.wallet-pack:hover { border-color: #8298b6; background: #f1f5fa; }
.wallet-pack svg { color: var(--app-navy); }
.wallet-continue { margin-top: 1rem; }
.wallet-continue .button, .wallet-back { width: 100%; }
.wallet-checkout-details { margin: 1rem 0; }
.wallet-checkout-details form button { width: 100%; }
.wallet-checkout-details .amounts { margin: 0; }
.wallet-checkout .wallet-back { margin-top: 1rem; }
.wallet-empty, .wallet-account-row, .wallet-history, .wallet-summary-link {
    padding: .9rem; border: 1px solid var(--app-line); border-radius: 1rem; background: #fffdf9;
}
.wallet-empty, .wallet-account-row, .wallet-summary-link { display: flex; align-items: center; gap: .75rem; }
.wallet-summary-link { text-decoration: none; color: var(--ink); margin-top: 1rem; }
.wallet-summary-link > svg { margin-left: auto; color: var(--app-navy); }
.wallet-empty p { margin: .12rem 0 0; color: var(--muted); font-size: .86rem; }
.wallet-detail-icon {
    width: 2.65rem; height: 2.65rem; border-radius: .8rem;
    background: var(--app-blue-tint); color: var(--app-navy);
}
.wallet-history { padding-block: .25rem; }
.wallet-account-email { flex: 1; overflow-wrap: anywhere; font-size: .94rem; min-width: 0; }
.wallet-verified { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e2f0e9; color: var(--green); }
.wallet-verified svg { width: .9rem; height: .9rem; }
.wallet-account button { width: 100%; margin-top: .85rem; border-radius: .85rem; }
.wallet-profile {
    padding: 1rem; margin-top: .9rem; border: 1px solid var(--app-line);
    border-radius: 1rem; background: #fffdf9; gap: .5rem;
}
.wallet-profile > p { font-size: .86rem; }
.wallet-profile label, .wallet-profile-date legend { margin-top: .35rem; font-size: .94rem; font-weight: 700; }
.wallet-profile input:not([type="hidden"]), .wallet-profile select { border-radius: .7rem; }
.wallet-profile select {
    appearance: none; min-height: 2.9rem; padding-right: 2rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23142e56' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .65rem center / 1rem;
}
.wallet-profile-date {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .55rem;
    border: 0; padding: 0; margin: 0; min-width: 0;
}
.wallet-profile-date legend { padding: 0 0 .5rem; }
.wallet-tabs {
    position: sticky; bottom: 0; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: .32rem; padding: .45rem var(--app-gutter) calc(.45rem + env(safe-area-inset-bottom));
    background: #fffdf9; border-top: 1px solid var(--app-line); box-shadow: 0 -.3rem 1.1rem #11243e0a;
}
.wallet-tabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
    color: #4e5e71; font-size: .72rem; text-decoration: none; min-height: 3.15rem; border-radius: .75rem;
}
.wallet-tabs a[aria-current] { background: var(--app-blue-tint); color: var(--app-navy); font-weight: 750; }
.wallet-tabs a[aria-current] svg { stroke-width: 2; }
