/* ═══════════════════════════════════════════════════════════════
   الملف: css/style.css — كل تنسيقات موقع مطعم إنشاصي
   الفهرس: 1) الخطوط  2) المتغيّرات (فاتح/داكن)  3) الأساسيات  4) الشريط العلوي
   5) العناصر العامة  6) الرئيسية  7) قائمة الطعام  8) السلة  9) تتبّع الطلب
   10) الدخول  11) لوحات الموظفين  12) لوحات المدير  13) الحركة  14) الطباعة
   المقاسات: جوال (افتراضي) · آيباد ≥ 720px · كمبيوتر ≥ 1100px
   ═══════════════════════════════════════════════════════════════ */

/* ───── 1) الخطوط (مستضافة محلياً) ───── */
@font-face { font-family: "El Messiri"; src: url("../fonts/el-messiri-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "El Messiri"; src: url("../fonts/el-messiri-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "El Messiri"; src: url("../fonts/el-messiri-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AA, U+20AC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AA, U+20AC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AA, U+20AC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AA, U+20AC; }

/* ───── 2) المتغيّرات — الألوان مأخوذة من شعار المطعم (عنّابي على ورقي) ───── */
:root {
  --bg: #f3f1ee;          /* ورقيّ الشعار */
  --surface: #fcfbf9;
  --surface-2: #e9e4de;
  --ink: #2b1114;         /* عنّابي داكن للنص */
  --ink-2: #6f5759;
  --line: #d9d1ca;
  --brand: #4a161c;       /* عنّابي الشعار */
  --brand-ink: #fbf5ee;
  --brand-soft: #efe2dc;
  --ember: #b9651b;       /* جمر المشاوي: للأسعار والتنبيهات */
  --ok: #2c7a4b;  --ok-soft: #dcefe2;
  --bad: #b3261e; --bad-soft: #f7dedb;
  --warn: #8a5a00; --warn-soft: #f6e8c9;
  --shadow: 0 1px 2px rgb(60 20 24 / .06), 0 8px 24px -12px rgb(60 20 24 / .22);
  --shadow-lg: 0 24px 60px -24px rgb(60 20 24 / .45);

  --font-display: "El Messiri", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-script: "Aref Ruqaa", "El Messiri", serif;

  --r-s: 10px; --r-m: 16px; --r-l: 26px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-end: max(16px, env(safe-area-inset-right, 0px));
  --topbar-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171011; --surface: #21181a; --surface-2: #2d2123; --ink: #f2e9e3; --ink-2: #b9a6a3; --line: #3d2d30;
    --brand: #f0dcc6; --brand-ink: #2b1114; --brand-soft: #35232a; --ember: #e59a4c;
    --ok: #6fcf97; --ok-soft: #1d3327; --bad: #ff8a80; --bad-soft: #40201f; --warn: #f0c36a; --warn-soft: #3a2f17;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171011; --surface: #21181a; --surface-2: #2d2123; --ink: #f2e9e3; --ink-2: #b9a6a3; --line: #3d2d30;
  --brand: #f0dcc6; --brand-ink: #2b1114; --brand-soft: #35232a; --ember: #e59a4c;
  --ok: #6fcf97; --ok-soft: #1d3327; --bad: #ff8a80; --bad-soft: #40201f; --warn: #f0c36a; --warn-soft: #3a2f17;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ───── 3) الأساسيات ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; scroll-padding-top: calc(var(--topbar-h) + 70px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font-body); min-height: 100dvh;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; overscroll-behavior-y: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: 1.7rem; font-weight: 700; } h2 { font-size: 1.2rem; font-weight: 700; } h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; } ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.no-scroll { overflow: hidden; }
.muted { color: var(--ink-2); } .small { font-size: .84rem; }
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; } .ic svg { width: 100%; height: 100%; }
.price, .stat-value, .step-qty, .order-seq, .queue-box strong, td, .mini-price { font-variant-numeric: tabular-nums; }

/* ───── 4) الشريط العلوي ───── */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding-inline: var(--gutter) var(--gutter-end); max-width: 1400px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-inline-end: auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); background: #f3f1ee; transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-14deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; position: relative; transition: background .2s, transform .2s var(--ease); flex: none; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn:active { transform: scale(.92); }
.icon-btn.danger { color: var(--bad); }
.back-btn { background: var(--surface); border: 1px solid var(--line); }
.badge { position: absolute; top: 2px; inset-inline-start: 0; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--ember); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.badge.bump { animation: bump .4s var(--ease); }
.user-chip { display: none; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.user-chip small { color: var(--ink-2); }
.banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px var(--gutter); font-size: .82rem; background: var(--brand-soft); color: var(--ink); text-align: center; }
.banner-warn { background: var(--warn-soft); color: var(--warn); }
.view { display: block; min-height: calc(100dvh - var(--topbar-h)); }
.view.view-in > * { animation: view-in .45s var(--ease) both; }

/* ───── 5) العناصر العامة ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 99px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.96); } .btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover, .btn-soft:hover { border-color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-success { background: var(--ok); color: var(--bg); }
.btn-lg { min-height: 52px; padding-inline: 26px; font-size: 1.02rem; } .btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 500; }
.chip-accent { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.pill-pending, .pill-unpaid { background: var(--warn-soft); color: var(--warn); }
.pill-accepted, .pill-preparing { background: var(--brand-soft); color: var(--ink); }
.pill-ready, .pill-out_for_delivery, .pill-delivered, .pill-paid { background: var(--ok-soft); color: var(--ok); }
.pill-rejected { background: var(--bad-soft); color: var(--bad); }
.count { color: var(--ink-2); font-size: .85rem; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea.input { resize: vertical; min-height: 70px; } select.input { appearance: auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field > span { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field.inline { flex-direction: row; align-items: center; gap: 12px; max-width: 320px; } .narrow-field { max-width: 220px; }
.form-grid { display: grid; gap: 14px; } .form-error { color: var(--bad); font-size: .9rem; font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; } .check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; flex: none; } .switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-ui { width: 46px; height: 26px; border-radius: 99px; background: var(--line); transition: background .25s; position: relative; pointer-events: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--ok); } .switch input:checked + .switch-ui::after { transform: translateX(-20px); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 99px; background: var(--surface-2); }
.seg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 99px; font-weight: 600; transition: background .25s, color .25s; }
.seg.active { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 8px; } .panel-head h2 { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.panel-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; } .two-col { display: grid; gap: 16px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-m); background: var(--brand-soft); font-size: .92rem; }
.narrow { max-width: 620px; margin-inline: auto; padding: 24px var(--gutter) 60px; display: flex; flex-direction: column; gap: 18px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 20px; color: var(--ink-2); grid-column: 1 / -1; }
.empty h3 { color: var(--ink); font-size: 1.15rem; } .empty-ic { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--ink-2); grid-column: 1 / -1; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
#toasts { position: fixed; z-index: 90; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease) both; max-width: 100%; }
.toast-ok { background: var(--ok); } .toast-error { background: var(--bad); color: var(--bg); } .toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgb(20 8 10 / .55); backdrop-filter: blur(3px); display: grid; align-items: end; justify-items: center; animation: fade .2s both; }
.modal { width: 100%; max-width: 520px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow-lg); animation: sheet-in .35s var(--ease) both; padding-bottom: env(safe-area-inset-bottom, 0px); }
.modal-wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px; overflow-y: auto; } .modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal-text { line-height: 1.8; }
.install-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.install-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ───── 6) الصفحة الرئيسية ───── */
.home { overflow: clip; }
.hero { display: grid; gap: 28px; align-items: center; padding: 28px var(--gutter) 44px; max-width: 1240px; margin-inline: auto; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; color: var(--ember); font-size: 1.05rem; }
.hero-title { font-family: var(--font-script); font-size: clamp(4.2rem, 19vw, 8.5rem); line-height: 1.15; color: var(--brand); margin-block: -8px -4px; }
.hero-tag { font-family: var(--font-display); font-size: clamp(1.15rem, 4.4vw, 1.6rem); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.install-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink-2); border-bottom: 1.5px dashed var(--line); }
.install-link:hover { color: var(--ink); border-color: var(--brand); }
.hero-stage { perspective: 1100px; display: grid; place-items: center; --p: 0; --tx: 0; --ty: 0; order: -1; }
.plate { position: relative; width: min(78vw, 400px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(calc(var(--p) * 26deg + var(--ty) * -14deg)) rotateY(calc(var(--tx) * 18deg)) translateY(calc(var(--p) * -24px)); transition: transform .5s var(--ease); }
.plate-logo { width: 100%; height: 100%; border-radius: 50%; box-shadow: var(--shadow-lg); transform: translateZ(30px); animation: plate-in 1.1s var(--ease) both; }
.plate-ring { position: absolute; inset: -5%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); animation: spin 60s linear infinite; }
.plate-ring.r2 { inset: -12%; border-style: solid; border-color: var(--line); transform: translateZ(-50px); animation: none; }
.plate-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; transform: translateZ(80px); animation: float 5s ease-in-out infinite; }
.plate-tag .ic { color: var(--ember); } .plate-tag.t1 { top: 6%; inset-inline-start: -4%; } .plate-tag.t2 { bottom: 8%; inset-inline-end: -4%; animation-delay: -2.5s; }
.band { padding: 48px var(--gutter); max-width: 1240px; margin-inline: auto; }
.band-alt { max-width: none; background: var(--surface); border-block: 1px solid var(--line); } .band-alt > * { max-width: 1208px; margin-inline: auto; }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; } .section-head h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); } .section-head p { color: var(--ink-2); }
.spec-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 250px); gap: 14px; overflow-x: auto; padding: 8px 2px 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1000px; }
.spec-rail::-webkit-scrollbar { display: none; }
.spec-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; transform-origin: center bottom; }
.spec-card:hover { transform: translateY(-6px) rotateX(6deg); box-shadow: var(--shadow-lg); }
.spec-card p { color: var(--ink-2); font-size: .9rem; }
.spec-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 1.15rem; }
.spec-card:nth-child(even) .spec-ic { background: var(--ember); color: #fff; }
.steps { display: grid; gap: 14px; counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 18px; border-radius: var(--r-m); background: var(--bg); border: 1px solid var(--line); }
.step-num { position: absolute; top: 10px; inset-inline-end: 16px; font-family: var(--font-script); font-size: 2.4rem; line-height: 1; color: var(--line); }
.step-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font-size: 1.3rem; }
.step p { color: var(--ink-2); font-size: .92rem; grid-column: 2; }
.foot { padding: 44px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); max-width: 1240px; margin-inline: auto; }
.foot-grid { display: grid; gap: 26px; } .foot-grid h3 { margin-bottom: 10px; }
.foot-list { display: flex; flex-direction: column; gap: 8px; } .foot-list li, .foot-staff { display: flex; align-items: center; gap: 10px; min-height: 36px; } .foot-list .ic, .foot-staff .ic { color: var(--ember); }
.foot-staff { font-weight: 600; } .foot-staff:hover, .foot-list a:hover { text-decoration: underline; }
.foot-copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .84rem; text-align: center; }

