/* =====================================================================
   XARENA — player pages: auth, dashboard, booking details, about, contact
   Builds on tokens + components from app.css.
   The player area (dashboard + booking page) is written phone first: the
   base rules are the 360–390 px layout, wider screens come in min-width
   blocks. Colours are tokens only, so both themes follow.
   ===================================================================== */

/* ---------- Small shared utilities ---------- */
.text-white { color: var(--hi); }
.d-block { display: block; }
.alert { margin-bottom: 12px; }
.alert .alert-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert a { word-break: break-all; }
.input-action svg { width: 18px; height: 18px; }
.input-action.is-on { color: var(--blue-2); }
.field.is-valid .input { border-color: var(--green); }
.field-error:empty { display: none; }
.form-grid { gap: 16px; margin-top: 16px; }
.form-grid:first-child { margin-top: 0; }
.form-grid > .field + .field { margin-top: 0; }
.form-grid + .field, .field + .form-grid { margin-top: 16px; }
.form-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blue); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: 0; font-family: var(--font-body); }
.dash-text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--blue-2); white-space: nowrap; transition: color 0.2s, opacity 0.2s; }
.dash-text-btn:hover { color: var(--hi); }
.dash-text-btn[disabled] { opacity: 0.35; pointer-events: none; }
.link svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }

/* WhatsApp keeps its own green; a plain .btn hover would wash it with the brand fill */
.btn-wa { --btn-bg: #25d366; --btn-fg: #04130a; --btn-bd: transparent; }
.btn-wa::after { background: #2fe176; }
.btn-wa:hover { color: var(--btn-fg); border-color: transparent; box-shadow: none; }

/* ---------- Auth ---------- */
.page-auth .auth-visual { padding-top: calc(var(--nav-h) + 48px); min-height: 100vh; }
.auth-visual .court-lines { width: 100%; height: 100%; opacity: 0.5; }
.auth-visual .cl-ball { animation: cl-bounce 5s var(--ease-in-out) infinite; transform-origin: center; }
.auth-visual .cl-trail { stroke-dashoffset: 0; animation: cl-dash 12s linear infinite; }
@keyframes cl-bounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 120px); } }
@keyframes cl-dash { to { stroke-dashoffset: -240; } }
.auth-visual-glow { position: absolute; width: 520px; height: 520px; inset-inline-start: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--blue-rgb), 0.35), transparent 65%); filter: blur(10px); pointer-events: none; }
.auth-visual-copy { position: relative; z-index: 1; }
.auth-visual h2 { line-height: 0.9; letter-spacing: -0.035em; font-stretch: 118%; }
.auth-visual-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-visual-meta span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.04); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.auth-visual-meta svg { width: 16px; height: 16px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .auth-visual .cl-ball, .auth-visual .cl-trail { animation: none; } }

.auth-card .muted strong { color: var(--hi); }
.auth-form .field + .field { margin-top: 18px; }
.auth-mini-link { font-size: 13.5px; font-weight: 600; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), 0.02); color: var(--muted); font-size: 13.5px; }
.auth-note svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 1px; }
.auth-terms { margin: 16px 0 0; color: var(--dim); font-size: 12.5px; text-align: center; line-height: 1.6; }
.auth-sent-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-2); border: 1px solid rgba(var(--blue-rgb), 0.3); box-shadow: var(--shadow-blue); animation: pop-in 0.7s var(--ease) both; }
.auth-sent-icon svg { width: 30px; height: 30px; }
.auth-sent-icon.is-error { background: var(--red-soft); color: var(--red-2); border-color: var(--red); box-shadow: none; }
.auth-card > .eyebrow.mt-3 { display: flex; }
.debug-link { word-break: break-all; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } }

