/* ============================================================================
   MO7SEN FC — LIGHT THEME (v4)
   Cream background, white cards, dark forest green primary, bright green accent.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
  --bg:            #f5f1e8;
  --bg-2:          #ede7d6;
  --surface:       #ffffff;
  --surface-2:     #faf8f1;
  --surface-3:     #f0ebd9;

  --border:        #e8e2d0;
  --border-strong: #d4cdb9;

  --text:          #1a1f1c;
  --text-muted:    #5a6360;
  --text-dim:      #8b9590;

  --primary:       #1d3a2e;        /* dark forest green */
  --primary-2:     #143028;
  --primary-3:     #0d2620;

  --accent:        #10b981;        /* bright emerald */
  --accent-2:      #059669;
  --accent-dim:    rgba(16, 185, 129, 0.10);
  --accent-soft:   #d1fae5;

  --danger:        #ef4444;
  --danger-dim:    rgba(239, 68, 68, 0.10);
  --warning:       #f59e0b;
  --warning-dim:   rgba(245, 158, 11, 0.10);

  --team-1:        #10b981;
  --team-2:        #2563eb;

  --font-display:  "Outfit", "Cairo", system-ui, sans-serif;
  --font-body:     "Outfit", "Cairo", system-ui, -apple-system, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius:        16px;
  --radius-sm:     12px;
  --radius-xs:     8px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 2px rgba(13, 38, 32, 0.04);
  --shadow:        0 4px 12px rgba(13, 38, 32, 0.06);
  --shadow-lg:     0 12px 32px rgba(13, 38, 32, 0.08);

  --t:             180ms cubic-bezier(0.4, 0, 0.2, 1);
}

[lang="ar"] {
  --font-display: "Cairo", system-ui, sans-serif;
  --font-body:    "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── Topbar ─────────────────────────────────────────────────────────── */

.topbar {
  background: linear-gradient(180deg, var(--primary-3) 0%, var(--primary) 100%);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--t);
}
.icon-btn:hover { background: rgba(255,255,255,0.18); }

/* ─── Page layout ────────────────────────────────────────────────────── */

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 980px) {
  .main-grid { grid-template-columns: 1fr 320px; align-items: start; }
}

.main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sidebar  { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ─── Card ───────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.card-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--t);
}
.card-link:hover { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────────────────────── */

/* ─── v12: Hero with stadium photo background ──────────────────────────
   Single unified banner with stadium photo bg + dark gradient overlay
   for text legibility. Content positioned on top with absolute layers
   for the corner count + status pill. */

.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  background-color: #0a1f17;
  background-image: url("https://images.unsplash.com/photo-1459865264687-595d652de67e?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}
@media (min-width: 760px) {
  .hero { min-height: 440px; }
}

/* Dark gradient overlay over the photo for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 31, 23, 0.88) 0%, rgba(10, 31, 23, 0.45) 55%, rgba(10, 31, 23, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Top row: "Next match" label on the left, player count on the right */
.hero-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 0;
  gap: 16px;
}
.hero-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
[lang="ar"] .hero-label-row { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hero-label-row svg { color: var(--accent-2); }

/* Player count chip in the top-right corner of the hero */
.hero-count-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
}
.hero-count-top svg { color: var(--accent-2); }
.hero-count-num strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-count-label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

/* Status pill: absolute-positioned in top-right just below the count */
.hero-status-pill {
  position: absolute;
  top: 64px;
  inset-inline-end: 24px;
  z-index: 2;
}

/* Hero body: title + meta + badges + CTA */
.hero-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin: 0;
}

.hero-meta-stack { display: flex; flex-direction: column; gap: 8px; }

/* Hero meta rows on dark bg: white text, accent icons */
.hero-body .hero-meta-row {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}
.hero-body .hero-meta-row svg { color: var(--accent-2); }
.hero-body .hero-meta-row a.map-link {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
}
.hero-body .hero-meta-row a.map-link:hover {
  color: #fff;
  text-decoration-color: var(--accent-2);
}

/* Badges row on hero (chips translucent on dark bg) */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.hero-body .info-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}
.hero-body .info-chip svg { color: var(--accent-2); }
.hero-body .info-chip.accent {
  background: rgba(16,185,129,0.22);
  border-color: rgba(16,185,129,0.4);
  color: #fff;
}

