/* =====================================================================
   XARENA — design system (public site + player dashboard)
   ===================================================================== */
:root {
  --bg: #070b12;
  --bg-1: #0a1019;
  --bg-2: #0e1520;
  --bg-3: #131c2b;
  --bg-4: #1a2538;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --muted: #a0a6b0;
  --dim: #6b7079;
  /* "--blue*" is the primary accent token (the name is historical) — sports green */
  --blue: #2fe07a;
  --blue-2: #7dfab0;
  --blue-3: #10b159;
  --blue-soft: rgba(47, 224, 122, 0.12);
  --blue-glow: rgba(47, 224, 122, 0.3);
  --on-accent: #03210f;
  --court: #4f8cff;
  --gold: #8dbbff;
  --gold-soft: rgba(79, 140, 255, 0.14);
  --green: #2fe07a;
  --green-soft: rgba(47, 224, 122, 0.14);
  --red: #ff4d5e;
  --red-soft: rgba(255, 77, 94, 0.13);
  --amber: #8dbbff;
  --amber-soft: rgba(79, 140, 255, 0.14);
  /* the brand is the two sports together: padel blue running into football green */
  --brand-blue: #4f8cff;
  --brand-green: #2fe07a;
  --brand-grad: linear-gradient(120deg, #4f8cff 0%, #2bd4a4 58%, #2fe07a 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(79, 140, 255, 0.16), rgba(47, 224, 122, 0.14));
  --brand-line: rgba(79, 140, 255, 0.38);
  --on-brand: #04131d;
  /* helpers for the mix: the same blue → green along the reading direction (hairlines, gradient
     text) and top to bottom (active markers), the blue's raw channels for tints, the glow under a
     brand fill, the sheen a brand fill gets on hover (lighter at night, deeper by day) */
  --brand-flow: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  --brand-bar: linear-gradient(180deg, var(--brand-blue), var(--brand-green));
  --brand-blue-rgb: 79, 140, 255;
  --brand-glow: rgba(61, 178, 190, 0.34);
  --brand-sheen: rgba(255, 255, 255, 0.22);
  /* ink on a red / amber fill, and the panel tokens (lighter values in the light palette below) */
  --on-red: #2b0409;
  --on-amber: #04131d;
  --surface: #0b111b;
  --surface-2: #101826;
  --glass: rgba(7, 11, 18, 0.96);
  /* Raw channels for tints that must flip with the dashboards' light mode: rgba(var(--ink), a) is a
     white veil here and an ink veil on the light palette; --blue-rgb is the accent the same way.
     --hi is the brightest text, --red-2 red text on a panel. */
  --ink: 255, 255, 255;
  --blue-rgb: 47, 224, 122;
  --hi: #fff;
  --red-2: #ff8793;

  /* one typeface for everything, Arabic and English: Vazirmatn (stand-in for Ghaith Sans) */
  --font-display: "Vazirmatn", system-ui, sans-serif;
  --font-body: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Vazirmatn", "Tahoma";

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-blue: 0 18px 50px -18px var(--blue-glow);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 84px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* clip, not hidden: hidden turns the body into a scroll box of its own, which phones scroll badly
   (momentum, the address bar, sticky bits). Older browsers keep hidden. */
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--brand-blue); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; pointer-events: none !important; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 0.94; margin: 0; font-weight: 700; }
.display-xl { font-size: clamp(2.8rem, 8vw, 7.2rem); line-height: 0.88; text-transform: uppercase; }
.display-l { font-size: clamp(2.2rem, 5.2vw, 4.6rem); text-transform: uppercase; }
.display-m { font-size: clamp(1.8rem, 3.4vw, 2.9rem); text-transform: uppercase; }
.display-s { font-size: clamp(1.3rem, 2.2vw, 1.75rem); text-transform: uppercase; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--font-display); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: none; }
/* the small label over a heading carries the brand: blue running into green along the text */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .eyebrow { color: var(--brand-blue); background: var(--brand-flow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .eyebrow.gold { background: none; -webkit-text-fill-color: currentColor; }
  @media (forced-colors: active) { .eyebrow { background: none; -webkit-text-fill-color: currentColor; } }
}
.eyebrow.gold { color: var(--gold); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-variant-numeric: tabular-nums; }
.text-blue { color: var(--blue-2); }
.text-gold { color: var(--gold); }
.outline-text { -webkit-text-stroke: 1.5px rgba(var(--ink), 0.85); color: transparent; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; min-height: 100vh; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--bg-3); --btn-fg: var(--text); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  background-origin: border-box; /* a gradient fill runs under the border as well */
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.35s var(--ease);
}
/* signature fill: the brand (padel blue into football green) rises from below on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--brand-grad); transform: translate3d(0, 101%, 0); transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: translate3d(0, 0, 0); }
.btn:hover { color: var(--on-brand); border-color: var(--brand-line); box-shadow: 0 0 42px -4px var(--brand-glow); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover svg.arrow { transform: translateX(6px); }
/* The one primary action of a view wears the brand itself. On hover it keeps its colours and
   takes a sheen (lighter at night, deeper by day), so the ink stays readable in both themes.
   A context that re-colours it (a sport-coded call to action) sets --btn-bg / --btn-fg / --btn-sheen. */
