/* Noto Kufi Arabic 900 — عناوين باب التسوق، مستضافٌ ذاتياً (OFL) */
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/NotoKufiArabic-900-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/NotoKufiArabic-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ===== FILE: app/static/shop/shop.css ===== */
/* باب التسوق في نعم — «سوق العائلة الذكي»
   عمودٌ واحد للجوال أولاً (375px -> 560px)، ألوانٌ دلالية حيّة، أيقوناتٌ مزدوجة الطبقة،
   وبطاقاتٌ متنوّعة الهوية بدلاً من الجداول المتكررة، مع بقاء «الإيصال» وثيقةَ الثقة الأساسية. */

:root {
  --paper: #FAF8F4;
  --paper-2: #F1F5F3;
  --card: #FFFFFF;
  --line: #E2ECE8;
  --line-2: #CFDDD8;
  --ink: #0A211D;
  --ink-2: #344B45;
  --ink-3: #5C706B;
  --ink-4: #869892;

  /* التركوازي الأساسي لنعم */
  --teal: #0FA98E;
  --teal-ink: #097562;
  --teal-soft: #E2F6F1;
  --teal-line: #B5E6DA;

  /* ألوان الإشارات والتنبيهات والإيصال */
  --spark: #F59E0B;
  --spark-soft: #FEF3C7;
  --spark-ink: #854D0E;
  --warn: #C25000;
  --warn-soft: #FFEDD5;
  --receipt: #FFFEFA;
  --receipt-line: #E5DEC9;
  --photo: #FFFFFF;

  /* الظلال والخطوط والزوايا */
  --shadow: 0 2px 6px rgba(10, 33, 29, 0.04), 0 12px 28px -12px rgba(10, 33, 29, 0.14);
  --shadow-lg: 0 4px 12px rgba(10, 33, 29, 0.06), 0 18px 36px -14px rgba(10, 33, 29, 0.22);
  --font: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --display: 'NaamNum', 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  /* لوحة الألوان الدلالية للأقسام والمتاجر والخدمات */
  --h-teal: #0FA98E;
  --h-coral: #FF6243;
  --h-sun: #F59E0B;
  --h-grape: #7357F6;
  --h-leaf: #1EB863;
  --h-sky: #2584F4;
  --h-rose: #EC4899;
  --h-red: #E5484D;
  --h-cyan: #0891B2;
  --h-wood: #C27832;
  --h-plum: #9B4DE0;
  --h-orange: #F97316;

  --mixk: #111615;
  --ink-k: 66%;
  --soft-k: 14%;

  /* ألوان البطل ورسم العائلة */
  --hero-a: #D7F5EC;
  --hero-b: #FFF5D9;
  --hero-c: #FFE4D9;
  --a-skin: #EAB88F;
  --a-thobe: #FFFFFF;
  --a-thobe-line: #C7D4D0;
  --a-abaya: #292436;
  --a-hijab: #383147;
  --a-dark: #281F1A;
  --a-abaya-line: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1513;
    --paper-2: #0F1F1C;
    --card: #142723;
    --line: #203833;
    --line-2: #2C4A44;
    --ink: #ECF5F2;
    --ink-2: #B8CBC6;
    --ink-3: #8CA29C;
    --ink-4: #657A74;

    --teal: #24C8A9;
    --teal-ink: #7CE8D2;
    --teal-soft: #11362F;
    --teal-line: #1E5C4F;

    --spark: #FBBF24;
    --spark-soft: #3B2E10;
    --spark-ink: #FDE68A;
    --warn: #FB923C;
    --warn-soft: #3D2410;
    --receipt: #182522;
    --receipt-line: #2E423D;
    --photo: #F4F7F6;

    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 32px -12px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.45), 0 20px 42px -12px rgba(0, 0, 0, 0.8);

    --h-teal: #24C8A9;
    --h-coral: #FF856D;
    --h-sun: #FBBF24;
    --h-grape: #9D88FF;
    --h-leaf: #46D483;
    --h-sky: #60A5FA;
    --h-rose: #F472B6;
    --h-red: #F87171;
    --h-cyan: #38BDF8;
    --h-wood: #E5A566;
    --h-plum: #C084FC;
    --h-orange: #FB923C;

    --mixk: #FFFFFF;
    --ink-k: 82%;
    --soft-k: 18%;

    --hero-a: #10332B;
    --hero-b: #282212;
    --hero-c: #2E1A15;
    --a-thobe-line: #8CA19B;
    --a-abaya: #262030;
    --a-hijab: #332B40;
    --a-abaya-line: #6C6082;
    color-scheme: dark;
  }
}

/* ───── الأساسيات وضبط التخطيط العام ───── */
*, *::before, *::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  direction: rtl;
  overflow-x: clip;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--teal-ink);
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
svg .f {
  fill: currentColor;
  fill-opacity: 0.18;
}
svg .s {
  fill: currentColor;
  fill-opacity: 0.22;
  stroke: none;
}
svg .d {
  stroke-width: 2.8;
}

/* ───── محرك الألوان الدلالية (.tint) ───── */
.tint {
  --hue: var(--h-teal);
  --hue-ink: color-mix(in srgb, var(--hue) var(--ink-k), var(--mixk));
  --hue-soft: color-mix(in srgb, var(--hue) var(--soft-k), var(--card));
}
.hue-teal { --hue: var(--h-teal); }
.hue-coral { --hue: var(--h-coral); }
.hue-sun { --hue: var(--h-sun); }
.hue-grape { --hue: var(--h-grape); }
.hue-leaf { --hue: var(--h-leaf); }
.hue-sky { --hue: var(--h-sky); }
.hue-rose { --hue: var(--h-rose); }
.hue-red { --hue: var(--h-red); }
.hue-cyan { --hue: var(--h-cyan); }
.hue-wood { --hue: var(--h-wood); }
.hue-plum { --hue: var(--h-plum); }
.hue-orange { --hue: var(--h-orange); }

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .tint {
    --hue-ink: var(--hue);
    --hue-soft: var(--paper-2);
  }
}

/* ───── الشريط العلوي (Header) ───── */
.top {
  position: sticky;
  top: 0;
  z-index: 15;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex: 1;
}
.mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, var(--teal), var(--h-cyan));
  transform: rotate(45deg);
  border-radius: 3.5px;
  margin-inline-end: 10px;
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.back {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--card);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.back:active {
  transform: scale(0.93);
}
.login {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--teal-line);
  background: var(--teal-soft);
  color: var(--teal-ink);
  border-radius: 12px;
  padding: 5px 14px;
}
.hbag {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: color-mix(in srgb, var(--h-coral) var(--soft-k), var(--card));
  color: color-mix(in srgb, var(--h-coral) var(--ink-k), var(--mixk));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-coral) 25%, transparent);
  transition: transform 0.15s ease;
}
.hbag:active {
  transform: scale(0.92);
}
.hbag svg {
  width: 22px;
  height: 22px;
}
.hbag b {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
  background: var(--h-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

/* ───── المعيّن الضوئي (Rhombus Status) ───── */
.rh {
  width: 12px;
  height: 12px;
  flex: none;
  transform: rotate(45deg);
  border-radius: 3px;
  border: 1.5px solid var(--line-2);
  background: transparent;
  display: inline-block;
}
.rh.lit {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.rh.done {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.rh.breath {
  border-color: var(--teal);
  animation: breath 1.8s ease-in-out infinite;
}
.rh.faded {
  opacity: 0.45;
}
.rh.dash {
  border-style: dashed;
  border-color: var(--ink-4);
}
.rh.warn {
  background: var(--warn-soft);
  border-color: var(--warn);
}
@keyframes breath {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-soft); background: transparent; }
  50% { box-shadow: 0 0 0 6px var(--teal-soft); background: var(--teal-soft); }
}

/* ───── الترويسات والأقسام العامة ───── */
.hd {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hd > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hd h2 {
  font-size: 22px;
}
.hd-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--hue-soft);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 24%, transparent);
}
.hd-ic svg {
  width: 22px;
  height: 22px;
}
.sub {
  color: var(--ink-3);
  font-size: 13px;
}
.fine {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.65;
  margin: 0;
}
.fine.foot {
  text-align: center;
  padding-top: 8px;
}
.fine.foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
}
.fine.foot a svg {
  width: 16px;
  height: 16px;
  color: var(--teal-ink);
}
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-weight: 500;
  padding: 28px 6px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sec > h3, .sec > .sh, .how > .sh {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  justify-content: flex-start;
}
.sh .ic {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--hue-soft);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
}
.sh .ic svg {
  width: 19px;
  height: 19px;
}
.sh .grow {
  flex: 1;
  min-width: 0;
}
.sh small, .sec > h3 small {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}

/* ───── الشارات والكبسولات والأزرار ───── */
.pill {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill svg {
  width: 13px;
  height: 13px;
}
.pill.wait {
  background: var(--spark-soft);
  color: var(--spark-ink);
}
.pill.buy {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.pill.same {
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.45;
  transition: transform 0.12s ease, background 0.15s ease;
}
.chip:active {
  transform: scale(0.96);
}
.chip svg {
  width: 15px;
  height: 15px;
}
.chip.hard {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 500;
}
.chip.soft {
  background: var(--teal-soft);
  border-color: var(--teal-line);
  color: var(--teal-ink);
  font-weight: 500;
}
.chip.inf {
  border-style: dashed;
  border-color: var(--teal);
  color: var(--teal-ink);
  background: transparent;
}
.chip.ex {
  background: var(--paper-2);
}
.chip .x {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  opacity: 0.7;
  color: inherit;
}
.chip .x svg {
  width: 14px;
  height: 14px;
}
.seg .chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 500;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.actions .primary {
  grid-column: 1 / -1;
}
.btn {
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: linear-gradient(135deg, var(--teal), #0B8E76);
  border-color: var(--teal);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--teal) 65%, transparent);
}
.btn.tint {
  background: var(--hue-soft);
  border-color: color-mix(in srgb, var(--hue) 28%, transparent);
  color: var(--hue-ink);
}
.btn.small {
  padding: 6px 13px;
  font-size: 12.5px;
  border-radius: 11px;
}
.btn.on {
  border-color: var(--teal-line);
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 500;
}
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ib {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: transform 0.12s ease;
}
.ib:active {
  transform: scale(0.9);
}
.ib.tint {
  background: var(--hue-soft);
  color: var(--hue-ink);
  border-color: transparent;
}
.ib.bell.on, .ib.bell.tint.on {
  background: var(--h-sun);
  color: #fff;
  border-color: transparent;
}

/* ───── شاشة البيت: البطل ورسم العائلة (Hero) ───── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 55%);
  align-items: end;
  gap: 4px;
  overflow: hidden;
  border-radius: var(--r-l);
  padding-block: 36px 16px;
  padding-inline: 18px 6px;
  background:
    radial-gradient(120% 95% at 100% 0%, var(--hero-a) 0%, transparent 62%),
    radial-gradient(95% 85% at 0% 100%, var(--hero-c) 0%, transparent 66%),
    var(--hero-b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
.hero.lift {
  padding-bottom: 52px;
}
.hero .copy {
  align-self: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hkick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--teal-ink);
  background: color-mix(in srgb, var(--card) 75%, transparent);
  padding: 2px 10px;
  border-radius: 999px;
}
.hkick svg {
  width: 14px;
  height: 14px;
}
.hero h1 {
  font-size: clamp(22px, 5.8vw, 30px);
  line-height: 1.3;
  color: var(--ink);
}
.hero h1 span {
  display: block;
  color: var(--teal-ink);
}
.hero p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

/* مظلّة السوق أعلى البطل */
.awn {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 24px;
  stroke: none;
  filter: drop-shadow(0 3px 4px rgba(10, 33, 29, 0.12));
}
.awn path { stroke: none; }
.awn .w-paper { fill: #FFFDF8; }
.awn .w-teal { fill: var(--h-teal); }
.awn .w-coral { fill: var(--h-coral); }
.awn .w-sun { fill: var(--h-sun); }
.awn .w-leaf { fill: var(--h-leaf); }
.awn .w-sky { fill: var(--h-sky); }
.awn .w-grape { fill: var(--h-grape); }
.awn .w-rose { fill: var(--h-rose); }

/* تفاصيل رسم العائلة (SVG) */
.hero .art {
  width: 100%;
  max-width: 248px;
  height: auto;
  justify-self: end;
  overflow: visible;
  stroke: none;
}
.art * { stroke: none; }
.art .a-halo { fill: var(--h-sun); opacity: 0.22; }
.art .a-sun { fill: var(--h-sun); }
.art .a-c { animation: twinkle 3.6s ease-in-out infinite; }
.art .a-c1 { fill: var(--h-coral); }
.art .a-c2 { fill: var(--h-sky); animation-delay: 0.9s; }
.art .a-c3 { fill: var(--h-leaf); animation-delay: 1.8s; }
.art .a-c4 { fill: var(--h-rose); animation-delay: 2.7s; }
.art .a-ground { fill: var(--ink); opacity: 0.08; }
.art .a-leaf { fill: var(--h-leaf); }
.art .a-shade { fill: #000; opacity: 0.1; }
.art .a-bread { fill: var(--h-wood); }
.art .a-score { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.65; fill: none; }
.art .a-orange { fill: var(--h-orange); }
.art .a-apple { fill: var(--h-red); }
.art .a-stem { stroke: var(--a-dark); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.art .a-weave { stroke: #fff; stroke-width: 1.8; opacity: 0.52; fill: none; stroke-linecap: round; }
.art .a-rim { fill: var(--ink-2); }
.art .a-frame { stroke: var(--ink-2); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .a-wheel { fill: var(--ink-2); }
.art .a-hub { fill: var(--hero-b); }
.art .a-thobe { fill: var(--a-thobe); stroke: var(--a-thobe-line); stroke-width: 1.4; }
.art .a-seam { stroke: var(--a-thobe-line); stroke-width: 1.2; fill: none; }
.art .a-armo { stroke: var(--a-thobe-line); stroke-width: 8.5; stroke-linecap: round; fill: none; }
.art .a-arm { stroke: var(--a-thobe); stroke-width: 5.8; stroke-linecap: round; fill: none; }
.art .a-skin { fill: var(--a-skin); }
.art .a-beard, .art .a-hair { fill: var(--a-dark); }
.art .a-shm { fill: #D9303E; }
.art .a-agal { fill: none; stroke: #1B1B1B; stroke-width: 2.4; }
.art .a-abaya { fill: var(--a-abaya); stroke: var(--a-abaya-line); stroke-width: 1.2; }
.art .a-hijab { fill: var(--a-hijab); stroke: var(--a-abaya-line); stroke-width: 1.2; }
.art .a-sleeve { stroke: var(--a-abaya); stroke-width: 5.8; stroke-linecap: round; fill: none; }
.art .a-bagh { stroke: var(--h-teal); stroke-width: 2; fill: none; }
.art .a-gem { fill: #fff; }
.art .a-karm { stroke: var(--h-sun); stroke-width: 4.4; stroke-linecap: round; fill: none; }
.art .a-shirt { fill: var(--h-sun); }
.art .a-pants { fill: var(--h-sky); }
.art .a-shoe { fill: var(--a-dark); }
.art .a-balloon { fill: var(--h-grape); }
.art .a-shine { fill: #fff; opacity: 0.55; }
.art .a-string { stroke: var(--ink-3); stroke-width: 1.1; fill: none; }
.art .a-float { animation: bob 4.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ───── كبسولة الطلب العائمة (Ask Form) ───── */
.ask {
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s ease;
}
.ask:focus-within {
  border-color: var(--teal);
}
.hero.lift + .ask {
  margin: -46px 10px 0;
  position: relative;
  z-index: 2;
}
.ask textarea {
  border: 0;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  min-height: 54px;
  outline: none;
}
.ask textarea::placeholder {
  color: var(--ink-4);
}
.ask .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hint {
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hint svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}
.ask .btns {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cam {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--teal-ink);
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.12s ease;
}
.cam:active {
  transform: scale(0.92);
}
.cam svg {
  width: 21px;
  height: 21px;
}
.cam.mic.on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  animation: micpulse 1.2s ease-in-out infinite;
}
@keyframes micpulse {
  50% { box-shadow: 0 0 0 6px var(--teal-soft); }
}
.go {
  width: 44px;
  height: 44px;
  border: 0;
  background: linear-gradient(135deg, var(--teal), #09856E);
  display: grid;
  place-items: center;
  border-radius: 13px;
  transform: rotate(45deg);
  flex: none;
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--teal) 70%, transparent);
  transition: transform 0.15s ease;
}
.go:active {
  transform: rotate(45deg) scale(0.92);
}
.go svg {
  transform: rotate(-45deg);
  stroke: #fff;
  stroke-width: 2.1;
}
.go:disabled {
  opacity: 0.5;
}
.go.sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.go.sm svg {
  width: 17px;
  height: 17px;
}

.tries {
  margin-top: -6px;
}
.chips.tries .chip.tint {
  background: var(--hue-soft);
  border-color: color-mix(in srgb, var(--hue) 22%, transparent);
  color: var(--hue-ink);
  font-weight: 500;
}

/* ───── تحديد المدينة (Location) ───── */
.qcard {
  background: linear-gradient(180deg, var(--teal-soft), var(--card));
  border: 1px solid var(--teal-line);
  border-radius: var(--r-l);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qcard p {
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qcard p svg, .ic-mini svg {
  color: var(--teal-ink);
}
.ic-mini {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--card);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.qcard.loc .target {
  flex-wrap: wrap;
}
.qcard.loc .target input {
  min-width: 9em;
}
.qcard.loc p.fine {
  font-weight: 400;
}
.target {
  display: flex;
  gap: 8px;
  align-items: center;
}
.target input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
  direction: ltr;
  text-align: right;
}
.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.cityline {
  margin: -8px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.cityline svg {
  width: 16px;
  height: 16px;
  color: var(--teal-ink);
}

/* ───── شريط الأقسام التسعة (Departments) ───── */
.deptbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.depts {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.depts::-webkit-scrollbar {
  display: none;
}
.depts li {
  flex: none;
  scroll-snap-align: start;
}
.dept {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 76px;
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.dept .ic {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--hue-soft), color-mix(in srgb, var(--hue) 24%, var(--card)));
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hue) 28%, transparent), 0 6px 14px -8px color-mix(in srgb, var(--hue) 50%, transparent);
  transition: transform 0.15s ease;
}
.dept .ic svg {
  width: 30px;
  height: 30px;
}
.dept:active .ic {
  transform: scale(0.91);
}
.dept .n {
}
.deptbar .out {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-4);
}

/* ───── لافتة الموسم والتخفيضات (Season Banner) ───── */
.sbanner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--r-l);
  padding: 15px 16px;
  overflow: hidden;
  color: #2B1D00;
  background: linear-gradient(125deg, #FFD460 0%, #FFB524 65%, #FF9333 130%);
  box-shadow: 0 10px 24px -12px rgba(245, 158, 11, 0.45);
}
.sbanner .cd {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 8px 6px;
  border-radius: 16px;
  background: #FFFDF7;
  line-height: 1.15;
  box-shadow: 0 10px 18px -10px rgba(90, 55, 0, 0.7);
}
.sbanner .cd b {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  color: #B4380F;
}
.sbanner .cd small {
  font-size: 11px;
  color: #5A4200;
}
.sbanner .grow {
  flex: 1;
  min-width: 0;
  position: relative;
}
.sbanner .shead {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sbanner .shead svg {
  width: 18px;
  height: 18px;
  color: #8F2D0B;
}
.sbanner .grow b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
}
.sbanner p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4A3500;
}
.sbanner > .ic {
  position: absolute;
  inset-inline-end: -14px;
  top: -16px;
  color: #7A4A00;
  opacity: 0.16;
  pointer-events: none;
}
.sbanner > .ic svg {
  width: 96px;
  height: 96px;
  stroke-width: 1.2;
}

/* ───── ركني (سلّتي / البقالة / طلباتي) ودعوة الزائر ───── */
.corner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 13px 12px;
  border-radius: 22px;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(160deg, var(--hue-soft) 0%, color-mix(in srgb, var(--hue) 28%, var(--card)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
  transition: transform 0.14s ease;
}
.tile::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--hue);
  opacity: 0.13;
  inset-inline-start: -26px;
  bottom: -30px;
}
.tile .ic {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--card);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--hue) 80%, transparent);
}
.tile .ic svg {
  width: 25px;
  height: 25px;
}
.tile b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.35;
}
.tile > span.num {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.tile > .rh {
  position: absolute;
  top: 14px;
  inset-inline-end: 13px;
}
.tile:active {
  transform: scale(0.96);
}

.joinme {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-l);
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(120deg, color-mix(in srgb, var(--h-coral) 16%, var(--card)), color-mix(in srgb, var(--h-grape) 16%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-coral) 22%, transparent);
}
.joinme .trio {
  display: flex;
  flex: none;
}
.joinme .trio .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--hue-soft);
}
.joinme .trio .ic + .ic {
  margin-inline-start: -10px;
}
.joinme .trio .ic svg {
  width: 21px;
  height: 21px;
}
.joinme .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.joinme b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.joinme .grow > span {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ───── صور المنتجات ورفّ «وجدتُه لك» وملصقات السعر ───── */
.pic {
  display: block;
  flex: none;
  background: var(--photo);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  object-fit: contain;
  max-width: 100%;
}
.pic.none {
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-style: dashed;
}
.pic.big {
  width: 100%;
  height: 200px;
  border-radius: var(--r-m);
  padding: 10px;
}
.pic.md {
  width: 72px;
  height: 72px;
  padding: 5px;
  border-radius: 14px;
}
.pic.sm {
  width: 48px;
  height: 48px;
  padding: 4px;
}

.sticker {
  align-self: flex-start;
  position: relative;
  margin: -20px 8px 4px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 6px 10px 5px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sticker.sure {
  background: var(--teal-soft);
  color: var(--teal-ink);
  box-shadow: inset 0 0 0 1px var(--teal-line);
}
.sticker small {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  margin-inline-start: 3px;
}

.shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar {
  display: none;
}
.found .shelf .card {
  flex: 0 0 156px;
  scroll-snap-align: start;
  background: var(--hue-soft);
  border: 0;
  border-radius: 22px;
  padding: 8px 8px 12px;
  gap: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 20%, transparent);
}
.found .card .pic {
  border: 0;
  border-radius: 16px;
  padding: 10px;
}
.found .card .t {
  font-weight: 500;
  margin-top: 2px;
}
.found .card .m {
  color: var(--hue-ink);
  font-weight: 500;
}

/* ───── قراراتي على مهل (Watch Grid) ───── */
.watch {
  background: color-mix(in srgb, var(--h-sun) 13%, var(--card));
  border-radius: var(--r-l);
  padding: 14px 12px 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-sun) 25%, transparent);
}
.watch .sh .ic {
  background: var(--card);
}
.wgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
  border-radius: 18px;
  padding: 11px 12px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  box-shadow: var(--shadow);
}
.wcard .wr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.rg {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
}
.rg svg {
  position: absolute;
  inset: 0;
  width: 42px;
  height: 42px;
}
.rg .tr {
  stroke: var(--line);
  stroke-width: 4;
  fill: none;
}
.rg .pr {
  stroke: var(--h-sun);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}