/* CTA row: large primary button */
.hero-cta-row {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--t);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.hero-cta-btn:hover { background: var(--accent-3); transform: translateY(-1px); }
.hero-cta-btn.danger { background: var(--danger); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25); }
.hero-cta-btn.danger:hover { background: #dc2626; }
.hero-cta-btn.disabled, .hero-cta-btn:disabled {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.hero-cta-btn.too-late {
  background: rgba(245,158,11,0.25);
  border: 1px solid var(--warning);
  color: #fff;
  box-shadow: none;
}

/* Hero note callout: yellow on dark */
.hero-body .hero-note {
  background: rgba(245, 158, 11, 0.18);
  border-inline-start-color: var(--warning);
  color: rgba(255,255,255,0.95);
}
.hero-body .hero-note strong { color: var(--warning); }
.hero-body .hero-note svg { color: var(--warning); }

/* Hero progress bar on dark bg */
.hero-body .hero-progress .label { color: rgba(255,255,255,0.92); }
.hero-body .hero-progress .label svg { color: var(--accent-2); }
.hero-body .hero-progress .label strong { color: #fff; }
.hero-body .hero-progress .label .muted { color: rgba(255,255,255,0.65); }
.hero-body .hero-progress .progress-track { background: rgba(255,255,255,0.15); }

/* Countdown on dark bg */
.hero-body .countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.hero-body .countdown-label { color: rgba(255,255,255,0.6); font-size: 12px; }
.hero-body .countdown-value { color: var(--accent-2); font-weight: 700; }


.hero-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.hero-meta-row + .hero-meta-row { margin-top: 0; }
.hero-meta-row .sep { opacity: 0.5; margin: 0 4px; }
.hero-meta-row svg { flex-shrink: 0; }

.hero-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hero-progress-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
}
.hero-progress-row .label {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-progress-row .label strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-progress-row .count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.progress-track {
  background: var(--surface-3);
  height: 8px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero info badges row */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.info-chip svg { color: var(--text-muted); flex-shrink: 0; }
.info-chip.accent svg { color: var(--accent-2); }

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.countdown-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.countdown-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.countdown-value.live { color: var(--accent); }

/* Hero visual panel (right side on desktop) */
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-3) 100%);
  min-height: 280px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-visual::before {
  /* Subtle pitch lines pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    linear-gradient(180deg, transparent 49.5%, rgba(255,255,255,0.06) 49.5%, rgba(255,255,255,0.06) 50.5%, transparent 50.5%);
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  bottom: 12%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 64%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  pointer-events: none;
}
.hero-visual-content { position: relative; z-index: 1; display: contents; }
.hero-status {
  align-self: flex-end;
  z-index: 1;
}
.hero-cta { z-index: 1; }

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}
.btn:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #dc2626; border-color: #dc2626; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.small { padding: 8px 14px; font-size: 13px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 0; }

/* Hero CTA — bigger, more prominent */
.hero-cta-btn {
  width: 100%;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--t);
}
.hero-cta-btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.hero-cta-btn.danger { background: var(--danger); border-color: var(--danger); }
.hero-cta-btn.danger:hover { background: #dc2626; }
.hero-cta-btn.disabled { opacity: 0.6; cursor: not-allowed; }
.hero-cta-btn.too-late { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); }
.hero-cta-btn.too-late:hover { background: rgba(255,255,255,0.16); }

/* ─── Inputs ─────────────────────────────────────────────────────────── */

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="datetime-local"], input[type="number"],
textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  transition: var(--t);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; min-height: 60px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235a6360' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-inline-end: 40px;
}
[dir="rtl"] select { background-position: left 14px center; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
input + label.field-label,
textarea + label.field-label,
select + label.field-label,
.pill-group + label.field-label,
.status-toggle + label.field-label { margin-top: 14px; }

input + .btn,
textarea + .btn,
select + .btn,
.pill-group + .btn,
.status-toggle + .btn { margin-top: 14px; }

input + input,
input + textarea,
input + select,
.btn + .btn { margin-top: 10px; }

/* ─── Status pill ────────────────────────────────────────────────────── */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid;
  background: var(--surface);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.status-pill.canceled { color: var(--danger);  border-color: var(--danger);  background: var(--danger-dim); }
.status-pill.waitlist { color: var(--warning); border-color: var(--warning); background: var(--warning-dim); }
.status-pill.ended    { color: var(--text-muted); border-color: var(--border-strong); background: var(--surface-2); }
.status-pill.live     { color: #fff; border-color: var(--accent); background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
.status-pill.open     { color: var(--accent-2); border-color: rgba(16, 185, 129, 0.4); background: var(--accent-soft); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* In hero visual (white text on dark green) */
.hero-visual .status-pill.open {
  background: #fff;
  color: var(--accent-2);
  border-color: #fff;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* ─── Other matches: cards grid ──────────────────────────────────────── */

.match-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .match-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .match-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.match-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.match-card.is-me { border-color: var(--accent); background: var(--accent-soft); }
.match-card.canceled { opacity: 0.55; }
.match-card.canceled .match-card-title { text-decoration: line-through; }

.match-card-body {
  display: flex;
  align-items: stretch;
  padding: 14px;
  gap: 14px;
}
.date-pill {
  flex: none;
  width: 56px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.date-pill .dow {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.date-pill .dom {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: var(--text); line-height: 1;
}
.date-pill .mon {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.match-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.match-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.match-card-meta svg { color: var(--text-dim); flex-shrink: 0; }
.match-card-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  font-size: 13px;
}
.match-card-foot .joined-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
}
.match-card-foot .joined-count svg { color: var(--text-muted); }
.match-card-foot strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.match-card-actions {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
}
.match-card-actions .btn { flex: 1; padding: 8px 12px; font-size: 13px; }

/* ─── Players: tile grid ─────────────────────────────────────────────── */

.player-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 600px) { .player-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .player-grid { grid-template-columns: repeat(3, 1fr); } }

.player-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
  transition: var(--t);
}
.player-tile.is-me { border-color: var(--accent); background: var(--accent-soft); }
.player-tile.waitlist { opacity: 0.7; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.avatar.c0 { background: linear-gradient(135deg, #10b981, #059669); }
.avatar.c1 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.avatar.c2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.avatar.c3 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.avatar.c4 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.avatar.c5 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.avatar.c6 { background: linear-gradient(135deg, #ec4899, #db2777); }
.avatar.c7 { background: linear-gradient(135deg, #84cc16, #65a30d); }

.player-tile .player-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.player-tile .player-name {
  font-size: 14px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-tile .player-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.player-tile.is-me .player-name::after {
  content: "YOU";
  margin-inline-start: 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  font-weight: 700;
}
.player-tile-actions {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.player-tile a.player-phone {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); text-decoration: none;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.player-tile a.player-phone:hover { color: #25D366; }

.list-divider {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ─── Chips ──────────────────────────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: 1px solid;
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
}
.chip.paid    { color: var(--accent-2); border-color: rgba(16,185,129,0.3); background: var(--accent-soft); }
.chip.unpaid  { color: var(--text-muted); }
.chip.team-1  { color: var(--team-1); border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); }
.chip.team-2  { color: var(--team-2); border-color: rgba(37,99,235,0.3); background: rgba(37,99,235,0.08); }
.chip.pos-gk  { color: #d97706; background: #fef3c7; border-color: #fcd34d; }
.chip.pos-def { color: #1d4ed8; background: #dbeafe; border-color: #93c5fd; }
.chip.pos-mid { color: #ca8a04; background: #fef9c3; border-color: #fde047; }
.chip.pos-att { color: #be123c; background: #ffe4e6; border-color: #fda4af; }

/* ─── Pill-group toggle (position selector) ──────────────────────────── */

.pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill-toggle {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--t);
  flex: 1;
  min-width: 60px;
}
.pill-toggle:hover { border-color: var(--text-muted); color: var(--text); }
.pill-toggle.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Status toggle for admin */
.status-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.status-toggle button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--t);
}
.status-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.status-toggle button.active.canceled { background: var(--danger-dim); color: var(--danger); }

/* ─── How it works sidebar ───────────────────────────────────────────── */

.how-list { display: flex; flex-direction: column; gap: 16px; }
.how-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.how-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.how-text .how-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.how-text .how-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── Joined-state card ──────────────────────────────────────────────── */

.joined-state {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}
.joined-state-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.joined-state-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-2);
}
.joined-state-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Map link ───────────────────────────────────────────────────────── */

.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: var(--t);
}
.map-link:hover { color: var(--accent-2); border-bottom-color: var(--accent); }

/* ─── Banner ─────────────────────────────────────────────────────────── */

.banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--warning-dim);
  border: 1px solid var(--warning);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
}
.banner.danger { background: var(--danger-dim); border-color: var(--danger); }
.banner-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
}
.banner.danger .banner-title { color: var(--danger); }

/* ─── Stats row (focal match) ────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.stat-value.full { color: var(--warning); }
.stat-value.paid { color: var(--accent-2); }
.progress {
  margin-top: 8px;
  background: var(--surface-3);
  height: 4px;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  height: 100%;
  border-radius: var(--radius-pill);
}

/* ─── Empty states ───────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Skeleton loaders ───────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-xs);
}
.skeleton.line { height: 14px; }
.skeleton.line.w-30 { width: 30%; }
.skeleton.line.w-50 { width: 50%; }
.skeleton.line.w-70 { width: 70%; }
.skeleton.player { height: 56px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Toasts ─────────────────────────────────────────────────────────── */

.toast-wrap {
  position: fixed;
  inset-inline: 0;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 360px;
}
.toast.leaving { animation: toast-out 220ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.toast.success { background: var(--accent-2); }
.toast.error   { background: var(--danger); }
.toast.warn    { background: var(--warning); color: var(--primary-3); }

/* Toast with inline action button (Undo). Wider, has a button on the right. */
.toast.with-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline-end: 6px;
}
.toast.with-action .toast-text { line-height: 1.3; }
.toast-action {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t);
  flex-shrink: 0;
}
[lang="ar"] .toast-action { letter-spacing: 0; text-transform: none; font-size: 13px; }
.toast-action:hover { background: rgba(255, 255, 255, 0.28); }
.toast.warn .toast-action { background: rgba(13, 38, 32, 0.10); border-color: rgba(13, 38, 32, 0.20); }
.toast.warn .toast-action:hover { background: rgba(13, 38, 32, 0.18); }

@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* Skill-level chip (purple dot scale 1-3) */
.chip.skill-level {
  background: rgba(139, 92, 246, 0.10);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.28);
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
[lang="ar"] .chip.skill-level { letter-spacing: 0; }

/* Match-card corner share icon (replaces the View+Share buttons row) */
.match-card { position: relative; }
.match-card-share {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--t);
  z-index: 1;
}
.match-card-share:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* Admin: duplicate-match icon button (sits in match-row alongside edit/delete) */
.duplicate-match-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: var(--radius-xs);
  display: grid; place-items: center;
  cursor: pointer;
  transition: var(--t);
  flex-shrink: 0;
}
.duplicate-match-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ─── WhatsApp footer banner ─────────────────────────────────────────── */

.wa-footer {
  margin-top: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wa-footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.wa-footer-text { flex: 1; min-width: 200px; }
.wa-footer-title { font-weight: 600; font-size: 15px; color: var(--text); }
.wa-footer-sub   { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.wa-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--t);
  border: none;
}
.wa-btn:hover { background: var(--primary-2); }

/* ─── Admin: match list rows ─────────────────────────────────────────── */

.match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: var(--t);
}
.match-row:hover { border-color: var(--border-strong); }
.match-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.match-row-info { flex: 1; min-width: 0; }
.match-row-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.xbtn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--t);
}
.xbtn:hover { background: var(--danger-dim); border-color: var(--danger); color: var(--danger); }

/* ─── Login card (admin) ─────────────────────────────────────────────── */

.login-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow);
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-card .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.user-badge {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Teams display (admin) ──────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.team-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
}
.team-col.t1 { border-color: rgba(16,185,129,0.4); }
.team-col.t2 { border-color: rgba(37,99,235,0.4); }
.team-col-head {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.team-col.t1 .team-col-head { color: var(--team-1); }
.team-col.t2 .team-col-head { color: var(--team-2); }
.team-col-list { font-size: 14px; line-height: 1.7; color: var(--text); }
.team-col-list .empty { color: var(--text-dim); font-style: italic; }

/* ─── Mobile tweaks ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .app { padding: 16px 14px 24px; }
  .card { padding: 18px; }
  .hero-content { padding: 22px 20px; }
  .hero-visual { min-height: 200px; padding: 16px; }
  .hero-title { font-size: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .wa-footer { padding: 16px; }
}

/* ─── Admin roster (legacy ul.players list) ──────────────────────────── */

ul.players { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.player .player-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  width: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.player .player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player .player-name {
  font-weight: 500; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player .player-phone {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); text-decoration: none;
  font-variant-numeric: tabular-nums; direction: ltr;
}
.player .player-phone:hover { color: #25D366; }
.player .player-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.player.team-1 { border-color: rgba(16,185,129,0.4); }
.player.team-2 { border-color: rgba(37,99,235,0.4); }
.player.waitlist { opacity: 0.75; }

/* ─── v8 additions ───────────────────────────────────────────────────── */

/* Soft yellow callout for the hero "Note:" line — replaces the muted line */
.card-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: -8px 0 14px;
  line-height: 1.45;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--warning-dim);
  border-inline-start: 3px solid var(--warning);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.hero-note strong { color: var(--warning); font-weight: 700; }
.hero-note svg { flex-shrink: 0; margin-top: 2px; color: var(--warning); }

/* Skill chip is wider now (5 chars: ★★★☆☆) */
.chip.skill-level {
  letter-spacing: 1px;
  font-feature-settings: normal;
}

/* Friendly empty state with icon + heading + paragraph + WhatsApp CTA */
.empty-state-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
}
.empty-state-rich svg { color: var(--text-dim); }
.empty-state-rich h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.empty-state-rich p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 8px;
  max-width: 420px;
  line-height: 1.5;
}
.empty-state-rich .btn { width: auto; padding: 12px 28px; }