.btn-primary { --btn-bg: var(--brand-grad); --btn-fg: var(--on-brand); --btn-bd: transparent; }
.btn-primary::after { background: var(--btn-sheen, var(--brand-sheen)); }
.btn-primary:hover { color: var(--btn-fg); border-color: var(--btn-bd); box-shadow: 0 12px 46px -14px var(--brand-glow), 0 0 34px -10px rgba(var(--brand-blue-rgb), 0.5); }
.btn-white { --btn-bg: #fff; --btn-fg: #050505; --btn-bd: transparent; }
:root[data-theme="light"] .btn-white { --btn-bd: var(--line-2); }
.btn-ghost { --btn-bg: rgba(var(--ink), 0.03); }
.btn-danger::after { background: var(--red); }
.btn-danger:hover { color: var(--on-red); border-color: var(--red); box-shadow: none; }
.btn-danger { --btn-bg: var(--red-soft); --btn-fg: var(--red-2); --btn-bd: rgba(255, 77, 94, 0.3); }
.btn-danger:hover { background: rgba(255, 77, 94, 0.22); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #111; --btn-bd: transparent; }
:root[data-theme="light"] .btn-gold { --btn-fg: #fff; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn-label { opacity: 0.6; }
.link { color: var(--brand-blue); font-weight: 600; transition: color 0.2s; }
.link:hover { color: var(--hi); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--ink), 0.25); border-top-color: var(--hi); animation: spin 0.7s linear infinite; }
.btn .spinner { border-color: rgba(127, 127, 127, 0.4); border-top-color: currentColor; } /* follows the button's own ink */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards & surfaces ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px);
}
.card-solid { background: var(--bg-2); }
.card-hover { transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255, 255, 255, 0.045); }
.glass {
  background: rgba(12, 12, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-confirmed, .badge-paid, .badge-available, .badge-active { color: var(--green); background: var(--green-soft); border-color: rgba(47, 224, 122, 0.25); }
.badge-pending, .badge-unpaid { color: var(--amber); background: var(--amber-soft); border-color: rgba(79, 140, 255, 0.25); }
.badge-cancelled, .badge-no_show, .badge-inactive, .badge-refunded { color: #ff8793; background: var(--red-soft); border-color: rgba(255, 77, 94, 0.25); }
.badge-completed { color: var(--blue-2); background: var(--blue-soft); border-color: rgba(var(--blue-rgb), 0.28); }
.badge-gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(79, 140, 255, 0.3); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 16px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23a0a6b0' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select { color-scheme: dark; }
.select option { background: #111; color: #f2f4f0; }
.select optgroup { background: #0b0c0a; color: #8a8f98; font-weight: 700; }
/* native drop-downs follow the theme */
:root[data-theme="light"] .select { color-scheme: light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2346505f' stroke-width='1.6'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .select optgroup { background: var(--bg-3); color: var(--muted); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(var(--ink), 0.24); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-blue); background: rgba(var(--blue-rgb), 0.05); box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.16); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field-error { font-size: 13px; color: var(--red-2); min-height: 0; }
.field-hint { font-size: 13px; color: var(--dim); }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group .input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.input-group .input-action:hover { color: var(--hi); background: rgba(var(--ink), 0.06); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.alert { padding: 14px 16px; border-radius: 14px; font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: var(--red-soft); border-color: rgba(255, 77, 94, 0.3); color: #ffb3ba; }
.alert-success { background: var(--green-soft); border-color: rgba(47, 224, 122, 0.3); color: #9ff0cf; }
.alert-info { background: var(--blue-soft); border-color: rgba(var(--blue-rgb), 0.3); color: #c3d4ff; }
:root[data-theme="light"] .alert-error { color: var(--red); }
:root[data-theme="light"] .alert-success { color: var(--green); }
:root[data-theme="light"] .alert-info { color: var(--blue-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, height 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.nav-solid { background: rgba(5, 5, 5, 0.78); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); --nav-h: 72px; height: 72px; }
.nav-inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; letter-spacing: 0.08em; font-size: 18px; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; flex: none; }
/* The mark is the X of XARENA: "ARENA" is drawn right after it, a letter-space away. The name is
   Latin, so the mark stays on the left in both languages; the letters take the text colour. */
.brand { direction: ltr; gap: 7px; }
.brand-word { display: block; height: 19px; width: auto; color: var(--hi); }
.brand small { text-align: start; }
.brand small { display: block; font-size: 9px; letter-spacing: 0.36em; color: var(--muted); font-weight: 600; margin-top: 2px; font-stretch: 100%; }
.brand img.brand-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.nav-links { gap: 34px; margin-inline-start: 36px; }
.nav-links a {
  position: relative; padding: 8px 0; font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.82); transition: color 0.35s;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--brand-flow); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav-links a:hover { color: var(--hi); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--hi); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav-text-link { padding: 10px 16px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-radius: 999px; transition: color 0.2s; }
.nav-text-link:hover { color: var(--hi); }
/* place-content keeps the three bars together in the middle (grid rows would otherwise stretch
   over the whole button and the bars could not meet as an X) */
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; place-content: center; background: rgba(var(--ink), 0.04); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--hi); transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.04); font-size: 13px; font-weight: 600; transition: border-color 0.2s; }
.user-chip:hover { border-color: rgba(var(--ink), 0.3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: 0.04em; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 88px; height: 88px; font-size: 26px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 18px;
  background: rgba(17, 17, 17, 0.96); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.user-menu.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 14px; color: var(--muted); text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(var(--ink), 0.06); color: var(--hi); }
.dropdown hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }
/* Every icon in a dropdown row is a fixed 18px glyph — an unsized <svg> fills its row. */
.dropdown a > svg, .dropdown button > svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.dropdown a > span, .dropdown button > span { flex: 1; white-space: nowrap; }
[dir="rtl"] .dropdown a, [dir="rtl"] .dropdown button { text-align: right; }

/* The signed-in player's menu */
.user-dropdown { min-width: 268px; }
.ud-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ud-head .avatar { width: 40px; height: 40px; font-size: 13px; }
.ud-head > div { min-width: 0; }
.ud-head strong { display: block; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-head small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown a.ud-portal { margin-bottom: 4px; color: var(--text); background: var(--brand-grad-soft); box-shadow: inset 0 0 0 1px var(--brand-line); font-weight: 600; }
.dropdown a.ud-portal > svg { opacity: 1; color: var(--brand-blue); }
.dropdown a.ud-portal .ud-go { width: 14px; height: 14px; margin-inline-start: auto; }
[dir="rtl"] .dropdown a.ud-portal .ud-go { transform: scaleX(-1); }
.dropdown a.ud-portal:hover { background: var(--brand-grad-soft); color: var(--hi); }
.dropdown button.ud-logout:hover { color: var(--red); background: var(--red-soft); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(5, 5, 5, 0.98);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; overflow-y: auto;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 34px; text-transform: uppercase; letter-spacing: -0.01em; padding: 6px 0; color: var(--hi); opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s; }
.mobile-menu a.mm-link:hover { color: var(--blue-2); }
.nav-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.nav-open .mobile-menu a.mm-link:nth-child(2) { transition-delay: 0.04s; }
.nav-open .mobile-menu a.mm-link:nth-child(3) { transition-delay: 0.08s; }
.nav-open .mobile-menu a.mm-link:nth-child(4) { transition-delay: 0.12s; }
.nav-open .mobile-menu a.mm-link:nth-child(5) { transition-delay: 0.16s; }
.nav-open .mobile-menu a.mm-link:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu .mm-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav-links, .nav-right .hide-md { display: none; }
  .nav-toggle { display: grid; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; overflow: hidden; background: var(--bg-1); border-top: 1px solid var(--line); padding: 44px 0 26px; }
.footer::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--brand-flow); opacity: 0.9; }
/* the logo's centre circle and its dashed line, large and faint, behind the far corner */
.footer::after {
  content: ""; position: absolute; inset-inline-end: -150px; bottom: -230px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(var(--ink), 0.07); box-shadow: inset 0 0 0 56px rgba(var(--ink), 0.012);
  background: repeating-linear-gradient(to bottom, rgba(var(--ink), 0.09) 0 6px, transparent 6px 14px) 50% 0 / 1px 100% no-repeat;
}
.footer .container { position: relative; z-index: 1; }
.footer a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer a:hover { color: var(--hi); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer h4 { display: inline-flex; flex-direction: column; gap: 9px; font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.footer h4::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-flow); }
/* the invitation to venue owners leads the footer */
.ft-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 26px; border-radius: 22px; border: 1px solid var(--brand-line); background: var(--brand-grad-soft); }
.ft-cta-text { min-width: 0; }
.ft-cta strong { display: block; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; color: var(--hi); }
.ft-cta p { margin: 4px 0 0; max-width: 58ch; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ft-cta .btn { flex: none; }
.ft-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: 56px; align-items: start; margin-top: 44px; }
.ft-brand { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.ft-brand p { margin: 0; max-width: 36ch; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.ft-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.footer a.ft-sport { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sport-line); background: var(--sport-soft); color: var(--sport-2); font-weight: 600; font-size: 13.5px; }
.footer a.ft-sport:hover { border-color: var(--sport); color: var(--sport-2); }
.ft-sport svg { width: 16px; height: 16px; }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; min-width: 0; }
.ft-col { min-width: 0; }
.ft-col a { display: inline-flex; align-items: center; min-height: 36px; }
.ft-bottom { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 960px) {
  .ft-main { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 34px; }
}
@media (max-width: 760px) {
  /* phones: the invitation, the brand, then the links two to a row; the sport dock sits over the end */
  .footer { padding: 26px 0 calc(92px + env(safe-area-inset-bottom)); }
  .footer::after { width: 380px; height: 380px; inset-inline-end: -150px; bottom: -120px; }
  .ft-cta { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px; border-radius: 18px; }
  .ft-cta .btn { width: 100%; height: 48px; }
  .ft-main { gap: 26px; margin-top: 28px; }
  .ft-brand { gap: 12px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ft-col:last-child { grid-column: 1 / -1; }
  .ft-col:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ft-col a { min-height: 42px; }
  .ft-bottom { flex-direction: column; margin-top: 26px; padding-top: 16px; }
}

/* "Proudly powered by Unilira": their mark is a mask, so it takes the text colour in both themes */
.ft-bottom { align-items: center; }
.footer a.ft-powered { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-family: var(--font-display); font-size: 14px; color: var(--muted); direction: ltr; white-space: nowrap; }
.footer a.ft-powered strong { font-size: 15.5px; font-weight: 700; color: var(--hi); }
.footer a.ft-powered:hover { color: var(--hi); }
.ft-uni { flex: none; width: 20px; height: 23px; background: var(--hi); -webkit-mask: url(../images/unilira-mark.webp) 50% / contain no-repeat; mask: url(../images/unilira-mark.webp) 50% / contain no-repeat; }
@media (max-width: 760px) { .footer a.ft-powered { order: 3; margin-top: 6px; } }

/* the mark where a page had room for it: error pages, the booking ticket */
.error-page .err-mark .brand-mark { width: 76px; height: 76px; margin: 0 auto 22px; display: block; }
.tk-issued { display: flex; align-items: center; justify-content: center; gap: 7px; direction: ltr; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); }
.tk-issued .brand-mark { width: 26px; height: 26px; }
.tk-issued .brand-word { height: 13px; color: currentColor; }

/* "may we measure your visit?" — a quiet bar above the bottom edge, never over the content's middle */
.ck { position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 720px; margin-inline: auto; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--shadow); }
.ck[hidden] { display: none; }
.ck-text { flex: 1 1 260px; min-width: 0; }
.ck-text strong { display: block; color: var(--hi); font-size: 14.5px; }
.ck-text p { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ck-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-inline-start: auto; }
@media (max-width: 1080px) { .ck { bottom: calc(84px + env(safe-area-inset-bottom)); } .page-shop .ck, .page-auth .ck { bottom: calc(12px + env(safe-area-inset-bottom)); } }
.footer [data-consent-open] { text-decoration: underline; text-underline-offset: 3px; }

/* the shop's cart in the bar: a count on the bag */
.nav-cart { position: relative; }
.nav-cart em { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-grad); color: var(--on-brand); font: 700 10.5px/18px var(--font-body); font-style: normal; text-align: center; letter-spacing: 0; }
.nav-cart em[hidden] { display: none; }
@media (max-width: 1080px) { .nav .nav-cart { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--ink), 0.04); color: var(--text); } .nav .nav-cart svg { width: 19px; height: 19px; } body.nav-open .nav-cart { visibility: hidden; } }