.wcard.buy .rg .pr {
  stroke: var(--h-teal);
}
.rg b {
  position: relative;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rg b small {
  font-family: var(--font);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 1px;
}
.wcard .wp {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.3;
}
.wcard .wp small {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  margin-inline-start: 3px;
  color: var(--ink-3);
}
.sig {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sig svg {
  width: 13px;
  height: 13px;
}
.sig.wait {
  background: var(--spark-soft);
  color: var(--spark-ink);
}
.sig.buy {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.wcard .t {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wcard .m {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-ink) !important;
  font-weight: 500;
}
.target-pill svg {
  width: 13px;
  height: 13px;
}
.wcard .pill {
  align-self: flex-start;
  font-size: 11px;
}

/* ───── كيف أبحث لك (How Steps) ───── */
.how {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-l);
  padding: 14px 10px;
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  position: relative;
}
.how ol::before {
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: 12.5%;
  border-top: 2px dashed var(--line-2);
}
.how li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  position: relative;
  min-width: 0;
}
.how ol .ic {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hue-soft);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--paper);
  margin-bottom: 6px;
}
.how ol .ic svg {
  width: 24px;
  height: 24px;
}
.how .n {
  position: absolute;
  top: -3px;
  inset-inline-end: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--hue-ink);
  color: var(--card);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.how b {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}
.how li > span:last-child {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ───── الحالات الفارغة المرسومة (Empty States) ───── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 26px 18px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--hue-soft) 0%, var(--card) 100%);
  border: 1px dashed color-mix(in srgb, var(--hue) 35%, transparent);
}
.empty-state.sm {
  padding: 18px 14px;
}
.empty-art {
  width: 150px;
  height: auto;
  stroke: none;
}
.empty-art.sm {
  width: 110px;
}
.empty-state b {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
}
.empty-state p {
  max-width: 42ch;
}

/* ───── شارة المتجر الدائرية وشبكة المتاجر ───── */
.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  background: var(--hue-soft);
  color: var(--hue-ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hue) 30%, transparent);
}
.sh > .av {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.store {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.store .avw {
  position: relative;
  display: inline-grid;
}
.store .av {
  width: 46px;
  height: 46px;
  font-size: 19px;
}
.store .avw .rh {
  position: absolute;
  bottom: -1px;
  inset-inline-end: -3px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  box-shadow: 0 0 0 2.5px var(--card);
}
.store .avw .rh:not(.lit):not(.done):not(.warn) {
  background: var(--card);
}
.store b {
  font-weight: 500;
  font-size: 13px;
}
.store span {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.store.off {
  background: transparent;
  border-style: dashed;
}
.store.off .av {
  filter: grayscale(1);
  opacity: 0.55;
}

/* ───── طلباتي (Requests Grid) ───── */
.rgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 520px) {
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(165deg, var(--hue-soft) 0%, var(--card) 88%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
  transition: transform 0.12s ease;
}
.rcard::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--hue);
  opacity: 0.12;
  inset-inline-start: -24px;
  top: -28px;
}
.rcard .rtop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.rcard .ic {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--hue) 80%, transparent);
}
.rcard .ic svg {
  width: 25px;
  height: 25px;
}
.rcard .ic .rh {
  position: absolute;
  bottom: -3px;
  inset-inline-start: -3px;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 2px var(--card);
}
.rcard .ic .rh:not(.lit):not(.done):not(.warn) {
  background: var(--card);
}
.rcard .sticker {
  margin: 2px 0 0;
  font-size: 13.5px;
  padding: 5px 8px 4px;
}
.rcard .t {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rcard .m {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.rtag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--hue-soft);
  color: var(--hue-ink);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
}
.rtag svg {
  width: 12px;
  height: 12px;
}
.rcard:active {
  transform: scale(0.97);
}