.strength { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-bar span { height: 4px; border-radius: 4px; background: rgba(var(--ink), 0.08); transition: background 0.3s var(--ease); }
.strength[data-score="0"] .strength-bar span:nth-child(-n+1) { background: var(--red); }
.strength[data-score="1"] .strength-bar span:nth-child(-n+1) { background: var(--red); }
.strength[data-score="2"] .strength-bar span:nth-child(-n+2) { background: var(--amber); }
.strength[data-score="3"] .strength-bar span:nth-child(-n+3) { background: var(--blue-2); }
.strength[data-score="4"] .strength-bar span:nth-child(-n+4) { background: var(--green); }
.strength[data-score="0"] .strength-label, .strength[data-score="1"] .strength-label { color: var(--red-2); }
.strength[data-score="4"] .strength-label { color: var(--green); }

/* =====================================================================
   Player area — shell
   --d-panel / --d-panel-2: card surfaces (the light palette has --surface,
   the dark one does not, hence the fallbacks) · --d-top: height of the
   solid nav · --d-dock: room the phone sport dock takes at the bottom.
   ===================================================================== */
.dash, .info-page, .booking-page { position: relative; overflow-x: clip; }
.dash, .booking-page {
  --d-panel: var(--surface, var(--bg-1));
  --d-panel-2: var(--surface-2, var(--bg-2));
  --d-top: var(--nav-solid, 72px);
  --d-dock: 76px;
  --tk-pad: 16px;
}
.page.dash, .page.booking-page { padding-top: calc(var(--d-top) + 16px); padding-bottom: 40px; }
/* a wash of the two brand colours behind the top of the page */
.dash-glow { position: absolute; inset-inline: 0; top: 0; height: 340px; background: var(--brand-grad-soft); opacity: 0.6; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.booking-page.is-padel .dash-glow, .booking-page.is-football .dash-glow { background: var(--sport-soft); }
.dash > .container, .info-page > .container, .booking-page > .container { position: relative; z-index: 1; }

/* readable sizes for the small type of the design system inside the player area */
.dash .eyebrow, .booking-page .eyebrow { font-size: 12.5px; letter-spacing: 0.12em; }
.dash .label, .booking-page .label, .info-page .label { font-size: 12.5px; letter-spacing: 0.06em; }
.dash .badge, .booking-page .badge { height: 24px; padding: 0 9px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
.dash .sport-chip, .booking-page .sport-chip { font-size: 12.5px; letter-spacing: 0.01em; text-transform: none; }
.dash .btn, .booking-page .btn { font-size: 13px; letter-spacing: 0.06em; }
.dash .btn-sm, .booking-page .btn-sm { height: 44px; font-size: 12.5px; }
.dash .btn-lg, .booking-page .btn-lg { font-size: 14px; }

/* ---------- Page header ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dash-head-text { min-width: 0; }
.dash-head .eyebrow { margin-bottom: 6px; font-size: 13.5px; letter-spacing: 0.02em; text-transform: none; }
.dash-title { font-size: clamp(1.55rem, 6.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dash-title b { font-weight: inherit; color: var(--brand-blue); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dash-title b { background: var(--brand-flow, var(--brand-grad)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.dash-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.dash-avatar { flex: none; padding: 2px; border-radius: 50%; background: var(--brand-grad); }
.dash-avatar .avatar { width: 52px; height: 52px; font-size: 17px; border: 2px solid var(--bg); }
.dash-head-cta { flex: none; }
.dash-head-cta svg { width: 16px; height: 16px; }

/* header numbers (loyalty) */
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dash-kpis > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--d-panel); min-width: 0; }
.dash-kpis strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--hi); overflow-wrap: anywhere; }
.dash-kpis span { font-size: 12.5px; color: var(--muted); }

/* ---------- Section navigation: scrolling tabs ---------- */
.dash-subnav { margin: 0 calc(-1 * var(--gutter)) 16px; border-bottom: 1px solid var(--line); }
:root[data-theme] .dash-subnav { background: transparent; }
.dash-subnav-track { display: flex; gap: 2px; padding: 0 calc(var(--gutter) - 10px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.dash-subnav-track::-webkit-scrollbar { display: none; }
.dash-subnav-track a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; scroll-snap-align: center; transition: color 0.2s; }
.dash-subnav-track a svg { width: 18px; height: 18px; flex: none; }
.dash-subnav-track a::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-flow, var(--brand-grad)); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.dash-subnav-track a:hover { color: var(--hi); }
.dash-subnav-track a.is-active { color: var(--hi); }
.dash-subnav-track a.is-active svg { color: var(--brand-blue); }
.dash-subnav-track a.is-active::after { transform: scaleX(1); }

/* ---------- Layout ---------- */
/* On phones the two columns dissolve and every block takes its place from --o,
   so the page reads: ticket, actions, numbers, teams, loyalty, bookings, the rest. */
.dash-grid { display: flex; flex-direction: column; gap: 14px; }
.dash-grid > .dash-main, .dash-grid > .dash-aside { display: contents; }
.dash-grid > * > * { order: var(--o, 0); min-width: 0; }

