/* ==========================================================
   UAE Rangers — site stylesheet
   Shared by every page (static HTML + PHP share pages).
   ========================================================== */

:root {
  --orange: #E67E22;          /* app primary */
  --orange-deep: #C4610F;
  --orange-soft: #F9DFC8;     /* app primary 50 */
  --ink: #15110C;
  --ink-2: #1F1913;
  --ink-3: #2B231A;
  --sand: #F3EADB;
  --sand-2: #E8DAC2;
  --paper: #FBF6EE;
  --olive: #717B5E;           /* app tertiary */
  --text: #1D1810;
  --muted: #6A5F50;
  --muted-on-dark: #B9AD9A;
  --line: rgba(21, 17, 12, .14);
  --line-on-dark: rgba(243, 234, 219, .14);

  --font-display: "Archivo", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --header-h: 68px;
  --hex: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%);
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='%23E67E22' stroke-width='1'%3E%3Cpath d='M-200 40c75-30 125 30 200 0c75-30 125 30 200 0c75-30 125 30 200 0c75-30 125 30 200 0c75-30 125 30 200 0'/%3E%3Cpath d='M-200 90c75-40 125 40 200 0c75-40 125 40 200 0c75-40 125 40 200 0c75-40 125 40 200 0c75-40 125 40 200 0'/%3E%3Cpath d='M-200 140c75-22 125 22 200 0c75-22 125 22 200 0c75-22 125 22 200 0c75-22 125 22 200 0c75-22 125 22 200 0'/%3E%3Cpath d='M-200 190c75-44 125 44 200 0c75-44 125 44 200 0c75-44 125 44 200 0c75-44 125 44 200 0c75-44 125 44 200 0'/%3E%3Cpath d='M-200 240c75-26 125 26 200 0c75-26 125 26 200 0c75-26 125 26 200 0c75-26 125 26 200 0c75-26 125 26 200 0'/%3E%3Cpath d='M-200 290c75-18 125 18 200 0c75-18 125 18 200 0c75-18 125 18 200 0c75-18 125 18 200 0c75-18 125 18 200 0'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html.i18n-pending body { visibility: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h2.display { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3.display { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.1; }
.display em { font-style: normal; color: var(--orange); }
[dir="rtl"] .display { font-stretch: 100%; text-transform: none; letter-spacing: 0; line-height: 1.25; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: var(--orange); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.on-dark .lead { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.on-dark .btn-ghost { border-color: var(--line-on-dark); color: var(--sand); }
.on-dark .btn-ghost:hover { border-color: var(--sand); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; min-width: 176px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  border-radius: 14px; text-decoration: none; direction: ltr;
  transition: transform .2s ease, border-color .2s ease;
}
.store:hover { transform: translateY(-2px); border-color: var(--orange); }
.on-dark .store { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.on-dark .store:hover { border-color: var(--orange); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; letter-spacing: .04em; opacity: .75; line-height: 1.2; }
.store b { display: block; font: 600 1.08rem/1.2 var(--font-body); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header-h);
  background: rgba(21, 17, 12, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-on-dark); color: var(--sand);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--font-display); font-stretch: 122%; font-weight: 800; letter-spacing: .04em; font-size: 1.02rem; text-transform: uppercase; }
.brand span i { font-style: normal; color: var(--orange); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 500; color: var(--muted-on-dark); transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: rgba(243, 234, 219, .1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: none; border: 1.5px solid var(--line-on-dark); color: var(--sand);
  border-radius: 999px; padding: 8px 14px; font: 500 .9rem/1 var(--font-body); cursor: pointer;
}
.lang-btn:hover { border-color: var(--sand); }
.menu-btn { display: none; background: none; border: 0; color: var(--sand); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; display: block; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; inset-inline: 0; top: var(--header-h); margin: 0;
    flex-direction: column; gap: 0; padding: 10px var(--gutter) 22px;
    background: var(--ink); border-bottom: 1px solid var(--line-on-dark);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-on-dark); }
  .nav a[aria-current="page"] { background: none; color: var(--orange); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.on-dark { background: var(--ink); color: var(--sand); }
.on-sand { background: var(--sand); }
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--topo) 0 0 / 600px 300px; opacity: .13; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-note { font-size: .88rem; color: var(--muted-on-dark); display: flex; gap: 10px; align-items: flex-start; max-width: 52ch; }
.hero-note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--orange); }
.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-photo {
  position: absolute; inset: 0 auto 0 0; margin: auto; width: min(92%, 470px); aspect-ratio: 1 / 1.14; max-height: 100%;
  clip-path: var(--hex); background: var(--ink-3);
}
[dir="rtl"] .hero-photo { inset: 0 0 0 auto; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone { position: relative; margin-inline-start: 50%; margin-top: 110px; transform: rotate(4deg) scale(.92); transform-origin: top center; }
[dir="rtl"] .hero-art .phone { transform: rotate(-4deg) scale(.92); }
.hero-coord {
  position: absolute; inset-inline-start: 0; top: 4%; z-index: 2;
  font: 500 .72rem/1.5 var(--font-mono); letter-spacing: .1em; color: var(--sand);
  background: rgba(21, 17, 12, .82); border: 1px solid var(--line-on-dark); border-radius: 10px; padding: 10px 14px;
  direction: ltr;
}
.hero-coord b { color: var(--orange); font-weight: 500; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-art .phone { margin-inline-start: 34%; margin-top: 90px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--orange); color: var(--ink); overflow: hidden; padding: 14px 0; direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-stretch: 122%; font-weight: 800; text-transform: uppercase;
  font-size: 1rem; letter-spacing: .06em; padding-inline: 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap;
}
.marquee span::after { content: ""; width: 9px; height: 10px; background: var(--ink); clip-path: var(--hex); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 28px 24px 8px 0; position: relative; counter-increment: step; display: grid; gap: 12px; align-content: start; }
[dir="rtl"] .step { padding: 28px 0 8px 24px; }
.step::before {
  content: "0" counter(step); font: 500 .8rem/1 var(--font-mono); letter-spacing: .12em; color: var(--orange-deep);
}
.step::after { content: ""; position: absolute; top: -8px; inset-inline-start: 0; width: 14px; height: 15px; background: var(--orange); clip-path: var(--hex); }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (two audiences) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start;
  position: relative; overflow: hidden;
}
.panel-dark { background: var(--ink); color: var(--sand); }
.panel-dark p { color: var(--muted-on-dark); }
.panel-orange { background: var(--orange); color: var(--ink); }
.panel-orange .btn { background: var(--ink); color: #fff; }
.panel-tag { font: 500 .76rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { display: flex; gap: 12px; align-items: baseline; }
.panel li::before { content: ""; flex: none; width: 9px; height: 10px; background: currentColor; clip-path: var(--hex); transform: translateY(-1px); }
.panel-dark li::before { background: var(--orange); }
.panel .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start;
  transition: transform .25s ease, border-color .25s ease;
}
.on-sand .card { background: var(--paper); }
a.card { text-decoration: none; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card p { color: var(--muted); font-size: .97rem; }
.card-icon {
  width: 52px; height: 58px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); clip-path: var(--hex); margin-bottom: 6px;
}
.card-icon svg { width: 24px; height: 24px; }
.on-dark .card { background: var(--ink-2); border-color: var(--line-on-dark); }
.on-dark .card p { color: var(--muted-on-dark); }
.on-dark .card-icon { background: var(--orange); color: var(--ink); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Feature rows (features page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row:nth-of-type(even) .feature-visual { order: -1; }
.feature-copy { display: grid; gap: 18px; }
.feature-copy p { color: var(--muted); }
.feature-visual { display: grid; place-items: center; position: relative; padding: 30px 0; }
.feature-visual::before {
  content: ""; position: absolute; width: min(420px, 92%); aspect-ratio: 1 / 1.14; background: var(--sand-2); clip-path: var(--hex);
}
.on-sand .feature-visual::before { background: var(--paper); }
.feature-visual .phone { position: relative; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 10px; background: var(--orange); clip-path: var(--hex); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; }
[dir="rtl"] .chips { justify-content: flex-end; }
.chip { font: 500 .8rem/1 var(--font-mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-of-type(even) .feature-visual { order: 0; }
}

/* ---------- Rank ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: end; direction: ltr; }
.rung { display: grid; gap: 10px; justify-items: center; text-align: center; }
.rung-bar { width: 100%; background: var(--ink-3); border-radius: 8px 8px 0 0; position: relative; }
.rung:nth-child(1) .rung-bar { height: 24px; } .rung:nth-child(2) .rung-bar { height: 44px; }
.rung:nth-child(3) .rung-bar { height: 64px; } .rung:nth-child(4) .rung-bar { height: 84px; }
.rung:nth-child(5) .rung-bar { height: 104px; } .rung:nth-child(6) .rung-bar { height: 124px; }
.rung:nth-child(7) .rung-bar { height: 144px; } .rung:nth-child(8) .rung-bar { height: 164px; }
.rung:nth-child(9) .rung-bar { height: 184px; background: var(--orange); }
.rung-hex { width: 30px; height: 34px; background: var(--orange); clip-path: var(--hex); display: grid; place-items: center; font: 500 .72rem/1 var(--font-mono); color: var(--ink); }
.rung-name { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark); }
@media (max-width: 760px) {
  .ladder { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .rung .rung-bar { height: 10px !important; border-radius: 6px; }
}

/* ---------- Notice strip ---------- */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px 28px; background: var(--paper);
}
.notice svg { width: 30px; height: 30px; color: var(--orange-deep); }
.notice p { color: var(--muted); font-size: .97rem; }
.notice strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .wrap { display: grid; gap: 26px; justify-items: center; }
.cta .lead { margin-inline: auto; }
.cta .stores { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 22px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font: 700 1.35rem/1.3 var(--font-body); margin: 2.2em 0 .6em; }
.prose h3, .prose h4 { font: 600 1.05rem/1.4 var(--font-body); margin: 1.6em 0 .4em; }
.prose p, .prose li { color: #40372b; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--orange-deep); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.meta-row { font: 500 .8rem/1.6 var(--font-mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- Contact / FAQ ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-decoration: none; }
.contact-card .value { font: 600 1.15rem/1.3 var(--font-body); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
[dir="rtl"] .contact-card .value { text-align: right; }
.contact-card .hint { font: 500 .76rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-mono); color: var(--orange-deep); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 70ch; }
.faq a { color: var(--orange-deep); }

/* ---------- Numbered guide (delete account) ---------- */
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: g; max-width: 760px; }
.guide li {
  counter-increment: g; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px;
}
.guide li::before {
  content: counter(g); width: 42px; height: 47px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); clip-path: var(--hex); font: 500 1rem/1 var(--font-mono);
}
.guide strong { display: block; }
.guide span { color: var(--muted); font-size: .95rem; }

/* ---------- Phone mockup (CSS recreation of the app UI) ---------- */
.phone {
  width: 272px; flex: none; background: #0c0a08; border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1.5px #3a3128 inset;
  direction: ltr; text-align: left; user-select: none;
}
.phone-screen {
  background: #FBF7F4; border-radius: 32px; overflow: hidden; height: 540px; position: relative;
  font: 400 11px/1.4 "IBM Plex Sans", sans-serif; color: #1D1B20; display: flex; flex-direction: column;
}
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 74px; height: 20px; margin-left: -37px; background: #0c0a08; border-radius: 12px; z-index: 3; }
.app-top { padding: 40px 14px 10px; background: #fff; }
.app-top h4 { font: 500 16px/1.2 "IBM Plex Sans", sans-serif; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-top p { font-size: 10.5px; color: #49454F; margin-top: 3px; }
.app-bar { padding: 40px 14px 10px; background: #fff; font: 500 14px/1.2 "IBM Plex Sans", sans-serif; display: flex; gap: 10px; align-items: center; }
.app-body { padding: 10px 12px; display: grid; gap: 8px; align-content: start; flex: 1; overflow: hidden; }
.app-label { font: 500 11.5px/1.3 "IBM Plex Sans", sans-serif; margin-top: 4px; }
.app-chip { font: 500 9px/1 "IBM Plex Sans", sans-serif; padding: 4px 8px; border-radius: 999px; background: #F3EDEA; white-space: nowrap; }
.app-chip.blue { background: #D8EEFB; color: #0B5C8A; }
.app-chip.peach { background: #F9DFC8; color: #733F11; }
.app-chip.green { background: #C3E4C5; color: #265828; }
.app-chip.solid { background: var(--orange); color: #fff; }
.app-filters { display: flex; gap: 6px; overflow: hidden; }
.app-filters .app-chip { padding: 7px 11px; font-size: 10px; }
.app-card { background: #fff; border: 1px solid #DDD6D0; border-radius: 14px; padding: 8px; display: grid; grid-template-columns: 54px 1fr; gap: 9px; align-items: center; }
.app-card img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.app-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.app-card b { font: 500 12px/1.3 "IBM Plex Sans", sans-serif; display: block; margin-top: 3px; }
.app-card small { font-size: 9.5px; color: #49454F; display: block; }
.app-field { background: #fff; border: 1px solid #DDD6D0; border-radius: 999px; padding: 9px 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 10.5px; }
.app-field b { font-weight: 500; }
.app-field .yes { color: #337535; font-weight: 600; }
.app-field .no { color: #B3261E; font-weight: 600; }
.app-loc { background: #fff; border: 1px solid #DDD6D0; border-radius: 999px; padding: 7px 14px 7px 7px; display: flex; gap: 10px; align-items: center; }
.app-loc i { width: 32px; height: 32px; border-radius: 50%; background: #F9DFC8; display: grid; place-items: center; flex: none; }
.app-loc i::before { content: ""; width: 10px; height: 10px; background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.app-loc b { font: 500 11.5px/1.3 "IBM Plex Sans", sans-serif; display: block; }
.app-loc small { font: 400 9.5px/1.3 "IBM Plex Mono", monospace; color: #49454F; }
.app-photos { display: flex; gap: 6px; }
.app-photos img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; border: 1px solid #DDD6D0; }
.app-cta { margin: 0 12px 8px; background: var(--orange); color: #fff; text-align: center; padding: 12px; border-radius: 999px; font: 500 11.5px/1 "IBM Plex Sans", sans-serif; }
.app-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px 8px; }
.app-cta-row .app-cta { margin: 0; }
.app-cta.soft { background: #F9DFC8; color: #1D1B20; }
.app-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #EEE7E2; padding: 8px 4px 14px; text-align: center; font-size: 8.5px; color: #49454F; }
.app-nav span::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 3px; border: 1.5px solid currentColor; border-radius: 4px; }
.app-nav .on { color: var(--orange); }
.app-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; text-align: center; padding: 6px 0 2px; }
.app-podium div { display: grid; gap: 4px; justify-items: center; font-size: 9.5px; }
.app-podium i { width: 34px; height: 38px; background: #DDD6D0; clip-path: var(--hex); display: grid; place-items: center; font: 500 11px/1 "IBM Plex Mono", monospace; font-style: normal; color: #1D1B20; }
.app-podium .first i { width: 44px; height: 50px; background: var(--orange); color: #fff; }
.app-podium u { text-decoration: none; display: block; width: 100%; background: #F3EDEA; border-radius: 6px 6px 0 0; height: 26px; }
.app-podium .first u { height: 44px; background: #F9DFC8; }
.app-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #DDD6D0; border-radius: 999px; padding: 7px 12px; font-size: 10.5px; }
.app-row i { font: 500 10px/1 "IBM Plex Mono", monospace; font-style: normal; color: #49454F; width: 14px; }
.app-row b { font-weight: 500; flex: 1; }
.app-event { background: #fff; border: 1px solid #DDD6D0; border-radius: 14px; overflow: hidden; }
.app-event img { width: 100%; height: 92px; object-fit: cover; }
.app-event div { padding: 9px 10px 10px; display: grid; gap: 5px; }
.app-event b { font: 500 12px/1.3 "IBM Plex Sans", sans-serif; }
.app-event small { font-size: 9.5px; color: #49454F; }
.app-event .row { display: flex; gap: 5px; flex-wrap: wrap; padding: 0; }

/* ---------- Share pages (PHP) ---------- */
.share { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px var(--gutter) 64px; }
.share-card { width: min(520px, 100%); background: var(--ink-2); border: 1px solid var(--line-on-dark); border-radius: 28px; overflow: hidden; }
.share-head { padding: 30px 30px 24px; display: grid; gap: 14px; border-bottom: 1px solid var(--line-on-dark); }
.share-head h1 { font: 700 1.6rem/1.25 var(--font-body); overflow-wrap: anywhere; }
.share-body { padding: 24px 30px; display: grid; gap: 18px; }
.share-field { display: grid; gap: 4px; }
.share-field dt, .share-label { font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.share-field dd { margin: 0; font-size: 1.05rem; white-space: pre-line; overflow-wrap: anywhere; }
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-stats div { background: var(--ink-3); border-radius: 16px; padding: 16px 10px; text-align: center; }
.share-stats b { display: block; font: 800 1.8rem/1.1 var(--font-display); font-stretch: 122%; color: var(--orange); }
.share-stats span { font: 500 .68rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); }
.share-foot { padding: 6px 30px 30px; display: grid; gap: 14px; }
.share-foot .btn { width: 100%; padding: 17px; font-size: 1.05rem; }
.share-foot .stores { justify-content: center; }
.share-foot .store { flex: 1; min-width: 150px; }
.share-foot p { font-size: .86rem; color: var(--muted-on-dark); text-align: center; }
.share-badge { width: 74px; height: 84px; background: var(--orange); clip-path: var(--hex); display: grid; place-items: center; color: var(--ink); }
.share-badge svg { width: 34px; height: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-on-dark); }
.footer-brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer-brand img { width: 92px; }
.site-footer h4 { font: 500 .76rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .84rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* Above-the-fold content animates on load instead of waiting for the scroll observer. */
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; animation: none !important; }
  .marquee-track { animation: none; }
  .btn:hover, .store:hover, .card:hover { transform: none; }
}

/* Arabic script must not be letter-spaced (it breaks the joins). */
[dir="rtl"] .panel-tag, [dir="rtl"] .site-footer h4, [dir="rtl"] .contact-card .hint,
[dir="rtl"] .share-field dt, [dir="rtl"] .share-label, [dir="rtl"] .share-stats span,
[dir="rtl"] .meta-row { letter-spacing: 0; font-size: .86rem; }
[dir="rtl"] em { font-style: normal; }