/* How a venue owner reaches XARENA (partner page, owner portal): WhatsApp, phone, e-mail */
.sup-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
a.sup-chan { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); transition: border-color 0.2s, transform 0.3s var(--ease); min-width: 0; }
a.sup-chan:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.sup-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(var(--brand-blue-rgb), 0.12); color: var(--brand-blue); }
.sup-ico svg { width: 20px; height: 20px; }
.sup-chan.is-wa .sup-ico { background: rgba(var(--blue-rgb), 0.14); color: var(--blue); }
.sup-chan.is-wa { border-color: rgba(var(--blue-rgb), 0.4); }
.sup-txt { display: grid; gap: 1px; min-width: 0; }
.sup-txt small { font-size: 12px; color: var(--muted); }
.sup-txt strong { font-size: 15px; overflow-wrap: anywhere; line-height: 1.4; }

/* ---------- WhatsApp & sticky CTA ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 28px; height: 28px; }
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 41; display: none; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; transform: translateY(130%); transition: transform 0.5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .sc-text { font-size: 13px; line-height: 1.25; }
.sticky-cta .sc-text strong { display: block; font-family: var(--font-display); letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  .has-sticky-cta .wa-float { bottom: 88px; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); opacity: 0; transition: opacity 0.3s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(0.97); transition: opacity 0.3s, transform 0.45s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(var(--ink), 0.05); }
.modal-close:hover { color: var(--hi); background: rgba(var(--ink), 0.1); }
.tabs-inline { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(var(--ink), 0.05); border: 1px solid var(--line); }
.tabs-inline button, .tabs-inline a { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: background 0.25s, color 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.tabs-inline .is-active { background: #fff; color: #050505; }
.tabs-inline .count { font-size: 11px; opacity: 0.7; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; top: 20px; right: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: rgba(20, 20, 22, 0.96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in 0.45s var(--ease) both;
}
.toast.is-leaving { animation: toast-out 0.3s ease forwards; }
.toast-icon { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.toast-success .toast-icon { background: var(--green); color: #04130d; }
:root[data-theme="light"] .toast-success .toast-icon { color: #fff; }
.toast-error .toast-icon { background: var(--red); color: var(--on-red); }
.toast-info .toast-icon { background: var(--brand-grad); color: var(--on-brand); }
.toast strong { display: block; font-size: 14px; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--muted); font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Skeletons ---------- */
.skeleton { position: relative; overflow: hidden; background: rgba(var(--ink), 0.05); border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(var(--ink), 0.06), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; } }
.no-js .reveal, .no-js .reveal-scale { opacity: 1; transform: none; }

