/* ==========================================================================
   Customer page components

   Page-level pieces that sit on top of theme.css: the account header, the
   language sheet the shell carries, and the handful of shapes that belong to
   one page each. Tokens come from theme.css, so this loads after it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Account header

   Identity, the headline figures and the two actions, on one band rather
   than three stacked cards. On a phone it wraps to two rows; from tablet up
   the figures sit beside the name and the actions pin right.
   -------------------------------------------------------------------------- */
.acct-head {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}

@media (min-width: 760px) {
    .acct-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: var(--sp-5);
    }
}

.acct-head__who {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
}

.acct-head__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.acct-head__uid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0 0;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.acct-head__uid .u-mono { word-break: break-all; }

.acct-head__actions {
    display: flex;
    gap: var(--sp-2);
}

.acct-head__actions .btn-app { flex: 1 1 0; }

@media (min-width: 760px) {
    .acct-head__actions .btn-app { flex: 0 0 auto; }
}

/* The figures band runs the full width of the header, under both columns. */
.acct-head__figures { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   2. Language sheet

   A bottom sheet on a phone, a centred panel from tablet up. It shares the
   drawer's scrim, so only the panel itself is described here.
   -------------------------------------------------------------------------- */
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-top-left-radius: var(--r-2xl);
    border-top-right-radius: var(--r-2xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sheet.is-open {
    transform: translateY(0);
    visibility: visible;
}

/* The grab handle is what tells a phone user this panel can be dismissed. */
.sheet::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--border-strong);
}

.sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

.sheet__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.sheet__body {
    overflow-y: auto;
    padding: var(--sp-2) var(--sp-2) var(--sp-3);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* The tick only belongs to the language already in use. */
.language-item__check {
    opacity: 0;
    color: var(--primary);
}

.language-item { border-radius: var(--r-sm); }
.language-item.is-active .language-item__check { opacity: 1; }
.language-item.is-active .list__title { color: var(--primary); font-weight: 700; }
.language-item .list__icon { background: var(--surface-2); font-size: 1rem; }

@media (min-width: 768px) {
    .sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: min(400px, calc(100vw - 32px));
        border-radius: var(--r-2xl);
        transform: translate(-50%, -46%) scale(0.98);
        opacity: 0;
        transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s var(--ease);
    }

    .sheet::before { display: none; }

    .sheet.is-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* The shell's scrim is driven by a class; the language one uses the same. */
#languageOverlay { z-index: 1055; }

/* --------------------------------------------------------------------------
   3. Statement

   Pages that exist to say one thing and offer one action. Narrow on purpose:
   a sentence should not run the width of a desktop screen just because the
   container is that wide.
   -------------------------------------------------------------------------- */
.statement {
    max-width: 380px;
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
}

.statement__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--sp-3);
    border-radius: var(--r-md);
    background: rgba(var(--primary-rgb), 0.09);
    color: var(--primary);
    font-size: 1.05rem;
}

.statement__icon--warning { background: var(--warning-soft); color: var(--warning); }
.statement__icon--success { background: var(--success-soft); color: var(--success); }

.statement__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.statement__text {
    margin: 0 0 var(--sp-4);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.statement__text:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Link tile

   A destination shown as a target rather than a line of text — used where
   the icon or logo is what the eye actually looks for.
   -------------------------------------------------------------------------- */
.link-tile {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-panel);
    color: var(--text);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.link-tile:hover {
    color: var(--text);
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}

.link-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: rgba(var(--primary-rgb), 0.09);
    color: var(--primary);
    font-size: 0.95rem;
    overflow: hidden;
}

.link-tile__icon img { width: 22px; height: 22px; object-fit: contain; }

.link-tile__title { margin: 0; font-size: 0.84rem; font-weight: 600; }