/* ───── شاشة الفهم والخصائص (Understand Screen) ───── */
.checkcard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.checkcard .grow {
  flex: 1;
  min-width: 0;
}
.checkcard .lbl {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-ink);
  font-weight: 500;
}
.checkcard .lbl svg {
  width: 14px;
  height: 14px;
}
.checkcard .t {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.checkcard .m {
  font-size: 12px;
  color: var(--ink-3);
}
.checkcard .pic.sm {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.understand {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.understand .who {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--teal-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.understand .who svg {
  width: 16px;
  height: 16px;
}
.understand q {
  font-weight: 500;
  font-size: 16px;
  quotes: "«" "»";
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper-2);
  padding: 10px 14px;
  border-radius: 14px;
}
.u-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lbl {
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lbl svg {
  width: 14px;
  height: 14px;
  color: var(--teal-ink);
}

.qcard.specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qcard.specs > p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.qtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.qcard.specs > p small {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-3);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec .lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.spec .chip[aria-pressed="true"], .spec .chip.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 500;
}

/* ───── شاشة البحث الحيّ (Live Search Radar & Steps) ───── */
.live-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--teal-soft), var(--card));
  border: 1px solid var(--teal-line);
  border-radius: var(--r-l);
  padding: 14px 16px;
}
.radar-art {
  width: 74px;
  height: 74px;
  flex: none;
  stroke: none;
  animation: pulseRadar 2.4s ease-in-out infinite;
}
@keyframes pulseRadar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.live-hero .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--teal-line);
  color: var(--teal-ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.timer-pill svg {
  width: 14px;
  height: 14px;
}

.live-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lstep {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lstep .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--hue-soft);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.lstep .grow {
  flex: 1;
  min-width: 0;
}
.lstep .t {
  font-size: 14px;
  font-weight: 500;
}
.lstep.active {
  border-color: var(--teal);
  background: linear-gradient(90deg, var(--teal-soft), var(--card));
  box-shadow: var(--shadow);
}
.lstep.wait {
  opacity: 0.6;
}

.peek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.peek-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.peek-card .phead {
  display: flex;
  align-items: center;
  gap: 6px;
}
.peek-card .phead .av {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.peek-card .phead .m {
  flex: 1;
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.peek-card .sticker {
  margin: 0;
  font-size: 12.5px;
  padding: 4px 7px 3px;
}
.peek-card .t {
  font-size: 13px;
  line-height: 1.45;
}

/* ───── القوائم العامة (List) والتنبيهات ───── */
.list {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.list > * {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.list > * + * {
  border-top: 1px solid var(--line);
}
.list .grow {
  flex: 1;
  min-width: 0;
}
.list .t {
  font-size: 14px;
  line-height: 1.5;
}
.list .m {
  font-size: 12px;
  color: var(--ink-3);
}
.caveat {
  background: none;
  color: var(--warn);
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.caveat svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ───── شاشة الجواب والترشيح (Answer Screen & Pick Card) ───── */
.rhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--hue-soft) 0%, color-mix(in srgb, var(--hue) 28%, var(--card)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
}
.rhero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--hue);
  opacity: 0.14;
  inset-inline-end: -34px;
  bottom: -66px;
}
.rhero > .ic {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--card);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--hue) 85%, transparent);
}
.rhero > .ic svg {
  width: 32px;
  height: 32px;
}
.rhero .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rhero h2 {
  font-size: 23px;
}
.rhero .sub {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.rohead {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  border-radius: var(--r-m);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}
.tools .btn.tint {
  background: var(--hue-soft);
  border-color: transparent;
  color: var(--hue-ink);
  border-radius: 999px;
  font-weight: 500;
}
.sharebox {
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-m);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.sharebox p {
  margin: 0;
  color: var(--ink-2);
}
.sharebox .ltr {
  font-size: 12.5px;
  overflow-wrap: anywhere;
  color: var(--teal-ink);
  font-weight: 500;
}
.sharebox .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.say {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.say .mark-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.say p {
  margin: 0;
  flex: 1;
  min-width: 0;
  background: var(--teal-soft);
  color: var(--ink);
  border-radius: 18px;
  border-start-start-radius: 4px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.7;
}

/* بطاقة الترشيح الأول (Pick Card) */
.pick {
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 12.5px;
  color: var(--teal-ink);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eyebrow svg {
  width: 15px;
  height: 15px;
}
.pick-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.pick-store .av {
  width: 24px;
  height: 24px;
  font-size: 11.5px;
}
.pick.tint .pic.big {
  background: var(--photo);
  border: 2px solid var(--hue-soft);
  padding: 14px;
}
.pick h3 {
  font-size: 20px;
}
.ttl {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: -6px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price strong {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}
.price strong small {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  margin-inline-start: 4px;
}
.price s {
  color: var(--ink-4);
  font-size: 14px;
}
.price em {
  font-style: normal;
  font-size: 12.5px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.price em svg {
  width: 14px;
  height: 14px;
}

.landed-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.landed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
  padding: 4px 10px;
  border-radius: 10px;
}
.landed svg {
  width: 16px;
  height: 16px;
  color: var(--teal-ink);
}
.landed.unk {
  color: var(--ink-3);
}
.landed.unk svg {
  color: var(--ink-4);
}
.landed.ins {
  background: color-mix(in srgb, var(--h-grape) 12%, var(--card));
  color: color-mix(in srgb, var(--h-grape) var(--ink-k), var(--mixk));
}
.landed.ins svg {
  color: currentColor;
}

.hist {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  padding: 7px 11px;
  border-radius: 12px;
}
.hist.low {
  color: var(--teal-ink);
  background: var(--teal-soft);
}
.hist.high {
  color: var(--warn);
  background: var(--warn-soft);
}
.spark {
  flex: none;
  width: 84px;
  height: 24px;
  direction: ltr;
}
.spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spark circle {
  fill: currentColor;
}

.why {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.6;
}
.why .wic {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.why .wic svg {
  width: 15px;
  height: 15px;
}

/* ───── الإيصال الموثّق (The Receipt) ───── */
.receipt {
  position: relative;
  background: var(--receipt);
  border: 1px solid var(--receipt-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: 14px 16px 18px;
  font-size: 13px;
  margin-bottom: 10px;
}
.receipt::after {
  content: "";
  position: absolute;
  inset: auto -1px -9px -1px;
  height: 10px;
  background: radial-gradient(circle at 7px 10px, var(--card) 5.5px, transparent 6px) 0 0 / 14px 10px repeat-x, var(--receipt);
  border-inline: 1px solid var(--receipt-line);
}
.receipt header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--receipt-line);
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.receipt .rtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
.receipt .rtitle svg {
  width: 16px;
  height: 16px;
  color: var(--teal-ink);
}
.receipt header b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
}
.rrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 3.5px 0;
  align-items: baseline;
}
.rrow > span:first-child {
  color: var(--ink-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rrow > span:first-child svg {
  width: 15px;
  height: 15px;
  color: var(--teal-ink);
}
.rrow > span:nth-child(2) {
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.rrow .rv-diff {
  color: var(--warn);
  font-weight: 500;
}
.rrow .rv-none {
  color: var(--ink-4);
  font-weight: 400;
}
.rrow small {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
}
.mk {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-radius: 2px;
  display: inline-block;
  border: 1.5px solid var(--teal);
}
.mk.two {
  background: var(--teal);
}
.mk.one {
  background: transparent;
}
.mk.rev {
  border-color: var(--warn);
  background: var(--warn-soft);
}
.mk.none {
  border-color: var(--line-2);
}
.rfoot {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px dashed var(--receipt-line);
  margin-top: 8px;
  padding-top: 10px;
}
.rfoot.solo {
  grid-template-columns: 1fr;
}
.thumb {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--receipt-line);
  background: var(--paper-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--ink-4);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-ink);
  font-size: 12px;
  line-height: 1.55;
}
.stamp.warn {
  color: var(--warn);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ───── أزرار المنتج الدائرية وآراء المشترين ───── */
.oacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oacts > .affb {
  margin-top: -8px;
}
/* أفعال العرض: ثلاثة ظاهرة بلونٍ واحد وأيقونة خط، والباقي تحت «المزيد» — لا دوائر ملوّنة متساوية */
.bubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bubs .btn {
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  justify-content: center;
}
.bubs .btn > svg {
  width: 17px;
  height: 17px;
  color: var(--teal-ink);
}
.bubs .btn.on {
  border-color: var(--teal-line);
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.omore > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-3);
  padding: 2px 0;
  width: fit-content;
}
.omore > summary::-webkit-details-marker { display: none; }
.omore > summary::after { content: " +"; }
.omore[open] > summary::after { content: " −"; }
.omore-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.omore-in .btn {
  font-size: 13px;
  font-weight: 400;
  padding: 7px 12px;
  border-radius: 10px;
}
.legend-d > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-3);
  width: fit-content;
}
.legend-d > summary::-webkit-details-marker { display: none; }
.legend-d[open] > .legend { margin-top: 8px; }
.rmiss {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 14px;
}
.reviews .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
}
.reviews .who svg {
  color: var(--spark-ink);
}
.reviews .who small {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
  margin-inline-start: 4px;
}
.verdict {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-inline-start: 10px;
  margin: 0;
}
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.rev-col {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
}
.rev-col.good .lbl { color: var(--teal-ink); font-weight: 500; }
.rev-col.bad .lbl { color: var(--warn); font-weight: 500; }
.rev-col.bad .lbl svg { color: var(--warn); }
.reviews ul {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.reviews ul.good li::marker { color: var(--teal); }
.reviews ul.bad li::marker { color: var(--warn); }
.for-whom {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--card);
  padding: 8px 10px;
  border-radius: 10px;
}
.for-whom svg {
  width: 15px;
  height: 15px;
  color: var(--teal-ink);
  margin-top: 2px;
}
.reviews .srcs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reviews .srcs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reviews .srcs a svg {
  width: 12px;
  height: 12px;
}

/* ───── البدائل (Alternatives Accordion) ───── */
.alts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.alt {
  background: var(--card);
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
details.alt > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
details.alt > summary::-webkit-details-marker {
  display: none;
}
details.alt[open] > summary {
  background: var(--hue-soft);
}
details.alt > div {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.alt .grow {
  flex: 1;
  min-width: 0;
}
details.alt .t {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
details.alt .st {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hue-ink);
  font-weight: 500;
  margin-top: 2px;
}
details.alt .st .av {
  width: 20px;
  height: 20px;
  font-size: 10.5px;
  box-shadow: none;
}
details.alt .m {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
details.alt .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: none;
}
details.alt .sticker {
  margin: 0;
}
details.alt .more {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
details.alt .more svg {
  width: 15px;
  height: 15px;
}
details.alt[open] .more {
  transform: rotate(180deg);
}

/* ───── بطاقات المقارنة جنباً إلى جنب (VS Cards - بلا جداول) ───── */
.vs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.vs::-webkit-scrollbar {
  display: none;
}
.vcard {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-radius: 20px;
  padding: 12px 10px;
  background: linear-gradient(170deg, var(--hue-soft) 0%, var(--card) 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 25%, transparent);
}
.vcard.is-win {
  box-shadow: inset 0 0 0 2px var(--teal), var(--shadow);
}
.win {
  align-self: flex-start;
  background: #0B7D6A;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.win svg {
  width: 13px;
  height: 13px;
}
.vtop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.vtop .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.vtop b {
  font-size: 13px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vtop span {
  font-size: 11.5px;
  color: var(--hue-ink);
  font-weight: 500;
}
.vcard ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcard li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  padding: 6px 9px;
  border: 1px solid var(--line);
}
.vcard li > svg {
  grid-row: 1 / 3;
  width: 17px;
  height: 17px;
  color: var(--hue-ink);
}
.vcard li > .dot {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  display: block;
}
.vcard li .k {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.3;
}
.vcard li b {
  grid-column: 2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.vcard li .mk {
  grid-row: 1 / 3;
  grid-column: 3;
}
.vcard li.rv-diff b {
  color: var(--warn);
}
.vcard li.rv-none b {
  color: var(--ink-4);
  font-weight: 400;
}

.cmpbar {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1.5px solid var(--teal);
  border-radius: var(--r-m);
  padding: 10px 12px;
  box-shadow: var(--shadow-lg);
}
.cmpbar > span {
  flex: 1 1 140px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.cmpout {
  scroll-margin-top: 76px;
}

/* ───── كل ما وجدته (Offers Grid) وأمازون والمستبعدات ───── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 520px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.grid.tint .card {
  background: var(--hue-soft);
  border: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 20%, transparent);
}
.card > a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}
.card .pic {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 0;
  border-radius: 13px;
}
.card .t {
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .m {
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card .m .av {
  width: 18px;
  height: 18px;
  font-size: 9.5px;
  box-shadow: none;
}
.card .m > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card .p {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15.5px;
  margin-top: auto;
}
.card .p small {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11.5px;
  margin-inline-start: 3px;
}
.card .ld {
  font-size: 11px;
  color: var(--teal-ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card .ld svg {
  width: 13px;
  height: 13px;
}
.card .ld.unk {
  color: var(--ink-4);
}

.fav {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.fav.on, .btn.cmp.on, .fav.cmp.on {
  color: var(--teal-ink);
  border-color: var(--teal-line);
  background: var(--teal-soft);
}
.fav svg {
  width: 17px;
  height: 17px;
}
.fav.cmp {
  top: 50px;
}

.lcards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--hue-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 24%, transparent);
}
.lcard .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.lcard .grow {
  flex: 1;
  min-width: 0;
}
.lcard .t {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}
.lcard .m {
  font-size: 12px;
  color: var(--ink-3);
}

/* كبسولات المستبعدات الإحصائية (.exc-grid) */
.exc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.exc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 16px;
  background: var(--hue-soft);
  color: var(--hue-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
}
.exc-card .ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.exc-card b {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
}
.exc-card span:last-child {
  font-size: 11.5px;
  color: var(--ink-2);
}

.couldnt {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-m);
  padding: 11px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.couldnt b {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.couldnt b svg {
  width: 16px;
  height: 16px;
  color: var(--warn);
}
.couldnt ul {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-2);
}

/* ───── اسأل عن النتائج (Talk Box) ───── */
.talk .chip.tint {
  background: var(--hue-soft);
  color: var(--hue-ink);
  border-color: transparent;
}
.talk .msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.msg.me {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border-end-start-radius: 4px;
}
.msg.agent {
  align-self: flex-end;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-end-end-radius: 4px;
}
.msg.wait {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.talk .ask {
  padding: 8px 10px;
  box-shadow: none;
}
.talk .ask textarea {
  min-height: 24px;
  flex: 1;
}

/* ───── سلّتي والسلّة المشارَكة (Saved & Shared Lists) ───── */
.listbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-inline: -2px;
  padding-inline: 2px;
}
.listbar::-webkit-scrollbar {
  display: none;
}
.listbar .chip {
  flex: none;
  white-space: nowrap;
}
.listbar .chip small {
  color: var(--ink-3);
  font-size: 11.5px;
}
.listbar .chip.on {
  background: var(--teal-soft);
  border-color: var(--teal-line);
  color: var(--teal-ink);
  font-weight: 500;
}
.listbar .chip.on small {
  color: var(--teal-ink);
}
.listbar .chip.add {
  border-style: dashed;
  color: var(--teal-ink);
}
.listsum-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.listsum-card > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.listsum-card svg {
  color: var(--h-coral);
}
.listsum-card strong {
  font-family: var(--display);
  font-size: 16px;
  color: var(--teal-ink);
}
.listhead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-m);
  padding: 12px 14px;
}
.listhead .top2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.listhead .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.listhead .grow b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
}
.listhead .grow span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.listhead .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qcard.newlist .target {
  flex-wrap: wrap;
}
.qcard.newlist input, .listhead form.target input {
  direction: rtl;
  text-align: right;
  min-width: 12em;
}
select.mini {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12.5px;
  max-width: 9.5em;
}

.slist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sitem {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  background: var(--card);
  border-radius: 20px;
  padding: 11px 12px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.sitem > a.grow {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sitem .t {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sitem .m {
  font-size: 12px;
  color: var(--ink-3);
}
.sitem .acts {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sitem .acts .sticker {
  position: absolute;
  top: 66px;
  inset-inline-start: 10px;
  margin: 0;
  background: var(--h-coral);
  color: #fff;
  font-size: 13px;
}
.sitem .acts select:last-of-type {
  margin-inline-end: auto;
}

.gotbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.gotbar .track {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.gotbar .track i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.list.got > label {
  cursor: pointer;
}
.list.got input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  flex: none;
  margin: 0;
}
.list.got > label.done .t {
  text-decoration: line-through;
  color: var(--ink-3);
}
.list.got > label.done .pic {
  opacity: 0.5;
}

/* ───── سلّة البقالة ومقارنة الأصناف (Grocery Basket) ───── */
.bhero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--hue-soft) 0%, color-mix(in srgb, var(--hue) 26%, var(--card)) 100%);
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 24%, transparent);
}
.bhero .copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bhero .sub {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.bhero-art {
  width: 100%;
  max-width: 165px;
  height: auto;
  justify-self: end;
  stroke: none;
}

.basketform {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 14px;
  box-shadow: var(--shadow);
}
.basketform label.fine {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 500;
}
.basketform label.fine svg {
  width: 16px;
  height: 16px;
  color: var(--h-leaf);
}
.basketform textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.8;
  padding: 10px 12px;
  resize: vertical;
}
.basketform .row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.basketform .row > svg {
  width: 18px;
  height: 18px;
  color: var(--teal-ink);
  flex: none;
}
.basketform input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 9px;
}
.total {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.total.best {
  border: 2px solid var(--teal);
  background: linear-gradient(160deg, var(--teal-soft), var(--card));
  box-shadow: var(--shadow);
}
.total .eyebrow {
  font-size: 11px;
  padding: 2px 8px;
  margin-bottom: 2px;
}
.total .tt {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.total .tt .av {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.total .tt b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.total .sum {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
}
.total .sum small {
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  margin-inline-start: 3px;
}
.tbar {
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin: 2px 0;
}
.tbar i {
  display: block;
  height: 100%;
  background: var(--hue);
  border-radius: 99px;
}
.total.best .tbar i {
  background: var(--teal);
}
.total .m {
  font-size: 12px;
  color: var(--ink-3);
}
.total .miss {
  font-size: 11px;
  color: var(--warn);
  line-height: 1.45;
}

.save-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  border: 1px solid var(--teal-line);
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}
.save-banner svg {
  width: 18px;
  height: 18px;
}

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
.planstore.tint {
  background: var(--hue-soft);
  border: 0;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent);
}
.planstore .pt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.planstore .pt b {
  flex: 1;
  font-weight: 500;
}
.planstore .pt small {
  color: var(--hue-ink);
  font-weight: 700;
  font-size: 13px;
}
.planstore .pt .av {
  background: var(--card);
}
.pchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border-radius: 999px;
  padding-block: 4px;
  padding-inline: 10px 6px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pchip svg {
  width: 15px;
  height: 15px;
  color: var(--hue-ink);
}
.pchip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pchip b {
  background: var(--hue-soft);
  color: var(--hue-ink);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  flex: none;
}

.tips-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--h-sun) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--h-sun) 30%, transparent);
  border-radius: 16px;
  padding: 10px 12px;
}
.tip-card .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.tip-card .grow span {
  font-size: 12px;
  color: var(--ink-2);
}
.save-pill {
  background: #0B7D6A;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.bitems {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bitem {
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bitem-hd {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bidx {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.bitem .bt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.bchips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.bchip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  border-radius: 16px;
  padding: 9px 6px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.12s ease;
}
.bchip:active {
  transform: scale(0.96);
}
.bchip .bs {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.bchip .bs .av {
  width: 20px;
  height: 20px;
  font-size: 10px;
  box-shadow: none;
}
.bchip .bs svg {
  width: 16px;
  height: 16px;
}
.bchip > b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.bchip > b small {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
}
.bchip small {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.3;
}
.bchip small.warn {
  color: var(--warn);
}
.bchip.lo {
  background: #0B7D6A;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(11, 125, 106, 0.55);
}
.bchip.lo .bs, .bchip.lo small, .bchip.lo small.warn {
  color: rgba(255, 255, 255, 0.92);
}
.bchip.none {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: var(--ink-4);
}
.bchip.none > b {
  color: var(--ink-4);
}

/* ───── ملف الرصد والقرار (Decision File Screen) ───── */
.signal {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--spark-soft);
  border: 1px solid color-mix(in srgb, var(--spark) 30%, transparent);
  border-radius: var(--r-l);
  padding: 15px 16px;
}
.signal .sig-ic {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--card);
  color: var(--spark-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.signal .sig-ic svg {
  width: 26px;
  height: 26px;
}
.signal .grow {
  flex: 1;
  min-width: 0;
}
.signal .big {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--spark-ink);
  line-height: 1.25;
}
.signal.buy {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.signal.buy .sig-ic, .signal.buy .big {
  color: var(--teal-ink);
}
.signal p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.season {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
}
.season p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}
.season.inflated { border-color: var(--warn); }
.season.real { border-color: var(--teal-line); }

.days {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  justify-items: center;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px;
}
.days .rh {
  width: 12px;
  height: 12px;
}

.read-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.read-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
}
.read-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.read-card .grow {
  flex: 1;
  min-width: 0;
}
.read-card .t {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}
.read-card .m {
  font-size: 12px;
  color: var(--ink-3);
}

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}
.rules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 12px;
}
.rules li .rh {
  margin-top: 6px;
  width: 10px;
  height: 10px;
}

/* ───── بطاقات الدخول والحوار السفلية (Sheet & JoinCard) ───── */
.joincard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-l);
  padding: 18px;
  box-shadow: var(--shadow);
}
.joincard .ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
}
.joincard p {
  margin: 0;
  font-weight: 500;
}
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  margin: 0 auto;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
.sheet p {
  margin: 0;
  font-weight: 500;
}
.sheet .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sheet .chip.on {
  background: var(--teal-soft);
  border-color: var(--teal-line);
  color: var(--teal-ink);
}

/* شارة رابط الشراكة (.affb) */
.affb {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11.5px;
  line-height: 1.6;
  font-weight: 500;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--spark-soft);
  color: var(--spark-ink);
  white-space: nowrap;
}
.actions > .affb {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: -2px;
}

/* ───── صفحة التعريف الثابتة (/shop/about) ───── */
.about {
  gap: 14px;
}
.ahero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 20%, transparent);
}
.ahero .kick {
  margin: 0;
  font-size: 12.5px;
  color: var(--teal-ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ahero .kick::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--teal);
  transform: rotate(45deg);
  border-radius: 2px;
}
.ahero h1 {
  font-weight: 400;
  font-size: clamp(21px, 5.4vw, 27px);
  line-height: 1.4;
}
.ahero .lede {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.toc {
  padding-top: 4px;
}
.toc .chip {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}
.asec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 68px);
}
.asec h2 {
  font-size: 18px;
  color: var(--teal-ink);
}
.asec h3 {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 6px;
}
.asec p, .asec ul, .asec ol {
  margin: 0;
  max-width: 65ch;
}
.asec ul, .asec ol {
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.asec li::marker {
  color: var(--teal);
  font-weight: 700;
}
.asec .note {
  background: var(--paper-2);
  border-radius: var(--r-s);
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.asec .en {
  font-family: var(--font);
  color: var(--ink-3);
  font-size: 13.5px;
  text-align: left;
}
.asec code {
  font-size: 12.5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.acta {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.acta .btn {
  min-width: 200px;
}

/* ───── احترام تقليل الحركة (Reduced Motion) ───── */
@media (prefers-reduced-motion: reduce) {
  .rh.breath, .art .a-c, .art .a-float, .cam.mic.on, .radar-art {
    animation: none !important;
  }
  .rh.breath {
    background: var(--teal-soft);
  }
}
/* ===== إلحاق CSS: تعديلات وإصلاحات وتنسيق صفحة التعريف ===== */

/* 1. إصلاح ارتفاعات بطاقات قراراتي على مهل وتساويها (L3) */
.wcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
}
.wfoot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.wp-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 2px 0;
}

/* 2. معالجة حافة الإيصال الموثّق وتجنب قصّها (L5, D3) */
.receipt {
  padding-bottom: 22px;
  overflow: hidden;
}
.receipt-teeth {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  width: 100%;
  height: 9px;
  fill: var(--receipt);
  stroke: var(--receipt-line);
  stroke-width: 1;
}

/* 3. تنسيق المنتج بلا صورة وأزرار سلّتي (L11, D5) */
.pic.none {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--paper-2);
}
.nopic-svg {
  width: 36px;
  height: 36px;
  color: var(--ink-4);
}
.sitem {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}
.sitem-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
}
.sitem .acts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.sitem .acts-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sitem .acts .sticker {
  position: static;
  margin: 0;
  background: var(--h-coral);
  color: #fff;
}

/* 4. محاذاة أزرار الموقع والمدنية (L1) و بطاقات المقارنة (L6) */
.qcard.loc {
  gap: 12px;
}
.loc-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.loc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.loc-btn {
  width: 100%;
  justify-content: center;
}
.vbadge-slot {
  display: flex;
  align-items: center;
  min-height: 26px;
}
.vtag {
  font-size: 11px;
  color: var(--hue-ink);
  background: var(--card);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.vtag svg {
  width: 12px;
  height: 12px;
}
.same-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.same-bar svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* 5. ترقية صفحة التعريف about.html لتطابق الهوية الجديدة (L15) */
.about {
  gap: 16px;
}
.ahero {
  background: linear-gradient(145deg, var(--teal-soft), var(--card));
  border: 1px solid var(--teal-line);
  border-radius: var(--r-l);
  padding: 20px;
}
.asec {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}
.asec h2 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ===== إلحاق CSS النهائي: استكمال الأصناف وضبط سلّتي والرصد والإيصال ===== */

/* 1. حرف المتجر داخل دائرته (.av-in) وملاحظة المتجر (.store-note) */
.av-in {
  font-style: normal;
  display: block;
  line-height: 1;
}
.store-note {
  font-size: 11px;
  font-weight: 500;
  color: var(--hue-ink);
  background: var(--hue-soft);
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store.off .store-note {
  background: var(--paper-2);
  color: var(--ink-4);
}

/* 2. رأس بلاطة «ركني» وسهمها (.tile-top و .tile-go) */
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}
.tile-top .ic {
  margin-bottom: 0;
}
.tile-go {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--hue-ink);
  display: grid;
  place-items: center;
  opacity: 0.8;
  transition: transform 0.15s ease;
}
.tile-go svg {
  width: 14px;
  height: 14px;
}
.tile:active .tile-go {
  transform: translateX(-2px);
}
.tile.is-live {
  box-shadow: inset 0 0 0 1.5px var(--hue), var(--shadow);
}