/* ---------- Sport icons ---------- */
.sport-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-2); flex: none; }
.sport-icon.football { background: var(--green-soft); color: var(--green); }
.sport-icon svg { width: 22px; height: 22px; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty h3 { font-size: 22px; color: var(--hi); margin-bottom: 8px; text-transform: uppercase; }
.empty .btn { margin-top: 20px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; overflow: hidden; background: radial-gradient(70% 55% at 92% 100%, rgba(47, 224, 122, 0.16), transparent 70%), radial-gradient(120% 80% at 30% 20%, #0f2a7a 0%, #06122e 40%, #050505 75%); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth-visual .court-lines { position: absolute; inset: 0; opacity: 0.35; }
.auth-visual h2 { position: relative; font-size: clamp(40px, 5vw, 72px); text-transform: uppercase; font-weight: 900; }
.auth-visual p { position: relative; color: var(--muted); max-width: 40ch; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: clamp(34px, 4vw, 46px); text-transform: uppercase; margin-bottom: 10px; }
.auth-card .btn-block { margin-top: 24px; }
.auth-switch { margin-top: 20px; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hide { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 761px) { .show-sm { display: none !important; } }

/* ---------- Error page ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; background: radial-gradient(46% 42% at 36% 28%, rgba(var(--brand-blue-rgb), 0.16), transparent 70%), radial-gradient(46% 42% at 64% 34%, rgba(var(--blue-rgb), 0.16), transparent 70%); }
.error-page .code { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(110px, 22vw, 260px); line-height: 0.85; letter-spacing: -0.05em; -webkit-text-stroke: 2px rgba(var(--ink), 0.4); color: transparent; }

/* =====================================================================
   v2 — "Arena" design language (overrides above)
   Sharp geometry, hairline borders, Space Grotesk, lime accent.
   ===================================================================== */
:root { --r-sm: 4px; --r: 6px; --r-lg: 8px; --r-xl: 12px; --line: rgba(255, 255, 255, 0.10); }
body { font-weight: 400; }
.brand { font-weight: 700; letter-spacing: 0.16em; font-size: 0.9rem; font-stretch: normal; line-height: 1; }
.brand small { font-size: 0.54rem; letter-spacing: 0.34em; color: var(--dim); font-weight: 400; margin-top: 4px; text-transform: lowercase; }
/* the mark paints itself with the brand tokens (inline, see brand_mark()) — no fill rules here */
.nav-text-link { font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(var(--ink), 0.78); }
.nav.is-solid, .nav.nav-solid { background: var(--glass); backdrop-filter: none; -webkit-backdrop-filter: none; }
.glass { background: rgba(10, 12, 9, 0.82); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); }
.card { background: #0e0f0d; border-color: var(--line); }
.card-hover:hover { border-color: var(--brand-line); background: #111310; }
.input, .select, .textarea { border-radius: 4px; background-color: rgba(var(--ink), 0.03); }
.badge { border-radius: 3px; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.16em; font-size: 0.6rem; }
.label { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.22em; font-size: 0.62rem; }
.tabs-inline { border-radius: 4px; }
.tabs-inline button, .tabs-inline a { border-radius: 3px; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.18em; font-size: 0.64rem; }
.tabs-inline .is-active { background: var(--brand-grad); color: var(--on-brand); }
.toast { border-radius: 6px; }
.modal-panel { border-radius: 10px; }
.sport-icon { border-radius: 6px; }
.lead { font-weight: 300; line-height: 1.75; }
.wa-float { box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.55); }

/* ---------- Sport identity colours (used by every dashboard) ----------
   Padel = the court's blue · Football = the pitch's green.
   Put .is-padel / .is-football on any element and use var(--sport*) inside it. */
:root {
  --padel: #4f8cff; --padel-2: #8dbbff; --padel-soft: rgba(79, 140, 255, 0.16); --padel-line: rgba(79, 140, 255, 0.45);
  --football: #2fe07a; --football-2: #7dfab0; --football-soft: rgba(47, 224, 122, 0.16); --football-line: rgba(47, 224, 122, 0.45);
}
.is-padel { --sport: var(--padel); --sport-2: var(--padel-2); --sport-soft: var(--padel-soft); --sport-line: var(--padel-line); }
.is-football { --sport: var(--football); --sport-2: var(--football-2); --sport-soft: var(--football-soft); --sport-line: var(--football-line); }
.sport-icon { background: var(--padel-soft); color: var(--padel-2); }
.sport-icon.football { background: var(--football-soft); color: var(--football-2); }
.sport-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 3px; font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; background: var(--sport-soft, var(--padel-soft)); color: var(--sport-2, var(--padel-2)); border: 1px solid var(--sport-line, var(--padel-line)); }
.sport-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Navigation v3: built around the two sports ---------- */
.nav-links a.nav-sport { display: inline-flex; align-items: center; gap: 8px; }
.nav-links a.nav-sport::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sport); box-shadow: 0 0 10px var(--sport); }
.nav-links a.nav-sport::after { background: var(--sport); }
.nav-links a.nav-sport.is-active { color: var(--sport-2); }
.signup-choices { min-width: 290px; }
.dropdown a.signup-choice { align-items: flex-start; gap: 12px; padding: 12px; }
.signup-choice svg { width: 20px; height: 20px; color: var(--brand-blue); flex: none; margin-top: 2px; }
.signup-choice + .signup-choice svg { color: var(--brand-green); }
.signup-choice span { display: flex; flex-direction: column; gap: 2px; }
.signup-choice strong { color: var(--hi); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.signup-choice small { color: var(--muted); font-size: 12px; }

/* mobile menu */
.mm-sports { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mm-sport { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 8px; background: var(--sport-soft); border: 1px solid var(--sport-line); }
.mm-sport svg { width: 28px; height: 28px; color: var(--sport-2); margin-bottom: 8px; }
.mm-sport strong { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: -0.01em; }
.mm-sport small { color: var(--muted); font-size: 12px; }
.mm-list { display: grid; border-top: 2px solid; border-image: var(--brand-flow) 1; }
.mm-list a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mm-signup { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-signup a { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.03); }
.mm-signup strong { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mm-signup small { color: var(--muted); font-size: 12px; }

/* sport dock: two big buttons, always visible on phones */
.sport-dock { display: none; }
@media (max-width: 760px) {
  .sport-dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 44;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 14px;
    background: rgba(8, 9, 8, 0.94); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  }
  /* the two sports side by side are the brand; a hairline in both colours ties them together */
  .sport-dock::before { content: ""; position: absolute; top: -1px; inset-inline: 16px; height: 2px; border-radius: 2px; background: var(--brand-flow); }
  /* white ink needs a slightly deeper court blue / pitch green than the tokens to stay readable */
  .dock-btn { height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: var(--sport); background: color-mix(in srgb, var(--sport) 78%, #000); }
  .dock-btn svg { width: 20px; height: 20px; }
  .sticky-cta { display: none !important; }
  body { padding-bottom: 76px; }
  /* a page that ends in the footer lets the footer run under the dock (its own padding keeps the words clear) */
  body:has(> .footer), body:has(footer.footer) { padding-bottom: 0; }
  .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  body.book .sport-dock { display: none; }
  body.book { padding-bottom: 0; }
  body.nav-open .sport-dock { display: none; }
}
.mobile-menu { background: var(--bg); gap: 0; justify-content: flex-start; }
.mobile-menu .mm-actions { margin-top: 24px; }

/* =====================================================================
   Light theme · RTL · language & theme controls
   Every colour below is a token swap, so every component follows along.
   ===================================================================== */
:root[data-theme="light"] {
  /* daylight: the logo's cool light grey, its ink for text, and the deep blue and green that read on it */
  --bg: #eef1f5; --bg-1: #f3f5f8; --bg-2: #f8f9fb; --bg-3: #e3e7ee; --bg-4: #d5dbe5;
  --surface: #f8f9fb; --surface-2: #fcfdfe; --glass: rgba(248, 249, 251, 0.96);
  --line: rgba(7, 11, 18, 0.11); --line-2: rgba(7, 11, 18, 0.19);
  --text: #0b1220; --muted: #46505f; --dim: #5a6473;
  --blue: #0a7743; --blue-2: #075f35; --blue-3: #8fd3ad;
  --blue-soft: rgba(10, 119, 67, 0.12); --blue-glow: rgba(10, 119, 67, 0.24); --on-accent: #ffffff;
  --padel: #2456c8; --padel-2: #1b46a8; --padel-soft: rgba(36, 86, 200, 0.12); --padel-line: rgba(36, 86, 200, 0.35);
  --football: #0a7743; --football-2: #075f35; --football-soft: rgba(10, 119, 67, 0.12); --football-line: rgba(10, 119, 67, 0.35);
  --green: #0a7743; --green-soft: rgba(10, 119, 67, 0.12);
  --red: #b8283a; --red-soft: rgba(184, 40, 58, 0.1);
  --amber: #2456c8; --amber-soft: rgba(36, 86, 200, 0.12);
  --gold: #2456c8; --gold-soft: rgba(36, 86, 200, 0.13);
  /* white ink reads at 5:1 or better along the whole gradient */
  --brand-blue: #2456c8; --brand-green: #0a7743;
  --brand-grad: linear-gradient(120deg, #2456c8 0%, #0c7d68 58%, #0a7743 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(36, 86, 200, 0.12), rgba(10, 119, 67, 0.12));
  --brand-line: rgba(36, 86, 200, 0.32); --on-brand: #ffffff;
  --brand-blue-rgb: 36, 86, 200; --brand-glow: rgba(18, 104, 134, 0.3); --brand-sheen: rgba(4, 19, 29, 0.2);
  --on-red: #ffffff; --on-amber: #ffffff;
  --shadow: 0 18px 44px -26px rgba(7, 11, 18, 0.42), 0 2px 6px -2px rgba(7, 11, 18, 0.08);
  --ink: 7, 11, 18; --blue-rgb: 10, 119, 67; --hi: #070b12; --red-2: #b8283a;
  color-scheme: light;
}
/* daylight: a breath of padel blue from one corner and of pitch green from the other */
:root[data-theme="light"] body { background: radial-gradient(900px 480px at 6% -6%, rgba(36, 86, 200, 0.06), transparent 60%), radial-gradient(1100px 520px at 85% -8%, rgba(10, 119, 67, 0.07), transparent 62%), var(--bg); color: var(--text); }
/* panels float a little off the stone background instead of glaring white */
:root[data-theme="light"] .card { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 30px -24px rgba(7, 11, 18, 0.4); }
:root[data-theme="light"] .card { background: var(--surface); }
:root[data-theme="light"] .glass { background: var(--glass); }
:root[data-theme="light"] .nav.is-solid, :root[data-theme="light"] .nav.nav-solid { background: var(--glass); }
/* Nav labels are white by default (they sit over the dark 3D hero). In light mode
   they need the dark ink, on the solid bar as well as over the hero. */
:root[data-theme="light"] .nav-links a,
:root[data-theme="light"] .nav-text-link { color: rgba(13, 20, 32, 0.78); }
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-text-link:hover { color: var(--text); }
:root[data-theme="light"] .nav-links a.is-active:not(.nav-sport) { color: var(--hi); }
:root[data-theme="light"] .nav-toggle span { background: var(--text); }
:root[data-theme="light"] .mobile-menu { background: var(--surface); }
:root[data-theme="light"] .dropdown { background: var(--surface); }
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea { background-color: var(--surface); }
:root[data-theme="light"] .btn-ghost { --btn-bg: var(--surface-2); }
:root[data-theme="light"] .toast { background: var(--surface); color: var(--text); }
:root[data-theme="light"] .footer { background: var(--surface); }
:root[data-theme="light"] .outline-text { -webkit-text-stroke-color: rgba(13, 20, 32, 0.8); }
:root[data-theme="light"] .sport-dock { background: var(--glass); }
/* the 3D stage is a daytime scene in the light theme — see arena.css */

/* theme + language buttons */
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.icon-btn:hover { color: var(--text); border-color: var(--brand-blue); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
:root[data-theme="light"] .icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: block; }
/* the same switch written out as a menu row (phone menus of the dashboards) */
:root[data-theme="dark"] [data-theme-toggle] .i-moon, :root[data-theme="light"] [data-theme-toggle] .i-sun { display: none; }
@media (max-width: 1080px) { .nav-right .icon-btn { width: 40px; height: 40px; } }

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: var(--font-ar), var(--font-body); }
[dir="rtl"] .display, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .h2, [dir="rtl"] .hero-title, [dir="rtl"] .story-title, [dir="rtl"] .book-title {
  font-family: var(--font-ar), var(--font-display); letter-spacing: 0; line-height: 1.3;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .label, [dir="rtl"] .badge, [dir="rtl"] .btn { letter-spacing: 0; }
[dir="rtl"] .btn:hover svg.arrow, [dir="rtl"] .link-arrow:hover i { transform: translateX(-6px); }
[dir="rtl"] .btn svg.arrow, [dir="rtl"] .card-arrow svg, [dir="rtl"] .link-arrow i { transform: scaleX(-1); }
[dir="rtl"] .dropdown { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .toasts { right: auto; left: 20px; }
[dir="rtl"] .story-card { border-left: 1px solid var(--line); border-right: 2px solid var(--blue); }
[dir="rtl"] .bk-value, [dir="rtl"] .summary-list dd { text-align: left; }
[dir="rtl"] .prog-item:hover { padding-left: 8px; padding-right: 18px; }
[dir="rtl"] .hs-panel { left: auto; right: var(--pad); }
[dir="rtl"] .cc-num { left: auto; right: 20px; }
[dir="rtl"] .cc-status { right: auto; left: 14px; }

/* =====================================================================
   Light theme, pass 2 — the leftover hard-coded whites.
   Every rule below fixes a component that painted white text or a white
   veil on what is now a white surface. Dark mode is untouched.
   ===================================================================== */
:root[data-theme="light"] .link:hover,
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-text-link:hover,
:root[data-theme="light"] .dropdown a:hover,
:root[data-theme="light"] .dropdown button:hover,
:root[data-theme="light"] .footer a:hover,
:root[data-theme="light"] .input-group .input-action:hover,
:root[data-theme="light"] .modal-close:hover,
:root[data-theme="light"] .empty h3,
:root[data-theme="light"] .signup-choice strong,
:root[data-theme="light"] .mobile-menu a.mm-link { color: var(--text); }
:root[data-theme="light"] .dropdown a:hover,
:root[data-theme="light"] .dropdown button:hover,
:root[data-theme="light"] .input-group .input-action:hover,
:root[data-theme="light"] .modal-close:hover { background: rgba(9, 14, 24, 0.06); }
:root[data-theme="light"] .select option { background: var(--surface); color: var(--text); }
:root[data-theme="light"] .card-hover:hover { background: var(--bg-3); border-color: var(--brand-line); }
:root[data-theme="light"] .modal-backdrop { background: rgba(9, 14, 24, 0.42); }
:root[data-theme="light"] .icon-btn { background: var(--surface); }
:root[data-theme="light"] .mm-signup a { background: var(--bg-3); }
:root[data-theme="light"] .badge,
:root[data-theme="light"] .tabs-inline { background: var(--bg-3); }
:root[data-theme="light"] .sticky-cta { background: var(--glass); }
:root[data-theme="light"] .mm-sport strong { color: var(--text); }
/* the hero sits on the night-time 3D stage in both themes */
:root[data-theme="light"] .hero .btn-ghost { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.28); }

/* =====================================================================
   RTL, pass 2 — shared components.
   Arabic is set in Cairo, which has no small-caps personality, so the
   display tracking and forced uppercase come off.
   ===================================================================== */
[dir="rtl"] .display-xl,
[dir="rtl"] .display-l,
[dir="rtl"] .display-m,
[dir="rtl"] .display-s { text-transform: none; letter-spacing: 0; line-height: 1.15; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .label,
[dir="rtl"] .badge,
[dir="rtl"] .sport-chip,
[dir="rtl"] .mm-list a,
[dir="rtl"] .mm-sport strong,
[dir="rtl"] .mm-signup strong,
[dir="rtl"] .signup-choice strong,
[dir="rtl"] .dock-btn,
[dir="rtl"] .tabs-inline button,
[dir="rtl"] .tabs-inline a { letter-spacing: 0; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .label,
[dir="rtl"] .sport-chip,
[dir="rtl"] .mm-list a,
[dir="rtl"] .mm-sport strong,
[dir="rtl"] .mm-signup strong,
[dir="rtl"] .signup-choice strong,
[dir="rtl"] .dock-btn { text-transform: none; }
[dir="rtl"] .modal-close { right: auto; left: 16px; }
[dir="rtl"] .sticky-cta .btn { margin-left: 0 !important; margin-right: auto; }
[dir="rtl"] .wa-float { right: auto; left: 20px; }
[dir="rtl"] .input-group .input-action { right: auto; left: 8px; }
[dir="rtl"] .input-group .input { padding-right: 14px; padding-left: 48px; }
[dir="rtl"] .toast { text-align: right; }
[dir="rtl"] .empty h3 { text-transform: none; }

/* =====================================================================
   Light theme — surfaces that were drawn with fixed dark colours.
   The player dashboard, the owner portal, the booking flow and the partner
   page used hard-coded near-black panels; in the light theme their ink turns
   dark, so the panels must turn light too.
   ===================================================================== */
:root[data-theme="light"] .ow-body { --panel: var(--surface); --line-3: rgba(9, 14, 24, 0.06); }
:root[data-theme="light"] .ow-pop-panel { background: var(--surface); }
:root[data-theme="light"] .ow-quick-btn:hover { background: var(--bg-3); }
:root[data-theme="light"] .ow-cal-corner, :root[data-theme="light"] .ow-cal-head { background: var(--bg-3); }
:root[data-theme="light"] .ow-cal-times { background: var(--surface); }
:root[data-theme="light"] .ow-cal-loading { background: rgba(230, 233, 226, 0.7); }
:root[data-theme="light"] .dash-subnav { background: var(--glass); }
:root[data-theme="light"] .next-card { background: radial-gradient(120% 140% at 100% 0%, var(--blue-soft) 0%, var(--surface) 70%); }
:root[data-theme="light"] .next-card.is-padel, :root[data-theme="light"] .next-card.is-football {
  background: linear-gradient(135deg, var(--sport-soft) 0%, rgba(255, 255, 255, 0) 55%), radial-gradient(120% 140% at 100% 0%, var(--sport-soft) 0%, var(--surface) 60%), var(--surface);
}
:root[data-theme="light"] .fact { background: var(--glass); }
:root[data-theme="light"] .ticket { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
:root[data-theme="light"] .bk-card { background: var(--surface); }
:root[data-theme="light"] .bk-card:hover { background: var(--bg-3); }
:root[data-theme="light"] .success-ticket { background: var(--surface); }
:root[data-theme="light"] .bk-bar { background: var(--glass); }
:root[data-theme="light"] .bk-progress li.is-current { color: var(--text); }
:root[data-theme="light"] .pt-feature { background: var(--surface); }
:root[data-theme="light"] .pt-preview { background: var(--surface); }
:root[data-theme="light"] .pt-card { background: var(--surface); }
:root[data-theme="light"] .btn-danger { --btn-fg: var(--red); --btn-bd: rgba(198, 40, 57, 0.3); }
/* the sport-page hero is a daytime scene now: its ghost button uses the normal light style */
:root[data-theme="light"] .hero .btn-ghost { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-2); }
/* the arena accent (#2fe07a) is too pale on white — flat sections use the theme green */
:root[data-theme="light"] .arena { --lime: var(--blue); }

/* a filled button inside the footer keeps its own ink (the footer tints plain links) */
.footer a.btn { color: var(--btn-fg); }
.footer a.btn:hover { color: var(--btn-fg); }
:root[data-theme="light"] .badge-cancelled, :root[data-theme="light"] .badge-no_show,
:root[data-theme="light"] .badge-inactive, :root[data-theme="light"] .badge-refunded { color: var(--red); }
/* sport chips sitting on court artwork */
:root[data-theme="light"] .ow-court-art .sport-chip, :root[data-theme="light"] .pt-court .sport-chip,
:root[data-theme="light"] .pt-preview-art .sport-chip { background: var(--glass); }

/* ==== Arabic script is never letter-spaced ==== */
/* Tracking pulls joined Arabic letters apart; only the Latin wordmark keeps its spacing. */
[dir="rtl"] body *:not(.brand *, .adm-brand *, .ow-brand *) { letter-spacing: 0 !important; }

/* =====================================================================
   One theme for the whole site + the brand mix (padel blue into football green).
   Every page follows the light / dark switch except the home page and its 3D
   arena, which are dark in both. What is below: the pieces of the shared
   chrome that the brand recolour and the daylight palette still needed.
   ===================================================================== */
/* the second line of the sign-in headline is the brand in one stroke */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .auth-visual .text-blue { background: var(--brand-flow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
/* by day the sign-in art is a pale court instead of a floodlit one */
:root[data-theme="light"] .auth-visual {
  background: radial-gradient(70% 55% at 92% 100%, rgba(var(--blue-rgb), 0.18), transparent 70%), radial-gradient(120% 80% at 30% 20%, rgba(var(--brand-blue-rgb), 0.22) 0%, rgba(var(--brand-blue-rgb), 0.08) 42%, transparent 75%), var(--bg-3);
  border-inline-end: 1px solid var(--line);
}
:root[data-theme="light"] .sport-dock { box-shadow: var(--shadow); }
:root[data-theme="light"] .wa-float { box-shadow: 0 14px 30px -14px rgba(18, 140, 74, 0.6); }

/* the phone header fits at 360px: brand, language, "find a court", menu */
.brand > span { min-width: 0; }
.nav-right { flex: none; }
@media (max-width: 480px) {
  .nav-inner { gap: 10px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-sm { height: 40px; padding: 0 12px; }
  .brand { gap: 9px; }
}

/* blue → green follows the reading direction */
[dir="rtl"] { --brand-flow: linear-gradient(270deg, var(--brand-blue), var(--brand-green)); }
[dir="rtl"] .nav-links a::after { transform-origin: left; }
[dir="rtl"] .nav-links a:hover::after { transform-origin: right; }

/* Arabic has no capitals to carry a 10px tracked label, so the small pieces get a readable floor */
[dir="rtl"] .btn { font-size: 13px; font-weight: 700; }
[dir="rtl"] .btn-sm { font-size: 12.5px; }
[dir="rtl"] .btn-lg { font-size: 15px; }
[dir="rtl"] .label { font-size: 13px; font-weight: 600; }
[dir="rtl"] .eyebrow { font-size: 13px; font-weight: 700; }
[dir="rtl"] .badge { font-size: 12px; font-weight: 600; }
[dir="rtl"] .sport-chip { font-size: 12px; }
[dir="rtl"] .tabs-inline button, [dir="rtl"] .tabs-inline a { font-size: 13px; font-weight: 600; }
[dir="rtl"] .nav-links a { font-size: 15px; }
[dir="rtl"] .nav-text-link { font-size: 14px; font-weight: 600; }
[dir="rtl"] .signup-choice strong, [dir="rtl"] .mm-signup strong { font-size: 13.5px; }
[dir="rtl"] .dock-btn { font-size: 14px; }
/* the line under the wordmark is translated, so in Arabic it is set like Arabic */
[dir="rtl"] .brand small { font-size: 11px; letter-spacing: 0; text-transform: none; }

/* =====================================================================
   The header on phones and tablets (up to 1080px).
   A slim bar — brand, search, the account, the menu — and a menu that is a
   page of its own: who you are, the two sports, the links, then language and theme.
   ===================================================================== */
:root { --nav-solid: 72px; }
.nav-m { display: none; }
@media (max-width: 1080px) {
  :root { --nav-h: 62px; --nav-solid: 62px; }
  .nav, .nav.is-solid, .nav.nav-solid { --nav-h: 62px; height: 62px; }
  .nav-inner { gap: 10px; padding-inline: 14px; }
  .nav .brand { gap: 10px; min-width: 0; }
  .nav .brand svg, .nav .brand img.brand-logo { width: 36px; height: 36px; flex: none; }
  .nav .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the wordmark is an svg too: give it its own size, more specific than the 36 px rule for the mark, and never squeeze it */
  .nav .brand .brand-word { width: auto; height: 18px; flex: none; }
  .nav-right { gap: 8px; }
  .nav-m { display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .nav-m-btn, .nav-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.04); color: var(--text); }
  .nav-m-btn svg { width: 19px; height: 19px; }
  .nav-m-user .avatar { width: 38px; height: 38px; font-size: 13px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--brand-line); }
  .nav-m-login { gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--brand-line); background: var(--brand-grad-soft); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .nav-m-login svg { width: 16px; height: 16px; color: var(--brand-blue); }
  .nav-toggle { display: grid; }
  body.nav-open .nav { background: var(--bg); border-bottom-color: var(--line); }
  body.nav-open .nav-m { visibility: hidden; }

  .mobile-menu { position: fixed; inset: 0; z-index: 49; display: block; padding: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; }
  .nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mm-inner { display: grid; gap: 16px; max-width: 560px; margin-inline: auto; padding: calc(var(--nav-h) + 16px) 16px calc(28px + env(safe-area-inset-bottom)); }

  .mm-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .mm-user .avatar { width: 48px; height: 48px; flex: none; font-size: 16px; }
  .mm-user div { min-width: 0; display: grid; gap: 2px; }
  .mm-user strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mm-user small { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
  [dir="rtl"] .mm-user small { text-align: right; }
  .mm-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mm-quick a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.03); font-size: 14.5px; font-weight: 600; min-width: 0; }
  .mm-quick a.is-wide { grid-column: 1 / -1; border-color: var(--brand-line); background: var(--brand-grad-soft); }
  .mm-quick svg { width: 18px; height: 18px; flex: none; color: var(--brand-blue); }
  .mm-quick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .mm-guest { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--brand-line); background: var(--brand-grad-soft); }
  .mm-guest strong { font-size: 1.05rem; }
  .mm-guest > span { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
  .mm-guest-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .mm-guest-actions .btn { height: 46px; padding: 0 10px; min-width: 0; }

  .mm-sports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
  .mm-sport { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 0; padding: 14px; border-radius: 16px; background: var(--sport-soft); border: 1px solid var(--sport-line); }
  .mm-sport svg { grid-row: 1 / span 2; width: 30px; height: 30px; margin: 0; color: var(--sport-2); }
  .mm-sport strong { font-family: inherit; font-size: 1.05rem; line-height: 1.3; text-transform: none; letter-spacing: 0; }
  .mm-sport small { font-size: 12.5px; color: var(--muted); }

  .mm-list { display: grid; border: 1px solid var(--line); border-image: none; border-radius: 16px; overflow: hidden; background: rgba(var(--ink), 0.02); }
  .mm-list a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
  .mm-list a:last-child { border-bottom: 0; }
  .mm-list a::after { content: ""; margin-inline-start: auto; width: 8px; height: 8px; border-top: 1.5px solid var(--dim); border-inline-end: 1.5px solid var(--dim); transform: rotate(45deg); flex: none; }
  [dir="rtl"] .mm-list a::after { transform: rotate(-45deg); }
  .mm-ico { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; background: rgba(var(--ink), 0.05); color: var(--muted); }
  .mm-ico svg { width: 17px; height: 17px; }
  .mm-list a.is-active { background: var(--brand-grad-soft); }
  .mm-list a.is-active .mm-ico { background: var(--brand-grad); color: var(--on-brand); }

  .mm-foot { display: grid; gap: 10px; }
  .mm-lang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); }
  .mm-lang a, .mm-lang span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .mm-lang .is-active { background: rgba(var(--ink), 0.08); color: var(--text); }
  .mm-theme, .mm-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; color: var(--text); }
  .mm-theme svg, .mm-logout svg { width: 18px; height: 18px; flex: none; }
  :root[data-theme="dark"] .mm-theme .i-moon, :root[data-theme="light"] .mm-theme .i-sun { display: none; }
  .mm-logout { color: var(--red-2); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
  :root[data-theme="light"] .mobile-menu { background: var(--bg); }
  :root[data-theme="light"] body.nav-open .nav { background: var(--bg); }
}
@media (max-width: 420px) {
  /* brand + "دخول" with its label + search + bag + menu need about 395 px: the label goes first */
  .nav .brand small { display: none; }
  .nav-m-login span { display: none; }
  .nav-m-login { width: 42px; padding: 0; }
}
@media (max-width: 359px) {
  .nav-inner { gap: 8px; padding-inline: 12px; }
  .nav-right { gap: 6px; }
  .nav .brand { gap: 8px; }
  .nav .brand .brand-mark { width: 32px; height: 32px; }
  .nav .brand .brand-word { height: 15px; }
  .nav-m-btn, .nav-toggle, .nav-m-login { width: 38px; height: 38px; }
}
