/* ==========================================================================
   EJE.ae — Emirates Judgement Enforcement
   Redesign design-system + homepage styles
   ----------------------------------------------------------------------------
   Authoring notes
   - All brand values live in :root as tokens. Drop the exact Figma values here
     (search "FIGMA TOKEN") and the whole site re-themes.
   - Layout uses CSS logical properties (margin-inline, inset-inline, etc.) so
     RTL is a true mirror, not a translated afterthought. Toggling <html dir>
     flips the entire layout with no per-component overrides.
   - Motion only touches transform/opacity and is gated behind
     prefers-reduced-motion.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
/* Base tokens moved to assets/css/tokens.css (the single source of truth,
   loaded BEFORE this file). Only CONTEXTUAL overrides remain in this file:
   responsive --header-h, --a11y-font-scale, high-contrast + dark theme. */
@media (max-width: 768px) { :root { --header-h: 112px; } }   /* real mobile header height */

/* ----------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html[lang="ar"] { --font: var(--font-ar); line-height: 1.75; }

html { overflow-x: clip; }   /* clip (not hidden) so the sticky header stays viewport-bound; stops 100vw full-bleed + fixed-element bleed from scrolling the page */
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
/* Arabic titles use Alexandria; relaxed metrics so Kufi/Alexandria don't clip */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .display, html[lang="ar"] .h2, html[lang="ar"] .h3 {
  font-family: var(--font-ar-title);
  letter-spacing: 0; line-height: 1.3; font-weight: 600;
}
/* Arabic uses 600 wherever Latin uses 700 (lighter, better for Kufi/Alexandria) */
html[lang="ar"] b, html[lang="ar"] strong,
html[lang="ar"] .step-num, html[lang="ar"] .stat .val,
html[lang="ar"] .big-num, html[lang="ar"] .mv-label,
html[lang="ar"] .about-kicker { font-weight: 600; }
/* Alexandria reads visually larger than Latin at the same size — scale Arabic
   headings down (~82%) so section titles don't overpower the layout. */
html[lang="ar"] .display { font-size: clamp(2rem, 1.2rem + 3.1vw, 3.3rem); }
html[lang="ar"] .h2 { font-size: clamp(1.3rem, 1.12rem + 1.5vw, 2.25rem); }
html[lang="ar"] .h3 { font-size: clamp(1.12rem, 0.98rem + 0.7vw, 1.4rem); }
html[lang="ar"] .svc-card h3 { font-size: 1rem; }

/* Numbers, dates, phone, reference IDs stay readable inside RTL text */
.num { font-variant-numeric: tabular-nums; }
html[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Language visibility — JS sets html[lang]; CSS shows the right strings ---- */
[data-en], [data-ar] { display: none; }
html[lang="en"] [data-en] { display: revert; }
html[lang="ar"] [data-ar] { display: revert; }
/* inline variants keep flow */
html[lang="en"] span[data-en], html[lang="ar"] span[data-ar] { display: inline; }

.skip-link {
  position: absolute; inset-block-start: -60px; inset-inline-start: 16px;
  background: var(--char-900); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  z-index: var(--z-popover); transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 12px; }

/* ----------------------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   -------------------------------------------------------------------------- */
.display, .h2, .h3 { text-wrap: balance; }
.display { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.1rem); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
.h3 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-500); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-700);
}
html[lang="ar"] .eyebrow { letter-spacing: .04em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.section-head { max-width: 60ch; }
.section-head .h2 { margin-block-start: 14px; }
.section-head .lead { margin-block-start: 16px; }
.text-center { text-align: center; margin-inline: auto; }

/* ----------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --pad-y: 13px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { inline-size: 19px; block-size: 19px; }

/* Icon-tile sizing: glyph sits ~48% of its colored tile (centered, padded).
   Without this, unsized <use> SVGs stretch to fill the whole tile (100%). */
.quick-ico svg { inline-size: 22px; block-size: 22px; }
.svc-ico svg   { inline-size: 24px; block-size: 24px; }
.bc-ico svg    { inline-size: 23px; block-size: 23px; }
.about-point .pt-ico svg { inline-size: 18px; block-size: 18px; }
.icon-btn svg  { inline-size: 22px; block-size: 22px; }
/* arrow icons mirror in RTL */
html[dir="rtl"] .btn .i-flip { transform: scaleX(-1); }

/* ==========================================================================
   CANONICAL BUTTON SCALE — primary · secondary · soft · ghost (+ on-dark, sizes)
   4 roles + 3 modifiers. Web markup & JS use these names exclusively.
   Reconciled: A1 (primary hover = subtle lift, no --sh-3) · B1 (soft = gold-50 fill).
   (app.html keeps its own standalone .btn-gold/.btn-line system — do not alias here.)
   ========================================================================== */
.btn--primary { background: var(--gold-500); color: var(--char-900); box-shadow: var(--sh-gold); }
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); }

.btn--secondary { background: var(--surface); color: var(--ink-strong); border: 1px solid var(--line); }
.btn--secondary:hover { border-color: var(--gold-300, var(--gold-200)); color: var(--gold-700); }

.btn--soft { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); box-shadow: none; }
.btn--soft:hover { background: var(--gold-100); border-color: var(--gold-200); }

.btn--ghost { background: transparent; color: var(--gold-700); }
.btn--ghost:hover { background: var(--brand-50); }

/* danger (cancel request) */
.btn--danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn--danger:hover { background: var(--err-bg); border-color: var(--err); }
.rd-ac-cta .rd-cancel-btn { margin-inline-start: auto; }
.rd-cancel-dialog { position: fixed; inset: 0; margin: auto; block-size: fit-content; border: 0; padding: 0; max-inline-size: 440px; inline-size: calc(100% - 32px); border-radius: var(--r-lg, 18px); background: var(--surface, #fff); color: var(--ink-strong); box-shadow: 0 24px 60px -20px rgba(40,32,14,.45); }
.rd-cancel-dialog::backdrop { background: rgba(26,23,18,.5); }
.rdcd-card { padding: 26px 24px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.rdcd-ico { inline-size: 52px; block-size: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--err-bg); color: var(--err); }
.rdcd-ico svg { inline-size: 26px; block-size: 26px; }
.rdcd-card h2 { margin: 0; font-size: 1.15rem; color: var(--ink-strong); }
.rdcd-card p { margin: 0; color: var(--ink-500); font-size: .92rem; line-height: 1.7; }
.rdcd-acts { display: flex; gap: 10px; margin-block-start: 8px; inline-size: 100%; }
.rdcd-acts .btn { flex: 1; justify-content: center; }

.btn--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--on-dark:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn--sm { padding: 8px 14px; font-size: .85rem; min-block-size: 40px; }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------------------
   5. BADGES / PILLS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; line-height: 1;
}
.badge .dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: currentColor; }
.badge-ok   { background: var(--ok-bg);   color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err  { background: var(--err-bg);  color: var(--err); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-soft { background: var(--brand-50); color: var(--gold-700); }
.badge-gold { background: var(--gold-50); color: var(--gold-700); }

/* ----------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-2); border-block-end-color: var(--line); }

.nav { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  inline-size: 42px; block-size: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--char-700), var(--char-900));
  display: grid; place-items: center; color: var(--gold-500); box-shadow: var(--sh-2);
}
.brand-mark svg { inline-size: 24px; block-size: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { font-size: .72rem; color: var(--ink-500); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 500; color: var(--ink-700); white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; inset-block-end: 4px; inset-inline: 14px;
  block-size: 2px; background: var(--gold-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: inline-start; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--gold-700); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-700); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; color: var(--gold-700);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--brand-400); background: var(--brand-50); }

/* higher specificity than .icon-btn so the hamburger stays hidden on desktop */
.nav .menu-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 130;
  background: var(--surface); padding: 24px var(--gutter);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
}
html[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-block-start: 24px; }
.mobile-menu nav a {
  font-size: 1.3rem; font-weight: 600; padding: 16px 8px;
  border-block-end: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(14px);
}
.mobile-menu.open nav a { animation: mm-in .5s var(--ease) forwards; }
.mobile-menu nav a svg { color: var(--ink-300); }
html[dir="rtl"] .mobile-menu nav a svg { transform: scaleX(-1); }
@keyframes mm-in { to { opacity: 1; transform: none; } }
.mobile-menu .mm-actions { margin-block-start: auto; display: grid; gap: 12px; }
.icon-btn { inline-size: 44px; block-size: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-900); }

/* ----------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(203,163,68,.18), transparent 60%),
    radial-gradient(55% 70% at 8% 18%, rgba(40,32,14,.05), transparent 55%),
    linear-gradient(180deg, var(--gold-50), var(--surface) 64%);
}
.hero-bg::after {
  /* subtle UAE-inspired geometric weave — decorative, pointer-safe */
  content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: url("../img/pattern.svg");
  background-size: 520px; mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 82%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  min-block-size: calc(100dvh - var(--header-h));
}
.hero-copy { max-width: 36rem; }
.hero-flag { display: inline-flex; gap: 6px; margin-block-end: 22px; }
.hero-flag i { inline-size: 22px; block-size: 14px; border-radius: 3px; display: block; }
.hero-flag i:nth-child(1){ background: #00843d; } .hero-flag i:nth-child(2){ background: #fff; border:1px solid var(--line); }
.hero-flag i:nth-child(3){ background: #1a1a1a; } .hero-flag i:nth-child(4){ background: #d7263d; }
.hero h1 { margin-block: 18px; }
.hero h1 .accent { color: var(--gold-700); }
.hero .lead { max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-block-start: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-block-start: 34px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-500); font-weight: 500; }
.hero-trust svg { color: var(--gold-700); inline-size: 19px; flex-shrink: 0; }

/* Hero status card — a real mini-instance of the tracking UI (not a fake screenshot) */
.hero-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 22px;
  max-width: 440px; margin-inline-start: auto;
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 18px; }
.hero-card-ref { font-size: .8rem; color: var(--ink-500); }
.hero-card-ref b { display: block; color: var(--ink-900); font-size: 1rem; letter-spacing: .02em; }
.timeline { position: relative; padding-inline-start: 26px; }
/* connector runs from each circle to the next — stops at the last one */
.t-step:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: -19px; inset-block-start: 22px;
  block-size: 100%; inline-size: 2px; background: var(--line);
}
.t-step.done:not(:last-child)::after { background: var(--ok); }
.t-step { position: relative; padding-block: 9px; }
.t-step::before {
  content: ""; position: absolute; inset-inline-start: -26px; inset-block-start: 14px;
  inline-size: 16px; block-size: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.t-step.done::before { background: var(--ok); border-color: var(--ok); }
.t-step.current::before { background: var(--gold-500); border-color: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-50); }
.t-step .t-label { font-size: .95rem; font-weight: 600; }
.t-step .t-meta { font-size: .8rem; color: var(--ink-500); }
.t-step.pending .t-label { color: var(--ink-500); }
.hero-card-foot {
  margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-card-foot .meter { font-size: .8rem; color: var(--ink-500); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 15px; box-shadow: var(--sh-2); font-size: .86rem; font-weight: 600;
}
.float-badge svg { inline-size: 20px; color: var(--ok); }
.float-badge.fb-1 { inset-block-start: -18px; inset-inline-start: -22px; }
.float-badge.fb-2 { inset-block-end: 38px; inset-inline-end: -28px; }
.float-badge.fb-2 svg { color: var(--gold-600); }

/* ----------------------------------------------------------------------------
   8. QUICK ACTIONS
   -------------------------------------------------------------------------- */
.quick { position: relative; z-index: 2; margin-block-start: calc(var(--section-y) * -0.5); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* MIGRATED to the base card (.eje-card): surface/border/radius from tokens;
   the variant sets its padding + rest shadow via the --card-* tokens. */
.quick-card {
  --card-pad: 22px; --card-shadow: var(--sh-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--brand-100); }
.quick-ico {
  inline-size: 46px; block-size: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--gold-700);
}
.quick-card.is-primary { background: linear-gradient(155deg, var(--char-800), var(--char-900)); border-color: transparent; color: #fff; }
.quick-card.is-primary h3 { color: #fff; }
.quick-card.is-primary .quick-ico { background: rgba(255,255,255,.12); color: var(--gold-500); }
.quick-card.is-primary p { color: rgba(255,255,255,.78); }
.quick-card h3 { font-size: 1.08rem; }
.quick-card p { font-size: .88rem; color: var(--ink-500); }
.quick-card .go { margin-block-start: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--gold-700); }
.quick-card.is-primary .go { color: var(--gold-500); }
.quick-card .go svg { inline-size: 17px; transition: transform .2s var(--ease); }
html[dir="rtl"] .quick-card .go svg { transform: scaleX(-1); }
.quick-card:hover .go svg { transform: translateX(4px); }
html[dir="rtl"] .quick-card:hover .go svg { transform: scaleX(-1) translateX(4px); }

/* ----------------------------------------------------------------------------
   9. SECTION SHELL
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section.alt { background: var(--surface-2); }
.section.dark { background: var(--brand-900); color: #fff; }
.section.dark .h2, .section.dark h3 { color: #fff; }
.section.dark .lead { color: rgba(255,255,255,.72); }
.section.dark .eyebrow { color: var(--gold-500); }

/* ----------------------------------------------------------------------------
   10. ABOUT (split + stat rail)
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: stretch; }
.about-visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-block-size: 100%; box-shadow: var(--sh-3);  /* stretch to match content column */
  background: linear-gradient(150deg, var(--char-700), var(--char-900));
}
.about-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .5; }
.about-visual-overlay {
  position: absolute; inset-block-end: 0; inset-inline: 0; padding: 26px;
  background: linear-gradient(0deg, rgba(26,23,18,.92), transparent);
  color: #fff;
}
.about-visual-overlay .h3 { color: #fff; }
.about-visual-overlay p { color: rgba(255,255,255,.8); font-size: .92rem; margin-block-start: 6px; }
/* Overview / Mission / Vision */
.about-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); margin-block: 22px 10px; }
html[lang="ar"] .about-kicker { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.about-overview { margin-block: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block-start: 24px; }
/* MIGRATED to base card (.eje-card) — tinted variant (surface-2) */
.mv-card {
  --card-bg: var(--surface-2); --card-radius: var(--r-md); --card-pad: 22px; --card-shadow: none;
  display: flex; flex-direction: column; gap: 11px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.mv-card:hover { border-color: var(--gold-200); transform: translateY(-3px); box-shadow: var(--sh-2); }
.mv-ico { inline-size: 42px; block-size: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); }
.mv-ico svg { inline-size: 21px; block-size: 21px; }
.mv-label { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-700); }
html[lang="ar"] .mv-label { letter-spacing: 0; text-transform: none; font-size: .98rem; }
.mv-card p { font-size: .92rem; color: var(--ink-500); }

.about-points { display: grid; gap: 18px; margin-block-start: 26px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .pt-ico { flex-shrink: 0; inline-size: 38px; block-size: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); }
.about-point b { display: block; font-size: 1rem; }
.about-point span { font-size: .92rem; color: var(--ink-500); }

/* ----------------------------------------------------------------------------
   11. SERVICES GRID
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block-start: 48px; }
/* MIGRATED to the base card: surface/border/radius come from .eje-card;
   the variant only sets its padding + (no rest) shadow via the --card-* tokens. */
.svc-card {
  --card-pad: 26px; --card-shadow: none;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--brand-100); }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-ico { inline-size: 52px; block-size: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--gold-700); }
.svc-card h3 { font-size: 1.18rem; }
.svc-card p { font-size: .93rem; color: var(--ink-500); }
.svc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 2px; }
.svc-foot { margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.svc-foot .link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--gold-700); }
.svc-foot .link svg { inline-size: 17px; transition: transform .2s var(--ease); }
html[dir="rtl"] .svc-foot .link svg { transform: scaleX(-1); }
.svc-card:hover .svc-foot .link svg { transform: translateX(4px); }
html[dir="rtl"] .svc-card:hover .svc-foot .link svg { transform: scaleX(-1) translateX(4px); }
.svc-steps { font-size: .82rem; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------------------
   12. HOW IT WORKS (stepper)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-block-start: 52px; position: relative; }
.steps::before {
  content: ""; position: absolute; inset-block-start: 30px; inset-inline: 10%;
  block-size: 2px; background: repeating-linear-gradient(to right, var(--gold-200) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  inline-size: 60px; block-size: 60px; margin-inline: auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--gold-200); color: var(--gold-700);
  font-weight: 700; font-size: 1.25rem; box-shadow: var(--sh-1);
}
.step h3 { font-size: 1.1rem; margin-block: 18px 8px; }
.step p { font-size: .9rem; color: var(--ink-500); max-width: 24ch; margin-inline: auto; }

/* ----------------------------------------------------------------------------
   13. WHY EJE (bento)
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-block-start: 48px; }
.bento-cell {
  border-radius: var(--r-lg); padding: 28px; border: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 12px; min-block-size: 220px;
  background: rgba(255,255,255,.04);
}
.bento-cell h3 { font-size: 1.22rem; }
.bento-cell p { color: rgba(255,255,255,.7); font-size: .94rem; }
.bc-ico { inline-size: 48px; block-size: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(201,168,106,.16); color: var(--gold-500); }
.bento .lg { grid-column: span 3; }
.bento .md { grid-column: span 3; }
.bento .sm { grid-column: span 2; }
.bento-cell.feature {
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(203,163,68,.22), transparent 60%),
    linear-gradient(160deg, var(--char-700), var(--char-900));
  border-color: rgba(203,163,68,.28);
}
.bento-cell .big-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gold-500); letter-spacing: -.03em; }

/* ----------------------------------------------------------------------------
   14. DOCUMENTS / PREP
   -------------------------------------------------------------------------- */
.docs-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.doc-list { display: grid; gap: 12px; }
.doc-item { --card-shadow: none; display: flex; align-items: center; gap: 14px; --card-pad: 16px 18px; --card-radius: var(--r-md);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.doc-item:hover { border-color: var(--brand-100); transform: translateX(4px); }
html[dir="rtl"] .doc-item:hover { transform: translateX(-4px); }
.doc-check { flex-shrink: 0; inline-size: 30px; block-size: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); }
.doc-item b { font-size: .98rem; display: block; }
.doc-item span { font-size: .85rem; color: var(--ink-500); }
.doc-note { display: flex; gap: 12px; padding: 18px; border-radius: var(--r-md); background: var(--gold-50); border: 1px solid var(--gold-200); margin-block-start: 22px; }
.doc-note svg { inline-size: 22px; block-size: 22px; color: var(--gold-700); flex-shrink: 0; }
.doc-note p { font-size: .9rem; color: var(--ink-700); }

/* ----------------------------------------------------------------------------
   15. STATS BAND
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-block-start: 44px; }
.stat { position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: 9px; padding: 32px 22px; border-radius: var(--r-lg, 18px);
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease); }
/* gold top accent */
.stat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 22px; block-size: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: .55; }
.stat:hover { transform: translateY(-4px); border-color: rgba(203,163,68,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 44px -22px rgba(0,0,0,.6); }
/* icon as a faint background watermark */
.stat-ico { position: absolute; inset-block-start: -10px; inset-inline-end: 6px; z-index: 0; pointer-events: none;
  inline-size: auto; block-size: auto; background: none; border: none; box-shadow: none; color: var(--gold-500); opacity: .09; }
.stat-ico svg { inline-size: 104px; block-size: 104px; }
.stat .val, .stat .lbl { position: relative; z-index: 1; }
.stat .val { font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; }
.stat .val .num { font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(180deg, #f3e6bf, var(--gold-500) 55%, var(--gold-700));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .stat-unit { font-size: .34em; font-weight: 600; color: rgba(255,255,255,.72); margin-inline-start: 7px; letter-spacing: 0; }
.stat .lbl { color: rgba(255,255,255,.74); font-size: .95rem; font-weight: 500; }

/* ----------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap { max-width: 820px; margin-inline: auto; margin-block-start: 44px; }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; background: none; border: none; text-align: start;
  font-size: 1.08rem; font-weight: 600; color: var(--ink-900);
}
.faq-q .chev { flex-shrink: 0; inline-size: 26px; block-size: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--gold-700); transition: transform .3s var(--ease), background .2s var(--ease); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--brand-600); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 4px 24px; color: var(--ink-500); max-width: 65ch; }

/* ----------------------------------------------------------------------------
   16b. MEDIA CENTER (news)
   -------------------------------------------------------------------------- */
.news-head { max-width: none; display: flex; align-items: center; justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-block-start: 48px; }
.news-card { --card-pad: 0; --card-shadow: none; display: flex; flex-direction: column; --card-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--gold-200); }
.news-media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-3); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-date { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-500); }
.news-date svg { inline-size: 15px; block-size: 15px; }
.news-card h3 { font-size: 1.16rem; line-height: 1.32; }
.news-card p { font-size: .92rem; color: var(--ink-500); }
.news-link { margin-block-start: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--gold-700); }
.news-link svg { inline-size: 17px; block-size: 17px; transition: transform .2s var(--ease); }
html[dir="rtl"] .news-link svg { transform: scaleX(-1); }
.news-card:hover .news-link svg { transform: translateX(4px); }
html[dir="rtl"] .news-card:hover .news-link svg { transform: scaleX(-1) translateX(4px); }
@media (prefers-reduced-motion: no-preference) {
  .news-media img { transition: transform .5s var(--ease); }
  .news-card:hover .news-media img { transform: scale(1.05); }
}

/* ----------------------------------------------------------------------------
   17. CONTACT CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 90% 10%, rgba(203,163,68,.24), transparent 55%),
    linear-gradient(150deg, var(--char-700), var(--char-900));
  padding: clamp(40px, 6vw, 72px); color: #fff;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.cta-band::after { content:""; position:absolute; inset:0; background-image:url("../img/pattern.svg"); background-size:420px; opacity:.12; pointer-events:none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-block-start: 14px; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { width: 100%; }

/* ----------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.7); padding-block: clamp(56px, 7vw, 88px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.6); }
.footer-brand p { font-size: .92rem; margin-block-start: 18px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-block-start: 22px; }
.footer-social a { inline-size: 40px; block-size: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); transition: background .2s var(--ease), transform .2s var(--ease); }
.footer-social a:hover { background: var(--gold-500); color: var(--brand-900); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-block-end: 18px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .92rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; gap: 10px; font-size: .92rem; margin-block-end: 13px; }
.footer-contact svg { inline-size: 18px; flex-shrink: 0; color: var(--gold-500); }
.footer-bottom { margin-block-start: 56px; padding-block: 24px; border-block-start: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .86rem; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { font-size: .86rem; }

/* ----------------------------------------------------------------------------
   19. MOBILE STICKY CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 90;
  display: none; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-block-start: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(40,32,14,.09);
}
.sticky-cta .btn { flex: 1; }

/* ==========================================================================
   ENHANCEMENTS v2 — government landing (media hero, app, locations, faq, contact)
   ========================================================================== */

/* ---- Header additions ---- */
.account-btn { color: var(--ink-700); }
.account-btn:hover { border-color: var(--brand-400); background: var(--brand-50); color: var(--gold-700); }
.portal-cta svg { inline-size: 18px; block-size: 18px; }

/* ---- HERO (media + overlay) ---- */
.hero--media { position: relative; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,7,4,.93) 0%, rgba(20,14,8,.82) 42%, rgba(20,14,8,.45) 100%),
    linear-gradient(0deg, rgba(8,6,3,.7), transparent 45%);
}
html[dir="rtl"] .hero-scrim { background:
  linear-gradient(270deg, rgba(10,7,4,.93) 0%, rgba(20,14,8,.82) 42%, rgba(20,14,8,.45) 100%),
  linear-gradient(0deg, rgba(8,6,3,.7), transparent 45%); }
.hero-weave { position: absolute; inset: 0; opacity: .12; background-image: url("../img/pattern.svg"); background-size: 480px; mask-image: radial-gradient(70% 70% at 80% 30%, #000, transparent); }
.hero--media .hero-grid { min-block-size: calc(100dvh - var(--header-h)); align-items: center; }
.hero--media .eyebrow { color: var(--gold-500); }
.hero--media h1 { color: #fff; }
.hero--media h1 .accent { color: var(--gold-500); }
.hero--media .lead { color: rgba(255,255,255,.82); }
.hero--media .hero-trust { border-block-start: 1px solid rgba(255,255,255,.16); padding-block-start: 26px; }
.hero--media .hero-trust li { color: rgba(255,255,255,.84); }
.hero--media .hero-trust svg { color: var(--gold-500); }
.hero--media .hero-flag i:nth-child(2){ border-color: rgba(255,255,255,.4); }
/* black flag square blends into the dark hero — give it a faint light border so it reads */
.hero--media .hero-flag i:nth-child(3){ border: 1px solid rgba(255,255,255,.32); }

/* ---- Service cards: whole-card link + gold top accent + action ---- */
.svc-card { position: relative; color: inherit; }
.svc-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: var(--gold-500); border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: inline-start; transition: transform .3s var(--ease); }
.svc-card:hover::before, .svc-card:focus-visible::before { transform: scaleX(1); }
.svc-action { margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; color: var(--gold-700); }
.svc-action svg { inline-size: 17px; transition: transform .2s var(--ease); }
html[dir="rtl"] .svc-action svg { transform: scaleX(-1); }
.svc-card:hover .svc-action svg { transform: translateX(5px); }
html[dir="rtl"] .svc-card:hover .svc-action svg { transform: scaleX(-1) translateX(5px); }

/* ---- About: 3 value cards ---- */
.mv-grid { grid-template-columns: repeat(3, 1fr); }

/* ---- APP DOWNLOAD ---- */
.app-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.app-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 26px 30px; }
.app-benefits li { display: flex; align-items: center; gap: 11px; font-size: .95rem; font-weight: 500; }
.ab-ico { inline-size: 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex-shrink: 0; }
.ab-ico svg { inline-size: 18px; block-size: 18px; }
.app-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px; border-radius: var(--r-md); background: var(--brand-900); color: #fff; transition: transform .2s var(--ease), background .2s var(--ease); }
.store-btn:hover { transform: translateY(-2px); background: var(--char-800); }
.store-btn svg { inline-size: 24px; block-size: 24px; }
.store-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-txt small { font-size: .68rem; opacity: .75; }
.store-txt b { font-size: 1.02rem; font-weight: 600; }

.app-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; }
.phone-mock { position: relative; inline-size: 230px; background: linear-gradient(160deg, var(--char-700), var(--char-900)); border-radius: 38px; padding: 12px; box-shadow: var(--sh-3); border: 1px solid rgba(201,168,106,.3); }
.phone-notch { position: absolute; inset-block-start: 16px; inset-inline-start: 50%; transform: translateX(-50%); inline-size: 90px; block-size: 7px; border-radius: 99px; background: rgba(255,255,255,.18); z-index: 2; }
.phone-screen { block-size: auto; border-radius: 28px; background: var(--brand-50); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ps-top { display: flex; align-items: center; gap: 9px; }
.ps-brand { inline-size: 30px; block-size: 30px; border-radius: 8px; background: var(--brand-900); color: var(--gold-500); display: grid; place-items: center; }
.ps-brand svg { inline-size: 17px; }
.ps-title { font-weight: 700; font-size: 1rem; }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ps-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ps-card-head .num { font-size: .72rem; font-weight: 600; }
.ps-card-head .badge { padding: 3px 8px; font-size: .64rem; }
.ps-bar { block-size: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ps-bar i { display: block; block-size: 100%; background: var(--gold-500); border-radius: 99px; }
.ps-meter { font-size: .72rem; color: var(--ink-500); }
.ps-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-start: auto; }
.ps-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .68rem; font-weight: 500; color: var(--ink-700); }
.ps-act svg { inline-size: 20px; color: var(--gold-700); }
.app-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr-frame { inline-size: 124px; block-size: 124px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; box-shadow: var(--sh-1); }
.qr-frame svg { inline-size: 84px; block-size: 84px; color: var(--brand-900); }
.qr-frame img { inline-size: 104px; block-size: 104px; display: block; }
.app-qr p { font-size: .85rem; color: var(--ink-500); font-weight: 500; max-width: 14ch; }

/* ---- LOCATIONS / MAP ---- */
.loc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; margin-block-start: 48px; align-items: stretch; }
.loc-side, .loc-map { min-inline-size: 0; }   /* allow the grid items to shrink below content so the map/carousel never blow the page out on mobile */
.loc-list { display: flex; flex-direction: column; gap: 12px; max-block-size: 560px; overflow-y: auto; padding-inline-end: 4px; }
.loc-card { --card-shadow: none; position: relative; display: flex; gap: 14px; text-align: start; --card-pad: 18px; --card-radius: var(--r-lg); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.loc-card:hover { border-color: var(--brand-100); transform: translateY(-2px); }
.loc-card.is-active { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500), var(--sh-2); background: var(--gold-50); }
/* leading accent bar — grows on hover, solid gold when selected */
.loc-card::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 14px; inline-size: 3px;
  border-start-end-radius: 3px; border-end-end-radius: 3px; background: var(--gold-200);
  opacity: 0; transform: scaleY(.35); transform-origin: center; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.loc-card:hover::before { opacity: 1; transform: scaleY(1); }