/* 3. الفرع النصّي لعناوين الأقسام (.sh-sub) وشارة خارج التغطية (.out-tag) */
.sh-sub {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.out-tag {
  display: inline-block;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 500;
  font-size: 11px;
  margin-inline-end: 4px;
}

/* 4. حلقة أيام الرصد (.rg-svg) وامتداد البطاقة الثالثة المفردة في «قراراتي على مهل» */
.rg {
  width: 44px;
  height: 44px;
}
.rg-svg {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  display: block;
}
.wgrid > .wcard:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}
.wgrid > .wcard:last-child:nth-child(odd) .wr {
  grid-column: 2;
  grid-row: 1 / 3;
  flex-direction: column-reverse;
  align-items: flex-end;
  margin-bottom: 0;
}
.wgrid > .wcard:last-child:nth-child(odd) .t {
  grid-column: 1;
  grid-row: 1;
}
.wgrid > .wcard:last-child:nth-child(odd) .wp,
.wgrid > .wcard:last-child:nth-child(odd) .wp-sub {
  grid-column: 1;
  grid-row: 2;
}
.wgrid > .wcard:last-child:nth-child(odd) .wfoot {
  grid-column: 1 / -1;
  grid-row: 3;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* 5. الخط البياني لتاريخ السعر (.spark-area و .spark-start) */
.spark {
  width: 92px;
  height: 28px;
  overflow: visible;
}
.spark .spark-area {
  fill: currentColor;
  fill-opacity: 0.16;
  stroke: none;
}
.spark .spark-start {
  fill: var(--card);
  stroke: currentColor;
  stroke-width: 1.6;
}

/* 6. الإيصال الموثّق (.rmeta وحافة الورق المسنّنة) ومفتاح القارئين (.leg-pill) */
.receipt {
  overflow: visible;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.receipt::after {
  content: none !important;
  display: none !important;
}
.receipt-teeth {
  position: absolute;
  bottom: -10px;
  inset-inline: -1px;
  width: calc(100% + 2px);
  height: 11px;
  fill: var(--receipt);
  stroke: var(--receipt-line);
  stroke-width: 1;
  pointer-events: none;
}
.rmeta {
  font-size: 11.5px;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 2px 8px;
  border-radius: 6px;
}
.leg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.leg-pill.two {
  background: var(--teal-soft);
  border-color: var(--teal-line);
  color: var(--teal-ink);
}
.leg-pill.one {
  background: var(--paper-2);
  border-color: var(--line-2);
  color: var(--ink-2);
}
.leg-pill.rev {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
  color: var(--warn);
}
.mk i {
  display: none;
}

/* 7. مجاميع المتاجر وقائمة الانتظار في «سلّة البقالة» (.total-slot و .eyebrow.muted و .basket-wait) */
.total-slot {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 2px;
}
.eyebrow.muted {
  background: var(--paper-2);
  color: var(--ink-3);
  font-weight: 500;
}
.rules.basket-wait {
  background: var(--paper-2);
  padding: 10px;
  border-radius: var(--r-m);
  border: 1px dashed var(--teal-line);
}
.rules.basket-wait li {
  background: var(--card);
  border-color: var(--line);
  font-weight: 500;
}

/* 8. إصلاح روابط العناوين وملصق السعر وقوائم الاختيار في «سلّتي» (.sitem-main و select.mini) */
.sitem-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.sitem-main > a.grow {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sitem-main > a.grow:hover,
.sitem-main > a.grow:focus-visible {
  text-decoration: none;
}
.sitem-main .sticker {
  position: static;
  margin: 0;
  flex: none;
  align-self: flex-start;
  font-size: 13.5px;
  padding: 5px 10px 4px;
}
.sitem .acts {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.sitem .acts select:last-of-type {
  margin-inline-end: 0;
}
.sitem .acts-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
select.mini {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-2);
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C706B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 14px;
  color: var(--ink);
  border-radius: 11px;
  padding: 5px 11px 5px 26px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 10.5em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
select.mini:focus-visible {
  border-color: var(--teal);
  background-color: var(--card);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) select.mini {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8CBC6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* ───── قسم تذاكر الطيران (screenTrip) ───── */
.fl-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fl-hd-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fl-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hue-ink, var(--teal-ink));
  background: var(--hue-soft, var(--teal-soft));
  border: 1px solid var(--line-2);
}

.fl-cat-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ───── التنبيهات العلوية ───── */
.fl-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 500;
}

.fl-banner p {
  margin: 0;
}

.fl-banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.fl-banner-warn {
  background: var(--spark-soft);
  color: var(--spark-ink);
  border: 1px solid var(--spark);
}

.fl-banner-warn .fl-banner-dot {
  background: var(--spark);
}

.fl-banner-missing {
  background: var(--warn-soft);
  color: var(--ink);
  border: 1px solid var(--warn);
}

.fl-banner-missing .fl-banner-dot {
  background: var(--warn);
}

/* ───── بطاقة تذكرة الرحلة (Boarding Pass) ───── */
.fl-pass {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fl-understood {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 13px;
  margin-bottom: 14px;
}

.fl-understood-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
  margin-bottom: 3px;
  font-weight: 500;
}

.fl-understood-quote {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.fl-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
}

.fl-station {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-s);
  cursor: pointer;
  transition: background-color 0.15s ease;
  min-width: 0;
}

.fl-station:hover {
  background: var(--paper-2);
}

.fl-station-end {
  align-items: flex-end;
  text-align: left;
}

.fl-station.is-missing {
  background: var(--warn-soft);
  outline: 1px dashed var(--warn);
}

.fl-station-role {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 500;
}

.fl-iata {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--hue-ink, var(--teal-ink));
  line-height: 1.15;
  direction: ltr;
}

.fl-city {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-guessed-pill {
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--spark);
  background: var(--spark-soft);
  color: var(--spark-ink);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 100%;
  text-align: right;
  line-height: 1.3;
}

.fl-route-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.fl-route-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hue-ink, var(--teal));
}

.fl-route-line::before,
.fl-route-line::after {
  content: "";
  width: 20px;
  border-top: 1.75px dashed var(--line-2);
}

.fl-route-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue-ink, var(--teal));
}

.fl-route-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  transform: scaleX(-1);
}

.fl-route-plane svg {
  width: 18px;
  height: 18px;
}

.fl-trip-kind-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ───── ملاحظات المطارات المجاورة ───── */
.fl-airport-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.fl-airport-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--r-s);
  background: var(--teal-soft);
  color: var(--teal-ink);
  border: 1px solid var(--teal-line);
  font-size: 0.82rem;
  font-weight: 500;
}

.fl-airport-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ───── الفاصل المثقّب للتذكرة ───── */
.fl-ticket-tear {
  position: relative;
  display: flex;
  align-items: center;
  margin: 14px -16px;
  height: 20px;
}

.fl-tear-dash {
  flex: 1;
  border-top: 1.5px dashed var(--line-2);
}

.fl-notch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}

.fl-notch-r {
  margin-inline-start: -10px;
}

.fl-notch-l {
  margin-inline-end: -10px;
}

/* ───── شبكة بيانات الرحلة ───── */
.fl-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fl-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border-radius: var(--r-s);
  background: var(--paper-2);
  border: 1px solid var(--line);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease;
}

.fl-meta-item:hover {
  border-color: var(--teal);
}

.fl-meta-item.is-missing {
  background: var(--warn-soft);
  border-color: var(--warn);
}

.fl-meta-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 500;
}

.fl-meta-lbl svg {
  width: 14px;
  height: 14px;
  color: var(--hue-ink, var(--teal-ink));
  flex-shrink: 0;
}

.fl-meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-meta-sub {
  font-size: 0.73rem;
  color: var(--ink-3);
  direction: ltr;
  text-align: right;
}

.fl-pass-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.fl-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.fl-edit-toggle svg {
  width: 16px;
  height: 16px;
}

/* ───── نموذج التعديل التفاعلي ───── */
.fl-editor-wrap {
  margin-bottom: 16px;
}

.fl-editor {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fl-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fl-editor-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-way-switch {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.fl-way-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fl-way-btn.is-active {
  background: var(--teal);
  color: var(--paper);
}

.fl-places-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

@media (max-width: 400px) {
  .fl-places-grid {
    grid-template-columns: 1fr;
  }
  .fl-swap-btn {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.fl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.fl-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fl-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fl-label-hint {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--spark-ink);
  background: var(--spark-soft);
  padding: 1px 6px;
  border-radius: 999px;
}

.fl-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.fl-input:focus {
  border-color: var(--teal);
}

.fl-input.is-missing {
  border-color: var(--warn);
  background: var(--warn-soft);
}

.fl-date-input {
  direction: ltr;
  text-align: right;
}

.fl-swap-btn {
  width: 40px;
  height: 42px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--teal-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fl-swap-btn:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.fl-swap-btn svg {
  width: 20px;
  height: 20px;
}

.fl-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 390px) {
  .fl-dates-grid {
    grid-template-columns: 1fr;
  }
}

.fl-clear-ret {
  border: 0;
  background: transparent;
  color: var(--teal-ink);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.fl-oneway-box {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: var(--r-s);
  border: 1px dashed var(--line-2);
  background: var(--paper-2);
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
}

.fl-oneway-box:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
}

/* ───── عدّادات الركاب ───── */
.fl-pax-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fl-pax-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fl-pax-counter {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.fl-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.fl-pax-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fl-pax-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-pax-sub {
  font-size: 0.74rem;
  color: var(--ink-3);
}

.fl-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 5px;
  flex-shrink: 0;
}

.fl-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fl-step-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--paper-2);
  color: var(--ink-4);
}

.fl-step-val {
  min-width: 20px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  direction: ltr;
}

/* ───── درجة السفر ───── */
.fl-cabin-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fl-cabin-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fl-cabin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fl-cabin-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fl-cabin-pill.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
}

.fl-editor-actions {
  display: flex;
}

.fl-save-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fl-save-btn svg {
  width: 18px;
  height: 18px;
}

/* ───── بطاقات مواقع الطيران ───── */
.fl-links-sec {
  margin-bottom: 14px;
}

.fl-sec-head {
  margin-bottom: 10px;
}

.fl-sec-title {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-sec-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.fl-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fl-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.fl-link-card:hover {
  transform: translateY(-1px);
  border-color: var(--hue-ink, var(--teal));
}

.fl-link-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-link-ic svg {
  width: 22px;
  height: 22px;
}

.fl-link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fl-link-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-link-kind {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.fl-link-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.fl-link-go svg {
  width: 15px;
  height: 15px;
}

.fl-caveat {
  margin: 12px 0 14px;
  line-height: 1.6;
  color: var(--ink-3);
}

.fl-bottom-actions {
  display: flex;
  margin-top: 6px;
}

.fl-reword-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fl-reword-btn svg {
  width: 17px;
  height: 17px;
}

/* ───── تحديثات الوصول وتخطيط البطاقات والتنويه ───── */
.fl-station,
.fl-meta-item {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  text-align: right;
  width: 100%;
}

.fl-station {
  border: 1px solid transparent;
  background: transparent;
}

.fl-station-end {
  align-items: flex-end;
  text-align: left;
}

.fl-station:focus-visible,
.fl-meta-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}

.fl-guessed-pill {
  display: inline-block;
}

.fl-link-card,
.qcard.fl-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  gap: 12px;
  padding: 12px 14px;
}

.fl-link-body {
  align-items: flex-start;
  text-align: right;
}

.fl-caveat {
  margin: 12px 2px 14px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
}

:root[data-theme="dark"] {
    --paper: #0A1513;
    --paper-2: #0F1F1C;
    --card: #142723;
    --line: #203833;
    --line-2: #2C4A44;
    --ink: #ECF5F2;
    --ink-2: #B8CBC6;
    --ink-3: #8CA29C;
    --ink-4: #657A74;

    --teal: #24C8A9;
    --teal-ink: #7CE8D2;
    --teal-soft: #11362F;
    --teal-line: #1E5C4F;

    --spark: #FBBF24;
    --spark-soft: #3B2E10;
    --spark-ink: #FDE68A;
    --warn: #FB923C;
    --warn-soft: #3D2410;
    --receipt: #182522;
    --receipt-line: #2E423D;
    --photo: #F4F7F6;

    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 32px -12px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.45), 0 20px 42px -12px rgba(0, 0, 0, 0.8);

    --h-teal: #24C8A9;
    --h-coral: #FF856D;
    --h-sun: #FBBF24;
    --h-grape: #9D88FF;
    --h-leaf: #46D483;
    --h-sky: #60A5FA;
    --h-rose: #F472B6;
    --h-red: #F87171;
    --h-cyan: #38BDF8;
    --h-wood: #E5A566;
    --h-plum: #C084FC;
    --h-orange: #FB923C;

    --mixk: #FFFFFF;
    --ink-k: 82%;
    --soft-k: 18%;

    --hero-a: #10332B;
    --hero-b: #282212;
    --hero-c: #2E1A15;
    --a-thobe-line: #8CA19B;
    --a-abaya: #262030;
    --a-hijab: #332B40;
    --a-abaya-line: #6C6082;
    color-scheme: dark;
}
/* ───── واجهة الباب: أرض «نعم» المائية، وما عداها من صفحات الباب فاتحٌ كما هو ───── */
:root[data-theme="dark"] body:has(.nh-root) {
  --paper: #04211C;
  --paper-2: var(--paper-2);
  --card: #0C332B;
  --line: #17453B;
  --line-2: #255A4D;
  --ink: #EAF7F3;
  --ink-2: #C7E2DB;
  --ink-3: #9CC4BA;
  --ink-4: #8DB5AB;
  --teal-ink: var(--acc);
  --teal-soft: #0F3D33;
  --teal-line: #1F5A4C;
  --acc: var(--acc);
  background: var(--paper);
  color: var(--ink);
}
body:has(.nh-root) .top {
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  border: 0;
}
body:has(.nh-root) .top .pill.same {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-3);
  font-weight: 500;
}
body:has(.nh-root) .top .login {
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border-color: color-mix(in srgb, var(--acc) 30%, transparent);
  color: var(--acc);
}
.nh-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  isolation: isolate;
}
.nh-sky {
  position: absolute;
  z-index: -1;
  top: -92px;
  inset-inline-start: 50%;
  translate: 50% 0;
  width: 100vw;
  height: 440px;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(25, 232, 192, 0.3), transparent 70%),
    radial-gradient(60% 55% at 15% 8%, rgba(37, 132, 244, 0.26), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.nh-title {
  padding-top: 22px;
}
.nh-title h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 8.9vw, 44px);
  line-height: 1.3;
  color: var(--ink);
}
.nh-title h1 .l2 {
  display: block;
  color: var(--acc);
}
.nh-title p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.nh-w {
  display: inline-block;
  animation: nhBlur 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i) * 90ms);
}
.nh-done .nh-w {
  animation: none;
}
@keyframes nhBlur {
  from { opacity: 0; filter: blur(10px); transform: translateY(12px); }
}

/* خانة الطلب: BorderBeam حولها */
.ask.nh-ask {
  position: relative;
  border: 0;
  border-radius: var(--r-l);
  padding: 16px 16px 12px;
  background: var(--nh-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
@property --nh-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ask.nh-ask::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--nh-a), transparent 0 62%, #19E8C0 76%, #5AB4FF 86%, #FF6243 94%, transparent),
    linear-gradient(color-mix(in srgb, var(--acc) 22%, transparent), color-mix(in srgb, var(--acc) 22%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nhSpin 6s linear infinite;
}
@keyframes nhSpin {
  to { --nh-a: 360deg; }
}
.ask.nh-ask:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
.ask.nh-ask textarea {
  position: relative;
  font-size: 17px;
  color: var(--ink);
  min-height: 56px;
}
.ask.nh-ask textarea::placeholder {
  color: var(--ink-3);
}
.nh-dust {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.ask.nh-ask .row {
  gap: 8px;
}
.ask.nh-ask .hint {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.ask.nh-ask .cam {
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  border-color: color-mix(in srgb, var(--acc) 22%, transparent);
}
.ask.nh-ask .go {
  margin-inline: 4px 8px;
  background: linear-gradient(135deg, var(--acc), var(--nh-go));
}
.ask.nh-ask .go svg {
  stroke: var(--on-acc);
}
.nh-try {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: -6px;
  font-size: 14px;
  color: var(--ink-3);
  min-width: 0;
}
.nh-try button {
  min-height: 34px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 5px;
  transition: opacity 0.26s ease, filter 0.26s ease, transform 0.26s ease;
}
.nh-try button.out {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-5px);
}
.nh-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
}
.nh-loc .ic-mini {
  background: color-mix(in srgb, var(--acc) 12%, transparent);
}
.nh-loc .ic-mini svg {
  width: 17px;
  height: 17px;
}
.nh-loc .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nh-loc b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.nh-loc small {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
}
.nh-loc .locgo {
  flex: none;
  display: grid;
  color: var(--acc);
}
.nh-loc .locgo svg {
  width: 22px;
  height: 22px;
}
body:has(.nh-root) .qcard {
  background: var(--card);
  border-color: var(--line-2);
}
body:has(.nh-root) .qcard input {
  background: var(--paper);
  border-color: var(--line-2);
  color: var(--ink);
}

.nh-root h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.35;
  color: var(--ink);
}

/* AnimatedBeam */
.nh-flow {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nh-flow > p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.nh-map {
  position: relative;
  aspect-ratio: 358 / 268;
}
.nh-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: none;
  direction: ltr;
}
.nh-lines .b0 {
  stroke: var(--line-2);
  stroke-width: 1;
  fill: none;
}
.nh-lines .b1 {
  stroke: var(--acc);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 16 200;
  stroke-dashoffset: 116;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--acc) 90%, transparent));
  animation: nhRun 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.42s);
}
.nh-lines .b1.o {
  stroke: #FFC94D;
  filter: drop-shadow(0 0 5px rgba(255, 201, 77, 0.9));
  animation-duration: 1.4s;
}
@keyframes nhRun {
  to { stroke-dashoffset: -16; }
}
.nh-st {
  position: absolute;
  inset-inline-start: 0;
  translate: 0 -50%;
  min-width: 74px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.nh-hub {
  position: absolute;
  left: calc(172 / 358 * 100%);
  top: 50%;
  translate: -50% -50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #12C2A2, #0B8F7C);
  box-shadow: 0 0 0 7px rgba(25, 232, 192, 0.12), 0 0 34px rgba(25, 232, 192, 0.5);
  animation: nhHub 2.8s ease-in-out infinite;
}
.nh-hub svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.nh-hub svg .sm {
  stroke: #FEF08A;
}
@keyframes nhHub {
  50% { box-shadow: 0 0 0 11px rgba(25, 232, 192, 0.08), 0 0 46px rgba(25, 232, 192, 0.7); }
}
.nh-out {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 92px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  background: #FFC94D;
  color: #2B1D00;
  line-height: 1.3;
}
.nh-out svg {
  width: 26px;
  height: 26px;
}
.nh-out b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
}
.nh-out small {
  font-size: 12px;
}