/* ---------- Cards ---------- */
.dash-card { padding: 16px; border-radius: var(--r-xl); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.dash-h3 > svg { width: 18px; height: 18px; color: var(--brand-blue); flex: none; }
.dash-card > .muted { font-size: 14px; margin: 8px 0 12px; }

/* ---------- Ticket pieces (next booking + the booking page) ---------- */
.tk { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: var(--d-panel); padding: var(--tk-pad); padding-top: calc(var(--tk-pad) + 4px); }
.tk::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--sport, var(--brand-flow, var(--brand-grad))); }
.next-card { background: linear-gradient(135deg, var(--sport-soft, transparent) 0%, transparent 60%), var(--d-panel); border-color: var(--sport-line, var(--line-2)); }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.tk-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--sport-2, var(--blue-2)); }
.pulse-dot { width: 8px; height: 8px; margin-inline: 3px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.8s ease-out infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.tk-who { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0; }
.tk-who > div { min-width: 0; }
.tk-who .sport-icon { width: 48px; height: 48px; background: var(--sport-soft); color: var(--sport-2); }
.tk-who .sport-icon svg { width: 24px; height: 24px; }
.tk-venue { font-size: clamp(1.25rem, 5.4vw, 1.85rem); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tk-court { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.tk-when { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1px; margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.tk-cell { padding: 12px; background: var(--d-panel-2); min-width: 0; }
.tk-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.tk-cell strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--hi); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tk-cell small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tk-count { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--sport-soft, var(--blue-soft)); color: var(--sport-2, var(--blue-2)); font-size: 14px; font-weight: 600; }
.tk-count svg { width: 16px; height: 16px; flex: none; }
.tk-count strong { margin-inline-start: auto; font-size: 16px; color: var(--hi); font-variant-numeric: tabular-nums; }
.tk-count.is-soon { background: var(--amber-soft); color: var(--amber); }
.tk-count.is-live { background: var(--green-soft); color: var(--green); }
.tk-cut { position: relative; height: 0; margin: 16px calc(-1 * var(--tk-pad)); border-top: 2px dashed var(--line-2); }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.tk-cut::before { inset-inline-start: -11px; }
.tk-cut::after { inset-inline-end: -11px; }
.tk-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.tk-foot strong { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--hi); font-variant-numeric: tabular-nums; }
.tk-foot > div:last-child { text-align: end; }
.tk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-top: 14px; }
.tk-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 10px 8px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(var(--ink), 0.04); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.tk-act svg { width: 20px; height: 20px; flex: none; }
.tk-act:hover { border-color: var(--sport-line, var(--brand-line)); background: rgba(var(--ink), 0.08); }
.tk-act:active { transform: scale(0.98); }
.tk-act.is-main { background: var(--hi); border-color: transparent; color: var(--bg); }
.tk-act.is-brand { background: var(--brand-grad); background-origin: border-box; border-color: transparent; color: var(--on-brand); }
.tk-act.is-wa svg { color: #25d366; }
:root[data-theme="light"] .tk-act.is-wa svg { color: #128c4a; }
.tk-more { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 12px; }
.tk-more .btn { flex: 1 1 auto; }
.tk-hint { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tk-hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold); }
.tk-hint .link { display: inline-block; margin-block: -13px; padding-block: 13px; white-space: nowrap; }
.tk-sublink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 13.5px; }

/* nothing booked yet */
.next-empty { display: flex; align-items: flex-start; gap: 14px; }
.next-empty-icon { flex: none; width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand-blue); border: 1px solid var(--brand-line); }
.next-empty-icon svg { width: 22px; height: 22px; }
.next-empty h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.next-empty p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Quick actions ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qa-main { grid-column: 1 / -1; height: 56px; justify-content: space-between; padding: 0 20px; border-radius: var(--r-xl); }
.dash .qa-main { font-size: 14.5px; }
.qa-main > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qa-sport { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: var(--r-xl); border: 1px solid var(--sport-line); background: var(--sport-soft); min-width: 0; transition: border-color 0.2s, transform 0.3s var(--ease); }
.qa-sport:hover { border-color: var(--sport); }
.qa-sport:active { transform: scale(0.98); }
.qa-sport svg { width: 24px; height: 24px; flex: none; color: var(--sport-2); }
.qa-sport strong { font-size: 14.5px; line-height: 1.3; color: var(--hi); overflow-wrap: anywhere; }

/* ---------- Numbers ---------- */
.dstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dstat { display: grid; align-content: start; gap: 2px; padding: 14px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--d-panel); min-width: 0; }
.dstat-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dstat-label svg { width: 15px; height: 15px; flex: none; color: var(--brand-blue); }
.dstat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--hi); font-variant-numeric: tabular-nums; }
.dstat-text { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--hi); overflow-wrap: anywhere; }
.dstat small { font-size: 13px; color: var(--dim); }
.dstat-wide { grid-column: 1 / -1; }
.dstat-wide .dstat-label svg { color: var(--gold); }

/* ---------- Bookings panel ---------- */
.dash-section { min-width: 0; }
.dash-section-head { display: grid; gap: 10px; margin-bottom: 12px; }
.dash-section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.dash-tabs { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--d-panel); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; scroll-snap-align: center; transition: color 0.2s, border-color 0.2s; }
.dash-tabs button:hover { color: var(--hi); }
.dash-tabs button.is-active { background: var(--brand-grad); background-origin: border-box; border-color: transparent; color: var(--on-brand); }
.dash-tabs .count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(var(--ink), 0.08); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dash-tabs .is-active .count { background: var(--on-brand); color: var(--brand-green); }