/* Admin: unpaid summary strip above the roster */
.unpaid-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--warning-dim);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.unpaid-summary-text {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.unpaid-summary-text strong { color: var(--warning); font-weight: 700; }
.unpaid-summary .btn { width: auto; flex-shrink: 0; }

/* Admin: at narrow screens, let match-row buttons wrap below the title
   instead of fighting for horizontal space with title + meta */
@media (max-width: 480px) {
  .match-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .match-row .match-row-info { flex-basis: 100%; min-width: 0; }
  .match-row .duplicate-match-btn,
  .match-row .edit-match-btn,
  .match-row .delete-match-btn,
  .match-row .icon-btn,
  .match-row .xbtn {
    margin-inline-start: 0;
  }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── v10 styles ─────────────────────────────────────────────────────── */

/* Modal (used by OTP login + audit-log viewer) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 38, 32, 0.55);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 16px;
  animation: modal-fade 160ms ease-out;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
}
.modal-wide { max-width: 880px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
}
.modal-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.45;
}
.modal-sub strong { color: var(--text); font-family: var(--font-mono); }

/* Skill-tier dual-select row in admin form */
.skill-tier-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.skill-tier-row select { flex: 1; min-width: 0; }
.skill-tier-sep {
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
[lang="ar"] .skill-tier-sep { transform: scaleX(-1); }

/* MVP vote button on player tile */
.mvp-vote-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
[lang="ar"] .mvp-vote-btn { letter-spacing: 0; text-transform: none; font-size: 12px; }
.mvp-vote-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-dim);
}
.mvp-vote-btn.voted {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-dim);
}