.loc-card.is-active::before { opacity: 1; transform: scaleY(1); background: var(--gold-500); }
.loc-pin-ico { flex-shrink: 0; inline-size: 38px; block-size: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--gold-700); }
.loc-card.is-active .loc-pin-ico { background: var(--gold-500); color: #fff; }
.loc-pin-ico svg { inline-size: 20px; }
.loc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.loc-body b { font-size: 1rem; }
.loc-addr { font-size: .86rem; color: var(--ink-500); }
.loc-meta { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-500); margin-block-start: 2px; }
.loc-meta svg { inline-size: 15px; flex-shrink: 0; color: var(--gold-700); }
.loc-go { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; align-self: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--brand-50); color: var(--gold-700); font-size: .72rem; font-weight: 600; transition: background .2s var(--ease); }
.loc-go:hover { background: var(--gold-100); }
.loc-go svg { inline-size: 18px; }
.loc-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-block-size: 420px; }
.map-canvas { position: relative; width: 100%; height: 100%; min-block-size: 460px;
  background: var(--surface-2); }
/* Real UAE map (emirate outlines) from Figma */
.map-grid { position: absolute; inset: 24px; background: url("../img/brand/uae-map.png") center/contain no-repeat; }
.map-pin { position: absolute; transform: translate(-50%, -100%); inline-size: 38px; block-size: 38px; display: grid; place-items: center; color: var(--brand-700); background: none; border: none; cursor: pointer; transition: transform .25s var(--ease), color .25s var(--ease); }
.map-pin svg { inline-size: 30px; block-size: 30px; filter: drop-shadow(0 3px 5px rgba(6,48,42,.25)); }
.map-pin:hover { color: var(--gold-700); }
.map-pin.is-active { color: var(--gold-600); transform: translate(-50%, -100%) scale(1.35); z-index: 3; }
.map-pin.is-active::after { content: ""; position: absolute; inset-block-end: -6px; inset-inline-start: 50%; transform: translateX(-50%); inline-size: 22px; block-size: 7px; border-radius: 50%; background: rgba(201,168,106,.4); }

/* ---- FAQ 2-column ---- */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq-intro { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.faq-intro .lead { margin-block-start: 16px; }
.faq-group { margin-block-start: 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-block-end: 12px; padding-inline: 18px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq-item.open { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.faq-q { padding-block: 20px; }
.faq-a p { padding-inline: 0; }

/* ---- CONTACT ---- */
.contact-band { align-items: stretch; }
.contact-intro .eyebrow { color: var(--gold-500); }
.contact-rows { display: grid; gap: 12px; margin-block-start: 26px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .2s var(--ease); }
a.contact-row:hover { background: rgba(255,255,255,.12); }
.cr-ico { inline-size: 42px; block-size: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(201,168,106,.18); color: var(--gold-500); flex-shrink: 0; }
.cr-ico svg { inline-size: 20px; }
.cr-body { display: flex; flex-direction: column; line-height: 1.3; }
.cr-body small { font-size: .78rem; color: rgba(255,255,255,.6); }
.cr-body b { font-size: 1.02rem; color: #fff; }

/* ---- Enhancement responsive ---- */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: 1fr; gap: 44px; }
  .loc-grid { grid-template-columns: minmax(0, 1fr); }
  .loc-list { max-block-size: none; flex-direction: row; overflow-x: auto; }
  .loc-card { min-inline-size: 280px; }
  .loc-map { order: -1; min-block-size: 320px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}
@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
  .app-benefits { grid-template-columns: 1fr; }
  .app-visual { flex-direction: column; }
  .contact-band { text-align: start; }
}
@media (max-width: 520px) {
  .store-btn { flex: 1; justify-content: center; }
  .loc-card { min-inline-size: min(320px, 84vw); }   /* wider carousel cards so text doesn't wrap excessively, one card + peek of the next */
  .loc-go { align-self: flex-start; }                 /* directions icon sits at the top, not floating mid-card */
}

/* Design variant switcher chip */
.variant-switch { position: fixed; inset-block-end: 18px; inset-inline-start: 18px; z-index: 95; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: var(--r-pill); background: var(--brand-900); color: #fff; font-size: .8rem; font-weight: 600; box-shadow: var(--sh-2); transition: transform .2s var(--ease), background .2s var(--ease); }
.variant-switch:hover { background: var(--char-800); transform: translateY(-2px); }
.variant-switch svg { inline-size: 15px; }
@media (max-width: 760px) { .variant-switch { inset-block-end: 84px; } }

/* ----------------------------------------------------------------------------
   20. SCROLL REVEAL (motion — gated)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-reveal-stagger].in > * { opacity: 1; transform: none; }
  [data-reveal-stagger].in > *:nth-child(2){ transition-delay: .07s; }
  [data-reveal-stagger].in > *:nth-child(3){ transition-delay: .14s; }
  [data-reveal-stagger].in > *:nth-child(4){ transition-delay: .21s; }
  [data-reveal-stagger].in > *:nth-child(5){ transition-delay: .28s; }
  [data-reveal-stagger].in > *:nth-child(6){ transition-delay: .35s; }
}

/* Hero entrance — pre-hide the GSAP timeline targets to prevent a flash before
   the deferred script runs. The html.hero-intro class is set by an inline head
   guard (motion-gated, with a 2.5s failsafe). GSAP's fromTo then owns the reveal,
   leaving inline styles that outlive the class. */
html.hero-intro .hero-flag,
html.hero-intro .hero-copy .eyebrow,
html.hero-intro .hero-copy .display,
html.hero-intro .hero-copy .lead,
html.hero-intro .hero-ctas,
html.hero-intro .hero-trust li,
html.hero-intro .hero-card { opacity: 0; }

/* ----------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav .menu-btn { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-block-size: auto; padding-block: 48px 64px; }
  .hero-card { margin-inline: auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .bento .lg, .bento .md { grid-column: span 6; }
  .bento .sm { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --header-h: 116px; }
  .nav-actions .lang-toggle span { display: none; }
  .about-grid, .docs-grid, .cta-band { grid-template-columns: 1fr; }
  .about-visual { order: -1; min-block-size: 0; aspect-ratio: 16/10; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .stat + .stat { border-inline-start: none; }
  .stat:nth-child(odd) { border-inline-end: 1px solid rgba(255,255,255,.12); }
  .cta-band { text-align: center; }
  .cta-actions { max-width: 360px; margin-inline: auto; width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; }
  body { padding-block-end: 76px; }
}
@media (max-width: 520px) {
  .quick-grid, .services-grid, .news-grid, .bento, .stats, .mv-grid { grid-template-columns: 1fr; }
  .bento .lg, .bento .md, .bento .sm { grid-column: span 1; }
  .stat:nth-child(odd) { border-inline-end: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-badge { display: none; }
}

/* ==========================================================================
   REAL EJE HEADER (Figma) — identity bar, dual logos, real nav, UAE PASS
   ========================================================================== */
.site-header { background: rgba(249,247,242,.7); border-block-end: 1px solid rgba(230,215,162,.55);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.site-header.is-stuck { background: rgba(249,247,242,.86); border-block-end-color: var(--gold-200);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.55); }
/* solid fallback when transparency/blur is unsupported or reduced */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-stuck { background: var(--surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .site-header.is-stuck { background: var(--surface-2); }
}
.identity-bar { height: 5px; width: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); }

/* --- Top brand bar: branding only, breathing room, divider below --------- */
.brand-row { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 24px;
  border-block-end: 1px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { inline-size: 42px; block-size: 42px; flex-shrink: 0; }
.brand-logotype { block-size: 27px; width: auto; }
.moj-logo { block-size: 46px; width: auto; flex-shrink: 0; }

/* --- Bottom nav bar: navigation (start) + utility actions (end) ---------- */
.site-header .nav { height: 64px; display: flex; align-items: center; gap: 28px; border-block-start: none; }
.nav-links { display: flex; align-items: stretch; gap: 34px; margin-inline-end: auto; }
.nav-links a { position: relative; display: inline-flex; align-items: center; height: 64px; padding: 0;
  font-family: var(--font-ar); font-size: .98rem; font-weight: 500; color: var(--ink-700); transition: color .2s var(--ease); }
html[lang="en"] .nav-links a { font-family: var(--font-en); }
.nav-links a::after { content: ""; position: absolute; inset-block-end: 14px; inset-inline: 0; height: 2px; border-radius: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease); }
.nav-links a:hover { color: var(--gold-700); }
.nav-links a:hover::after { transform: scaleX(.5); }
.nav-links a.active { color: var(--gold-700); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

/* Utility actions — grouped and visually lighter than the main nav */
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions::before { content: ""; inline-size: 1px; block-size: 26px; background: var(--line); margin-inline-end: 4px; }
.lang-toggle { border: none; background: none; padding: 6px; gap: 6px; font-family: var(--font-en); font-weight: 600; color: var(--ink-500); font-size: .9rem; }
html[lang="ar"] .lang-toggle { font-family: var(--font-ar); }
.lang-toggle svg { inline-size: 17px; block-size: 17px; }
.lang-toggle:hover { background: none; color: var(--gold-700); }
.nav-contact { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-500); font-size: .92rem; }
.nav-contact svg { inline-size: 19px; block-size: 19px; }
.nav-contact:hover { color: var(--gold-700); }
.uaepass-btn { background: #fff; color: var(--char-900); border: 1px solid var(--char-900); border-radius: var(--r-pill);
  padding: 9px 16px; gap: 9px; font-weight: 600; font-size: .9rem; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.uaepass-btn:hover { background: var(--gold-50); border-color: var(--gold-500); color: var(--gold-800); transform: translateY(-1px); }
.uaepass-btn img { inline-size: 20px; block-size: 20px; }
.uaepass-btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* Footer brand uses real logo (light on dark) */
.brand-footer .brand-logotype { filter: brightness(0) invert(1); opacity: .92; block-size: 28px; }

/* Header responsive */
@media (max-width: 1024px) {
  .moj-logo { display: none; }
  .nav-links { display: none; }
  .site-header .nav { height: 62px; }
  .nav-actions { margin-inline-start: auto; gap: 14px; }
  .nav-actions::before { display: none; }
  .nav-contact span, .uaepass-btn span { display: none; }
  .uaepass-btn { padding: 9px 11px; }
}
@media (max-width: 600px) {
  .brand-row { padding-block: 14px; }
  .brand-logotype { block-size: 24px; }
  .brand-icon { inline-size: 38px; block-size: 38px; }
  .lang-toggle span { display: none; }
  .nav-contact { display: none; }
}

/* ==========================================================================
   عن الجهة — premium About section v2
   ========================================================================== */
.about-section { position: relative; overflow: hidden; }
.about-section .about-glow {
  position: absolute; inset-block-start: -12%; inset-inline-end: -8%;
  inline-size: 560px; block-size: 560px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(203,163,68,.16), transparent 62%);
}
.about-section .container { position: relative; z-index: 1; }
.about-section .about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

/* Figure */
.about-section .about-visual { position: relative; min-block-size: 0; }
.about-figure { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/4.3; box-shadow: var(--sh-3); border: 1px solid var(--gold-200); }
.about-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .9s var(--ease); }
.about-visual.in .about-figure img { transform: scale(1); }
.about-corner { position: absolute; inset-block-start: 18px; inset-inline-start: 18px; inline-size: 44px; block-size: 44px; z-index: 3; pointer-events: none;
  border-block-start: 2px solid var(--gold-500); border-inline-start: 2px solid var(--gold-500); border-start-start-radius: 12px; }
.about-figure-overlay { position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2; padding: 28px;
  background: linear-gradient(0deg, rgba(26,23,18,.95) 4%, rgba(26,23,18,.5) 56%, transparent);
  color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .8s .25s var(--ease), transform .8s .25s var(--ease); }
.about-visual.in .about-figure-overlay { opacity: 1; transform: none; }
.about-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 14px; }
.trust-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 600; color: #fff; }
.trust-chip svg { inline-size: 15px; block-size: 15px; color: var(--gold-500); }
/* a touch of green on the security/verified cues */
.trust-chip.is-secure { border-color: rgba(67,196,99,.5); background: rgba(67,196,99,.16); }
.trust-chip.is-secure svg { color: #4ed884; }
.about-figure-overlay .h3 { color: #fff; font-size: 1.32rem; }
.about-figure-overlay p { color: rgba(255,255,255,.82); font-size: .92rem; margin-block-start: 8px; max-width: 38ch; }
.about-float-badge { position: absolute; inset-block-start: 26px; inset-inline-end: -14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--gold-200); box-shadow: var(--sh-2);
  font-size: .84rem; font-weight: 700; color: var(--ink-900); }
.about-float-badge { border-color: rgba(31,138,91,.4); }
.about-float-badge svg { inline-size: 19px; block-size: 19px; color: var(--ok); }

/* Intro */
.about-intro .h2 { margin-block: 16px 0; max-width: 20ch; }
.about-intro .about-kicker { margin-block: 24px 10px; }
.about-intro .about-overview { max-width: 54ch; }

/* Value cards */
.about-section .mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-start: clamp(40px, 5vw, 64px); align-items: stretch; }
.about-section .mv-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px;
  background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.about-section .mv-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: var(--sh-3); }
.about-section .mv-ico { inline-size: 52px; block-size: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--gold-200); color: var(--gold-600); box-shadow: var(--sh-1); }
.about-section .mv-ico svg { inline-size: 23px; block-size: 23px; }
.about-section .mv-label { font-size: 1.15rem; font-weight: 700; color: var(--gold-800); letter-spacing: 0; text-transform: none; }
.about-section .mv-card p { font-size: .95rem; color: var(--ink-500); line-height: 1.75; }
/* featured middle card */
.about-section .mv-card.is-featured { background: linear-gradient(160deg, #fff, var(--gold-50)); border-color: var(--gold-400);
  box-shadow: var(--sh-2); transform: translateY(-10px); }
.about-section .mv-card.is-featured .mv-ico { background: var(--gold-500); border-color: var(--gold-500); color: #fff; box-shadow: var(--sh-gold); }
.about-section .mv-card.is-featured:hover { transform: translateY(-14px); }

/* CTA */
.about-cta-row { margin-block-start: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }
.about-cta { background: #fff; color: var(--gold-800); border: 1.5px solid var(--gold-500); border-radius: var(--r-pill);
  padding: 14px 30px; font-weight: 700; box-shadow: var(--sh-1); }
.about-cta:hover { background: var(--gold-500); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-gold); }
.about-cta svg { inline-size: 18px; block-size: 18px; }
html[dir="rtl"] .about-cta .i-flip { transform: scaleX(-1); }
.about-cta:hover .i-flip { transform: translateX(-4px); }
html[dir="rtl"] .about-cta:hover .i-flip { transform: scaleX(-1) translateX(-4px); }

/* Responsive */
@media (max-width: 980px) {
  .about-section .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-section .about-visual { order: -1; }
  .about-figure { aspect-ratio: 16/10; }
  .about-section .mv-card.is-featured { transform: translateY(0); }
  .about-section .mv-card.is-featured:hover { transform: translateY(-6px); }
}
@media (max-width: 680px) {
  .about-section .mv-grid { grid-template-columns: 1fr; }
  .about-cta-row { display: flex; }
  .about-cta { width: 100%; justify-content: center; }
  .about-float-badge { inset-inline-end: 10px; font-size: .76rem; }
}

/* ==========================================================================
   الخدمات — premium service cards v2
   ========================================================================== */
#services .services-grid { align-items: stretch; gap: 20px; }
#services .svc-card { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease); }
#services .svc-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: var(--sh-3); }
#services .svc-card:active { transform: translateY(-2px) scale(.995); }
#services .svc-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; transform: translateY(-4px); border-color: var(--gold-500); }

/* bigger icon that warms on hover */
#services .svc-ico { inline-size: 60px; block-size: 60px; border-radius: 16px; background: var(--gold-50); color: var(--gold-700);
  border: 1px solid var(--gold-200); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
#services .svc-ico svg { inline-size: 28px; block-size: 28px; }
#services .svc-card:hover .svc-ico { background: var(--gold-100); transform: scale(1.06); }

#services .svc-card h3 { font-size: 1.24rem; }
html[lang="ar"] #services .svc-card h3 { font-size: 1.12rem; }
#services .svc-card p { color: var(--ink-500); line-height: 1.72; }

/* CTA row with divider */
#services .svc-action { margin-block-start: auto; padding-block-start: 18px; border-block-start: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-700); font-size: .98rem; }
#services .svc-action svg { inline-size: 18px; }

/* featured: بوابة التنفيذ */
#services .svc-card.is-featured { border-color: var(--gold-500); box-shadow: var(--sh-2);
  background: linear-gradient(180deg, var(--gold-50), var(--surface) 42%); }
#services .svc-card.is-featured::before { transform: scaleX(1); block-size: 4px; }
#services .svc-card.is-featured:hover { transform: translateY(-9px); box-shadow: var(--sh-3); }
#services .svc-card.is-featured .svc-ico { background: var(--gold-500); color: #fff; border-color: var(--gold-500); box-shadow: var(--sh-gold); }
#services .svc-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-block-end: 2px;
  padding: 5px 12px; border-radius: var(--r-pill); background: var(--gold-500); color: #fff; font-size: .74rem; font-weight: 700; box-shadow: var(--sh-gold); }
#services .svc-flag svg { inline-size: 14px; block-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  #services .svc-card.is-featured::before { animation: featGlow 3.2s ease-in-out infinite; }
  @keyframes featGlow { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
}
/* featured CTA reads as a filled action */
#services .svc-card.is-featured .svc-action { color: var(--gold-800); border-block-start-color: var(--gold-200); }

/* priority: دفع الفواتير */
#services .svc-card.is-priority { border-color: var(--gold-400); }
#services .svc-card.is-priority .svc-ico { background: var(--gold-100); }

@media (max-width: 1024px) { #services .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #services .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   المواقع — service centres v2
   ========================================================================== */
.loc-side { display: flex; flex-direction: column; gap: 14px; }
.loc-helper { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-700);
  background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--r-md); padding: 13px 16px; }
.loc-helper svg { inline-size: 19px; block-size: 19px; color: var(--gold-700); flex-shrink: 0; }
.loc-list { gap: 12px; max-block-size: 560px; }

.loc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.loc-head b { flex: 1 1 100%; min-inline-size: 0; line-height: 1.3; }   /* title takes the full card width so it no longer gets crushed by the status badge */
.loc-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; white-space: nowrap; }
.loc-status .dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.loc-status.is-open { background: var(--ok-bg); color: var(--ok); }
.loc-status.is-closed { background: var(--surface-3); color: var(--ink-500); }

.loc-addr { display: inline-flex; align-items: center; gap: 7px; }
.loc-addr svg { inline-size: 15px; block-size: 15px; color: var(--ink-500); flex-shrink: 0; }

.loc-selected-tag { display: none; align-items: center; gap: 7px; margin-block-start: 6px; font-size: .8rem; font-weight: 700; color: var(--gold-700); }
.loc-card.is-active .loc-selected-tag { display: inline-flex; }
.loc-selected-tag svg { inline-size: 16px; block-size: 16px; }

/* directions: compact icon-only button (label kept for screen readers) so the card body has room for the title */
.loc-go { flex-direction: row; gap: 0; padding: 11px; font-size: .82rem; background: var(--gold-50);
  color: var(--gold-700); border: 1px solid var(--gold-200); }
.loc-go > span { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.loc-go svg { inline-size: 18px; block-size: 18px; }
.loc-go:hover { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }
.loc-go:hover svg { color: #fff; }
.loc-go:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* selected map pin pulse */
@media (prefers-reduced-motion: no-preference) {
  .map-pin.is-active::before { content: ""; position: absolute; inset-block-end: 2px; inset-inline-start: 50%;
    inline-size: 16px; block-size: 16px; border-radius: 50%; background: rgba(203,163,68,.45);
    transform: translateX(-50%); animation: pinPulse 2s ease-out infinite; z-index: -1; }
  @keyframes pinPulse { 0% { transform: translateX(-50%) scale(.5); opacity: .85; } 100% { transform: translateX(-50%) scale(2.8); opacity: 0; } }
}

/* ==========================================================================
   المواقع — map visual enhancement
   ========================================================================== */
.map-canvas { background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); }
.map-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 90px rgba(40,32,14,.07); border-radius: inherit; }
.map-water { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 48% at 80% 10%, rgba(70,120,140,.15), transparent 62%); }
.map-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(32% 32% at 42% 60%, rgba(203,163,68,.24), transparent 70%); }
.map-grid { inset: 22px; opacity: .96; z-index: 1; filter: drop-shadow(0 5px 12px rgba(40,32,14,.13)); }

.map-overlay { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--gold-200); box-shadow: var(--sh-1);
  font-size: .8rem; font-weight: 700; color: var(--ink-900); }
.map-overlay > svg { inline-size: 17px; block-size: 17px; color: var(--gold-600); }
.map-overlay-count { display: inline-flex; align-items: center; gap: 5px; padding-inline-start: 9px; margin-inline-start: 3px;
  border-inline-start: 1px solid var(--line); color: var(--ink-500); font-weight: 500; font-size: .76rem; }
.map-overlay-count .num { color: var(--gold-700); font-weight: 800; }

.map-legend { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: .76rem; font-weight: 600; color: var(--ink-700); }
.lg-pin { inline-size: 11px; block-size: 11px; border-radius: 50% 50% 50% 0; transform: rotate(45deg);
  background: var(--gold-500); box-shadow: 0 1px 2px rgba(40,32,14,.3); }

/* premium pins with labels */
.map-pin { transform: translate(-50%, -100%); display: grid; place-items: center; background: none; border: none; }
.map-pin .pin-ico { inline-size: 34px; block-size: 34px; color: var(--gold-600);
  filter: drop-shadow(0 4px 5px rgba(40,32,14,.35)); transition: color .25s var(--ease), filter .25s var(--ease); }
.map-pin:hover { transform: translate(-50%, -100%) scale(1.12); }
.map-pin:hover .pin-ico { color: var(--gold-700); }
.map-pin.is-active { transform: translate(-50%, -100%) scale(1.3); z-index: 5; }
.map-pin.is-active .pin-ico { color: var(--gold-500); filter: drop-shadow(0 5px 9px rgba(176,137,63,.6)); }
.pin-label { position: absolute; inset-block-end: calc(100% - 3px); inset-inline-start: 50%;
  transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: #fff; border: 1px solid var(--gold-200); color: var(--ink-900);
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.map-pin:hover .pin-label, .map-pin.is-active .pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* mobile drawer language toggle */
.mm-lang { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: none;
  font-family: var(--font-ar); font-weight: 600; font-size: 1rem; color: var(--ink-700); }
html[lang="en"] .mm-lang { font-family: var(--font-en); }
.mm-lang:hover { border-color: var(--gold-400); color: var(--gold-700); }
.mm-lang svg { inline-size: 19px; block-size: 19px; color: var(--gold-700); }

/* ==========================================================================
   Subtle EJE weave pattern in dark sections (same as hero)
   ========================================================================== */
.section.dark { position: relative; overflow: hidden; }
.section.dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../img/pattern.svg"); background-size: 460px;
  opacity: .08;
  -webkit-mask-image: radial-gradient(78% 78% at 86% 16%, #000, transparent 74%);
          mask-image: radial-gradient(78% 78% at 86% 16%, #000, transparent 74%);
}
.section.dark > .container { position: relative; z-index: 1; }

/* ==========================================================================
   CONSISTENCY PASS — one icon-tile system, unified card radius
   Rule: square icon tiles = --r-tile (12px); circular badges stay circular
   (Mission/Vision per the About brief, step numbers, map pins). Cards = --r-lg.
   ========================================================================== */
:root { --r-tile: 12px; }

/* every rounded-square icon container → one radius */
.quick-ico, .svc-ico, .bc-ico, .ab-ico, .cr-ico, .loc-pin-ico, .doc-check,
.ps-brand, .ps-act, .qr-frame, .about-point .pt-ico,
#services .svc-ico { border-radius: var(--r-tile); }

/* unified tile sizes (48px standard; services = the one documented larger tile) */
.quick-ico, .bc-ico { inline-size: 48px; block-size: 48px; }
#services .svc-ico { inline-size: 56px; block-size: 56px; }

/* card radius unified to --r-lg (status card + doc rows included) */
.hero-card, .doc-item { border-radius: var(--r-lg); }

/* ==========================================================================
   INTERACTION LAYER — scroll progress, cursor spotlight, magnetic, parallax
   (all transform/opacity, reduced-motion + hover-capability gated)
   ========================================================================== */
.scroll-progress { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Scroll-driven progress bar (no JS scroll listener) */
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block; position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: var(--z-popover);
      background: linear-gradient(90deg, var(--gold-500), var(--gold-700));
      transform: scaleX(0); transform-origin: 0 50%;
      animation: sp-grow linear both; animation-timeline: scroll(root);
    }
    html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
    @keyframes sp-grow { to { transform: scaleX(1); } }

    /* Hero parallax is now handled by GSAP ScrollTrigger (cross-browser) — see main.js */
  }

  /* Magnetic buttons (JS sets transform; this smooths the spring-back) */
  .magnetic { transition: transform .4s cubic-bezier(.16,1,.3,1); }
}

/* Cursor spotlight on interactive cards */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .svc-card, .quick-card, .news-card { position: relative; overflow: hidden; }
  .svc-card::after, .quick-card::after, .news-card::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
    opacity: 0; transition: opacity .35s var(--ease);
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(203,163,68,.16), transparent 62%);
  }
  .quick-card.is-primary::after { background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(203,163,68,.28), transparent 60%); }
  .svc-card:hover::after, .quick-card:hover::after, .news-card:hover::after { opacity: 1; }
  /* keep content above the glow */
  .svc-card > *, .quick-card > *, .news-card > * { position: relative; z-index: 1; }
  .news-card .news-media { z-index: 1; }
}

/* ==========================================================================
   ARABIC LUXURY TYPOGRAPHY — Reem Kufi (display) + Tajawal (body)
   Generous leading, lighter elegant display weight, airy subtitles.
   ========================================================================== */
html[lang="ar"] body { line-height: 1.85; font-weight: 400; letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .display, html[lang="ar"] .h2, html[lang="ar"] .h3 { line-height: 1.5; font-weight: 700; }
html[lang="ar"] .display { font-weight: 700; }
html[lang="ar"] .lead { line-height: 2; font-weight: 400; color: var(--ink-500); }
html[lang="ar"] p { line-height: 1.9; }
html[lang="ar"] .eyebrow { font-weight: 500; letter-spacing: 0; }
html[lang="ar"] .btn { font-weight: 500; }
html[lang="ar"] .nav-links a { font-weight: 500; }
html[lang="ar"] .svc-action, html[lang="ar"] .mv-label, html[lang="ar"] b, html[lang="ar"] strong { font-weight: 600; }
/* Reem Kufi sits slightly smaller than Kufi at the same px — nudge titles up a touch */
html[lang="ar"] .h2 { font-size: clamp(1.3rem, 1.12rem + 1.5vw, 2.2rem); }
html[lang="ar"] .display { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); }

/* ==========================================================================
   الخدمات — premium card upgrade (gradient icon, arrow chip, depth)
   ========================================================================== */
#services .services-grid { gap: 22px; }
#services .svc-card { padding: 32px 28px 26px; }

/* gradient gold icon tile, white glyph, inner highlight */
#services .svc-ico {
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); color: #fff; border: none;
  box-shadow: 0 8px 18px rgba(176,137,63,.30), inset 0 1px 0 rgba(255,255,255,.45);
}
#services .svc-card:hover .svc-ico { transform: translateY(-2px) scale(1.05); background: linear-gradient(145deg, var(--gold-500), var(--gold-700)); }
#services .svc-card.is-priority .svc-ico { background: linear-gradient(145deg, var(--gold-500), var(--gold-700)); }

/* faint watermark glyph for depth (decorative, behind content) */
#services .svc-card .svc-watermark { position: absolute; inset-block-start: -10px; inset-inline-end: -10px; z-index: 0;
  inline-size: 120px; block-size: 120px; color: var(--gold-500); opacity: .05; pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease); }
#services .svc-card .svc-watermark svg { inline-size: 100%; block-size: 100%; }
#services .svc-card:hover .svc-watermark { opacity: .09; transform: rotate(-6deg) scale(1.05); }
#services .svc-card > *:not(.svc-num) { position: relative; z-index: 1; }

/* action row: label + circular arrow chip pinned to the far edge */
#services .svc-action { justify-content: space-between; width: 100%; color: var(--gold-700); font-weight: 700; }
#services .svc-action svg { inline-size: 36px; block-size: 36px; padding: 9px; box-sizing: border-box; border-radius: 50%;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease); }
#services .svc-card:hover .svc-action svg { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }
html[dir="rtl"] #services .svc-action svg { transform: scaleX(-1); }
#services .svc-card:hover .svc-action svg { transform: translateX(4px); }
html[dir="rtl"] #services .svc-card:hover .svc-action svg { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   PREMIUM POLISH PASS — subtle section depth, rhythm
   (shadows + --section-y now live in tokens.css)
   ========================================================================== */