/* Apple Cards */
.nh-depts {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.nh-cards {
  list-style: none;
  margin: 0 -16px;
  padding: 0 16px 6px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}
.nh-cards::-webkit-scrollbar {
  display: none;
}
.nh-cards li {
  flex: none;
  scroll-snap-align: start;
}
.nh-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  width: 196px;
  height: 248px;
  padding: 16px;
  border: 0;
  border-radius: 26px;
  color: #fff;
  font: inherit;
  text-align: start;
  background: linear-gradient(165deg, color-mix(in srgb, var(--hue) 78%, #06110F), color-mix(in srgb, var(--hue) 52%, #06110F));
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nh-card:active {
  transform: scale(0.97);
}
.nh-card .bg {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: -18px;
  color: #fff;
  opacity: 0.9;
}
.nh-card .bg svg {
  width: 122px;
  height: 122px;
  stroke-width: 1.1;
}
.nh-card b {
  position: relative;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}
.nh-card small {
  position: relative;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.nh-depts .out {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* العدّاد والأسفل */
.more {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 26px;
}
.more .sbanner {
  flex-wrap: wrap;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  color: var(--ink);
  gap: 0 14px;
}
.more .sbanner > .ic {
  display: none;
}
.more .sbanner .cd {
  order: -1;
  width: 100%;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  transform: none;
  background: none;
  box-shadow: none;
  padding: 0;
}
.more .sbanner .cd b {
  font-size: 104px;
  line-height: 1.1;
  color: #FFC94D;
}
.more .sbanner .cd small {
  font-size: 22px;
  color: var(--ink);
}
.more .sbanner .shead svg {
  color: #FFC94D;
}
.more .sbanner .grow b {
  font-size: 25px;
  color: var(--ink);
}
.more .sbanner p {
  font-size: 15px;
  color: var(--ink-2);
}
.more .joinme {
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
}
.more .joinme .trio {
  display: none;
}
.more .joinme b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
}
.more .joinme .grow > span {
  font-size: 14px;
  color: var(--ink-2);
}
.more .joinme .btn {
  background: var(--acc);
  color: var(--on-acc);
  border: 0;
  box-shadow: none;
}
/* Tracing Beam */
.more .how {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  gap: 16px;
}
.more .how .sh {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
}
.more .how .sh .ic {
  display: none;
}
.more .how ol {
  grid-template-columns: 1fr;
  gap: 18px;
}
.more .how ol::before {
  display: none;
}
.more .how li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  text-align: start;
}
.more .how ol .ic {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  background: var(--card);
  color: var(--acc);
  box-shadow: 0 0 0 5px var(--paper);
  z-index: 1;
}
.more .how .n {
  display: none;
}
.more .how li:nth-child(3) .ic {
  background: #FFC94D;
  color: #2B1D00;
}
.more .how b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.more .how li > span:last-child {
  font-size: 14px;
  color: var(--ink-2);
}
.nh-trace {
  position: absolute;
  z-index: 0;
  inset-inline-start: 21px;
  top: 62px;
  bottom: 12px;
  width: 2px;
  background: var(--line-2);
}
.nh-trace::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(var(--p, 1));
  background: linear-gradient(#19E8C0, #FFC94D);
  box-shadow: 0 0 10px rgba(25, 232, 192, 0.7);
}
.more .fine.foot a {
  background: none;
  color: var(--ink-2);
  border-color: var(--line-2);
}

@media (prefers-reduced-motion: reduce) {
  .nh-w, .ask.nh-ask::before, .nh-lines .b1, .nh-hub {
    animation: none;
  }
  .nh-lines .b1 {
    display: none;
  }
}

/* مراجعة فيبل: الذهب على الزمرّد لغة «نعم للمدراء»، فالأصفر للأيقونة وحدها */
.nh-title p {
  font-size: 16.5px;
}
.nh-out {
  background: rgba(47, 211, 180, 0.08);
  box-shadow: inset 0 0 0 1.5px #2FD3B4;
  color: var(--ink);
}
.nh-out svg {
  color: #FFC94D;
}
.nh-out small {
  color: var(--ink-2);
}
.nh-lines .b1.o {
  stroke: #2FD3B4;
  filter: drop-shadow(0 0 5px rgba(47, 211, 180, 0.9));
}
.more .sbanner .cd b {
  font-size: 88px;
  color: var(--ink);
}
.more .sbanner .shead svg {
  color: var(--acc);
}
.nh-card {
  width: 168px;
  height: 196px;
}
.nh-card.hue-sun {
  --hue: var(--h-coral);
}
.nh-card.hue-wood {
  --hue: var(--h-grape);
}
.nh-card .bg svg {
  width: 92px;
  height: 92px;
}
.nh-card .bg {
  inset-inline-end: -10px;
}
.nh-card b {
  font-size: 19px;
}
.more .corner {
  display: flex;
  gap: 0;
}
.more .corner .tile {
  flex: 1;
  min-width: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 10px;
  align-items: center;
  text-align: center;
}
.more .corner .tile + .tile {
  border-inline-start: 1px solid var(--line);
}
.more .corner .tile::after, .more .corner .tile-go {
  display: none;
}
.more .corner .tile-top {
  justify-content: center;
}
.more .corner .tile .ic {
  background: none;
  box-shadow: none;
  color: var(--acc);
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}
.more .corner .tile b {
  font-size: 15px;
}
.more .watch .wcard, .more .watch {
  background: none;
  box-shadow: none;
}
.more .wcard {
  border: 1px solid var(--line);
}
.cityline .linkish {
  font-size: 15px;
}
body:has(.nh-root) .top {
  background: var(--nh-head);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* العناوين: سطرٌ واحد بلونٍ واحد، بخطّ المتن الخفيف كما في صفحة الهبوط. Alexandria للأرقام وحدها */
.nh-title h1 {
  font-family: var(--font);
  font-weight: 400;
  font-size: min(6.5vw, 40px);
  line-height: 1.34;
  white-space: nowrap;
  color: var(--ink);
}
.nh-title p {
  font-size: 15.5px;
  color: var(--ink-3);
}
.nh-root h2,
.more .how .sh,
.more .sbanner .grow b,
body:has(.nh-root) .sh {
  font-family: var(--font);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
}
.nh-card b {
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
}
.nh-out b,
.more .joinme b,
.more .how b,
.more .corner .tile b {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
}
.more .sbanner .cd b {
  font-size: 72px;
}
.more .sbanner .cd small {
  font-size: 17px;
}
body:has(.nh-root) .top .brand,
body:has(.nh-root) .top .brand * {
  font-family: var(--font);
  font-weight: 500;
}

body:has(.nh-root) .top {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:has(.nh-root) .top::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -50vw;
  background: var(--nh-head);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* خط العناوين: Changa 800، باعتماد حمزة 2026-10-31. سطرٌ واحد بلونٍ واحد */
.nh-title h1,
.nh-root h2,
.more .how .sh,
.more .sbanner .grow b,
.more .sbanner .cd b,
body:has(.nh-root) .sh,
.nh-card b,
.nh-out b,
.more .joinme b,
.more .corner .tile b,
body:has(.nh-root) .top .brand,
body:has(.nh-root) .top .brand * {
  font-family: 'Changa', var(--font);
  font-weight: 700;
  font-synthesis: none;
}
.nh-title h1 {
  font-size: min(5.9vw, 40px);
}


/* خط العناوين: Noto Kufi Arabic 900، اختيار حمزة المبدئي */
.nh-title h1, .nh-root h2, .more .sbanner .grow b, .more .sbanner .cd b, body:has(.nh-root) .sh,
.nh-card b, .more .joinme b, .more .corner .tile b,
body:has(.nh-root) .top .brand, body:has(.nh-root) .top .brand * {
  font-family: 'Noto Kufi Arabic', var(--font);
  font-weight: 900;
  font-synthesis: none;
}
.nh-title h1 {
  font-size: min(4.95vw, 36px);
  line-height: 1.7;
}
.nh-root h2, .more .sbanner .grow b, body:has(.nh-root) .sh {
  font-size: 19px;
  line-height: 1.7;
}
.nh-card b {
  font-size: 15px;
  line-height: 1.6;
}
.more .joinme b, .more .corner .tile b {
  font-size: 14.5px;
}
body:has(.nh-root) .top .brand, body:has(.nh-root) .top .brand * {
  font-size: 17px;
}
.ex {
  flex: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 999px;
  color: #FFC94D;
  box-shadow: inset 0 0 0 1px rgba(255, 201, 77, 0.5);
  align-self: center;
}

/* البحث الحي */
.nl-box {
  position: relative;
  margin-top: 6px;
  border-radius: 22px;
  padding: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -30px #000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nl-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nl-head img {
  width: 54px;
  height: 54px;
  flex: none;
  object-fit: cover;
  border-radius: 14px;
}
.nl-head .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nl-head b {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}
.nl-head small {
  font-size: 12.5px;
  color: var(--acc);
}
.nl-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
  position: relative;
}
.nl-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #5AB4FF, var(--acc));
  transform-origin: right;
  transform: scaleX(var(--p, 1));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 5px 6px;
  border-radius: 12px;
  opacity: 0.42;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.nl-row .av {
  flex: none;
}
.nl-row .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nl-row .s {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nl-row small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.35;
}
.nl-row > b {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-row .wait {
  flex: none;
  width: 54px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--line-2) 25%, var(--nh-shim) 50%, var(--line-2) 75%);
  background-size: 200% 100%;
  display: none;
  animation: nlShim 0.9s linear infinite;
}
.nl-row.busy {
  opacity: 1;
  background: color-mix(in srgb, var(--acc) 7%, transparent);
}
.nl-row.busy .wait {
  display: block;
}
.nl-row.busy > b {
  display: none;
}
.nl-row.on {
  opacity: 1;
}
.nl-row.on > b {
  opacity: 1;
  transform: none;
}
.nl-row.best {
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent);
}
.nl-row.best > b {
  color: var(--acc);
}
@keyframes nlShim {
  to { background-position: -200% 0; }
}
.nl-slip {
  position: relative;
  border-radius: 12px 12px 4px 4px;
  padding: 12px 14px;
  background: #FFFEFA;
  color: #0B221E;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  box-shadow: 0 16px 30px -18px #000;
}
.nl-box .nl-slip {
  max-height: 0;
  padding-block: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.5s ease;
}
.nl-box.is-done .nl-slip {
  max-height: 170px;
  padding-block: 12px;
  opacity: 1;
}
.nl-slip .t {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px dashed #BFC9C5;
}
.nl-slip .ex {
  color: #854D0E;
  box-shadow: inset 0 0 0 1px #C89B3C;
}
.nl-slip .l {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.nl-slip .l b {
  font-weight: 700;
  font-size: 18px;
}
.nl-slip .l.sm {
  font-size: 12.5px;
  color: #3D554F;
}
.nl-slip .l.sm b {
  font-size: 13px;
  color: #0B221E;
}
.nl-mark {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 12px;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 1px 8px;
  border: 1.5px solid #097A67;
  border-radius: 7px;
  color: #097A67;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-5deg);
}
.nl-mark svg {
  width: 13px;
  height: 13px;
}
.nl-again {
  align-self: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--acc);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* صور الأقسام */
.nh-card {
  justify-content: flex-end;
  background: var(--paper-2);
}
.nh-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nh-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(3, 20, 17, 0.92));
}
.nh-card b, .nh-card small {
  z-index: 1;
}

/* كيف أبحث لك: تجربةٌ باليد */
.nw {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nw-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.nw-tab {
  min-height: 74px;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}
.nw-tab .ic {
  display: grid;
  width: 26px;
  height: 26px;
}
.nw-tab .ic svg {
  width: 26px;
  height: 26px;
}
.nw-tab b {
  font-weight: 500;
}
.nw-tab[aria-selected="true"] {
  background: var(--acc);
  color: var(--on-acc);
}
.nw-panel {
  position: relative;
  min-height: 268px;
  padding: 14px;
  border-radius: 20px;
  background: var(--nh-panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.nw-ex {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}
.nw-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nw-pane > p {
  margin: 0;
  padding-inline-end: 50px;
  font-size: 14px;
  color: var(--ink-2);
}
.nw-say {
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  text-align: start;
}
.nw-say[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.nw-got {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nw-got small {
  width: 100%;
  font-size: 12.5px;
  color: var(--ink-3);
}
.nw-got .tk {
  padding: 3px 10px;
  border-radius: 8px;
  background: #FFFEFA;
  color: #0B221E;
  font-size: 13.5px;
  font-weight: 500;
  animation: nwPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i) * 110ms);
}
@keyframes nwPop {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
}
.nw-seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.nw-seg button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
}
.nw-seg button[aria-pressed="true"] {
  background: var(--acc);
  color: var(--on-acc);
}
.nw-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nw-rank li {
  display: grid;
  grid-template-columns: 58px 1fr 38px;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.nw-rank .tr {
  height: 10px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  overflow: hidden;
}
.nw-rank .tr i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--nh-bar);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nw-rank li.top .tr i {
  background: var(--acc);
}
.nw-rank b {
  font-weight: 700;
  text-align: start;
}
.nw-slip {
  border-radius: 12px;
}
.nw-more {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px dashed #BFC9C5;
}
.nw-more[hidden] {
  display: none;
}
.nw-open {
  align-self: flex-start;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #097A67;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nw-rangehead {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
}
.nw-rangehead b {
  font-size: 18px;
  color: var(--acc);
}
.nw-pane input[type="range"] {
  width: 100%;
  height: 32px;
  accent-color: var(--acc);
}
.nw-chart {
  width: 100%;
  height: auto;
  direction: ltr;
  overflow: visible;
}
.nw-chart .ln {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.nw-chart .area {
  fill: color-mix(in srgb, var(--acc) 12%, transparent);
  stroke: none;
}
.nw-chart .th {
  stroke: #FFC94D;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.nw-chart .dot {
  fill: #FFC94D;
  stroke: var(--nh-panel);
  stroke-width: 3;
}
.nw-alert {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nw-alert svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.nw-alert.hit {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .nl-row .wait, .nw-got .tk {
    animation: none;
  }
}

/* من مشاريعنا: حلقة صفحة الترحيب، وختم قمة بشراراته، ونبضة ومضة */
.more .sbanner .cd {
  position: relative;
  width: 120px;
  height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 50%;
  margin-bottom: 12px;
}
.more .sbanner .cd::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from var(--nh-a), transparent 0 55%, var(--acc) 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nhSpin 5s linear infinite;
}
.more .sbanner .cd::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--line);
}
.more .sbanner .cd b {
  font-size: 40px;
  line-height: 1.25;
}
.more .sbanner .cd small {
  font-size: 13px;
  line-height: 1.2;
}
.nl-box.is-done .nl-mark {
  animation: nlStamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.35s backwards;
}
@keyframes nlStamp {
  from { opacity: 0; transform: rotate(-16deg) scale(2.1); }
}
.nl-row.best .av {
  position: relative;
}
.nl-row.best .av::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--acc);
  animation: nlRing 1.1s ease-out 2;
  pointer-events: none;
}
@keyframes nlRing {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.8); }
}
@supports (animation-timeline: view()) {
  .nh-card img {
    animation: nhDrift linear both;
    animation-timeline: view(inline);
    scale: 1.14;
  }
  @keyframes nhDrift {
    from { transform: translateX(5%); }
    to { transform: translateX(-5%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .more .sbanner .cd::before, .nl-mark, .nl-row.best .av::after, .nh-card img {
    animation: none !important;
  }
}

.nl-mark {
  position: static;
  align-self: flex-end;
  margin-top: 4px;
}
.nl-box.is-done .nl-slip {
  max-height: 210px;
}
.nl-box .nl-slip {
  flex: none;
}
.nl-box.is-done .nl-slip {
  max-height: 240px;
}
.nw-slip {
  margin-top: 30px;
}

.nl-why {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.nl-box:not(.is-done) .nl-why {
  display: none;
}
.nl-row {
  min-height: 46px;
  padding-inline: 10px;
}


/* مسرح النيون: داكنٌ في الثيمين، فالضوء لا يضيء على الفاتح */
.nh-flow {
  margin-inline: calc(50% - 50vw);
  margin-top: 28px;
  padding: 40px max(16px, calc(50vw - 280px)) 34px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(90% 60% at 50% 62%, #0A3B32 0%, transparent 72%),
    #031714;
}
.nh-flow h2 {
  color: #EAF7F3;
}
.nh-flow > p {
  margin: 0 0 16px;
  color: #C7E2DB;
  font-size: 15px;
}
.nh-map {
  position: relative;
  aspect-ratio: 358 / 320;
}
.nb-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  direction: ltr;
}
.nh-st {
  position: absolute;
  inset-inline-start: 0;
  translate: 0 -50%;
  min-width: 74px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(3, 23, 20, 0.7);
  box-shadow: inset 0 0 0 1px rgba(25, 232, 192, 0.3);
  color: #C7E2DB;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: box-shadow 0.25s ease, color 0.25s ease;
}
.nh-st.lit {
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px #19E8C0, 0 0 18px rgba(25, 232, 192, 0.65);
}
.nh-hub {
  position: absolute;
  left: calc(168 / 358 * 100%);
  top: 50%;
  translate: -50% -50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #062B25;
  box-shadow:
    inset 0 0 0 1.5px #19E8C0,
    0 0 calc(14px + var(--e, 0) * 44px) rgba(25, 232, 192, calc(0.45 + var(--e, 0) * 0.5));
  transform: scale(calc(1 + var(--e, 0) * 0.06));
}
.nh-hub svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #EAFFFA;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  -webkit-filter: drop-shadow(0 0 5px #19E8C0);
  filter: drop-shadow(0 0 5px #19E8C0);
}
.nh-hub svg .sm {
  stroke: #FEF08A;
}
.nh-out {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 92px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
  background: #062B25;
  color: #EAF7F3;
  line-height: 1.3;
  box-shadow:
    inset 0 0 0 1.5px #19E8C0,
    0 0 calc(10px + var(--e, 0) * 36px) rgba(25, 232, 192, calc(0.3 + var(--e, 0) * 0.6));
}
.nh-out svg {
  width: 24px;
  height: 24px;
  color: #FFC94D;
}
.nh-out b {
  font-size: 15px;
  color: #FFFFFF;
}
.nh-out small {
  font-size: 12px;
  color: #C7E2DB;
}
.nh-depts {
  padding-top: 18px;
}


/* واجهة السوق بعرض الشاشة كله */
.nh-hero {
  position: relative;
  margin-inline: calc(50% - 50vw);
  margin-top: -6px;
  padding: 0 16px 52px;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 100% 0%, var(--hero-a) 0%, transparent 62%),
    radial-gradient(95% 85% at 0% 100%, var(--hero-c) 0%, transparent 66%),
    var(--hero-b);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}
.nh-hero .awn {
  position: relative;
  display: block;
  inset: auto;
  height: clamp(34px, 6vw, 60px);
  margin-inline: -16px;
  width: calc(100% + 32px);
  filter: drop-shadow(0 6px 8px rgba(10, 33, 29, 0.16));
}
.nh-hero-in {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.nh-hero .nh-title {
  padding-top: 20px;
  text-align: center;
}
.nh-hero .art {
  width: 100%;
  max-width: 330px;
  height: auto;
  overflow: visible;
  stroke: none;
  touch-action: manipulation;
}
.nh-hero + .ask.nh-ask {
  position: relative;
  z-index: 2;
  margin: -40px 8px 0;
  box-shadow: 0 22px 44px -24px rgba(10, 33, 29, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nh-title p {
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .nh-hero-in {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding-inline: 12px;
  }
  .nh-hero .nh-title {
    padding-top: 0;
    text-align: start;
    flex: 1;
    min-width: 0;
  }
  .nh-hero .art {
    flex: none;
    width: 400px;
    max-width: 400px;
  }
  .nh-title h1 {
    font-size: clamp(24px, 3vw, 38px);
    white-space: nowrap;
  }
  .nh-title p {
    font-size: 18px;
  }
}

.nh-hero .art .a-float {
  animation: none;
}
@media (min-width: 760px) {
  .nh-title h1 {
    font-size: clamp(20px, 2.35vw, 32px);
  }
}
:root[data-theme="dark"] body:has(.nh-root) {
  --hero-a: #0F4A3D;
  --hero-b: #05261F;
  --hero-c: #0B3440;
}

.nw-got .tk {
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* مروحة المنتجات */
.nh-fan {
  position: relative;
  width: 100%;
  height: 268px;
  margin-top: 6px;
  transform-style: preserve-3d;
}
.nf-card {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 156px;
  height: 200px;
  margin-left: -78px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 20px 34px -16px rgba(10, 33, 29, 0.55);
  -webkit-tap-highlight-color: transparent;
}
.nf-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-card b {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 8px 9px;
  font-family: 'Noto Kufi Arabic', var(--font);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  background: linear-gradient(transparent, rgba(3, 20, 17, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nf-card.front b {
  opacity: 1;
}
.nf-card:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}
@media (min-width: 760px) {
  .nh-fan {
    flex: none;
    width: 460px;
    height: 330px;
  }
  .nf-card {
    width: 196px;
    height: 252px;
    margin-left: -98px;
  }
}
@media (min-width: 760px) {
  .nh-hero-in {
    flex-direction: column;
    gap: 10px;
    padding-inline: 0;
  }
  .nh-hero .nh-title {
    flex: none;
    width: 100%;
    padding-top: 22px;
    text-align: center;
  }
  .nh-title h1 {
    font-size: 34px;
  }
  .nh-fan {
    width: 100%;
    height: 330px;
  }
  .nf-card {
    width: 214px;
    height: 274px;
    margin-left: -107px;
  }
  .nf-card b {
    font-size: 15px;
  }
}

:root[data-theme="dark"] body:has(.nh-root) {
  --acc: #7CEFD3;
  --on-acc: #03231C;
  --nh-panel: #0F3A31;
  --nh-glass: rgba(8, 44, 37, 0.74);
  --nh-head: rgba(4, 33, 28, 0.74);
  --nh-bar: #4C8F7E;
  --nh-shim: #2F6E5F;
  --nh-go: #19C9A6;
  --nh-ex: #FFC94D;
  --nh-th: #FFC94D;
}
:root[data-theme="light"] body:has(.nh-root) {
  --acc: #097562;
  --on-acc: #FFFFFF;
  --nh-panel: #FFFFFF;
  --nh-glass: rgba(255, 255, 255, 0.82);
  --nh-head: rgba(250, 248, 244, 0.84);
  --nh-bar: #9CC4BA;
  --nh-shim: #F1F5F3;
  --nh-go: #0FA98E;
  --nh-ex: #854D0E;
  --nh-th: #C25000;
}
body:has(.nh-root) {
  background: var(--paper);
  color: var(--ink);
}
.ex {
  color: var(--nh-ex);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-ex) 50%, transparent);
}
.nw-chart .th {
  stroke: var(--nh-th);
}
.nw-chart .dot {
  fill: var(--nh-th);
  stroke: var(--nh-panel);
}
:root[data-theme="light"] .ask.nh-ask {
  box-shadow: 0 18px 40px -26px rgba(10, 33, 29, 0.35);
}
:root[data-theme="light"] .nl-box {
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -34px rgba(10, 33, 29, 0.4);
}
:root[data-theme="light"] .nl-slip {
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -20px rgba(10, 33, 29, 0.4);
}
:root[data-theme="light"] .nh-title h1, :root[data-theme="light"] .nh-title p {
  text-shadow: 0 0 18px rgba(250, 248, 244, 0.9);
}
.nh-theme {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  cursor: pointer;
}
.nh-theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top .pill.same {
  margin-inline-start: auto;
}

/* ===== CSS: fares ===== */
.fl-fares-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fl-fares-quiet {
  padding: 14px 16px;
}

/* ───── حالة التحميل ───── */
.fl-fares-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fl-fares-load-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.fl-fares-pulse-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: flPulse 1.6s ease-in-out infinite;
}

.fl-fares-pulse-ic svg {
  width: 20px;
  height: 20px;
}

.fl-fares-load-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fl-fares-load-txt strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-fares-load-txt span {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.fl-fares-skel-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-skel-bar {
  background: var(--paper-2);
  border-radius: var(--r-s);
  position: relative;
  overflow: hidden;
  animation: flPulse 1.6s ease-in-out infinite;
}

.fl-skel-lg {
  height: 36px;
  width: 55%;
}

.fl-skel-md {
  height: 52px;
  width: 100%;
}

.fl-skel-row {
  height: 62px;
  width: 100%;
}

@keyframes flPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

@media (prefers-reduced-motion: reduce) {
  .fl-fares-pulse-ic,
  .fl-skel-bar {
    animation: none;
  }
}

/* ───── الحالات البديلة (none / cap / off / limit) ───── */
.fl-fares-state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fl-fares-state-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-fares-state-ic svg {
  width: 19px;
  height: 19px;
}

.fl-fares-state-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.fl-fares-state-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.fl-fares-state-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.55;
}

.fl-fares-state-act {
  margin-top: 6px;
}

.fl-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fl-state-btn svg {
  width: 15px;
  height: 15px;
}

/* ───── بطل السعر الأرخص ───── */
.fl-fares-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fl-fares-hero-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.fl-fares-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal-ink));
}

.fl-fares-eyebrow svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fl-fares-count {
  color: var(--ink-3);
  font-weight: 500;
}

.fl-fares-bigprice {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fl-fares-amount {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  direction: ltr;
}

.fl-fares-currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
}

.fl-fares-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.fl-scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
}

.fl-scope-chip svg {
  width: 13px;
  height: 13px;
  color: var(--hue-ink, var(--teal-ink));
  flex-shrink: 0;
}

/* ───── مؤشر المدى المعتاد (Visual Price Gauge) ───── */
.fl-gauge-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fl-gauge-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.fl-gauge-summary svg {
  width: 16px;
  height: 16px;
  color: var(--hue-ink, var(--teal-ink));
}

.fl-gauge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fl-gauge-Copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
  min-width: 180px;
}

.fl-gauge-today-num {
  color: var(--hue-ink, var(--teal-ink));
}

.fl-level-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  border: 1px solid var(--line-2);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.fl-gauge-visual {
  position: relative;
  padding-top: 26px;
}

.fl-gauge-pin {
  position: absolute;
  top: 0;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.fl-gauge-pin-tag {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

.fl-gauge-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hue-ink, var(--teal));
  border: 2.5px solid var(--card);
  margin-top: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.fl-gauge-track {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.fl-gauge-seg {
  height: 100%;
  border-radius: 999px;
}

.fl-seg-low {
  background: var(--h-leaf);
  opacity: 0.45;
}

.fl-seg-typ {
  background: var(--teal);
  opacity: 0.85;
}

.fl-seg-high {
  background: var(--h-orange);
  opacity: 0.45;
}

.fl-gauge-ticks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.71rem;
  color: var(--ink-3);
  font-weight: 500;
}

.fl-tick-mid {
  color: var(--ink-2);
  font-weight: 700;
  text-align: center;
}

/* ───── قائمة أرخص 3 رحلات ───── */
.fl-opts-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-opts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fl-opts-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.fl-opts-note {
  font-size: 0.72rem;
  color: var(--ink-3);
}

.fl-opts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-opt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-opt-card.is-cheapest {
  border-color: var(--teal-line);
  background: var(--paper-2);
}

.fl-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fl-opt-airline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.fl-opt-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--photo);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--teal-ink);
}

