/* ============================================================
   REZOVA Restaurant — الثيم الأساسي (أسود · ذهبي)
   Taste Beyond Expectation

   مبني على الخصائص المنطقية (inline-start/end) ليعمل بالاتجاهين:
   عربي RTL و English LTR دون أي تنسيق مكرّر.
   ============================================================ */

:root {
  /* --- الذهبي --- */
  --gold-100: #f9edc6;
  --gold-200: #f0dda0;
  --gold-300: #e3c66a;
  --gold-500: #d4af37;
  --gold-600: #c19a2b;
  --gold-700: #a97c14;
  --gold-900: #6b4d09;
  --gold-grad: linear-gradient(135deg, #f7e6b4 0%, #d9b543 34%, #a97c14 62%, #e8cd7a 85%, #c39b2a 100%);
  --gold-soft: linear-gradient(135deg, #e3c66a, #b8860b);

  /* --- الأسود والأسطح --- */
  --bg: #0a0908;
  --bg-2: #100e0b;
  --surface: #16130f;
  --surface-2: #1c1813;
  --surface-3: #241f17;

  /* --- الخطوط والحدود --- */
  --line: rgba(212, 175, 55, .16);
  --line-2: rgba(212, 175, 55, .30);
  --line-3: rgba(212, 175, 55, .55);

  /* --- النصوص --- */
  --ink: #f4eee1;
  --ink-2: #cfc4ae;
  --muted: #928772;

  /* --- حالات --- */
  --danger: #e05a52;
  --danger-bg: rgba(224, 90, 82, .12);
  --ok: #57c98a;
  --wa: #25d366;

  /* --- الظلال --- */
  --sh-sm: 0 2px 10px rgba(0, 0, 0, .45);
  --sh-md: 0 10px 34px rgba(0, 0, 0, .55);
  --sh-lg: 0 26px 70px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(212, 175, 55, .22), 0 12px 40px rgba(212, 175, 55, .10);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 980px;

  --font: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-display: "El Messiri", "Cairo", serif;
  --font-latin: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

/* الوجه اللاتيني للعناوين عند تشغيل الإنجليزية */
html[data-lang="en"] {
  --font-display: "Cormorant Garamond", "Georgia", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 92% -8%, rgba(212, 175, 55, .10), transparent 62%),
    radial-gradient(760px 460px at -6% 108%, rgba(212, 175, 55, .07), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body { overflow-x: hidden; }
body.intro-open { overflow: hidden; height: 100vh; }

/* الوسم hidden يجب أن يتغلّب على أي display في الثيم
   (سطور الخصم/التأمين وشارة الطلبات تُخفى عبره من الجافاسكربت) */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; }

::selection { background: rgba(212, 175, 55, .3); color: #fff; }

/* شريط التمرير */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-700), var(--gold-900)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold-500), var(--gold-700)); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }

/* النص الذهبي المتدرّج */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* الزخرفة الماسية ◆◆◆ (من الشعار) */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold-500);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 1; max-width: 120px;
  background: linear-gradient(to var(--_o, right), transparent, var(--gold-700), transparent);
}
.ornament i { font-style: normal; font-size: 9px; letter-spacing: 6px; opacity: .95; }

/* شريط تقدم التمرير */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 2px; width: 0;
  background: var(--gold-grad);
  z-index: 9999; transition: width .12s linear;
  box-shadow: 0 0 12px rgba(212, 175, 55, .7);
}

