/* خط IBM Plex Sans Arabic من مجلد الموقع */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --line: #e9dfd2;
  --text: #221c17;
  --muted: #7d7166;
  --brand: #b8431f;
  --brand-ink: #ffffff;
  --brand-soft: #fbe8de;
  --info: #1d5fd1;
  --info-soft: #e1ebfd;
  --warn: #a45a06;
  --warn-soft: #fdf0d5;
  --ok: #17803d;
  --ok-soft: #ddf5e5;
  --danger: #b42318;
  --danger-soft: #fde4e1;
  --pend: #6a3dcf;
  --pend-soft: #ece4fc;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(70, 40, 15, .06), 0 6px 20px rgba(70, 40, 15, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

/* الألوان الداكنة — تنفعّل من الإعدادات (ألوان الموقع) */
:root[data-theme="dark"] {
  --bg: #1a1613;
  --surface: #25201c;
  --surface-2: #2f2924;
  --line: #3b342e;
  --text: #f4eee8;
  --muted: #a89c90;
  --brand: #e0673f;
  --brand-soft: #3d2519;
  --info: #7aa7f5;
  --info-soft: #1d2a42;
  --warn: #f0b252;
  --warn-soft: #3a2c14;
  --ok: #5fcf88;
  --ok-soft: #173222;
  --danger: #f07a6c;
  --danger-soft: #3d1c18;
  --pend: #b69cf5;
  --pend-soft: #2a2140;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

/* الشعار: نسخة للخلفية الفاتحة ونسخة للداكنة */
.logo { display: block; width: auto; max-width: 100%; }
:root[data-theme="dark"] .logo-light, :root:not([data-theme="dark"]) .logo-dark { display: none; }
/* الأيقونة المربعة: في الداكن نسخة بخلفية أفتح وإطار ذهبي عشان ما تذوب في الخلفية */
:root[data-theme="dark"] .icon-light, :root:not([data-theme="dark"]) .icon-dark { display: none !important; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-sm { width: 16px; height: 16px; }

/* ---------- الهيكل ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 8px) 16px calc(100px + var(--safe-b));
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 14px;
}
.topbar-title { flex: 1; text-align: center; }
.topbar-title.start { text-align: start; }
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.topbar p { color: var(--muted); font-size: 13px; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.icon-btn:active { transform: scale(.94); }

.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.tab .i { width: 24px; height: 24px; }
.tab.active { color: var(--brand); }
.fab {
  justify-self: center;
  width: 56px; height: 56px;
  margin-top: -22px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--brand);
  color: var(--brand-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent);
}
.fab .i { width: 26px; height: 26px; stroke-width: 2.4; }
.fab:active { transform: scale(.94); }

/* ---------- عناصر عامة ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--muted); margin: 18px 4px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn-wa { color: #15803d; }

.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.s-new { background: var(--info-soft); color: var(--info); }
.s-prep { background: var(--warn-soft); color: var(--warn); }
.s-ready { background: var(--ok-soft); color: var(--ok); }
.s-done { background: var(--surface-2); color: var(--muted); }
.s-cancel { background: var(--danger-soft); color: var(--danger); }
.s-pending { background: var(--pend-soft); color: var(--pend); }

.src { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.src .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 8px; }
.empty p { margin-bottom: 16px; }
.loading { text-align: center; padding: 40px; color: var(--muted); }

/* ---------- اليوم ---------- */
.today-link { display: flex; justify-content: center; margin: -6px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.due b { color: var(--brand); }

.prep { padding: 0; }
.prep summary {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
}
.prep summary::-webkit-details-marker { display: none; }
.prep summary .count { margin-inline-start: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.prep ul { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.prep li { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.prep li b { color: var(--brand); font-size: 16px; min-width: 24px; font-variant-numeric: tabular-nums; }

.order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--info);
}
.order.st-preparing { border-inline-start-color: var(--warn); }
.order.st-ready { border-inline-start-color: var(--ok); }
.order.st-pending { border-inline-start-color: var(--pend); }
.order.st-delivered { border-inline-start-color: var(--line); opacity: .7; }
.order.st-cancelled { border-inline-start-color: var(--danger); opacity: .55; }
.order.st-cancelled .order-who strong { text-decoration: line-through; }

.order-head { display: flex; align-items: flex-start; gap: 12px; }
.order-time {
  min-width: 64px;
  text-align: center;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 6px 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.order-time small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.order-time.soon { background: var(--brand-soft); color: var(--brand); }
.order-who { flex: 1; min-width: 0; }
.order-who strong { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.order-items { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.order-items li { background: var(--surface-2); border-radius: 8px; padding: 3px 9px; font-size: 14px; }
.order-items li b { color: var(--brand); }
.order-notes { margin-top: 10px; font-size: 13px; color: var(--muted); background: var(--warn-soft); border-radius: 10px; padding: 6px 10px; white-space: pre-line; }
.order-addr { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.order-money { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 14px; }
.order-money .due { color: var(--brand); font-weight: 700; }
.order-money .paid { color: var(--ok); font-weight: 700; }
.order-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.order-actions .grow { flex: 1; }

/* ---------- التقويم ---------- */
.cal-sub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: -6px 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cal-sub .end { display: flex; align-items: center; gap: 8px; }

/* أزرار طريقة العرض (سنة / شهر / أسبوع) */
.view-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.view-switch button {
  width: 42px; height: 34px;
  border: 0; border-radius: 9px;
  background: none;
  color: var(--muted);
  display: grid; place-items: center;
}
.view-switch button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

/* عرض السنة */
.year-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 -8px 16px; }
.ym {
  min-width: 0;
  display: block;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: start;
}
.ym.current { border: 2px solid var(--brand); padding: 9px 7px; }
.ym-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ym-head b { font-size: 15px; font-weight: 700; }
.ym.current .ym-head b { color: var(--brand); }
.ym-count { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.ym small { display: block; margin-bottom: 6px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; font-size: 10.5px; text-align: center; font-variant-numeric: tabular-nums; }
.ym-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; }
.ym-grid .wd { color: var(--muted); font-size: 9px; font-weight: 700; aspect-ratio: auto; padding-bottom: 2px; }
.ym-grid .past { color: var(--muted); }
.ym-grid .h1 { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--text); }
.ym-grid .h2 { background: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--text); }
.ym-grid .h3 { background: var(--brand); color: var(--brand-ink); }
.ym-grid .today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 700; }

/* عرض الأسبوع */
.week { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wk-day {
  display: flex; align-items: stretch; gap: 10px;
  min-height: 76px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.wk-day:active { transform: scale(.99); }
.wk-day.today { border: 2px solid var(--brand); padding: 9px; }
.wk-day.past { background: var(--surface-2); border-color: transparent; }
.wk-date {
  width: 70px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding-inline-end: 10px;
  border-inline-end: 1px solid var(--line);
  line-height: 1.35;
}
.wk-date b { font-size: 14px; font-weight: 700; }
.wk-day.today .wk-date b { color: var(--brand); }
.wk-date .g { font-size: 13px; font-weight: 600; }
.wk-date .h { font-size: 11px; color: var(--muted); }
.wk-orders { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wk-ev {
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 13px;
}
.wk-ev .t { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-ev .n { font-weight: 700; white-space: nowrap; }
.wk-ev .it { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.st-preparing { background: var(--warn-soft); color: var(--warn); }
.wk-ev.st-ready { background: var(--ok-soft); color: var(--ok); }
.wk-ev.st-pending { background: var(--pend-soft); color: var(--pend); }
.wk-ev.st-delivered { background: var(--surface-2); color: var(--muted); }
.wk-day.past .wk-ev.st-delivered { background: var(--surface); }
.wk-empty { color: var(--muted); font-size: 13px; }

/* اختيار رسالة الواتساب */
.wa-list { display: flex; flex-direction: column; gap: 8px; }
.wa-tpl {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.wa-tpl:active { transform: scale(.99); }
.wa-tpl.suggested { border: 2px solid var(--ok); padding: 11px; }
.wa-tpl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wa-tpl-head b { flex: 1; }
.wa-tpl-head .i { color: #1fa855; }
.wa-tpl-text { display: block; max-height: 7.6em; overflow: hidden; font-size: 13px; color: var(--muted); white-space: pre-line; }

/* محرر الرسائل في الإعدادات */
.tpl { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.tpl summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; }
.tpl summary::-webkit-details-marker { display: none; }
.tpl summary b { flex: 1; font-weight: 700; }
.tpl summary .i { transition: transform .2s; color: var(--muted); }
.tpl[open] summary .i { transform: rotate(-90deg); }
.tpl .form { padding: 0 14px 14px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips .chip { min-height: 30px; padding: 0 10px; font-size: 12px; }
.tpl-preview { padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); }
.tpl-preview small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--ok); }
.tpl-preview p { margin: 0; font-size: 13px; color: var(--text); white-space: pre-line; }

a.row { color: inherit; text-decoration: none; }
.map-link { margin-inline-start: 6px; color: var(--brand); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* شريط الكمية المحجوزة (العروض) */
.stock { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stock-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.stock-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.stock-text { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stock-text.low { color: var(--danger); }

/* العروض في لوحة التحكم */
.catalog-tabs { margin: -4px 0 14px; }
.public-link { display: flex; align-items: center; gap: 8px; }
.public-link > div { flex: 1; min-width: 0; }
.public-link small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.offer-admin .oa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.offer-admin .oa-head b { font-size: 16px; font-weight: 700; }
.offer-admin .sub { margin-bottom: 10px; }
.offer-admin .stock { margin-bottom: 0; }
.offer-admin .oa-head b { flex: 1; }

/* صور المنتجات */
.thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-2) center / cover no-repeat;
  display: grid; place-items: center;
  font-size: 20px;
}
.thumb.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.thumb.empty { padding: 0; }   /* كلاس empty العام (رسالة «ما فيه شي») فيه padding كبير يمطّ المربع */
.img-pick { display: flex; align-items: center; gap: 14px; }
.img-preview {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--surface-2) center / cover no-repeat;
  display: grid; place-items: center;
  font-size: 30px;
}
.img-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.img-actions small { font-size: 12px; color: var(--muted); }

/* حجز الموقع بانتظار تأكيد الواتساب */
.pending-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--pend) 45%, var(--line));
  border-radius: 12px;
  background: var(--pend-soft);
  color: var(--pend);
  font-weight: 600;
}
.pending-box > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pending-box > div b { font-size: 20px; letter-spacing: 3px; color: var(--text); font-variant-numeric: tabular-nums; }
.pending-box > div span { margin-inline-start: auto; font-size: 12px; }
.pending-box small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.pending-box small b { color: var(--text); }
.warn-note { padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }

/* ---------- الدفع ---------- */
.pay-tag { margin-inline-start: auto; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pay-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.pay-summary > div { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.pay-summary small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.pay-summary b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pay-summary b.ok { color: var(--ok); }
.pay-summary b.due { color: var(--brand); }
.paid-line { display: flex; flex-direction: column; justify-content: center; min-height: 46px; font-weight: 700; }
.paid-line small { font-size: 12px; font-weight: 500; color: var(--muted); }
.collect h2 { margin-bottom: 8px; }
.collect-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.collect-row small { color: var(--muted); }
.collect-row b { font-variant-numeric: tabular-nums; }
.collect-row.total { border-bottom: 0; font-weight: 700; }
.collect-row.total b { color: var(--ok); font-size: 16px; }
.pm { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pm.off { opacity: .6; }
.pm-head { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; }
.pm-emoji { text-align: center; font-size: 20px; padding: 6px !important; }
.pm-opts { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.pm-transfer { display: flex; flex-direction: column; gap: 10px; }
.pm .btn-danger { align-self: flex-start; }

/* ---------- صور وفيديوهات الموقع (الإعدادات) ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mt { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.mt-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.mt-media img, .mt-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-badge { position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; }
.mt .mt-cap { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.mt-flags { display: flex; gap: 4px; }
.mt-flags .chip { flex: 1; justify-content: center; min-height: 32px; padding: 0 6px; font-size: 12px; }
.mt-actions { display: flex; justify-content: space-between; }
.mt-actions .icon-btn { width: 34px; height: 34px; }
.mt-actions .icon-btn:disabled { opacity: .3; }



@media (min-width: 600px) {
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-inline: 0; }
  .ym-grid { font-size: 12px; }
}
@media (min-width: 900px) {
  .year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cal { margin: 0 -12px 16px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head div { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.cal-grid { grid-auto-rows: 96px; }
.cal-day {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  padding: 4px 3px;
  overflow: hidden;
  text-align: start;
}
.cal-day:active { transform: scale(.97); }
.cal-day.blank { visibility: hidden; }
.cal-day.past { background: var(--surface-2); border-color: transparent; }
.cal-day.past .g { color: var(--muted); }
.cal-day.today { border: 2px solid var(--brand); padding: 3px 2px; }
.cal-day.today .g { color: var(--brand); }
.cd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 2px; padding: 0 2px; line-height: 1.25; margin-bottom: 1px; }
.cd-top .g { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-top .h { font-size: 10px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.cd-top .h.first { background: var(--brand-soft); color: var(--brand); border-radius: 5px; padding: 0 4px; font-weight: 700; }

/* الطلبات داخل خانة اليوم */
.ev {
  display: block;
  flex-shrink: 0;
  height: 15px;
  line-height: 15px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev b { display: none; font-weight: 700; margin-inline-end: 4px; }
.ev.st-preparing { background: var(--warn-soft); color: var(--warn); }
.ev.st-ready { background: var(--ok-soft); color: var(--ok); }
.ev.st-pending { background: var(--pend-soft); color: var(--pend); }
.ev.st-delivered { background: var(--surface); color: var(--muted); }
.ev.more { background: none; border: 0; color: var(--muted); font-weight: 700; text-align: center; }

@media (min-width: 600px) {
  .cal { margin-inline: 0; }
  .cal-head, .cal-grid { gap: 5px; }
  .cal-day { padding: 6px 5px; border-radius: 12px; }
  .cd-top .g { font-size: 17px; }
  .cd-top .h { font-size: 12px; }
  .ev { height: 18px; line-height: 18px; font-size: 12px; padding: 0 5px; }
  .ev b { display: inline; }
}

.row-list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: none;
  border-inline: 0; border-top: 0;
  text-align: start;
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; font-weight: 700; }
.row .grow small { color: var(--muted); font-size: 13px; }
.row .end { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.inactive { opacity: .5; }

.searchbox {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  margin-bottom: 14px;
  color: var(--muted);
}
.searchbox input[type=search] { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; padding: 0; font-size: 16px; outline: none; color: var(--text); box-shadow: none; }

/* ---------- النماذج ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input:not([type=checkbox]), select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type=date], input[type=time] { text-align: start; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint { font-size: 13px; color: var(--ok); font-weight: 600; margin-top: -6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.stabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 14px; padding: calc(var(--safe-t) + 6px) 16px 10px;
  background: var(--bg);
}
.stabs::-webkit-scrollbar { display: none; }
.stabs .chip { flex: none; white-space: nowrap; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; min-height: 40px; border-radius: 10px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.picker { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pick {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pick:last-child { border-bottom: 0; }
.pick.on { background: var(--brand-soft); }
.pick .name { flex: 1; min-width: 0; background: none; border: 0; text-align: start; padding: 4px 0; }
.pick .name b { display: block; font-weight: 700; }
.pick .name small { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 18px; font-weight: 700;
  display: grid; place-items: center;
  line-height: 1;
}
.stepper button.plus { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.picker-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }


.smart {
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
  border-radius: 14px;
  padding: 0 14px;
}
.smart summary { list-style: none; padding: 12px 0; font-weight: 700; color: var(--brand); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.smart summary::-webkit-details-marker { display: none; }
.smart[open] { padding-bottom: 14px; }
.smart textarea { background: var(--surface); margin-bottom: 8px; }
.smart p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.summary-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.summary-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.summary-list li .grow { flex: 1; }
.summary-list button { border: 0; background: none; color: var(--danger); padding: 4px; }

/* ---------- النافذة السفلية ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 12, 5, .42);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease-out;
}
.sheet {
  width: 100%;
  max-width: 640px;
  max-height: 94dvh;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  animation: rise .24s cubic-bezier(.2, .9, .3, 1);
}
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; font-size: 18px; font-weight: 700; }
.sheet-body { overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet-foot .total { flex: 1; }
.sheet-foot .total small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.sheet-foot .total b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 22px; max-height: 88vh; }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- الدخول ---------- */
.login {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, var(--brand-soft), var(--bg) 60%);
}
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.login-logo .logo { height: 130px; }
.login-card h1 { font-size: 26px; font-weight: 700; }
.login-card > p { color: var(--muted); margin-bottom: 24px; }
.login-card .form { text-align: start; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 20px; text-align: center; }

/* ---------- تنبيهات ---------- */
.push-state { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.push-state.on { background: var(--ok-soft); color: var(--ok); }
.steps { margin: 0 0 12px; padding-inline-start: 20px; font-size: 14px; }
.steps li { margin-bottom: 4px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 20px);
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  max-width: 90vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }

/* ---------- التوصيل والمناديب ---------- */
.tag.drv-ok { color: var(--ok); }
.tag.drv-wait { color: var(--warn); }
.tag.drv-no { color: var(--danger); }
.tier-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.tier-row .btn { padding: 10px; }
.quote-out { margin: 0; font-size: 13px; font-weight: 600; }
.quote-out.err { color: var(--danger); }
.drv { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.drv.off { opacity: .6; }
.drv-head { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; }
.drv-req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.drv-req .grow { flex: 1; min-width: 120px; }
.drv-req small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- صفحة المندوب ---------- */
.driver-body { background: var(--bg); }
.driver-wrap { max-width: 560px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.driver-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.driver-head img { width: 48px; height: 48px; border-radius: 22.37%; }
.driver-head b { display: block; font-size: 18px; }
.driver-head small { color: var(--muted); }
.driver-card h2 { margin-bottom: 12px; }
.driver-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin-bottom: 14px; font-size: 15px; }
.driver-facts dt { color: var(--muted); }
.driver-facts dd { font-weight: 600; text-align: end; }
.driver-customer { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.driver-customer .row { display: flex; justify-content: space-between; gap: 12px; }
.driver-customer .row span { color: var(--muted); }
.driver-actions { display: flex; flex-direction: column; gap: 10px; }
.driver-done { text-align: center; font-weight: 700; color: var(--ok); }

/* =====================================================================
   الشاشات المتوسطة والكبيرة — نفس الشكل، بتوزيع يناسب الشاشة
   الجوال: شريط سفلي وزر + | الآيباد والكبيرة: هيدر بسيط + نفس زر + عائم
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.topnav, .fab-desk { display: none; }

@media (hover: hover) {
  .btn-ghost:hover, .icon-btn:hover { background: var(--surface-2); }
  .row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
  .order { transition: box-shadow .2s; }
  .order:hover { box-shadow: 0 2px 4px rgba(70, 40, 15, .08), 0 12px 28px rgba(70, 40, 15, .12); }
  .cal-day:not(.blank):hover { border-color: var(--brand); }
  .wk-day:hover, .ym:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
}

@media (min-width: 768px) {
  :root { --nav-h: 64px; }
  .tabbar { display: none; }

  /* الهيدر: الشعار | الصفحات (بنفس شكل أزرار التبديل في الموقع) | صفحة العروض */
  .topnav {
    display: block;
    position: sticky; top: 0; z-index: 25;
    padding-top: var(--safe-t);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
  }
  .tn-in {
    max-width: 1120px; height: var(--nav-h);
    margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  }
  .tn-brand { justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
  .tn-brand img { display: block; width: 42px; height: 42px; border-radius: 22.37%; box-shadow: var(--shadow); }   /* نفس تقويس الأيقونة عشان ما ينقص الإطار الذهبي */
  .tn-nav { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
  .tn-link {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 16px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
  .tn-link .i { width: 18px; height: 18px; }
  .tn-link.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
  .tn-end { justify-self: end; }

  /* «طلب جديد»: نفس زر + البرتقالي اللي في الجوال، عائم في زاوية الشاشة */
  .fab-desk {
    position: fixed; bottom: calc(28px + var(--safe-b)); inset-inline-end: 28px; z-index: 24;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 56px; min-width: 56px; padding: 0 16px;
    border: 0; border-radius: 999px;
    background: var(--brand); color: var(--brand-ink);
    font-size: 15px; font-weight: 700;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 40%, transparent);
  }
  .fab-desk .i { width: 24px; height: 24px; stroke-width: 2.4; }
  .fab-desk span { display: none; }
  .fab-desk:active { transform: scale(.96); }

  .page { max-width: 1120px; margin: 0 auto; padding: 20px 24px 104px; }
  #toast { bottom: calc(28px + var(--safe-b)); }
  .topbar h1 { font-size: 26px; }

  /* اليوم: الطلبات بطاقات جنب بعض */
  .orders-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
  .orders-list .order { margin-bottom: 0; }

  /* المنتجات والعروض: أعمدة */
  .prod-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 18px; align-items: start; }
  #offers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px 18px; align-items: start; }
  #offers-list > .section-title, #offers-list > .empty { grid-column: 1 / -1; }
  #offers-list > .card { margin-bottom: 0; }
  .catalog-tabs, .public-link { max-width: 560px; }

  /* تابات الإعدادات تلزق تحت الهيدر */
  .stabs { top: calc(var(--safe-t) + var(--nav-h)); margin: 0 -24px 16px; padding: 10px 24px 12px; }
}

@media (hover: hover) and (min-width: 768px) {
  .tn-link:not(.active):hover { color: var(--text); }
  .fab-desk:hover { filter: brightness(1.06); }
}

@media (min-width: 1100px) {
  .fab-desk { padding: 0 22px 0 18px; }
  .fab-desk span { display: inline; }

  /* اليوم: الملخص وقائمة التحضير في عمود جانبي ثابت */
  .day-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
  .day-grid .orders-list { grid-column: 1; grid-row: 1; }
  .day-side { position: sticky; top: calc(var(--safe-t) + var(--nav-h) + 16px); grid-column: 2; grid-row: 1; }

  /* الإعدادات: أقسام كل تاب في عمودين، والتاب اللي فيه قسم واحد ياخذ العرض كامل */
  [data-stab-pane] { column-count: 2; column-gap: 18px; }
  [data-stab-pane] > * { break-inside: avoid; }
  [data-stab-pane] > :only-child, [data-stab-pane] > #logout { column-span: all; }

  /* الأسبوع: 7 أعمدة جنب بعض مثل التقويم */
  .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .wk-day { flex-direction: column; gap: 8px; min-height: 56vh; padding: 10px 8px; }
  .wk-day.today { padding: 9px 7px; }
  .wk-date { width: auto; align-items: center; padding: 0 0 8px; border-inline-end: 0; border-bottom: 1px solid var(--line); text-align: center; }
  .wk-orders { justify-content: flex-start; }
  .wk-ev { flex-wrap: wrap; gap: 2px 6px; }
  .wk-ev .it { flex-basis: 100%; }
  .wk-empty { padding-top: 12px; text-align: center; font-size: 12px; }
}

@media (min-width: 1500px) {
  .page, .tn-in { max-width: 1240px; }
}

/* ---------- حاسبة التكلفة ---------- */
.cost-sec { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cost-sec h3, .cost-sec summary { font-size: 14px; font-weight: 700; }
.cost-sec summary { cursor: pointer; list-style: none; }
.cost-sec summary::-webkit-details-marker { display: none; }
.cost-sec summary::after { content: " ▾"; color: var(--muted); }
.cost-sec[open] summary::after { content: " ▴"; }
.cost-sub { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cl-row {
  display: grid; gap: 6px 8px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas: "ing ing del" "qty unit cost";
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line);
}
.cl-row [data-f=ing] { grid-area: ing; }
.cl-row [data-f=qty] { grid-area: qty; }
.cl-row [data-f=unit] { grid-area: unit; }
.cl-row [data-cost] { grid-area: cost; }
.cl-row [data-del] { grid-area: del; padding: 0 10px; }
.cl-row input, .cl-row select { min-height: 40px; padding: 8px 10px; }
.cl-cost { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; min-width: 76px; }
@media (min-width: 600px) {
  .cl-row { grid-template-columns: minmax(0, 2fr) 90px 84px 86px auto; grid-template-areas: "ing qty unit cost del"; }
}
.field-row.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.cost-item { gap: 10px; padding: 10px 2px; }
.cost-item input[type=checkbox] { flex: none; width: 22px; height: 22px; accent-color: var(--brand); }
.cost-item button.grow { background: none; border: 0; padding: 0; text-align: start; }
.cost-item .end small { font-weight: 500; color: var(--muted); font-size: 12px; }
.cost-item.off .grow, .cost-item.off .end { opacity: .45; }
.cost-item .grow b { font-weight: 600; }
.muted { color: var(--muted); font-weight: 500; }
.cost-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cost-sum > div { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: center; }
.cost-sum small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.cost-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .cost-sum { grid-template-columns: repeat(4, 1fr); } }
.cost-result h2 small { font-size: 13px; }
.cost-result .collect-row span { min-width: 0; }
.cost-result .good { color: var(--ok); }
.cost-result .meh { color: var(--warn); }
.cost-result .bad { color: var(--danger); }
.price-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price-duo > div { padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: center; }
.price-duo small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.price-duo b { font-size: 19px; font-variant-numeric: tabular-nums; }
.price-duo .main { border-color: var(--brand); background: var(--brand-soft); }
.price-duo .main b { color: var(--brand); }
.cost-steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.warn-note a { font-weight: 700; }
.cost-result .collect-row b { flex: none; white-space: nowrap; }
.cost-result .collect-row.total b { color: var(--text); }

/* ---------- المالية والشراكة ---------- */
.own-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.own-bar span { display: block; height: 100%; }
.own-bar span + span { border-inline-start: 2px solid var(--surface); }
.own-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.own-legend span { display: inline-flex; align-items: center; gap: 6px; }
.own-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fp-dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pc, var(--muted)); }
.fp-dot.sm { width: 9px; height: 9px; vertical-align: middle; }
.fin-partner { border-inline-start: 4px solid var(--pc); }
.fin-partner.off { opacity: .6; }
.fp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fp-head .grow { flex: 1; min-width: 0; }
.fp-head .grow b { display: block; font-size: 16px; }
.fp-head .grow small { color: var(--muted); font-size: 13px; }
.fp-pct { font-size: 22px; font-weight: 700; color: var(--pc); font-variant-numeric: tabular-nums; }
.fin-partner .collect-row b, .dist .collect-row b, #wf .collect-row b, .card .collect-row b small { white-space: nowrap; }
.neg { color: var(--danger) !important; }
.fin-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); }
.row .end small { font-weight: 500; color: var(--muted); font-size: 12px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.st-row small { color: var(--muted); }
.st-row input { min-height: 40px; padding: 8px 10px; text-align: end; font-variant-numeric: tabular-nums; }
.dist-amt { display: inline-flex; align-items: center; gap: 10px; }
.dist-amt .check { font-size: 12px; gap: 4px; }
.dist-amt .check input { width: 18px; height: 18px; }

/* ---------- الهوية البصرية ونماذج العرض ---------- */
.bk-hero { border-radius: var(--radius); padding: 34px 20px; margin-bottom: 6px; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 20%, #3a2c1e 0%, #181411 70%); box-shadow: var(--shadow); }
.bk-hero img { width: min(520px, 86%); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.bk-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.bk-logo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.bk-swatch { height: 150px; display: grid; place-items: center; padding: 18px; }
.bk-swatch img { max-width: 88%; max-height: 100%; object-fit: contain; }
.bk-swatch .bk-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.bk-swatch .bk-mark { width: 62%; }
.bk-on-cream { background: #f4eee8; }
.bk-on-dark { background: radial-gradient(circle at 50% 30%, #2c221a, #181411); }
.bk-on-sand { background: linear-gradient(135deg, #e9dfd0, #d8c8b1); }
.bk-on-white { background: #fff; }
.bk-logo-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.bk-logo-meta b { display: block; font-size: 14px; }
.bk-logo-meta small { color: var(--muted); font-size: 12px; }
.lgm { display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: currentColor; }
.lgm.foil { background: linear-gradient(135deg,#8a6533 0%,#c6a061 22%,#f9d389 38%,#b68a4c 55%,#e9c47a 72%,#9e7944 100%); }
.bk-mono { width: 82%; height: 70%; }
.bk-ink { color: #221c17; }
.bk-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.bk-color { -webkit-appearance: none; appearance: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.bk-chip { display: block; width: 100%; height: 70px; flex: none; border-radius: 11px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.45), inset 0 14px 18px -12px rgba(255,255,255,.18); }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bk-color b { font-size: 14px; padding-inline: 4px; }
.bk-color code { font-size: 12px; color: var(--muted); padding-inline: 4px; font-family: ui-monospace, Menlo, monospace; }
.bk-color small { font-size: 11.5px; color: var(--muted); padding-inline: 4px; line-height: 1.4; }
.bk-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.bk-fonts .card { margin: 0; }
.bk-fonts small, .bk-fonts span { color: var(--muted); font-size: 12px; }
.bk-fonts p { margin: 6px 0; line-height: 1.3; }
.bk-f-en { font-family: Optima, Candara, "Segoe UI", sans-serif; font-weight: 700; font-size: 32px; direction: ltr; text-align: left; }
.bk-f-ar { font-family: "Noto Naskh Arabic", "Geeza Pro", serif; font-size: 34px; }
.bk-f-ui { font-size: 22px; font-weight: 700; }
.bk-rules { margin-top: 14px; }
.bk-rules ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.mk-card { margin: 0; }
.mk-card figcaption { padding: 8px 4px 0; }
.mk-card figcaption b { display: block; font-size: 15px; }
.mk-card figcaption small { color: var(--muted); font-size: 12.5px; }
.mk { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; container-type: inline-size; isolation: isolate; box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 10px 30px rgba(40,20,5,.18); background: #222; }
.mk > *, .mk div, .mk span, .mk i { position: absolute; }
.mk img { position: absolute; }

/* واجهة المحل (ليل) */
.st-sky { inset: 0; background: linear-gradient(#141c2b, #24303f 45%, #33302c); }
.st-wall { inset: 6% 0 13% 0; background-color: #cdbfa6; background-blend-mode: multiply;
  box-shadow: inset 0 3cqw 6cqw rgba(0,0,0,.35), inset 0 -2cqw 4cqw rgba(0,0,0,.25); }
.st-wash { inset: 6% 0 50% 0; background: radial-gradient(60% 70% at 50% 0%, rgba(255,205,140,.35), transparent 70%); mix-blend-mode: screen; }
.st-fascia { left: 7%; right: 7%; top: 13%; height: 19%; background-color: #1a1411; border-radius: .6cqw;
  box-shadow: 0 1.6cqw 2.4cqw rgba(0,0,0,.45), inset 0 .3cqw 0 rgba(255,255,255,.06), inset 0 -.5cqw 1cqw rgba(0,0,0,.6);
  display: grid; place-items: center; }
.st-fascia img { left: 50%; top: 50%; height: 80%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 1cqw rgba(255,214,150,.55)) drop-shadow(0 0 .2cqw rgba(255,230,190,.6)); }
.st-lamp { top: 7.5%; width: 4cqw; height: 1.4cqw; background: #111; border-radius: 0 0 2cqw 2cqw; box-shadow: 0 .2cqw .4cqw rgba(0,0,0,.5); }
.st-lamp::after { content: ""; position: absolute; left: 50%; top: 100%; width: 22cqw; height: 13cqw; transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,214,150,.5), transparent 70%); filter: blur(.4cqw); }
.st-lamp.l1 { left: 18%; } .st-lamp.l2 { left: 48%; } .st-lamp.l3 { left: 78%; }
.st-front { left: 7%; right: 7%; top: 36%; bottom: 13%; display: grid; grid-template-columns: 1fr .62fr 1fr; gap: 1.2cqw; position: absolute;
  padding: 1.2cqw; background: #171310; box-shadow: 0 0 0 .5cqw #0f0c0a, 0 1cqw 3cqw rgba(0,0,0,.5); }
.st-win, .st-door { position: relative !important; overflow: hidden; }
.st-inside { inset: 0; background:
  radial-gradient(30% 22% at 30% 22%, rgba(255,226,170,.95), transparent 70%),
  radial-gradient(30% 22% at 75% 22%, rgba(255,226,170,.85), transparent 70%),
  linear-gradient(#8a6440, #5a3f27 55%, #2e2117); }
.st-inside::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 18%; height: 18%; background: linear-gradient(#3b2a1c, #22180f); border-radius: .4cqw; box-shadow: 0 -.3cqw .6cqw rgba(255,210,150,.2); }
.st-refl { inset: 0; background: linear-gradient(115deg, transparent 0 28%, rgba(255,255,255,.14) 28% 36%, transparent 36% 52%, rgba(255,255,255,.07) 52% 56%, transparent 56%); }
.st-decal { left: 22%; right: 22%; top: 38%; height: 26%; background: rgba(255,248,235,.55); }
.st-handle { left: 12%; top: 40%; width: .9cqw; height: 22%; border-radius: 1cqw; background: linear-gradient(90deg, #8a6533, #f9d389, #9e7944); box-shadow: 0 .2cqw .4cqw rgba(0,0,0,.5); }
.st-hours { right: 10%; top: 12%; padding: .3cqw 1cqw; font-size: 1.9cqw; color: #f4eee8; border: .15cqw solid rgba(244,238,232,.7); border-radius: 1cqw; font-weight: 700; }
.st-plant { bottom: 11%; width: 8cqw; height: 13cqw; }
.st-plant::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(90deg, #121010, #2c2622, #121010); border-radius: .4cqw .4cqw 1cqw 1cqw; }
.st-plant::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 38%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4f6b3a, #2c4020 55%, #18240f); box-shadow: inset -1cqw -1cqw 2cqw rgba(0,0,0,.4); }
.st-plant.p1 { left: 1%; } .st-plant.p2 { right: 1%; }
.st-street { left: 0; right: 0; bottom: 0; height: 13%; background: repeating-linear-gradient(90deg, transparent 0 9cqw, rgba(0,0,0,.25) 9cqw 9.2cqw), linear-gradient(#5b5650, #3a3632); }
.st-spill { left: 10%; right: 10%; bottom: 0; height: 12%; background: radial-gradient(50% 80% at 50% 0%, rgba(255,200,130,.35), transparent 70%); mix-blend-mode: screen; }

/* لوحة جدارية */
.wl-wall { inset: 0; background-color: #b1a594; background-blend-mode: multiply, multiply, screen; }
.wl-wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0,0,0,.35)); }
.wl-spot { top: 4%; width: 46%; height: 78%; background: radial-gradient(42% 62% at 50% 0%, rgba(255,236,205,.75), rgba(255,236,205,.18) 55%, transparent 75%); mix-blend-mode: screen; filter: blur(.6cqw); }
.wl-spot.s1 { left: 6%; } .wl-spot.s2 { right: 6%; }
.wl-fix { top: 0; width: 3cqw; height: 4cqw; background: linear-gradient(90deg, #1b1b1b, #444 50%, #151515); border-radius: 0 0 .6cqw .6cqw; }
.wl-fix.f1 { left: 27%; } .wl-fix.f2 { right: 27%; }
.wl-logo { left: 19%; width: 62%; top: 20%; height: auto; filter: drop-shadow(.5cqw 1.4cqw .9cqw rgba(0,0,0,.32)) drop-shadow(.1cqw .2cqw .1cqw rgba(0,0,0,.35)); }
.wl-floor { left: 0; right: 0; bottom: 0; height: 15%; background-color: #8a6a4b; background-blend-mode: multiply, screen, multiply; box-shadow: inset 0 1cqw 2cqw rgba(0,0,0,.35); }
.wl-bench { left: 20%; right: 20%; bottom: 13%; height: 3cqw; background-color: #6b4c33; background-blend-mode: multiply, screen, multiply; border-radius: .3cqw; box-shadow: 0 1.2cqw 1.4cqw rgba(0,0,0,.35); }
.wl-vase { left: 24%; bottom: 16%; width: 5cqw; height: 9cqw; border-radius: 40% 40% 30% 30%; background: linear-gradient(90deg, #a9a197, #ece6dc 40%, #9b9389); box-shadow: 0 .4cqw .6cqw rgba(0,0,0,.3); }
.wl-vase::after { content: ""; position: absolute; left: 50%; bottom: 90%; width: .3cqw; height: 9cqw; background: #4b5b3a; transform: rotate(-10deg); box-shadow: 1.2cqw 1cqw 0 #56683f, -1cqw 2cqw 0 #3f4f30; }

/* الصحن */
.pl-table { inset: 0; background-color: #6a4429; background-blend-mode: multiply, screen, multiply; }
.pl-table::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 40% 40%, rgba(255,220,170,.18), transparent 60%), radial-gradient(130% 110% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
.pl-napkin { left: 58%; top: 18%; width: 36%; height: 66%; background-color: #e7dccb; background-blend-mode: multiply; transform: rotate(8deg); border-radius: .8cqw;
  box-shadow: 0 1.2cqw 2.4cqw rgba(0,0,0,.45), inset -2cqw 0 3cqw rgba(0,0,0,.08); }
.pl-napkin::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .4cqw; background: linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,.4)); }
.pl-emb { left: 30%; right: 30%; bottom: 8%; height: 14%; color: #b9a98f; filter: drop-shadow(0 .1cqw 0 rgba(255,255,255,.6)) drop-shadow(0 -.1cqw 0 rgba(0,0,0,.25)); }
.pl-plate { left: 8%; top: 7%; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fdfcf9 0 47%, #e4dfd6 50%, #f6f3ee 54%, #ffffff 70%, #ebe6dd 92%, #d8d1c6 100%);
  box-shadow: 0 2.2cqw 3.6cqw rgba(0,0,0,.5), 0 .4cqw .6cqw rgba(0,0,0,.35); }
.pl-well { inset: 22%; border-radius: 50%; display: grid; place-items: center; }
.pl-logo { left: 50%; top: 50%; width: 100%; height: 60%; transform: translate(-50%, -50%); filter: drop-shadow(0 .1cqw .1cqw rgba(110,80,30,.35)); }
.pl-gloss { inset: 0; border-radius: 50%; background: radial-gradient(40% 18% at 30% 18%, rgba(255,255,255,.9), transparent 70%), linear-gradient(135deg, rgba(255,255,255,.35), transparent 45%); mix-blend-mode: screen; }
.pl-knife { left: 70%; top: 10%; width: 2.4cqw; height: 70%; border-radius: 2cqw 2cqw .8cqw .8cqw; transform: rotate(8deg); transform-origin: top;
  background: linear-gradient(90deg, #8a6533, #f9d389 40%, #c6a061 60%, #7d5b2e); box-shadow: .8cqw 1cqw 1.2cqw rgba(0,0,0,.45); left: 74%; }
.pl-fork { left: 66%; top: 24%; width: 1.9cqw; height: 54%; transform: rotate(8deg); transform-origin: top; border-radius: .9cqw;
  background: linear-gradient(90deg, #8a6533, #f9d389 40%, #c6a061 60%, #7d5b2e); box-shadow: .8cqw 1cqw 1.2cqw rgba(0,0,0,.45); }
.pl-fork i { display: none; }
.pl-fork::before { content: ""; position: absolute; left: 50%; top: -11cqw; width: 5cqw; height: 12cqw; transform: translateX(-50%); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: radial-gradient(60% 50% at 40% 40%, #f9d389, #c6a061 55%, #8a6533); box-shadow: .8cqw 1cqw 1.2cqw rgba(0,0,0,.4); }

/* أكواب القهوة */
.cp-bg { inset: 0; background: radial-gradient(90% 70% at 50% 30%, #efe6da, #d9cbb8 70%, #c2b199); }
.cp-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(80,50,20,.12)); }
.cp-cup { bottom: 14%; width: 30%; height: 66%; }
.cp-cup.c1 { left: 17%; } .cp-cup.c2 { left: 53%; height: 58%; width: 27%; }
.cp-body { left: 0; right: 0; top: 9%; bottom: 0; clip-path: polygon(3% 0, 97% 0, 86% 100%, 14% 100%); background-color: #f4eee8; display: grid; place-items: center; overflow: hidden; }
.cp-cup.c2 .cp-body { background-color: #1c1714; background-blend-mode: screen; }
.cp-body img { left: 50%; top: 44%; width: 70%; height: auto; transform: translate(-50%, -50%); }
.cp-mark { left: 50%; top: 44%; width: 58%; height: 30%; transform: translate(-50%, -50%); }
.cp-shade { inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,.05) 22%, rgba(255,255,255,.28) 38%, rgba(255,255,255,0) 52%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.38)); pointer-events: none; }
.cp-lid { left: -3%; right: -3%; top: 0; height: 11%; border-radius: 1cqw 1cqw .5cqw .5cqw; z-index: 2;
  background: linear-gradient(90deg, #0f0d0c, #3b3530 35%, #1a1715 60%, #0d0b0a); box-shadow: 0 .5cqw .8cqw rgba(0,0,0,.35); }
.cp-cup.c2 .cp-lid { background: linear-gradient(90deg, #cfc6ba, #fffaf2 35%, #e7dfd4 60%, #bfb5a8); }
.cp-lid::before { content: ""; position: absolute; left: 8%; right: 8%; top: -32%; height: 45%; border-radius: 50% 50% 0 0; background: inherit; }
.cp-shadow { bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,35,15,.45), transparent); }
.cp-shadow.s1 { left: 14%; width: 38%; } .cp-shadow.s2 { left: 50%; width: 34%; }

/* كوب السيراميك */
.mg-bg { inset: 0; background-color: #b9ab98; background-blend-mode: multiply; }
.mg-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 40% 30%, rgba(255,245,230,.45), transparent 60%), radial-gradient(130% 120% at 50% 50%, transparent 55%, rgba(40,25,10,.4)); }
.mg-saucer { left: 18%; width: 58%; bottom: 10%; height: 17%; border-radius: 50%; background: radial-gradient(closest-side, #2a2420 60%, #3a332e 75%, #1c1815); box-shadow: 0 1.5cqw 2.5cqw rgba(0,0,0,.45); }
.mg-mug { left: 27%; bottom: 17%; width: 36%; height: 56%; }
.mg-body { inset: 6% 0 0 0; border-radius: 0 0 4cqw 4cqw; background-color: #1e1a17; background-blend-mode: screen; display: grid; place-items: center; overflow: hidden; }
.mg-logo { left: 50%; top: 56%; width: 74%; height: 46%; transform: translate(-50%, -50%); }
.mg-rim { left: 0; right: 0; top: 0; height: 13%; border-radius: 50%; background: linear-gradient(90deg, #111, #4a433d 40%, #1d1916); }
.mg-coffee { inset: 12% 3%; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #6a4024, #2b170b 70%); box-shadow: inset 0 .4cqw .8cqw rgba(0,0,0,.6); }
.mg-handle { right: -17%; top: 20%; width: 26%; height: 46%; border: 3.2cqw solid #1e1a17; border-left: 0; border-radius: 0 50% 50% 0; box-shadow: .6cqw .6cqw 1cqw rgba(0,0,0,.35); }
.mg-beans i { width: 3cqw; height: 2cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7a4a2a, #3b1f0e); box-shadow: .3cqw .4cqw .5cqw rgba(0,0,0,.4); }
.mg-beans i::after { content: ""; position: absolute; left: 15%; right: 15%; top: 45%; height: .25cqw; background: #1e0f06; border-radius: 1cqw; }
.mg-beans i:nth-child(1) { left: 74%; bottom: 14%; transform: rotate(20deg); } .mg-beans i:nth-child(2) { left: 79%; bottom: 18%; transform: rotate(-30deg); }
.mg-beans i:nth-child(3) { left: 82%; bottom: 11%; transform: rotate(60deg); } .mg-beans i:nth-child(4) { left: 8%; bottom: 20%; transform: rotate(10deg); }
.mg-beans i:nth-child(5) { left: 12%; bottom: 14%; transform: rotate(-50deg); } .mg-beans i:nth-child(6) { left: 86%; bottom: 22%; transform: rotate(80deg); } .mg-beans i:nth-child(7) { left: 5%; bottom: 10%; transform: rotate(35deg); }

/* كيس كرافت */
.bg-bg { inset: 0; background: linear-gradient(#e9e4dc, #d7d0c5 70%, #cbc3b6); }
.bg-bag { left: 26%; width: 50%; top: 22%; bottom: 10%; }
.bg-front { left: 10%; right: 0; top: 0; bottom: 0; background-color: #c49a68; background-blend-mode: multiply; display: grid; place-items: center;
  box-shadow: inset 0 3cqw 3cqw -2cqw rgba(0,0,0,.25), inset -1cqw 0 2cqw rgba(0,0,0,.08); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.bg-front::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3cqw; background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 1.4cqw, transparent 1.4cqw 2.8cqw); }
.bg-front img { left: 11%; width: 78%; top: 20%; height: auto; mix-blend-mode: multiply; opacity: .92; }
.bg-site { position: absolute !important; bottom: 7%; font-size: 1.7cqw; color: #3a2a1a; opacity: .75; letter-spacing: .1em; direction: ltr; }
.bg-side { left: 0; width: 10%; top: 0; bottom: 0; background-color: #a77f52; background-blend-mode: multiply; clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 98%);
  box-shadow: inset -.8cqw 0 1.2cqw rgba(0,0,0,.25); }
.bg-handle { left: 30%; width: 44%; top: -22%; height: 30%; border: 1.1cqw solid #9a7146; border-bottom: 0; border-radius: 50% 50% 0 0; box-shadow: inset 0 .3cqw .3cqw rgba(0,0,0,.2); }
.bg-shadow { left: 22%; width: 62%; bottom: 6%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }

/* علبة الطعام (ثلاثية الأبعاد) */
.bx-bg { inset: 0; background-color: #d9cdbb; background-blend-mode: multiply; }
.bx-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, rgba(255,250,240,.5), transparent 70%), radial-gradient(130% 110% at 50% 50%, transparent 55%, rgba(60,40,20,.35)); }
.bx-stage { inset: 0; perspective: 120cqw; display: grid; place-items: center; }
.bx-box { position: relative !important; width: 46cqw; height: 34cqw; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-32deg) translateZ(4cqw); }
.bx-face { background-color: #1b1714; background-blend-mode: screen; }
.bx-top { inset: 0; transform: translateZ(9cqw); display: grid; place-items: center; box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.04), inset 0 0 4cqw rgba(0,0,0,.4); }
.bx-logo { left: 13%; right: 13%; top: 22%; bottom: 22%; }
.bx-band { left: 0; right: 0; top: 46%; height: 0; }
.bx-front { left: 0; right: 0; bottom: 0; height: 9cqw; transform-origin: bottom; transform: rotateX(-90deg); background-color: #120f0d; display: grid; place-items: center; }
.bx-mk { left: 50%; top: 50%; width: 14cqw; height: 5cqw; transform: translate(-50%, -50%); }
.bx-side { top: 0; bottom: 0; right: 0; width: 9cqw; transform-origin: right; transform: rotateY(90deg); background-color: #0c0a09; }
.bx-box::after { content: ""; position: absolute; inset: -6% -10% -14% -4%; background: rgba(0,0,0,.45); filter: blur(2.4cqw); transform: translateZ(-.1cqw); }
.bx-seal { left: 63%; top: 56%; width: 15cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: rotate(-12deg); box-shadow: 0 .8cqw 1.4cqw rgba(0,0,0,.4); border: .5cqw solid #f4eee8; }
.bx-seal img { inset: -12%; width: 124%; height: 124%; }

/* بطاقات العمل */
.cd-bg { inset: 0; background-color: #8f8b86; background-blend-mode: multiply, multiply, screen; }
.cd-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 35% 30%, rgba(255,255,255,.25), transparent 60%), radial-gradient(130% 110% at 50% 50%, transparent 50%, rgba(0,0,0,.45)); }
.cd-stage { inset: 0; perspective: 140cqw; }
.cd-card { width: 52cqw; aspect-ratio: 85 / 55; border-radius: .9cqw; box-shadow: 0 2.4cqw 3cqw rgba(0,0,0,.45), 0 .3cqw .5cqw rgba(0,0,0,.35); display: grid; place-items: center; }
.cd-front { left: 34%; top: 30%; background-color: #181411; background-blend-mode: screen; transform: rotateX(42deg) rotateZ(-18deg); }
.cd-logo { left: 14%; right: 14%; top: 21%; bottom: 21%; filter: drop-shadow(0 .12cqw 0 rgba(0,0,0,.6)) drop-shadow(0 -.08cqw 0 rgba(255,240,200,.25)); }
.cd-back { left: 8%; top: 12%; background-color: #f4eee8; background-blend-mode: multiply; transform: rotateX(42deg) rotateZ(-8deg); align-content: center; gap: .6cqw; padding: 2cqw; text-align: center; color: #221c17; }
.cd-back > * { position: relative !important; }
.cd-mk { width: 14cqw; height: 7cqw; margin: 0 auto 1cqw; }
.cd-back b { font-size: 3cqw; }
.cd-back span { font-size: 2.1cqw; color: #5a4e44; direction: ltr; }

/* المريلة */
.ap-tiles { inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.12) .25cqw, transparent .25cqw) 0 0 / 12cqw 6cqw,
  linear-gradient(rgba(0,0,0,.12) .25cqw, transparent .25cqw) 0 0 / 12cqw 6cqw,
  linear-gradient(90deg, transparent 6cqw, rgba(0,0,0,.12) 6cqw 6.25cqw, transparent 6.25cqw) 0 6cqw / 12cqw 12cqw,
  radial-gradient(90% 80% at 50% 25%, #f6f2ec, #ddd5c9); }
.ap-tiles::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 110% at 50% 40%, transparent 55%, rgba(0,0,0,.25)); }
.ap-hook { left: 48.5%; top: 3%; width: 3cqw; height: 3cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f9d389, #9e7944 70%); box-shadow: .3cqw .5cqw .6cqw rgba(0,0,0,.4); z-index: 3; }
.ap-svg { position: absolute; left: 25%; top: 4%; width: 50%; height: 92%; filter: drop-shadow(1cqw 1.6cqw 1.4cqw rgba(0,0,0,.35)); }
.ap-body { fill: #2a2522; }
.ap-fabric { left: 25%; top: 4%; width: 50%; height: 92%; mix-blend-mode: overlay; opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cpath d='M70 30 L130 30 L136 92 C150 96 164 100 172 106 L172 238 Q172 250 160 250 L40 250 Q28 250 28 238 L28 106 C36 100 50 96 64 92 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cpath d='M70 30 L130 30 L136 92 C150 96 164 100 172 106 L172 238 Q172 250 160 250 L40 250 Q28 250 28 238 L28 106 C36 100 50 96 64 92 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.ap-logo { left: 39.5%; width: 21%; top: 42%; height: auto; opacity: .95; }

/* السوشال */
.ph-bg { inset: 0; background: radial-gradient(70% 70% at 70% 20%, #4a3622, #1d1612 60%, #110d0b); }
.ph-bg::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.ph-phone { left: 50%; top: 5%; bottom: 5%; aspect-ratio: 9 / 18.5; transform: translateX(-50%) rotate(-4deg); border-radius: 5cqw; background: linear-gradient(135deg, #3b3632, #0e0c0b); padding: 1cqw;
  box-shadow: 0 2cqw 4cqw rgba(0,0,0,.6), inset 0 0 0 .25cqw rgba(255,255,255,.08); }
.ph-screen { inset: 1cqw; border-radius: 4.2cqw; background: #fffdfa; overflow: hidden; color: #221c17; }
.ph-notch { left: 50%; top: 1cqw; width: 30%; height: 3cqw; border-radius: 2cqw; background: #0e0c0b; transform: translateX(-50%); }
.ph-head { left: 6%; right: 6%; top: 8%; display: flex; align-items: center; gap: 1.4cqw; position: absolute; }
.ph-av { position: relative !important; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 .5cqw #fffdfa, 0 0 0 .9cqw #c6a061; }
.ph-av img { inset: -10%; width: 120%; height: 120%; }
.ph-stats { position: relative !important; display: flex; gap: .6cqw; flex: 1; min-width: 0; justify-content: space-around; }
.ph-stats span { position: relative !important; display: flex; flex-direction: column; align-items: center; font-size: 1.15cqw; color: #6c5f55; white-space: nowrap; }
.ph-stats b { font-size: 1.7cqw; color: #221c17; }
.ph-name { left: 6%; right: 6%; top: 24%; display: flex; flex-direction: column; gap: .2cqw; font-size: 1.3cqw; line-height: 1.35; }
.ph-name > * { position: relative !important; }
.ph-name b { font-size: 1.8cqw; }
.ph-link { color: #1d5fd1; direction: ltr; text-align: right; }
.ph-btns { left: 6%; right: 6%; top: 40%; display: flex; gap: .8cqw; }
.ph-btns span { position: relative !important; flex: 1; text-align: center; font-size: 1.3cqw; font-weight: 700; padding: .5cqw 0; border-radius: .9cqw; background: #f0e8de; }
.ph-btns span:first-child { background: #c6a061; color: #fff; }
.ph-grid { left: 0; right: 0; top: 48%; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .3cqw; align-content: start; }
.ph-grid > span { position: relative !important; aspect-ratio: 1; background-size: cover; background-position: center; display: grid; place-items: center; }
.ph-t0 { background: radial-gradient(circle at 50% 30%, #3a2c1e, #181411); } .ph-t1 { background: #f4eee8; } .ph-t2 { background: linear-gradient(135deg, #c6a061, #9e7944); }
.ph-tm { left: 15%; right: 15%; top: 30%; bottom: 30%; }

/* القائمة */
.mn-table { inset: 0; background-color: #5a3820; background-blend-mode: multiply, screen, multiply; }
.mn-table::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 45% 35%, rgba(255,215,160,.22), transparent 60%), radial-gradient(130% 110% at 50% 50%, transparent 50%, rgba(0,0,0,.55)); }
.mn-card { left: 50%; top: 6%; bottom: 6%; aspect-ratio: 210 / 297; transform: translateX(-50%) rotate(3deg); background-color: #f6f0e7; background-blend-mode: multiply; border-radius: .4cqw;
  box-shadow: 0 2cqw 3.4cqw rgba(0,0,0,.5), 0 .3cqw .4cqw rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; padding: 3cqw 3.4cqw 2cqw; color: #221c17; }
.mn-card > * { position: relative !important; }
.mn-card img { position: relative !important; width: 76%; height: auto; }
.mn-title { display: flex; align-items: center; gap: 1.4cqw; font-size: 2.2cqw; font-weight: 700; color: #9e7944; margin: 1.6cqw 0 1.2cqw; width: 100%; }
.mn-title span { position: relative !important; flex: 1; height: .15cqw; background: #c6a061; }
.mn-card ul { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 1.1cqw; }
.mn-card li { position: relative !important; display: flex; align-items: baseline; gap: .8cqw; font-size: 1.9cqw; }
.mn-card li span, .mn-card li b { position: relative !important; white-space: nowrap; }
.mn-card li i { position: relative !important; flex: 1; border-bottom: .2cqw dotted #b8a993; }
.mn-card li b { color: #9e7944; }
.mn-card small { margin-top: auto; font-size: 1.3cqw; color: #8a7b6e; }
.mn-pen { right: 9%; top: 12%; width: 1.6cqw; height: 52%; border-radius: 1cqw; transform: rotate(14deg); background: linear-gradient(90deg, #0d0b0a, #3d3733 45%, #0d0b0a); box-shadow: 1cqw 1.4cqw 1.4cqw rgba(0,0,0,.45); }
.mn-pen::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14%; border-radius: 1cqw 1cqw 0 0; background: linear-gradient(90deg, #8a6533, #f9d389, #9e7944); }
.brand-public .page { padding-bottom: 40px; }