/* MVP results banner under the player grid */
.mvp-banner {
  background: linear-gradient(135deg, var(--warning-dim), var(--surface-2));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
}
.mvp-banner .muted { color: var(--text-muted); font-size: 13px; }

/* No-show indicator on player tile (player-side) */
.player-tile.no-show .player-name { text-decoration: line-through; opacity: 0.7; }
.chip.no-show-chip {
  color: var(--danger);
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.3);
}

/* No-show toggle button (admin) */
.chip.no-show-toggle {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}
.chip.no-show-toggle:hover {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}
.chip.no-show-active {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
  cursor: pointer;
}
.chip.no-show-active:hover {
  background: var(--surface-2);
  color: var(--text-muted);
}
.player.is-no-show .player-name { text-decoration: line-through; opacity: 0.6; }

/* Audit log table */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.audit-table th, .audit-table td {
  padding: 8px 10px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.audit-table th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  position: sticky; top: 0;
}
[lang="ar"] .audit-table th { letter-spacing: 0; text-transform: none; font-size: 13px; }
.audit-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
.audit-table .details-cell {
  max-width: 360px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inline "link" button (used for "Forgot password?" under sign-in) */
.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-2);
  padding: 8px 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
  text-underline-offset: 3px;
  align-self: flex-start;
}
.btn-link:hover { color: var(--primary); text-decoration-color: currentColor; }