/* Light "alt" sections get a faint warm glow + brand weave so they aren't flat white */
.section.alt { position: relative; overflow: hidden; }
.section.alt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 55% at 88% 4%, rgba(203,163,68,.06), transparent 62%),
    url("../img/pattern.svg");
  background-size: auto, 520px; opacity: .16;
  -webkit-mask-image: radial-gradient(82% 82% at 90% 6%, #000, transparent 72%);
          mask-image: radial-gradient(82% 82% at 90% 6%, #000, transparent 72%);
}
.section.alt > .container { position: relative; z-index: 1; }

/* a little more air under section headers + calmer rhythm */
.section-head { margin-block-end: 4px; }
.section-head .lead { margin-block-start: 14px; }

/* Hero status card sits on the dark hero but is a light card — reset text to ink */
.hero--media .hero-card { color: var(--ink-900); }

/* ==========================================================================
   الشركاء — partners grid
   ========================================================================== */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block-start: 48px; }
.partner { display: flex; align-items: center; gap: 16px; --card-pad: 22px 24px; --card-radius: var(--r-lg); --card-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.partner:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--gold-200); }
.partner-ico, .partner-logo { flex-shrink: 0; inline-size: 56px; block-size: 56px; border-radius: var(--r-tile); display: grid; place-items: center; }
.partner-ico { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); }
.partner-ico svg { inline-size: 26px; block-size: 26px; }
.partner-logo { background: #fff; border: 1px solid var(--line); padding: 9px; }
.partner-logo img { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.partner b { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: 1fr; } }

/* 7 services in a 3-col grid: center the lone last card instead of orphaning it */
#services .services-grid > .svc-card:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 1024px) { #services .services-grid > .svc-card:last-child { grid-column: auto; } }

/* ==========================================================================
   Services carousel + numbered cards + locations no inner scroll
   ========================================================================== */
#services .services-grid {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block-end: 16px; scroll-padding-inline-start: 2px;
}
#services .svc-card { flex: 0 0 clamp(280px, 30%, 342px); scroll-snap-align: start; }
#services .services-grid::-webkit-scrollbar { height: 6px; }
#services .services-grid::-webkit-scrollbar-track { background: var(--line-2); border-radius: 99px; }
#services .services-grid::-webkit-scrollbar-thumb { background: var(--gold-300, var(--gold-400)); border-radius: 99px; }
#services .services-grid { scrollbar-width: thin; scrollbar-color: var(--gold-400) var(--line-2); }

/* large faint number replaces the icon watermark */
#services .svc-num {
  position: absolute; inset-block-start: -8px; inset-inline-end: 14px; z-index: 0; pointer-events: none;
  font-family: var(--font-en); font-weight: 800; font-size: 6.6rem; line-height: 1; letter-spacing: -.05em;
  color: var(--gold-500); opacity: .1;
}

/* locations: keep the cards list at a fixed height and scroll inside it (desktop) */
@media (min-width: 1025px) { .loc-list { max-block-size: 560px; overflow-y: auto; } }
@media (max-width: 1024px) { .loc-list { overflow-x: auto; } }

/* carousel clips vertically because overflow-x:auto -> give room for hover-lift + shadow */
#services .services-grid { padding-block: 18px 20px; margin-block: -4px 0; }

/* Full-bleed services carousel: span the whole screen width, cards aligned to container edge */
#services .services-grid {
  width: 100vw; max-width: 100vw;
  position: relative; left: 50%; transform: translateX(-50%);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

/* corrected full-bleed (margin-based, accounts for container padding) */
#services .services-grid {
  position: static; left: auto; transform: none;
  width: auto; max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - (var(--container) / 2) + var(--gutter)));
  scroll-padding-inline-start: max(var(--gutter), calc(50vw - (var(--container) / 2) + var(--gutter)));
}

/* ============ Premium phone mockup (mini-app preview) ============ */
.phone-mock {
  position: relative; inline-size: 268px; flex: 0 0 auto;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(155deg, #34302a, var(--char-900) 60%);
  box-shadow: 0 44px 90px -26px rgba(40,32,14,.5), 0 8px 24px -8px rgba(0,0,0,.3),
              inset 0 0 0 2px rgba(255,255,255,.05), inset 0 1px 1px rgba(255,255,255,.12);
  border: 1px solid rgba(203,163,68,.28);
}
.phone-island {
  position: absolute; inset-block-start: 22px; inset-inline-start: 50%; transform: translateX(-50%);
  inline-size: 84px; block-size: 24px; border-radius: 99px; background: #07060a; z-index: 6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone-key { position: absolute; inline-size: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
.phone-key-r  { inset-inline-end: -4px; inset-block-start: 138px; block-size: 58px; }
.phone-key-l1 { inset-inline-start: -4px; inset-block-start: 116px; block-size: 30px; }
.phone-key-l2 { inset-inline-start: -4px; inset-block-start: 158px; block-size: 58px; }

.phone-screen {
  block-size: auto; border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--gold-50), #fff 26%);
}

/* status bar */
.ps-statusbar { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px 2px; font-size: .74rem; font-weight: 700; color: var(--ink-strong); }
.ps-sb { display: inline-flex; align-items: center; gap: 6px; }
.ps-signal { display: inline-flex; align-items: flex-end; gap: 2px; block-size: 10px; }
.ps-signal i { inline-size: 2.5px; background: var(--char-900); border-radius: 1px; }
.ps-signal i:nth-child(1){block-size:4px} .ps-signal i:nth-child(2){block-size:6px}
.ps-signal i:nth-child(3){block-size:8px} .ps-signal i:nth-child(4){block-size:10px}
.ps-wifi { inline-size: 14px; block-size: 10px; background: var(--char-900);
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 0 32%, transparent 33%) bottom/100% 100% no-repeat;
  mask: radial-gradient(circle at 50% 100%, #000 0 32%, transparent 33%) bottom/100% 100% no-repeat;
  clip-path: polygon(50% 100%, 0 30%, 100% 30%); }
.ps-batt { position: relative; inline-size: 22px; block-size: 11px; border: 1.4px solid var(--char-900);
  border-radius: 3px; padding: 1.4px; }
.ps-batt::after { content:""; position:absolute; inset-inline-end:-3.5px; inset-block:3px;
  inline-size:2px; background: var(--char-900); border-radius:0 2px 2px 0; }
.ps-batt i { display:block; block-size:100%; inline-size:72%; background: var(--ok,#2f9e44); border-radius:1px; }

/* greeting header */
.ps-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 11px; }
.ps-greet { display: flex; flex-direction: column; line-height: 1.25; gap: 1px; }
.ps-greet small { font-size: .66rem; color: var(--ink-500); }
.ps-greet b { font-size: .94rem; font-weight: 700; color: var(--ink-strong); }
.ps-bell { position: relative; inline-size: 36px; block-size: 36px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-700); box-shadow: var(--sh-1); }
.ps-bell svg { inline-size: 18px; block-size: 18px; }
.ps-bell .ps-dot { position: absolute; inset-block-start: 8px; inset-inline-end: 9px;
  inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--gold-500); border: 1.5px solid #fff; }

/* live status card */
.ps-card { position: relative; overflow: hidden; margin: 0 14px; padding: 14px; flex: 0 0 auto;
  border-radius: 18px; color: #fff; display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(150deg, #2f2a22, var(--char-900));
  box-shadow: 0 18px 30px -16px rgba(40,32,14,.55); }
.ps-card::after { content:""; position:absolute; inset-block-start:-34px; inset-inline-end:-24px;
  inline-size:100px; block-size:100px; border-radius:50%;
  background: radial-gradient(circle, rgba(203,163,68,.34), transparent 70%); }
.ps-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  position: relative; z-index: 1; }
.ps-ref { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; flex: 1 1 auto; }
.ps-ref small { font-size: .58rem; color: rgba(255,255,255,.62); }
.ps-ref .num { font-size: .7rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.ps-status { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: 0 0 auto;
  font-size: .52rem; font-weight: 700; padding: 4px 8px; border-radius: 99px;
  background: rgba(203,163,68,.2); color: var(--gold-200,#e6d7a2); }
.ps-status .dot { inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--gold-400); }
.ps-card .ps-bar { block-size: 7px; border-radius: 99px; background: rgba(255,255,255,.15);
  overflow: hidden; position: relative; z-index: 1; }
.ps-card .ps-bar i { display:block; block-size:100%; border-radius:99px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.ps-card-foot { display: flex; align-items: center; justify-content: space-between;
  font-size: .66rem; color: rgba(255,255,255,.82); position: relative; z-index: 1; }
.ps-card-foot .num { font-weight: 800; color: var(--gold-400); }

/* quick services */
.ps-label { padding: 8px 18px 7px; font-size: .72rem; font-weight: 700; color: var(--ink-strong); }
.ps-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.ps-tile { display: flex; flex-direction: column; gap: 7px; padding: 9px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); }
.ps-tile i { inline-size: 30px; block-size: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-50), var(--gold-100)); color: var(--gold-700); }
.ps-tile i svg { inline-size: 16px; block-size: 16px; }
.ps-tile small { font-size: .68rem; font-weight: 600; color: var(--ink-strong); }

/* bottom tab bar */
.ps-tabbar { margin-block-start: auto; display: flex; align-items: center; justify-content: space-around;
  padding: 12px 20px 16px; background: #fff; border-block-start: 1px solid var(--line-2);
  position: relative; }
.ps-tabbar::after { content:""; position:absolute; inset-block-end:8px; inset-inline-start:50%;
  transform: translateX(-50%); inline-size:108px; block-size:4px; border-radius:99px; background: var(--char-900); opacity:.85; }
.ps-tab { color: var(--ink-300,#9aa0a8); display: grid; place-items: center; }
.ps-tab svg { inline-size: 23px; block-size: 23px; }
.ps-tab.is-active { color: var(--gold-600); }

@media (max-width: 480px) { .phone-mock { inline-size: 244px; } }

/* ============ Partner courts network ============ */
.net-stats { display: inline-flex; align-items: center; gap: 26px; margin-block-start: 22px;
  padding: 14px 28px; border-radius: var(--r-pill, 99px); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-1); }
.net-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.net-stat b { font-family: var(--font-en); font-size: 1.9rem; font-weight: 800; color: var(--gold-600); letter-spacing: -.02em; }
.net-stat small { font-size: .8rem; color: var(--ink-500); margin-block-start: 3px; }
.net-div { inline-size: 1px; align-self: stretch; background: var(--line); }

/* Success Partners — premium courts network. 3-col grid; the busiest emirate spans two rows
   so every column ends on the same baseline (flush bottom) with minimal stretch. */
.courts-net { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-block-start: 44px; align-items: stretch; }
.ce-tall { grid-row: span 2; }
.court-emirate { display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-lg, 18px);
  padding: 22px 24px 14px; box-shadow: var(--sh-1);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.court-emirate::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400) 55%, transparent);
  transform: scaleX(0); transform-origin: inline-start; transition: transform .4s var(--ease); }