.bk-list { display: grid; gap: 10px; min-height: 120px; }
.bk-group { display: flex; align-items: center; gap: 10px; margin: 8px 2px 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
.bk-group:first-child { margin-top: 0; }
.bk-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.bk-card { position: relative; display: grid; gap: 12px; padding: 14px; border-radius: var(--r-xl); border: 1px solid var(--line); border-inline-start: 4px solid var(--sport, var(--line-2)); background: var(--d-panel); min-width: 0; transition: border-color 0.25s, background 0.25s, opacity 0.35s, transform 0.35s var(--ease); }
.bk-card:hover { border-color: var(--sport-line, var(--line-2)); border-inline-start-color: var(--sport, var(--line-2)); background: var(--d-panel-2); }
.bk-card.is-new { animation: card-in 0.5s var(--ease) both; }
.bk-card.is-leaving { opacity: 0; transform: scale(0.97); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.bk-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bk-link:focus-visible { outline-offset: 2px; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bk-when { min-width: 0; font-size: 13.5px; color: var(--muted); }
.bk-when b { font-weight: 700; color: var(--hi); }
.bk-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.bk-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.bk-pay { background: rgba(var(--ink), 0.05); color: var(--muted); border-color: var(--line); }
.bk-pay-paid { background: var(--green-soft); color: var(--green); border-color: transparent; }
.bk-pay-pending { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.bk-body { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.bk-body .sport-icon { width: 42px; height: 42px; background: var(--sport-soft); color: var(--sport-2); }
.bk-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bk-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hi); font-variant-numeric: tabular-nums; }
.bk-time span { white-space: nowrap; }
.bk-time small { margin-inline-start: 3px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bk-court { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bk-sub { margin: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.bk-price { flex: none; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--hi); white-space: nowrap; }
.bk-ref { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.bk-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; min-width: 0; }
.bk-actions .btn { height: 44px; padding: 0 14px; }
.bk-actions .btn svg { width: 16px; height: 16px; }
.bk-actions .bk-act-main { flex: 1; min-width: 0; }
.bk-actions .btn-icon { flex: none; width: 44px; padding: 0; }
.bk-rated { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--gold); font-size: 14px; font-weight: 700; white-space: nowrap; }
.bk-card.is-past .bk-time { color: var(--text); }
.bk-card.is-cancelled .bk-time { color: var(--muted); text-decoration: line-through; }
.bk-skeleton { border-inline-start-color: var(--line-2); }
.bk-more { display: flex; justify-content: center; margin-top: 14px; }
.bk-more .btn { min-width: min(100%, 240px); }

.dash-empty { padding: 32px 18px; border-radius: var(--r-xl); background: var(--d-panel); }
.dash-empty h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--hi); }
.dash-empty p { margin: 0 auto; max-width: 42ch; font-size: 14.5px; }
.dash-empty .btn { margin-top: 0; }
.dash-empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand-blue); border: 1px solid var(--brand-line); }
.dash-empty-icon svg { width: 24px; height: 24px; }
.dash-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.dash-empty-actions .btn { flex: 1 1 100%; }
.empty-sport { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sport-line); background: var(--sport-soft); color: var(--hi); font-size: 14px; font-weight: 600; white-space: nowrap; }
.empty-sport svg { width: 18px; height: 18px; color: var(--sport-2); }
.dash-footnote { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.dash-footnote svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: 3px; }

