/* ============ الألوان ============ */
/* الوضع النهاري: سكّري دافي بدل الأبيض */
:root {
  --amber: #FDB93D;
  --dark: #171008;

  --bg: #F4E9D0;
  --fg: #171008;
  --soft: #66533A;
  --line: rgba(23, 16, 8, .16);
  --panel: #FAF1DC;
  --field: #FFF8E7;
  --brand-text: #8A4A00;

  --y-bg: linear-gradient(180deg, #FDB93D 0%, #F7DC8A 100%);   /* تدرّج ستوريات بوسالم */
  --y-title: #171008;
  --y-text: #5F3606;
  --y-head: #8A4A00;
  --y-line: rgba(95, 54, 6, .32);
  --chip: #FFF4DB;
  --chip-fg: #171008;

  --k-bg: #171008;
  --k-fg: #F4E9D0;
  --k-soft: #C9B692;

  --btn-bg: #171008;
  --btn-fg: #FDB93D;
  --tick-bg: #171008;
  --tick-fg: #FDB93D;

  --hero-bg: #F0A63A;            /* أصفر الشعار */
  --hero-fg: #171008;
  --hero-soft: #45280A;
  --hero-glow: rgba(255, 233, 170, .5);
  --pattern: url("../images/pattern-white.png");
  --pattern-o: .2;
  --pattern-y-o: .36;
  --tile: 340px;
  --mark: #FDB93D;
  --mark-y: #FFF4DB;

  --font: 'Kufam', system-ui, 'Segoe UI', Tahoma, sans-serif;   /* كوفي بأطراف مقصوصة على ستايل الشعار */
  color-scheme: light;
}

/* الوضع الليلي (الافتراضي): أسود دافي والأصفر يولّع فوقه */
[data-theme="dark"] {
  --bg: #15100A;
  --fg: #F3E6CC;
  --soft: #B9A47F;
  --line: rgba(243, 230, 204, .16);
  --panel: #1F160B;
  --field: #15100A;
  --brand-text: #FDB93D;

  --y-bg: linear-gradient(180deg, #2E1E07 0%, #15100A 100%);
  --y-title: #FDB93D;
  --y-text: #E2CC9E;
  --y-head: #FDB93D;
  --y-line: rgba(253, 185, 61, .28);
  --chip: #FDB93D;
  --chip-fg: #171008;

  --k-bg: #0B0703;
  --k-fg: #F3E6CC;
  --k-soft: #B9A47F;

  --btn-bg: #FDB93D;
  --btn-fg: #171008;
  --tick-bg: #FDB93D;
  --tick-fg: #171008;

  --hero-bg: #0E0A05;
  --hero-fg: #F3E6CC;
  --hero-soft: #D9C294;
  --hero-glow: rgba(253, 185, 61, .2);
  --pattern: url("../images/pattern-amber.png");
  --pattern-o: .085;
  --pattern-y-o: .07;
  --mark: rgba(253, 185, 61, .3);
  --mark-y: rgba(253, 185, 61, .2);
  color-scheme: dark;
}

/* ============ الأساس ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--brand-text) var(--bg); }   /* شريط التمرير بلون الهوية */
::selection { background: var(--amber); color: var(--dark); }
html.smooth { scroll-behavior: smooth; }   /* تتفعّل بعد التحميل عشان فتح رابط قسم مباشر يكون فوري */
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, h4, p, ul, dl, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
section[id] { scroll-margin-top: 56px; }

.col { max-width: 1080px; margin-inline: auto; padding-inline: 22px; }
.y { background: var(--y-bg); --mark: var(--mark-y); }
.k { background: var(--k-bg); color: var(--k-fg); --mark: rgba(253, 185, 61, .28); }
.title { font-weight: 900; font-size: clamp(40px, 11.5vw, 84px); line-height: 1.35; }
.lead { max-width: 36ch; font-size: 18px; color: var(--soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 8px 26px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn.solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn.line { border-color: currentColor; }
.btn.amber { background: var(--amber); color: var(--dark); }
.btn.wide { width: 100%; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); } }

/* حركة الدخول عند النزول: السكربت يحط wait على اللي تحت الشاشة فقط ويشيلها لما توصله */
[data-reveal] { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].wait { opacity: 0; transform: translateY(26px); }

/* خلفية الشعار المتكرر (نفس نقشة ستوريات بوسالم).
   خفيفة على الجهاز: صورة صغيرة تتكرر، والحركة إزاحة فقط على طبقة وحدة بدون إعادة رسم.
   تتوقف لما القسم يطلع من الشاشة (‎.off‎) أو لو الجهاز ما يلحق (‎.lite‎). */
.pattern { position: relative; isolation: isolate; overflow: hidden; }
.pattern::before {
  content: ""; position: absolute; z-index: -2; top: 0; left: 0;
  right: calc(var(--tile) / -2); bottom: calc(var(--tile) * -.327);
  background: var(--pattern) 0 0 / var(--tile) auto repeat; opacity: var(--pattern-o);
  /* الحركة على خطوات صغيرة (بكسل تقريباً كل خطوة) بدل إعادة تركيب الواجهة كلها 60 مرة بالثانية */
  will-change: transform; animation: drift 26s steps(170) infinite;
}
@media (min-width: 900px) { .pattern::before { animation-timing-function: steps(230); } }
@keyframes drift { to { transform: translate3d(calc(var(--tile) / -2), calc(var(--tile) * -.327), 0); } }   /* نص بلاطة بالعرض والطول = تكرار بدون قفزة */
.pattern.off::before, .lite .pattern::before { animation-play-state: paused; }

/* خط التمييز تحت العناوين: ينرسم لما يوصل الزائر للعنوان، ويمشي مع كل سطر لو العنوان سطرين */
.title span {
  padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat right 84% / 100% .3em;
  transition: background-size .8s cubic-bezier(.2, .8, .2, 1) .3s;
}
html[dir="ltr"] .title span { background-position: left 84%; }
.title.wait span, .wait .title span { background-size: 0% .3em; }

/* شريط التقدّم فوق: يبيّن وين وصلت في الصفحة */
.progress { position: fixed; z-index: 40; top: 0; inset-inline: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: right center; pointer-events: none; }
html[dir="ltr"] .progress { transform-origin: left center; }

/* ============ شريط الإعلان ============ */
.announce {
  position: relative; padding: 9px 48px; text-align: center;
  background: var(--k-bg); color: var(--amber); font-size: 14px; font-weight: 500; line-height: 1.6;
}
.announce button {
  position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%);
  width: 38px; height: 38px; font-size: 22px; line-height: 1;
}

/* ============ الشريط العلوي ============ */
.nav {
  position: sticky; top: 0; z-index: 20; height: 56px; margin-bottom: -56px;
  display: flex; align-items: center; gap: 8px; padding-inline: 18px 12px;
  color: var(--hero-fg); transition: background-color .2s;
}
.nav.scrolled { background: var(--bg); color: var(--fg); box-shadow: 0 1px 0 var(--line); }
.nav-logo { font-weight: 900; font-size: 24px; line-height: 1.4; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.nav.scrolled .nav-logo { opacity: 1; visibility: visible; }
.nav-logo .lg { height: 30px; width: auto; }
.nav-links { display: none; gap: 2px; margin-inline-start: 16px; }
.nav-links a { padding: 6px 13px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .25s, color .25s; }
.nav-links a:hover { background: var(--line); }
.nav-links a.on { background: var(--amber); color: var(--dark); font-weight: 700; }   /* القسم اللي الزائر فيه الحين */
.nav-tools { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; }
.tool {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; font-size: 13px; line-height: 1;
}
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool .moon, [data-theme="dark"] .tool .sun { display: block; }
.tool .sun, [data-theme="dark"] .tool .moon { display: none; }
.nav-order { padding: 7px 20px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 15px; text-decoration: none; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav-order { display: none; } }   /* على الشاشة الكبيرة الروابط تكفي */

/* ============ الشعار ============ */
.lg { display: block; height: auto; }
.only-dark, [data-theme="dark"] .only-light { display: none; }
[data-theme="dark"] .only-dark { display: block; }

/* ============ الواجهة ============ */
.hero { padding: 96px 22px 0; text-align: center; background: var(--hero-bg); color: var(--hero-fg); }
.hero::after {   /* توهّج ورا الشعار */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(70% 55% at 50% 26%, var(--hero-glow), transparent 70%);
}
.hero h1 { display: flex; justify-content: center; font-weight: 900; font-size: clamp(64px, 20vw, 150px); line-height: 1.25; }
/* ‎--hold‎: مع افتتاحية الدخول تتأخر حركات الواجهة لين ترتفع الستارة */
.hero h1 .lg { width: min(80vw, 440px); animation: wipe 1.1s cubic-bezier(.7, 0, .2, 1) .15s both; }
.intro-on .hero h1 .lg { animation: none; }
.hero { --mark: var(--mark-y); }
.slogan {
  position: relative; isolation: isolate; width: fit-content; margin: 12px auto 0;
  font-weight: 900; font-size: clamp(30px, 9vw, 58px); line-height: 1.4; animation: rise .7s ease calc(.8s + var(--hold, 0s)) both;
}
.slogan::after {   /* خط التمييز تحت «هوا الأصل» */
  content: ""; position: absolute; z-index: -1; inset-inline: -.12em; bottom: .14em; height: .32em; border-radius: 99px;
  background: var(--mark); transform-origin: right center; animation: mark .8s cubic-bezier(.2, .8, .2, 1) calc(1.5s + var(--hold, 0s)) both;
}
@keyframes mark { from { transform: scaleX(0); } }
html[dir="ltr"] .slogan::after { transform-origin: left center; }
.kicker { margin-top: 2px; font-weight: 500; color: var(--hero-soft); animation: rise .7s ease calc(.95s + var(--hold, 0s)) both; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; animation: rise .7s ease calc(1.1s + var(--hold, 0s)) both; }
.status, .state { display: flex; align-items: center; gap: 8px; }
.status { justify-content: center; margin-top: 18px; font-size: 14.5px; color: var(--hero-soft); }
/* نقطة الحالة: الحلقة اللي تنبض تتحرك بالتكبير والشفافية فقط (أخف من تحريك الظل) */
.dot { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #2DA84A; }
.closed > .dot { background: #D2482C; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
:not(.closed) > .dot::after { animation: ring 1.9s ease-out infinite; }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }   /* ينكتب من اليمين لليسار */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }


/* التعريف: بطاقة جنب الشعار (وتحته على الجوال) */
.about {
  margin: 34px -22px 0; padding: 30px 22px 44px; border-radius: 32px 32px 0 0;
  background: var(--panel); color: var(--fg); text-align: start;
  animation: rise .8s ease calc(.55s + var(--hold, 0s)) both;
}
.about-label {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  background: var(--amber); color: var(--dark); font-weight: 800; font-size: 13.5px; line-height: 1.6;
}
.about h2 { margin-top: 8px; font-weight: 900; font-size: clamp(38px, 10.5vw, 62px); line-height: 1.35; }
.about-text { max-width: 44ch; margin-top: 6px; font-size: 17.5px; color: var(--soft); }
.about-text.story { margin-top: 14px; white-space: pre-line; }
.facts { margin-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { flex: none; font-weight: 800; color: var(--brand-text); }
.facts dd { margin: 0; font-weight: 500; text-align: end; }

.about { position: relative; border-top: 5px solid var(--amber); }
.facts div { transition: padding-inline .25s ease; }
@media (hover: hover) { .facts div:hover { padding-inline: 10px; } }
@media (min-width: 900px) {
  :root { --tile: 460px; }
  .hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; min-height: min(94vh, 840px); padding: 104px 5vw 84px; text-align: start; }
  .slogan { margin-inline: 0; }
  .hero::after { background: radial-gradient(45% 60% at 76% 42%, var(--hero-glow), transparent 70%); }
  html[dir="ltr"] .hero::after { background: radial-gradient(45% 60% at 24% 42%, var(--hero-glow), transparent 70%); }
  .hero h1, .cta, .status { justify-content: flex-start; }
  .hero h1 .lg { width: min(34vw, 500px); }
  .about { margin: 0; padding: 44px 44px 40px; border-radius: 36px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
  .about-text { font-size: 19px; }
}

/* ============ شريط الأصناف المتحرك (مايل شوي) ============ */
/* الغلاف يقص أطراف الشريط المايل عشان ما يوسّع الصفحة بالعرض */
.ticker-wrap { position: relative; z-index: 3; overflow: hidden; margin-block: -30px; padding-block: 30px; pointer-events: none; }
.ticker {
  overflow: hidden; direction: ltr; margin-inline: -3%; padding-block: 9px;
  background: var(--tick-bg); color: var(--tick-fg); transform: rotate(-1.4deg);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.ticker-track { display: flex; align-items: center; width: max-content; will-change: transform; animation: tick 46s linear infinite; }
.ticker-wrap.off .ticker-track { animation-play-state: paused; }
/* الشريط الختامي فوق الفوتر: مايل بالعكس ويمشي بالاتجاه الثاني */
.ticker-wrap.alt .ticker { background: var(--bg); color: var(--fg); border-block: 2px solid var(--amber); transform: rotate(1.4deg); box-shadow: none; }
.ticker-wrap.alt .ticker-track { animation-direction: reverse; animation-duration: 60s; }
.ticker-wrap.alt .ticker i { background: var(--amber); opacity: 1; }
.ticker span { display: inline-flex; align-items: center; gap: 12px; padding-inline: 18px; font-weight: 900; font-size: 20px; line-height: 1.6; white-space: nowrap; }
.ticker img { width: 44px; height: 44px; flex: none; border-radius: 14px; object-fit: cover; }
.ticker i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ افتتاحية الدخول ============ */
/* مرة لكل زيارة: الشعار ينكتب على ستارة صفراء ثم الستارة ترتفع عن الموقع.
   كلها CSS وما تمسك اللمس، فلو السكربت ما اشتغل تختفي لحالها وما تحجب شي */
.intro { display: none; }
.intro-on { --hold: 1.05s; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; place-content: center; gap: 20px;
  background: var(--amber); pointer-events: none; will-change: transform;
  animation: intro-up .8s cubic-bezier(.76, 0, .24, 1) 1.3s both;
}
.intro::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 24vh; background: var(--dark); }   /* شريط غامق يلحق الستارة */
.intro img { width: min(66vw, 430px); height: auto; animation: wipe .8s cubic-bezier(.7, 0, .2, 1) .1s both; }
.intro i { width: min(34vw, 210px); height: 12px; border-radius: 99px; background: var(--dark); animation: mark .5s cubic-bezier(.2, .8, .2, 1) .75s both; }
@keyframes intro-up { to { transform: translate3d(0, calc(-100% - 25vh), 0); } }

/* ============ قائمة الجوال ============ */
/* ستارة صفراء تنزل من فوق بروابط كبيرة (نفس روح افتتاحية الدخول). على الشاشة الكبيرة روابط الشريط العلوي تكفي */
.burger { gap: 5px; align-content: center; justify-items: center; }
.burger i { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.drawer {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  padding: 12px 22px calc(26px + env(safe-area-inset-bottom));
  background: var(--amber); color: var(--dark); --pattern: url("../images/pattern-white.png"); --pattern-o: .22;
  transform: translate3d(0, -104%, 0); visibility: hidden;
  transition: transform .6s cubic-bezier(.76, 0, .24, 1), visibility 0s .6s;
}
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-logo .lg { width: auto; height: 34px; }
.drawer-x { width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: var(--amber); font-size: 26px; line-height: 1; }
.drawer-links { flex: 1; display: grid; align-content: center; justify-items: start; }
.drawer-links a {
  font-weight: 900; font-size: clamp(44px, 13.5vw, 72px); line-height: 1.4; text-decoration: none;
  opacity: 0; transform: translateY(34px); transition: opacity .25s ease, transform .25s ease;
}
.drawer.open .drawer-links a {   /* الروابط تطلع وحدة ورا الثانية بعد ما تنزل الستارة */
  opacity: 1; transform: none;
  transition: opacity .5s ease calc(.3s + var(--i) * 70ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * 70ms);
}
.drawer-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-foot { margin-top: 16px; font-weight: 600; font-size: 14.5px; opacity: .75; }
html.drawer-open { overflow: hidden; }
@media (min-width: 860px) { .burger, .drawer { display: none; } }
@media (max-width: 859px) { .nav .wide-only { display: none; } }

/* ستارة تبديل اللغة: نفس ستارة الدخول بس سريعة */
.sweep { position: fixed; inset: 0; z-index: 90; background: var(--amber) url("../images/logo-dark.svg") center / min(50vw, 320px) auto no-repeat; pointer-events: none; will-change: transform; }
.sweep::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 22vh; background: var(--dark); }

/* تبديل الوضع الليلي/النهاري: اللون الجديد ينفتح دائرة من زر التبديل */
.theme-vt, .theme-vt *, .theme-vt *::before, .theme-vt *::after { transition: none !important; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-vt::view-transition-new(root) { animation: vt-open .65s cubic-bezier(.5, 0, .2, 1); }
@keyframes vt-open { from { clip-path: circle(0 at var(--vx) var(--vy)); } to { clip-path: circle(var(--vr) at var(--vx) var(--vy)); } }

/* ============ واجهة العدني ============ */
/* مسرح غامق في الوضعين: صورة الصنف المقصوصة قدام توهّج دافي وختم يدور حولها، والزائر يبدّل بين الحار والبارد.
   كل الحركة إزاحة ودوران وشفافية فقط */
.sig { position: relative; overflow: hidden; padding-block: 84px 60px; --chip: var(--amber); --chip-fg: var(--dark); }
.sig-grid { display: grid; gap: 34px; max-width: 1180px; margin-inline: auto; padding-inline: 22px; }
.sig-stage { --h: clamp(300px, 84vw, 440px); position: relative; display: grid; place-items: center; height: var(--h); }
.sig-stage::before {   /* التوهّج ورا الصورة */
  content: ""; position: absolute; inset: -4% -12%;
  background: radial-gradient(closest-side, rgba(253, 185, 61, .3), rgba(253, 185, 61, .07) 58%, transparent 74%);
}
.sig-stage::after {   /* ظل الأرضية */
  content: ""; position: absolute; bottom: 1%; left: 27%; width: 46%; height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent);
}
/* الختم الدائري: يدور ببطء حول الصورة */
.sig-ring {
  position: absolute; top: 50%; left: 50%; width: calc(var(--h) * 1.1); height: calc(var(--h) * 1.1); margin: calc(var(--h) * -.55) 0 0 calc(var(--h) * -.55);
  overflow: visible; direction: ltr; will-change: transform; animation: spin 26s linear infinite;
}
.sig-ring text { font: 800 20px var(--font); fill: var(--amber); opacity: .62; }
@keyframes spin { to { transform: rotate(360deg); } }
.sig-shots { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; animation: bob 4.6s ease-in-out infinite alternate; }
.sig-shots[disabled] { cursor: default; }
@keyframes bob { to { transform: translate3d(0, -12px, 0); } }
.sig.off .sig-shots, .sig.off .sig-ring { animation-play-state: paused; }   /* توقف والقسم برّا الشاشة فقط */
.sig-shot {
  grid-area: 1 / 1; width: auto; height: calc(var(--h) * .9); max-width: 76%; object-fit: contain;
  opacity: 0; transform: translate3d(0, 46px, 0) rotate(10deg) scale(.8);
  transition: opacity .4s ease, transform .75s cubic-bezier(.2, .8, .2, 1.2);
}
.sig-shot.on { opacity: 1; transform: none; transition-delay: .1s; }
/* أول ما يوصل الزائر للقسم: الصورة تنزل في مكانها */
.sig-stage.wait .sig-shot.on { transform: translate3d(0, 80px, 0) rotate(-12deg) scale(.7); }

/* بخار الحار وبرودة البارد: بقع ناعمة (تدرّج دائري بدون فلاتر) تتحرك بالإزاحة والشفافية فقط */
.fx { position: absolute; z-index: 2; left: 50%; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.fx.on { opacity: 1; transition-delay: .55s; }
.fx i { position: absolute; bottom: 0; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.sig.off .fx i { animation-play-state: paused; }
.fx.steam { bottom: 66%; width: calc(var(--h) * .36); height: calc(var(--h) * .5); margin-left: calc(var(--h) * -.2); }
.fx.steam i {
  width: 50%; height: 62%; animation: steam 4.6s linear infinite;
  background: radial-gradient(closest-side, rgba(255, 246, 226, .7), rgba(255, 246, 226, .24) 55%, transparent);
}
.fx.steam i:nth-child(1) { left: 0; }
.fx.steam i:nth-child(2) { left: 34%; animation-duration: 5.4s; animation-delay: -1.6s; }
.fx.steam i:nth-child(3) { left: 54%; animation-delay: -3s; }
.fx.steam i:nth-child(4) { left: 18%; animation-duration: 6s; animation-delay: -4.1s; }
@keyframes steam {
  0% { transform: translate3d(0, 34%, 0) scale(.4, .45); opacity: 0; }
  18% { opacity: .95; }
  55% { transform: translate3d(16%, -42%, 0) scale(.9, 1.05); opacity: .55; }
  100% { transform: translate3d(-12%, -118%, 0) scale(1.35, 1.5); opacity: 0; }
}
.fx.frost { bottom: -2%; width: var(--h); height: calc(var(--h) * .26); margin-left: calc(var(--h) * -.5); }
.fx.frost i {
  left: 30%; width: 40%; height: 100%; animation: frost 6.4s linear infinite;
  background: radial-gradient(closest-side, rgba(232, 244, 255, .62), rgba(232, 244, 255, .24) 50%, transparent);
}
.fx.frost i:nth-child(1) { --dx: -78%; }
.fx.frost i:nth-child(2) { --dx: 78%; animation-delay: -1.7s; }
.fx.frost i:nth-child(3) { --dx: -40%; animation-duration: 7.4s; animation-delay: -3.3s; }
.fx.frost i:nth-child(4) { --dx: 44%; animation-duration: 7s; animation-delay: -4.9s; }
@keyframes frost {
  0% { transform: translate3d(0, -46%, 0) scale(.45, .5); opacity: 0; }
  22% { opacity: .9; }
  100% { transform: translate3d(var(--dx), 14%, 0) scale(1.5, .8); opacity: 0; }
}

.sig-text { position: relative; z-index: 1; }
.sig-tabs { display: inline-flex; gap: 4px; max-width: 100%; margin-top: 16px; padding: 4px; border: 1.5px solid rgba(243, 230, 204, .22); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.sig-tabs::-webkit-scrollbar { display: none; }
.sig-tabs button {
  position: relative; overflow: hidden; flex: none; min-height: 44px; padding: 4px clamp(13px, 4.4vw, 22px); border-radius: 999px;
  font-weight: 800; font-size: 15.5px; line-height: 1.5; white-space: nowrap; color: var(--k-soft); transition: background-color .3s, color .3s;
}
.sig-tabs [aria-pressed="true"] { background: var(--amber); color: var(--dark); }
.sig-tabs i { position: absolute; inset: 0; background: var(--dark); opacity: .16; transform: scaleX(0); transform-origin: right center; }
html[dir="ltr"] .sig-tabs i { transform-origin: left center; }
.sig.auto .sig-tabs [aria-pressed="true"] i { animation: sig-fill 6s linear both; }   /* العدّ للتبديل التلقائي */
.sig.off .sig-tabs i { animation-play-state: paused; }
@keyframes sig-fill { to { transform: scaleX(1); } }
.sig-infos { display: grid; margin-top: 4px; }
.sig-info {
  grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
}
.sig-info.on { opacity: 1; visibility: visible; transform: none; transition-delay: .14s, .14s, 0s; }
.sig-info h2 { font-weight: 900; font-size: clamp(48px, 14vw, 84px); line-height: 1.3; color: var(--amber); }
html[dir="ltr"] .sig-info h2 { font-size: clamp(42px, 11.5vw, 70px); }   /* الأسماء الإنجليزية أطول */
.sig-desc { max-width: 40ch; font-size: 17px; color: var(--k-soft); }
.sig-tags { display: flex; flex-wrap: wrap; margin-top: 14px; list-style: none; font-weight: 900; font-size: clamp(21px, 6vw, 30px); line-height: 1.55; }
.sig-tags li { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.sig-tags li:not(:last-child)::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline: 12px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.sig-info.on .sig-tags li { opacity: 1; transform: none; transition-delay: calc(.32s + var(--k) * 90ms); }   /* المكوّنات تطلع وحدة ورا الثانية */
.sig-infos.wait .sig-tags li { opacity: 0; transform: translateY(12px); transition-delay: 0s; }
.sig-note { margin-top: 8px; font-weight: 700; font-size: 14.5px; color: var(--amber); }
.sig .prices { margin-top: 18px; }
.sig-all { display: inline-block; margin-top: 24px; font-weight: 800; text-underline-offset: 6px; }
@media (min-width: 900px) {
  .sig { padding-block: 124px 100px; }
  .sig-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 72px; padding-inline: 5vw; }
  .sig-stage { --h: clamp(400px, 66vh, 580px); }
  .sig-desc { font-size: 19px; }
}

.gallery { padding-block: 40px 16px; }
.gallery-strip { display: flex; gap: 12px; overflow-x: auto; padding-inline: 22px; scrollbar-width: none; }
.gallery-strip img { height: clamp(220px, 60vw, 360px); width: auto; flex: none; border-radius: 22px; }

/* ============ المنيو ============ */
.menu { padding-block: 66px 60px; }
.menu .title, .delivery .title { color: var(--y-title); }
.menu-note { max-width: 44ch; color: var(--y-text); font-size: 14.5px; }
/* أزرار التنقّل السريع بين أقسام المنيو */
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px -22px 0; padding-inline: 22px; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 7px 18px; border: 1.5px solid var(--y-line); border-radius: 999px;
  color: var(--y-title); font-weight: 700; font-size: 14.5px; line-height: 1.6; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cats a:hover, .cats a:focus-visible { background: var(--chip); border-color: var(--chip); color: var(--chip-fg); }
section[id^="g-"] { scroll-margin-top: 60px; }
.group-head {
  margin-top: 34px; padding-block: 11px; border-block: 1px solid var(--y-line);
  text-align: center; color: var(--y-head); line-height: 1.45;
}
.group-head b { display: block; font-weight: 900; font-size: 25px; }
.group-head span { display: block; font-weight: 800; font-size: 14px; }
.group-head span[lang="en"] { letter-spacing: .16em; text-transform: uppercase; }
.item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; column-gap: 14px;
  padding-block: 18px; border-bottom: 1px dashed var(--y-line);
}
.item.noimg { grid-template-columns: minmax(0, 1fr); }
.items .item:last-child { border-bottom: 0; }
.item img { width: 104px; height: 104px; border-radius: 24px; object-fit: cover; transition: transform .4s cubic-bezier(.2, .8, .2, 1.4); }   /* الصور مستقيمة */
@media (hover: hover) { .item:hover img { transform: scale(1.08); } }
.item .prices { grid-column: 1 / -1; }
.item h4 { font-weight: 800; font-size: 21px; line-height: 1.5; color: var(--y-title); }
.item p { font-size: 14.5px; line-height: 1.7; color: var(--y-text); }
.item .note { margin-top: 2px; font-size: 13px; font-weight: 700; }
/* الأسعار: كبسولة لكل حجم */
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.price {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 17px; border-radius: 999px;
  background: var(--chip); color: var(--chip-fg); line-height: 1.4;
}
.latin { font-family: system-ui, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 800; letter-spacing: .01em; }   /* اسم بحروف إنجليزية مثل V60 */
/* الصنف كله ينضغط ويفتح نافذته (بدون علامة) */
.item[data-peek] { cursor: pointer; }

/* السعرات الحرارية: سطر صغير تحت الأسعار */
.kcal, .item .kcal { margin-top: 9px; font-size: 13px; line-height: 1.6; }
.item .kcal { grid-column: 1 / -1; }
.kcal b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sig .kcal { color: var(--k-soft); }
.price small { font-size: 13px; font-weight: 500; }
.price b { font-size: 17.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .menu { padding-block: 104px 96px; }
  .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .items .item:last-child, .items .item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .item { grid-template-columns: 124px minmax(0, 1fr); }
  .item img { width: 124px; height: 124px; }
}

/* ============ الجملة الكبيرة ============ */
/* صفحة صفراء كاملة بنقشة الشعار زي ستوريات بوسالم، والكلمات تولّع وحدة ورا الثانية مع النزول */
.say { padding-block: 80px 88px; background: var(--amber); color: var(--dark); --pattern: url("../images/pattern-white.png"); --pattern-o: .24; --mark: #FFF4DB; }
.say-text { font-weight: 900; font-size: clamp(33px, 9vw, 90px); line-height: 1.4; }
.say-line { display: block; }
.say .w { opacity: .17; transition: opacity .45s ease; }
.say .w.lit { opacity: 1; }
.say-line.last { position: relative; isolation: isolate; width: fit-content; margin-top: .2em; }
.say-line.last::after {   /* خط التمييز تحت آخر سطر: ينرسم لما تولّع كل الكلمات */
  content: ""; position: absolute; z-index: -1; inset-inline: -.1em; bottom: .16em; height: .32em; border-radius: 99px;
  background: var(--mark); transform: scaleX(0); transform-origin: right center; transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
html[dir="ltr"] .say-line.last::after { transform-origin: left center; }
.say-line.last.done::after { transform: scaleX(1); }
@media (min-width: 900px) { .say { padding-block: 130px 140px; } }

/* ============ الفروع ============ */
.branches { padding-block: 52px 66px; }
.branches .title { color: var(--amber); }
/* أقرب فرع: زر قبل التحديد، وبعده بطاقة صفراء باسم الفرع الأقرب وزر يودّي له */
.near { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }
.loc-msg { max-width: 46ch; font-size: 14px; color: var(--k-soft); }
.near.found {
  grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; gap: 16px;
  padding: 18px 22px; border-radius: 26px; background: var(--amber); color: var(--dark); animation: rise .5s ease both;
}
.near-label { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.near-label svg { width: 17px; height: 17px; }
.near-name { font-weight: 900; font-size: clamp(26px, 7.4vw, 38px); line-height: 1.35; }
.near-meta { font-weight: 600; font-size: 14.5px; }
.near.found .btn { background: var(--dark); color: var(--amber); }
@media (max-width: 560px) { .near.found { grid-template-columns: 1fr; } }

.branch-grid { display: grid; gap: 26px; margin-top: 22px; }
.branch {
  position: relative; padding: 12px 12px 24px; border: 1.5px solid rgba(243, 230, 204, .14); border-radius: 34px;
  background: rgba(243, 230, 204, .045); transition: border-color .3s, box-shadow .3s;
}
.branch.nearest { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(253, 185, 61, .16); }
.branch-body { padding: 4px 10px 0; }
.near-badge {
  position: absolute; z-index: 2; top: 24px; inset-inline-start: 24px; padding: 4px 14px; border-radius: 999px;
  background: var(--dark); color: var(--amber); font-weight: 800; font-size: 13px; line-height: 1.6;
}
.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--amber); }
/* الخريطة مرفوعة 76px عشان تختفي أزرار التكبير (الخريطة للعرض، والضغط يفتح قوقل ماب) */
.map iframe {
  position: absolute; top: -76px; left: 0; width: 100%; height: calc(100% + 76px); border: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; transition: transform .6s ease;
}
@media (hover: hover) { .map:hover iframe { transform: scale(1.06); } }
.map .pin {
  position: absolute; top: calc(50% - 38px); left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 6px solid var(--dark); border-radius: 50%; background: #FFF4DB;
}
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .map:hover img { transform: scale(1.06); } }
.map.still .pin { top: 50%; }
/* الدبوس ينزل على الخريطة أول ما توصل بطاقة الفرع */
.branch .pin { transition: transform .65s cubic-bezier(.3, 1.6, .5, 1) .4s, opacity .2s linear .4s; }
.branch.wait .pin { opacity: 0; transform: translateY(-80px); }
.map-credit { position: absolute; bottom: 6px; left: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 244, 219, .85); color: var(--dark); font-size: 11px; line-height: 1.6; direction: ltr; }
.map .pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--dark); opacity: 0; animation: ring 2.2s ease-out infinite; }
.map a { position: absolute; inset: 0; }
.branch h3 { margin-top: 14px; font-weight: 900; font-size: clamp(28px, 8vw, 40px); line-height: 1.45; }
.tag {
  display: inline-block; margin-inline-start: 10px; padding: 3px 12px; border-radius: 999px; vertical-align: middle;
  background: var(--amber); color: var(--dark); font-size: 13px; font-weight: 800; line-height: 1.5;
}
.addr { color: var(--k-soft); }
.dist { width: fit-content; margin-top: 6px; padding: 2px 12px; border-radius: 999px; background: rgba(253, 185, 61, .16); color: var(--amber); font-weight: 700; font-size: 14px; }
.state { margin-top: 10px; font-weight: 700; }
.hours-list { max-width: 360px; margin-top: 4px; list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 14px; color: var(--k-soft); }
.hours-list li.today { color: var(--k-fg); font-weight: 700; }   /* دوام اليوم بخط أوضح */
.hours-list li.today span:first-child::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.stars {
  margin-inline-end: 8px; direction: ltr; unicode-bidi: isolate; font-size: 15px; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--amber) calc(var(--r) / 5 * 100%), rgba(243, 230, 204, .25) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating { margin-top: 10px; font-size: 14.5px; color: var(--k-soft); font-variant-numeric: tabular-nums; }
.rating b { color: var(--amber); font-size: 19px; font-weight: 800; }
.rating a { margin-inline-start: 8px; color: var(--k-fg); font-weight: 700; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 900px) {
  .branches { padding-block: 92px 100px; }
  .branch-grid { grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
}

/* ============ الجمعات ============ */
.gather { padding-block: 58px 30px; }
.gather-grid { display: grid; gap: 26px; }
.gather .lead { margin-top: 8px; }
.gather .fact { margin-top: 18px; font-weight: 700; }
/* خطوات الحجز: أرقام كبيرة بينها خط، تطلع وحدة ورا الثانية */
.steps3 { margin-top: 22px; list-style: none; }
.steps3 li {
  position: relative; display: flex; align-items: center; gap: 16px; padding-block: 11px; font-weight: 700; font-size: 18px; line-height: 1.5;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.25s + var(--i) * 140ms);
}
.steps3 b {
  position: relative; z-index: 1; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); color: var(--dark); font-weight: 900; font-size: 23px; line-height: 1;
}
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 50%; bottom: -50%; inset-inline-start: 24px; width: 2px; background: var(--amber); opacity: .4; }
.wait .steps3 li { opacity: 0; transform: translateY(16px); }
.form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.f small { font-weight: 400; color: var(--soft); }
.f input, .f select, .f textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); font-size: 16px; font-weight: 400;
}
.f textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form-err { color: #D2482C; font-size: 14px; font-weight: 700; }
@media (min-width: 900px) {
  .gather { padding-block: 104px 50px; }
  .gather-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

/* ============ الأسئلة ============ */
.faq { padding-block: 34px 70px; }
.faq .title { font-size: clamp(32px, 9vw, 60px); }
.faq-list { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 17px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 17.5px; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); color: var(--dark); font-weight: 700; font-size: 21px; line-height: 1; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 60ch; padding-bottom: 20px; color: var(--soft); }
.faq details[open] p { animation: drop .35s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) { .faq { padding-block: 50px 110px; } }

/* ============ التوصيل ============ */
.delivery { padding-block: 64px 72px; }
.delivery.pattern::before { opacity: var(--pattern-y-o); }
.delivery p { font-size: 18px; color: var(--y-text); }
.delivery-grid { display: grid; gap: 34px; }
.delivery-photo { margin: 0; }
.delivery-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 30px;
  transform: rotate(-2deg); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) { .delivery-photo:hover img { transform: rotate(0) scale(1.02); } }
.arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translate(-3px, -3px); }
@media (min-width: 900px) {
  .delivery-grid.has-photo { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; }
  .delivery-photo img { aspect-ratio: 4 / 3; border-radius: 36px; }
}
.apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials { display: grid; justify-items: start; gap: 4px; margin-top: 36px; }   /* انستقرام وتيك توك تحت بعض */
.socials .insta { margin-top: 0; }
.insta { display: inline-block; margin-top: 36px;font-weight: 800; font-size: clamp(19px, 5.4vw, 28px); color: var(--y-title); text-underline-offset: 8px; }
bdi { direction: ltr; unicode-bidi: isolate; }
@media (min-width: 900px) { .delivery { padding-block: 110px; } }

/* ============ الفوتر ============ */
.foot { padding-block: 48px calc(40px + env(safe-area-inset-bottom)); }
.foot-logo { font-weight: 900; font-size: 46px; line-height: 1.4; color: var(--amber); }
.foot-logo .lg { width: min(100%, 560px); clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) .15s; }
/* الشعار ينكتب في آخر الصفحة زي ما انكتب في أولها */
.foot-logo[data-reveal].wait { opacity: 1; transform: none; }
.foot-logo.wait .lg { clip-path: inset(0 0 0 100%); }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.to-top {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--amber); color: var(--dark); font-weight: 800; font-size: 22px; line-height: 1; text-decoration: none; transition: transform .2s;
}
@media (hover: hover) { .to-top:hover { transform: translateY(-5px); } }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-block: 26px 18px; padding-block: 18px; border-block: 1px solid rgba(243, 230, 204, .16); }
.foot-nav a { font-weight: 800; font-size: 19px; text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--amber); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-links a { text-underline-offset: 5px; }
.foot small { display: block; margin-top: 22px; font-size: 14px; color: var(--k-soft); }