/* ============================================================
   شاشة الافتتاح
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity .7s ease, transform .7s ease;
}
.intro.leaving { opacity: 0; transform: scale(1.06); pointer-events: none; }

.intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .30; filter: saturate(.55) contrast(1.05) brightness(.7);
}
.intro-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 58% at 50% 44%, rgba(10, 9, 8, .35), rgba(10, 9, 8, .92) 78%),
    linear-gradient(180deg, rgba(10, 9, 8, .8), rgba(10, 9, 8, .55) 40%, rgba(10, 9, 8, .96));
}
.intro-bokeh { position: absolute; inset: 0; overflow: hidden; }
.intro-bokeh span {
  position: absolute; bottom: -140px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(249, 237, 198, .55), rgba(212, 175, 55, .06) 68%, transparent 72%);
  animation: floatUp linear infinite;
  filter: blur(.4px);
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  12% { opacity: .75; }
  88% { opacity: .5; }
  100% { transform: translateY(-118vh) scale(1.15); opacity: 0; }
}

.intro-content {
  position: relative; z-index: 2;
  text-align: center; padding: 26px 20px;
  max-width: 620px;
  animation: introIn 1s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes introIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.intro-logo {
  position: relative; width: 152px; height: 152px;
  margin-inline: auto; margin-bottom: 18px;
  display: grid; place-items: center;
}
.intro-logo .mark-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(212, 175, 55, .28));
  animation: markIn 1.1s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes markIn { from { opacity: 0; transform: scale(.82) rotate(-6deg); } to { opacity: 1; transform: none; } }
.intro-logo .ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--line-2);
  animation: ringPulse 3.4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.07); opacity: .18; }
}

.intro-kicker {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-300); opacity: .85; margin-bottom: 8px;
}
.intro-title {
  font-family: var(--font-latin);
  font-size: clamp(46px, 13vw, 86px);
  font-weight: 700; line-height: 1; letter-spacing: .1em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-inline-start: .1em; /* تعويض التباعد الأخير */
}
.intro-sub {
  margin-top: 12px; margin-bottom: 4px;
  font-size: clamp(11px, 3vw, 14px); letter-spacing: .5em;
  text-transform: uppercase; color: var(--ink-2);
  padding-inline-start: .5em;
}
.intro-tag {
  color: var(--gold-200); opacity: .9;
  font-size: clamp(13px, 3.6vw, 16px);
  letter-spacing: .18em; margin-top: 14px;
}
.intro .ornament { margin: 16px auto 0; max-width: 340px; }

.intro-btn {
  position: relative; overflow: hidden;
  margin: 30px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: fit-content;
  padding: 15px 40px; border: 0; border-radius: 999px;
  background: var(--gold-grad);
  color: #14100a; font-weight: 800; font-size: 16px;
  box-shadow: 0 14px 40px rgba(212, 175, 55, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.intro-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(212, 175, 55, .42); }
.intro-btn:active { transform: translateY(0); }
.intro-btn .arrow { transition: transform .25s ease; font-size: 19px; }
html[dir="ltr"] .intro-btn .arrow { transform: scaleX(-1); }
.intro-btn:hover .arrow { transform: translateX(-5px); }
html[dir="ltr"] .intro-btn:hover .arrow { transform: scaleX(-1) translateX(-5px); }
.intro-btn .shine {
  position: absolute; inset-block: 0; inset-inline-start: -60%;
  width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { inset-inline-start: -60%; } 55%, 100% { inset-inline-start: 130%; } }

.intro-hint {
  margin-top: 20px; font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: .06em;
}
.intro-hint .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 0 rgba(212, 175, 55, .6);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); }
  70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* زوايا ذهبية */
.intro-corner {
  position: absolute; width: 62px; height: 62px; z-index: 3;
  border: 1px solid var(--line-2); opacity: .8;
}
.intro-corner.tl { inset-block-start: 26px; inset-inline-start: 26px; border-inline-end: 0; border-block-end: 0; }
.intro-corner.tr { inset-block-start: 26px; inset-inline-end: 26px; border-inline-start: 0; border-block-end: 0; }
.intro-corner.bl { inset-block-end: 26px; inset-inline-start: 26px; border-inline-end: 0; border-block-start: 0; }
.intro-corner.br { inset-block-end: 26px; inset-inline-end: 26px; border-inline-start: 0; border-block-start: 0; }

/* ============================================================
   الهيدر
   ============================================================ */