/* ---------- Notifications ---------- */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.notif { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px; border-radius: var(--r-lg); transition: background 0.2s; }
a.notif:hover { background: rgba(var(--ink), 0.05); }
.notif-skeleton { align-items: center; }
.notif-icon { width: 32px; height: 32px; border-radius: var(--r-lg); flex: none; display: grid; place-items: center; background: rgba(var(--ink), 0.05); color: var(--muted); }
.notif-icon svg { width: 15px; height: 15px; }
.notif.is-unread .notif-icon { background: var(--blue-soft); color: var(--blue-2); }
.notif.is-unread::after { content: ""; position: absolute; inset-inline-end: 10px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.notif-body { display: grid; gap: 2px; min-width: 0; padding-inline-end: 14px; }
.notif-body strong { font-size: 14px; font-weight: 600; }
.notif-body small { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.notif-body time { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.notif-empty { display: flex; gap: 12px; align-items: center; padding: 12px 4px; color: var(--muted); font-size: 14px; }
.notif-empty svg { width: 20px; height: 20px; flex: none; color: var(--dim); }

/* ---------- Link rows (teams, shortcuts) ---------- */
.quick-list { display: grid; gap: 8px; }
.quick { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(var(--ink), 0.02); min-width: 0; transition: border-color 0.25s, background 0.25s; }
.quick:hover { border-color: var(--line-2); background: rgba(var(--ink), 0.05); }
.quick-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.quick strong { font-size: 14.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-icon { width: 40px; height: 40px; border-radius: var(--r-lg); flex: none; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-2); }
.quick-icon svg { width: 18px; height: 18px; }
.quick-icon.is-gold { background: var(--gold-soft); color: var(--gold); }
.quick-wa .quick-icon { background: rgba(37, 211, 102, 0.14); color: #25d366; }
:root[data-theme="light"] .quick-wa .quick-icon { color: #128c4a; }
.quick-text .badge { justify-self: start; margin-top: 4px; }
.quick-arrow { width: 16px; height: 16px; color: var(--dim); flex: none; }
.dash-policy .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; }

/* ---------- Loyalty summary ---------- */
.loy-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loy-mini-top > div { min-width: 0; }
.loy-mini-points { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--hi); font-variant-numeric: tabular-nums; }
.loy-mini-top small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.meter { height: 8px; margin-top: 12px; border-radius: 999px; background: rgba(var(--ink), 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--brand-flow, var(--brand-grad)); }
.loy-mini-note { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.loy-mini-note svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; color: var(--gold); }
/* the cards page: its grid must not be wider than a small phone */
.dash .loy-cards { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin-top: 0; }
.dash .loy-join-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.dash .loy-empty { margin-top: 0; }
.dash .loy-empty .dash-h3 { justify-content: center; }
.dash .loy-join { margin-top: 20px; }
.dash .loy-membercard-venue { font-size: 12.5px; letter-spacing: 0.08em; }
.dash .loy-facts dt { font-size: 12.5px; letter-spacing: 0.02em; text-transform: none; }
.dash .loy-rule { font-size: 13px; }
.dash .loy-welcome { height: 24px; font-size: 12.5px; }
.dash .loy-recent summary { padding: 12px 0; font-size: 13px; letter-spacing: 0.04em; text-transform: none; }
.dash .loy-join-card strong { text-transform: none; overflow-wrap: anywhere; }

/* ---------- Profile ---------- */
.avatar-xl { width: 84px; height: 84px; font-size: 26px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2); transition: box-shadow 0.3s; }
.avatar-xl.is-changed { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--brand-blue); }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.avatar-edit-actions .field-hint { flex-basis: 100%; }
.file-btn { cursor: pointer; }
.file-btn svg { width: 15px; height: 15px; }
.file-btn:focus-within { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.avatar-field { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar-field + .form-grid { margin-top: 0; }
.profile-card { display: grid; gap: 14px; }
.profile-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-id > div { min-width: 0; }
.profile-id .avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.profile-name { font-size: 18px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.profile-email { margin: 2px 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.profile-stats div { display: flex; flex-direction: column-reverse; gap: 2px; text-align: center; min-width: 0; }
.profile-stats dt { font-size: 12.5px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-stats dd { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--hi); }
.profile-meta { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.profile-meta li { display: flex; align-items: center; gap: 8px; }
.profile-meta svg { width: 15px; height: 15px; flex: none; color: var(--dim); }

/* ---------- Settings ---------- */
.settings-banners { max-width: 760px; }
.settings-stack { display: grid; gap: 14px; }
.settings-row { display: grid; gap: 16px; scroll-margin-top: calc(var(--d-top) + 16px); }
.settings-intro .muted { font-size: 14px; margin: 8px 0 0; max-width: 44ch; }
.settings-form { min-width: 0; }
.settings-form-inline .btn { width: 100%; }
.settings-aux { margin: 12px 0 0; }
.settings-aux .link { display: inline-flex; align-items: center; min-height: 44px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(var(--ink), 0.02); cursor: pointer; transition: border-color 0.2s; }
.switch-row:hover { border-color: var(--line-2); }
.switch-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.switch-row strong { font-size: 14.5px; }
.switch-row small { font-size: 13.5px; overflow-wrap: anywhere; }
.switch-row.is-saving { opacity: 0.6; pointer-events: none; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: rgba(var(--ink), 0.12); border: 1px solid var(--line-2); transition: background 0.3s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.35s var(--ease); }
.switch input:checked + .switch-ui { background: var(--blue); border-color: transparent; }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.danger-zone { border-color: var(--red-soft); }
.danger-zone .dash-h3 > svg { color: var(--red-2); }

/* ---------- Booking page ---------- */
.booking-container { max-width: 1120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.back-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.back-link:hover { color: var(--hi); }
.back-link:hover svg { transform: translateX(-3px); }
.booking-grid { display: grid; gap: 14px; }
.booking-main, .booking-side { display: grid; gap: 14px; min-width: 0; align-content: start; }
.ticket { box-shadow: var(--shadow); }
.status-success { --st: var(--green); --st-soft: var(--green-soft); }
.status-pending { --st: var(--amber); --st-soft: var(--amber-soft); }
.status-cancelled { --st: var(--red-2); --st-soft: var(--red-soft); }
.status-completed { --st: var(--blue-2); --st-soft: var(--blue-soft); }
.tk-status { display: flex; align-items: flex-start; gap: 14px; }
.tk-status > div { min-width: 0; }
.tk-status-mark { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--st-soft); color: var(--st); animation: pop-in 0.6s var(--ease) both; }
.tk-status-mark svg { width: 24px; height: 24px; }
.tk-status .eyebrow { margin-bottom: 4px; color: var(--st); background: none; -webkit-text-fill-color: currentColor; }
.tk-title { font-size: clamp(1.35rem, 5.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tk-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tk-coderow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-block: 8px; padding-inline: 14px 8px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: rgba(var(--ink), 0.03); }
.tk-coderow > div { min-width: 0; }
.booking-ref { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; color: var(--hi); overflow-wrap: anywhere; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(var(--ink), 0.07); font-size: 13px; font-weight: 700; color: var(--text); transition: background 0.2s, color 0.2s; }
.copy-btn:hover { background: rgba(var(--ink), 0.12); color: var(--hi); }
.copy-btn .copy-done { width: 14px; height: 14px; display: none; }
.copy-btn.is-copied { color: var(--green); }
.copy-btn.is-copied .copy-done { display: block; }
.tk-place { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.tk-place > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--sport-2, var(--blue-2)); }
.tk-place-text { flex: 1; min-width: 0; }
.tk-place-text strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.tk-place-text small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.tk-money { display: grid; gap: 8px; margin: 0; }
.tk-money > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.tk-money dt { color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-money dd { margin: 0; font-weight: 600; color: var(--hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-money .is-total dd { font-size: 20px; font-weight: 700; }
.tk-money .is-due { padding-top: 10px; border-top: 1px solid var(--line); }
.tk-money .is-due dt { color: var(--text); font-weight: 600; }
.tk-money .is-due dd { font-size: 17px; color: var(--amber); }
.tk-money .is-clear dd { color: var(--green); }
.ticket-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ticket-note svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }
.booking-page .ticket-saved { color: var(--green); }
/* a booking held for its online payment: the one action, under the money */
.tk-paynow { display: grid; gap: 10px; margin: 14px 0 0; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); }
.tk-paynow-text { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.5; }
.tk-paynow-text svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold); }
.tk-paynow .field-hint { margin: 0; }
.booking-cancelled .ticket { box-shadow: none; }
.booking-cancelled .tk::before { background: var(--red); }

/* status timeline */
.tl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.tl-step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; inset-inline-start: 10px; top: 24px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
.tl-step:last-child::before { display: none; }
.tl-step.is-done::before { background: var(--green); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--d-panel); color: transparent; }
.tl-dot svg { width: 12px; height: 12px; }
.tl-step.is-done .tl-dot { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.tl-step.is-current .tl-dot { border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-step.is-bad .tl-dot { background: var(--red); border-color: var(--red); color: var(--bg); }
.tl-text { min-width: 0; }
.tl-text strong { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.tl-text small { display: block; font-size: 13px; color: var(--muted); }
.tl-step.is-done .tl-text strong, .tl-step.is-current .tl-text strong, .tl-step.is-bad .tl-text strong { font-weight: 700; color: var(--hi); }

.action-stack { display: grid; gap: 10px; }
.action-stack .btn { justify-content: center; }
.policy-text { font-size: 14px; line-height: 1.6; }
.guest-cta { padding: 16px; border-radius: var(--r-xl); border: 1px solid var(--gold-soft); background: var(--gold-soft); }
.guest-cta p { margin: 10px 0 14px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.guest-cta p strong { color: var(--hi); }
.guest-cta .row { gap: 16px; }
.guest-cta .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Phones: sticky save, thumb-size controls ---------- */
@media (max-width: 760px) {
  .form-actions .btn { flex: 1 1 100%; height: 52px; }
  /* stays above the sport dock; the WhatsApp bubble sits at the inline end of the same band */
  .form-actions.is-sticky { position: sticky; bottom: calc(var(--d-dock) + env(safe-area-inset-bottom) + 8px); z-index: 30; margin-inline: -8px; padding: 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--d-panel-2); box-shadow: var(--shadow); }
  body:has(.wa-float) .form-actions.is-sticky { margin-inline-end: 58px; }
  .dash-head-cta span { display: none; }
  .dash .dash-head-cta { width: 48px; height: 48px; padding: 0; }
  .dash-head-cta svg { width: 20px; height: 20px; }
  .bk-card:hover { transform: none; }
  .avatar-edit-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .tk-when { grid-template-columns: minmax(0, 1fr); }
  .tk-when .tk-cell { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .tk-when .tk-cell strong { margin-top: 0; }
  .tk-when .tk-cell small { grid-column: 2; }
}
@media (max-width: 380px) {
  .dash-kpis strong { font-size: 17px; }
  .profile-stats dd { font-size: 18px; }
}

/* ---------- Tablets and up ---------- */
@media (min-width: 761px) {
  .dash, .booking-page { --d-dock: 0px; --tk-pad: 24px; }
  .page.dash, .page.booking-page { padding-top: calc(var(--d-top) + 36px); padding-bottom: 96px; }
  .dash-head { margin-bottom: 20px; }
  .dash-avatar .avatar { width: 64px; height: 64px; font-size: 20px; }
  .dash-subnav { position: sticky; top: var(--d-top); z-index: 20; margin: 0 0 24px; }
  :root[data-theme] .dash-subnav { background: var(--bg); }
  .dash-subnav-track { padding: 0; }
  .dash-subnav-track a { min-height: 52px; padding: 0 16px; }
  .dash-grid, .settings-stack, .booking-grid, .booking-main, .booking-side { gap: 18px; }
  .dash-card { padding: 22px; }
  .dash-kpis { max-width: 640px; gap: 12px; margin-bottom: 20px; }
  .dash-kpis > div { padding: 16px; }
  .dash-kpis strong { font-size: 24px; }
  .qa { grid-template-columns: 1.3fr 1fr 1fr; }
  .qa-main { grid-column: auto; height: auto; min-height: 60px; }
  .dstats { grid-template-columns: 1fr 1fr 1.6fr; }
  .dstat { padding: 18px; }
  .dstat-wide { grid-column: auto; }
  .dash-tabs { margin: 0; padding: 2px 0; }
  .bk-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "body actions" "meta actions"; align-items: center; column-gap: 20px; padding: 16px 20px; }
  .bk-head { grid-area: head; }
  .bk-body { grid-area: body; }
  .bk-meta { grid-area: meta; }
  .bk-actions { grid-area: actions; }
  .bk-actions .bk-act-main { flex: none; }
  .bk-card:hover { transform: translateY(-2px); }
  .dash-empty { padding: 48px 24px; }
  .dash-empty-actions .btn, .empty-sport { flex: 0 0 auto; }
  .tk-cell { padding: 14px 16px; }
  .tk-cell strong { font-size: 19px; }
  .tk-actions { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .tk-act { flex-direction: row; min-height: 52px; gap: 10px; }
  .tk-more .btn { flex: 0 0 auto; }
  .avatar-xl { width: 104px; height: 104px; font-size: 32px; }
  .settings-form-inline { display: flex; align-items: center; justify-content: flex-end; }
  .settings-form-inline .btn { width: auto; }
}
@media (min-width: 861px) {
  .settings-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px; padding: 28px; }
}
@media (min-width: 1081px) {
  .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .dash-grid > .dash-main, .dash-grid > .dash-aside { display: grid; gap: 18px; min-width: 0; align-content: start; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
}

/* =====================================================================
   About / contact
   ===================================================================== */
.info-page { padding-top: calc(var(--nav-h) + 20px); }
.info-hero { position: relative; padding: clamp(40px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.info-hero-art { position: absolute; inset: 0; opacity: 0.7; pointer-events: none; color: var(--brand-blue); mask-image: radial-gradient(70% 70% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 30%, transparent 75%); }
.info-hero-art svg { width: 100%; height: 100%; }
.info-hero-art circle { stroke: var(--brand-green); }
.info-hero .container { position: relative; }
.info-title { margin: 20px 0 24px; overflow-wrap: anywhere; }
.info-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { position: relative; overflow: hidden; padding: 22px 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--ink), 0.04), rgba(var(--ink), 0.01)); min-width: 0; transition: border-color 0.3s, transform 0.5s var(--ease); }
.stat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.stat::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ink), 0.06), transparent 70%); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat-label svg { width: 15px; height: 15px; flex: none; color: var(--blue-2); }
.stat-gold .stat-label svg { color: var(--gold); }
.stat-value { display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 4.4vw, 56px); line-height: 0.95; letter-spacing: -0.03em; }
.stat-gold .stat-value { color: var(--gold); }
.stat-foot { display: block; margin-top: 6px; font-size: 13.5px; color: var(--dim); }
.info-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); padding-top: clamp(72px, 10vw, 140px); }
.info-copy p { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.info-copy p.muted { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.info-copy svg { width: 16px; height: 16px; flex: none; }
.info-sports { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: clamp(48px, 7vw, 88px); }
.sport-tile { display: grid; gap: 14px; padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--sport-line, var(--line)); background: linear-gradient(160deg, var(--sport-soft, rgba(var(--blue-rgb), 0.14)), rgba(var(--ink), 0.01) 60%); min-width: 0; }
.sport-tile .sport-icon { width: 56px; height: 56px; border-radius: 16px; }
.sport-tile .sport-icon svg { width: 26px; height: 26px; }
.sport-tile h3 { font-weight: 900; overflow-wrap: anywhere; }
.sport-tile p { margin: 0; }
.sport-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.sport-tile-foot svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.sport-tile:hover .sport-tile-foot svg { color: var(--hi); }
.info-section { padding-top: clamp(72px, 10vw, 140px); scroll-margin-top: 90px; }
.section-head { margin-bottom: 36px; }
.facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-xl); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.facility { padding: 30px; background: var(--bg-1); transition: background 0.3s; }
.facility:hover { background: var(--bg-2); }
.facility-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; transition: transform 0.5s var(--ease); }
.facility:hover .facility-icon { transform: rotate(-8deg) scale(1.06); }
.facility-icon svg { width: 22px; height: 22px; }
.facility h3 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.2; }
.facility p { margin: 8px 0 0; font-size: 14.5px; }
.policy-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); padding: clamp(22px, 5vw, 56px); border-radius: var(--r-xl); border: 1px solid var(--gold-soft); background: linear-gradient(135deg, var(--gold-soft), transparent 60%), var(--bg-1); }
.policy-lead { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; margin: 0 0 20px; color: var(--hi); }
.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.policy-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.policy-list li strong { color: var(--hi); }
.policy-list svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }
.info-cta { padding-top: clamp(80px, 12vw, 160px); text-align: start; }