/* ============ الأزرار العائمة ============ */
.wa-fab {
  position: fixed; z-index: 25; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #128C7E; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: bottom .3s, transform .2s;
}
.wa-fab svg { width: 30px; height: 30px; }
@media (hover: hover) { .wa-fab:hover { transform: scale(1.1) rotate(-8deg); } }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ============ نافذة الصنف ============ */
/* صورة الصنف كبيرة في جهة، واسمه ووصفه وسعره وسعراته في الجهة الثانية، وتحتها السابق والتالي */
dialog.peek {
  width: min(1020px, calc(100% - 24px)); max-height: 94dvh; padding: 0; border: 0; border-radius: 30px;
  background: var(--panel); color: var(--fg); overflow: hidden;
}
dialog.peek[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: peek-in .42s cubic-bezier(.2, .85, .25, 1); }
dialog.peek::backdrop { background: rgba(8, 5, 2, .74); animation: peek-fade .3s ease; }
@keyframes peek-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes peek-fade { from { opacity: 0; } }
html:has(dialog[open]) { overflow: hidden; }
.peek-shot { margin: 0; background: linear-gradient(180deg, #FDB93D, #F8DC8C); }
/* على الجوال الصورة كاملة (contain) وخلفيتها نفس تدرّج الإطار فما يبان لها حد */
.peek-shot img { display: block; width: 100%; height: min(32dvh, 78vw); object-fit: contain; }
.peek-shot.nophoto { display: grid; place-items: center; min-height: 150px; }   /* صنف بدون صورة: الشعار مكانها */
.peek-shot .peek-logo { width: 56%; height: auto; min-height: 0; object-fit: contain; }
.peek-body { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 18px 20px 0; overflow-y: auto; overscroll-behavior: contain; }
.peek-x {
  position: absolute; z-index: 1; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--line); font-size: 24px; line-height: 1;
}
.peek-cat { padding-inline-end: 52px; font-weight: 800; font-size: 14.5px; color: var(--brand-text); }
.peek h2 { margin-top: 2px; padding-inline-end: 52px; font-weight: 900; font-size: clamp(32px, 8.6vw, 50px); line-height: 1.35; }
.peek-desc { margin-top: 6px; color: var(--soft); }
.peek-note { margin-top: 6px; font-weight: 700; font-size: 14.5px; }
.peek-facts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.peek-facts div { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 18px; line-height: 1.5; }
.peek-facts small { font-size: 13px; color: var(--soft); }
.peek-facts b { font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }
.peek-facts p small { font-weight: 700; }
.peek-facts .kc { margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line); }
.peek-facts .kc b { font-size: 19px; }
.peek-line { margin-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--soft); }
.peek-line b { color: var(--fg); font-weight: 900; font-size: 18px; }
.peek-share { margin-top: 14px; }
/* السابق والتالي ثابتين تحت حتى لو المحتوى طويل وينسحب */
.peek-nav {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-block: 14px 16px; background: var(--panel);
}
.peek-nav span { font-weight: 700; font-size: 14px; color: var(--soft); direction: ltr; font-variant-numeric: tabular-nums; }
.peek-nav button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 800; transition: background-color .2s, border-color .2s;
}
.peek-nav button:hover { background: var(--amber); border-color: var(--amber); color: var(--dark); }
.peek-nav i { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }   /* سهم يأشر لجهة الزر */
.peek-nav button:last-child i { transform: rotate(-135deg); }
html[dir="ltr"] .peek-nav i { transform: rotate(-135deg); }
html[dir="ltr"] .peek-nav button:last-child i { transform: rotate(45deg); }
/* عند التقليب: المحتوى يدخل من جديد */
.peek.swap .peek-shot img { animation: peek-shot .45s cubic-bezier(.2, .8, .2, 1); }
.peek.swap .peek-body > :not(.peek-x):not(.peek-nav) { animation: rise .4s ease both; }
@keyframes peek-shot { from { opacity: 0; transform: scale(1.06); } }
@media (min-width: 820px) {
  dialog.peek { max-height: min(94dvh, 760px); }
  dialog.peek[open] { grid-template-rows: none; grid-template-columns: 1.02fr 1fr; }
  .peek-shot img { height: 100%; min-height: 520px; object-fit: cover; }
  .peek-body { padding: 34px 36px 0; }
  .peek-nav { padding-bottom: 26px; }
  .peek-x { top: 22px; inset-inline-end: 22px; }
}

/* ============ حركة أقل + طباعة ============ */
@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  [data-reveal], [data-reveal].wait { opacity: 1; transform: none; transition: none; }
  .sig-shot, .sig-info, .sig-tags li { transition: none; }
  .sig-infos.wait .sig-info.on .sig-tags li { opacity: 1; transform: none; }
  .sig-stage.wait .sig-shot.on { transform: none; }
}
@media print {
  .announce, .nav, .ticker-wrap, .map, .actions, .near, .gather, .delivery, .cta, .wa-fab, .pattern::before, .sig, .say, .intro, .drawer { display: none !important; }
  [data-reveal].wait { opacity: 1; transform: none; }
  .foot-logo.wait .lg { clip-path: none; }
}