.fl-opt-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.fl-opt-logo svg {
  width: 15px;
  height: 15px;
}

.fl-opt-carrier {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-opt-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.fl-opt-price {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal-ink);
  direction: ltr;
}

.fl-opt-cur {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-3);
}

.fl-opt-timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.fl-opt-time-End {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.fl-opt-arr {
  align-items: flex-end;
}

.fl-opt-clock-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.fl-opt-clock {
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  direction: ltr;
  line-height: 1.15;
}

.fl-next-day {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 0 4px;
  border-radius: 4px;
  direction: ltr;
  line-height: 1.3;
}

.fl-opt-code {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-3);
  direction: ltr;
}

.fl-opt-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.fl-opt-dur {
  font-size: 0.71rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.fl-opt-line {
  width: 100%;
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 8px;
}

.fl-opt-line::before {
  content: "";
  position: absolute;
  inset-inline: 2px;
  top: 50%;
  border-top: 1.5px solid var(--line-2);
  transform: translateY(-50%);
}

.fl-opt-edge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
  position: relative;
  z-index: 1;
}

.fl-opt-stop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spark);
  border: 1.5px solid var(--card);
  position: relative;
  z-index: 1;
}

.fl-opt-stops {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-opt-stops.is-direct {
  color: var(--teal-ink);
}

.fl-opt-stops.has-stops {
  color: var(--spark-ink);
}

/* ───── سطر المصدر وزرّ قوقل فلايتس ───── */
.fl-fares-source {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.fl-fares-source svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-3);
}

.fl-gf-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.fl-gf-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ===== CSS: fix-fares-paragraphs ===== */
.fl-fares-card p,
.qcard.fl-fares-card p {
  display: block;
  font-weight: 400;
  gap: 0;
}

.fl-gauge-Copy,
.qcard .fl-gauge-Copy {
  display: block;
  font-weight: 400;
  flex: 1 1 170px;
  min-width: 0;
  line-height: 1.6;
}

.fl-gauge-Copy strong {
  font-weight: 700;
  white-space: nowrap;
}

.fl-fares-state-sub,
.qcard .fl-fares-state-sub {
  display: block;
  font-weight: 400;
}

.fl-fares-source,
.fl-fares-card .fl-fares-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.fl-understood-quote,
.qcard .fl-understood-quote {
  display: block;
  font-weight: 700;
}

/* ===== CSS: trips ===== */

/* ───── شريط الموعد الماضي وأزرار شريط التذكرة ───── */
.fl-banner-past {
  background: var(--spark-soft);
  color: var(--spark-ink);
  border: 1px solid var(--spark);
}

.fl-banner-past .fl-banner-dot {
  background: var(--spark);
}

.fl-pass .fl-pass-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 380px) {
  .fl-pass .fl-pass-bar {
    grid-template-columns: 1fr;
  }
}

.fl-save-trip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 500;
  transition: all 0.15s ease;
}

.fl-save-trip-btn svg {
  width: 16px;
  height: 16px;
  color: var(--teal-ink);
  flex-shrink: 0;
}

.fl-save-trip-btn.is-saved {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-ink);
  font-weight: 700;
}

.fl-save-trip-btn:hover {
  border-color: var(--teal);
}

/* ───── السعر المحفوظ (البارد) وتحديث السعر الطازج ───── */
.fl-fares-card.is-stale .fl-fares-amount {
  color: var(--ink-2);
}

.fl-stale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--spark-soft);
  border: 1px solid var(--spark);
  color: var(--spark-ink);
}

.fl-stale-txt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  flex: 1;
  min-width: 170px;
}

.fl-stale-txt svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fl-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fl-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.fl-fares-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fl-fares-foot .fl-fares-source {
  flex: 1;
  min-width: 180px;
}

.fl-refresh-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.76rem;
  padding: 5px 10px;
}

.fl-refresh-inline svg {
  width: 14px;
  height: 14px;
}

/* ───── دعوة المقارنة الموحّدة وتوحيد بطاقات المواقع الأربعة ───── */
.fl-compare-cue {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--r-m);
  border: 1px dashed var(--teal-line);
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.fl-compare-cue:hover {
  border-color: var(--teal);
}

.fl-compare-cue span {
  flex: 1;
}

.fl-compare-cue svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fl-compare-cue svg:last-child {
  transform: rotate(-90deg);
}

.fl-links-list .fl-link-card {
  --hue-ink: var(--teal-ink);
  --hue-soft: var(--teal-soft);
  border-color: var(--line-2);
  background: var(--card);
}

.fl-links-list .fl-link-card:hover {
  border-color: var(--teal);
}

/* ───── قسم «رحلاتي» في صفحة «طلباتي» ───── */
.fl-trips-sec {
  margin-bottom: 18px;
}

.fl-trips-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fl-saved-card {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  text-align: right;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.fl-saved-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.fl-saved-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.fl-saved-card.is-past {
  border-color: var(--line);
  background: var(--paper);
}

.fl-saved-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.fl-saved-route {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.fl-saved-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-saved-ic svg {
  width: 19px;
  height: 19px;
}

.fl-saved-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fl-saved-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-saved-codes {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  direction: ltr;
  text-align: right;
}

.fl-saved-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.fl-saved-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.fl-saved-price-val {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal-ink);
  direction: ltr;
}

.fl-saved-price-cur {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-3);
}

.fl-saved-price-ago {
  font-size: 0.69rem;
  color: var(--ink-3);
}

.fl-saved-no-fare {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.fl-saved-card.is-past .fl-saved-no-fare {
  color: var(--spark-ink);
  background: var(--spark-soft);
}

.fl-saved-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  width: 100%;
}

.fl-saved-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.fl-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 100%;
}

.fl-saved-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-saved-chip svg {
  width: 13px;
  height: 13px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.fl-saved-chip.is-past {
  background: var(--spark-soft);
  border-color: var(--spark);
  color: var(--spark-ink);
}

.fl-saved-chip.is-past svg {
  color: var(--spark-ink);
}

.fl-saved-go {
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-saved-go svg {
  width: 16px;
  height: 16px;
}

/* اتجاه السهم: بطاقة الرحلة المحفوظة تُفتح (يساراً في RTL)، ودعوة المقارنة تنزل إلى المواقع */
.fl-saved-go svg { transform: rotate(90deg); }
.fl-compare-cue svg:last-child { transform: none; }

/* ===== CSS: hotels ===== */
.st-editor {
  margin-bottom: 0.9rem;
}

.st-stay-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.st-city-station {
  text-align: start;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.st-city-name {
  display: block;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0.15rem 0;
  word-break: break-word;
}

.st-area-line {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.st-area-line svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--teal);
  flex-shrink: 0;
}

.st-nights-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 6.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  background: rgba(13, 148, 136, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.st-nights-badge:hover,
.st-nights-badge:focus-visible {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.13);
}

.st-nights-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.14);
  color: var(--teal);
}

.st-nights-ic svg {
  width: 1.15rem;
  height: 1.15rem;
}

.st-nights-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.st-nights-lbl {
  font-size: 0.73rem;
  color: var(--ink-3);
}

.st-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.st-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(13, 148, 136, 0.1);
  color: var(--ink);
}

.st-filter-chip svg {
  width: 0.88rem;
  height: 0.88rem;
  color: var(--teal);
}

.st-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.st-editor-nights-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-ink);
}

.st-editor-nights-pill svg {
  width: 0.95rem;
  height: 0.95rem;
}

.st-date-limit-note {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* قسم عروض الفنادق الثلاثة */
.st-picks-wrap {
  margin-top: 0.9rem;
}

.st-picks-grid,
.st-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.st-skel-card {
  height: 250px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(128, 128, 128, 0.09) 25%, rgba(128, 128, 128, 0.18) 50%, rgba(128, 128, 128, 0.09) 75%);
  background-size: 200% 100%;
  animation: stPulseSkel 1.4s infinite linear;
}

@keyframes stPulseSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.st-pick-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.18));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

a.st-pick-card:hover,
a.st-pick-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.st-pick-media {
  position: relative;
  height: 148px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(14, 116, 144, 0.08));
  overflow: hidden;
}

.st-pick-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

a.st-pick-card:hover .st-pick-img {
  transform: scale(1.04);
}

.st-pick-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  opacity: 0.42;
}

.st-pick-fallback svg {
  width: 3rem;
  height: 3rem;
}

.st-pick-badges {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline: 0.6rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.st-why-pill,
.st-deal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.st-why-pill svg,
.st-deal-pill svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.st-why-pill.is-cheap {
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
}

.st-why-pill.is-top {
  background: rgba(180, 83, 9, 0.92);
  color: #fff;
}

.st-why-pill.is-value,
.st-why-pill.is-default {
  background: rgba(13, 148, 136, 0.92);
  color: #fff;
}

.st-deal-pill {
  background: rgba(15, 23, 42, 0.82);
  color: #4ade80;
}

.st-pick-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 0.95rem 0.9rem;
  gap: 0.45rem;
}

.st-pick-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.st-stars-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.13);
  color: #d97706;
  font-size: 0.74rem;
  font-weight: 700;
}

.st-star-ic {
  display: inline-flex;
}

.st-star-ic svg {
  width: 0.78rem;
  height: 0.78rem;
}

.st-stars-txt {
  margin-inline-start: 0.22rem;
  color: var(--ink);
}

.st-kind-pill {
  font-size: 0.74rem;
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.12);
  color: var(--ink-3);
}

.st-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  margin-inline-start: auto;
}