.site { opacity: 1; }
body.intro-open .site { opacity: 0; }
body.entering .site { animation: siteIn .8s ease both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(212, 175, 55, .16), transparent 62%),
    linear-gradient(180deg, #14110d, #0d0b09);
  padding: 30px 0 62px;
  border-block-end: 1px solid var(--line-2);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .7;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand-badge {
  width: 74px; height: 74px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #1f1a12, #0c0a08);
  border: 1px solid var(--line-2);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 22px rgba(212, 175, 55, .12), var(--sh-sm);
}
.brand-badge img { width: 84%; height: 84%; object-fit: contain; }

.brand-text { flex: 1; min-width: 190px; }
.brand-text h1 {
  font-family: var(--font-latin);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 700; line-height: 1.1; letter-spacing: .08em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html[data-lang="ar"] .brand-text h1 { font-family: var(--font-display); letter-spacing: 0; }
.brand-text .tagline {
  color: var(--ink-2); font-size: clamp(12px, 3.2vw, 14.5px);
  letter-spacing: .14em; margin-top: 3px;
}

.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  background: rgba(212, 175, 55, .07);
  border: 1px solid var(--line-2);
  color: var(--gold-200); font-size: 13.5px; font-weight: 600;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.chip:hover {
  background: rgba(212, 175, 55, .16);
  border-color: var(--line-3); color: var(--gold-100);
  transform: translateY(-2px);
}
.lang-chip { font-weight: 700; letter-spacing: .04em; }
.lang-chip b { font-weight: 800; }

/* حافة مموّجة أسفل الهيدر */
.hero-wave {
  position: absolute; inset-block-end: -1px; inset-inline: 0; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ============================================================
   شريط البحث والفئات
   ============================================================ */
.toolbar {
  position: sticky; inset-block-start: 0; z-index: 60;
  padding: 14px 0 10px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.toolbar.scrolled {
  background: rgba(10, 9, 8, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  padding: 9px 0 8px;
  border-block-end: 1px solid var(--line);
}
.toolbar-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--sh-md);
}
.toolbar.scrolled .toolbar-card { background: transparent; border-color: transparent; box-shadow: none; padding: 4px 0; }

.search { position: relative; margin-bottom: 10px; }
.search .ico {
  position: absolute; inset-inline-start: 14px; inset-block-start: 50%;
  transform: translateY(-50%); opacity: .65; font-size: 15px;
}
.search input {
  width: 100%; padding: 12px 16px; padding-inline-start: 42px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink); font-size: 14.5px;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: 0; border-color: var(--line-3);
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}

.cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  transition: all .22s ease;
}
.cat-pill:hover { border-color: var(--line-2); color: var(--gold-200); }
.cat-pill.active {
  background: var(--gold-grad); border-color: transparent;
  color: #14100a; font-weight: 800;
  box-shadow: 0 6px 20px rgba(212, 175, 55, .28);
}

/* ============================================================
   الأقسام والأطباق
   ============================================================ */
main { padding: 20px 0 90px; }

.section { margin-bottom: 42px; scroll-margin-top: 120px; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(212, 175, 55, .10), rgba(212, 175, 55, .02) 60%, transparent);
  border-inline-start: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
}
.section-head .ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 38% 30%, #241e15, #100d0a);
  border: 1px solid var(--line-2);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.6vw, 25px); font-weight: 700;
  color: var(--gold-100); line-height: 1.25;
}
.section-head .note { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.section-head .count {
  margin-inline-start: auto; flex: none;
  font-size: 12px; font-weight: 700; color: var(--gold-300);
  background: rgba(212, 175, 55, .09);
  border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.items {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.dish {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .25, 1), border-color .3s ease, box-shadow .3s ease;
}
.dish::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .5), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.dish:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(212, 175, 55, .12);
}
.dish:hover::before { opacity: 1; }
.dish.out { opacity: .55; }

.dish-media {
  position: relative; aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 42%, #1c1811, #0d0b09);
  overflow: hidden;
}
.dish-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .8, .25, 1);
}
.dish:hover .dish-media img { transform: scale(1.07); }
.dish-media img.zoomable { cursor: zoom-in; }
.dish-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, .55));
  pointer-events: none;
}