.contact-hero { padding: clamp(24px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.contact-channels { display: grid; gap: 10px; min-width: 0; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 76px; border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(var(--ink), 0.025); min-width: 0; transition: border-color 0.25s, background 0.25s; }
a.channel:hover { border-color: var(--line-2); background: rgba(var(--ink), 0.05); }
.channel > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.channel small { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.channel strong { font-size: 16px; overflow-wrap: anywhere; }
.channel-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-2); }
.channel-icon svg { width: 20px; height: 20px; }
.channel-arrow { width: 18px; height: 18px; flex: none; color: var(--dim); }
.channel-wa { border-color: rgba(37, 211, 102, 0.3); background: linear-gradient(120deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.02)); }
.channel-wa .channel-icon { background: #25d366; color: #04130a; }
.map-embed { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg); }
:root[data-theme="light"] .map-embed iframe { filter: none; }
.contact-form-card { border-radius: var(--r-xl); scroll-margin-top: 100px; min-width: 0; }
.contact-form-card h2 { text-transform: uppercase; font-weight: 900; line-height: 1.15; }

@media (max-width: 860px) {
  .policy-card, .info-split, .contact-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .info-page { padding-top: calc(72px + 12px); }
  .facility-grid { grid-template-columns: 1fr; }
  .facility { padding: 22px; }
  .sport-tile { padding: 22px; }
  .info-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 34px; }
  .info-copy p { font-size: 16px; }
  .channel { padding: 14px; gap: 12px; }
  .info-cta .btn, .contact-form-card .btn-lg { width: 100%; }
}