.court-emirate:hover { border-color: var(--gold-200, #e7d09a); box-shadow: 0 24px 46px -24px rgba(40,32,14,.42); transform: translateY(-4px); }
.court-emirate:hover::before { transform: scaleX(1); }

.ce-head { display: flex; align-items: center; gap: 12px; padding-block-end: 15px; margin-block-end: 13px; border-block-end: 1px solid var(--line-2); }
.ce-pin { inline-size: 38px; block-size: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); border: 1px solid transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(176,137,63,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ce-pin svg { inline-size: 19px; block-size: 19px; }
.court-emirate:hover .ce-pin { transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -8px rgba(176,137,63,.62); }
.ce-head b { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink-strong); flex: 1 1 auto; min-inline-size: 0; }
.ce-count { flex: 0 0 auto; min-inline-size: 26px; block-size: 24px; padding: 0 9px; border-radius: var(--r-pill, 99px); display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  font-family: var(--font-en); font-weight: 700; font-size: .8rem; }

.court-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.court-list li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 2px; font-size: .92rem; line-height: 1.5;
  color: var(--ink-700); border-block-end: 1px solid var(--line-2); transition: color .2s var(--ease), padding-inline-start .2s var(--ease); }
.court-list li:last-child { border-block-end: none; }
.court-list li svg { display: none; }
.court-list li::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; flex: 0 0 auto; margin-block-start: 7px;
  background: var(--gold-400); box-shadow: 0 0 0 3px var(--gold-50); transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.court-list li:hover { color: var(--ink-strong); padding-inline-start: 5px; }
.court-list li:hover::before { background: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }

@media (max-width: 920px) { .courts-net { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ce-tall { grid-row: auto; } }
@media (max-width: 560px) { .courts-net { grid-template-columns: 1fr; } .net-stats { gap: 18px; padding: 12px 20px; } }

/* ============ Success Partners — court cards (eje.ae style) ============ */
.partner-courts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-block-start: 40px; }
.pc-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  --card-pad: 24px 18px;
  --card-radius: var(--r-lg, 18px); --card-shadow: var(--sh-1);
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.pc-card:hover { border-color: var(--gold-300, #e6d7a2); box-shadow: var(--sh-2); transform: translateY(-4px); }
.pc-ico { inline-size: 46px; block-size: 46px; flex: 0 0 auto; border-radius: var(--r-tile, 12px); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-50), var(--gold-100)); color: var(--gold-700);
  box-shadow: inset 0 0 0 1px var(--gold-200, #e6d7a2); }
.pc-ico svg { inline-size: 23px; block-size: 23px; }
.pc-card b { font-family: var(--font-ar-title, var(--font-ar)); font-weight: 700; font-size: .98rem;
  line-height: 1.45; color: var(--ink-strong); }
.pc-card small { font-size: .82rem; font-weight: 600; color: var(--gold-700); }

@media (max-width: 1100px) { .partner-courts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .partner-courts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .partner-courts { grid-template-columns: 1fr; } }

/* ============ Dark map theme (المواقع) ============ */
.loc-map { border-color: rgba(203,163,68,.28); box-shadow: 0 24px 50px -24px rgba(20,16,8,.55); }
.map-canvas { background: radial-gradient(120% 90% at 50% 0%, #2a2419, #161109 70%); }
.map-canvas::after { box-shadow: inset 0 0 120px rgba(0,0,0,.55); }
.map-water { background:
  radial-gradient(56% 46% at 82% 8%, rgba(92,142,168,.20), transparent 60%),
  radial-gradient(40% 30% at 8% 78%, rgba(92,142,168,.12), transparent 65%); }
.map-glow { background: radial-gradient(34% 34% at 44% 60%, rgba(203,163,68,.30), transparent 72%); }
/* light land becomes an elevated slate landmass; gold borders get a glow */
.map-grid { opacity: .96; filter: brightness(.92) sepia(.10) saturate(1.05)
  drop-shadow(0 0 1px rgba(203,163,68,.55)) drop-shadow(0 10px 18px rgba(0,0,0,.5)); }

/* overlay + legend chips → dark glass */
.map-overlay { background: rgba(22,18,11,.72); border-color: rgba(203,163,68,.32); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.map-overlay > svg { color: var(--gold-400, #d9bd6e); }
.map-overlay-count { border-inline-start-color: rgba(255,255,255,.18); color: rgba(255,255,255,.62); }
.map-overlay-count .num { color: var(--gold-400, #d9bd6e); }
.map-legend { background: rgba(22,18,11,.72); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.78); }

/* pins + labels on dark */
.map-pin .pin-ico { filter: drop-shadow(0 4px 7px rgba(0,0,0,.55)); }
.map-pin.is-active .pin-ico { color: var(--gold-400, #d9bd6e); filter: drop-shadow(0 0 10px rgba(203,163,68,.7)); }
.pin-label { background: rgba(20,16,9,.94); border-color: rgba(203,163,68,.4); color: #fff; }

/* ============ News: scroll-snap carousel ============ */
#media .news-grid { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 12px 18px; margin-block: -4px 0; scroll-padding-inline-start: 2px; align-items: stretch; }
#media .news-card { flex: 0 0 clamp(300px, 33%, 360px); scroll-snap-align: start; }
#media .news-grid::-webkit-scrollbar { height: 6px; }
#media .news-grid::-webkit-scrollbar-track { background: var(--line-2); border-radius: 99px; }
#media .news-grid::-webkit-scrollbar-thumb { background: var(--gold-300, var(--gold-400)); border-radius: 99px; }
#media .news-grid { scrollbar-width: thin; scrollbar-color: var(--gold-400) var(--line-2); }

/* News carousel: full-bleed to screen, first card aligned to container/heading edge */
#media .news-grid {
  width: auto; max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - (var(--container) / 2) + var(--gutter)));
  scroll-padding-inline-start: max(var(--gutter), calc(50vw - (var(--container) / 2) + var(--gutter)));
}


/* ============================ Floating chatbot ============================ */
.chatbot { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: var(--z-popover);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.chatbot > * { pointer-events: auto; }

/* launcher */
.chat-fab { position: relative; inline-size: 60px; block-size: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 16px 30px -10px rgba(176,137,63,.6), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-fab svg { inline-size: 26px; block-size: 26px; transition: opacity .2s, transform .25s; }
.chat-fab .ic-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
.chatbot.open .chat-fab .ic-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chatbot.open .chat-fab .ic-close { opacity: 1; transform: rotate(0) scale(1); }
/* pulse ring removed — a constant attention-magnet undercuts the calm register */
.chat-fab-pulse { display: none; }

/* panel */
.chat-panel { position: absolute; inset-block-end: 74px; inset-inline-end: 0;
  inline-size: min(360px, calc(100vw - 32px)); block-size: min(70vh, 540px);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transform-origin: bottom right;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 34px 70px -24px rgba(40,32,14,.5), 0 10px 24px -12px rgba(0,0,0,.25);
  display: flex; flex-direction: column; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease); }
html[dir="rtl"] .chat-panel { transform-origin: bottom left; inset-inline-end: 0; }
.chatbot.open .chat-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; flex: 0 0 auto;
  background: linear-gradient(135deg, #2f2a22, var(--char-900)); color: #fff; }
.chat-avatar { inline-size: 40px; block-size: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); color: #fff; }
.chat-avatar svg { inline-size: 22px; block-size: 22px; }
.chat-id { display: flex; flex-direction: column; line-height: 1.3; margin-inline-end: auto; }
.chat-id b { font-size: .96rem; font-weight: 700; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: rgba(255,255,255,.7); }
.chat-status i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: #43c463; box-shadow: 0 0 0 3px rgba(67,196,99,.25); }
.chat-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; padding: 6px; border-radius: 8px;
  display: grid; place-items: center; transition: background .2s, color .2s; }
.chat-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.chat-close svg { inline-size: 18px; block-size: 18px; }

.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--gold-50); }
.chat-msg { display: flex; max-inline-size: 86%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg .bubble { padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.55; }
.chat-msg.bot .bubble { background: #fff; border: 1px solid var(--line); color: var(--char-900); border-end-start-radius: 5px; }
.chat-msg.user .bubble { background: linear-gradient(145deg, var(--gold-500), var(--gold-600)); color: #fff; border-end-end-radius: 5px; }
.chat-msg.typing .bubble { display: inline-flex; gap: 4px; }
.chat-msg.typing .bubble i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--gold-500); opacity: .5;
  animation: chatDot 1s infinite ease-in-out; }
.chat-msg.typing .bubble i:nth-child(2){ animation-delay: .15s; } .chat-msg.typing .bubble i:nth-child(3){ animation-delay: .3s; }
@keyframes chatDot { 0%,60%,100%{ transform: translateY(0); opacity:.4 } 30%{ transform: translateY(-4px); opacity:1 } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-block-start: 1px solid var(--line-2);
  background: #fff; flex: 0 0 auto; }
.qchip { border: 1px solid var(--gold-200); background: var(--gold-50); color: var(--gold-700); cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 600; padding: 7px 12px; border-radius: 99px;
  transition: background .2s, color .2s, border-color .2s; }
.qchip:hover { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-block-start: 1px solid var(--line-2);
  background: #fff; flex: 0 0 auto; }
.chat-input input { flex: 1 1 auto; min-inline-size: 0; border: 1px solid var(--line); border-radius: 99px;
  padding: 10px 16px; font-family: inherit; font-size: .9rem; color: var(--ink-strong); background: var(--surface-2); }
.chat-input input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-400); background: #fff; }
.chat-input input:focus { border-color: var(--gold-400); background: #fff; }
.chat-send { flex: 0 0 auto; inline-size: 42px; block-size: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  transition: transform .2s; }
.chat-send:hover { transform: scale(1.06); }
.chat-send svg { inline-size: 19px; block-size: 19px; }

/* keep clear of the mobile sticky CTA */
@media (max-width: 768px) { .chatbot { inset-block-end: 22px; inset-inline-end: 16px; } }

/* a little more green on the security / trust cues */
.hero--media .hero-trust li:nth-child(odd) svg { color: #4ed884; }
.bento-cell.feature .bc-ico { background: rgba(67,196,99,.16); color: #4ed884;
  box-shadow: inset 0 0 0 1px rgba(67,196,99,.32); }

/* phone mockup: keep sections at natural height (don't let flex shrink them) */
.ps-statusbar, .ps-header, .ps-card, .ps-label, .ps-tiles, .ps-tabbar { flex: 0 0 auto; }

/* Smooth (non-clipped) hover shadow on carousel cards */
#services .services-grid, #media .news-grid { padding-block-end: 30px; margin-block-end: -12px; }
#services .svc-card:hover, #media .news-card:hover {
  box-shadow: 0 10px 26px -10px rgba(40,32,14,.22), 0 3px 8px -4px rgba(40,32,14,.10);
}

/* Success Partners: make the "4 emirates" number green */
.net-stats .net-stat:last-child b { color: var(--ok); }


/* Hero secondary action — quiet text link (subordinate to the primary CTA) */
.hero-textlink { display: inline-flex; align-items: center; gap: 7px; padding-block: 8px;
  color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; opacity: .9;
  border-bottom: 1px solid rgba(255,255,255,.4); transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.hero-textlink:hover { opacity: 1; border-color: var(--gold-400); }
.hero-textlink svg { inline-size: 18px; block-size: 18px; }

/* typeset: cap measure on leads, reduce prose orphans */
.lead { max-width: 68ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* Placeholder contrast — AA-compliant, full opacity (Firefox dims by default) */
.chat-input input::placeholder { color: var(--ink-500); opacity: 1; }

/* ===================== INNER PAGES (request / track / …) ===================== */
/* DARK hero (image + warm-charcoal scrim + white text) */
.page-hero { position: relative; overflow: hidden; min-block-size: clamp(150px, 19vw, 210px);
  display: flex; align-items: center; color: #fff; background: var(--char-900);
  border-block-end: 1px solid rgba(203,163,68,.3); padding-block: clamp(28px, 4vw, 52px); }
/* layer 0: page image; layer 1: dark scrim — heavier on the text side, lighter on the far side */
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(16,13,7,.92) 0%, rgba(20,16,9,.8) 42%, rgba(20,16,9,.52) 78%, rgba(20,16,9,.4) 100%),
    var(--hero-img, none);
  background-size: cover, cover; background-position: center, center; background-repeat: no-repeat; }
html[dir="rtl"] .page-hero::before {
  background:
    linear-gradient(260deg, rgba(16,13,7,.92) 0%, rgba(20,16,9,.8) 42%, rgba(20,16,9,.52) 78%, rgba(20,16,9,.4) 100%),
    var(--hero-img, none);
  background-size: cover, cover; background-position: center, center; background-repeat: no-repeat; }
/* layer 2: woven pattern (gold on dark), masked toward the image side */
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .14;
  background: url("../img/pattern.svg"); background-size: 440px;
  -webkit-mask-image: radial-gradient(75% 90% at 88% 12%, #000, transparent 70%);
          mask-image: radial-gradient(75% 90% at 88% 12%, #000, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; inline-size: 100%; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); text-wrap: balance; color: #fff; }
.page-hero .lead { margin-block-start: 14px; max-width: 60ch; color: rgba(255,255,255,.82); }
.page-hero .breadcrumb { color: rgba(255,255,255,.62); }
.page-hero .breadcrumb a { color: var(--gold-400, #d9bd6e); }
.page-hero .breadcrumb svg { opacity: .7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-500);
  margin-block-end: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { inline-size: 13px; block-size: 13px; opacity: .55; }
html[dir="rtl"] .breadcrumb svg { transform: scaleX(-1); }
.page-body { padding-block: clamp(40px, 6vw, 84px); }
.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 880px) { .page-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card { --card-radius: var(--r-lg); --card-pad: clamp(22px, 3vw, 34px); --card-shadow: var(--sh-1); }
.field { display: flex; flex-direction: column; gap: 7px; margin-block-end: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field label .req { color: var(--err); }
.field .hint { font-size: .82rem; color: var(--ink-500); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1rem; color: var(--ink-900);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); inline-size: 100%; }
.field textarea { resize: vertical; min-block-size: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-400); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); opacity: 1; }
.field.is-error input, .field.is-error select { border-color: var(--err); background: var(--err-bg); }
.field .err-msg { font-size: .82rem; color: var(--err); display: none; }
.field.is-error .err-msg { display: block; }

/* Stepper */
.stepper { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; margin-block-end: 30px; padding-inline: 0; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; min-inline-size: 0; }
.stepper .sdot { inline-size: 30px; block-size: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; font-size: .85rem; background: var(--surface-3); color: var(--ink-500);
  border: 1px solid var(--line); }
.stepper .slabel { font-size: .86rem; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.stepper li.is-active .sdot { background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); color: #fff; border-color: transparent; }
.stepper li.is-active .slabel { color: var(--ink-strong); }
.stepper li.is-done .sdot { background: var(--ok); color: #fff; border-color: transparent; }
.stepper li.is-done .slabel { color: var(--ink-700); }
.stepper li:not(:last-child)::after { content: ""; flex: 0 0 auto; inline-size: 44px; block-size: 1px; background: var(--line); }
@media (max-width: 640px) { .stepper .slabel { display: none; } .stepper li:not(:last-child)::after { inline-size: 22px; } }

.form-step { display: none; }
.form-step.is-current { display: block; animation: stepIn .35s var(--ease); }
@media (prefers-reduced-motion: reduce) { .form-step.is-current { animation: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block-start: 26px; padding-block-start: 22px; border-block-start: 1px solid var(--line-2); }

/* Service radio choices */
.choice-grid { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--gold-300, var(--gold-200)); background: var(--gold-50); }
.choice input { position: absolute; opacity: 0; }
.choice .c-ico { inline-size: 42px; block-size: 42px; flex: 0 0 auto; border-radius: var(--r-tile, 12px); display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); }
.choice .c-ico svg { inline-size: 22px; block-size: 22px; }
.choice .c-body b { display: block; font-size: .98rem; }
.choice .c-body span { font-size: .85rem; color: var(--ink-500); }
.choice .c-check { margin-inline-start: auto; inline-size: 22px; block-size: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.choice:has(input:checked) { border-color: var(--gold-500); background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold-400); }
.choice:has(input:checked) .c-check { background: var(--gold-500); border-color: var(--gold-500); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Aside info card */
.aside-card { --card-radius: var(--r-lg); --card-pad: 22px; --card-shadow: var(--sh-1); }
.aside-card + .aside-card { margin-block-start: 18px; }
.aside-card h3 { font-size: 1.05rem; margin-block-end: 14px; }
.aside-card .doc-list { display: grid; gap: 10px; }

/* Track */
.track-form { /* full width — matches the result row below it */ }
.track-search { display: flex; align-items: stretch; gap: 12px; }
.track-search input { flex: 1 1 auto; min-inline-size: 0; }
.track-search .btn { flex: 0 0 auto; }
@media (max-width: 540px) { .track-search { flex-direction: column; } .track-search .btn { inline-size: 100%; } }
.track-result { margin-block-start: 32px; }
.track-empty { text-align: center; padding: 40px 20px; color: var(--ink-500); }
.track-empty svg { inline-size: 48px; block-size: 48px; color: var(--gold-300, var(--gold-200)); margin-block-end: 14px; }

/* request review summary + inline service error */
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-block-end: 1px solid var(--line-2); font-size: .92rem; }
.review-row:last-child { border-block-end: 0; }
.review-row dt { color: var(--ink-500); font-weight: 600; }
.review-row dd { color: var(--ink-strong); margin: 0; text-align: end; }
#service-err.is-error-shown, .form-step .err-msg.is-error-shown { display: block; color: var(--err); }

/* News listing grid (page, not carousel) */
.news-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

/* Services listing + service detail lists */
.svc-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.svc-list-grid .svc-card { padding: 28px 26px 24px; }
.detail-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.detail-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-700); line-height: 1.6; }
.detail-list li svg { inline-size: 19px; block-size: 19px; flex: 0 0 auto; margin-block-start: 2px; color: var(--ok); }
.detail-steps { list-style: none; counter-reset: dstep; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.detail-steps li { counter-increment: dstep; position: relative; padding-inline-start: 48px; color: var(--ink-700); line-height: 1.6; }
.detail-steps li::before { content: counter(dstep); position: absolute; inset-inline-start: 0; inset-block-start: -2px;
  inline-size: 32px; block-size: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-en);
  font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); }
.detail-steps li b { display: block; color: var(--ink-strong); margin-block-end: 2px; }

/* ===================== POLISH: form controls + submit states ===================== */
/* Custom select chevron (cross-browser; native bg/color already set for Win dark mode) */
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
html[dir="rtl"] .field select { background-position: left 14px center; padding-inline-end: 14px; padding-inline-start: 40px; }

/* Submit button loading state */
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; position: relative; color: transparent !important; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  inline-size: 18px; block-size: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: btnSpin .6s linear infinite; }
.btn.btn--primary[aria-busy="true"]::after { border-color: rgba(26,23,18,.3); border-top-color: var(--char-900); }
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::after { animation: none; } }

/* form-level error summary */
.form-alert { display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--err-bg); color: var(--err); font-weight: 600; font-size: .9rem; margin-block-end: 18px; }
.form-alert.is-shown { display: flex; }

/* ===================== UAE PASS sign-in modal ===================== */
.uaepass-modal { margin: auto; border: none; padding: 0; inline-size: min(440px, calc(100vw - 32px));
  border-radius: var(--r-xl); background: var(--surface); color: var(--ink-900);
  box-shadow: 0 40px 90px -28px rgba(20,16,8,.55); overflow: visible; }
.uaepass-modal::backdrop { background: rgba(20,16,8,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.uaepass-modal .upm-body { padding: clamp(28px, 4vw, 40px); text-align: center; }
.upm-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; inline-size: 38px; block-size: 38px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-500); box-shadow: var(--sh-1); transition: background .2s, color .2s; }
.upm-close:hover { background: var(--surface-2); color: var(--ink-900); }
.upm-close svg { inline-size: 18px; block-size: 18px; }
.upm-ico { inline-size: 64px; block-size: 64px; margin: 0 auto 16px; border-radius: var(--r-lg); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600)); color: #fff; box-shadow: var(--sh-gold); }
.upm-ico svg { inline-size: 30px; block-size: 30px; }
.upm-sub { color: var(--ink-500); font-size: .94rem; margin: 8px auto 22px; max-width: 36ch; line-height: 1.6; }
.upm-benefits { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-block-start: 1px solid var(--line-2);
  display: grid; gap: 12px; text-align: start; }
.upm-benefits li { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--ink-700); }
.upm-benefits li svg { inline-size: 20px; block-size: 20px; flex: 0 0 auto; color: var(--gold-700); }
.upm-alt { margin-block-start: 18px; font-size: .88rem; color: var(--ink-500); }
.upm-alt a { color: var(--gold-700); font-weight: 600; }
/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .uaepass-modal[open] { animation: upmIn .28s var(--ease); }
  .uaepass-modal[open]::backdrop { animation: upmFade .28s var(--ease); }
}
@keyframes upmIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes upmFade { from { opacity: 0; } to { opacity: 1; } }

/* Header auto-hide on scroll down, reveal on scroll up */
.site-header { transition: transform .32s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); will-change: transform; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Floating Execution Portal — persistent access on every page, reveals on scroll */
.portal-fab { position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 190;
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 99px;
  background: linear-gradient(145deg, #2f2a22, var(--char-900)); color: #fff; border: 1px solid rgba(203,163,68,.35);
  font-family: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 16px 32px -12px rgba(20,16,8,.5), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), box-shadow .25s var(--ease); }
.portal-fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.portal-fab:hover { transform: translateY(-3px) scale(1.02); border-color: rgba(203,163,68,.6);
  box-shadow: 0 22px 42px -12px rgba(20,16,8,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.portal-fab svg { inline-size: 19px; block-size: 19px; flex-shrink: 0; color: var(--gold-400, #d9bd6e); }
html[dir="rtl"] .portal-fab svg { transform: scaleX(-1); }
@media (max-width: 768px) { .portal-fab { inset-block-end: 22px; inset-inline-start: 16px; padding: 11px 16px; font-size: .86rem; } }
/* clear the full-width sticky bottom CTA (only present on the homepage) so the floating actions don't overlap it */
@media (max-width: 768px) {
  body:has(.sticky-cta) .portal-fab,
  body:has(.sticky-cta) .chatbot { inset-block-end: calc(78px + 20px); }
}
@media (prefers-reduced-motion: reduce) { .portal-fab { transition: opacity .2s, visibility .2s; } }


/* leave room below the footer text so the floating actions don't cover it */
.site-footer { padding-block-end: clamp(58px, 6vw, 80px); }
@media (max-width: 768px) { .site-footer { padding-block-end: 108px; } }

/* visually-hidden (screen-reader only) */
.sr-only { position: absolute !important; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.h3[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; border-radius: 4px; }

/* contact-row reused inside a light aside-card → dark text (it's white for the dark homepage section) */
.aside-card .contact-row { background: var(--surface-2); border: 1px solid var(--line); }
.aside-card a.contact-row:hover { background: var(--gold-50); border-color: var(--gold-200); }
.aside-card .cr-body small { color: var(--ink-500); }
.aside-card .cr-body b { color: var(--ink-strong); }
.aside-card .contact-rows { margin-block-start: 0; }

/* aside-card contact rows: add spacing between them + tidy sizing */
.aside-card .contact-row { padding: 12px 14px; gap: 12px; }
.aside-card .contact-row + .contact-row { margin-block-start: 10px; }
.aside-card h3 + .contact-row { margin-block-start: 4px; }
.aside-card .cr-ico { inline-size: 38px; block-size: 38px; border-radius: 10px; }
.aside-card .cr-ico svg { inline-size: 18px; }
.aside-card .cr-body { gap: 2px; }
.aside-card .cr-body small { font-size: .76rem; }
.aside-card .cr-body b { font-size: .96rem; font-weight: 700; }
.aside-card .cr-body b.num { letter-spacing: .01em; }

/* contact success — proper banner matching the error alert */
.form-success { display: none; align-items: center; gap: 10px; margin-block-start: 16px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .92rem; }
.form-success:not([hidden]) { display: flex; }
.form-success svg { inline-size: 20px; block-size: 20px; flex: 0 0 auto; }

/* sign-in card benefits row */
.signin-benefits { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 26px 0 0; padding: 22px 0 0; border-block-start: 1px solid var(--line-2); }
.signin-benefits li { display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--ink-700); text-align: center; line-height: 1.3; }
.signin-benefits li svg { inline-size: 22px; block-size: 22px; color: var(--gold-700); }
@media (max-width: 420px) { .signin-benefits { grid-template-columns: 1fr; } .signin-benefits li { flex-direction: row; justify-content: center; } }

/* hash-link landings clear the sticky header (Services/Partners/… from inner pages) */
section[id], [id].section { scroll-margin-top: 160px; }
@media (max-width: 900px) { section[id], [id].section { scroll-margin-top: 124px; } }

/* back-button arrow points toward the start (left in LTR, right in RTL) */
.btn .i-back { transform: scaleX(-1); }
html[dir="rtl"] .btn .i-back { transform: none; }

/* ============================================================================
   High-end craft pass — hero CTA + services (on-brand: gold/charcoal, ≤18px radii)
   ============================================================================ */
:root { --ease-island: cubic-bezier(.32,.72,0,1); }

/* Button-in-button primary CTA (the trailing arrow lives in its own chip) */
.cta-island { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-inline-start: 24px; padding-inline-end: 7px; }
.cta-island .cta-label { line-height: 1; }
.cta-chip { inline-size: 36px; block-size: 36px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: rgba(26,23,18,.14); color: var(--char-900);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.25);
  transition: transform .55s var(--ease-island), background .35s var(--ease-island); }
.cta-chip svg { inline-size: 18px; block-size: 18px; }
.cta-island:hover .cta-chip { background: rgba(26,23,18,.24); transform: translate(3px,-1px) scale(1.06); }
html[dir="rtl"] .cta-island:hover .cta-chip { transform: translate(-3px,-1px) scale(1.06); }
.cta-island:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .cta-island:hover .cta-chip { transform: none; } }

/* Service cards — machined feel: top inner highlight + bezel-lit icon + kinetic on hover */
#services .svc-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .5s var(--ease-island), border-color .4s var(--ease-island), box-shadow .5s var(--ease-island); }
#services .svc-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 40px -22px rgba(40,32,14,.4); }
#services .svc-ico { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(176,137,63,.55);
  transition: transform .55s var(--ease-island); }
#services .svc-card:hover .svc-ico { transform: scale(1.07) rotate(-3deg); }
html[dir="rtl"] #services .svc-card:hover .svc-ico { transform: scale(1.07) rotate(3deg); }

/* "Start service" arrow → button-in-button chip that fills gold on hover */
#services .svc-action svg { inline-size: 15px; block-size: 15px; padding: 9px; box-sizing: content-box;
  border-radius: 50%; background: var(--gold-50); color: var(--gold-700);
  transition: transform .5s var(--ease-island), background .35s var(--ease-island), color .35s var(--ease-island); }
#services .svc-card:hover .svc-action svg { background: var(--gold-500); color: #fff; transform: translateX(4px); }
html[dir="rtl"] #services .svc-card:hover .svc-action svg { transform: scaleX(-1) translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  #services .svc-card:hover .svc-ico, #services .svc-card:hover .svc-action svg { transform: none; }
}

/* parallax image containers must clip the scaled/drifting image */
.hero-media, .about-figure { overflow: hidden; }
.hero-media img, .about-figure img { will-change: transform; }

/* ============================================================
   NEW REQUEST — "Create New Requests" two-column form
   ============================================================ */
.form-subhead { font-size: .95rem; font-weight: 700; color: var(--ink-strong); margin: 4px 0 14px; padding-block-end: 8px; border-block-end: 1px solid var(--line-2); }
.field + .form-subhead, .field-row + .form-subhead { margin-block-start: 26px; }
/* grouped sections (Case Details / Request Details) — bordered card + tinted header */
.form-group { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.form-group + .form-group { margin-block-start: 22px; }
.form-group-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: linear-gradient(160deg, var(--char-700), var(--char-900)); border-block-end: 1px solid rgba(203,163,68,.22); font-weight: 700; color: #fff; font-size: .98rem; }
.form-group-head svg { inline-size: 18px; block-size: 18px; color: var(--gold-400); flex: 0 0 auto; }
.form-group-body { padding: clamp(16px, 2vw, 22px); }
.form-group-body > .field:last-child, .form-group-body > .field-row:last-child { margin-block-end: 0; }

/* ---- multi-request items (Step 3) ---- */
.req-item { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.req-item + .req-item { margin-block-start: 16px; }
.req-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px;
  background: linear-gradient(160deg, var(--char-700), var(--char-900)); border-block-end: 1px solid rgba(203,163,68,.22); }
.req-item-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: .98rem; }
.ri-badge { inline-size: 24px; block-size: 24px; border-radius: 7px; background: var(--gold-500, #cba344); color: var(--char-900); font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex: 0 0 auto; }
.req-item-del { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-sm);
  background: transparent; color: rgba(255,255,255,.85); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.req-item-del:hover { background: rgba(180,57,47,.9); border-color: transparent; color: #fff; }
.req-item-body { padding: clamp(16px, 2vw, 22px); }
.req-item-body > .field:last-of-type, .req-item-body .form-note:last-child { margin-block-end: 0; }
.add-request[disabled] { opacity: .5; cursor: not-allowed; }
.add-req-count { font-weight: 600; color: var(--gold-700); }
.add-request[disabled] .add-req-count { color: inherit; }

/* ---- grouped review (Step 4) ---- */
.review-groups { display: grid; gap: 16px; }
.rv-group { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rv-group-head { display: flex; align-items: center; gap: 9px; padding: 11px 16px; font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(160deg, var(--char-700), var(--char-900)); }
.rv-group-head svg { inline-size: 16px; block-size: 16px; color: var(--gold-400); flex: 0 0 auto; }
.rv-badge { inline-size: 22px; block-size: 22px; border-radius: 6px; background: var(--gold-500, #cba344); color: var(--char-900); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: 0 0 auto; }
.rv-count { color: var(--gold-400); font-weight: 700; }
.rv-group > .review-row { padding: 11px 16px; }
/* nested request sub-cards inside the single "Requests" group */
.rv-group-body { padding: 14px; display: grid; gap: 12px; }
.rv-req { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.rv-req-head { display: flex; align-items: center; gap: 9px; padding: 9px 14px; background: var(--gold-50); border-block-end: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-strong); }
.rv-req .review-row { padding: 9px 14px; font-size: .9rem; background: var(--surface); }
.rv-req .rv-atts { padding: 10px 14px; background: var(--surface); }
.rv-atts { padding: 12px 16px; border-block-start: 1px dashed var(--line); display: grid; gap: 7px; }
.rv-atts-label { font-size: .78rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.rv-att { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-900); }
.rv-att svg { inline-size: 15px; block-size: 15px; color: var(--ok); flex: 0 0 auto; }
.rv-att.is-empty { color: var(--ink-500); }
.rv-att.is-empty svg { color: var(--ink-500); }
.step2-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-block-end: 18px; }
.step2-head .btn--ghost { padding-inline: 4px; }
.step2-svc { font-size: .9rem; color: var(--ink-500); }
.step2-svc b { color: var(--ink-strong); font-weight: 700; }
.req-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
@media (max-width: 920px) { .req-grid { grid-template-columns: 1fr; } }

.case-card { --card-radius: var(--r-lg); --card-shadow: var(--sh-1); --card-pad: clamp(18px, 2.4vw, 26px); position: sticky; top: calc(var(--header-h, 153px) + 16px); }
@media (max-width: 920px) { .case-card { position: static; } }
.case-card .card-head { margin-block-end: 18px; padding-block-end: 14px; border-block-end: 1px solid var(--line-2); }
.card-head h2 { font-size: 1.04rem; font-weight: 700; color: var(--ink-strong); }
.card-head .hint { font-size: .82rem; color: var(--ink-500); margin-block-start: 3px; }
.case-card .field:last-child { margin-block-end: 0; }
.field label .opt { font-weight: 500; color: var(--ink-500); font-size: .82rem; }

/* phone field with country prefix */
.tel-group { display: flex; }
.tel-group .tel-prefix { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-inline-end: none; font-weight: 600; font-size: .95rem; color: var(--ink-900); white-space: nowrap;
  border-start-start-radius: var(--r-sm); border-end-start-radius: var(--r-sm); }
.tel-group .tel-prefix img { display: block; border-radius: 2px; }
.tel-group input { flex: 1 1 auto; min-inline-size: 0; border-start-start-radius: 0; border-end-start-radius: 0; }

/* request panel(s) */
.req-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.req-panel + .req-panel { margin-block-start: 16px; }
.req-panel-head { inline-size: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 20px; cursor: pointer; font: inherit; text-align: start;
  background: linear-gradient(160deg, var(--char-700), var(--char-900)); border: none; border-block-end: 1px solid rgba(203,163,68,.22); transition: background .2s var(--ease); }
.req-panel-head:hover { background: linear-gradient(160deg, #3a322a, var(--char-900)); }
.req-panel.is-collapsed .req-panel-head { border-block-end: none; }
.rp-num { inline-size: 26px; block-size: 26px; border-radius: 8px; background: var(--gold-500, #cba344); color: var(--char-900); font-weight: 700; font-size: .9rem; display: grid; place-items: center; flex: 0 0 auto; }
.rp-title { font-weight: 700; color: #fff; flex: 1 1 auto; font-size: 1rem; }
.rp-chev { inline-size: 20px; block-size: 20px; color: rgba(255,255,255,.65); transition: transform .25s var(--ease); flex: 0 0 auto; }
.req-panel.is-collapsed .rp-chev { transform: rotate(-90deg); }
html[dir="rtl"] .req-panel.is-collapsed .rp-chev { transform: rotate(90deg); }
.req-panel-body { padding: clamp(18px, 2.4vw, 26px); }
.req-panel.is-collapsed .req-panel-body { display: none; }

/* service details sub-block */
.service-block { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-block-start: 4px; }
.service-head { padding: 12px 18px; background: var(--gold-50); border-block-end: 1px solid var(--line); font-weight: 700; color: var(--ink-strong); font-size: .95rem; }
.service-body { padding: clamp(16px, 2vw, 22px); }
.service-body .field:last-of-type { margin-block-end: 0; }

/* upload dropzone */
.upload { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 22px 18px; border: 1.6px dashed var(--gold-400); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.upload:hover, .upload.is-drag { border-color: var(--gold-500, #cba344); background: var(--gold-50); }
.upload:focus-within { outline: 3px solid var(--gold-500, #cba344); outline-offset: 2px; border-color: var(--gold-500, #cba344); }
.upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .up-ico { inline-size: 42px; block-size: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); }
.upload .up-ico svg { inline-size: 20px; block-size: 20px; }
.upload .up-title { font-weight: 700; color: var(--ink-strong); font-size: .95rem; }
.upload .up-hint { font-size: .8rem; color: var(--gold-700); line-height: 1.55; max-inline-size: 38ch; }
.upload.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.upload.has-file .up-ico { background: var(--surface); color: var(--ok); }
.up-files { display: grid; gap: 6px; margin-block-start: 10px; }
.up-file { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--ink-900); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; }
.up-file svg { inline-size: 16px; block-size: 16px; color: var(--ok); flex: 0 0 auto; }
.up-file .up-name { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-file .up-remove { background: none; border: none; cursor: pointer; color: var(--ink-500); font: inherit; line-height: 1; padding: 2px; }
.up-file .up-remove:hover { color: var(--err); }

.form-note { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 16px; font-size: .82rem; color: var(--ink-700); font-weight: 600; line-height: 1.6; }
.form-note svg { inline-size: 18px; block-size: 18px; flex: 0 0 auto; color: var(--gold-600); margin-block-start: 1px; }

.add-request { inline-size: 100%; margin-block-start: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border: 1.6px dashed var(--gold-400); border-radius: var(--r-md); background: transparent; color: var(--gold-700);
  font: inherit; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.add-request:hover { background: var(--gold-50); border-color: var(--gold-500, #cba344); }
.add-request svg { inline-size: 18px; block-size: 18px; }

/* submit action bar */
.submit-bar { margin-block-start: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 14px 20px; }
.sb-user { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.sb-ava { inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--gold-50); border: 1px solid var(--gold-200); display: grid; place-items: center; color: var(--gold-700); flex: 0 0 auto; }
.sb-ava svg { inline-size: 20px; block-size: 20px; }
.sb-meta b { display: block; font-size: .9rem; color: var(--ink-strong); }
.sb-meta small { font-size: .78rem; color: var(--ink-500); }
.sb-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sb-count { font-size: .88rem; color: var(--ink-700); font-weight: 600; }
.sb-count b { color: var(--gold-700); }
.sb-cancel { background: none; border: none; font: inherit; font-weight: 700; color: var(--ink-500); cursor: pointer; padding: 8px 4px; }
.sb-cancel:hover { color: var(--ink-strong); }
@media (max-width: 620px) { .submit-bar { flex-direction: column; align-items: stretch; } .sb-actions { justify-content: space-between; } .sb-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ==========================================================================
   المواقع — LOCATIONS REDESIGN (search · filters · nearest · light map · tooltip)
   overrides earlier .loc-* / .map-* rules (later cascade wins)
   ========================================================================== */
/* stats row */
.loc-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-block-start: 26px;
  padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface-2); }
.loc-stat { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-700); }
.loc-stat svg { inline-size: 19px; block-size: 19px; flex: 0 0 auto; color: var(--gold-600); }
.loc-stat b { font-size: 1.12rem; font-weight: 800; color: var(--ink-strong); }
.loc-stat + .loc-stat { position: relative; }
.loc-stat + .loc-stat::before { content: ""; position: absolute; inset-inline-start: -16px; inset-block: 2px; inline-size: 1px; background: var(--line); }

/* layout */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: 26px; margin-block-start: 30px; align-items: start; }
.loc-side { display: flex; flex-direction: column; gap: 14px; min-inline-size: 0; }
.loc-map  { min-inline-size: 0; }

/* controls */
.loc-helper { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; line-height: 1.55; color: var(--ink-700); margin: 0; }
.loc-helper svg { inline-size: 18px; block-size: 18px; flex: 0 0 auto; margin-block-start: 2px; color: var(--gold-700); }
.loc-geo { display: inline-flex; align-items: center; justify-content: center; gap: 9px; inline-size: 100%;
  min-block-size: 48px; padding: 12px 18px; border-radius: var(--r-md, 14px); border: 1px solid var(--gold-200);
  background: linear-gradient(150deg, var(--gold-50), var(--gold-100)); color: var(--gold-700);
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.loc-geo svg { inline-size: 19px; block-size: 19px; }
.loc-geo:hover { border-color: var(--gold-400); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(176,137,63,.5); }
.loc-geo:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.loc-geo[aria-busy="true"] { opacity: .7; pointer-events: none; }
.loc-geo-msg { margin: -4px 0 0; font-size: .84rem; font-weight: 600; color: var(--gold-700); display: flex; align-items: center; gap: 7px; }
.loc-geo-msg.is-err { color: var(--err); }

.loc-search { position: relative; display: flex; align-items: center; }
.loc-search svg { position: absolute; inset-inline-start: 14px; inline-size: 18px; block-size: 18px; color: var(--ink-500); pointer-events: none; }
.loc-search input { inline-size: 100%; min-block-size: 48px; padding-block: 12px; padding-inline-start: 44px; padding-inline-end: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface); font: inherit; font-size: .92rem; color: var(--ink-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.loc-search input::placeholder { color: var(--ink-400, #9a927f); }
.loc-search input:focus { outline: none; border-color: var(--gold-400); }
.loc-search input:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-color: var(--gold-400); }

.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-chip { padding: 8px 15px; border-radius: var(--r-pill, 99px); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-700); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.loc-chip:hover { border-color: var(--gold-300, var(--gold-200)); color: var(--gold-700); }
.loc-chip.is-active { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); border-color: transparent; color: #fff; }
.loc-chip:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.loc-count { margin: 2px 0 0; font-size: .82rem; font-weight: 600; color: var(--ink-500); }
.loc-count .num { color: var(--gold-700); font-weight: 800; }

.loc-empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 44px 22px; color: var(--ink-500); }
.loc-empty[hidden] { display: none; }
.loc-empty.is-shown { display: flex; }
.loc-empty svg { inline-size: 36px; block-size: 36px; color: var(--gold-400); }
.loc-empty b { color: var(--ink-strong); font-size: 1.02rem; }
.loc-empty span { font-size: .88rem; }

/* list */
.loc-list { display: flex; flex-direction: column; gap: 12px; max-block-size: none; overflow: visible; padding-inline-end: 0; }

/* card — compact vertical */
.loc-card { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: start; inline-size: 100%;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md, 14px); cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.loc-card:hover { border-color: var(--gold-200); transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(40,32,14,.32); }
.loc-card.is-active { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 1px var(--gold-500), 0 18px 34px -20px rgba(176,137,63,.42); }
.loc-card::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 14px; inline-size: 3px;
  border-start-end-radius: 3px; border-end-end-radius: 3px; background: var(--gold-200);
  opacity: 0; transform: scaleY(.35); transform-origin: center; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.loc-card:hover::before { opacity: 1; transform: scaleY(1); }
.loc-card.is-active::before { opacity: 1; transform: scaleY(1); background: var(--gold-500); }

.lc-top { display: flex; align-items: flex-start; gap: 11px; }
.loc-pin-ico { flex: 0 0 auto; inline-size: 38px; block-size: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-50, var(--gold-50)); color: var(--gold-700); transition: background .2s var(--ease), color .2s var(--ease); }
.loc-pin-ico svg { inline-size: 20px; block-size: 20px; }
.loc-card.is-active .loc-pin-ico { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; }
.lc-title { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; }
.lc-title b { font-size: 1rem; line-height: 1.35; color: var(--ink-strong); font-weight: 700; }
.lc-emirate { font-size: .78rem; font-weight: 600; color: var(--gold-700); }

.lc-info { display: flex; flex-direction: column; gap: 7px; padding-inline-start: 49px; }
.lc-line { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; line-height: 1.5; color: var(--ink-700); }
.lc-line svg { inline-size: 15px; block-size: 15px; flex: 0 0 auto; margin-block-start: 2px; color: var(--gold-700); }
.lc-line .num { letter-spacing: .01em; }

.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-inline-start: 49px; }
.loc-selected-tag { display: none; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--gold-700); }
.loc-selected-tag svg { inline-size: 15px; block-size: 15px; }
.loc-card.is-active .loc-selected-tag { display: inline-flex; }
.lc-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lc-dir { display: inline-flex; align-items: center; gap: 7px; min-block-size: 40px; padding: 9px 16px; border-radius: var(--r-pill, 99px);
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; font-size: .82rem; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 16px -9px rgba(176,137,63,.55); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease); }
.lc-dir svg { inline-size: 16px; block-size: 16px; }
.lc-dir:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 20px -10px rgba(176,137,63,.62); }
.lc-dir:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.lc-showmap { display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 9px 12px; border-radius: var(--r-pill, 99px);
  color: var(--gold-700); font-size: .8rem; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease); }
.lc-showmap svg { inline-size: 16px; block-size: 16px; }
.lc-showmap:hover { background: var(--gold-50); border-color: var(--gold-200); }
.lc-showmap:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* map — light official treatment */
.loc-map { display: flex; flex-direction: column; border-radius: var(--r-lg, 18px); overflow: hidden;
  border: 1px solid var(--gold-200); box-shadow: 0 22px 46px -26px rgba(40,32,14,.3); background: var(--surface); }
.map-canvas { position: relative; flex: 1 1 auto; inline-size: 100%; min-block-size: 430px;
  background: linear-gradient(165deg, #faf6ec 0%, #f2e8cf 100%); }
.map-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 90px rgba(176,137,63,.12); }
.map-water { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(58% 48% at 82% 8%, rgba(110,150,168,.18), transparent 60%); }
.map-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(40% 40% at 45% 58%, rgba(203,163,68,.20), transparent 72%); }
.map-grid { position: absolute; inset: 26px; z-index: 1; background: url("../img/brand/uae-map.png") center/contain no-repeat;
  opacity: 1; filter: drop-shadow(0 6px 14px rgba(120,95,40,.18)); }
.map-overlay { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill, 99px); background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-200); box-shadow: var(--sh-1); font-size: .8rem; font-weight: 700; color: var(--ink-900); }
.map-overlay > svg { inline-size: 17px; block-size: 17px; color: var(--gold-600); }
.map-overlay-count { display: inline-flex; align-items: center; gap: 5px; padding-inline-start: 9px; margin-inline-start: 3px; border-inline-start: 1px solid var(--line); color: var(--ink-500); font-weight: 500; font-size: .76rem; }
.map-overlay-count .num { color: var(--gold-700); font-weight: 800; }

.map-legend { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 13px; border-radius: var(--r-pill, 99px); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: .74rem; font-weight: 600; color: var(--ink-700); }
.lg-item { display: inline-flex; align-items: center; gap: 7px; }
.lg-pin { inline-size: 11px; block-size: 11px; border-radius: 50% 50% 50% 0; transform: rotate(45deg); background: var(--gold-500); box-shadow: 0 1px 2px rgba(40,32,14,.3); }
.lg-pin-active { background: var(--gold-700); box-shadow: 0 0 0 3px rgba(203,163,68,.3); }

.map-pin { position: absolute; transform: translate(-50%, -100%); inline-size: 38px; block-size: 38px; display: grid; place-items: center; background: none; border: none; cursor: pointer; z-index: 3; }
.map-pin .pin-ico { inline-size: 32px; block-size: 32px; color: var(--gold-600); filter: drop-shadow(0 4px 5px rgba(120,95,40,.35)); transition: color .25s var(--ease), filter .25s var(--ease); }
.map-pin:hover { transform: translate(-50%, -100%) scale(1.12); }
.map-pin:hover .pin-ico { color: var(--gold-700); }
.map-pin.is-active { transform: translate(-50%, -100%) scale(1.32); z-index: 6; }
.map-pin.is-active .pin-ico { color: var(--gold-700); filter: drop-shadow(0 6px 10px rgba(176,137,63,.55)); }
.pin-label { position: absolute; inset-block-end: calc(100% - 3px); inset-inline-start: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: #fff; border: 1px solid var(--gold-200); color: var(--char-900); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.map-pin:hover .pin-label, .map-pin.is-active .pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* selected-branch tooltip under the map */
.map-tip { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--gold-50); border-block-start: 1px solid var(--gold-200); }
.mt-ico { flex: 0 0 auto; inline-size: 38px; block-size: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; }
.mt-ico svg { inline-size: 20px; block-size: 20px; }
.mt-body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-name { font-size: .96rem; font-weight: 700; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-sub { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-600); }
.mt-status.is-open { color: var(--ok); font-weight: 700; }
.mt-status.is-closed { color: var(--ink-500); font-weight: 600; }
.mt-dir { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-block-size: 40px; padding: 9px 15px; border-radius: var(--r-pill, 99px);
  background: var(--char-900); color: #fff; font-size: .82rem; font-weight: 700; transition: background .2s var(--ease), transform .2s var(--ease); }
.mt-dir svg { inline-size: 16px; block-size: 16px; }
.mt-dir:hover { background: var(--char-700); transform: translateY(-1px); }

/* desktop: sticky map while scrolling the list */
@media (min-width: 1025px) {
  .loc-map { position: sticky; inset-block-start: 88px; }
}
/* tablet */
@media (max-width: 1024px) {
  .loc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .loc-map { position: static; }
  .map-canvas { min-block-size: 360px; }
}
/* mobile */
@media (max-width: 600px) {
  .loc-stats { gap: 10px 18px; padding: 14px 16px; }
  .loc-stat + .loc-stat::before { display: none; }
  .loc-chips { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 4px; scrollbar-width: none; }
  .loc-chips::-webkit-scrollbar { display: none; }
  .loc-card { min-inline-size: 0; }
  .lc-info, .lc-foot { padding-inline-start: 0; }
  .lc-foot { gap: 12px; }
  .lc-actions { inline-size: 100%; }
  .lc-dir { flex: 1 1 auto; justify-content: center; }
  .map-canvas { min-block-size: 300px; }
  .map-tip { flex-wrap: wrap; }
  .mt-dir { inline-size: 100%; justify-content: center; }
}

/* filtered cards must hide despite .loc-card display:flex */
.loc-card[hidden] { display: none; }

/* locations redesign — override stale responsive rules */
@media (max-width: 1024px) {
  .loc-map { order: 0; }                       /* map below the list, not above (spec: search/list first) */
  .loc-list { flex-direction: column; overflow: visible; }
}
@media (max-width: 600px) {
  .lc-actions { flex-direction: column; align-items: stretch; inline-size: 100%; }
  .lc-dir, .lc-showmap { inline-size: 100%; justify-content: center; }
}

/* ==========================================================================
   المواقع — DARK map restored · scrollable list · geo-on-map · address in tip
   (final overrides — last in cascade)
   ========================================================================== */
.loc-map { position: relative; border-color: rgba(203,163,68,.28); box-shadow: 0 24px 50px -24px rgba(20,16,8,.55); background: #161109; }
.map-canvas { background: radial-gradient(120% 90% at 50% 0%, #2a2419, #161109 70%); }
.map-canvas::after { box-shadow: inset 0 0 120px rgba(0,0,0,.55); }
.map-water { background:
  radial-gradient(56% 46% at 82% 8%, rgba(92,142,168,.20), transparent 60%),
  radial-gradient(40% 30% at 8% 78%, rgba(92,142,168,.12), transparent 65%); }
.map-glow { background: radial-gradient(34% 34% at 44% 60%, rgba(203,163,68,.30), transparent 72%); }
.map-grid { opacity: .96; filter: brightness(.92) sepia(.10) saturate(1.05)
  drop-shadow(0 0 1px rgba(203,163,68,.55)) drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.map-overlay { background: rgba(22,18,11,.72); border-color: rgba(203,163,68,.32); color: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.map-overlay > svg { color: var(--gold-400, #d9bd6e); }
.map-overlay-count { border-inline-start-color: rgba(255,255,255,.18); color: rgba(255,255,255,.62); }
.map-overlay-count .num { color: var(--gold-400, #d9bd6e); }
.map-legend { background: rgba(22,18,11,.72); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.78); }
.map-pin .pin-ico { color: var(--gold-500); filter: drop-shadow(0 4px 7px rgba(0,0,0,.55)); }
.map-pin.is-active .pin-ico { color: var(--gold-400, #d9bd6e); filter: drop-shadow(0 0 10px rgba(203,163,68,.7)); }
.pin-label { background: rgba(20,16,9,.94); border-color: rgba(203,163,68,.4); color: #fff; }

/* tooltip on dark — court name + address underneath */
.map-tip { background: #1d1810; border-block-start: 1px solid rgba(203,163,68,.3); }
.mt-ico { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.mt-name { color: #fff; }
.mt-addr { display: block; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.72); margin-block-start: 3px; }
.mt-dir { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.mt-dir:hover { filter: brightness(1.05); background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); }

/* geolocation — icon only, on the map (top-inline-end, opposite the overlay) */
.map-geo { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; z-index: 6;
  inline-size: 46px; block-size: 46px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.7); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.map-geo svg { inline-size: 22px; block-size: 22px; }
.map-geo:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.85); }
.map-geo:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.map-geo[aria-busy="true"] { opacity: .7; pointer-events: none; }
.map-geo-msg { position: absolute; inset-block-start: 72px; inset-inline-end: 16px; z-index: 6; max-inline-size: 64%;
  padding: 8px 13px; border-radius: var(--r-pill, 99px); background: rgba(22,18,11,.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(203,163,68,.4); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.map-geo-msg.is-err { border-color: rgba(180,57,47,.6); }
.map-geo-msg[hidden] { display: none; }

/* list scrollable + map no longer sticky (desktop) */
@media (min-width: 1025px) {
  .loc-map { position: relative; inset-block-start: auto; align-self: start; }
  .loc-list { max-block-size: 620px; overflow-y: auto; overflow-x: hidden; padding-inline-end: 6px;
    scrollbar-width: thin; scrollbar-color: var(--gold-200) transparent; }
  .loc-list::-webkit-scrollbar { width: 8px; }
  .loc-list::-webkit-scrollbar-track { background: transparent; }
  .loc-list::-webkit-scrollbar-thumb { background: var(--gold-200); border-radius: 99px; }
}
/* mobile: keep the geo icon comfortably tappable, msg flexible */
@media (max-width: 600px) {
  .map-geo { inset-block-start: 12px; inset-inline-end: 12px; }
  .map-geo-msg { inset-block-start: 66px; inset-inline-end: 12px; max-inline-size: 72%; }
}

/* locations — address hidden in list (kept for map tooltip) + shorter cards */
.lc-addr { display: none; }
.loc-card { --card-pad: 13px 16px; gap: 9px; }
.lc-info { gap: 5px; padding-inline-start: 49px; }
.lc-line { font-size: .84rem; line-height: 1.45; }
.lc-foot { padding-inline-start: 49px; }
.loc-card::before { inset-block: 12px; }

/* locations — emirate beside the court name (inline pill) */
.lc-title { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-title b { flex: 0 1 auto; }
.lc-emirate { flex: 0 0 auto; padding: 2px 9px; border-radius: var(--r-pill, 99px);
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  font-size: .72rem; font-weight: 700; line-height: 1.5; }
.loc-card.is-active .lc-emirate { background: #fff; }

/* locations — helper as a full-width banner above the grid */
.locations .loc-helper { margin: 26px 0 0; padding: 13px 20px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface-2); }

/* locations — bottom-align map with the cards column (taller map, shorter cards) */
.loc-card { --card-pad: 12px 16px; gap: 8px; }
.lc-info { gap: 4px; }
.lc-line { line-height: 1.4; }
@media (min-width: 1025px) {
  .loc-grid { align-items: stretch; }                 /* both columns share the row height */
  .loc-side { display: flex; flex-direction: column; }
  .loc-map  { align-self: stretch; }                  /* override earlier align-self:start */
  .map-canvas { flex: 1 1 auto; min-block-size: 0; }  /* canvas fills the stretched map */
  .loc-list { flex: 1 1 auto; min-block-size: 0; max-block-size: none; overflow-y: auto; }
}

/* locations — bottom-align map to the BOUNDED card scroll area (not the full list) */
@media (min-width: 1025px) {
  .loc-list { flex: 0 0 auto; max-block-size: 560px; min-block-size: 0; overflow-y: auto; }
  .loc-side { display: flex; flex-direction: column; }
  .loc-grid { align-items: stretch; }   /* map stretches to match controls + 560px scroll area */
  .loc-map  { align-self: stretch; }
  .map-canvas { flex: 1 1 auto; min-block-size: 0; }
}

/* locations — fixed scroll-area height so the map height is identical across all emirate filters */
@media (min-width: 1025px) {
  .loc-list { flex: 0 0 560px; block-size: 560px; min-block-size: 560px; max-block-size: 560px; overflow-y: auto; }
}

/* ==========================================================================
   PORTAL DASHBOARD (dashboard.html) — logged-in execution portal
   ========================================================================== */
.portal { background: var(--surface-2, #faf7ef); }
/* .btn-soft / .btn-line / .btn-sm consolidated into the canonical button scale above */
.act-count, .ptab-badge { display: inline-grid; place-items: center; min-inline-size: 22px; block-size: 22px; padding: 0 7px;
  border-radius: var(--r-pill, 99px); background: var(--err, #b4392f); color: #fff; font-size: .74rem; font-weight: 800; }
.btn--primary .act-count { background: rgba(0,0,0,.18); }

/* portal sub-nav */
.portal-bar { background: var(--char-900); color: #fff; border-block-end: 2px solid var(--gold-600); }
.portal-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 56px; }
.portal-tabs { display: flex; gap: 6px; }
.ptab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-md, 14px) var(--r-md, 14px) 0 0;
  color: rgba(255,255,255,.7); font-weight: 700; font-size: .92rem; position: relative; transition: color .2s var(--ease), background .2s var(--ease); }
.ptab svg { inline-size: 18px; block-size: 18px; }
.ptab:hover { color: #fff; }
.ptab.is-active { color: var(--ink-strong); background: var(--surface-2, #faf7ef); }
.portal-utils { display: flex; align-items: center; gap: 10px; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill, 99px);
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.acct-btn:hover { background: rgba(255,255,255,.16); }
.acct-btn svg { inline-size: 18px; block-size: 18px; }
.acct-chev { transition: transform .2s var(--ease); }
.acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-inline-size: 250px;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 14px); box-shadow: 0 22px 46px -20px rgba(20,16,8,.4); padding: 6px; }
.acct-menu[hidden] { display: none; }
.acct-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink-900); font-weight: 600; font-size: .9rem; }
.acct-menu a:hover { background: var(--gold-50); color: var(--gold-700); }
.acct-menu a svg { inline-size: 18px; block-size: 18px; color: var(--gold-700); }
.acct-menu .acct-out { color: var(--err); margin-block-start: 4px; border-block-start: 1px solid var(--line-2); border-radius: 0 0 10px 10px; }
.acct-menu .acct-out svg { color: var(--err); }
/* حسابي → مؤشر السعادة entry */
.acct-menu .acct-hm { align-items: flex-start; gap: 11px; margin-block-start: 4px; padding-block-start: 12px; border-block-start: 1px solid var(--line-2); }
.acct-hm-ico { flex-shrink: 0; inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--gold-50); display: grid; place-items: center; }
.acct-menu .acct-hm-ico svg { inline-size: 19px; block-size: 19px; color: var(--gold-700); }
.acct-hm-txt { display: flex; flex-direction: column; gap: 2px; }
.acct-hm-txt b { font-weight: 700; font-size: .9rem; color: var(--ink-900); }
.acct-hm-txt small { font-size: .74rem; color: var(--ink-400); font-weight: 500; line-height: 1.45; white-space: normal; }
.acct-menu .acct-hm:hover { background: var(--gold-50); }
.acct-menu .acct-hm:hover .acct-hm-txt b { color: var(--gold-700); }

.portal-body { padding-block: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }

/* welcome */
.welcome-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--gold-50), var(--surface, #fff)); border: 1px solid var(--gold-200);
  border-radius: var(--r-lg, 18px); padding: clamp(20px, 3vw, 30px); overflow: hidden; }
.welcome-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 5px; background: linear-gradient(var(--gold-400), var(--gold-600)); }
.welcome-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--gold-700); margin-block-end: 10px; }
.welcome-eyebrow svg { inline-size: 17px; block-size: 17px; }
.welcome-main h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); color: var(--ink-strong); letter-spacing: -.01em; }
.welcome-main p { margin-block-start: 8px; color: var(--ink-700); max-inline-size: 52ch; }
.welcome-meta { display: inline-flex; align-items: center; gap: 7px; margin-block-start: 14px; font-size: .84rem; color: var(--ink-500); }
.welcome-meta svg { inline-size: 16px; block-size: 16px; color: var(--gold-700); }
.welcome-actions { display: flex; flex-direction: column; gap: 10px; min-inline-size: 240px; }
.welcome-actions .btn { justify-content: flex-start; gap: 10px; }
.welcome-actions .btn svg { inline-size: 19px; block-size: 19px; }
.welcome-actions .act-count { margin-inline-start: auto; }

/* section heads */
.dash-section { display: flex; flex-direction: column; gap: 16px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-sub { margin-block-start: 4px; color: var(--ink-500); font-size: .9rem; }

/* status cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { --card-shadow: none; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; --card-radius: var(--r-md, 14px); --card-pad: 16px 18px; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--gold-200); box-shadow: 0 16px 30px -20px rgba(40,32,14,.34); }
.stat-card.is-actionable { background: linear-gradient(150deg, var(--gold-50), var(--surface, #fff)); border-color: var(--gold-200); }
.stat-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.sc-top { display: inline-flex; align-items: center; gap: 8px; }
.sc-dot { inline-size: 9px; block-size: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--ink-400, #9a927f); }
.sc-label { font-size: .86rem; font-weight: 700; color: var(--ink-700); }
.sc-count { font-size: 2rem; font-weight: 800; line-height: 1.05; color: var(--ink-strong); }
.sc-hint { font-size: .78rem; color: var(--gold-700); font-weight: 600; }
.sc-cta { display: inline-flex; align-items: center; gap: 4px; margin-block-start: 6px; font-size: .8rem; font-weight: 700; color: var(--gold-700); }
.sc-cta svg { inline-size: 15px; block-size: 15px; transform: rotate(-90deg); }   /* LTR: points right (forward) */
html[dir="rtl"] .sc-cta svg { transform: rotate(90deg); }                          /* RTL: points left (forward) */

/* status colors (subtle) */
.st-review .sc-dot, .st-review-dot { background: var(--st-review); }
.st-pay .sc-dot, .st-pay-dot { background: #b58f31; }
.st-data .sc-dot, .st-data-dot { background: var(--st-data); }
.st-paused .sc-dot, .st-paused-dot { background: var(--st-paused); }
.st-progress .sc-dot, .st-progress-dot { background: var(--st-progress); }
.st-done .sc-dot, .st-done-dot { background: var(--ok); }
.st-failed .sc-dot, .st-failed-dot { background: var(--st-failed); }
.st-cancelled .sc-dot, .st-cancelled-dot { background: var(--st-cancelled); }

/* chart */
.chart-card { --card-shadow: none; --card-radius: var(--r-lg, 18px); --card-pad: clamp(18px, 2.4vw, 26px); }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 18px; }
.chart-tabs { display: inline-flex; background: var(--surface-2, #f7f4ec); border: 1px solid var(--line); border-radius: var(--r-pill, 99px); padding: 3px; }
.chart-tab { padding: 7px 16px; border-radius: var(--r-pill, 99px); font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink-500); background: none; border: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.chart-tab.is-active { background: var(--char-900); color: #fff; }
.chart-body { display: flex; flex-direction: column; gap: 11px; }
.chart-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; align-items: center; gap: 12px; }
.chart-name { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-700); font-weight: 600; }
.chart-track { block-size: 12px; border-radius: 99px; background: var(--surface-2, #f1ece1); overflow: hidden; }
.chart-fill { display: block; block-size: 100%; border-radius: 99px; background: var(--gold-500); transition: inline-size .8s var(--ease); }
.chart-fill-gold { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.st-review-fill { background: var(--st-review); } .st-pay-fill { background: #b58f31; } .st-data-fill { background: var(--st-data); }
.st-paused-fill { background: var(--st-paused); } .st-progress-fill { background: var(--st-progress); } .st-done-fill { background: var(--ok); }
.st-failed-fill { background: var(--st-failed); } .st-cancelled-fill { background: var(--st-cancelled); }
.chart-val { font-family: var(--font-en); font-weight: 800; color: var(--ink-strong); min-inline-size: 28px; text-align: end; }

/* filter bar */
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 14px); padding: 12px; }
.fb-search { position: relative; display: flex; align-items: center; }
.fb-search svg { position: absolute; inset-inline-start: 13px; inline-size: 18px; color: var(--ink-500); pointer-events: none; }
.fb-search input { inline-size: 100%; min-block-size: 44px; padding-inline-start: 42px; padding-inline-end: 14px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface-2, #faf7ef); font: inherit; font-size: .88rem; color: var(--ink-900); }
.fb-search input:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-color: var(--gold-400); background: #fff; }
.fb-field { position: relative; display: flex; }
.fb-field select { inline-size: 100%; min-block-size: 44px; padding-inline: 14px 36px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface-2, #faf7ef); font: inherit; font-size: .86rem; color: var(--ink-900); appearance: none; cursor: pointer; }
.fb-field select:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-color: var(--gold-400); }
.fb-chev { position: absolute; inset-inline-end: 11px; inset-block-start: 50%; transform: translateY(-50%); inline-size: 16px; color: var(--ink-500); pointer-events: none; }

/* table */
.rq-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface, #fff); }
.rq-table { inline-size: 100%; border-collapse: collapse; min-inline-size: 880px; }
.rq-table thead th { text-align: start; font-size: .8rem; font-weight: 800; color: var(--ink-700); background: var(--surface-2, #f7f4ec);
  padding: 13px 16px; border-block-end: 1px solid var(--line); white-space: nowrap; }
.rq-row { border-block-end: 1px solid var(--line-2); cursor: pointer; transition: background .15s var(--ease); }
.rq-row:last-child { border-block-end: none; }
.rq-row:hover { background: var(--gold-50); }
.rq-row:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
.rq-row.is-actionable { background: linear-gradient(90deg, rgba(203,163,68,.07), transparent 40%); }
.rq-row.is-actionable:hover { background: var(--gold-50); }
.rq-table td { padding: 13px 16px; font-size: .87rem; color: var(--ink-700); white-space: nowrap; }
.rq-num { font-weight: 800; color: var(--ink-strong); }
.rq-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill, 99px); font-size: .78rem; font-weight: 700; border: 1px solid transparent; }
.rq-badge .sc-dot { inline-size: 7px; block-size: 7px; }
/* One tokenised badge — every status reads from the shared --st-* tokens */
.rq-badge.st-review { background: var(--st-review-bg); color: var(--st-review-fg); } .rq-badge.st-review .sc-dot { background: var(--st-review); }
.rq-badge.st-pay { background: var(--st-pay-bg); color: var(--st-pay-fg); } .rq-badge.st-pay .sc-dot { background: var(--st-pay); }
.rq-badge.st-data { background: var(--st-data-bg); color: var(--st-data-fg); } .rq-badge.st-data .sc-dot { background: var(--st-data); }
.rq-badge.st-paused { background: var(--st-paused-bg); color: var(--st-paused-fg); } .rq-badge.st-paused .sc-dot { background: var(--st-paused); }
.rq-badge.st-progress { background: var(--st-progress-bg); color: var(--st-progress-fg); } .rq-badge.st-progress .sc-dot { background: var(--st-progress); }
.rq-badge.st-done { background: var(--st-done-bg); color: var(--st-done-fg); } .rq-badge.st-done .sc-dot { background: var(--st-done); }
.rq-badge.st-failed { background: var(--st-failed-bg); color: var(--st-failed-fg); } .rq-badge.st-failed .sc-dot { background: var(--st-failed); }
.rq-badge.st-cancelled { background: var(--st-cancelled-bg); color: var(--st-cancelled-fg); } .rq-badge.st-cancelled .sc-dot { background: var(--st-cancelled); }
.rq-act { white-space: nowrap; }
.rq-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; min-block-size: 38px; border-radius: var(--r-pill, 99px);
  font-size: .8rem; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink-strong); transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.rq-btn svg { inline-size: 15px; block-size: 15px; }
.rq-btn:hover { border-color: var(--gold-300, var(--gold-200)); color: var(--gold-700); }
.rq-btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.rq-btn-pay { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(176,137,63,.6); }
.rq-btn-pay:hover { filter: brightness(1.05); color: var(--on-gold); }
.rq-btn-data { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-300, var(--gold-200)); }

.rq-empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 54px 22px; color: var(--ink-500); }
.rq-empty.is-shown { display: flex; }
.rq-empty svg { inline-size: 38px; color: var(--gold-400); }
.rq-empty b { color: var(--ink-strong); font-size: 1.05rem; }

/* pagination */
.rq-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 4px; }
.rq-count { font-size: .86rem; color: var(--ink-700); font-weight: 600; }
.rq-count .num { color: var(--gold-700); font-weight: 800; }
.rq-pager { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rq-size { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-500); }
.rq-size select { min-block-size: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface, #fff); font: inherit; cursor: pointer; }
.pager-btns { display: inline-flex; align-items: center; gap: 4px; }
.pager-btn { min-inline-size: 40px; block-size: 40px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface, #fff);
  border-radius: 10px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--ink-700); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.pager-btn:hover:not(:disabled):not(.is-active) { border-color: var(--gold-300, var(--gold-200)); color: var(--gold-700); }
.pager-btn.is-active { background: var(--char-900); color: #fff; border-color: var(--char-900); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn svg { inline-size: 16px; block-size: 16px; }
.pg-prev { transform: rotate(90deg); } .pg-next { transform: rotate(-90deg); }
html[dir="rtl"] .pg-prev { transform: rotate(-90deg); } html[dir="rtl"] .pg-next { transform: rotate(90deg); }
.pager-dots { color: var(--ink-400); padding: 0 4px; }

/* responsive */
@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr 1fr; } .fb-search { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .portal-bar .container { min-block-size: 50px; }
  .ptab span:not(.ptab-badge) { font-size: .84rem; }
  .welcome-actions { inline-size: 100%; min-inline-size: 0; }
  .chart-row { grid-template-columns: 1fr auto; } .chart-track { grid-column: 1 / -1; order: 3; }
  .filter-bar { grid-template-columns: 1fr; }
  /* table -> cards */
  .rq-wrap { overflow: visible; border: none; background: none; }
  .rq-table { min-inline-size: 0; }
  .rq-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rq-table, .rq-table tbody, .rq-row, .rq-table td { display: block; inline-size: 100%; }
  .rq-row { border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface, #fff); padding: 14px 16px; margin-block-end: 12px; }
  .rq-row.is-actionable { border-color: var(--gold-200); }
  .rq-table td { padding: 5px 0; white-space: normal; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .rq-table td::before { content: attr(data-th); font-weight: 700; color: var(--ink-500); font-size: .8rem; }
  .rq-num::before { color: var(--ink-500); }
  .rq-act { padding-block-start: 10px !important; margin-block-start: 6px; border-block-start: 1px solid var(--line-2); }
  .rq-act::before { display: none; }
  .rq-btn { inline-size: 100%; justify-content: center; }
  .rq-foot { flex-direction: column; align-items: stretch; }
  .rq-pager { justify-content: space-between; }
}

/* dashboard chart — stacked type×status bars + legend */
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block-end: 20px; }
.lg-st { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-600, var(--ink-500)); font-weight: 600; }
.chart-stack { display: flex; background: var(--surface-2, #f1ece1); }
.chart-seg { display: block; block-size: 100%; transition: filter .15s var(--ease); }
.chart-seg:hover { filter: brightness(1.08); }
.chart-seg:first-child { border-start-start-radius: 99px; border-end-start-radius: 99px; }
.chart-seg:last-child { border-start-end-radius: 99px; border-end-end-radius: 99px; }
@media (max-width: 720px) { .chart-stacked .chart-row { grid-template-columns: 1fr auto; } .chart-stacked .chart-track { grid-column: 1 / -1; order: 3; } }

/* dashboard chart v2 — proportional stacked bars, 4 status groups, header legend */
.chart-card .chart-head { align-items: center; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-end: 0; }
.lg-st { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-700); font-weight: 600; }
.lg-sw { inline-size: 12px; block-size: 12px; border-radius: 4px; flex: 0 0 auto; }
.chart-stacked { gap: 14px; }
.chart-stacked .chart-row { grid-template-columns: minmax(110px, 180px) 1fr 40px; align-items: center; gap: 14px; }
.chart-stacked .chart-name { font-weight: 700; color: var(--ink-strong); }
.chart-stack { display: flex; block-size: 22px; border-radius: 99px; background: var(--surface-2, #f1ece1);
  box-shadow: inset 0 0 0 1px rgba(40,32,14,.05); overflow: hidden; }
.chart-seg { display: block; block-size: 100%; box-shadow: inset -1.5px 0 0 var(--surface, #fff); transition: filter .15s var(--ease); }
.chart-seg:last-child { box-shadow: none; }
.chart-seg:hover { filter: brightness(1.07); }
.chart-stacked .chart-val { min-inline-size: 40px; font-size: .95rem; }
/* status-group colours */
.gp-action-fill  { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }
.gp-progress-fill{ background: var(--st-review); }
.gp-done-fill    { background: var(--ok); }
.gp-closed-fill  { background: var(--st-failed); }
.gp-action-sw  { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.gp-progress-sw{ background: var(--st-review); }
.gp-done-sw    { background: var(--ok); }
.gp-closed-sw  { background: var(--st-failed); }
@media (max-width: 760px) {
  .chart-card .chart-head { align-items: flex-start; }
  .chart-legend { margin-block-start: 4px; }
}
@media (max-width: 560px) {
  .chart-stacked .chart-row { grid-template-columns: 1fr 36px; column-gap: 12px; row-gap: 6px; }
  .chart-stacked .chart-track { grid-column: 1 / -1; order: 3; }
}

/* dashboard welcome card — dark variant */
.welcome-card { background: radial-gradient(130% 160% at 100% 0%, #2c2619, var(--char-900) 58%); border-color: rgba(203,163,68,.30); color: #fff; }
.welcome-card::after { content: ""; position: absolute; inset-block-start: -45%; inset-inline-end: -8%; inline-size: 360px; block-size: 360px;
  background: radial-gradient(circle, rgba(203,163,68,.20), transparent 70%); pointer-events: none; z-index: 0; }
.welcome-main, .welcome-actions { position: relative; z-index: 1; }
.welcome-eyebrow { color: var(--gold-400, #d9bd6e); }
.welcome-main h1 { color: #fff; }
.welcome-main p { color: rgba(255,255,255,.82); }
.welcome-meta { color: rgba(255,255,255,.6); }
.welcome-meta svg { color: var(--gold-400, #d9bd6e); }
.welcome-actions .btn--soft { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.welcome-actions .btn--soft:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.3); }
.welcome-actions .btn--secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.welcome-actions .btn--secondary:hover { background: rgba(255,255,255,.12); border-color: var(--gold-400, #d9bd6e); color: #fff; }

/* logged-in header — My account button + dropdown */
.acct-hdr { position: relative; }
.btn-acct-hdr { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-block-size: 42px;
  border-radius: var(--r-pill, 99px); border: 1px solid var(--gold-300, var(--gold-200)); background: var(--gold-50);
  color: var(--gold-700); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease); }
.btn-acct-hdr:hover { background: var(--gold-100); border-color: var(--gold-400); }
.btn-acct-hdr:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.btn-acct-hdr > svg:first-child { inline-size: 19px; block-size: 19px; }
.btn-acct-hdr .acct-chev { inline-size: 16px; block-size: 16px; transition: transform .2s var(--ease); }
.btn-acct-hdr[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-hdr .acct-menu { inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 80; }
/* slim portal bar with a single tab */
.portal-bar .container { justify-content: flex-start; }

/* ==========================================================================
   REQUEST DETAIL (request-detail.html)
   ========================================================================== */
.rd-wrap { display: flex; flex-direction: column; gap: 22px; max-inline-size: 760px; }
.rd-summary { --card-shadow: none; --card-radius: var(--r-lg, 18px); --card-pad: clamp(18px, 2.4vw, 26px); }
.rd-shead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block-end: 16px; margin-block-end: 16px; border-block-end: 1px solid var(--line-2); }
.rd-eyebrow { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-500); margin-block-end: 3px; }
.rd-num { font-size: 1.5rem; font-weight: 800; color: var(--ink-strong); }
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.rd-grid dt { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-block-end: 4px; }
.rd-grid dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink-strong); }
.rd-callout { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border-radius: var(--r-md, 14px); border: 1px solid var(--line); }
.rd-callout .rd-cico { flex: 0 0 auto; inline-size: 40px; block-size: 40px; border-radius: 11px; display: grid; place-items: center; }
.rd-callout .rd-cico svg { inline-size: 21px; block-size: 21px; }
.rd-callout b { display: block; color: var(--ink-strong); font-size: 1rem; }
.rd-callout p { margin-block-start: 5px; color: var(--ink-700); font-size: .9rem; line-height: 1.6; }
.rd-reason { background: #f6ece9; border-color: #ecd6d1; }
.rd-reason .rd-cico { background: #f0dbd5; color: #9a463d; }
.rd-action { background: var(--gold-50); border-color: var(--gold-200); }
.rd-action .rd-cico { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 16px; }
.rd-note { color: var(--ink-700); font-size: .95rem; line-height: 1.7; }
.rd-form { display: flex; flex-direction: column; gap: 16px; margin-block-start: 16px; }
.rd-form .btn { align-self: flex-start; }
.rd-sel { position: relative; display: flex; }
.rd-sel select { appearance: none; inline-size: 100%; }
.rd-sel svg { display: none; }
.rd-success { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; padding: 16px 18px; border-radius: var(--r-md, 14px); background: var(--ok-bg, #e7f4ee); border: 1px solid #bfe3d0; }
.rd-success svg { inline-size: 26px; block-size: 26px; color: var(--ok, var(--ok)); flex: 0 0 auto; }
.rd-success b { display: block; color: #176c47; }
.rd-success span { font-size: .88rem; color: var(--ink-700); }
.rd-invoice { border: 1px solid var(--line); border-radius: var(--r-md, 14px); overflow: hidden; }
.rd-inv-row, .rd-inv-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: .95rem; color: var(--ink-700); }
.rd-inv-row + .rd-inv-row, .rd-inv-total { border-block-start: 1px solid var(--line-2); }
.rd-inv-total { background: var(--surface-2, #faf7ef); font-weight: 800; color: var(--ink-strong); font-size: 1.05rem; }
.rd-inv-total small { font-size: .8rem; font-weight: 600; color: var(--ink-500); }
.rd-view[data-view="pay"] .btn { margin-block-start: 16px; }
@media (max-width: 560px) { .rd-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   REQUEST DETAIL v2 — workflow / action centre
   ========================================================================== */
.rd-hero { min-block-size: clamp(120px, 14vw, 160px); }
.rd-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 6px; }
.rd-titlebar h1 { margin: 0; }
.rd-subline { margin-block-start: 8px; color: rgba(255,255,255,.82); font-size: .92rem; }
.rd-badge { font-size: .82rem; padding: 7px 14px; }
.rd-badge .sc-dot { inline-size: 8px; block-size: 8px; }
.rd-badge-sm { font-size: .76rem; padding: 4px 10px; }

.rd-wrap { display: flex; flex-direction: column; gap: 20px; max-inline-size: var(--container, 1440px); }   /* match the site container width (1440) */

/* top action card */
.rd-action-card { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: linear-gradient(120deg, var(--gold-50), var(--surface, #fff)); border: 1px solid var(--gold-200); border-radius: var(--r-lg, 18px); overflow: hidden; }
.rd-action-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 5px; background: linear-gradient(var(--gold-400), var(--gold-600)); }
.rd-action-card.is-failed, .rd-action-card.is-paused { background: #f8efee; border-color: #ecd6d1; }
.rd-action-card.is-failed::before, .rd-action-card.is-paused::before { background: linear-gradient(#c08a4e, #9a463d); }
.rd-ac-ico { flex: 0 0 auto; inline-size: 46px; block-size: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.rd-action-card.is-failed .rd-ac-ico, .rd-action-card.is-paused .rd-ac-ico { background: #f0dbd5; color: #9a463d; }
.rd-ac-ico svg { inline-size: 23px; block-size: 23px; }
.rd-ac-body { flex: 1 1 auto; min-inline-size: 0; }
.rd-ac-body b { display: block; font-size: 1.1rem; color: var(--ink-strong); letter-spacing: -.01em; }
.rd-ac-body p { margin-block-start: 6px; color: var(--ink-700); font-size: .92rem; line-height: 1.65; max-inline-size: 70ch; }
.rd-ac-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }

/* info cards */
.rd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd-card { --card-shadow: none; --card-radius: var(--r-lg, 18px); --card-pad: 20px 22px; }
.rd-card-h { display: flex; align-items: center; gap: 9px; font-size: .98rem; font-weight: 800; color: var(--ink-strong);
  padding-block-end: 13px; margin: 0 0 13px; border-block-end: 1px solid var(--line-2); }
.rd-card-h svg { inline-size: 19px; block-size: 19px; color: var(--gold-600); flex: 0 0 auto; }
.rd-dl { margin: 0; display: flex; flex-direction: column; gap: 13px; }
.rdc-field dt { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-block-end: 3px; }
.rdc-field dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink-strong); }
.rdc-field dd a { color: var(--gold-700); font-weight: 700; }
.rdc-field dd .num { letter-spacing: .01em; }

/* payment + service row */
.rd-two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.rd-pay { background: linear-gradient(150deg, #2c2619, var(--char-900)); color: #fff; border: 1px solid rgba(203,163,68,.3); border-radius: var(--r-lg, 18px); padding: 22px; display: flex; flex-direction: column; }
.rd-pay-head { display: flex; align-items: center; gap: 11px; margin-block-end: 16px; }
.rd-pay-ico { inline-size: 40px; block-size: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.rd-pay-ico svg { inline-size: 21px; }
.rd-pay-head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.rd-pay-amount { padding-block: 14px; border-block: 1px solid rgba(255,255,255,.12); }
.rd-pay-lbl { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-block-end: 4px; }
.rd-pay-amount b { font-size: 2rem; font-weight: 800; color: var(--gold-400, #d9bd6e); }
.rd-pay-amount small { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.7); }
.rd-pay-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 14px; font-size: .88rem; color: rgba(255,255,255,.78); }
.rd-pay-note { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.6; margin-block-end: 16px; }
.rd-pay-actions { display: flex; flex-direction: column; gap: 10px; margin-block-start: auto; }
.rd-pay-actions .btn--secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.rd-pay-actions .btn--secondary:hover { background: rgba(255,255,255,.14); border-color: var(--gold-400, #d9bd6e); color: #fff; }
.rd-service { display: flex; flex-direction: column; }
.rd-svc-name { font-size: 1rem; font-weight: 700; color: var(--ink-strong); line-height: 1.5; margin-block: 0 14px; }

/* blocks */
.rd-block { --card-shadow: none; --card-radius: var(--r-lg, 18px); --card-pad: clamp(18px, 2.4vw, 26px); }
.rd-block-h h2 { margin: 0; font-size: 1.1rem; color: var(--ink-strong); }
.rd-block-h { margin-block-end: 20px; }
.rd-note { color: var(--ink-500); font-size: .88rem; line-height: 1.6; margin-block-start: 5px; }

/* timeline */
.rd-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.tl-item::before { content: ""; position: absolute; inset-block-start: 44px; inset-block-end: -20px; inset-inline-start: 21px; inline-size: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; z-index: 1;
  background: var(--surface-2, #f7f4ec); border: 1px solid var(--line); color: var(--ink-500); }
.tl-dot svg { inline-size: 20px; block-size: 20px; }
.tl-staff .tl-dot { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); border-color: transparent; color: var(--on-gold); }
.tl-card { --card-shadow: none; --card-radius: var(--r-md, 14px); --card-pad: 16px 18px; }
.tl-staff .tl-card { background: var(--gold-50); border-color: var(--gold-200); }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-block-end: 10px; }
.tl-head b { color: var(--ink-strong); font-size: .95rem; }
.tl-head time { font-size: .78rem; color: var(--ink-500); }
.tl-msg { color: var(--ink-700); font-size: .92rem; line-height: 1.75; margin: 0; }
.tl-req { margin-block-start: 12px; }
.rd-req-flag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-pill, 99px); background: #fff; border: 1px solid var(--gold-300, var(--gold-200)); color: var(--gold-700); font-size: .8rem; font-weight: 700; }
.rd-req-flag svg { inline-size: 15px; block-size: 15px; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 14px; }
.tl-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.tl-kv dt { font-size: .76rem; color: var(--ink-500); font-weight: 600; margin-block-end: 2px; }
.tl-kv dd { margin: 0; font-size: .9rem; font-weight: 700; color: var(--ink-strong); }

/* attachment cards */
.tl-atts { display: flex; flex-direction: column; gap: 10px; }
.att-card { --card-bg: var(--surface-2); --card-radius: var(--r-md, 14px); --card-pad: 12px 14px; --card-shadow: none; display: flex; align-items: center; gap: 13px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.att-card:hover { border-color: var(--gold-300, var(--gold-200)); background: var(--gold-50); }
.att-ico { flex: 0 0 auto; inline-size: 44px; block-size: 44px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--gold-700); }
.att-ico svg { inline-size: 22px; block-size: 22px; }
.att-meta { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; gap: 2px; }
.att-meta b { font-size: .9rem; color: var(--ink-strong); }
.att-meta small { font-size: .76rem; color: var(--ink-500); }
.att-go { flex: 0 0 auto; inline-size: 38px; block-size: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--gold-700); }
.att-go svg { inline-size: 18px; }

/* reply / upload */
.rd-form { display: flex; flex-direction: column; gap: 16px; }
.rd-form .btn { align-self: flex-start; }
.rd-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px;
  border: 2px dashed var(--gold-200); border-radius: var(--r-md, 14px); background: var(--gold-50); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.rd-drop:hover { border-color: var(--gold-400); }
.rd-drop.has-file { border-style: solid; border-color: var(--gold-400); }
.rd-drop svg { inline-size: 26px; block-size: 26px; color: var(--gold-600); }
.rd-drop-t { font-weight: 700; color: var(--ink-strong); font-size: .92rem; }
.rd-drop-h { font-size: .8rem; color: var(--ink-500); }
.rd-drop-name { font-size: .82rem; color: var(--gold-700); font-weight: 700; margin-block-start: 4px; }
.rd-drop-name:empty { display: none; }

.rd-success { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; padding: 16px 18px; border-radius: var(--r-md, 14px); background: var(--ok-bg, #e7f4ee); border: 1px solid #bfe3d0; }
.rd-success svg { inline-size: 26px; block-size: 26px; color: var(--ok, var(--ok)); flex: 0 0 auto; }
.rd-success b { display: block; color: #176c47; }
.rd-success span { font-size: .88rem; color: var(--ink-700); }
.rd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; color: var(--ink-500); }
.rd-empty[hidden] { display: none; }
.rd-empty svg { inline-size: 32px; color: var(--gold-400); }
.rd-empty b { color: var(--ink-strong); }

.rd-help { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .9rem; color: var(--ink-600); padding-block: 4px; }
.rd-help svg { inline-size: 18px; color: var(--gold-700); }
.rd-help a { color: var(--gold-700); font-weight: 700; }

/* mobile sticky action */
.rd-sticky { position: sticky; inset-block-end: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-block-start: 1px solid var(--line); padding-block: 12px; display: none; }
.rd-sticky .container { padding-block: 0; }

/* responsive */
@media (max-width: 980px) { .rd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-two { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .rd-cards { grid-template-columns: 1fr; }
  .rd-titlebar { flex-direction: column; }
  .rd-ac-cta .btn, .rd-pay-actions .btn { inline-size: 100%; justify-content: center; }
  .tl-kv { grid-template-columns: 1fr 1fr; }
  .rd-sticky { display: block; }
  .rd-form .btn { align-self: stretch; }
}

/* request-detail info cards — richer, less flat */
.rd-card { box-shadow: 0 1px 2px rgba(40,32,14,.04), 0 16px 32px -24px rgba(40,32,14,.22);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.rd-card:hover { border-color: var(--gold-200); transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(40,32,14,.32); }
.rd-card-h { gap: 12px; font-size: 1rem; }
.rd-card-h svg { inline-size: 40px; block-size: 40px; padding: 10px; box-sizing: border-box; border-radius: 12px;
  background: linear-gradient(150deg, var(--gold-50), var(--gold-100)); border: 1px solid var(--gold-200); color: var(--gold-700); }
.rd-card:hover .rd-card-h svg { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); border-color: transparent; color: #fff; }
.rdc-field { padding-block-end: 13px; border-block-end: 1px solid var(--line-2); }
.rd-dl .rdc-field:last-child { padding-block-end: 0; border-block-end: none; }
.rdc-field dd { font-size: .98rem; }

/* dashboard view-details popup */
.dmodal { position: fixed; inset: 0; z-index: var(--z-popover); display: grid; place-items: center; padding: 20px; }
.dmodal[hidden] { display: none; }
.dmodal-backdrop { position: absolute; inset: 0; background: rgba(20,16,8,.55); backdrop-filter: blur(3px); }
.dmodal-panel { position: relative; z-index: 1; inline-size: min(640px, 100%); max-block-size: 90vh; overflow-y: auto;
  background: var(--surface-2, #faf7ef); border: 1px solid var(--gold-200); border-radius: var(--r-xl, 24px); box-shadow: 0 40px 90px -30px rgba(20,16,8,.6); }
.dmodal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px;
  border-block-end: 1px solid var(--line); position: sticky; inset-block-start: 0; background: var(--surface-2, #faf7ef); z-index: 2; }
.dmodal-eyebrow { display: block; font-size: .78rem; font-weight: 700; color: var(--gold-700); margin-block-end: 3px; }
.dmodal-head h2 { margin: 0; font-size: 1.2rem; color: var(--ink-strong); }
.dmodal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; }
.dmodal-body .rd-card { background: var(--surface, #fff); }
.dmodal-body .rd-card:hover { transform: none; box-shadow: 0 1px 2px rgba(40,32,14,.04), 0 16px 32px -24px rgba(40,32,14,.22); border-color: var(--line); }
.dmodal-body .rd-card:hover .rd-card-h svg { background: linear-gradient(150deg, var(--gold-50), var(--gold-100)); border-color: var(--gold-200); color: var(--gold-700); }
.dmodal-foot { display: flex; gap: 10px; justify-content: flex-start; padding: 18px 24px; border-block-start: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .dmodal-panel { animation: dmIn .25s var(--ease); }
  @keyframes dmIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (max-width: 600px) {
  .dmodal-body { grid-template-columns: 1fr; }
  .dmodal-foot { flex-direction: column; } .dmodal-foot .btn { inline-size: 100%; justify-content: center; }
}

/* dashboard view-details — small links menu (replaces the big modal) */
.rd-menu { position: fixed; z-index: var(--z-popover); min-inline-size: 240px; background: var(--surface, #fff); border: 1px solid var(--line);
  border-radius: var(--r-md, 14px); box-shadow: 0 24px 52px -18px rgba(20,16,8,.42); padding: 6px; }
.rd-menu[hidden] { display: none; }
.rd-menu-h { display: block; padding: 9px 12px 6px; font-size: .78rem; font-weight: 700; color: var(--ink-500); border-block-end: 1px solid var(--line-2); margin-block-end: 4px; }
.rd-menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink-900); font-weight: 600; font-size: .9rem; cursor: pointer; }
.rd-menu-item:hover, .rd-menu-item:focus-visible { background: var(--gold-50); color: var(--gold-700); outline: none; }
.rd-menu-item .rdm-ico { inline-size: 18px; block-size: 18px; color: var(--gold-700); flex: 0 0 auto; }
.rd-menu-item span { flex: 1 1 auto; }
.rd-menu-item .rdm-go { inline-size: 15px; block-size: 15px; color: var(--ink-400, #9a927f); flex: 0 0 auto; transform: rotate(-90deg); }
html[dir="rtl"] .rd-menu-item .rdm-go { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) { .rd-menu.is-open { animation: rdmIn .16s var(--ease); } @keyframes rdmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } }
.rd-card[id] { scroll-margin-block-start: 90px; }

/* ==========================================================================
   CASE DETAILS (case-details.html)
   ========================================================================== */
.case-sum { position: static; background: linear-gradient(135deg, var(--gold-50), var(--surface, #fff)); border: 1px solid var(--gold-200); border-radius: var(--r-lg, 18px);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: 0 1px 2px rgba(40,32,14,.04), 0 18px 36px -26px rgba(40,32,14,.24); }
.case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block-end: 18px; margin-block-end: 18px; border-block-end: 1px solid var(--gold-200); }
.case-id { display: flex; flex-direction: column; gap: 3px; }
.case-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--gold-700); }
.case-eyebrow svg { inline-size: 16px; block-size: 16px; }
.case-num { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; color: var(--ink-strong); letter-spacing: .01em; }
.case-court { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--ink-700); font-weight: 600; margin-block-start: 2px; }
.case-court svg { inline-size: 16px; block-size: 16px; color: var(--gold-700); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 18px; }
.case-grid .rdc-field { padding-block-end: 0; border-block-end: none; }
.case-fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-md, 14px); }
.cf-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
.cf-item + .cf-item { border-inline-start: 1px solid var(--line-2); }
.cf-lbl { font-size: .78rem; color: var(--ink-500); font-weight: 600; }
.cf-item b { font-size: 1.3rem; font-weight: 800; color: var(--ink-strong); }
.cf-item small { font-size: .76rem; font-weight: 600; color: var(--ink-500); }
.cf-paid b { color: var(--ok, var(--ok)); }
.cf-due b { color: var(--gold-700); }

.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
.case-cap { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-500); margin-block-end: 16px; }
.case-cap svg { inline-size: 16px; block-size: 16px; color: var(--gold-600); flex: 0 0 auto; }
.case-reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-req { display: flex; flex-direction: column; gap: 14px; --card-pad: 18px; --card-radius: var(--r-md, 14px);
  --card-shadow: 0 1px 2px rgba(40,32,14,.04); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.case-req:hover { border-color: var(--gold-200); transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(40,32,14,.3); }
.case-req:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.case-req[hidden] { display: none; }
.cr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cr-id { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.cr-num { font-size: .8rem; color: var(--ink-500); font-weight: 700; }
.cr-type { font-size: 1.05rem; color: var(--ink-strong); font-weight: 800; }
.cr-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; padding-block: 14px; border-block: 1px solid var(--line-2); }
.cr-meta dt { font-size: .74rem; color: var(--ink-500); font-weight: 600; margin-block-end: 2px; }
.cr-meta dd { margin: 0; font-size: .88rem; font-weight: 700; color: var(--ink-strong); }
.cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: auto; }
.cr-cta { pointer-events: none; }
.cr-cta-ico { inline-size: 15px; block-size: 15px; }
.cr-open { inline-size: 34px; block-size: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: 0 0 auto; }
.case-req:hover .cr-open { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); color: #fff; }
.cr-arrow { inline-size: 16px; block-size: 16px; transform: rotate(-90deg); }
html[dir="rtl"] .cr-arrow { transform: rotate(90deg); }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-fin { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-item:nth-child(3) { border-inline-start: none; } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr 1fr; } .case-reqs { grid-template-columns: 1fr; } .case-fin { grid-template-columns: 1fr 1fr; } .cf-item { border-block-start: 1px solid var(--line-2); } .cf-item + .cf-item { border-inline-start: none; } .cf-item:nth-child(-n+2) { border-block-start: none; } .case-chips { flex-wrap: nowrap; overflow-x: auto; } }

/* request-detail — documents + status steps */
.rd-caselink { margin-block-start: 14px; }
.rd-docs { display: flex; flex-direction: column; gap: 12px; }
.doc-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface-2, #faf7ef); }
.doc-row.is-rejected { border-color: #ecd6d1; background: #fbf5f3; }
.doc-row.is-required { border-color: var(--gold-200); background: var(--gold-50); }
.doc-info { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.doc-info b { font-size: .92rem; color: var(--ink-strong); }
.doc-info small { font-size: .76rem; color: var(--ink-500); }
.doc-reason { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px; font-size: .8rem; color: #9a463d; font-weight: 600; }
.doc-reason svg { inline-size: 15px; block-size: 15px; flex: 0 0 auto; }
.doc-acts { display: inline-flex; gap: 8px; }
@media (max-width: 640px) { .doc-row { grid-template-columns: auto 1fr; } .doc-row .rq-badge { grid-column: 2; justify-self: start; } .doc-acts { grid-column: 1 / -1; } .doc-acts .btn { flex: 1; justify-content: center; } }
.rd-steps { list-style: none; margin: 0; padding: 0; }
.rd-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-block-end: 22px; }
.rd-step::before { content: ""; position: absolute; inset-block-start: 36px; inset-block-end: -4px; inset-inline-start: 17px; inline-size: 2px; background: var(--line); }
.rd-step:last-child { padding-block-end: 0; }
.rd-step:last-child::before { display: none; }
.rs-dot { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1; background: var(--surface-2, #f7f4ec); border: 2px solid var(--line); color: var(--ink-400, #9a927f); }
.rs-dot svg { inline-size: 18px; block-size: 18px; }
.rd-step.is-done .rs-dot { background: var(--ok-bg, #e7f4ee); border-color: #bfe3d0; color: var(--ok, var(--ok)); }
.rd-step.is-current .rs-dot { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); border-color: transparent; color: var(--on-gold); box-shadow: 0 0 0 4px rgba(203,163,68,.18); }
.rs-body b { display: block; color: var(--ink-strong); font-size: .95rem; }
.rd-step:not(.is-done):not(.is-current) .rs-body b { color: var(--ink-400, #9a927f); }
.rs-body time { font-size: .78rem; color: var(--ink-500); }
.rs-desc { display: block; margin-block-start: 4px; font-size: .85rem; color: var(--ink-700); }

/* WIG: remove the ~300ms double-tap delay on interactive elements */
a, button, [role="button"], input, select, textarea, label, summary { touch-action: manipulation; }

/* ==========================================================================
   INVOICES / PAYMENT / RECEIPT
   ========================================================================== */
/* invoices list */
.inv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.inv-card { display: flex; flex-direction: column; gap: 14px; --card-pad: 20px; --card-radius: var(--r-lg, 18px); --card-shadow: 0 1px 2px rgba(40,32,14,.04), 0 16px 32px -26px rgba(40,32,14,.2); }
.inv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inv-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--gold-700); margin-block-end: 3px; }
.inv-eyebrow svg { inline-size: 15px; block-size: 15px; }
.inv-num { font-size: 1.15rem; font-weight: 800; color: var(--ink-strong); }
.inv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding-block: 14px; border-block: 1px solid var(--line-2); }
.inv-meta dt { font-size: .74rem; color: var(--ink-500); font-weight: 600; margin-block-end: 2px; }
.inv-meta dd { margin: 0; font-size: .9rem; font-weight: 700; color: var(--ink-strong); }
.inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: auto; }
.inv-amount-lbl { display: block; font-size: .76rem; color: var(--ink-500); font-weight: 600; }
.inv-amount b { font-size: 1.4rem; font-weight: 800; color: var(--gold-700); }
.inv-amount small { font-size: .78rem; font-weight: 600; color: var(--ink-500); }

/* partially-paid invoice: status badge + paid/remaining breakdown */
.rq-badge.st-partial { background: #eaf0f7; color: #3a5b86; }
.rq-badge.st-partial .sc-dot { background: #5b7db1; }
.inv-foot--split { align-items: center; }
.inv-amount--split { flex: 1 1 260px; min-inline-size: 240px; }
.inv-amt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.inv-amt-head .inv-amount-lbl { margin-block-end: 0; }
.inv-bar { block-size: 6px; inline-size: 100%; max-inline-size: 400px; border-radius: 99px; background: var(--st-pay-bg, #f7efd8); overflow: hidden; margin-block-start: 10px; }
.inv-bar > i { display: block; block-size: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-500, #cba344), var(--gold-600, #b58f31)); }
.inv-split { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; inline-size: 100%; max-inline-size: 400px; margin-block-start: 10px; }
.inv-split-i { display: flex; flex-direction: row; align-items: baseline; gap: 6px; }
.inv-split-lbl { font-size: .72rem; color: var(--ink-500); font-weight: 600; }
.inv-split-i b { font-size: .95rem; font-weight: 800; color: var(--ink-strong); }
.inv-split-i small { font-size: .68rem; font-weight: 600; color: var(--ink-500); }

/* profile / my account */
.profile-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-av { inline-size: 60px; block-size: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); font-weight: 800; font-size: 1.5rem; flex: 0 0 auto; }
.profile-id { display: grid; gap: 7px; }
.profile-name { font-size: 1.15rem; color: var(--ink-strong); }
.rq-badge.profile-verified { background: var(--ok-bg); color: var(--ok); align-self: start; }
.rq-badge.profile-verified .sc-dot { background: var(--ok); }
.profile-uaepass { margin-inline-start: auto; }
.profile-grid { margin-block-start: 16px; }
.profile-prefs { list-style: none; margin: 0; padding: 0; }
.profile-prefs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-block-end: 1px solid var(--line-2); }
.profile-prefs li:last-child { border-block-end: 0; padding-block-end: 0; }
.pp-label { color: var(--ink-500); font-weight: 600; font-size: .9rem; }
.pp-val { font-weight: 700; color: var(--ink-strong); font-size: .92rem; }
.pp-val.pp-on { color: var(--ok); }
.profile-hint { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-50); color: var(--ink-500); font-size: .82rem; line-height: 1.65; }
.profile-hint svg { inline-size: 18px; block-size: 18px; flex: 0 0 auto; color: var(--gold-700); }
.profile-actions { margin-block-start: 22px; }
.profile-links-h { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; font-size: 1.05rem; color: var(--ink-strong); }
.profile-links-h svg { inline-size: 20px; block-size: 20px; color: var(--gold-700); }
.profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-link { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.profile-link:hover { border-color: var(--gold-200); transform: translateY(-1px); }
.pl-ico { inline-size: 42px; block-size: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: 0 0 auto; }
.pl-ico svg { inline-size: 22px; block-size: 22px; }
.pl-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-inline-size: 0; }
.pl-b b { font-size: .95rem; color: var(--ink-strong); }
.pl-b small { font-size: .78rem; color: var(--ink-500); }
.pl-chev { inline-size: 18px; block-size: 18px; color: var(--ink-400); flex: 0 0 auto; }
[dir="rtl"] .pl-chev { transform: scaleX(-1); }
@media (max-width: 560px) { .profile-uaepass { margin-inline-start: 0; inline-size: 100%; justify-content: center; } .profile-links { grid-template-columns: 1fr; } }

/* payment */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 20px; align-items: start; }
.pay-main { display: flex; flex-direction: column; gap: 20px; }
.pay-req { --card-bg: var(--surface-2); --card-radius: var(--r-md, 14px); --card-pad: 14px 16px; --card-shadow: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pay-req + .pay-req { margin-block-start: 10px; }
.pay-req-id { display: flex; align-items: center; gap: 10px; }
.pay-req-id .num { font-size: .8rem; color: var(--ink-500); font-weight: 700; }
.pay-req-id b { color: var(--ink-strong); font-size: .95rem; }
.pay-req-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .78rem; color: var(--ink-500); }
.pay-req-amt b { font-size: .95rem; color: var(--ink-strong); }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method { display: block; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pm-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md, 14px); background: var(--surface, #fff); transition: border-color .2s var(--ease), background .2s var(--ease); }
.pay-method input:checked + .pm-box { border-color: var(--gold-500); background: var(--gold-50); }
.pay-method input:focus-visible + .pm-box { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.pm-ico { inline-size: 22px; block-size: 22px; color: var(--gold-700); flex: 0 0 auto; }
.pm-name { flex: 1 1 auto; font-weight: 700; color: var(--ink-strong); }
.pm-check { inline-size: 20px; block-size: 20px; color: var(--gold-600); opacity: 0; }
.pay-method input:checked + .pm-box .pm-check { opacity: 1; }
.pay-summary { background: var(--surface, #fff); border: 1px solid var(--gold-200); border-radius: var(--r-lg, 18px); padding: 20px; position: sticky; inset-block-start: calc(var(--header-h, 153px) + 12px); }
.pay-sum-h { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; color: var(--ink-strong); margin: 0 0 16px; }
.pay-sum-h svg { inline-size: 20px; color: var(--gold-600); }
.pay-sum-rows { display: flex; flex-direction: column; gap: 12px; padding-block-end: 16px; margin-block-end: 16px; border-block-end: 1px solid var(--line-2); }
.psr { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--ink-700); }
.psr-total { padding-block-start: 12px; border-block-start: 1px solid var(--line-2); font-weight: 800; color: var(--ink-strong); font-size: 1rem; }
.psr-total b { font-size: 1.25rem; color: var(--gold-700); }
.psr-total small { font-size: .76rem; color: var(--ink-500); }
.pay-summary .btn img { inline-size: 20px; block-size: 20px; }
.pay-secure { display: flex; align-items: center; gap: 7px; justify-content: center; margin-block-start: 12px; font-size: .8rem; color: var(--ink-500); }
.pay-secure svg { inline-size: 15px; color: var(--ok, var(--ok)); }

/* receipt */
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: clamp(22px, 3vw, 36px); max-inline-size: 760px; margin-inline: auto; box-shadow: 0 1px 2px rgba(40,32,14,.04), 0 22px 44px -28px rgba(40,32,14,.26); }
.rcp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block-end: 18px; border-block-end: 2px solid var(--gold-500); }
.rcp-brand { display: flex; align-items: center; gap: 12px; }
.rcp-brand b { display: block; color: var(--ink-strong); font-size: 1rem; }
.rcp-brand small { font-size: .76rem; color: var(--ink-500); }
.rcp-title { font-size: 1.15rem; color: var(--ink-strong); margin: 20px 0 16px; }
.rcp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 18px; }
.rcp-field dt { font-size: .78rem; color: var(--ink-500); font-weight: 600; margin-block-end: 3px; }
.rcp-field dd { margin: 0; font-size: .92rem; font-weight: 700; color: var(--ink-strong); }
.rcp-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm, 10px); background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--gold-700); font-size: .84rem; font-weight: 600; margin-block-end: 18px; }
.rcp-note svg { inline-size: 16px; flex: 0 0 auto; }
.rcp-table-wrap { overflow-x: auto; }
.rcp-table { inline-size: 100%; border-collapse: collapse; }
.rcp-table th { text-align: start; font-size: .78rem; font-weight: 800; color: var(--ink-700); background: var(--surface-2, #f7f4ec); padding: 10px 12px; white-space: nowrap; }
.rcp-table td { padding: 11px 12px; font-size: .86rem; color: var(--ink-700); border-block-start: 1px solid var(--line-2); white-space: nowrap; }
.rcp-table td:first-child { font-weight: 800; color: var(--ink-strong); }
.rcp-totals { display: flex; flex-direction: column; gap: 10px; margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.rt-row { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--ink-700); }
.rt-total { padding-block-start: 12px; border-block-start: 1px solid var(--line-2); font-weight: 800; color: var(--ink-strong); font-size: 1.05rem; }
.rt-total b { font-size: 1.3rem; color: var(--gold-700); }
.rt-total small { font-size: .76rem; color: var(--ink-500); }
.rcp-terms { margin-block-start: 20px; font-size: .8rem; color: var(--ink-500); line-height: 1.7; }
.rcp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--line-2); font-size: .82rem; font-weight: 700; color: var(--ink-700); }
.rcp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rcp-back { margin-block-start: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rcp-back .btn svg { inline-size: 20px; block-size: 20px; }

@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } .pay-summary { position: static; } .inv-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .inv-meta { grid-template-columns: 1fr 1fr; } .rcp-grid { grid-template-columns: 1fr; } }

/* print: receipt only */
@media print {
  body * { visibility: hidden; }
  #receipt, #receipt * { visibility: visible; }
  #receipt { position: absolute; inset-block-start: 0; inset-inline: 0; margin: 0; border: none; box-shadow: none; max-inline-size: none; }
  .site-header, .site-footer, .page-hero, .rcp-back, .rcp-actions, .chatbot, .portal-fab, .rd-sticky { display: none !important; }
}

/* ==========================================================================
   404 + reusable SKELETON / ERROR-STATE components
   ========================================================================== */
.err-page { min-block-size: 60vh; display: grid; place-items: center; }
.err-state { text-align: center; max-inline-size: 520px; margin-inline: auto; }
.err-code { display: block; font-size: clamp(4rem, 3rem + 8vw, 7rem); font-weight: 800; line-height: 1; color: var(--gold-200); letter-spacing: .02em; }
.err-state h1 { margin: 8px 0 12px; color: var(--ink-strong); }
.err-state p { color: var(--ink-700); line-height: 1.8; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-block-start: 24px; }
@media (max-width: 480px) { .err-actions { flex-direction: column; } .err-actions .btn { inline-size: 100%; justify-content: center; } }

/* reusable error state (data load failure) — toggle [hidden] from JS */
.data-error { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.data-error[hidden] { display: none; }
.data-error .de-ico { inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center; background: #f6ece9; color: #9a463d; }
.data-error .de-ico svg { inline-size: 24px; block-size: 24px; }
.data-error b { color: var(--ink-strong); font-size: 1.05rem; }
.data-error span { color: var(--ink-500); font-size: .9rem; max-inline-size: 42ch; }

/* skeleton loaders */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2, #f1ece1); border-radius: var(--r-sm, 10px); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
@media (prefers-reduced-motion: no-preference) { .skeleton::after { animation: skel 1.3s infinite; } }
html[dir="rtl"] .skeleton::after { transform: translateX(100%); }
@keyframes skel { 100% { transform: translateX(100%); } }
html[dir="rtl"] .skeleton { } /* shimmer direction handled above */
.sk-line { block-size: 12px; margin-block-end: 10px; }
.sk-line.sk-60 { inline-size: 60%; } .sk-line.sk-40 { inline-size: 40%; } .sk-line.sk-80 { inline-size: 80%; }
.sk-card { block-size: 120px; border-radius: var(--r-md, 14px); }
.sk-row { block-size: 52px; border-radius: var(--r-sm, 10px); margin-block-end: 10px; }


/* ==========================================================================
   Real Leaflet locations map (light tiles + gold pins) — replaces the old
   illustrated map. Container = .loc-map (position:relative, min-height set).
   ========================================================================== */
.loc-map { position: relative; }
.loc-leaflet { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 0; border-radius: inherit; background: var(--surface-2); }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-container a { color: var(--gold-700); }
.leaflet-control-zoom a { color: var(--gold-700); background: rgba(255,255,255,.94); border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--gold-50); }
.leaflet-bar { box-shadow: 0 8px 20px -10px rgba(40,32,14,.35); border: 1px solid var(--line); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.82); color: var(--ink-400); }
/* gold teardrop pins */
.lm-div { background: none; border: 0; }
.lm-pin { display: block; inline-size: 34px; block-size: 42px; filter: drop-shadow(0 6px 7px rgba(40,32,14,.35)); transition: transform .18s var(--ease); }
.lm-pin svg { inline-size: 34px; block-size: 42px; display: block; }
.lm-pin svg path { fill: var(--gold-600); }
.lm-pin svg circle { fill: #fff; }
.lm-pin.on { transform: scale(1.2); z-index: 5; }
.lm-pin.on svg path { fill: var(--gold-500); }
/* popups */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 20px 44px -18px rgba(40,32,14,.42); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 13px 15px; }
.lm-pop b { display: block; font-weight: 700; color: var(--ink-900); margin-block-end: 4px; font-size: .95rem; }
.lm-pop span { display: block; font-size: .82rem; color: var(--ink-500); line-height: 1.55; margin-block-end: 9px; }
.lm-pop a { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 700; color: var(--gold-700); }
.lm-pop a:hover { color: var(--gold-600); }
/* keep the "use my location" button above the map layers */
.map-geo { z-index: 1002; }

/* ---- brand styling for the real map: warm tiles + floating chrome ---- */
.loc-leaflet .leaflet-tile-pane { filter: sepia(.16) saturate(1.08) brightness(1.02) hue-rotate(-8deg) contrast(.97); }
.loc-map .map-geo { inset: 14px 14px auto auto; }                 /* top-right (physical) */
.leaflet-bottom.leaflet-left .leaflet-control-zoom { margin: 0 0 14px 14px; }
.map-overlay--live { position: absolute; z-index: 800; inset: 14px auto auto 14px; pointer-events: none; }
.map-legend--live { display: none; }

/* ---- DARK map theme (overrides the light defaults above) ---- */
#loc-leaflet.leaflet-container, #loc-leaflet .leaflet-tile-container { background: #4f4838; }
.loc-leaflet .leaflet-tile-pane { filter: sepia(.26) saturate(1.22) hue-rotate(-12deg) brightness(1.7) contrast(.9); }
.leaflet-control-zoom a { background: rgba(26,23,18,.86); color: var(--gold-400); border-color: rgba(203,163,68,.28) !important; }
.leaflet-control-zoom a:hover { background: rgba(44,38,25,.96); color: var(--gold-300, #e7d09a); }
.leaflet-bar { border: 1px solid rgba(203,163,68,.28); box-shadow: 0 10px 24px -12px rgba(0,0,0,.7); }
.leaflet-control-attribution { background: rgba(26,23,18,.72); color: rgba(255,255,255,.5); }
.leaflet-control-attribution a { color: var(--gold-400); }
.loc-map { border-color: rgba(203,163,68,.32); }

/* ============================================================
   HERO — live-request carousel (multiple requests)
   ============================================================ */
.badge-danger { background: #fbe9e7; color: #b3261e; }

.hero-carousel {
  max-width: 440px; margin-inline-start: auto;
  overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--sh-3); outline: none;
}
.hero-carousel:focus-visible { box-shadow: var(--sh-3), 0 0 0 3px var(--gold-200); }
.hero-track {
  display: flex; will-change: transform;
  transition: transform .5s var(--ease);
}
.hero-slide { flex: 0 0 100%; min-inline-size: 0; }
.hero-carousel .hero-card { max-width: none; margin: 0; block-size: 100%; box-shadow: none; border: none; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

.hero-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-block-start: 18px; padding-block-end: 18px;
}
.hero-carousel-nav .hc-dots { margin-inline: 4px; }
.hc-arrow {
  inline-size: 38px; block-size: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.hc-arrow:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.7); }
.hc-arrow:active { transform: scale(.94); }
.hc-arrow[data-hc-prev] svg { transform: rotate(180deg); }
html[dir="rtl"] .hc-arrow[data-hc-prev] svg { transform: rotate(0deg); }
html[dir="rtl"] .hc-arrow[data-hc-next] svg { transform: rotate(180deg); }

.hc-dots { display: flex; align-items: center; gap: 8px; }
.hc-dot {
  inline-size: 8px; block-size: 8px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); transition: inline-size .22s var(--ease), background .22s var(--ease), border-radius .22s var(--ease);
}
.hc-dot:hover { background: rgba(255,255,255,.7); }
.hc-dot.is-active { background: #fff; inline-size: 22px; border-radius: 5px; }

/* controls read on light hero variants too */
.hero:not(.hero--media) .hc-arrow { color: var(--ink-900); border-color: var(--line); background: var(--surface); }
.hero:not(.hero--media) .hc-arrow:hover { background: var(--gold-50); }
.hero:not(.hero--media) .hc-dot { background: var(--line-2); }
.hero:not(.hero--media) .hc-dot.is-active { background: var(--gold-500); }

@media (prefers-reduced-motion: reduce) { .hero-track { scroll-behavior: auto; } }

/* ============================================================
   HERO — smart request insight cards (inside the carousel)
   ============================================================ */
.hero-insights { border: 1px solid var(--line); transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease); }
.hero-insights:hover { border-color: var(--gold-300, #e0c583); box-shadow: 0 18px 44px -22px rgba(26,23,18,.4); transform: translateY(-2px); }

.insight-card {
  background: var(--surface); block-size: 100%; min-block-size: 366px;
  padding: 18px 18px 14px; display: flex; flex-direction: column;
}
.ic-head { display: flex; align-items: flex-start; gap: 12px; }
.ic-ico {
  flex: 0 0 auto; inline-size: 46px; block-size: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--gold-50);
  color: var(--gold-700); border: 1px solid var(--gold-100);
}
.ic-ico svg { inline-size: 23px; block-size: 23px; }
.ic-head-txt { flex: 1 1 auto; min-inline-size: 0; }
.ic-title { font-size: 1.02rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.ic-sub { font-size: .8rem; color: var(--ink-500); margin-block-start: 4px; line-height: 1.55; }
.ic-badge {
  flex: 0 0 auto; align-self: flex-start; font-size: .72rem; font-weight: 700;
  color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--gold-100);
  border-radius: var(--r-pill); padding: 3px 10px; white-space: nowrap;
}

.ic-rows { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.ic-rows li + li .ic-row { border-block-start: 1px solid var(--line-2); }
.ic-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 8px; border-radius: 11px; text-decoration: none;
  transition: background .15s var(--ease);
}
.ic-row:hover, .ic-row:focus-visible { background: var(--gold-50); outline: none; }
.ic-row:focus-visible { box-shadow: 0 0 0 2px var(--gold-300, #e0c583); }
.ic-row-info { min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; }
.ic-row-id { font-size: .92rem; font-weight: 600; color: var(--ink-900); }
.ic-row-meta { font-size: .78rem; color: var(--ink-500); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ic-sep { color: var(--line); }
.ic-amt { color: var(--ink-900); font-weight: 700; }
.ic-row-act {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; color: var(--gold-700); white-space: nowrap;
  transition: color .15s var(--ease);
}
.ic-row:hover .ic-row-act, .ic-row:focus-visible .ic-row-act { color: var(--gold-800); }
.ic-arrow { inline-size: 15px; block-size: 15px; }
html[dir="rtl"] .ic-arrow { transform: rotate(180deg); }   /* point toward reading end */

.ic-chip { font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap; }
.ic-chip-warn   { background: var(--warn-bg); color: var(--warn); }
.ic-chip-danger { background: #fbe9e7; color: #b3261e; }
.ic-chip-hold   { background: #eef1f4; color: #56606f; }

.ic-all {
  margin-block-start: auto; padding-block-start: 13px; margin-block-end: 2px;
  border-block-start: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--gold-700); text-decoration: none;
  transition: color .15s var(--ease);
}
.ic-all svg { inline-size: 16px; block-size: 16px; }
.ic-all:hover, .ic-all:focus-visible { color: var(--gold-800); outline: none; }
.ic-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* empty state (calm, small) */
.ic-empty {
  margin: 18px 0 auto; padding: 24px 14px; text-align: center;
  color: var(--ink-500); font-size: .85rem; line-height: 1.5;
  background: var(--gold-50); border: 1px dashed var(--gold-100); border-radius: 12px;
}
/* loading skeleton rows */
.ic-skel { margin: 14px 0 0; }
.ic-skel-row { block-size: 46px; border-radius: 11px; margin-block-start: 8px;
  background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2));
  background-size: 200% 100%; animation: ic-shimmer 1.3s linear infinite; }
@keyframes ic-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ic-skel-row { animation: none; } }

/* ==========================================================================
   ACCESSIBILITY CENTER — إمكانية الوصول
   Government-style accessibility toolbar + settings panel.
   Root classes drive the effects; JS toggles them + persists to localStorage.
   Uses the EJE tokens + logical properties so it mirrors correctly in RTL/LTR.
   ========================================================================== */
:root { --a11y-font-scale: 1; }

/* ---- 1. Font scaling (root rem scales UI text; px-sized SVG icons stay put) */
html { font-size: calc(100% * var(--a11y-font-scale, 1)); }

/* ---- 2. Text spacing --------------------------------------------------- */
html.a11y-text-spacing body { letter-spacing: .045em; word-spacing: .14em; line-height: 1.9; }
html.a11y-text-spacing p, html.a11y-text-spacing li,
html.a11y-text-spacing td, html.a11y-text-spacing .lead { line-height: 2.05; }
html[lang="ar"].a11y-text-spacing body { letter-spacing: 0; word-spacing: .18em; } /* AR: spacing letters harms legibility */

/* ---- 3. Underline links (text links only, never buttons/brand/icons) --- */
html.a11y-underline-links a:not(.btn):not(.uaepass-btn):not(.mm-uaepass):not(.brand):not(.icon-btn):not(.menu-btn):not(.lang-toggle):not(.a11y-btn):not(.nav-contact):not([role="button"]) {
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px;
}

/* ---- 4. Reduced motion (pause decorative animation) -------------------- */
html.a11y-reduced-motion *, html.a11y-reduced-motion *::before, html.a11y-reduced-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* ---- 5. Grayscale (filter on root keeps fixed elements fixed) ---------- */
html.a11y-grayscale { filter: grayscale(100%); }

/* ---- 6. Focus highlight (strong keyboard-nav outline) ------------------ */
html.a11y-focus-highlight a:focus-visible, html.a11y-focus-highlight button:focus-visible,
html.a11y-focus-highlight input:focus-visible, html.a11y-focus-highlight select:focus-visible,
html.a11y-focus-highlight textarea:focus-visible, html.a11y-focus-highlight [tabindex]:focus-visible,
html.a11y-focus-highlight summary:focus-visible, html.a11y-focus-highlight [role="button"]:focus-visible {
  outline: 3px solid var(--gold-600) !important; outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(203,163,68,.28) !important; border-radius: 6px;
}
html.a11y-dark-contrast.a11y-focus-highlight :focus-visible { outline-color: #f0d27a !important; }

/* ---- 7. High contrast (darker text, stronger borders) ----------------- */
html.a11y-high-contrast {
  --ink-900:#000; --ink-700:#141210; --ink-500:#2a2620; --ink-400:#3a352c; --ink-300:#4a4436;
  --line:#5b5342; --line-2:#6a6250; --gold-700:#6a4b0e; --surface-2:#fff; --surface-3:#f6efdf;
}
html.a11y-high-contrast body { color:#000; }
html.a11y-high-contrast a:not(.btn):not(.brand):not(.icon-btn):not(.a11y-btn) { text-decoration: underline; }
html.a11y-high-contrast .card, html.a11y-high-contrast .svc-card, html.a11y-high-contrast .btn--soft,
html.a11y-high-contrast input, html.a11y-high-contrast select, html.a11y-high-contrast textarea,
html.a11y-high-contrast .a11y-panel, html.a11y-high-contrast table { border-color:#3a352c !important; }
html.a11y-high-contrast .btn--primary { color:#241a05; }
/* Dark hero band: its muted .lead uses --ink-500, which high-contrast darkens to
   near-black → dark-on-dark. Force it light like the .section.dark variant does. */
html.a11y-high-contrast .page-hero .lead { color:#fff; }
/* Warn chip: darken the amber text on its light bg for AA (was 2.9:1). */
html.a11y-high-contrast .ic-chip-warn { color:#6a4b0e; }
/* Third-party Leaflet attribution → solid light chrome + dark text. */
html.a11y-high-contrast .leaflet-control-attribution { background:#fff; color:#241a05; }
html.a11y-high-contrast .leaflet-control-attribution a { color:#6a4b0e; }
/* Big 404 display code is light gold-200 (decorative-soft) → darken for legibility. */
html.a11y-high-contrast .err-code { color: var(--gold-700); }

/* ---- 8. Dark contrast (accessibility dark theme) ---------------------- */
html.a11y-dark-contrast {
  --surface:#1c1811; --surface-2:#241f16; --surface-3:#2c2619;
  --ink-900:#f7f0e1; --ink-700:#e7deca; --ink-500:#c6bda8; --ink-400:#a69c87; --ink-300:#8a8071;
  --ink-strong:var(--ink-900);   /* strong TEXT follows the dark theme (was char-900 → dark-on-dark) */
  --line:#4a412f; --line-2:#3b3427; --gold-700:#e8c877; --gold-600:#d9b85f;
  /* Darken the light accent-panel tints so their (now-light) text stays legible.
     gold-200 stays light — it's used for accent borders + white-chip outlines. */
  --gold-50:#2a2416; --gold-100:#342c1b; --gold-800:#e8c877;
  color-scheme: dark;
}
html.a11y-dark-contrast body { background:#141009; color:var(--ink-900); }
html.a11y-dark-contrast .site-header, html.a11y-dark-contrast .mobile-menu { background:#181309; border-color:var(--line); }
html.a11y-dark-contrast .card, html.a11y-dark-contrast .svc-card, html.a11y-dark-contrast section,
html.a11y-dark-contrast .cta-band, html.a11y-dark-contrast .a11y-panel { background:var(--surface); color:var(--ink-900); }
html.a11y-dark-contrast .surface-2, html.a11y-dark-contrast .faq-item, html.a11y-dark-contrast input,
html.a11y-dark-contrast select, html.a11y-dark-contrast textarea, html.a11y-dark-contrast .btn--soft, html.a11y-dark-contrast .btn--secondary { background:var(--surface-2); color:var(--ink-900); border-color:var(--line); }
html.a11y-dark-contrast .site-footer { background:#0f0c07; }
/* The official receipt is a printable white "paper" sheet. Re-establish the light
   palette inside it so it stays dark-text-on-paper in dark-contrast (not light-on-white
   / dark-on-dark). Fixes both the value text and the pre-existing muted-label text. */
/* Surfaces that are light BY DESIGN (a printable receipt sheet, the phone-mock
   device screen) opt out of the dark theme and keep the light palette. */
html.a11y-dark-contrast .receipt,
html.a11y-dark-contrast .phone-mock,
html.a11y-dark-contrast .chat-panel {
  --surface:#fff; --surface-2:#faf7ef; --surface-3:#f6efdf;
  --ink-900:#1f1b14; --ink-700:#3c3528; --ink-500:#6d6453; --ink-400:#8f8675; --ink-300:#b6ad9b;
  --ink-strong:var(--char-900); --line:#ece6d8; --line-2:#f4efe4;
  --gold-50:#fbf6ea; --gold-100:#f3e6c4; --gold-700:#8a6a1e; --gold-600:#b58f31;
  --brand-50:#fbf6ea; --brand-100:#f3e6c4;
}
html.a11y-dark-contrast .receipt { background:#fff; color:var(--ink-900); }
/* Literal light-tinted panels not covered by the gold-50 token → darken to match. */
html.a11y-dark-contrast .doc-row.is-rejected { background:#2a1c18; border-color:#5b3a33; }
html.a11y-dark-contrast .rd-reason { background:#241f16; }
html.a11y-dark-contrast .rd-req-flag { background:#2a2416; border-color:#5b4a2a; }
html.a11y-dark-contrast .doc-reason { color:#ef9a90; }
/* The actionable stat-card's gold gradient darkens via --gold-50; its on-gold
   CTA text must follow the theme (was dark-on-dark). */
html.a11y-dark-contrast .stat-card.is-actionable { --on-gold: var(--ink-900); }
/* About-section marketing components with literal #fff backgrounds → darken. */
html.a11y-dark-contrast .about-section .mv-card.is-featured { background: linear-gradient(160deg, var(--surface-2), var(--gold-50)); }
html.a11y-dark-contrast .about-cta { background: var(--surface-2); }
html.a11y-dark-contrast .about-float-badge { background: var(--surface-2); }
/* Inbox-centre demo chips (light pastel bg + dark text) → dark bg + light text. */
html.a11y-dark-contrast .ic-chip-warn   { background:#3a2e12; color:#f0cf7a; border-color:#5b4a2a; }
html.a11y-dark-contrast .ic-chip-danger { background:#3a1c18; color:#f2a49a; border-color:#5b3a33; }
html.a11y-dark-contrast .ic-chip-hold   { background:#242a30; color:#aeb8c4; border-color:#3b434d; }
html.a11y-dark-contrast .ic-sep { color: var(--ink-400); }
/* Network-stats pill (#fff) → dark; its gold/ink text is already theme-light. */
html.a11y-dark-contrast .net-stats { background: var(--surface-2); }
/* Third-party Leaflet attribution chrome → legible on the dark map. */
html.a11y-dark-contrast .leaflet-control-attribution { background: #14100b; color: var(--ink-500); }
html.a11y-dark-contrast .leaflet-control-attribution a { color: var(--gold-700); }
html.a11y-dark-contrast .lang-toggle, html.a11y-dark-contrast .a11y-btn { background:var(--surface-2); border-color:var(--line); color:var(--gold-700); }

/* ---- 9. Reading guide line -------------------------------------------- */
.a11y-reading-line { position: fixed; inset-inline: 0; block-size: 46px; pointer-events: none;
  z-index: var(--z-modal); display: none; transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(203,163,68,.10) 42%, rgba(203,163,68,.10) 58%, transparent);
  border-block: 2px solid rgba(138,106,30,.55); mix-blend-mode: multiply; }
html.a11y-reading-guide .a11y-reading-line { display: block; }
html.a11y-dark-contrast .a11y-reading-line { mix-blend-mode: screen; border-color: rgba(232,200,119,.6);
  background: linear-gradient(180deg, transparent, rgba(232,200,119,.14) 45%, rgba(232,200,119,.14) 55%, transparent); }
@media print { .a11y-reading-line { display: none !important; } }

/* ==========================================================================
   Header entry-point button — إمكانية الوصول
   ========================================================================== */
/* Minimal, integrated header utility button — matches .lang-toggle / .nav-contact
   (plain text + icon, no heavy pill) so it doesn't read as a bolted-on element. */
.a11y-btn { position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border-radius: var(--r-pill); border: none; background: none;
  font-weight: 600; font-size: .9rem; color: var(--gold-700);
  cursor: pointer; font-family: inherit; transition: color .2s var(--ease), background .2s var(--ease); }
.a11y-btn:hover { background: var(--brand-50); color: var(--gold-800); }
.a11y-btn[aria-expanded="true"] { background: var(--gold-50); }
.a11y-btn svg { inline-size: 18px; block-size: 18px; flex: 0 0 auto; }
.a11y-btn .a11y-dot { position: absolute; inset-block-start: 3px; inset-inline-start: 20px;
  inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--gold-600);
  box-shadow: 0 0 0 2px var(--surface); display: none; }
.a11y-btn.is-active .a11y-dot { display: block; }
/* compact header variant: icon only (matches .lang-toggle collapse) */
.nav-actions .a11y-btn.compact span { display: none; }

/* ==========================================================================
   Settings panel
   ========================================================================== */
.a11y-scrim { position: fixed; inset: 0; background: rgba(26,23,18,.28); backdrop-filter: blur(1px);
  z-index: var(--z-modal); opacity: 0; transition: opacity .2s var(--ease); }
.a11y-scrim.show { opacity: 1; }
.a11y-panel { position: fixed; inset-block-start: 84px; inset-inline-end: clamp(12px, 3vw, 40px);
  inline-size: min(374px, calc(100vw - 24px)); max-block-size: min(78vh, 720px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); z-index: var(--z-modal); padding: 0;
  transform-origin: top var(--a11y-origin, right);
  animation: a11yPop .22s var(--ease); }
@keyframes a11yPop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
html.a11y-reduced-motion .a11y-panel, html.a11y-reduced-motion .a11y-scrim { animation: none; transition: none; }

.a11y-panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px;
  border-block-end: 1px solid var(--line); position: sticky; inset-block-start: 0; background: var(--surface); z-index: 1; }
.a11y-panel-head-t { display: flex; gap: 11px; align-items: flex-start; flex: 1; min-inline-size: 0; }
.a11y-panel-ico { inline-size: 40px; block-size: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); }
.a11y-panel-ico svg { inline-size: 23px; block-size: 23px; }
.a11y-panel-title { font-size: 1.02rem; font-weight: 700; color: var(--ink-strong); margin: 1px 0 3px; line-height: 1.3; }
.a11y-panel-sub { font-size: .8rem; color: var(--ink-500); line-height: 1.5; }
.a11y-close { inline-size: 34px; block-size: 34px; flex: 0 0 auto; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-500); cursor: pointer; display: grid; place-items: center; }
.a11y-close:hover { background: var(--surface-2); color: var(--ink-strong); }
.a11y-close svg { inline-size: 16px; block-size: 16px; }

.a11y-panel-body { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.a11y-group-h { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-400); margin-block-end: 9px; }
html[lang="ar"] .a11y-group-h { letter-spacing: 0; text-transform: none; font-size: .82rem; }

/* Font-size segmented control */
.a11y-fontctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.a11y-fbtn { min-block-size: 46px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-strong); cursor: pointer; font-family: inherit; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: border-color .18s var(--ease), background .18s var(--ease); }
.a11y-fbtn:hover { border-color: var(--gold-400); background: var(--gold-50); }
.a11y-fbtn .a11y-fa { line-height: 1; } .a11y-fbtn[data-a11y-font="down"] .a11y-fa { font-size: .95rem; }
.a11y-fbtn[data-a11y-font="reset"] .a11y-fa { font-size: 1.15rem; } .a11y-fbtn[data-a11y-font="up"] .a11y-fa { font-size: 1.4rem; }
.a11y-fbtn .a11y-fl { font-size: .68rem; font-weight: 600; color: var(--ink-500); }
.a11y-flevel { display: flex; gap: 5px; justify-content: center; margin-block-start: 10px; }
.a11y-flevel i { inline-size: 26px; block-size: 5px; border-radius: 3px; background: var(--line); }
.a11y-flevel i.on { background: var(--gold-500); }

/* Toggle rows */
.a11y-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); }
.a11y-row:hover { border-color: var(--gold-200); }
.a11y-row-ico { inline-size: 34px; block-size: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-700); }
.a11y-row-ico svg { inline-size: 18px; block-size: 18px; }
.a11y-row-t { flex: 1; min-inline-size: 0; } .a11y-row-t b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink-strong); }
.a11y-row-t small { display: block; font-size: .74rem; color: var(--ink-500); margin-block-start: 2px; line-height: 1.4; }
.a11y-switch { --w: 46px; --h: 27px; inline-size: var(--w); block-size: var(--h); flex: 0 0 auto; position: relative;
  border-radius: 999px; border: none; background: var(--ink-300); cursor: pointer; padding: 0; transition: background .2s var(--ease); }
.a11y-switch::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
  inline-size: 21px; block-size: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: inset-inline-start .2s var(--ease); }
.a11y-switch[aria-checked="true"] { background: var(--gold-600); }
.a11y-switch[aria-checked="true"]::after { inset-inline-start: calc(var(--w) - 24px); }

/* Reset all */
.a11y-resetall { margin-block-start: 4px; min-block-size: 46px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-strong); cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: border-color .18s var(--ease), background .18s var(--ease); }
.a11y-resetall:hover { border-color: var(--err); color: var(--err); background: var(--err-bg); }
.a11y-resetall svg { inline-size: 17px; block-size: 17px; }

/* Mobile: full-width bottom sheet */
@media (max-width: 640px) {
  .a11y-panel { inset-block: auto 0; inset-inline: 0; inline-size: 100%; max-block-size: 88vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0; border-inline: none; border-block-end: none;
    animation: a11ySheet .26s var(--ease); }
  @keyframes a11ySheet { from { transform: translateY(100%); } to { transform: none; } }
  .a11y-panel-body { padding-block-end: max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 1120px) { .nav-actions .a11y-btn span[data-ar], .nav-actions .a11y-btn span[data-en] { display: none; } .nav-actions .a11y-btn { padding: 9px; } }

/* Dark-contrast: panel text uses --char-900 (dark charcoal). Re-map it to the
   light ink token *within the panel only* so titles/buttons stay legible on the
   dark panel, without affecting --char-900's dark-surface role elsewhere. */
html.a11y-dark-contrast .a11y-panel { --char-900: var(--ink-900); }

/* Dark-contrast: the EJE header wordmark has dark ink baked into the art, so it
   vanishes on the dark header. Use the same treatment the footer already uses
   for logo-on-dark: flatten to a light silhouette. (The gold diamond
   .brand-icon and the official MoJ logo are left untouched.) */
html.a11y-dark-contrast .site-header .brand-logotype,
html.a11y-dark-contrast .mobile-menu .brand-logotype {
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* ==========================================================================
   CANCELED REQUEST COMPONENT (request-detail.html) — ملغي
   Neutral, official, final. No aggressive red; soft beige / muted brown.
   ========================================================================== */
/* action card in the cancelled state → calm neutral accent (not red, not gold) */
.rd-action-card.is-cancelled { background: var(--surface-2, #faf7ef); border-color: var(--line, #ece6d8); }
.rd-action-card.is-cancelled::before { background: linear-gradient(#c9c1ad, #8f8675); }
.rd-action-card.is-cancelled .rd-ac-ico { background: #efece4; color: #645d50; }

.rd-cancel { margin-block-end: clamp(20px, 3vw, 30px); }
.rd-cancel-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(14px, 2vw, 20px); align-items: stretch; }
@media (max-width: 820px) { .rd-cancel-grid { grid-template-columns: 1fr; } }

/* summary card — reuses .rd-card look with a soft neutral edge */
.rd-cancel-summary { position: relative; overflow: hidden; }
.rd-cancel-summary::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 4px; background: linear-gradient(#d8d0bd, #b9b09a); }
.rd-cancel-summary .rd-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.rd-cancel-summary .rdc-field-wide { grid-column: 1 / -1; }
.rd-cancel-summary .rdc-field dd { line-height: 1.55; }
@media (max-width: 480px) { .rd-cancel-summary .rd-dl { grid-template-columns: 1fr; } }

/* guidance panel */
.rd-cancel-guide { background: var(--surface-2, #faf7ef); border: 1px solid var(--line, #ece6d8); border-radius: var(--r-lg, 18px);
  padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; }
.rd-cancel-guide h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 1rem; font-weight: 800; color: var(--ink-strong); }
.rd-cancel-guide h3 svg { inline-size: 19px; block-size: 19px; color: var(--gold-700); flex: 0 0 auto; }
.rd-cancel-guide > p { margin: 0; color: var(--ink-700); font-size: .92rem; line-height: 1.75; }
.rd-cancel-new { display: flex; align-items: flex-start; gap: 8px; margin-block-start: 12px !important; padding: 11px 13px;
  background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: var(--r-md, 14px); color: var(--gold-800, #6b521a); font-size: .88rem; line-height: 1.6; }
.rd-cancel-new svg { inline-size: 17px; block-size: 17px; color: var(--gold-700); flex: 0 0 auto; margin-block-start: 2px; }
.rd-cancel-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: auto; padding-block-start: 16px; }

/* payment / refund block */
.rd-refund-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
@media (max-width: 720px) { .rd-refund-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .rd-refund-grid { grid-template-columns: 1fr; } }
.rd-refund-grid .rdc-field dt { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-block-end: 4px; }
.rd-refund-grid .rdc-field dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink-strong); }
.rd-refund-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; padding-block-start: 20px; border-block-start: 1px solid var(--line-2, #f4efe4); }

/* refund status badge variants (neutral / calm) */
.rq-badge.st-refund-none { background: #f1efe9; color: #645d50; } .rq-badge.st-refund-none .sc-dot { background: #9a927f; }
.rq-badge.st-refund-processing { background: #f7efd8; color: #7c5e1e; } .rq-badge.st-refund-processing .sc-dot { background: #b58f31; }
.rq-badge.st-refund-done { background: var(--ok-bg, #e7f4ee); color: #176c47; } .rq-badge.st-refund-done .sc-dot { background: var(--ok); }
.rq-badge.st-refund-na { background: #f1efe9; color: #645d50; } .rq-badge.st-refund-na .sc-dot { background: #9a927f; }

/* timeline: soft-highlight the cancellation event */
.tl-item.tl-cancel .tl-dot { background: #efece4; border-color: #ddd6c6; color: #645d50; }
.tl-item.tl-cancel .tl-card { background: var(--surface-2, #faf7ef); border-color: #e2dccd; }

/* inline status switcher on the request-detail hero (preview/demo control) */
.rd-statuswrap { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rd-status-switch { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 6px 5px 13px; backdrop-filter: blur(4px); }
.rd-status-switch-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: rgba(255,255,255,.7); white-space: nowrap; }
.rd-status-switch-lbl svg { inline-size: 15px; block-size: 15px; opacity: .7; }
.rd-status-switch select { appearance: none; -webkit-appearance: none; border: 0; background: var(--gold-400);
  color: var(--on-gold); font: inherit; font-size: .8rem; font-weight: 800; border-radius: 999px;
  padding-block: 7px; padding-inline: 30px 14px; cursor: pointer; max-inline-size: 15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1305' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 11px center; background-size: 13px; }
html[dir="rtl"] .rd-status-switch select { background-position: left 11px center; }
.rd-status-switch select:hover { background-color: var(--gold-300, #e2c877); }
.rd-status-switch select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .rd-statuswrap { align-items: stretch; } .rd-status-switch { justify-content: space-between; } }

/* related requests (canceled component) */
.rd-related-list { display: flex; flex-direction: column; gap: 10px; }
.rd-related-row { --card-shadow: none; display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 14px;
  --card-pad: 14px 16px; --card-radius: var(--r-md, 14px);
  text-decoration: none; color: inherit; transition: border-color .18s, background-color .18s, transform .18s; }
.rd-related-row:hover { border-color: var(--gold-300, #e2c877); background: var(--gold-50); transform: translateX(-3px); }
html[dir="ltr"] .rd-related-row:hover { transform: translateX(3px); }
.rd-rr-num { font-weight: 800; color: var(--ink-strong); font-size: .95rem; }
.rd-rr-type { font-weight: 700; color: var(--ink-strong); font-size: .9rem; min-inline-size: 0; }
.rd-rr-date { color: var(--ink-500); font-size: .82rem; white-space: nowrap; }
.rd-rr-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-700); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.rd-rr-cta svg { inline-size: 15px; block-size: 15px; }
html[dir="rtl"] .rd-rr-cta svg { transform: scaleX(-1); }
.rd-related-all { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 16px; color: var(--gold-700); font-weight: 700; font-size: .9rem; text-decoration: none; }
.rd-related-all svg { inline-size: 16px; block-size: 16px; }
html[dir="rtl"] .rd-related-all svg { transform: scaleX(-1); }
.rd-related-all:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .rd-related-row { grid-template-columns: auto 1fr; row-gap: 8px; }
  .rd-related-row .rq-badge { grid-column: 1; } .rd-rr-date { grid-column: 2; text-align: end; } .rd-rr-cta { grid-column: 1 / -1; }
}

.doc-by { display: block; color: var(--ink-400); font-size: .78rem; margin-block-start: 2px; }

.rd-cancel-msg { margin: 0 0 4px; padding: 11px 13px; background: #efece4; border-radius: var(--r-md, 14px); color: #5a5347; font-size: .9rem; font-weight: 700; line-height: 1.6; }
.rd-cancel-msg:empty { display: none; }

/* ==========================================================================
   STATUS-BASED SECTIONS — reason card, paid-payment meta, read-only thread note
   ========================================================================== */
/* reason (يتعذر تنفيذ / موقوف مؤقت) — calm, explanatory, not an error */
.rd-reason { border-color: #e8dcc4; background: linear-gradient(180deg, #fdfaf3, var(--surface, #fff)); }
.rd-reason-body { display: flex; gap: 16px; align-items: flex-start; }
.rd-reason-ico { flex: 0 0 auto; inline-size: 46px; block-size: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-100), var(--gold-200)); color: var(--gold-800, #6b521a); }
.rd-reason-ico svg { inline-size: 23px; block-size: 23px; }
.rd-reason-text { flex: 1 1 auto; min-inline-size: 0; }
.rd-reason-text h2 { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink-strong); }
.rd-reason-desc { margin: 0; color: var(--ink-700); font-size: .95rem; line-height: 1.8; max-inline-size: 75ch; }
.rd-reason-date { margin: 12px 0 0; font-size: .82rem; color: var(--ink-500); }
.rd-reason-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 18px; padding-block-start: 18px; border-block-start: 1px solid var(--line-2, #f4efe4); }

/* paid payment summary meta on the dark invoice card */
.rd-pay-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding-block: 14px; border-block-end: 1px solid rgba(255,255,255,.12); }
.rd-pay-meta > div { display: flex; flex-direction: column; gap: 3px; }
.rd-pay-meta span { font-size: .78rem; color: rgba(255,255,255,.6); }
.rd-pay-meta b { font-size: .92rem; color: #fff; font-weight: 700; }
@media (max-width: 480px) { .rd-pay-meta { grid-template-columns: 1fr; } }

/* read-only thread note */
.rd-thread-readonly { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 11px 14px;
  background: var(--surface-2, #faf7ef); border: 1px solid var(--line, #ece6d8); border-radius: var(--r-md, 14px);
  color: var(--ink-600, #5a5347); font-size: .86rem; font-weight: 600; }
.rd-thread-readonly svg { inline-size: 17px; block-size: 17px; color: var(--gold-600); flex: 0 0 auto; }

/* ensure the hidden attribute always hides (e.g. .rd-pay sets display:flex which
   otherwise overrides the UA [hidden] rule, leaving toggled sections visible) */
[hidden] { display: none !important; }

/* when payment is hidden, the remaining service card spans the full row */
.rd-two-solo { grid-template-columns: 1fr; }

/* service card is now just the name — keep the payment/service row top-aligned */
.rd-two { align-items: start; }
.rd-two-solo .rd-svc-name { margin-block-end: 0; }

/* ==========================================================================
   HAPPINESS METER (مؤشر السعادة) — compact premium feedback modal
   ========================================================================== */
.hm-overlay { position: fixed; inset: 0; z-index: var(--z-popover); display: grid; place-items: center; padding: 20px;
  background: rgba(26,23,18,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s var(--ease, ease); }
.hm-overlay.is-open { opacity: 1; }
.hm-overlay[hidden] { display: none; }

.hm-modal { position: relative; inline-size: min(480px, 100%); max-block-size: min(90vh, 720px); display: flex; flex-direction: column;
  background: var(--surface, #fff); border: 1px solid var(--line, #ece6d8); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(26,23,18,.5); transform: translateY(14px) scale(.985); transition: transform .3s var(--ease, ease); }
.hm-overlay.is-open .hm-modal { transform: none; transition: transform .34s cubic-bezier(.22, 1, .36, 1); }
/* inner panel — flex column so the body scrolls and the footer stays pinned */
.hm-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-block-size: 0; max-block-size: 100%; }

/* header */
.hm-head { position: relative; padding: 26px 26px 18px; text-align: center; background: linear-gradient(180deg, var(--gold-50), var(--surface)); border-block-end: 1px solid var(--line-2, #f4efe4); }
.hm-logo { display: block; inline-size: 46px; block-size: 46px; margin: 0 auto 12px; }
.hm-head h2 { margin: 0; font-size: 1.4rem; color: var(--ink-strong); letter-spacing: -.021em; }
.hm-sub { margin: 7px auto 0; max-inline-size: 34ch; font-size: .9rem; color: var(--ink-500); line-height: 1.65; }
.hm-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 34px; block-size: 34px; border-radius: 50%;
  border: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); color: var(--ink-500); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.hm-close:hover { background: var(--surface-2, #faf7ef); color: var(--ink-strong); }
.hm-close svg { inline-size: 16px; block-size: 16px; }

/* body (scrollable) */
.hm-body { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; padding: 20px 26px 6px; display: flex; flex-direction: column; gap: 18px;
  /* scroll-edge shadow — a soft fade appears only where content scrolls under the pinned chrome (Apple §12) */
  background:
    linear-gradient(var(--surface, #fff) 30%, rgba(255,255,255,0)) 0 0 / 100% 24px,
    linear-gradient(rgba(255,255,255,0), var(--surface, #fff) 72%) 0 100% / 100% 24px,
    radial-gradient(120% 60% at 50% 0, rgba(26,23,18,.09), rgba(0,0,0,0)) 0 0 / 100% 13px,
    radial-gradient(120% 60% at 50% 100%, rgba(26,23,18,.09), rgba(0,0,0,0)) 0 100% / 100% 13px;
  background-repeat: no-repeat; background-attachment: local, local, scroll, scroll; }
.hm-body > * { flex-shrink: 0; } /* keep natural height so the body overflows & scrolls instead of squashing questions */
.hm-q { display: flex; flex-direction: column; gap: 11px; }
.hm-q-h b { display: block; font-size: 1rem; color: var(--ink-strong); font-weight: 800; }
.hm-q-h > span { display: block; margin-block-start: 3px; font-size: .82rem; color: var(--ink-500); line-height: 1.5; }
.hm-req { color: var(--gold-700); font-weight: 700; }

/* rating options — compact 3-col */
.hm-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.hm-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 8px; cursor: pointer;
  background: var(--surface, #fff); border: 1.5px solid var(--line, #ece6d8); border-radius: 15px; color: var(--ink-700); font: inherit;
  transition: transform .12s var(--ease, ease), border-color .18s, background-color .18s; }
.hm-opt:hover { transform: translateY(-1px); border-color: var(--gold-200); }
.hm-opt:active { transform: scale(.97); transition-duration: .06s; }
.hm-opt:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.hm-opt svg { inline-size: 30px; block-size: 30px; color: var(--ink-400); transition: color .18s; }
.hm-opt span { font-size: .84rem; font-weight: 700; }
.hm-opt .hm-check { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; inline-size: 17px; block-size: 17px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.6); transition: .18s; }
.hm-opt .hm-check svg { inline-size: 11px; block-size: 11px; color: #fff; }
.hm-opt.is-on .hm-check { opacity: 1; transform: none; }
/* selected — soft accents per sentiment (not color-only: icon + label + check + border) */
.hm-opt[data-val="satisfied"].is-on   { border-color: var(--ok); background: #e7f4ee; color: #176c47; }
.hm-opt[data-val="satisfied"].is-on svg, .hm-opt[data-val="satisfied"] .hm-check { color: var(--ok); }
.hm-opt[data-val="satisfied"] .hm-check { background: var(--ok); }
.hm-opt[data-val="neutral"].is-on     { border-color: var(--gold-600, #b58f31); background: #f7efd8; color: #7c5e1e; }
.hm-opt[data-val="neutral"].is-on svg { color: var(--gold-700, #8a6a1e); }
.hm-opt[data-val="neutral"] .hm-check { background: var(--gold-600, #b58f31); }
.hm-opt[data-val="dissatisfied"].is-on { border-color: #b4392f; background: #f6ece9; color: #8f463e; }
.hm-opt[data-val="dissatisfied"].is-on svg { color: #b4392f; }
.hm-opt[data-val="dissatisfied"] .hm-check { background: #b4392f; }

/* reveal block (detail questions appear after the overall rating) */
.hm-detail { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .4s var(--ease, ease), opacity .3s; }
.hm-detail.is-shown { grid-template-rows: 1fr; opacity: 1; }
.hm-detail-inner { overflow: hidden; min-block-size: 0; display: flex; flex-direction: column; gap: 18px; }
.hm-sep { block-size: 1px; background: var(--line-2, #f4efe4); margin: 2px 0; }

/* contextual + general comment */
.hm-ctx { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease, ease), opacity .25s; }
.hm-ctx.is-shown { grid-template-rows: 1fr; opacity: 1; }
.hm-ctx > .hm-ta-wrap { overflow: hidden; min-block-size: 0; }
.hm-ta-wrap { position: relative; }
.hm-ta { inline-size: 100%; min-block-size: 84px; resize: vertical; padding: 12px 14px; font: inherit; font-size: .9rem;
  color: var(--ink-strong); background: var(--surface-2, #faf7ef); border: 1px solid var(--line, #ece6d8); border-radius: 13px; }
.hm-ctx .hm-ta { min-block-size: 62px; background: #fdf6ee; border-color: var(--gold-200); }
.hm-ta:focus { outline: none; border-color: var(--gold-500); background: var(--surface, #fff); }
.hm-count { position: absolute; inset-block-end: 9px; inset-inline-start: 12px; font-size: .72rem; color: var(--ink-400); direction: ltr; }
.hm-opt-lbl { font-size: .76rem; color: var(--ink-400); font-weight: 600; margin-inline-start: 6px; }

/* footer (sticky) */
.hm-foot { flex: 0 0 auto; padding: 16px 26px 20px; border-block-start: 1px solid var(--line-2, #f4efe4); background: var(--surface, #fff); }
.hm-foot .btn { inline-size: 100%; }
.hm-helper { margin: 10px 0 0; font-size: .8rem; color: var(--gold-700); text-align: center; }
.hm-helper[hidden] { display: none; }
.hm-note { margin: 8px 0 0; font-size: .76rem; color: var(--ink-400); text-align: center; }

/* success / error states (replace the modal content) */
.hm-result { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hm-result-ico { inline-size: 74px; block-size: 74px; border-radius: 50%; display: grid; place-items: center; margin-block-end: 18px; }
.hm-result-ico svg { inline-size: 38px; block-size: 38px; }
.hm-result.is-success .hm-result-ico { background: var(--ok-bg, #e7f4ee); color: var(--ok); }
.hm-result.is-error .hm-result-ico { background: #f6ece9; color: #b4392f; }
.hm-result h3 { margin: 0; font-size: 1.3rem; color: var(--ink-strong); letter-spacing: -.018em; }
.hm-result p { margin: 8px auto 22px; max-inline-size: 36ch; font-size: .92rem; color: var(--ink-500); line-height: 1.7; }
.hm-result .btn { min-inline-size: 200px; }

/* selection view + form share the flex-column layout so body scrolls, foot pins */
.hm-select { display: flex; flex-direction: column; flex: 1 1 auto; min-block-size: 0; max-block-size: 100%; }

/* header back button (form reached from the selection step) */
.hm-back { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; inline-size: 34px; block-size: 34px; border-radius: 50%;
  border: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); color: var(--ink-500); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.hm-back:hover { background: var(--surface-2, #faf7ef); color: var(--ink-strong); }
.hm-back svg { inline-size: 17px; block-size: 17px; }
.hm-back[hidden] { display: none !important; }

/* request selection list */
.hm-req-list { display: flex; flex-direction: column; gap: 12px; }
.hm-req-card { display: flex; flex-direction: column; gap: 6px; inline-size: 100%; text-align: start; cursor: pointer;
  padding: 16px 18px; border: 1px solid var(--line, #ece6d8); border-radius: var(--r-md, 14px); background: var(--surface, #fff); transition: border-color .18s, box-shadow .18s, transform .12s; }
.hm-req-card:hover { border-color: var(--gold-400); box-shadow: 0 12px 26px -18px rgba(26,23,18,.4); }
.hm-req-card:active { transform: scale(.995); }
.hm-req-card:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.hm-req-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-req-no { font-size: .96rem; color: var(--ink-strong); }
.hm-req-no b { font-weight: 800; }
.hm-req-badge { flex-shrink: 0; }
.rq-badge.hm-req-badge, .rq-badge.hm-ctx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-size: .74rem; border-radius: 99px; }
.hm-req-meta { font-size: .84rem; color: var(--ink-600, #5c5347); line-height: 1.5; }
.hm-req-date { font-size: .8rem; color: var(--ink-400); }
.hm-req-cta { display: inline-flex; align-items: center; gap: 5px; margin-block-start: 4px; font-size: .84rem; font-weight: 700; color: var(--gold-700); }
.hm-req-cta svg { inline-size: 16px; block-size: 16px; }
html[dir="rtl"] .hm-req-cta svg, html[dir="rtl"] .hm-back svg { transform: scaleX(-1); }
.hm-genico { display: inline-grid; place-items: center; inline-size: 20px; block-size: 20px; margin-inline-end: 7px; color: var(--gold-700); }
.hm-genico svg { inline-size: 20px; block-size: 20px; }

/* request context card (request mode) + general mode badge */
.hm-ctx-card { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: var(--r-md, 14px);
  background: linear-gradient(180deg, var(--gold-50), var(--surface-2, #faf7ef)); border: 1px solid var(--gold-200, #ecdcae); }
.hm-ctx-card .hm-ctx-badge { align-self: flex-start; margin-block-end: 3px; }
.hm-ctx-card b { font-size: .98rem; color: var(--ink-strong); font-weight: 800; }
.hm-ctx-card > span:last-child { font-size: .82rem; color: var(--ink-600, #5c5347); line-height: 1.55; }
.hm-mode-badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 7px 14px; border-radius: 99px;
  background: var(--gold-50); border: 1px solid var(--gold-200, #ecdcae); color: var(--gold-700); font-size: .82rem; font-weight: 700; }
.hm-mode-badge svg { inline-size: 18px; block-size: 18px; }

/* success result actions */
.hm-result-acts { display: flex; flex-direction: column; gap: 10px; inline-size: 100%; max-inline-size: 280px; }
.hm-result-acts .btn { inline-size: 100%; }

/* ---- floating icon (closed requests awaiting feedback) ---------------- */
.hm-fab-wrap { position: fixed; inset-block-end: 96px; inset-inline-start: 24px; z-index: 195;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease), visibility .3s; }
.hm-fab-wrap.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1), visibility .3s; }
.hm-fab { position: relative; inline-size: 56px; block-size: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 16px 34px -12px rgba(138,106,30,.6), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s var(--ease, ease), box-shadow .2s; }
.hm-fab:hover { transform: translateY(-3px) scale(1.04); }
.hm-fab:focus-visible { outline: 3px solid var(--gold-200, #ecdcae); outline-offset: 2px; }
.hm-fab svg { inline-size: 27px; block-size: 27px; }
.hm-fab-badge { position: absolute; inset-block-start: -5px; inset-inline-start: -5px; min-inline-size: 22px; block-size: 22px; padding: 0 5px;
  border-radius: 99px; background: #b4392f; color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface, #fff); }
.hm-fab-badge[hidden] { display: none !important; }
.hm-fab-tip { position: absolute; inset-inline-end: calc(100% + 12px); inset-block-start: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; padding: 8px 13px; border-radius: 10px; background: var(--char-900); color: #fff; font-size: .82rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.hm-fab:hover .hm-fab-tip, .hm-fab:focus-visible .hm-fab-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.hm-fab-x { position: absolute; inset-block-start: -7px; inset-inline-end: -7px; inline-size: 22px; block-size: 22px; border-radius: 50%;
  border: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); color: var(--ink-500); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s, background .15s; }
.hm-fab-wrap:hover .hm-fab-x, .hm-fab-wrap:focus-within .hm-fab-x { opacity: 1; transform: scale(1); }
.hm-fab-x:hover { background: var(--surface-2, #faf7ef); color: var(--ink-strong); }
.hm-fab-x svg { inline-size: 12px; block-size: 12px; }

/* floating selection popover (opens above the icon) */
.hm-pop { position: absolute; inset-block-end: calc(100% + 14px); inset-inline-start: 0; inline-size: 322px; max-inline-size: calc(100vw - 32px);
  display: flex; flex-direction: column; max-block-size: min(68vh, 500px); overflow: hidden;
  background: var(--surface, #fff); border: 1px solid var(--line, #ece6d8); border-radius: 20px; box-shadow: 0 28px 60px -22px rgba(26,23,18,.55);
  opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom; pointer-events: none;
  transition: opacity .22s var(--ease, ease), transform .22s var(--ease, ease); }
.hm-pop.is-open { opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.hm-pop[hidden] { display: none !important; }
/* enlarged: grow to fit all requests (up to the space above the icon) without inner scroll */
.hm-pop.is-expanded { inline-size: 384px; max-block-size: calc(100dvh - 180px); }
.hm-pop-head { position: relative; padding: 16px 18px 13px; background: linear-gradient(180deg, var(--gold-50), var(--surface)); border-block-end: 1px solid var(--line-2, #f4efe4); }
.hm-pop-head b { display: block; font-size: 1rem; color: var(--ink-strong); font-weight: 800; padding-inline-end: 62px; }
.hm-pop-expand { position: absolute; inset-block-start: 12px; inset-inline-end: 46px; inline-size: 28px; block-size: 28px; border-radius: 50%;
  border: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); color: var(--ink-500); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.hm-pop-expand:hover { background: var(--surface-2, #faf7ef); color: var(--ink-strong); }
.hm-pop-expand svg { inline-size: 15px; block-size: 15px; }
.hm-pop-expand .ic-col { display: none; }
.hm-pop.is-expanded .hm-pop-expand .ic-exp { display: none; }
.hm-pop.is-expanded .hm-pop-expand .ic-col { display: block; }
.hm-pop-head p { margin: 5px 0 0; font-size: .8rem; color: var(--ink-500); line-height: 1.5; }
.hm-pop-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; inline-size: 28px; block-size: 28px; border-radius: 50%;
  border: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); color: var(--ink-500); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.hm-pop-close:hover { background: var(--surface-2, #faf7ef); color: var(--ink-strong); }
.hm-pop-close svg { inline-size: 14px; block-size: 14px; }
.hm-pop-body { padding: 13px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.hm-pop-foot { padding: 11px 13px 14px; border-block-start: 1px solid var(--line-2, #f4efe4); }
.hm-pop-foot .btn { inline-size: 100%; }

@media print { .hm-fab-wrap { display: none !important; } }

/* grab handle — only meaningful on the draggable mobile sheet */
.hm-grip { display: none; }
@media (max-width: 520px) {
  .hm-overlay { padding: 0; place-items: end stretch; }
  .hm-modal { inline-size: 100%; max-block-size: 92vh; border-radius: 22px 22px 0 0; touch-action: pan-y; transform: translateY(100%); }
  .hm-opt svg { inline-size: 26px; block-size: 26px; }
  .hm-fab-wrap { inset-block-end: 88px; inset-inline-start: 16px; }
  .hm-grip { display: block; position: absolute; inset-block-start: 8px; inset-inline: 0; margin-inline: auto;
    inline-size: 40px; block-size: 5px; border-radius: 99px; background: var(--line, #ece6d8); z-index: 4; }
  .hm-head { padding-block-start: 24px; }
  .hm-head, .hm-grip { cursor: grab; touch-action: none; }
}

/* Reduced motion — gentle cross-fades, no slide/scale/spring (Apple §14) */
@media (prefers-reduced-motion: reduce) {
  .hm-overlay, .hm-modal, .hm-pop, .hm-fab-wrap { transition: opacity .18s ease !important; }
  .hm-modal, .hm-pop, .hm-fab-wrap { transform: none !important; }
  .hm-detail, .hm-ctx { transition: opacity .18s ease !important; }
  .hm-opt, .hm-req-card, .hm-fab, .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease !important; }
  .hm-opt:hover, .hm-fab:hover, .hm-req-card:hover { transform: none !important; }
}
/* Reduced transparency — solidify the scrim / surfaces, drop the blur (Apple §14) */
@media (prefers-reduced-transparency: reduce) {
  .hm-overlay { background: rgba(26,23,18,.72); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Touch ergonomics — expand small round controls to a ≥44px hit area (Apple §10/§16) */
.hm-close, .hm-back, .hm-pop-close, .hm-pop-expand, .hm-fab-x { position: absolute; }
.hm-close::before, .hm-back::before, .hm-pop-close::before, .hm-pop-expand::before, .hm-fab-x::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; }
/* the dismiss × relies on hover to appear — on touch (no hover) keep it visible & tappable */
@media (hover: none) {
  .hm-fab-x { opacity: 1; transform: none; inline-size: 30px; block-size: 30px; inset-block-start: -9px; inset-inline-end: -9px; }
  .hm-fab-x svg { inline-size: 14px; block-size: 14px; }
}

/* ==========================================================================
   CANONICAL COMPONENT PRIMITIVES (P2) — namespaced .eje-*, token-driven.
   Additive: existing markup doesn't use these; new screens compose from them.
   Reference: assets/css/tokens.css + the published EJE Component Reference.
   ========================================================================== */
/* Base card — the ONE card DNA. Variants add, never override, colors/border. */
.eje-card { background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: var(--card-pad); }
.eje-card--flat { box-shadow: none; }
.eje-card--tinted { background: var(--surface-2); }
.eje-card--interactive { cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.eje-card--interactive:hover { border-color: var(--gold-400); box-shadow: var(--sh-2); }
.eje-card--interactive:active { transform: scale(.995); }

/* Section header — eyebrow · title · subtitle */
.eje-section-header { display: flex; flex-direction: column; gap: var(--sp-2); margin-block-end: var(--sp-6); }
.eje-section-header .eyebrow { font-family: var(--font-num); font-size: var(--fs-sm); letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700); font-weight: var(--fw-semibold); }
.eje-section-header h2 { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-tight);
  letter-spacing: -.02em; color: var(--ink-strong); }
.eje-section-header p { margin: 0; font-size: var(--fs-base); color: var(--ink-500);
  max-inline-size: 62ch; line-height: var(--lh-normal); }

/* Empty state — icon · title · hint · optional action */
.eje-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-3);
  padding: var(--sp-12) var(--sp-6); color: var(--ink-500); }
.eje-empty-ico { inline-size: 56px; block-size: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-50); color: var(--gold-700); margin-block-end: var(--sp-1); }
.eje-empty h3 { margin: 0; font-size: var(--fs-lg); color: var(--ink-strong); }
.eje-empty p { margin: 0; font-size: var(--fs-base); max-inline-size: 42ch; }

/* Skeleton — loading shimmer (reduced-motion aware) */
.eje-skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.eje-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: eje-shimmer 1.3s infinite; }
.eje-skeleton--text { block-size: .8em; margin-block: .25em; }
.eje-skeleton--title { block-size: 1.4em; inline-size: 60%; }
@keyframes eje-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .eje-skeleton::after { animation: none; } }