.link-tile__sub {
    margin: 1px 0 0;
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Copyable code (invitation code)
   -------------------------------------------------------------------------- */
.code-box {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    background: var(--surface-2);
}

.code-box__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.code-box__value {
    display: block;
    margin-top: 2px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

/* --------------------------------------------------------------------------
   6. Membership level card
   -------------------------------------------------------------------------- */
.level-card { display: flex; flex-direction: column; }

/* The tier you are on is marked by a tinted header, not an outline. */
.level-card.is-current .level-card__head {
    background: rgba(var(--primary-rgb), 0.08);
}

.level-card__head {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3);
    background: var(--surface-2);
}

.level-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.92rem;
    overflow: hidden;
}

.level-card__icon img { width: 20px; height: 20px; object-fit: contain; }

.level-card__name { margin: 0; font-size: 0.88rem; font-weight: 700; }
.level-card__rate { margin: 1px 0 0; font-size: 0.73rem; color: var(--text-muted); }

.level-card__perks {
    list-style: none;
    margin: 0;
    padding: var(--sp-3);
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
}

.level-card__perks li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-2);
    line-height: 1.45;
}

.level-card__perks i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--primary);
    font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   7. Framed media (certificate, QR)
   -------------------------------------------------------------------------- */
.media-frame {
    display: block;
    margin: 0;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.media-frame img { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   8. Editable avatar
   -------------------------------------------------------------------------- */
.avatar-edit {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
}

.avatar-edit__badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--r-pill);
    /* The cut-out that separates the badge from the photo is a spread shadow
       in the surface colour, not a stroke. */
    box-shadow: 0 0 0 2px var(--surface);
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.6rem;
}

.avatar-edit:hover .avatar-edit__badge { background: var(--primary-hover); }

/* --------------------------------------------------------------------------
   9. Pagination
   -------------------------------------------------------------------------- */
.pager {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

a.pager__link:hover {
    background: var(--border);
    color: var(--text);
}

.pager__link.is-active {
    background: var(--primary);
    color: var(--on-primary);
}

.pager__link.is-disabled { color: var(--text-muted); opacity: 0.45; pointer-events: none; }
.pager__link--dots { background: transparent; pointer-events: none; }

/* --------------------------------------------------------------------------
   10. Password requirements
   -------------------------------------------------------------------------- */
.req-list {
    list-style: none;
    margin: var(--sp-2) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 4px var(--sp-3);
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.req-list li::before {
    content: '\F28A'; /* bi-dash-circle */
    font-family: 'bootstrap-icons';
    font-size: 0.72rem;
    line-height: 1;
}

.req-list li.is-valid { color: var(--success); }
.req-list li.is-valid::before { content: '\F26B'; } /* bi-check-circle-fill */

/* The logo covers the fallback icon when it loads; when it 404s the script on
   the contact page removes it and the icon underneath shows through. */
.link-tile__icon { position: relative; }

.link-tile__icon img {
    position: absolute;
    inset: 0;
    margin: auto;
}

/* --------------------------------------------------------------------------
   11. Submit-order sheet

   The busiest surface in the app: it opens on every task. A bottom sheet on a
   phone — it rises from the edge it is anchored to, and the confirm button
   sits above the home indicator where a thumb already is — and a centred
   two-column panel from 768px, where a single tall column would just be a
   phone screenshot stretched wide.

   The head and the action bar are fixed; only the middle scrolls. That is
   what keeps "Confirm Submission" on screen no matter how many review chips
   a site has configured.
   -------------------------------------------------------------------------- */
.order-sheet-modal .modal-content {
    border: 0;
    background: var(--surface);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    /* Pinned to the bottom edge, full bleed. `modal-dialog-centered` is still
       on the element; flex-end is what turns it into a sheet. */
    .order-sheet-modal .order-sheet-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
        align-items: flex-end;
    }

    .order-sheet-modal .modal-content {
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        /* dvh so the iOS URL bar collapsing does not crop the action bar. */
        max-height: 94vh;
        max-height: 94dvh;
        box-shadow: 0 -18px 50px rgba(10, 10, 16, 0.28);
    }

    /* Bootstrap drops a modal in from -50px; a sheet comes up from below. */
    .order-sheet-modal.fade .order-sheet-dialog { transform: translate(0, 100%); }
    .order-sheet-modal.show .order-sheet-dialog { transform: none; }
}

@media (min-width: 768px) {
    .order-sheet-modal .order-sheet-dialog { max-width: 720px; }

    .order-sheet-modal .modal-content {
        border-radius: var(--r-xl);
        max-height: calc(100vh - 3.5rem);
        box-shadow: var(--shadow-xl);
    }
}

.order-sheet {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--surface);
    color: var(--text);
}