/* ───── 7) قائمة الطعام ───── */
.menu-page { max-width: 1400px; margin-inline: auto; padding: 18px var(--gutter) 120px; }
.menu-main { min-width: 0; }
.menu-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; } .menu-context { display: flex; flex-wrap: wrap; gap: 8px; }
.search { position: relative; display: block; } .search .ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search-input { padding-inline-start: 44px; border-radius: 99px; }
.cat-chips, .filter-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.cat-chips { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.cat-chips::-webkit-scrollbar, .filter-bar::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; transition: background .25s, color .25s, border-color .25s; }
.cat-chip.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.menu-section { padding-top: 26px; } .menu-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.menu-section-head h2 { font-size: 1.45rem; } .menu-section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; order: 1; } .menu-section-head .count { order: 2; }
.item-grid { display: grid; gap: 12px; perspective: 1200px; }
.item-card { --tx: 0; --ty: 0; display: grid; grid-template-columns: 112px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; transform: rotateX(calc(var(--ty) * -5deg)) rotateY(calc(var(--tx) * 6deg)); }
.item-card:hover { box-shadow: var(--shadow-lg); } .item-card.is-off { opacity: .6; }
.item-media { position: relative; background: var(--surface-2); min-height: 112px; } .item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.item-card:hover .item-media img { transform: scale(1.07); }
.item-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; color: color-mix(in srgb, var(--brand) 40%, transparent); background: radial-gradient(circle at 30% 30%, var(--brand-soft), var(--surface-2)); }
.item-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; } .item-body p { color: var(--ink-2); font-size: .86rem; line-height: 1.5; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ember); white-space: nowrap; }
.item-control .btn { min-height: 38px; padding: 4px 14px; } .sold-out { font-size: .8rem; color: var(--bad); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); animation: pop .3s var(--ease); }
.step-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; } .step-btn:hover { background: rgb(255 255 255 / .18); } .step-btn:active { transform: scale(.88); }
.step-qty { min-width: 24px; text-align: center; font-weight: 700; }
.cart-bar { position: fixed; z-index: 30; inset-inline: var(--gutter) var(--gutter-end); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px 8px 10px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg); font-weight: 600; animation: bar-in .45s var(--ease) both; max-width: 560px; margin-inline: auto; }
.cart-bar-count { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #fff; font-weight: 700; } .cart-bar-text { margin-inline-end: auto; font-size: .92rem; }
.mini-cart { display: none; }

/* ───── 8) السلة ───── */
.cart-page, .track-page { max-width: 1100px; margin-inline: auto; padding: 22px var(--gutter) 80px; display: grid; gap: 16px; align-items: start; }
.cart-main, .track-main, .cart-side, .track-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cart-lines { display: flex; flex-direction: column; } .cart-line { display: flex; gap: 12px; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--line); animation: view-in .3s var(--ease) both; }
.cart-line:first-child { padding-top: 0; } .cart-line-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; } .cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-note { min-height: 38px; padding: 6px 12px; font-size: 16px; margin-top: 4px; background: transparent; border-style: dashed; }
.cart-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-weight: 600; color: var(--ember); }
.summary { display: flex; flex-direction: column; gap: 10px; } .sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 1.15rem; } .sum-total strong { font-family: var(--font-display); color: var(--ember); font-size: 1.35rem; }
.accounts { display: flex; flex-direction: column; gap: 8px; } .account { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); }
.account > div { display: flex; flex-direction: column; } .account-num { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px; border-radius: 99px; background: var(--brand-soft); font-weight: 700; letter-spacing: .04em; }
.receipt-preview { display: flex; align-items: center; gap: 12px; color: var(--ok); font-weight: 600; } .receipt-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); } .receipt-preview span { display: inline-flex; gap: 6px; align-items: center; }
.receipt-view img { max-height: 65dvh; margin-inline: auto; border-radius: var(--r-s); } .receipt-view p { margin-top: 12px; text-align: center; }