/* ─── v11: org switcher + pitches list ───────────────────────────────── */

#orgSwitcher select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  max-width: 220px;
}

.pitch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}
.pitch-row-info { flex: 1; min-width: 0; }
.pitch-row-name { font-weight: 600; color: var(--text); }
.pitch-row-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skill override star button on roster row — slightly different than other
   icon-btns so it doesn't compete with the position chip visually */
.player-actions .icon-btn.override-skill {
  width: 26px; height: 26px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0;
  font-size: 13px;
}
.player-actions .icon-btn.override-skill:hover {
  background: var(--warning-dim);
  color: var(--warning);
  border-color: var(--warning);
}

/* ==============================================================
   v12 — Visual overhaul: topbar tabs, hero with stadium photo,
   sidebar Quick Actions, How-it-works grid row, footer, install
   banner, onboarding page.
   ============================================================== */

/* ─── Topbar v2 ───────────────────────────────────────────────── */
.topbar-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-v2 .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(29,58,46,0.18));
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.topbar-tab {
  display: flex; align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--t);
  position: relative;
}
.topbar-tab:hover { color: var(--text); }
.topbar-tab.active {
  color: var(--primary);
  background: rgba(29,58,46,0.06);
}

.topbar-v2 .icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.topbar-v2 .icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.topbar-v2 .icon-btn.cta {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.topbar-v2 .icon-btn.cta:hover {
  background: var(--primary);
  color: white;
}
.topbar-v2 .icon-btn svg { color: currentColor; opacity: 0.9; }

@media (max-width: 880px) {
  .topbar-v2 { grid-template-columns: auto auto; padding: 12px 16px; }
  .topbar-nav { display: none; }
  .brand-tag { display: none; }
}

/* ─── Hero v2 (stadium photo background) ─────────────────────── */
.hero-v2 {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  background-color: #0d2620;
  background-image:
    linear-gradient(135deg, rgba(13,38,32,0.88) 0%, rgba(29,58,46,0.7) 50%, rgba(13,38,32,0.95) 100%),
    url('https://images.unsplash.com/photo-1551958219-acbc608c6377?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  isolation: isolate;
}
.hero-v2::before {
  /* Stadium-light flares accent */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.14), transparent 35%);
  pointer-events: none;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13,38,32,0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-v2 > * { position: relative; z-index: 1; }

.hero-top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-label-row {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(16,185,129,0.18);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7b7;
}
[lang="ar"] .hero-label-row { letter-spacing: 0; text-transform: none; font-size: 13px; }
.hero-label-row svg { color: currentColor; }

.hero-count-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: white;
}
.hero-count-num strong { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.hero-count-label { color: rgba(255,255,255,0.7); font-size: 12px; }

.hero-status-pill {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
}
[lang="ar"] .hero-status-pill { left: auto; right: 22px; }
.hero-status-pill .pill { font-size: 12px; padding: 4px 12px; }

.hero-body {
  display: flex; flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.hero-v2 .hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: white;
  line-height: 1.1;
}
.hero-meta-stack { display: flex; flex-direction: column; gap: 6px; }
.hero-v2 .hero-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.hero-v2 .hero-meta-row svg { color: var(--accent); }
.hero-v2 .map-link { color: white; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 3px; }
.hero-v2 .map-link:hover { text-decoration-color: white; }
.hero-v2 .hero-note {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.5);
  color: rgba(255,255,255,0.95);
  border-inline-start-color: var(--accent);
}
.hero-v2 .hero-note strong { color: var(--accent); }
.hero-v2 .hero-note svg { color: var(--accent); }

