/* InstaPay payments with proof, payment reviews, site settings, swimming "Coming soon"
   (uses the site tokens from style.css; square corners like the rest of the club UI) */

/* ---------- payment box ---------- */
.pp-box { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.pp-box__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-box__head b { font-family: var(--font-display); font-size: 1.05rem; }
.pp-badge { font: 800 .68rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; background: #5c2d91; color: #fff; }
html[lang='ar'] .pp-badge { letter-spacing: 0; }
.pp-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); }
.pp-amount b { font-family: var(--font-display); font-size: 1.4rem; }
.pp-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pp-row span { color: var(--muted); font-size: .85rem; }
.pp-row b { font-size: 1rem; overflow-wrap: anywhere; }
.pp-box__go { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pp-open { flex: 1 1 200px; justify-content: center; }
.pp-qr { width: 112px; height: 112px; background: #fff; padding: 6px; flex: none; }
.pp-qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .pp-qr { display: none; } .pp-row { grid-template-columns: 1fr auto; } .pp-row span { grid-column: 1 / -1; } }
.pp-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--text-2); font-size: .92rem; }
.pp-note { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.pp-box--none { grid-template-columns: auto 1fr; align-items: start; }
.pp-box--none p { margin: 4px 0 10px; color: var(--text-2); }
.pp-modal { max-width: 620px; }
.pp-modal__body { display: grid; gap: 14px; }
.pp-form { display: grid; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.pp-form__title { margin: 8px 0 0; font-family: var(--font-display); font-size: 1rem; }
.pp-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 12px 0; }
.pp-done > svg { color: var(--ok); }

/* ---------- status chips (customer-facing words; colours follow meaning) ---------- */
.pp-chip { display: inline-flex; align-items: center; padding: 3px 8px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.pp-chip--awaiting { background: var(--surface-3); color: var(--text-2); }
.pp-chip--submitted, .pp-chip--review { background: #f7e8c9; color: #6b4e10; }
.pp-chip--info { background: #dfe6ff; color: #1c3fbd; }
.pp-chip--verified { background: #d6f5e3; color: #0e5b33; }
.pp-chip--rejected, .pp-chip--refunded { background: #fde0e1; color: #8c1d22; }
[data-theme='dark'] .pp-chip--submitted, [data-theme='dark'] .pp-chip--review { background: #4a3a17; color: #ffd98a; }
[data-theme='dark'] .pp-chip--info { background: #1c2752; color: #b9c8ff; }
[data-theme='dark'] .pp-chip--verified { background: #123d27; color: #8ff0b8; }
[data-theme='dark'] .pp-chip--rejected, [data-theme='dark'] .pp-chip--refunded { background: #4a1b1d; color: #ffb3b6; }
.pp-why { display: block; margin-top: 4px; font-size: .8rem; color: var(--danger); }
.pp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-sub__pay, .cup-pay__proof { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ac-order__pay { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- website: my bookings, booking done, contacts ---------- */
.bk__pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .85rem; }
.bk__pay .btn { margin-inline-start: auto; }
.done__pay { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid rgba(255, 255, 255, .3); text-align: start; }
.done__pay p { margin: 0; opacity: .9; font-size: .9rem; }
.done__paystate { display: flex; gap: 8px; align-items: center; }
.insta-list { display: grid; gap: 8px; margin-top: 8px; }
.insta-list__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.insta-list__item:hover, .insta-list__item:focus-visible { border-color: var(--accent); }
.insta-list__item span { display: grid; gap: 2px; }
.insta-list__item small { color: var(--muted); }
.fab__none { padding: 12px; font-size: .85rem; color: var(--muted); }
.wa-num small { display: block; opacity: .75; font-size: .75rem; }

/* ---------- swimming: Coming soon ---------- */
.soon-badge { display: inline-block; padding: 2px 6px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--acid); color: #0d1f0a; }
html[lang='ar'] .soon-badge { letter-spacing: 0; font-size: .74rem; }
.soon-card { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; border: 1px dashed var(--line-2); }
.soon-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }
.soon-card p { margin: 0; max-width: 46ch; color: var(--text-2); }
.soon-card > svg { color: var(--pool); }
[data-theme='dark'] .soon-card > svg { color: #6fd3ef; }

/* ---------- staff: reviews ---------- */
.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rv-filters input { flex: 1 1 220px; }
.rv-table small { display: block; }
.rv-grid { display: grid; grid-template-columns: 1fr minmax(200px, 300px); gap: 16px; align-items: start; }
@media (max-width: 720px) { .rv-grid { grid-template-columns: 1fr; } }
.rv-photo-box { min-height: 160px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); padding: 6px; }
.rv-photo { width: 100%; height: auto; display: block; }
.rv-history { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: .9rem; }
.rv-history p { margin: 2px 0 0; color: var(--text-2); }
.rv-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fin-kpis--methods { margin-top: 10px; }
.fin-tools__q { flex: 1 1 220px; }
.fin-pager { justify-content: center; align-items: center; margin-top: 12px; }

/* ---------- Global Admin: site settings ---------- */
.ss-form { display: grid; gap: 14px; }
.ss-item { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line-2); background: var(--surface-2); }
.ss-item--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.ss-item__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; grid-column: 1 / -1; }

/* ---------- copyright + developer credit (every page) ---------- */
.mo-credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); font-size: .72rem; line-height: 1.4; color: var(--muted); text-align: center; }
.footer .mo-credit { padding-inline: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.mo-credit__by { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; opacity: .85; }
.mo-credit__by:hover, .mo-credit__by:focus-visible { opacity: 1; color: var(--text); }
.mo-credit__by img { width: 26px; height: auto; display: block; }
.mo-credit__by b { font-weight: 700; letter-spacing: .14em; }
[data-theme='dark'] .mo-credit__by img, .footer .mo-credit__by img { filter: invert(1); }
.staging-flag { position: fixed; inset-inline-start: 8px; bottom: 8px; z-index: 9999; pointer-events: none; padding: 4px 8px; font: 700 .7rem/1.2 var(--font-body, system-ui); background: #ffd23f; color: #1a1400; }
/* Global Admin: role testing */
.ss-now { margin: 0 0 10px; padding-inline-start: 18px; display: grid; gap: 4px; }
.ss-role { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ss-role__pick { flex-wrap: wrap; }
.ss-role__more summary { cursor: pointer; font-size: .85rem; color: var(--text-2); }
.ss-role__time { max-width: 160px; }
@media (max-width: 999.98px) { body.has-bnav .mo-credit { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- guided payment (amount → method → check → pay) ---------- */
.pp-for { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; color: var(--text-2); font-size: .92rem; }
.pp-progress { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: none; }
.pp-progress li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .72rem; color: var(--muted); }
.pp-progress li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--line-2); font-weight: 800; font-size: .8rem; }
.pp-progress li.is-now { color: var(--text); }
.pp-progress li.is-now > span { border-color: var(--primary); background: var(--primary); color: #fff; }
.pp-progress li.is-done > span { border-color: var(--ok); color: var(--ok); }
.pp-progress b { font-weight: 700; }
.pp-sum { display: grid; border: 1px solid var(--line-2); background: var(--surface-2); margin: 0 0 12px; }
.pp-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.pp-sum__row:first-child { border-top: 0; }
.pp-sum__row > span { color: var(--text-2); }
.pp-sum__row > b { text-align: end; display: grid; gap: 2px; font-weight: 700; }
.pp-sum__row > b small { font-weight: 400; color: var(--muted); }
.pp-sum__row.is-strong > b { font-size: 1.15rem; font-family: var(--font-display); }
.pp-confirm { min-height: 44px; align-items: center; font-weight: 700; }
.pp-methods { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-method { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line-2); cursor: pointer; min-height: 64px; }
.pp-method input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.pp-method span { display: grid; gap: 4px; }
.pp-method small { color: var(--muted); }
.pp-method:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }
.pp-method.is-off { opacity: .55; cursor: not-allowed; }
.pp-nav { display: flex; justify-content: space-between; gap: 10px; }
.pp-nav .btn--primary { flex: 1; justify-content: center; }
.pp-refbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; border: 2px dashed var(--primary); margin: 0 0 12px; }
.pp-refbox > span { flex: 1 1 100%; font-size: .85rem; color: var(--text-2); }
.pp-refbox > b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .12em; }
.pp-ref { font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.pp-loading { display: flex; gap: 10px; align-items: center; padding: 24px 0; }
.cash-intent { color: var(--info, #1c3fbd); }
[data-theme='dark'] .cash-intent { color: #b9c8ff; }
@media (max-width: 420px) { .pp-progress b { font-size: .66rem; } }

/* ---------- refunds ---------- */
.rf-filter { flex-wrap: wrap; margin-bottom: 12px; }
.rf-list, .col-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rf-card, .col-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.rf-card header, .col-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rf-card header b, .col-card header b { font-family: var(--font-display); font-size: 1.25rem; }
.rf-card p, .col-card p { margin: 0; }
.rf-card__for, .col-card__for { font-weight: 600; }
.rf-card__why { color: var(--text-2); }
.rf-card__say, .col-card__next { display: flex; gap: 6px; align-items: flex-start; font-size: .88rem; color: var(--text-2); padding-top: 6px; border-top: 1px dashed var(--line); }
.rf-card--completed { border-inline-start: 4px solid var(--ok); }
.rf-card--requested, .rf-card--approved, .rf-card--processing { border-inline-start: 4px solid var(--warn, #c98a00); }
.rf-card--rejected, .rf-card--failed { border-inline-start: 4px solid var(--danger); }
.rf-chip--requested, .rf-chip--approved, .rf-chip--processing { background: #f7e8c9; color: #6b4e10; }
.rf-chip--completed { background: #d6f5e3; color: #0e5b33; }
.rf-chip--rejected, .rf-chip--failed { background: #fde0e1; color: #8c1d22; }
.rf-chip--cancelled { background: var(--surface-3); color: var(--text-2); }
[data-theme='dark'] .rf-chip--requested, [data-theme='dark'] .rf-chip--approved, [data-theme='dark'] .rf-chip--processing { background: #4a3a17; color: #ffd98a; }
[data-theme='dark'] .rf-chip--completed { background: #123d27; color: #8ff0b8; }
[data-theme='dark'] .rf-chip--rejected, [data-theme='dark'] .rf-chip--failed { background: #4a1b1d; color: #ffb3b6; }

/* ---------- money today ---------- */
.col-day { max-width: 190px; }
.col-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 16px; }
.col-box { padding: 14px; border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.col-box h2 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1rem; font-family: var(--font-display); }
.col-box dl { margin: 0; display: grid; }
.col-box dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.col-box dl > div:first-child { border-top: 0; }
.col-box dt { color: var(--text-2); font-size: .9rem; }
.col-box dd { margin: 0; font-weight: 700; text-align: end; }
.col-box dd small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.col-box .is-strong dd { font-size: 1.15rem; font-family: var(--font-display); }
.col-box--cash { border-top: 4px solid var(--ok); }
.col-box--ip { border-top: 4px solid #5c2d91; }
.col-box--due { border-top: 4px solid var(--warn, #c98a00); }
.col-box--rf { border-top: 4px solid var(--danger); }
.col-intents, .col-held, .col-hlist { list-style: none; margin: 0; padding: 0; display: grid; }
.col-intents li, .col-held li, .col-hlist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.col-intents li span, .col-hlist li > span:first-child { display: grid; gap: 2px; }
.col-intents small, .col-hlist small { color: var(--muted); }
.col-hand { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: end; margin: 10px 0; }
.col-card__dl { margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.col-card__dl > div { display: flex; gap: 8px; justify-content: space-between; }
.col-card__dl dt { color: var(--muted); }
.col-card__dl dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.pp-instr { margin: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); white-space: pre-line; font-size: .92rem; }

/* ---------- money report ---------- */
.rep-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 10px 0; }
.rep-box { border: 1px solid var(--line-2); padding: 12px; display: grid; align-content: start; background: var(--surface); }
.rep-box h3 { margin: 0 0 6px; font-size: .95rem; font-family: var(--font-display); }
.rep-box--in { border-top: 4px solid var(--ok); }
.rep-box--wait { border-top: 4px solid var(--warn, #c98a00); }
.rep-box--disc { border-top: 4px solid var(--danger); }
.rep-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.rep-line:first-of-type { border-top: 0; }
.rep-line span { color: var(--text-2); }
.rep-line.is-strong b { font-size: 1.05rem; }
.rep-line.is-total { border-top: 2px solid var(--text); }
.rep-line.is-total b { font-size: 1.2rem; font-family: var(--font-display); }
.rep-warn { border: 1px solid var(--warn, #c98a00); background: #fff7e6; padding: 10px 12px; margin: 10px 0; }
[data-theme='dark'] .rep-warn { background: #2e2410; }
.rep-warn ul { margin: 6px 0 0; padding-inline-start: 20px; }
.rep-more summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.rep-table td, .rep-table th { white-space: nowrap; }

/* ---------------- offers (Site settings) ---------------- */
.of-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.of-item { padding: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.of-item.is-editing { border-color: var(--line-2); background: var(--surface-2); }
.of-item__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.of-item__what, .of-item p { margin: 0; }
.of-preview { margin: 0; padding: 8px 10px; background: var(--surface-2); border-inline-start: 3px solid var(--ok); font-size: .9rem; }
.of-form { display: grid; gap: 12px; }
.pp-sum__row.is-offer b { color: var(--ok); }
.cash-offer { color: var(--ok); }

/* ---------------- points ledger ---------------- */
.pt-preview { margin: 8px 0 0; padding: 8px 10px; background: var(--surface-2); border-inline-start: 3px solid var(--ok); }
.pt-lines { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.pt-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pt-lines li > small { grid-column: 2; }
.pt-lines li span { display: grid; gap: 2px; }
.pt-delta { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.pt-delta.is-plus { color: var(--ok); }
.pt-delta.is-minus { color: var(--text-2); }
.pt-history { margin-top: 8px; }
.pt-history summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
#ptAdjust { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }

/* ---------------- attendance ---------------- */
.ac-sessions li.ac-today { padding-block: 12px; }
.ac-sessions li.ac-today .btn { min-height: 48px; }
.roll__pending { display: inline-block; font-size: .72rem; padding: 1px 6px; border: 1px dashed var(--line-2); color: var(--text-2); }
.roll__warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; background: var(--surface-2); border-inline-start: 4px solid var(--warn, #c98a00); }
.roll__warn.is-bad { border-inline-start-color: var(--danger); }

/* ---------------- account menu (portal + dashboard header) ---------------- */
.acct { position: relative; }
.acct[hidden] { display: none; }
.acct__btn { position: relative; }
.acct__initial { position: absolute; inset-block-end: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: .64rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.acct__menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 80; min-width: 260px; max-width: min(320px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); padding: 6px; display: grid; }
.acct__menu[hidden] { display: none; }
.acct__who { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct__who span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.acct__who small { color: var(--muted); font-size: .75rem; }
.acct__menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; color: inherit; text-decoration: none; }
.acct__menu a:hover, .acct__menu a:focus-visible { background: var(--surface-2); outline: none; }
.acct__out { color: var(--danger) !important; }
/* the menu has Sign out, so the separate icon is not needed next to it */
.has-acct #signOutBtn { display: none !important; }

/* ---------------- proof review ---------------- */
.rv-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .rv-grid { grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.1fr); align-items: start; } }
.rv-photo-box { min-height: 220px; display: grid; place-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); text-align: center; }
.rv-photo-box[data-state='ok'] { border-style: solid; padding: 0; }
.rv-photo-box[data-state='error'] { border-color: var(--danger); }
.rv-photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.rv-photo-btn img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #111; }
.rv-zoom { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .8rem; }
.rv-proof-err { display: grid; gap: 6px; justify-items: center; color: var(--danger); }
.rv-proof-err p { margin: 0; color: var(--text-2); max-width: 36ch; }
.rv-facts { display: grid; gap: 12px; }
.rv-money .pp-sum__row.is-bad b { color: var(--danger); }
.rv-checks { border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 10px; }
.rv-checks .ac-check { align-items: flex-start; min-height: 44px; }
.rv-checks input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.rv-lock { display: flex; gap: 6px; margin: 0; font-size: .88rem; color: var(--text-2); }
.rv-lock.is-bad { color: var(--danger); }
.rv-lock[hidden] { display: none; }
.rv-no { border-top: 1px solid var(--line); padding-top: 8px; }
.rv-no summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.proof-viewer { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: grid; grid-template-rows: auto 1fr; }
.proof-viewer[hidden] { display: none; }
.proof-viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; }
.proof-viewer__bar .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .4); }
.proof-viewer__stage { overflow: auto; display: grid; place-items: center; }
.proof-viewer__stage img { max-width: 100%; max-height: calc(100vh - 70px); cursor: zoom-in; }
.proof-viewer__stage img.is-zoomed { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }

/* ---------------- attendance checklist ---------------- */
.roll__row { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.roll__cb { width: 30px; height: 30px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.roll__row.is-locked .roll__cb { cursor: default; }
.roll__who { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; min-width: 0; }
.roll__name { display: grid; gap: 2px; min-width: 0; }
.roll__name b { overflow-wrap: anywhere; }
.roll__st { color: var(--muted); }
.roll__row.is-present .roll__st { color: var(--ok); font-weight: 600; }
.roll__side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.roll__side .roll__more { position: relative; }
.roll__side .roll__more summary { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); cursor: pointer; }
.roll__side .roll__more[open] { grid-column: 1 / -1; flex-basis: 100%; }
.roll__meta { margin: 4px 0 0; color: var(--text-2); }
.roll__draft { margin: 6px 0 0; font-size: .85rem; color: var(--muted); display: flex; gap: 6px; align-items: center; min-height: 1.2em; }
.roll__draft[data-state='failed'] { color: var(--danger); }
.roll__draft[data-state='saved'] { color: var(--ok); }
@media (max-width: 560px) { .roll__row { grid-template-columns: auto 1fr; } .roll__side { grid-column: 1 / -1; justify-content: flex-start; } }
.pp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-quick__b { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-align: start; cursor: pointer; min-height: 56px; }
.pp-quick__b[aria-pressed='true'] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pp-quick__b small { color: var(--muted); }
.pp-after { margin: 0; font-size: .9rem; }

/* ---------------- dashboard: booking payment cell ---------------- */
.bp summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 36px; }
.bp__dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 8px 0; font-size: .86rem; }
.bp__dl div { display: contents; }
.bp__dl dt { color: var(--muted); }
.bp__dl dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.bp__list { margin: 0; padding-inline-start: 18px; font-size: .82rem; display: grid; gap: 4px; }
.pay-pill { display: inline-block; padding: 2px 8px; font-size: .74rem; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
.pay-pill--ok { border-color: var(--ok); color: var(--ok); }
.pay-pill--part { border-color: #b7791f; color: #b7791f; }
.pay-pill--wait { border-color: #2f6fb5; color: #2f6fb5; }
.pay-pill--warn { border-color: var(--danger); color: var(--danger); }
.bp-cell { min-width: 170px; }
.rf-trail { margin: 6px 0; padding-inline-start: 18px; font-size: .82rem; color: var(--text-2); display: grid; gap: 2px; }
.rep-line--link { width: 100%; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; }
.rep-line--link:hover b, .rep-line--link:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- today's work ---------------- */
.today-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.today-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.today-tile > b { grid-row: 1 / 3; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; }
.today-tile > span { display: grid; font-weight: 600; }
.today-tile small { font-weight: 400; color: var(--muted); }
.today-tile .btn { justify-self: start; }
.today-tile.is-hot { border-inline-start: 4px solid var(--primary); }
.today-tile.is-zero { opacity: .7; }
.today-tile.is-zero > b { color: var(--muted); }

/* ---------------- desktop comfort ---------------- */
.cust-cell { display: grid; gap: 2px; min-width: 160px; }
.cust-cell a, .cust-cell span { font-size: .84rem; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 1439px) { .col-wide { display: none; } }
/* readable line length for help text on wide screens */
#acMain .hint, #acMain .muted, #acMain .pp-note, .dash .muted, .view-head p { max-width: 80ch; }
/* very wide screens: keep the working area at a readable width instead of stretching forms and lists */
@media (min-width: 1600px) { #acMain > * { max-width: 1480px; } }
@media (min-width: 1600px) { #dashMain > * { max-width: 1480px; } }
.when-cell { display: grid; gap: 2px; min-width: 120px; }

/* Site settings → payment rules table: never wider than the phone */
.ss-pay-rules { border: 0; padding: 0; margin: 0; min-width: 0; }
.ss-pay-table { width: 100%; }
.ss-pay-table th, .ss-pay-table td { white-space: normal; vertical-align: middle; }
.ss-pay-table .money-input { width: 5.5rem; max-width: 100%; }
.ss-pay-table .money-input input { width: 100%; min-width: 0; }

/* ---------------- coach Attendance page: one table row per player ---------------- */
.att-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.att-pick__fixed { display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.att-wrap { border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.att-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.att-table thead th { text-align: start; font-size: .78rem; font-weight: 800; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.att-table th.roll__tickcell { width: 92px; text-align: center; }
.att-table th:last-child { width: 34%; }
.att-table .roll__row { display: table-row !important; border: 0; padding: 0; border-radius: 0; background: transparent; }
.att-table .roll__row > td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.att-table .roll__row:last-child > td { border-bottom: 0; }
.att-table .roll__row > td:first-child { border-inline-start: 5px solid var(--line-2); }
.att-table .roll__row.is-present > td { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.att-table .roll__row.is-present > td:first-child { border-inline-start-color: var(--ok); }
.att-table .roll__row.is-absent > td { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.att-table .roll__row.is-absent > td:first-child { border-inline-start-color: var(--danger); }
.att-table .roll__row.is-excused > td { background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.att-table .roll__row.is-excused > td:first-child { border-inline-start-color: var(--warn); }
.att-table .roll__row[hidden] { display: none !important; }
.att-table .roll__who { min-height: 48px; }
.att-table .roll__side { justify-content: flex-start; margin-top: 4px; }
.att-table .roll__side .roll__more[open] .roll__fields { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.roll__tickcell { text-align: center; }
.att-table .roll__cb { width: 36px; height: 36px; }
.att-notice { display: grid; gap: 4px; justify-items: start; font-size: .86rem; }
.att-notice b { font-weight: 700; line-height: 1.25; }
.att-notice.is-clash { padding: 6px 8px; border: 1px dashed var(--warn); }
.att-clash { color: var(--warn); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.att-none { font-size: .9rem; }
@media (max-width: 640px) {
  .att-pick { grid-template-columns: 1fr 1fr; padding: 10px; }
  .att-table th.roll__tickcell { width: 64px; }
  .att-table th:last-child { width: 30%; }
  .att-table .roll__row > td { padding: 8px 6px; }
  .att-table .roll__who .ph { display: none; }
  .att-table .roll__cb { width: 34px; height: 34px; }
  .att-notice { font-size: .78rem; }
  .att-notice .btn { min-height: 34px; padding: 0 8px; }
}

/* ---------------- Daily finance: awaiting verification ---------------- */
.fp-card .card__title { color: var(--warn, #d48a00); }
.fp-table td { vertical-align: top; }
.fp-col-proof { width: 92px; }
.fp-thumb { position: relative; display: grid; place-items: center; width: 76px; height: 96px; padding: 0; border: 1px solid var(--line-2); background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-thumb.is-none { cursor: default; font-size: .75rem; color: var(--muted); text-align: center; padding: 4px; }
.fp-thumb__state { position: absolute; inset-inline-end: 3px; bottom: 3px; display: inline-flex; gap: 3px; align-items: center; font-size: .68rem; padding: 2px 4px; background: rgba(0, 0, 0, .55); color: #fff; }
.fp-thumb__state.is-bad { position: static; background: none; color: var(--danger); font-weight: 700; white-space: normal; }
.fp-money dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 0; font-size: .86rem; }
.fp-money dl div { display: contents; }
.fp-money dt { color: var(--muted); }
.fp-money dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.fp-money .is-strong dt, .fp-money .is-strong dd { color: var(--text); font-weight: 800; }
.fp-when { white-space: nowrap; font-size: .86rem; display: table-cell; }
.fp-when small { display: inline-block; margin-top: 4px; }
.fp-noaccess { margin: 0 0 14px; }
@media (max-width: 760px) {
  .fp-table thead { display: none; }
  .fp-table, .fp-table tbody, .fp-table tr, .fp-table td { display: block; width: 100%; }
  .fp-table tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fp-table td { padding: 0; border: 0; }
  .fp-table td.fp-col-proof { grid-row: span 3; }
  .fp-table td:last-child .btn { width: 100%; min-height: 44px; }
  .fp-table td:last-child { grid-column: 1 / -1; }
}

/* ---------------- absence notices (parent + coach dialog) ---------------- */
.abs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.abs-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.abs-list li > div:first-child { display: grid; gap: 3px; min-width: 0; }
.abs-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
.abs-dl div { display: contents; } .abs-dl dt { color: var(--muted); } .abs-dl dd { margin: 0; }
.abs-msg { padding: 10px 12px; background: var(--surface-2); border-inline-start: 3px solid var(--line-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.abs-report { display: grid; gap: 8px; justify-items: start; margin: 12px 0; }
.abs-img { max-width: 100%; max-height: 60vh; border: 1px solid var(--line); }
.abs-file input[type=file] { min-height: 44px; }

/* ---------------- WhatsApp reminders ---------------- */
.wa-consent h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.wa-consent__state { font-weight: 700; color: var(--muted); margin: 6px 0; }
.wa-consent__state.is-on { color: var(--ok); }
.wa-consent__switch { font-weight: 700; }
#waConsentBox { padding: 16px; }
.wa-status { list-style: none; margin: 0 0 12px; padding: 12px; display: grid; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.wa-status li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wa-status li.is-ok { color: var(--ok); } .wa-status li.is-bad { color: var(--danger); font-weight: 600; }
.wa-status small { flex-basis: 100%; }
.wa-actions { flex-wrap: wrap; margin-bottom: 6px; }
.wa-result { min-height: 1.2em; margin: 4px 0 12px; font-weight: 600; }
.wa-result.is-bad { color: var(--danger); }
.wa-test { padding: 12px; border: 1px dashed var(--line-2); display: grid; gap: 8px; }
.wa-tpl pre { white-space: pre-wrap; font-size: .82rem; background: var(--surface-2); padding: 10px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.wa-err { color: var(--danger); overflow-wrap: anywhere; }
.wa-table td { vertical-align: top; }
.pp-done--bad > svg, .pp-done--bad > [data-icon] { color: var(--danger); }

/* offers / discount codes */
.of-form:not(:has(input[name=type][value=price]:checked)) [data-of-for=price] { display: none; }
.of-form:has(input[name=type][value=price]:checked) [data-of-for=value] { display: none; }
.of-price { border: 1px dashed var(--line-2); padding: 12px; margin: 0; min-width: 0; }
.of-item code, .pp-code code { font-weight: 800; letter-spacing: .04em; }
.pp-code { margin: 12px 0; padding: 12px; border: 1px dashed var(--line-2); }
.pp-code__row { display: flex; gap: 8px; align-items: stretch; }
.pp-code__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.pp-code__ok { color: var(--ok); font-weight: 700; }

/* ---------------- club competitions ---------------- */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cp-card__head, .cp-team__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-subnav { margin: 0 0 14px; gap: 6px; }
.cp-subnav .seg__btn { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.cp-subnav .seg__btn.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cp-missing { padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.cp-missing.is-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.cp-missing ul { margin: 6px 0 0; padding-inline-start: 20px; }
.cp-prize-row { align-items: center; }
.cp-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.cp-facts div { display: grid; gap: 2px; } .cp-facts dt { color: var(--muted); font-size: .82rem; } .cp-facts dd { margin: 0; }
.cp-prizes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.cp-prizes li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cp-team { padding: 12px; border: 1px solid var(--line); background: var(--surface-2); margin: 10px 0; display: grid; gap: 8px; }
.cp-pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-hist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; font-size: .86rem; }
.cp-hist li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.cp-fxlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cp-fxlist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); }
.cp-score { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-score input[name=h], .cp-score input[name=a] { width: 3.2rem; min-height: 40px; text-align: center; }
.cp-gen { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.cp-gen.is-bad { border-color: var(--danger); }
.cp-fx tr.is-off { opacity: .55; }
.cp-table td, .cp-table th { white-space: nowrap; }
.cp-table td:nth-child(2), .cp-table th:nth-child(2) { white-space: normal; }
.cp-homelink { margin: 18px 0 0; text-align: center; }
.cp-page .cup-card h3 { margin: 16px 0 8px; }
.cp-pubcard { margin: 0 0 16px; }
.cp-page .cup-wrap { grid-template-columns: minmax(0, 1fr); } .cp-page .cup-wrap > *, .cp-page .cup-card > * { min-width: 0; } .cp-page .cup-hero { padding-inline: 0; }
.ss-pay-rules .table-wrap { overflow-x: auto; max-width: 100%; }
.ss-pay-table { table-layout: fixed; }
.ss-pay-table th, .ss-pay-table td { overflow-wrap: anywhere; padding-inline: 6px; }
.ss-pay-table th:first-child { width: 40%; }
.ss-pay-table .money-input { width: 100%; max-width: 5.5rem; }
.btn.btn--wrap { white-space: normal; height: auto; min-height: 40px; max-width: 100%; text-align: start; line-height: 1.3; padding-block: 8px; }
.cp-homelink .btn { justify-content: center; text-align: center; }

/* ---- 4-digit cash code (customer) ---- */
.pp-cashcode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; padding: 10px 12px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border: 1.5px solid var(--primary); }
.pp-cashcode > span { flex: 1 1 180px; font-size: .9rem; color: var(--text-2); }
.pp-cashcode__n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; letter-spacing: .22em; color: var(--text); }
.pp-cashcode--big { justify-content: center; text-align: center; margin: 12px 0; padding: 16px; }
.pp-cashcode--big > span { flex-basis: 100%; }
.pp-cashcode--big .pp-cashcode__n { font-size: 2.6rem; }
.pp-cashcode--big small { flex-basis: 100%; color: var(--muted); }
/* ---- cashier: find by code + earlier payments ---- */
.cash-code { margin-bottom: 16px; }
.cash-code__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cash-code__in { flex: 0 1 180px; min-width: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: .3em; text-align: center; }
.cash-hist { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface-2); }
.cash-hist ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cash-hist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cash-hist li > span:first-child { flex: 1 1 160px; font-size: .88rem; color: var(--text-2); }
.ss-pay-table--wide th, .ss-pay-table--wide td { white-space: nowrap; }
.ss-pay-table--wide .money-input input { width: 6.5em; }
.rf-window { margin-top: -4px; }

/* finance: money by area */
.fin-areas__seg { margin: 4px 0 12px; flex-wrap: wrap; }
.fin-areas__t th[scope=row] { text-align: start; font-weight: 600; }
.fin-areas__t tr.is-on { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.fin-areas__all th, .fin-areas__all td { border-top: 2px solid var(--line-2); }
.report-card__areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.report-card__areas dt { font-size: .8rem; opacity: .8; }
.report-card__areas dd { margin: 0; font-weight: 600; }

/* ---------- launch polish: phones & touch ---------- */
/* iPhone zooms into any field under 16px; keep fields at 16px on small screens */
@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .input { font-size: 16px !important; }
}
/* comfortable finger targets on touch screens (no change to the look on desktop) */
@media (max-width: 760px), (pointer: coarse) {
  .link-arrow, .tile__foot > a, .tile__foot > button, button.link, .mo-credit__by, .academy__join a, .sec a.link-arrow { min-height: 40px; display: inline-flex; align-items: center; }
  .mo-credit__by { padding: 6px 4px; }
  input[type=checkbox], input[type=radio] { min-width: 20px; min-height: 20px; }
  .ac-check, .seg__opt { min-height: 40px; }
}
/* smoother scrolling + no blue flash when tapping */
html { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- test mode bar + new-version bar ---------- */
.vsc-testbar { position: sticky; top: 0; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 8px 16px; background: repeating-linear-gradient(135deg, #b3261e 0 14px, #9c1f18 14px 28px); color: #fff; text-align: center; }
.vsc-testbar__t { font-weight: 800; letter-spacing: .08em; }
.vsc-testbar__u { opacity: .9; }
.vsc-testbar__x { background: #fff; color: #b3261e; border-color: #fff; }
.vsc-testbar__x:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.vsc-newver { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9998; margin: 0 auto; max-width: 520px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface, #fff); color: var(--text, #111); border: 1px solid var(--line-2, #ccc); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
@media (max-width: 760px) { .vsc-newver { bottom: calc(84px + env(safe-area-inset-bottom)); } }
/* role-testing forms on phones: never wider than the screen */
.ss-role, .ss-role > * { min-width: 0; max-width: 100%; }
.ss-role b { overflow-wrap: anywhere; }
.ss-role__pick { flex-wrap: wrap; }
.ss-role__pick.seg { display: flex; flex-wrap: wrap; height: auto; }

.pp-cashchosen { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.pp-cashchosen p { margin: 0 0 6px; }