/* ───── 9) تتبّع الطلب ───── */
.status-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 22px; border-radius: var(--r-l); background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg); }
.status-card::after { content: ""; position: absolute; inset-inline-end: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand-ink) 35%, transparent); animation: spin 40s linear infinite; }
.status-card .eyebrow { color: color-mix(in srgb, var(--brand-ink) 75%, transparent); font-size: .92rem; } .status-card h1 { font-size: 1.9rem; }
.status-card.is-done { background: var(--ok); color: var(--bg); } .status-card.is-rejected { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.status-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, currentColor 16%, transparent); animation: pulse 2.2s ease-in-out infinite; }
.is-done .status-ic, .is-rejected .status-ic { animation: none; }
.queue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; position: relative; z-index: 1; } .queue .small { grid-column: 1 / -1; color: inherit; opacity: .8; }
.queue-box { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r-m); background: color-mix(in srgb, var(--brand-ink) 12%, transparent); } .queue-box span { font-size: .85rem; opacity: .85; } .queue-box strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.15; }
.next-step { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; opacity: .85; }
.timeline { display: flex; flex-direction: column; } .tl-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 20px; color: var(--ink-2); }
.tl-item:last-child { padding-bottom: 0; } .tl-item::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); } .tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--ok); } .tl-item > div { display: flex; flex-direction: column; justify-content: center; } .tl-item .muted { font-size: .84rem; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); z-index: 1; transition: background .4s, color .4s; }
.tl-item.done { color: var(--ink); } .tl-item.done .tl-dot { background: var(--ok); color: var(--bg); } .tl-item.current .tl-dot { box-shadow: 0 0 0 5px var(--ok-soft); animation: pulse 2s ease-in-out infinite; }
.inv-table { width: 100%; border-collapse: collapse; font-size: .9rem; } .inv-table th { text-align: start; font-weight: 600; color: var(--ink-2); font-size: .78rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.inv-table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .inv-table td small { display: block; color: var(--ink-2); } .inv-table th:not(:first-child), .inv-table td:not(:first-child) { text-align: end; padding-inline-start: 10px; white-space: nowrap; }
.inv-notes, .order-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--warn-soft); color: var(--warn); font-size: .88rem; }
.stars { display: flex; gap: 6px; direction: ltr; justify-content: flex-end; } .star { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.7rem; color: var(--line); transition: transform .2s var(--ease), color .2s; }
.star.on { color: var(--ember); } .star.on svg { fill: currentColor; } button.star:active { transform: scale(1.25); } .stars.readonly .star { width: 30px; height: 30px; font-size: 1.2rem; } .stars.small .star { width: 20px; height: 20px; font-size: .9rem; }
.order-links { display: flex; flex-direction: column; gap: 10px; } .order-links a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease); }
.order-links a:hover { transform: translateX(-4px); } .order-links a > span:nth-child(2) { display: flex; flex-direction: column; margin-inline-end: auto; } .order-no { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ember); }