/* ==== RTL: what logical properties cannot say ==== */
[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-22px); }
[dir="rtl"] .back-link svg, [dir="rtl"] .quick-arrow, [dir="rtl"] .channel-arrow, [dir="rtl"] .sport-tile-foot svg { transform: scaleX(-1); }
[dir="rtl"] .back-link:hover svg { transform: scaleX(-1) translateX(-3px); }
[dir="rtl"] .stat-label, [dir="rtl"] .channel small, [dir="rtl"] .facility h3, [dir="rtl"] .contact-form-card h2 { text-transform: none; }


/* =====================================================================
   Sign-in pages — a calm card on the pitch of the logo
   (login, register, forgot / reset password share this shell)
   ===================================================================== */
.page-auth .sport-dock { display: none !important; }            /* nothing to book from here */
.page-auth .auth-form-side { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 28px) var(--gutter) 48px; }
.page-auth .auth-form-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 380px at 88% 10%, rgba(var(--brand-blue-rgb), 0.16), transparent 70%), radial-gradient(520px 420px at 6% 100%, rgba(var(--blue-rgb), 0.12), transparent 70%);
}
.page-auth .auth-card { position: relative; max-width: 440px; padding: 30px 28px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.page-auth .auth-card h1 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.25; text-transform: none; margin: 0 0 6px; }
.page-auth .auth-card .input { height: 52px; border-radius: 14px; font-size: 16px; }
.page-auth .auth-card .btn-block { height: 54px; border-radius: 16px; margin-top: 20px; }
.page-auth .auth-card .label { font-size: 13.5px; }