.dish-out {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2;
  background: rgba(10, 9, 8, .82); color: var(--danger);
  border: 1px solid rgba(224, 90, 82, .5);
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.dish-disc-badge {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2;
  background: var(--gold-grad); color: #14100a;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}

.dish-info { padding: 13px 15px 8px; flex: 1; }
.dish-name {
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.35;
}
.dish-desc {
  margin-top: 5px; font-size: 12.8px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dish-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px 14px;
  border-block-start: 1px dashed var(--line);
}
.dish-price { font-size: 17px; font-weight: 800; color: var(--gold-300); white-space: nowrap; }
.dish-price span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.dish-price.free { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.dish-price.discounted { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dp-old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 600; }
.dp-new { color: var(--gold-200); }

.dish-add {
  flex: none; border: 0; border-radius: 999px;
  padding: 9px 18px;
  background: var(--gold-grad); color: #14100a;
  font-size: 13.5px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.dish-add:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 175, 55, .4); }
.dish-add:active { transform: translateY(0); }
body.store-closed .dish-add { filter: grayscale(.85) brightness(.75); }

.pulse { animation: pulseA .45s ease; }
@keyframes pulseA { 0% { transform: scale(1); } 45% { transform: scale(.9); } 100% { transform: scale(1); } }

.empty {
  text-align: center; padding: 64px 20px; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: rgba(255, 255, 255, .015);
}
.empty b { color: var(--gold-200); }

/* ظهور تدريجي عند التمرير */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .25, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   الفوتر
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0d0b09, #070605);
  border-block-start: 1px solid var(--line-2);
  padding: 34px 0 26px;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 20px;
  border-block-end: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 13px; }
.foot-logo {
  width: 58px; height: 58px; border-radius: 50%; object-fit: contain;
  background: radial-gradient(circle at 40% 32%, #1c1710, #0a0907);
  border: 1px solid var(--line-2); padding: 4px;
}
.foot-brand-txt h3 {
  font-family: var(--font-latin); font-size: 22px; letter-spacing: .1em; font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
html[data-lang="ar"] .foot-brand-txt h3 { font-family: var(--font-display); letter-spacing: 0; }
.foot-brand-txt .addr { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.foot-social { display: flex; gap: 10px; }
.foot-soc {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: all .25s ease;
}
.foot-soc svg { width: 21px; height: 21px; }
.foot-soc svg [fill="#fff"], .foot-soc svg path { fill: var(--gold-300); }
.foot-soc svg[stroke] { stroke: var(--gold-300); }
.foot-soc:hover { transform: translateY(-3px); border-color: var(--line-3); background: rgba(212, 175, 55, .12); }
.foot-soc.whatsapp:hover { border-color: rgba(37, 211, 102, .6); }
.fs-tip {
  position: absolute; inset-block-end: calc(100% + 8px); inset-inline-start: 50%;
  transform: translateX(50%) translateY(4px);
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 9px; font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all .2s ease;
}
html[dir="ltr"] .fs-tip { transform: translateX(-50%) translateY(4px); }
.foot-soc:hover .fs-tip { opacity: 1; transform: translateX(50%) translateY(0); }
html[dir="ltr"] .foot-soc:hover .fs-tip { transform: translateX(-50%) translateY(0); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 18px;
}
.copyright { font-size: 12.5px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { font-size: 12.5px; color: var(--ink-2); transition: color .2s ease; }
.foot-links a:hover { color: var(--gold-300); }

/* بطاقات التواصل (اختيارية) */
.contact-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .22s ease;
}
.contact-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.contact-card .ci { font-size: 20px; }
.contact-card .cl { font-size: 11.5px; color: var(--muted); }
.contact-card .cv { font-size: 13.5px; color: var(--ink); font-weight: 600; }

/* ============================================================
   شريط التواصل الجانبي
   ============================================================ */
.social-rail {
  position: fixed; inset-inline-start: 14px; inset-block-end: 20px;
  z-index: 70; display: flex; flex-direction: column; gap: 9px;
}
body.intro-open .social-rail { display: none; }
.srl {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 14, 11, .9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  animation: railIn .5s ease both;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
@keyframes railIn { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
.srl svg { width: 19px; height: 19px; }
.srl svg [fill="#fff"], .srl svg path { fill: var(--gold-300); }
.srl svg[stroke] { stroke: var(--gold-300); }
.srl:hover { transform: scale(1.12); border-color: var(--line-3); background: rgba(212, 175, 55, .16); }
.srl-tip {
  position: absolute; inset-inline-start: calc(100% + 9px); inset-block-start: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 8px;
  padding: 3px 9px; font-size: 11.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all .22s ease;
}
html[dir="rtl"] .srl-tip { transform: translateY(-50%) translateX(6px); }
.srl:hover .srl-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 600px) { .social-rail { display: none; } }

/* ============================================================
   زر السلة العائم + تأثير الطيران
   ============================================================ */
.fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
.fly-item {
  position: fixed; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
  transition: transform .72s cubic-bezier(.5, -.2, .5, 1), opacity .72s ease;
}
.fly-item img { width: 100%; height: 100%; object-fit: cover; }

.cart-fab {
  position: fixed; inset-block-end: 20px; inset-inline-end: 18px; z-index: 300;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--gold-grad); color: #14100a;
  font-weight: 800; font-size: 14.5px;
  box-shadow: 0 14px 36px rgba(212, 175, 55, .34);
  animation: fabIn .45s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes fabIn { from { opacity: 0; transform: translateY(22px) scale(.85); } to { opacity: 1; transform: none; } }
.cart-fab .cf-ico { font-size: 17px; }
.cart-fab .cf-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: #14100a; color: var(--gold-300);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
}
.cart-fab.bump { animation: bump .5s ease; }
@keyframes bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.14); } 65% { transform: scale(.96); } }

/* ============================================================
   لوحة السلة
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(4, 4, 3, .72);
  backdrop-filter: blur(4px);
  overflow: hidden;   /* اللوحة مُزاحة خارج الشاشة قبل الفتح — بدونه تظهر شريط تمرير أفقي */
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(430px, 100%);
  background: linear-gradient(180deg, #14110d, #0b0a08);
  border-inline-start: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-lg);
  transition: transform .38s cubic-bezier(.2, .8, .25, 1);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
html[dir="ltr"] .drawer { transform: translateX(100%); }
.drawer-overlay.show .drawer { transform: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-block-end: 1px solid var(--line-2);
  background: rgba(212, 175, 55, .05);
}
.drawer-head h3 {
  font-family: var(--font-display); font-size: 18px; color: var(--gold-100); font-weight: 700;
}
.drawer-head .x {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); font-size: 15px;
  transition: all .2s ease;
}
.drawer-head .x:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }

.cart-empty {
  text-align: center; padding: 56px 16px; color: var(--muted);
  font-size: 16px; line-height: 2.1;
}
.cart-empty small { font-size: 12.5px; opacity: .75; }

.cart-row {
  display: flex; gap: 11px; padding: 11px 0;
  border-block-end: 1px solid var(--line);
}
.cart-row:last-child { border-block-end: 0; }
.cr-thumb {
  width: 62px; height: 62px; flex: none; border-radius: 12px;
  overflow: hidden; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 45% 35%, #1d1811, #0c0a08);
  border: 1px solid var(--line);
}
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-main { flex: 1; min-width: 0; }
.cr-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.cr-price { font-size: 12.5px; color: var(--gold-300); margin-top: 2px; font-weight: 600; }
.cr-old { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.cr-new { color: var(--gold-200); }
.cr-badge {
  background: rgba(212, 175, 55, .15); color: var(--gold-200);
  border: 1px solid var(--line-2);
  padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
}
.cr-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.qty {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 29px; height: 29px; border: 0; background: transparent;
  color: var(--gold-300); font-size: 16px; font-weight: 700; line-height: 1;
  transition: background .18s ease;
}
.qty button:hover { background: rgba(212, 175, 55, .16); }
.q-num { min-width: 26px; text-align: center; font-weight: 800; font-size: 13.5px; }
.cr-del {
  border: 1px solid rgba(224, 90, 82, .35); background: transparent;
  color: var(--danger); border-radius: 999px;
  padding: 4px 12px; font-size: 11.5px; font-weight: 700;
  transition: all .2s ease;
}
.cr-del:hover { background: var(--danger-bg); border-color: var(--danger); }

/* ---- تتبّع الطلب ---- */
.order-track { padding: 4px 0 14px; border-block-end: 1px solid var(--line); margin-bottom: 12px; }
.track-title { font-size: 13px; font-weight: 800; color: var(--gold-200); margin-bottom: 9px; letter-spacing: .04em; }
.track-card {
  background: rgba(212, 175, 55, .05);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px; margin-bottom: 9px;
}
.track-card.cancelled { background: var(--danger-bg); border-color: rgba(224, 90, 82, .35); }
.track-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-2);
}
.track-head b { color: var(--gold-200); font-family: ui-monospace, monospace; font-size: 12px; }
.track-dismiss {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 13px; line-height: 1;
}
.track-dismiss:hover { color: var(--danger); border-color: var(--danger); }
.track-now { display: flex; align-items: center; gap: 8px; margin: 8px 0 9px; }
.tn-ico { font-size: 18px; }
.tn-label { font-size: 13.5px; font-weight: 700; color: var(--gold-100); }
.track-progress { display: flex; align-items: center; gap: 3px; }
.tp-node {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line);
}
.tp-node.done { background: var(--gold-600); border-color: var(--gold-500); }
.tp-node.active {
  background: var(--gold-300); border-color: var(--gold-200);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .18);
  animation: nodePulse 1.7s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, .05); }
}
.tp-line { flex: 1; height: 2px; background: rgba(255, 255, 255, .09); border-radius: 2px; }
.tp-line.done { background: var(--gold-600); }
.track-driver { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.track-driver b { color: var(--gold-200); }
.track-cancelled { margin-top: 7px; font-size: 13px; color: var(--danger); font-weight: 600; }

/* ---- إتمام الطلب ---- */
.checkout {
  border-block-start: 1px solid var(--line-2);
  padding: 14px 16px 18px;
  background: rgba(0, 0, 0, .35);
}
.loyal-banner {
  background: linear-gradient(90deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .05));
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 9px 12px; margin-bottom: 11px;
  font-size: 12.5px; color: var(--gold-100);
}
.loyal-banner b { color: var(--gold-200); }