/* ───── 10) الدخول ───── */
.login-page { display: grid; place-items: center; padding: 32px var(--gutter) 60px; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-logo { width: 96px; height: 96px; border-radius: 50%; align-self: center; box-shadow: var(--shadow); } .login-card h1, .login-card > .muted { text-align: center; }
.demo-box { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; } .demo-box p { display: flex; gap: 6px; align-items: center; color: var(--ink-2); } .demo-chips { display: flex; flex-wrap: wrap; gap: 8px; } .demo-chips .chip { min-height: 38px; }

/* ───── 11) لوحات الموظفين ───── */
.staff { display: block; padding: 18px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); max-width: 1500px; margin-inline: auto; }
.staff-side { position: fixed; z-index: 35; bottom: 0; inset-inline: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.staff-role { display: none; }
.staff-nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; gap: 2px; } .staff-nav::-webkit-scrollbar { display: none; }
.staff-link { position: relative; flex: 1 0 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 6px; border-radius: 14px; font-size: .7rem; font-weight: 600; color: var(--ink-2); text-align: center; white-space: nowrap; transition: background .25s, color .25s; }
.staff-link .ic { font-size: 1.15rem; } .staff-link.active { background: var(--brand); color: var(--brand-ink); }
.nav-badge { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 19px; height: 19px; padding-inline: 5px; border-radius: 10px; background: var(--ember); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.staff-content { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.staff-head { display: flex; flex-direction: column; gap: 4px; } .board { display: flex; flex-direction: column; gap: 10px; }
.order-grid { display: grid; gap: 14px; align-items: start; }
.order-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); animation: view-in .35s var(--ease) both; }
.st-pending { border-top-color: var(--warn); } .st-accepted, .st-preparing { border-top-color: var(--brand); } .st-ready, .st-out_for_delivery, .st-delivered { border-top-color: var(--ok); } .st-rejected { border-top-color: var(--bad); }
.order-head { display: flex; align-items: flex-start; gap: 12px; } .order-seq { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.order-title { display: flex; flex-direction: column; margin-inline-end: auto; min-width: 0; } .order-title strong { font-family: var(--font-display); font-size: 1.1rem; } .order-where { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ember); }
.order-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .order-meta .small { display: inline-flex; align-items: center; gap: 4px; }
.order-items { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-s); background: var(--bg); } .order-items li { display: flex; gap: 10px; align-items: baseline; } .order-items b { color: var(--ember); min-width: 30px; } .order-items span:nth-child(2) { flex: 1; } .order-items small { display: block; color: var(--ink-2); }
.order-customer { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; } .order-customer > * { display: flex; align-items: center; gap: 8px; } .order-customer a { font-weight: 600; justify-content: flex-end; flex-direction: row-reverse; }
.order-total { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-2); } .order-total strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-inline-start: auto; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; } .order-actions .btn { flex: 1 1 auto; white-space: normal; }