.hero-v2 .hero-badges { gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hero-v2 .info-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-weight: 600;
}
.hero-v2 .info-chip.accent {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.4);
  color: #6ee7b7;
}
.hero-v2 .info-chip svg { color: currentColor; opacity: 0.9; }

.hero-cta-row {
  margin-top: auto;
  padding-top: 16px;
  display: flex; justify-content: flex-end;
}
.hero-cta-row .btn-primary {
  width: auto;
  min-width: 200px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}
.hero-cta-row .btn-primary:hover { background: #059669; transform: translateY(-1px); }
.hero-cta-row .btn-primary[disabled] { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); box-shadow: none; }

.hero-v2 .hero-countdown {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
}
.hero-v2 .hero-countdown .label { color: rgba(255,255,255,0.7); }
.hero-v2 .hero-countdown .value { color: white; }

@media (max-width: 720px) {
  .hero-v2 { padding: 18px 18px 22px; min-height: 320px; }
  .hero-status-pill { top: 14px; left: 14px; }
  [lang="ar"] .hero-status-pill { left: auto; right: 14px; }
  .hero-cta-row .btn-primary { width: 100%; }
}

/* ─── Sidebar v2: Quick Actions / Help / Stats ──────────────── */
.sidebar-card { padding: 16px 18px; }
.sidebar-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
[lang="ar"] .sidebar-head { letter-spacing: 0; text-transform: none; font-size: 14px; }
.sidebar-head svg { color: var(--accent); }