.co-total { margin-bottom: 12px; }
.co-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; font-size: 13.5px; color: var(--ink-2);
}
.co-line b { color: var(--ink); font-weight: 700; }
.co-line small { font-size: 11px; color: var(--muted); font-weight: 500; }
.co-line.save b, .co-line.loyal b { color: var(--gold-300); }
.co-line.dep { color: var(--muted); }
.co-line.grand {
  margin-top: 7px; padding-top: 11px;
  border-block-start: 1px solid var(--line-2);
  font-size: 15px; color: var(--gold-100); font-weight: 700;
}
.co-line.grand b { color: var(--gold-200); font-size: 20px; }
.co-line.grand small { color: var(--gold-600); }

.dep-note {
  background: rgba(212, 175, 55, .07); border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 12px;
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.dep-note b { color: var(--gold-200); }

.co-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--muted);
  margin-bottom: 4px; font-weight: 600;
}
.field input, .field textarea {
  width: 100%; padding: 11px 13px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink); font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 62px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b6255; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--line-3);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .1);
}

.co-submit {
  width: 100%; padding: 14px; border: 0; border-radius: 999px;
  background: var(--gold-grad); color: #14100a;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 12px 32px rgba(212, 175, 55, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.co-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212, 175, 55, .42); }
.co-submit:disabled { filter: grayscale(.6) brightness(.8); cursor: wait; }
body.store-closed .co-submit { filter: grayscale(.85) brightness(.7); pointer-events: none; }

/* ============================================================
   نافذة نجاح الطلب
   ============================================================ */
.ok-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 4, 3, .82); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.ok-overlay.show { opacity: 1; pointer-events: auto; }
.ok-card {
  width: min(420px, 100%); text-align: center;
  background: linear-gradient(180deg, #17130e, #0c0a08);
  border: 1px solid var(--line-2);
  border-radius: 24px; padding: 30px 24px 24px;
  box-shadow: var(--sh-lg);
  transform: translateY(18px) scale(.96); transition: transform .35s cubic-bezier(.2, .8, .25, 1);
}
.ok-overlay.show .ok-card { transform: none; }
.ok-badge {
  width: 66px; height: 66px; margin: 0 auto 14px;
  border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 40% 32%, rgba(212, 175, 55, .25), rgba(212, 175, 55, .06));
  border: 1px solid var(--line-3);
}
.ok-card h3 { font-family: var(--font-display); font-size: 21px; color: var(--gold-100); margin-bottom: 12px; }
.ok-card p { font-size: 12.5px; color: var(--muted); }
.ok-num {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 21px; font-weight: 800; letter-spacing: .08em;
  color: var(--gold-200); direction: ltr;
  background: rgba(212, 175, 55, .07);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 10px; margin: 7px 0 12px;
}
.ok-sub { line-height: 1.8; margin-bottom: 14px; }
.ok-tray {
  background: rgba(212, 175, 55, .07); border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 13px;
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.ok-tray b { color: var(--gold-200); }
.ok-wa {
  display: block; padding: 12px; border-radius: 999px; margin-bottom: 9px;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .45);
  color: var(--wa); font-size: 14px; font-weight: 700;
  transition: background .2s ease;
}
.ok-wa:hover { background: rgba(37, 211, 102, .22); }
.ok-close {
  width: 100%; padding: 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); font-size: 14px; font-weight: 700;
  transition: all .2s ease;
}
.ok-close:hover { border-color: var(--line-3); color: var(--gold-200); }