/* Reads as something you could drag. Phone only — on a desktop there is no
   edge to drag it towards. */
.order-sheet__grabber {
    flex: 0 0 auto;
    width: 38px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: var(--r-pill);
    background: var(--border-strong);
}

@media (min-width: 768px) {
    .order-sheet__grabber { display: none; }
}

.order-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
    flex: 0 0 auto;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .order-sheet__head { padding: var(--sp-4) var(--sp-5); }
}

.order-sheet__heading { min-width: 0; }

.order-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.order-sheet__sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: var(--t-2xs);
    line-height: 1.4;
}

.order-sheet__ref {
    padding: 1px 7px;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    color: var(--text-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The form wraps the scroller and the action bar, so the button can live
   outside the scroll area and still submit the fields inside it. */
.order-sheet__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

.order-sheet__body {
    display: grid;
    gap: var(--sp-4);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-4);
}

@media (min-width: 768px) {
    .order-sheet__body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--sp-5);
        padding: var(--sp-5);
    }

    /* One hairline instead of a boxed panel: the two halves are one surface
       split, not two cards. */
    .order-sheet__fields {
        padding-left: var(--sp-5);
        border-left: 1px solid var(--border);
    }
}

.order-sheet__preview { min-width: 0; }
.order-sheet__fields { min-width: 0; }

/* A full-width band of fixed height, rather than an aspect-ratio box that
   shrinks its own width to obey a max-height and leaves the sheet half
   empty beside it. */
.order-sheet__media {
    position: relative;
    margin: 0 0 var(--sp-3);
    width: 100%;
    height: 150px;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    overflow: hidden;
}

@media (min-width: 576px) {
    .order-sheet__media { height: 180px; }
}

@media (min-width: 768px) {
    .order-sheet__media { height: 190px; }
}