/* ───── 12) لوحات المدير ───── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; } .stat:first-child { background: var(--brand); color: var(--brand-ink); border-color: transparent; } .stat:first-child .muted, .stat:first-child .stat-label { color: inherit; opacity: .8; }
.stat-ic { font-size: 1.2rem; color: var(--ember); } .stat-label { font-size: .84rem; color: var(--ink-2); } .stat-value { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.3; }
.bars { display: flex; flex-direction: column; gap: 10px; } .bars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--ember); transform-origin: right; animation: grow .8s var(--ease) both; }
.reviews { display: grid; gap: 12px; } .reviews li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); } .reviews .stars { justify-content: flex-end; }
.table-wrap { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; } .data-table th { text-align: start; color: var(--ink-2); font-size: .8rem; padding: 8px 10px; border-bottom: 1px solid var(--line); } .data-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; } .data-table tbody tr { cursor: pointer; transition: background .2s; } .data-table tbody tr:hover { background: var(--bg); }
.admin-items { display: flex; flex-direction: column; } .admin-item, .staff-row { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.admin-item-main, .staff-row-main { display: flex; flex-direction: column; flex: 1 1 140px; min-width: 0; } .staff-row-main strong { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .staff-row.is-off { opacity: .6; }
.thumb, .avatar { width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb-lg { width: 92px; height: 92px; border-radius: var(--r-m); font-size: 1.6rem; } .avatar { border-radius: 50%; }
.image-pick { display: flex; align-items: center; gap: 14px; } .image-pick > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.qr-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); } .qr-card.is-off .qr-canvas { opacity: .35; }
.qr-canvas { width: 100%; height: auto; border-radius: var(--r-s); } .qr-info { display: flex; flex-direction: column; } .qr-actions { display: flex; align-items: center; gap: 4px; } .qr-actions .btn { flex: 1; min-height: 40px; padding-inline: 10px; }
.account-rows { display: flex; flex-direction: column; gap: 10px; } .account-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-radius: var(--r-s); background: var(--bg); } .account-row .input { grid-column: 1; } .account-row .icon-btn { grid-column: 2; grid-row: 1; }

/* ───── 13) الحركة ───── */
@keyframes spin { to { rotate: 360deg; } }
@keyframes fade { from { opacity: 0; } }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@keyframes toast-in { from { transform: translateY(14px) scale(.96); opacity: 0; } }
@keyframes bar-in { from { transform: translateY(90px); } }
@keyframes pop { from { transform: scale(.8); opacity: .4; } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes plate-in { from { opacity: 0; transform: translateZ(-200px) rotate(-40deg) scale(.7); } }
/* عناصر تظهر مع التمرير: الحالة المخفية تُطبّق فقط بعد تشغيل ScrollFx (fx-on) */
.fx-on [data-fx] { transition: opacity .7s var(--ease) var(--fx-delay, 0ms), transform .7s var(--ease) var(--fx-delay, 0ms); }
.fx-on [data-fx="rise"]:not(.fx-in) { opacity: 0; transform: translateY(26px); }
.fx-on [data-fx="flip"]:not(.fx-in) { opacity: 0; transform: rotateX(-55deg) translateY(30px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ───── آيباد ≥ 720px ───── */
@media (min-width: 720px) {
  :root { --topbar-h: 68px; --gutter: max(28px, env(safe-area-inset-left, 0px)); --gutter-end: max(28px, env(safe-area-inset-right, 0px)); }
  h1 { font-size: 2rem; }
  .user-chip { display: inline-flex; }
  .modal-backdrop { align-items: center; } .modal { border-radius: var(--r-l); } #toasts { bottom: 28px; }
  .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full, .form-grid .image-pick, .form-grid .check { grid-column: 1 / -1; } .two-col { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1.05fr .95fr; padding-block: 56px 72px; } .hero-stage { order: 0; } .plate { width: min(40vw, 440px); }
  .spec-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); } .step { grid-template-columns: 1fr; row-gap: 8px; padding: 24px; } .step-ic { grid-row: auto; } .step p { grid-column: 1; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cart-page, .track-page { grid-template-columns: 1.25fr 1fr; gap: 22px; } .sticky { position: sticky; top: calc(var(--topbar-h) + 18px); }
  .staff { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding-bottom: 40px; align-items: start; }
  .staff-side { position: sticky; top: calc(var(--topbar-h) + 18px); inset-inline: auto; bottom: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px; backdrop-filter: none; }
  .staff-nav { flex-direction: column; overflow: visible; padding: 0; gap: 4px; } .staff-link { flex: none; white-space: normal; padding: 10px 4px; font-size: .72rem; line-height: 1.35; }
  .staff-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .order-grid { grid-template-columns: repeat(2, 1fr); } .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .account-row { grid-template-columns: 1fr 1fr 1fr auto; } .account-row .input, .account-row .icon-btn { grid-column: auto; grid-row: auto; }
  .qr-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ───── كمبيوتر ≥ 1100px ───── */
@media (min-width: 1100px) {
  .hero-title { font-size: 9.5rem; } .spec-rail { grid-template-columns: repeat(4, 1fr); } .spec-card:nth-child(n + 5) { grid-column: span 1; }
  .menu-page { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; padding-bottom: 60px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); } .item-card { grid-template-columns: 150px 1fr; } .item-media { min-height: 150px; }
  .cart-bar { display: none; }
  .mini-cart { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 22px); padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--topbar-h) - 44px); overflow-y: auto; }
  .mini-cart h2 { display: flex; align-items: center; gap: 8px; } .mini-lines { display: flex; flex-direction: column; gap: 10px; } .mini-lines li { display: flex; gap: 8px; align-items: baseline; font-size: .92rem; animation: view-in .3s var(--ease) both; }
  .mini-qty { color: var(--ember); font-weight: 700; min-width: 28px; } .mini-name { flex: 1; } .mini-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 1.1rem; } .mini-total strong { font-family: var(--font-display); color: var(--ember); }
  .staff { grid-template-columns: 250px 1fr; gap: 30px; } .staff-side { padding: 14px; }
  .staff-role { display: flex; align-items: center; gap: 8px; padding: 6px 12px 14px; font-family: var(--font-display); font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
  .staff-link { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: .95rem; text-align: start; } .nav-badge { position: static; margin-inline-start: auto; }
  .order-grid { grid-template-columns: repeat(3, 1fr); } .stat-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1400px) { .item-grid { grid-template-columns: repeat(3, 1fr); } .item-card { grid-template-columns: 1fr; } .item-media { aspect-ratio: 16 / 10; min-height: 0; } }

/* ───── 14) طباعة رموز QR ───── */
@media print {
  body.print-qr .topbar, body.print-qr .banners, body.print-qr .staff-side, body.print-qr .staff-head, body.print-qr .toolbar, body.print-qr .qr-actions, body.print-qr .qr-info, body.print-qr #toasts, body.print-qr .staff-content > .panel-stack > .muted { display: none !important; }
  body.print-qr { background: #fff; } body.print-qr .staff { display: block; padding: 0; }
  body.print-qr .qr-grid { grid-template-columns: repeat(2, 1fr); gap: 8mm; } body.print-qr .qr-card { border: 0; padding: 0; break-inside: avoid; }
}