.st-rating-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.44rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal-ink);
  font-weight: 700;
}

.st-rating-reviews {
  color: var(--ink-3);
  font-size: 0.74rem;
}

.st-pick-near {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.79rem;
  color: var(--ink-3);
}

.st-pick-near svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--teal);
  flex-shrink: 0;
}

.st-pick-foot {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line, rgba(128, 128, 128, 0.18));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.st-pick-price-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.st-pick-night-line {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
}

.st-pick-night-val {
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.st-pick-night-cur {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.st-pick-night-unit {
  font-size: 0.74rem;
  color: var(--ink-3);
}

.st-pick-total-line {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.st-pick-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.38rem 0.68rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.11);
  color: var(--teal-ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.st-pick-cta svg {
  width: 0.88rem;
  height: 0.88rem;
}

a.st-pick-card:hover .st-pick-cta,
a.st-pick-card:focus-visible .st-pick-cta {
  background: var(--teal);
  color: #fff;
}

@media (max-width: 560px) {
  .st-stay-hero {
    grid-template-columns: 1fr;
  }

  .st-nights-badge {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
  }

  .st-nights-lbl {
    margin-inline-start: auto;
  }

  .st-location-grid {
    grid-template-columns: 1fr;
  }

  .st-picks-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CSS: doors ===== */
.dr-home-sec {
  margin-top: 1.05rem;
  margin-bottom: 1.25rem;
}

.dr-sec-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
  padding-inline: 0.15rem;
}

.dr-sec-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2, var(--ink));
}

.dr-sec-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-3, var(--ink-4));
}

.dr-home-stage {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.dr-pavilion {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m, 18px);
  padding: 0.95rem 1rem;
  overflow: hidden;
  box-shadow: var(--shadow, 0 2px 10px rgba(0, 0, 0, 0.04));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
  min-width: 0;
}

.dr-pavilion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--hue-soft, var(--teal-soft)), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.dr-pavilion > * {
  position: relative;
  z-index: 1;
}

.dr-pavilion:hover,
.dr-pavilion:focus-visible {
  transform: translateY(-2px);
  border-color: var(--hue-ink, var(--teal));
}

.dr-pav-title {
  margin: 0;
  font-family: var(--display, var(--font));
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
}

.dr-title-lg {
  font-size: 1.18rem;
}

.dr-pav-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.48;
  color: var(--ink-2, var(--ink-3));
}

/* 1. رواق السفر والفنادق البانورامي */
.dr-pav-travel {
  border-color: var(--teal-line, var(--line));
  padding: 1rem 1.05rem 0.85rem;
}

.dr-travel-grid {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 0.75rem;
}

.dr-travel-copy {
  min-width: 0;
}

.dr-travel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.45rem;
}

.dr-wing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
}

.dr-wing-chip.is-hotel {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.dr-wing-chip svg {
  width: 0.92rem;
  height: 0.92rem;
  flex-shrink: 0;
}

.dr-sample-whisper {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  padding: 0.26rem 0.6rem;
  border-radius: 10px;
  background: var(--paper-2, var(--paper));
  border: 1px dashed var(--line-2, var(--line));
  font-size: 0.72rem;
  color: var(--ink-2);
  max-width: 100%;
}

.dr-sample-whisper span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dr-sample-whisper svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--hue-ink, var(--teal));
  flex-shrink: 0;
}

.dr-travel-diorama {
  position: relative;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.dr-diorama-halo {
  position: absolute;
  width: 88px;
  height: 88px;
  top: 2px;
  border-radius: 999px;
  background: var(--hue-soft, var(--teal-soft));
  border: 1px solid var(--line);
}

.dr-diorama-plane {
  position: absolute;
  top: 0;
  inset-inline-start: 6px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hue-ink, var(--teal));
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
  z-index: 3;
}

.dr-diorama-plane svg {
  width: 1.85rem;
  height: 1.85rem;
}

.dr-diorama-hotel {
  position: absolute;
  top: 18px;
  inset-inline-end: 6px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line, var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-ink, var(--teal));
  transform: rotate(6deg);
  transition: transform 0.25s ease;
  z-index: 2;
}

.dr-diorama-hotel svg {
  width: 1.65rem;
  height: 1.65rem;
}

.dr-pav-travel:hover .dr-diorama-plane {
  transform: translateY(-3px) rotate(-12deg) scale(1.04);
}

.dr-pav-travel:hover .dr-diorama-hotel {
  transform: translateY(-2px) rotate(3deg) scale(1.03);
}

.dr-diorama-go {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal-ink));
}

.dr-diorama-go svg {
  width: 0.8rem;
  height: 0.8rem;
}

.dr-travel-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.68rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}

.dr-brand-dot {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--paper-2, var(--paper));
}

/* 2 & 3. الثنائية غير المتماثلة: اليوميات + المنتجات الحياتية */
.dr-split-duo {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 0.7rem;
  align-items: stretch;
}

.dr-pav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.dr-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dr-emblem-main {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dr-emblem-main svg {
  width: 1.75rem;
  height: 1.75rem;
}

.dr-emblem-sub {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -8px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--hue-ink, var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dr-emblem-sub svg {
  width: 0.92rem;
  height: 0.92rem;
}

.dr-emblem-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -7px;
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--hue-ink, var(--teal));
  color: var(--card);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dr-corner-go {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--paper-2, var(--paper));
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-corner-go svg {
  width: 0.9rem;
  height: 0.9rem;
}

.dr-daily-stores,
.dr-constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.6rem;
}

.dr-mini-tag,
.dr-const-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.44rem;
  border-radius: 6px;
  background: var(--paper-2, var(--paper));
  color: var(--ink-2);
}

.dr-basket-ribbon {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal-ink));
}

.dr-basket-ribbon svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

/* 4. شريط الاشتراكات */
.dr-pav-subs {
  padding: 0.88rem 0.95rem;
}

.dr-subs-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dr-emblem-subs {
  flex-shrink: 0;
}

.dr-emblem-orbit {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--hue-ink, var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dr-emblem-orbit svg {
  width: 0.78rem;
  height: 0.78rem;
}

.dr-emblem-orbit.is-top {
  top: -5px;
  inset-inline-start: -5px;
}

.dr-emblem-orbit.is-bot {
  bottom: -5px;
  inset-inline-end: -5px;
}

.dr-subs-copy {
  flex: 1;
  min-width: 0;
}

.dr-subs-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.dr-subs-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: var(--hue-soft, var(--spark-soft));
  color: var(--hue-ink, var(--spark-ink));
}

.dr-subs-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.62rem;
  padding-top: 0.52rem;
  border-top: 1px dashed var(--line);
}

.dr-ticker-chip {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  background: var(--paper-2, var(--paper));
  color: var(--ink-2);
}

/* ===== صفحة الباب الداخلية (openDoor) ===== */
.dr-page-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.dr-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dr-back-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  transform: scaleX(-1);
}

.dr-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  background: var(--paper-2, var(--paper));
  padding: 0.28rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.dr-switch-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.4rem 0.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.dr-switch-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dr-switch-pill svg {
  width: 1.1rem;
  height: 1.1rem;
}

.dr-switch-pill.is-active {
  background: var(--card);
  border-color: var(--line);
  color: var(--hue-ink, var(--teal-ink));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dr-door-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m, 18px);
  padding: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow, 0 2px 12px rgba(0, 0, 0, 0.04));
}

.dr-door-hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dr-door-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal-ink));
  margin-bottom: 0.2rem;
}

.dr-door-title {
  margin: 0;
  font-family: var(--display, var(--font));
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.dr-door-desc {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.dr-hero-diorama {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-hero-ic.is-primary svg {
  width: 2.3rem;
  height: 2.3rem;
}

.dr-hero-diorama.is-travel .dr-hero-ic.is-primary {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
}

.dr-hero-diorama.is-travel .dr-hero-ic.is-primary svg {
  width: 1.7rem;
  height: 1.7rem;
}

.dr-hero-diorama.is-travel .dr-hero-ic.is-secondary {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 8px;
  color: var(--teal-ink, var(--teal));
}

.dr-hero-diorama.is-travel .dr-hero-ic.is-secondary svg {
  width: 1.55rem;
  height: 1.55rem;
}

/* خانة الطلب داخل صفحة الباب */
.dr-ask-box {
  background: var(--paper);
  border: 1.5px solid var(--line-2, var(--line));
  border-radius: 15px;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.15s ease;
}

.dr-ask-box:focus-within {
  border-color: var(--hue-ink, var(--teal));
}

.dr-ask-ta {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.dr-ask-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
}

.dr-ask-note {
  font-size: 0.73rem;
  color: var(--ink-3);
}

.dr-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dr-ask-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* الأمثلة الجاهزة */
.dr-examples-block {
  margin-top: 0.8rem;
}

.dr-examples-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
}

.dr-examples-label svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--hue-ink, var(--teal));
}

.dr-examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dr-example-chip {
  text-align: start;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2, var(--paper));
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dr-example-chip:hover,
.dr-example-chip:focus-visible {
  border-color: var(--hue-ink, var(--teal));
  background: var(--hue-soft, var(--teal-soft));
}

/* بطاقة سلّة البقالة */
.dr-basket-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1.5px solid var(--teal-line, var(--line));
  border-radius: var(--r-m, 18px);
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dr-basket-card:hover,
.dr-basket-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.dr-basket-ic {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--teal-soft);
  color: var(--teal-ink, var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-basket-ic svg {
  width: 1.75rem;
  height: 1.75rem;
}

.dr-basket-body {
  min-width: 0;
}

.dr-basket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.dr-basket-title {
  font-size: 1rem;
  font-weight: 700;
}

.dr-basket-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.dr-basket-desc {
  margin: 0.25rem 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.48;
  color: var(--ink-2);
}

.dr-basket-stores,
.dr-wing-stores,
.dr-sub-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.dr-store-pill,
.dr-provider-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: var(--paper-2, var(--paper));
  color: var(--ink-2);
}

.dr-basket-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal-ink, var(--teal));
  white-space: nowrap;
}

.dr-basket-cta svg {
  width: 0.88rem;
  height: 0.88rem;
}

/* قسما السفر والفنادق وأنواع الاشتراكات */
.dr-travel-wings-sec,
.dr-subs-sec {
  margin-bottom: 1.1rem;
}

.dr-subsec-head {
  margin-bottom: 0.65rem;
}

.dr-subsec-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.dr-subsec-sub {
  margin: 0.2rem 0 0;
  font-size: 0.77rem;
  color: var(--ink-3);
}

.dr-wings-grid,
.dr-subs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.dr-wing-card,
.dr-sub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m, 16px);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dr-wing-top,
.dr-sub-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dr-wing-ic,
.dr-sub-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-wing-ic svg,
.dr-sub-ic svg {
  width: 1.6rem;
  height: 1.6rem;
}

.dr-wing-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal-ink));
}

.dr-wing-name,
.dr-sub-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.dr-wing-desc,
.dr-sub-desc {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.dr-try-btn {
  margin-top: 0.2rem;
  width: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.48rem 0.7rem;
  border-radius: 11px;
  border: 1px dashed var(--hue-ink, var(--teal));
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.dr-try-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.dr-try-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dr-subs-promise {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 15px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line, var(--line));
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.dr-subs-promise-ic {
  color: var(--teal-ink, var(--teal));
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dr-subs-promise-ic svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dr-subs-promise-body strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.dr-subs-promise-body p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 400px) {
  .dr-split-duo {
    grid-template-columns: 1fr;
  }

  .dr-travel-grid {
    grid-template-columns: 1fr 96px;
  }

  .dr-basket-card {
    grid-template-columns: auto 1fr;
  }

  .dr-basket-cta {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-pavilion,
  .dr-diorama-plane,
  .dr-diorama-hotel,
  .dr-basket-card,
  .dr-example-chip {
    transition: none !important;
    transform: none !important;
  }
}

/* اتجاه السهم في الأبواب: الدخول يساراً في RTL، والرجوع يميناً (سهم المكتبة يشير إلى الأسفل) */
.dr-corner-go svg,
.dr-diorama-go svg,
.dr-basket-cta svg { transform: rotate(90deg); }
.dr-back-btn svg { transform: rotate(-90deg); }
.dr-switch-pill span { white-space: normal; line-height: 1.25; }    /* الاسم يلتفّ سطرين بعرض 375 بدل أن يُقصّ */

/* ===== CSS: subs ===== */
.sb-kind-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--paper-2, rgba(128, 128, 128, 0.06));
  border: 1px solid var(--line, rgba(128, 128, 128, 0.14));
}

.sb-kind-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-kind-ic svg {
  width: 1.75rem;
  height: 1.75rem;
}

.sb-kind-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.sb-kind-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.sb-kind-sub {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.sb-needs-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sb-needs-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-3);
}

.sb-needs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sb-need-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal));
}

.sb-need-chip svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.sb-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.6rem;
}

.sb-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--paper-2, rgba(128, 128, 128, 0.05));
  border: 1px solid var(--line, rgba(128, 128, 128, 0.12));
}

/* شاشة الانتظار متعدّدة الخطوات (6 إلى 15 ثانية) */
.sb-loading-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sb-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.16));
}

.sb-step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.sb-step-row.is-active {
  background: var(--hue-soft, var(--teal-soft));
}

.sb-step-row.is-pending {
  opacity: 0.55;
}

.sb-step-row.is-done {
  opacity: 0.88;
}

.sb-step-ind {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.08rem;
  background: var(--paper-2, rgba(128, 128, 128, 0.12));
  color: var(--ink-2);
}

.sb-step-row.is-active .sb-step-ind {
  background: var(--hue-ink, var(--teal));
  color: var(--card);
  animation: sbStepPulse 1.4s infinite ease-in-out;
}

.sb-step-row.is-done .sb-step-ind {
  background: rgba(22, 163, 74, 0.16);
  color: #16a34a;
}

.sb-step-ind svg {
  width: 0.95rem;
  height: 0.95rem;
}

@keyframes sbStepPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.sb-step-txt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sb-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.sb-step-sub {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-3);
}

.sb-skel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.sb-skel-card {
  height: 124px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(128, 128, 128, 0.08) 25%, rgba(128, 128, 128, 0.16) 50%, rgba(128, 128, 128, 0.08) 75%);
  background-size: 200% 100%;
  animation: sbSkelShimmer 1.5s infinite linear;
}

@keyframes sbSkelShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* رأس قسم الباقات والتنبيه لاختلاف المدد */
.sb-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sb-plans-title {
  margin: 0.2rem 0 0;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
}

.sb-tax-note {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.18));
  color: var(--ink-2);
}

.sb-tax-note svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--hue-ink, var(--teal));
}

.sb-period-notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.sb-period-notice svg {
  width: 1rem;
  height: 1rem;
  color: #d97706;
  flex-shrink: 0;
}

/* بطاقة الباقة (sb-plan-card) */
.sb-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sb-plan-card {
  background: var(--card);
  border: 1px solid var(--line, rgba(128, 128, 128, 0.18));
  border-radius: 16px;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sb-plan-card.has-fit {
  border-color: var(--hue-ink, var(--teal));
}

.sb-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sb-plan-ident {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.sb-plan-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sb-provider-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--hue-ink, var(--teal));
  color: var(--card);
}

.sb-pay-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.52rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--paper-2, rgba(128, 128, 128, 0.1));
  color: var(--ink-2);
}

.sb-plan-name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}

.sb-plan-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 12px;
  background: var(--paper-2, rgba(128, 128, 128, 0.06));
  border: 1px solid var(--line, rgba(128, 128, 128, 0.12));
}

.sb-plan-price-line {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
}

.sb-plan-price-val {
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.sb-plan-price-cur {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}

.sb-plan-period {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-3);
}

.sb-plan-period.is-distinct-period {
  padding: 0.08rem 0.42rem;
  border-radius: 6px;
  background: var(--spark-soft);
  color: var(--spark-ink);
  font-weight: 700;
}

.sb-plan-fit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.3rem 0.68rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.sb-plan-fit svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.sb-plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.sb-feat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 500;
  background: var(--paper-2, rgba(128, 128, 128, 0.08));
  border: 1px solid var(--line, rgba(128, 128, 128, 0.12));
  color: var(--ink);
}

.sb-plan-foot {
  margin-top: 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line, rgba(128, 128, 128, 0.18));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sb-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.75rem;
  color: var(--ink-3);
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

a.sb-source-link:hover,
a.sb-source-link:focus-visible {
  color: var(--hue-ink, var(--teal));
  text-decoration: underline;
}

.sb-source-link svg {
  width: 0.92rem;
  height: 0.92rem;
  color: var(--hue-ink, var(--teal));
  flex-shrink: 0;
}

.sb-source-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-source-title {
  font-weight: 700;
  color: var(--ink-2);
}

.sb-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.38rem 0.72rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal));
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sb-plan-cta svg {
  width: 0.88rem;
  height: 0.88rem;
}

.sb-plan-cta:hover,
.sb-plan-cta:focus-visible {
  background: var(--hue-ink, var(--teal));
  color: var(--card);
}

@media (max-width: 420px) {
  .sb-plan-top {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-plan-price-box {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    text-align: start;
  }

  .sb-plan-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-plan-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-step-row.is-active .sb-step-ind,
  .sb-skel-card {
    animation: none !important;
  }
}

/* الأبواب الأربعة متجاورة — تصميم جيمناي (11-01) */
/* ===== CSS: d4 ===== */
.d4-sec {
  margin-top: 0.95rem;
  margin-bottom: 1.25rem;
}

.d4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.68rem;
  align-items: stretch;
}

.d4-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.58rem;
  padding: 0.85rem 0.78rem 0.78rem;
  border-radius: var(--r-m, 18px);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  box-shadow: var(--shadow, 0 2px 10px rgba(0, 0, 0, 0.04));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.d4-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 0%,
    var(--hue-soft, var(--teal-soft)),
    transparent 72%
  );
  opacity: 0.9;
  pointer-events: none;
}

.d4-card > * {
  position: relative;
  z-index: 1;
}

.d4-card:hover,
.d4-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--hue-ink, var(--teal));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* تمييز بطل المشهد: السفر والفنادق ضمن الصفّ الواحد */
.d4-card.is-hero-travel {
  border-width: 1.5px;
  border-color: var(--hue-ink, var(--teal));
  background: linear-gradient(
    165deg,
    var(--hue-soft, rgba(14, 165, 233, 0.12)) 0%,
    var(--card) 58%
  );
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.11);
}