/* ============================================================
   عارض الصورة
   ============================================================ */
.img-lightbox {
  position: fixed; inset: 0; z-index: 950;
  display: grid; place-items: center; padding: 60px 16px 16px;
  background: rgba(3, 3, 2, .95);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.img-lightbox.show { opacity: 1; pointer-events: auto; }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: var(--sh-lg);
}
.lb-back {
  position: absolute; inset-block-start: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  background: rgba(22, 19, 15, .9); border: 1px solid var(--line-2);
  color: var(--gold-200); font-size: 13.5px; font-weight: 700;
  transition: all .2s ease;
}
.lb-back:hover { border-color: var(--line-3); background: rgba(212, 175, 55, .14); }
html[dir="ltr"] .lb-back span { transform: scaleX(-1); display: inline-block; }

/* ============================================================
   نافذة الخريطة
   ============================================================ */
.map-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 4, 3, .8); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.map-overlay.show { opacity: 1; pointer-events: auto; }
.map-card {
  width: min(400px, 100%);
  background: linear-gradient(180deg, #17130e, #0c0a08);
  border: 1px solid var(--line-2);
  border-radius: 22px; padding: 20px;
  box-shadow: var(--sh-lg);
  transform: translateY(14px); transition: transform .3s ease;
}
.map-overlay.show .map-card { transform: none; }
.map-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.map-head h3 { font-family: var(--font-display); font-size: 17px; color: var(--gold-100); }
.map-head .x {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 14px;
}
.map-head .x:hover { border-color: var(--danger); color: var(--danger); }
.map-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.map-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  transition: all .22s ease;
}
.map-opt:hover { border-color: var(--line-3); background: rgba(212, 175, 55, .09); transform: translateY(-2px); }
.mo-ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px; overflow: hidden;
  background: #fff; display: grid; place-items: center; padding: 5px;
}
.mo-ico img { width: 100%; height: 100%; object-fit: contain; }
.mo-txt b { display: block; font-size: 14px; color: var(--ink); }
.mo-txt small { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   التنبيهات
   ============================================================ */
.note-toast {
  position: fixed; inset-block-end: 86px; inset-inline: 16px;
  margin-inline: auto; max-width: 380px; z-index: 700;
  background: rgba(22, 19, 15, .97);
  border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 18px;
  color: var(--ink); font-size: 13px; text-align: center;
  box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .25, 1);
}
.note-toast.show { opacity: 1; transform: none; }
.note-toast b { color: var(--gold-200); }
.note-toast .nt-ico { margin-inline-end: 5px; }
.note-toast.add-toast { border-color: rgba(87, 201, 138, .4); }

/* ============================================================
   الاستجابة للشاشات
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding: 22px 0 50px; }
  .hero-inner { gap: 12px; }
  .brand-badge { width: 60px; height: 60px; }
  .hero-actions { width: 100%; }
  .chip { flex: 1; justify-content: center; }
  .items { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 11px; }
  .dish-info { padding: 11px 12px 6px; }
  .dish-name { font-size: 14.5px; }
  .dish-desc { font-size: 11.8px; }
  .dish-foot { padding: 9px 12px 12px; flex-wrap: wrap; }
  .dish-price { font-size: 15px; }
  .dish-add { padding: 8px 14px; font-size: 12.5px; }
  .section-head { padding: 12px 13px; gap: 11px; }
  .section-head .ico { width: 40px; height: 40px; font-size: 19px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .cart-fab { inset-block-end: 16px; inset-inline-end: 14px; padding: 12px 18px; }
}

@media (max-width: 380px) {
  .items { grid-template-columns: 1fr; }
}

/* اسم المطعم بالعربية يستخدم الخط العربي الفاخر بدل السيريف اللاتيني */
html[data-lang="ar"] .intro-title { font-family: var(--font-display); letter-spacing: .02em; }