.quick-action {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: transparent;
  text-decoration: none;
  text-align: start;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--t);
  color: var(--text);
}
.quick-action:hover { background: var(--surface-2); }
.quick-action + .quick-action { border-top: 1px solid var(--border); border-radius: 0; }
.quick-action-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(29,58,46,0.06);
  color: var(--primary);
  border-radius: var(--radius-xs);
}
.quick-action-body { flex: 1; min-width: 0; }
.quick-action-title { display: block; font-weight: 600; font-size: 14px; color: var(--text); }
.quick-action-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.quick-action-arrow {
  color: var(--text-dim);
  font-size: 18px;
  flex-shrink: 0;
}
[lang="ar"] .quick-action-arrow { transform: scaleX(-1); }

.help-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  border-color: rgba(16,185,129,0.18);
}
.help-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}
.help-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.btn-wa-light {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(16,185,129,0.1);
  color: var(--accent);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--t);
}
.btn-wa-light:hover { background: rgba(16,185,129,0.18); }

.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-row .stat-label { font-size: 13px; color: var(--text-muted); }

/* ─── How-it-works full-width row ────────────────────────────── */
.how-row {
  margin-top: 20px;
  padding: 24px 0 12px;
}
.how-row-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.how-row-title svg { color: var(--accent); }
.how-row-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  transition: var(--t);
}
.how-card:hover {
  border-color: rgba(16,185,129,0.4);
  transform: translateY(-1px);
}
.how-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  background: rgba(29,58,46,0.06);
  color: var(--primary);
  border-radius: 50%;
}
.how-card-title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.how-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 940px) {
  .how-row-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .how-row-grid { grid-template-columns: 1fr; }
}

/* ─── Site footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.site-footer-copy { color: var(--text-muted); }
.site-footer-links { display: flex; gap: 18px; }
.site-footer-links a {
  color: var(--text-muted); text-decoration: none;
  transition: var(--t);
}
.site-footer-links a:hover { color: var(--text); }
.site-footer-social { display: flex; gap: 10px; }
.site-footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--t);
}
.site-footer-social a:hover {
  background: rgba(16,185,129,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── PWA install banner ─────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  max-width: calc(100vw - 32px);
}
.install-banner-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.install-banner-text { display: flex; flex-direction: column; line-height: 1.3; }
.install-banner-text strong { font-weight: 700; font-size: 14px; color: var(--text); }
.install-banner-text span { font-size: 12px; color: var(--text-muted); }
.install-banner .btn.small { width: auto; padding: 8px 14px; font-size: 13px; }
.install-banner .xbtn { color: var(--text-muted); width: 28px; height: 28px; }

/* ─── Onboarding page ────────────────────────────────────────── */
.onboard-main { max-width: 540px; margin: 0 auto; padding: 24px 16px; }
.onboard-card { padding: 28px 24px; }
.onboard-hero { text-align: center; margin-bottom: 24px; }
.onboard-hero-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  border-radius: 50%;
}
.onboard-hero h1 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.onboard-sub { color: var(--text-muted); margin: 0; font-size: 15px; }
.onboard-stage-title { font-weight: 700; color: var(--text); font-size: 16px; margin: 0 0 4px; }
.onboard-stage-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.onboard-already { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.onboard-already a { color: var(--accent); }
.field-hint {
  font-size: 12px; color: var(--text-muted);
  margin: -4px 0 12px; line-height: 1.4;
}

.slug-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 8px;
}
.slug-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.slug-prefix {
  padding: 10px 12px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-inline-end: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.slug-input input { border: none; background: transparent; padding: 10px 12px; flex: 1; min-width: 0; }
.slug-input input:focus { box-shadow: none; }

.onboard-success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 700;
}
#onboardSuccess { text-align: center; }
#onboardSuccess h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }

/* Admin onboarding checklist */
.onboard-checklist {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  border-color: rgba(16,185,129,0.2);
}
.checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.checklist-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: var(--t);
}
.checklist-item.done {
  opacity: 0.55;
  background: var(--surface-2);
}
.checklist-item.done .checklist-num {
  background: var(--accent);
  color: white;
}
.checklist-item.done .checklist-num::after { content: "✓"; }
.checklist-item.done .checklist-num span { display: none; }
.checklist-item.done .checklist-title { text-decoration: line-through; }
.checklist-item.done .btn { opacity: 0.5; }

.checklist-num {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(29,58,46,0.08);
  color: var(--primary);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}
.checklist-body { flex: 1; min-width: 0; }
.checklist-title { font-weight: 600; color: var(--text); font-size: 15px; }
.checklist-desc { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.checklist-item .btn { width: auto; flex-shrink: 0; }

@media (max-width: 540px) {
  .checklist-item { flex-wrap: wrap; }
  .checklist-item .btn { width: 100%; }
}

/* ─── v12: Player profile page ───────────────────────────────────────── */

.profile-card { padding: 24px; max-width: 720px; margin: 16px auto; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.profile-org {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}
.profile-skill {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-stars { color: var(--warning); letter-spacing: 1px; }

.avatar.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 26px;
  flex-shrink: 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.profile-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
}
.profile-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.profile-stat.warn .profile-stat-num { color: var(--danger); }
.profile-stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[lang="ar"] .profile-stat-label { letter-spacing: 0; text-transform: none; font-size: 13px; }

.profile-section {
  margin-bottom: 24px;
}
.profile-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

/* Position breakdown bars */
.position-bars { display: flex; flex-direction: column; gap: 8px; }
.pos-bar-row {
  display: grid;
  grid-template-columns: 50px 1fr 32px;
  align-items: center;
  gap: 10px;
}
.pos-bar-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.pos-bar-track {
  height: 10px;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.pos-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
.pos-bar-fill.pos-gk  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pos-bar-fill.pos-def { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.pos-bar-fill.pos-mid { background: linear-gradient(90deg, #10b981, #34d399); }
.pos-bar-fill.pos-att { background: linear-gradient(90deg, #ef4444, #f87171); }
.pos-bar-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: end;
}

/* Recent matches list on profile */
.profile-match-list { list-style: none; padding: 0; margin: 0; }
.profile-match-row a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--text);
  transition: var(--t);
}
.profile-match-row a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.profile-match-title { font-weight: 600; }
.profile-match-meta {
  font-size: 13px;
  color: var(--text-muted);
  grid-column: 1;
}
.profile-match-status {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[lang="ar"] .profile-match-status { letter-spacing: 0; text-transform: none; font-size: 12px; }
.profile-match-status.status-played   { background: var(--accent-dim); color: var(--accent); }
.profile-match-status.status-no-show  { background: var(--danger-dim); color: var(--danger); }
.profile-match-status.status-waitlist { background: var(--warning-dim); color: var(--warning); }
.profile-match-row.no-show .profile-match-title { text-decoration: line-through; opacity: 0.7; }

@media (max-width: 480px) {
  .profile-stats-grid { grid-template-columns: 1fr; }
  .profile-stat { padding: 14px; }
  .profile-stat-num { font-size: 26px; }
}

/* ─── v12.1: Suggested matches ───────────────────────────────────────── */

.badge-pending {
  background: var(--warning);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.suggestion-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.suggestion-head strong { color: var(--text); font-weight: 700; }
.suggestion-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.suggestion-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.suggestion-notes {
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--surface-2);
  border-inline-start: 3px solid var(--accent-2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.suggestion-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .suggestion-row { flex-direction: column; }
  .suggestion-actions { flex-direction: row; width: 100%; }
  .suggestion-actions .btn { flex: 1; }
}

.modal-fineprint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.4;
}