.order-sheet__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The 10x multiplier is the one thing on this sheet allowed to shout. */
.order-sheet__boost {
    position: absolute;
    top: var(--sp-2);
    inset-inline-end: var(--sp-2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--gold);
    color: #2a1a00;
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.order-sheet__product {
    margin: 0 0 var(--sp-3);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.order-sheet__figures .figure + .figure {
    box-shadow: inset 1px 0 0 var(--border);
}

.order-sheet__ask { margin-bottom: var(--sp-2); }

/* --- Action bar ---------------------------------------------------------
   Pinned under the scroller: the payoff on the left, the way out on the
   right. Stacks on a phone so the button keeps the full width a thumb
   expects, and clears the home indicator.
   ------------------------------------------------------------------------ */
.order-sheet__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    flex: 0 0 auto;
    padding: var(--sp-3) var(--sp-4);
    padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
}

@media (min-width: 768px) {
    .order-sheet__foot { padding: var(--sp-4) var(--sp-5); }
}

.order-sheet__payout {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.order-sheet__payout-label {
    color: var(--text-muted);
    font-size: var(--t-2xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.order-sheet__payout-value {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 1.02rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
}

.order-sheet__submit { flex: 0 1 auto; min-width: 200px; }

/* Under 400px the payout line and a 200px button cannot share a row. */
@media (max-width: 400px) {
    .order-sheet__foot {
        flex-direction: column;
        align-items: stretch;
        gap: var(--sp-2);
    }

    .order-sheet__payout {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--sp-2);
    }

    .order-sheet__submit { width: 100%; min-width: 0; }
}

/* --------------------------------------------------------------------------
   12. Choice chips

   A radio group where the options are short — the control is the label, so
   the native input is hidden and the label carries the state.
   -------------------------------------------------------------------------- */
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.choice__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice__label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    /* 44px of target on a phone, without padding the text off-centre. */
    min-height: 42px;
    padding: 8px var(--sp-3);
    border: 0;
    /* Not a pill: these labels are full sentences and wrap to two lines on a
       phone, where a pill radius pinches the text. */
    border-radius: var(--r-md);
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* The tick is laid out at zero width and grows into place, so picking a chip
   does not reflow the ones after it. */
.choice__tick {
    width: 0;
    margin-inline-end: 0;
    font-size: 0.85rem;
    opacity: 0;
    overflow: hidden;
    transition: width var(--dur) var(--ease), margin var(--dur) var(--ease),
        opacity var(--dur) var(--ease);
}

.choice__label:hover { background: var(--border); color: var(--text); }

.choice__input:checked + .choice__label {
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
}

.choice__input:checked + .choice__label .choice__tick {
    width: 1em;
    margin-inline-end: 6px;
    opacity: 1;
}

.choice__input:focus-visible + .choice__label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .choice__tick { transition: none; }
}

/* --------------------------------------------------------------------------
   13. Reward pop-ups

   The one place in the app that is allowed to be loud. It is still built from
   the tokens — a brand fill, the gift mark, one figure — rather than its own
   private palette.
   -------------------------------------------------------------------------- */
.reward {
    position: relative;
    padding: var(--sp-6) var(--sp-4) var(--sp-5);
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
}

.reward--gold {
    background: linear-gradient(160deg, #6b4c12 0%, #a97b1c 55%, #e0a020 100%);
}

/* A single soft light behind the gift, instead of rotating glows. */
.reward::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
    pointer-events: none;
}

.reward > * { position: relative; z-index: 1; }

.reward__close {
    position: absolute;
    top: var(--sp-2);
    right: var(--sp-2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.reward__close:hover { background: rgba(255, 255, 255, 0.3); }

.reward__mark {
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin-bottom: var(--sp-3);
    animation: reward-float 3.2s var(--ease) infinite;
}

@keyframes reward-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .reward__mark { animation: none; }
}

.reward__title {
    margin: 0 0 var(--sp-3);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* A kicker above the title on the registration modal, a subtitle under it on
   the bonus one — same element, so the spacing follows the position. */
.reward__eyebrow {
    margin: 0 0 4px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.reward__title + .reward__eyebrow { margin-bottom: var(--sp-4); }

.reward__note {
    margin: 0 0 var(--sp-3);
    font-size: 0.76rem;
    opacity: 0.8;
}

.reward__label {
    margin: 0 0 2px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.reward__amount {
    margin: 0 0 var(--sp-4);
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.reward__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.9;
}

/* On a coloured fill the brand button would disappear, so the action inverts. */
.reward__action {
    background: #fff;
    color: var(--brand-700);
    border-color: #fff;
}

.reward__action:hover { background: rgba(255, 255, 255, 0.88); color: var(--brand-700); }

.reward--gold .reward__action { color: #6b4c12; }
.reward--gold .reward__action:hover { color: #6b4c12; }

/* --------------------------------------------------------------------------
   14. Withdrawal binding fields

   The inputs a chosen withdrawal method asks for, written into the form by
   _bind-withdrawal-account.js. A bank asks for five of them, so the block
   pairs short fields two-up from tablet width and stacks everything on a
   phone rather than letting a five-row form run off the fold.
   -------------------------------------------------------------------------- */

/* Nothing chosen yet. A dashed well rather than an empty gap, so the form
   reads as waiting on the select above instead of as half-loaded. */
.bindempty {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border: 1px dashed var(--border-strong, rgba(var(--primary-rgb), 0.25));
    border-radius: var(--r-md);
    background: var(--surface-2);
}

.bindempty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bindempty__text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* The chosen method, restated above its fields — the select shows the full
   label once, then scrolls away behind the keyboard on a phone. */
.bindmeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--surface-3);
}

.bindmeta__coin {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.bindgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3) var(--sp-3);
}

/* A cell carries its own spacing through the grid gap; the stacked margin
   .field ships with would double it. */
.bindgrid__cell.field { margin-bottom: 0; }

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

    /* Full width is the default — only the short values pair up, and an
       account number sits beside the re-entry that guards it. */
    .bindgrid__cell { grid-column: 1 / -1; }
    .bindgrid__cell--half { grid-column: span 1; }
}

/* An address is long enough that wrapping it is kinder than scrolling it. */
.bindgrid__cell .textarea {
    min-height: 0;
    height: 62px;
    line-height: 1.45;
    word-break: break-all;
}

.bindgrid__cell.is-invalid .input,
.bindgrid__cell.is-invalid .select,
.bindgrid__cell.is-invalid .textarea {
    box-shadow: inset 0 0 0 1px var(--danger);
}

.bindgrid__cell.is-invalid .input:focus,
.bindgrid__cell.is-invalid .select:focus,
.bindgrid__cell.is-invalid .textarea:focus {
    box-shadow: 0 0 0 2px var(--danger);
}

.bindnote { margin: var(--sp-4) 0 0; }

/* --- Bound summary ------------------------------------------------------

   The same detail set read back once binding is done. Rows rather than a
   table: the labels differ per method and several values are long. */
.bindsum__row + .bindsum__row {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--surface-3);
}

.bindsum__k {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bindsum__v {
    margin: 3px 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

/* --------------------------------------------------------------------------
   15. Profile update sheet

   Two fields over the profile page: a photo and a name. It borrows the
   language sheet's shell — bottom sheet on a phone, centred panel from tablet
   up — and adds the one thing a form needs that a menu does not, which is a
   footer the actions can sit in while the body scrolls.
   -------------------------------------------------------------------------- */

/* The shell's .scrim is a mobile affordance and theme-shell.css drops it
   above 900px along with the drawer it dims. A sheet that is a centred dialog
   on a desktop still needs something behind it, so it brings its own. */
.sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(8, 8, 14, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.sheet-scrim.is-open { opacity: 1; visibility: visible; }

/* A form's body needs the panel's own padding back; .sheet__body is trimmed
   for list rows that carry their own. */
.sheet--form .sheet__body {
    padding: var(--sp-1) var(--sp-4) var(--sp-4);
}

.sheet__foot {
    display: flex;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    /* Pinned below the scrolling body, so Save is reachable on a short phone
       without scrolling past the note to find it. */
    border-top: 1px solid var(--surface-3);
    background: var(--surface);
}

.sheet__foot .btn-app { flex: 1 1 0; justify-content: center; }

/* The primary action sits right on a wide panel and takes the larger share of
   a phone's row, which is the side a thumb reaches. */
@media (min-width: 768px) {
    .sheet__foot { justify-content: flex-end; }
    .sheet__foot .btn-app { flex: 0 0 auto; }
}

/* --- Photo row ---------------------------------------------------------- */
.pedit__photo {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) 0 var(--sp-4);
}

.pedit__photo-body { flex: 1 1 auto; }

.pedit__photo-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.pedit__photo-hint {
    margin: 2px 0 var(--sp-3);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.pedit__photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

/* The preview is the biggest thing in the sheet on purpose: it is the only
   control here that shows its result before anything is saved. */
.pedit__photo .avatar--xl {
    /* A ring rather than a border, so swapping the image never shifts the
       layout by a pixel. */
    box-shadow: 0 0 0 3px var(--surface-2);
}

.pedit__photo .avatar-edit__badge {
    width: 24px;
    height: 24px;
    font-size: 0.66rem;
}

/* --- Name --------------------------------------------------------------- */
.pedit__field {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--surface-3);
}

.pedit__note { margin: var(--sp-4) 0 0; }

/* On a narrow phone the photo and its buttons stop fitting side by side long
   before the sheet itself runs out of room. */
@media (max-width: 360px) {
    .pedit__photo {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }
}