.lg-brand { display: flex; width: fit-content; margin-bottom: 20px; }
.lg-brand .brand-mark { width: 46px; height: 46px; }
.lg-brand .brand-word { height: 23px; }
.lg-sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.lg-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--dim); font-size: 13px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-auth .auth-card .lg-register { margin-top: 12px; }
.lg-roles { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lg-roles-k { display: block; margin-bottom: 10px; font-size: 12.5px; color: var(--dim); }
.lg-roles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lg-roles li { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), 0.025); font-size: 13.5px; font-weight: 600; }
.lg-roles svg { width: 16px; height: 16px; flex: none; color: var(--brand-blue); }
.lg-owner { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.page-auth .lg-card .auth-note { margin-top: 16px; }

/* The art panel beside the card (wide screens only; app.css hides it on phones). It fills the window
   and stays put while a long card scrolls: the logo on the centre circle takes the room above,
   the words sit under it — they never share the same space. */
.av-field { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(var(--ink), 0.16) 0 6px, transparent 6px 14px) 50% 0 / 1.5px 100% no-repeat; }
.av-logo { position: relative; z-index: 1; flex: 1 1 0; min-height: 120px; display: grid; place-items: center; }
.av-logo::before { content: ""; position: absolute; left: 50%; top: 50%; width: clamp(260px, 58vh, 500px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(var(--ink), 0.14); box-shadow: 0 0 0 52px rgba(var(--ink), 0.018); pointer-events: none; }
.av-logo .brand-mark { position: relative; display: block; width: auto; height: clamp(110px, 26vh, 210px); aspect-ratio: 1; filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5)); }
@media (min-width: 901px) {
  .page-auth .auth-visual { display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; min-height: 0; padding: calc(var(--nav-h) + 20px) clamp(28px, 4vw, 56px) 44px; }
  .page-auth .auth-visual-copy { flex: none; }
  .page-auth .auth-visual h2 { font-size: clamp(34px, 4vw, 60px); }
  .page-auth .auth-visual-meta { margin-top: 20px; }
}
/* Arabic letters join: no negative tracking, no stretch, and room between the lines */
[dir="rtl"] .auth-visual h2 { line-height: 1.22; letter-spacing: 0; font-stretch: normal; font-weight: 800; text-transform: none; }
[dir="rtl"] .auth-visual p { line-height: 1.8; }
@media (max-width: 900px) {
  .page-auth .auth-form-side { padding: calc(var(--nav-h) + 16px) 14px 36px; align-items: flex-start; }
  .page-auth .auth-card { padding: 24px 18px 22px; border-radius: 20px; }
  .lg-brand .brand-mark { width: 42px; height: 42px; }
}
