/* Wasl public site. Dark green theme from the approved designs. No build step. */
:root {
  --bg: #0B1410;
  --surface: #13201A;
  --surface-2: #0F1A15;
  --border: #22362C;
  --border-strong: #2C4437;
  --line: #1C2E25;
  --text: #ECF5EF;
  --body: #C7D6CD;
  --soft: #B5C7BC;
  --muted: #9FB3A8;
  --accent: #69F0AE;
  --accent-hover: #B9F6CA;
  --primary: #00C853;
  --primary-hover: #2EE07A;
  --on-primary: #03140A;
  --promo: #0F2E1D;
  --promo-border: #1F4A31;
  --pill-bg: #0E2A1B;
  --chip-bg: #07110C;
  --women: #F8BBD0;
  --women-bg: #3A1426;
  --danger: #FF8A80;
  --radius: 20px;
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Lexend', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
p { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }

/* ── Header ─────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 12px; display: block; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; order: 3; width: 100%; }
.main-nav a { color: var(--body); text-decoration: none; font-size: 15px; padding: 10px 2px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .main-nav { order: 0; width: auto; gap: 24px; }
}

/* ── Buttons, pills, chips ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; text-align: center; line-height: 1.2;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn[aria-disabled="true"] { cursor: default; opacity: .75; }
.btn[aria-disabled="true"]:hover { border-color: var(--border-strong); color: var(--text); }
.btn-block { width: 100%; }
.btn .soon-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--pill-bg); color: var(--accent);
}
.lang-btn { font-family: var(--font-ar); }
html[lang="ar"] .lang-btn { font-family: var(--font); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: var(--pill-bg); color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1.3;
}
.pill-women { background: var(--women-bg); color: var(--women); }
.pill-muted { background: var(--surface); border: 1px solid var(--border); color: var(--body); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--chip-bg); color: #DDF5E6; font-size: 13px; font-weight: 500;
}
.chip-women { background: var(--women-bg); color: var(--women); }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 640px; }
@media (min-width: 720px) { .lead { font-size: 20px; } }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: 32px; }
@media (min-width: 720px) { .section { padding-block: 40px; } }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 8px 12px; margin-bottom: 20px;
}
.section-head h2, .h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 720px) { .section-head h2, .h2 { font-size: 32px; } }
.section-head a { font-weight: 600; text-decoration: none; }
.section-sub { margin: 8px 0 24px; color: var(--soft); font-size: 17px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: 48px 32px; }
@media (min-width: 720px) { .hero { padding-block: 88px 48px; } }
.hero h1 {
  margin-top: 16px; font-size: clamp(36px, 7vw, 76px); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.03em; max-width: 900px;
}
html[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero .lead { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }

.search {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
}
@media (min-width: 720px) { .search { padding: 20px; gap: 16px; } }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; }
.field label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .field label { letter-spacing: 0; font-size: 13px; }
select {
  min-height: 48px; width: 100%; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 15px;
}
.search .btn { border-radius: 14px; flex: 1 1 140px; }
@media (min-width: 720px) { .search .btn { flex: 0 0 auto; padding: 0 28px; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 700; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .stat { padding: 20px; } .stat b { font-size: 34px; } .stat span { font-size: 15px; } }

/* ── Cards ──────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 720px) { .grid { gap: 20px; } }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); min-width: 0;
}
.card:hover { border-color: #3D6B52; color: var(--text); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.price { font-weight: 600; font-size: 15px; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.meta svg { flex: 0 0 auto; }
.meta span { overflow-wrap: anywhere; }
.row-card { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
.row-card .cover { width: 76px; height: 76px; border-radius: 18px; flex: 0 0 auto; }
.row-card .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.comp-card { padding: 22px; gap: 12px; }
.comp-card h3 { font-size: 21px; letter-spacing: -0.01em; }
.ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--pill-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* Sport covers: drawn court lines over a sport-tinted background. */
.cover { position: relative; height: 140px; color: var(--accent); background: #0F3D25; overflow: hidden; }
.cover svg.court { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .chips { position: absolute; inset-inline-start: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cover-t1 { background: #0F3D25; }
.cover-t2 { background: #14352A; }
.cover-t3 { background: #0D3532; }
.cover-t4 { background: #1A3326; }
.cover-t5 { background: #102F36; }
.cover-t6 { background: #22301A; }

/* Skeletons and states */
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 260px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
.state {
  grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.state h3 { font-size: 19px; }
.state p { color: var(--soft); max-width: 460px; }

/* ── Panels / features ──────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
@media (min-width: 720px) { .panel { padding: 24px; } }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { color: var(--soft); line-height: 1.6; font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps .step-n { color: var(--accent); font-weight: 600; font-size: 15px; }
.steps h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 600; }
.steps p { color: var(--soft); line-height: 1.6; }

.promo {
  background: var(--promo); border: 1px solid var(--promo-border); border-radius: 28px; padding: 24px;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
}
@media (min-width: 720px) { .promo { padding: 44px; } }
.promo h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
@media (min-width: 720px) { .promo h2 { font-size: 38px; } }
.promo p { margin-top: 14px; color: var(--body); font-size: 17px; line-height: 1.6; max-width: 520px; }
.promo-text { flex: 1 1 380px; min-width: 0; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-row .btn { flex: 1 1 200px; }
@media (min-width: 720px) { .store-row .btn { flex: 0 0 auto; } }
.store-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.promo-icon { width: 140px; height: 140px; border-radius: 32px; flex: 0 0 auto; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
@media (max-width: 599px) { .promo-icon { display: none; } }

/* ── Explore ────────────────────────────────────────── */
.page-title { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 720px) { .page-title { font-size: 44px; } }
html[lang="ar"] .page-title { letter-spacing: 0; line-height: 1.3; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--body); background: transparent;
  border: 1px solid var(--border); cursor: pointer;
}
.tab:hover { color: #fff; border-color: #3D6B52; }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 20px; }
.filters .field { flex: 1 1 200px; max-width: 320px; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 21px; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

/* ── Detail pages ───────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin: 20px 0; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: #DCE8E0; overflow-wrap: anywhere; }
.detail-cover { height: 200px; border-radius: 24px; }
@media (min-width: 720px) { .detail-cover { height: 300px; border-radius: 28px; } }
.detail-cover .chips { top: auto; bottom: 18px; inset-inline-start: 18px; }
.detail-cover .chip { font-size: 14px; padding: 8px 14px; }
.detail { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 28px; }
@media (min-width: 720px) { .detail { gap: 32px; } }
.detail-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .detail-side { max-width: 400px; position: sticky; top: 20px; } }
.detail h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
@media (min-width: 720px) { .detail h1 { font-size: 44px; } }
html[lang="ar"] .detail h1 { letter-spacing: 0; line-height: 1.35; }
.subline { margin-top: 10px; color: var(--soft); font-size: 17px; }
.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.fact { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fact > div { min-width: 0; flex: 1; }
.lab { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .lab { letter-spacing: 0; }
.val { font-size: 17px; font-weight: 500; margin-top: 4px; overflow-wrap: anywhere; }
.sub { color: var(--muted); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.bar { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar > div { height: 100%; background: var(--primary); }
.prose { color: var(--body); line-height: 1.7; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.panel h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.rules { margin: 0; padding-inline-start: 20px; color: var(--body); line-height: 1.7; }
.app-only { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 6px; }
.app-only > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.app-only svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.app-only b { display: block; font-weight: 600; }
.app-only span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.join {
  background: var(--promo); border: 1px solid var(--promo-border); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.join h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.join p { color: var(--body); line-height: 1.6; }
.join .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.join .two .btn { padding: 0 10px; font-size: 14px; flex-direction: column; gap: 2px; min-height: 56px; }
.fineprint { color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.notice { border-radius: 14px; padding: 12px 14px; background: #2A2410; color: #FFE082; font-size: 15px; }
.status-msg { min-height: 20px; font-size: 14px; color: var(--accent); text-align: center; }

/* ── Footer and mobile app bar ──────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap {
  padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 16px 24px;
  justify-content: space-between; align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; padding-block: 6px; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { color: var(--muted); font-size: 14px; }
.app-bar {
  position: sticky; bottom: 0; z-index: 10; padding: 10px 16px; background: var(--bg);
  border-top: 1px solid var(--promo-border); display: flex; align-items: center; gap: 12px;
}
.app-bar img { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.app-bar .txt { flex: 1; min-width: 0; }
.app-bar b { display: block; font-size: 15px; font-weight: 600; }
.app-bar span { color: var(--muted); font-size: 13px; }
@media (min-width: 720px) { .app-bar { display: none; } }