.d4-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.d4-crest {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d4-crest svg {
  width: 1.4rem;
  height: 1.4rem;
}

.d4-crest.is-travel-crest {
  width: auto;
  height: 38px;
  padding-inline: 0.42rem;
  gap: 0.22rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.d4-crest-plane {
  display: inline-flex;
  color: var(--hue-ink, var(--teal));
  transform: rotate(-8deg);
}

.d4-crest-plane svg {
  width: 1.45rem;
  height: 1.45rem;
}

.d4-crest-hotel {
  display: inline-flex;
  color: var(--teal-ink, var(--teal));
}

.d4-crest-hotel svg {
  width: 1.22rem;
  height: 1.22rem;
}

.d4-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--hue-ink, var(--teal));
  color: var(--card);
  white-space: nowrap;
}

.d4-hero-pill svg {
  width: 0.78rem;
  height: 0.78rem;
}

.d4-go-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--paper-2, rgba(128, 128, 128, 0.1));
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d4-go-arrow svg {
  width: 0.82rem;
  height: 0.82rem;
}

.d4-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.d4-card-title {
  margin: 0;
  font-family: var(--display, var(--font));
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
}

.d4-card.is-hero-travel .d4-card-title {
  font-size: 0.98rem;
}

.d4-card-sub {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.42;
  color: var(--ink-2, var(--ink-3));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* مسرح الصور والشعارات أسفل كلّ باب */
.d4-showcase {
  margin-top: auto;
  padding-top: 0.2rem;
}

/* 1 & 4. رقائق الشعارات البيضاء الثابتة في الوضعين الفاتح والداكن */
.d4-show-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.d4-show-logos.is-subs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.d4-show-logos.is-subs-grid .d4-logo-chip:nth-child(-n + 3) {
  grid-column: span 1;
}

.d4-logo-chip {
  height: 34px;
  padding: 4px 5px;
  border-radius: 9px;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.d4-show-logos.is-subs-grid .d4-logo-chip:last-child {
  grid-column: span 2;
}

.d4-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.d4-logo-txt {
  font-size: 0.62rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. صور منتجات الطلبات اليومية (بقالة + صيدلية) */
.d4-show-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.d4-prod-thumb {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  background: var(--paper-2, rgba(128, 128, 128, 0.08));
  border: 1px solid var(--line);
  aspect-ratio: 400 / 467;
}

.d4-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.d4-card:hover .d4-prod-img {
  transform: scale(1.04);
}

.d4-prod-cap {
  position: absolute;
  inset-inline: 0.25rem;
  bottom: 0.25rem;
  padding: 0.14rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. فسيفساء صور المنتجات الحياتية السبعة */
.d4-show-mosaic {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.d4-mosaic-row.is-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.d4-mosaic-row.is-bot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
}

.d4-prod-thumb.is-featured {
  aspect-ratio: 1 / 1.05;
  border-radius: 9px;
}

.d4-prod-thumb.is-mini {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

/* استجابة الجوال والأجهزة اللوحية (2×2 بلا تمرير أفقي على 375px) */
@media (max-width: 780px) {
  .d4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }

  .d4-card {
    padding: 0.78rem 0.68rem 0.7rem;
  }

  .d4-card-title,
  .d4-card.is-hero-travel .d4-card-title {
    font-size: 0.88rem;
  }

  .d4-card-sub {
    font-size: 0.68rem;
  }

  .d4-logo-chip {
    height: 31px;
    padding: 3px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d4-card,
  .d4-prod-img {
    transition: none !important;
    transform: none !important;
  }
}

/* السهم: أيقونة chevron تشير للأسفل، فتُدار لتشير إلى «ادخل» في RTL */
.d4-go-arrow svg {
  transform: rotate(90deg);
}
.d4-how {
  margin: -0.55rem 0 1.1rem;
  text-align: center;
}
/* عمود الرئيسية 560 بكسل، والتصميم لأربعة أبوابٍ بعرض نحو 940: الشريط وحده يتّسع على الشاشات العريضة، متوسّطاً */
/* على الجوال: شارة «طيران وفنادق» لا تتّسع بجانب التاج فيكفي التاج والإطار تميّزاً، وعنوان الصورة يلتفّ ولا يُقصّ */
@media (max-width: 780px) {
  .d4-hero-pill {
    display: none;
  }
  .d4-prod-cap {
    white-space: normal;
    line-height: 1.25;
  }
}
@media (min-width: 781px) {
  .d4-sec {
    --d4-w: min(960px, calc(100vw - 48px));
    width: var(--d4-w);
    margin-inline: calc((100% - var(--d4-w)) / 2);
  }
}

/* صفحة «عن الباب»: كيف يعمل الباب والنيون — تصميم جيمناي (11-01) */
/* ===== CSS: about-how ===== */
.ahow-sec {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.ahow-lead {
  margin: 0.25rem 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* 1. خطوات الآلية الأربع */
.ahow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.ahow-step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-sizing: border-box;
  min-width: 0;
}

.ahow-step-card.is-receipt-step {
  border-color: var(--teal-line, var(--teal));
  background: linear-gradient(
    160deg,
    var(--teal-soft, rgba(13, 148, 136, 0.08)) 0%,
    var(--card) 65%
  );
}

.ahow-step-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.ahow-step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal-soft, rgba(13, 148, 136, 0.14));
  color: var(--teal-ink, var(--teal));
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ahow-step-ic {
  display: inline-flex;
  color: var(--teal-ink, var(--teal));
  flex-shrink: 0;
}

.ahow-step-ic svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ahow-step-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.ahow-step-body {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.52;
  color: var(--ink-2);
}

/* 2. مستكشف الأبواب الأربعة والنيون */
.ahow-doors-explorer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-sizing: border-box;
}

.ahow-explorer-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}

.ahow-explorer-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.ahow-explorer-sub {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.ahow-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.9rem;
}

.ahow-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg, var(--paper));
  color: var(--ink-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ahow-tab-ic {
  display: inline-flex;
  color: var(--hue-ink, var(--teal));
  flex-shrink: 0;
}

.ahow-tab-ic svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ahow-tab-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ahow-tab.is-active {
  background: var(--hue-soft, var(--teal-soft));
  border-color: var(--hue-ink, var(--teal));
  color: var(--ink);
}

.ahow-split-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
  align-items: stretch;
}

.ahow-detail-pane {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem;
  border-radius: 15px;
  background: var(--bg, rgba(128, 128, 128, 0.04));
  border: 1px solid var(--line);
  min-width: 0;
}

.ahow-door-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ahow-door-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--hue-soft, var(--teal-soft));
  color: var(--hue-ink, var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ahow-door-ic svg {
  width: 1.55rem;
  height: 1.55rem;
}

.ahow-door-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hue-ink, var(--teal));
}

.ahow-door-name {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.ahow-door-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.ahow-sources-box {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.ahow-sources-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-3);
}

.ahow-sources-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.ahow-source-pill {
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* شريط الشعارات والصور المصاحب لشرح الباب */
.ahow-media-strip {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.ahow-white-logo {
  width: 46px;
  height: 32px;
  padding: 4px 5px;
  border-radius: 8px;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ahow-white-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ahow-dept-thumb {
  width: 40px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex;
}

.ahow-dept-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. الإطار الداكن الدائم للنيون (في الوضعين الفاتح والداكن) */
.ahow-neon-frame {
  background: linear-gradient(165deg, #070d19 0%, #0d1829 60%, #091320 100%) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 16px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: inset 0 0 32px rgba(20, 184, 166, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 0;
  overflow: hidden;
}

.ahow-neon-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.ahow-neon-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ahow-neon-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
}

.ahow-neon-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
}

.ahow-neon-door-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.32);
  color: #5eead4;
}

.ahow-neon-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.ahow-neon-canvas .nh-map {
  width: 100%;           /* عناصره كلها مطلقة: بلا عرضٍ صريح ينطوي القماش على صفر داخل الـflex */
  max-width: 420px;
  margin-inline: auto;
}

.ahow-neon-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.ahow-neon-receipt-ic {
  display: inline-flex;
  color: #2dd4bf;
  flex-shrink: 0;
}

.ahow-neon-receipt-ic svg {
  width: 0.98rem;
  height: 0.98rem;
}

/* عمود الصفحة 560 بكسل، والقسم مصمّم لعرضٍ أوسع (خطوات أربع وتبويبات أربعة ونيون بجانب الشرح): يتّسع وحده على الشاشات العريضة */
@media (min-width: 781px) {
  .ahow-sec {
    --ahow-w: min(960px, calc(100vw - 48px));
    width: var(--ahow-w);
    margin-inline: calc((100% - var(--ahow-w)) / 2);
    box-sizing: border-box;
  }
}

/* استجابة الشاشات المتوسطة والجوال (375px بلا تمرير أفقي) */
@media (max-width: 780px) {
  .ahow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ahow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ahow-split-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ahow-steps {
    grid-template-columns: 1fr;
  }

  .ahow-doors-explorer {
    padding: 0.8rem;
  }

  .ahow-tab {
    padding: 0.48rem 0.35rem;
    font-size: 0.74rem;
  }

  /* النيون بمقاساتٍ ثابتة للمحور و«سعرك»: يتّسع إطاره على الجوال إلى حشوة البطاقتين حوله حتى لا يتراكبا */
  .ahow-neon-frame {
    margin-inline: calc(-0.8rem - 14px);
    padding: 0.6rem;
  }
}


/* هدوء شاشة النتيجة (حمزة 11-07): روابط أمازون وأعداد المستبعدات بطاقاتٌ على أرض البطاقة، واللون للأيقونة وحدها */
.lcard,
.exc-card {
  background: var(--card) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}
.lcard .ic {
  background: var(--hue-soft);
}
.exc-card .ic {
  background: var(--hue-soft);
}

/* عناوين الأقسام نصٌّ وحده: لا مربّع أيقونةٍ ملوّن قبل كل عنوان */
.sh .ic, .hd-ic { display: none; }
.exc-line { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.srows { list-style: none; margin: 0; padding: 0; }
.srows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.srows li:last-child { border-bottom: 0; }
.srows li b { font-weight: 500; color: var(--ink); }
.srows li span { color: var(--ink-3); font-size: 13px; text-align: end; }
.srows li.off b { color: var(--ink-3); }

/* بطاقات الأبواب بلا مربّع شعارٍ ملوّن ولا دائرة سهم؛ و«جرّب» بإطارٍ متصل رفيع لا متقطّع */
.d4-crest, .d4-go-arrow { display: none; }
.dr-try-btn { border-style: solid; border-color: var(--line); background: var(--card); color: var(--ink-2); }
.sbanner.plain, .more .sbanner.plain {
  display: block;
  background: none;
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0 4px;
  color: var(--ink);
}
.sbanner.plain .sb-line { margin: 0 0 4px; font-size: 18px; font-weight: 400; color: var(--ink); }
.sbanner.plain .sb-line b { font-weight: 500; font-family: inherit; font-size: inherit; }
.sbanner.plain p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.sbanner.plain::before, .sbanner.plain::after { content: none; }

/* بقايا مربّعات الأيقونات: رؤوس الأبواب الداخلية وبطاقات أجنحتها وسلّة البقالة ورأس النتيجة */
.dr-hero-diorama, .dr-wing-ic, .dr-sub-ic, .dr-basket-ic, .rhero > .ic { display: none; }
.chip.inf { border-style: solid; }
/* «المزيد» زرٌّ بشكل أخواته، و«اشتريته» في صفّه */
.omore > summary {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-2);
}
.oacts .i-offer-acts { margin-top: 0; }


/* ═══ لغة السطوح الموحّدة للباب (حمزة 11-07، بإشراف فيبل) ═══
   البطاقة: سطح البطاقة + إطار 1px + 12px، بلا ظل ولا تدرّج ولا كرات زخرفية.
   التعبئة اللونية في ثلاثة مواضع فقط: الزر الأساسي، شارة الخصم، والمختار.
   لون القسم يبقى في أيقونةٍ خطية أو نقطة أو كلمة. */
:root { --r-m: 12px; --r-l: 12px; --shadow: none; }
.btn.primary {
  background: var(--teal);
  border-color: var(--teal-ink);
  box-shadow: none;
}
.btn.tint { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.go { background: var(--teal); box-shadow: none; }
.chip.soft, .chip.inf { background: var(--card); border: 1px solid var(--line-2); color: var(--ink); font-weight: 400; }
svg[data-i="sparkle"]:not(.sb-step-ind svg), svg[data-i="crown"], .lbl > svg[data-i="bolt"], .btn > svg[data-i="bolt"] { display: none; }
.eyebrow { background: none; box-shadow: none; padding: 0; color: var(--teal-ink); font-weight: 500; }
.say { background: none; }
.say .mark-ic { display: none; }
.say p { background: none; border: 0; border-radius: 0; padding: 0; color: var(--ink); font-size: 15px; box-shadow: none; }
.rhero { background: none; box-shadow: none; border: 0; padding-inline: 0; }
.rhero::before, .rhero::after { content: none; }
.tile, .rcard, .vcard, .bhero, .qcard, .empty-state, .dr-pavilion {
  background: var(--card);
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tile::after, .tile::before, .rcard::before, .rcard::after, .dr-pavilion::before, .bhero::before, .bhero::after, .empty-state::before { content: none; }
.vcard.is-win { border: 1.5px solid var(--teal); box-shadow: none; }
.dr-wing-chip { background: none; box-shadow: none; font-weight: 500; color: var(--ink-3); }
.dr-wing-chip svg { display: none; }
.ahero { background: none; border: 0; box-shadow: none; padding-inline: 0; }
.asec { box-shadow: none; }
.ahow-step-card, .ahow-step-card.is-receipt-step {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.ahow-step-num { background: none; box-shadow: none; color: var(--ink-3); font-family: var(--display); font-size: 20px; font-weight: 500; }
.dr-sec-eyebrow, .dr-subs-pill-badge, .sb-kind-title, .dr-examples-label { font-weight: 500; }
.i-tool-icon-wrap { color: var(--ink-3); }
.d4-card::before { content: none; }
.d4-card.is-hero-travel { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.chips .chip.tint, .chips.tries .chip.tint { background: var(--card); border-color: var(--line-2); color: var(--ink-2); }
.sh-sub { background: none; box-shadow: none; border: 0; padding: 0; }


/* ═══ طبقة الخيوط والزجاج (حمزة 11-07) ═══
   خيوط threads.js على Canvas ثابتٍ خلف الصفحة، والسطوح زجاجٌ شفاف يُرى الخيط من تحته.
   حافة الزجاج خطّ ضوءٍ رفيع في أعلاه، لا ظلّ ولا تدرّج ملوّن. الإيصال يبقى ورقاً مصمتاً ليُقرأ. */
.shop-threads { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }     /* المقاس من threads.js: أطول من الشاشة فلا يتغيّر مع شريط العنوان */
.top { z-index: 15; }
#app, main.wrap { position: relative; z-index: 1; }
:root { --glass: color-mix(in srgb, var(--card) 74%, transparent); --glass-edge: transparent; --glass-line: color-mix(in srgb, var(--line) 70%, transparent); }
:root[data-theme="dark"] { --glass: color-mix(in srgb, var(--card) 68%, transparent); --glass-edge: rgba(255, 255, 255, 0.07); --glass-line: rgba(255, 255, 255, 0.09); }
.d4-card, .dr-pavilion, .dr-wing-card, .dr-sub-card, .understand, .qcard, .pick, details.alt, .vcard, .lcard,
.grid .card, .tile, .i-card, .i-tool-tile, .ask, .dr-ask-box, .dr-door-hero, .ahow-steps, .asec, .reviews, .talk, .say, .sec > .srows, .exc-line {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--glass-line) !important;
  box-shadow: inset 0 1px 0 var(--glass-edge) !important;
}
.receipt { position: relative; z-index: 1; }


.say { padding: 12px 14px; border-radius: 12px; }
.exc-line { padding: 10px 12px; border-radius: 12px; }
.sec > .srows { padding: 2px 12px; border-radius: 12px; }

/* «تأكّد منه»: زرٌّ بإطارٍ رفيع على عروض قوقل، وسطر ما جرى أعلى الجواب */
.btn.verify { width: 100%; justify-content: center; border: 1px solid var(--teal-line); background: var(--card); color: var(--teal-ink); font-size: 13px; font-weight: 500; padding: 8px 10px; }
.btn.verify > svg { width: 16px; height: 16px; }
.grid .card .btn.verify { margin-top: 4px; padding: 6px 8px; font-size: 12.5px; }
.verify-no { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.vnote { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--teal-line); border-radius: 12px; background: var(--card); color: var(--teal-ink); font-size: 14px; line-height: 1.7; }
.vnote svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
/* الجوال: الزجاج شفافٌ بلا ضباب — ضبابٌ فوق خيطٍ يتحرّك يُعاد حسابه كل إطار تمرير فيثقل ويرجف (حمزة 11-07) */
@media (hover: none) {
  .d4-card, .dr-pavilion, .dr-wing-card, .dr-sub-card, .understand, .qcard, .pick, details.alt, .vcard, .lcard,
  .grid .card, .tile, .i-card, .i-tool-tile, .ask, .dr-ask-box, .dr-door-hero, .ahow-steps, .asec, .reviews, .talk, .say, .sec > .srows, .exc-line {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :root { --glass: color-mix(in srgb, var(--card) 84%, transparent); }
  :root[data-theme="dark"] { --glass: color-mix(in srgb, var(--card) 80%, transparent); }
}

/* أيقونة الباب (الجوهرة بثقبٍ معيّن وخيطها) و«التسوق» بخط El Messiri — حمزة 11-07 */
.mark {
  width: 30px;
  height: 30px;
  background: url(/shop/mark.svg) center / contain no-repeat;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  margin-inline-end: 8px;
}
:root[data-theme="dark"] .mark { background-image: url(/shop/mark-dark.svg); }
.top .brand, body:has(.nh-root) .top .brand, body:has(.nh-root) .top .brand * {
  font-family: 'El Messiri', var(--font);
  font-weight: 600;
  font-size: 23px;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { background-image: url(/shop/mark-dark.svg); } }
