/* حداڭة · الألوان والخطوط من التصميم */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* ألوان الشعار: الأخضر الداكن (#05585E) والأخضر الفاتح (#18A180) */
  --bg: #F5F9F8; --ink: #13282A; --ink2: #354A4C; --muted: #586B6D; --faint: #66777A;
  --green: #05585E; --green-d: #03444A; --green-l: #E2F1EF; --green-xl: #F0F7F6;
  --accent: #0B7F64; --accent-b: #18A180; --accent-l: #DDF3EC;
  --terra: #B83A2A; --terra-d: #962E21; --terra-l: #FBE9E6; --terra-ink: #7A2318;
  --amber-l: #FBEFD6; --amber: #7A4F0C; --star: #E9A23B;
  --line: #DCE8E5; --line2: #C5D6D2; --line3: #E8F0EE; --chip: #E4EEEC; --sand: #EDF5F3; --dash: #A9C1BB;
  --white: #FFFFFF; --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: "Noto Sans Arabic", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #E9A23B; outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; top: -60px; inset-inline-start: 8px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--green); color: var(--white); font-weight: 700; }
.skip:focus { top: 8px; color: var(--white); }
.ic { flex: 0 0 auto; display: block; }
[dir="ltr"] .flip, [dir="ltr"] .ic-flip { transform: scaleX(-1); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink2); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.center { text-align: center; }
.green { color: var(--green); }
.terra { color: var(--terra); }
.accent { color: var(--accent); }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* الهيكل */
.wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.wide .wrap { max-width: 720px; }
/* الرأس ثابت فوق، والصفحة تمر تحته */
html { scroll-padding-top: 68px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .logo img { height: 40px; width: auto; display: block; }
.top.inner { padding: 6px 8px; }
.topacts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.coopbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line2); background: var(--white); color: var(--green); font-size: 14px; font-weight: 700; white-space: nowrap; }
.coopbtn:hover, .coopmenu[open] > .coopbtn { border-color: var(--green); background: var(--green-l); color: var(--green); }
/* الهواتف الضيقة (320 بكسل): رأس أصغر حتى لا يخرج عن الشاشة */
@media (max-width: 350px) {
  .top { padding-inline: 10px; gap: 6px; }
  .top .logo img { height: 34px; }
  .topacts { gap: 6px; }
  .coopbtn { padding: 0 9px; font-size: 13px; gap: 4px; }
  .coopbtn > .ic:first-child, .langmenu.pill > summary > .ic { display: none; }
  .langmenu.pill > summary { padding: 0 10px; }
}
/* قائمة التعاونية: لوحة تنزل تحت الرأس بعرض الصفحة */
.coopmenu > summary { list-style: none; cursor: pointer; }
.coopmenu > summary::-webkit-details-marker { display: none; }
.coopmenu[open] > summary > .ic:last-child { transform: rotate(180deg); }
.cooppanel { position: absolute; top: 100%; inset-inline: 0; z-index: 30; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 140px); overflow-y: auto; padding: 8px 12px 14px; background: var(--white); border-bottom: 1px solid var(--line2); border-radius: 0 0 18px 18px; box-shadow: 0 14px 30px rgba(19,40,42,.16); }
.cmgroup { display: flex; flex-direction: column; }
.cmgroup + .cmgroup { border-top: 1px solid var(--line3); padding-top: 4px; }
.cmgroup > b { padding: 8px 4px 2px; font-size: 13px; color: var(--muted); }
.cmgroup > a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 600; }
.cmgroup > a:hover { background: var(--green-xl); color: var(--green); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li .ic { margin-top: 3px; }
p.lead { font-size: 17px; }
.top.inner b { font-size: 17px; flex-grow: 1; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; background: transparent; color: var(--ink); border-radius: 22px; cursor: pointer; flex: 0 0 44px; }
main { flex-grow: 1; display: flex; flex-direction: column; gap: 24px; padding: 16px 16px 32px; }
main.tight { gap: 16px; }
section { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrapx { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack.lg { gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
/* لا فراغ في آخر الصف: العنصر الأخير الوحيد يأخذ الصف كله */
.grid2.fill > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* الأزرار */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px; border-radius: 16px; border: none; background: var(--green); color: var(--white); font-size: 18px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.3; }
.btn:hover { background: var(--green-d); color: var(--white); }
.btn.lg { min-height: 58px; font-size: 19px; }
.btn.outline { background: var(--white); color: var(--green); border: 1.5px solid var(--green); }
.btn.outline:hover { background: var(--green-l); }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.danger { background: var(--white); color: var(--terra-d); border: 1.5px solid var(--terra-d); }
.btn.terra { background: var(--terra); }
.btn.sm { min-height: 44px; font-size: 15px; border-radius: 12px; padding: 0 14px; }
.btn.inline { width: auto; display: inline-flex; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: none; background: transparent; color: var(--green); font-weight: 600; cursor: pointer; }
.linkbtn.terra { color: var(--terra-d); }
.dashed { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 24px; border: 1.5px dashed var(--dash); background: transparent; color: var(--ink2); font-size: 15px; font-weight: 600; }

/* البطاقات */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.sel { border: 1.5px solid var(--green); }
.card.sand { background: var(--sand); border-color: var(--sand); }
.card h3 { font-size: 17px; }
.lines > * + * { border-top: 1px solid var(--line3); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.kv > span:first-child { color: var(--muted); white-space: nowrap; }
.kv > b { text-align: end; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--green-l); color: var(--green-d); font-size: 15px; }
.note.warn { background: var(--terra-l); color: var(--terra-ink); font-weight: 600; }
.note.amber { background: var(--amber-l); color: var(--amber); }
.note.sand { background: var(--sand); color: var(--ink2); }
.note .row { align-items: flex-start; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px; border-radius: 13px; background: var(--sand); color: var(--ink2); font-size: 13px; font-weight: 700; line-height: 1.3; }
.tag.green { background: var(--green-l); color: var(--green); }
.tag.solid { background: var(--green); color: var(--white); }
.tag.terra { background: var(--terra-l); color: var(--terra-d); }
.tag.amber { background: var(--amber-l); color: var(--amber); }
.badge-member { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; background: var(--green-l); color: var(--green); font-size: 12px; font-weight: 700; }
.avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; font-weight: 800; background: var(--green); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { flex-basis: 36px; width: 36px; height: 36px; font-size: 15px; }
.avatar.lg { flex-basis: 84px; width: 84px; height: 84px; border-radius: 42px; font-size: 34px; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line2); }
.price { font-size: 22px; font-weight: 800; color: var(--green); }

/* الحقول */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-weight: 700; font-size: 16px; }
.field .hint, .hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--white); font-size: 16px; font-weight: 500;
}
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(5,88,94,.14); }
.phonebox { display: flex; direction: ltr; height: 54px; border-radius: 14px; border: 1px solid var(--line2); background: var(--white); overflow: hidden; }
.phonebox span { display: flex; align-items: center; padding: 0 12px; background: var(--sand); font-weight: 700; }
.phonebox input { flex-grow: 1; min-width: 0; border: none !important; min-height: 0 !important; height: 100%; outline: none; padding: 0 12px !important; font-size: 18px !important; letter-spacing: 1px; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.err { color: var(--terra-d); font-size: 14px; font-weight: 600; }
fieldset { margin: 0; padding: 0; border: none; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; font-size: 18px; font-weight: 700; }

/* اختيارات بصرية فوق مدخلات حقيقية */
.pick { position: relative; display: block; }
.pick > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick > .box { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; text-align: start; line-height: 1.35; font-size: 17px; font-weight: 600; height: 100%; }
.pick > .box .sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pick > .box .dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--dash); display: flex; align-items: center; justify-content: center; }
.pick > .box .dot::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: transparent; }
.pick > .box .sq { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; color: transparent; }
.pick > input:checked + .box { border: 2px solid var(--green); background: var(--green-l); }
.pick > input:checked + .box .dot { border-color: var(--green); }
.pick > input:checked + .box .dot::after { background: var(--green); }
.pick > input:checked + .box .sq { background: var(--green); color: var(--white); }
.pick > input:focus-visible + .box { outline: 3px solid #E9A23B; outline-offset: 2px; }
.pick.compact > .box { min-height: 48px; justify-content: center; font-size: 15px; padding: 4px 10px; border-radius: 12px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-block; }
.chip > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line2); background: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; line-height: 1.3; }
.chip > span::before { content: "+"; color: var(--green); font-weight: 800; }
.chip > input:checked + span { border: 1.5px solid var(--green); background: var(--green-l); }
.chip > input:checked + span::before { content: "✓"; }
.chip > input:focus-visible + span { outline: 3px solid #E9A23B; outline-offset: 2px; }
.chip.plain > span::before { content: none; }
a.chiplink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line2); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; }
a.chiplink.on { background: var(--green); border-color: var(--green); color: var(--white); }

/* أزرار التبديل (تبويبات) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); }
.seg a, .seg button, .seg label > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 6px; border: none; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; line-height: 1.25; cursor: pointer; }
.seg a.on, .seg button.on, .seg label > input:checked + span { background: var(--white); color: var(--green); }
.seg label { position: relative; display: block; }
.seg label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: var(--white); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.count.terra { background: var(--terra); }
.tag.accent { background: var(--accent-l); color: var(--accent); }

/* العداد */
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.stepper button { width: 56px; height: 56px; border-radius: 28px; border: 1.5px solid var(--green); background: var(--white); color: var(--green); font-size: 28px; font-weight: 700; cursor: pointer; }
.stepper button.plus { background: var(--green); color: var(--white); border: none; }
.stepper .val { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.stepper input { width: 120px; border: none; background: transparent; text-align: center; font-size: 44px; font-weight: 800; color: var(--green); padding: 0; }
.stepper input:focus { outline: none; }

/* الخطوات */
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.bars span { height: 6px; border-radius: 3px; background: var(--line2); }
.bars span.on { background: var(--green); }
.js .step { display: none; }
.js .step.cur { display: flex; }
.step { flex-direction: column; gap: 18px; }
.nojs-only { display: block; }
.js .nojs-only { display: none; }
.js-only { display: none; }
.js .js-only { display: flex; }
.js .seg.js-only { display: grid; }
.stickybar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }

/* التنقل السفلي */
.bnav { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
.bnav a.on { color: var(--green); }
.bnav a .count { position: absolute; margin-inline-start: 22px; margin-top: -26px; }

/* الصفحة الرئيسية */
.slogan { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 22px; font-weight: 800; line-height: 1.35; }
.slogan i { width: 12px; height: 12px; flex: 0 0 12px; background: var(--accent-b); transform: rotate(45deg) scale(.72); }
.hero h1 { font-size: 28px; color: var(--green); line-height: 1.3; }
.hero p.lead { font-size: 17px; color: var(--ink2); }
.citybtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 20px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; }
.citybtn .ic:first-child { color: var(--accent); }
.occgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.occ { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 86px; padding: 10px 3px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: clamp(12.5px, 3.5vw, 14.5px); font-weight: 700; text-align: center; line-height: 1.3; }
:lang(fr) .occ, :lang(en) .occ { font-size: clamp(10.5px, 3vw, 13.5px); }
.occ .ic { color: var(--accent); }
.occ span { max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.occ:hover { border-color: var(--accent-b); color: var(--green); }
.occset { display: flex; flex-direction: column; gap: 6px; }
.occset + .occset { margin-top: 8px; }
.occchips { display: flex; flex-wrap: wrap; gap: 8px; }
.occchips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--green-xl); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.occchips a .ic { color: var(--accent); }
.occchips a:hover { border-color: var(--accent-b); color: var(--green); }
.searchbox { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line2); }
.searchbox input { flex-grow: 1; min-width: 0; height: 100%; border: none; background: transparent; outline: none; font-size: 16px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll > .chiplink { flex: 0 0 auto; white-space: nowrap; }
.cookcard { flex: 0 0 220px; display: flex; flex-direction: column; border-radius: 16px; background: var(--white); border: 1px solid var(--line); overflow: hidden; color: var(--ink); }
.cookcard .ph { height: 120px; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.cookcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cookcard .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.steps-how { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps-how li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.steps-how li::before { counter-increment: s; content: counter(s); flex: 0 0 32px; height: 32px; border-radius: 16px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps-how { padding: 0; margin: 0; }
.joinbox { border-radius: 18px; background: var(--green); color: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.joinbox h2 { color: var(--white); }
.joinbox .btn { background: var(--white); color: var(--green); }
.foot { padding: 20px 16px 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot nav a { min-height: 36px; display: inline-flex; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a, .social span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--white); border: 1px solid var(--line2); color: var(--ink); font-size: 14px; font-weight: 700; }
.social span { color: var(--faint); border-style: dashed; }
.social span em { font-style: normal; font-size: 12px; font-weight: 600; }

/* قوائم الحرفيات */
.cookrow { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.cookrow .ph { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.cookrow .ph img { width: 100%; height: 100%; object-fit: cover; }
.cookrow .bd { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cookrow .bd b { font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--sand); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 12px; text-align: center; color: var(--muted); }
.empty .ic { color: var(--dash); }

/* العروض */
.offer { gap: 12px; }
.offer .head { display: flex; gap: 12px; align-items: center; }
.offer .head .bd { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.offer .totals { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.inc { display: flex; flex-wrap: wrap; gap: 6px; }
.inc span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--sand); color: var(--muted); }
.inc span.on { background: var(--green-l); color: var(--green); }
.inc span:not(.on) { text-decoration: line-through; text-decoration-color: rgba(91,101,95,.5); }
.btn.wa { background: var(--green); }
.status { display: flex; align-items: center; gap: 8px; }
.pulse { width: 10px; height: 10px; border-radius: 5px; background: var(--accent-b); box-shadow: 0 0 0 0 rgba(24,161,128,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(24,161,128,0); } 100% { box-shadow: 0 0 0 0 rgba(24,161,128,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* اللوحات */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px 8px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.stat b { font-size: 24px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.toggle { display: flex; align-items: center; gap: 12px; }
.toggle .sw { flex: 0 0 52px; width: 52px; height: 30px; border-radius: 15px; background: #C4D3D0; position: relative; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 12px; background: var(--white); transition: inset-inline-start .15s; }
.toggle.on .sw { background: var(--green); }
.toggle.on .sw::after { inset-inline-start: 25px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dn { font-size: 12px; color: var(--muted); padding: 2px 0; }
.cal button, .cal .d { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cal button { cursor: pointer; }
.cal .busy { background: var(--amber-l); color: var(--amber); border: none; }
.cal .deal { background: var(--green); color: var(--white); border: none; }
.cal .past { color: var(--muted); background: var(--bg); border-style: dashed; }
.cal .blank { border: none; background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 4px; }
.adminnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.adminnav::-webkit-scrollbar { display: none; }
.adminnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 22px; color: var(--ink2); font-size: 14px; font-weight: 700; background: var(--white); border: 1px solid var(--line); }
.adminnav a.on { background: var(--green); color: var(--white); border-color: var(--green); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 8px 6px; border-bottom: 1px solid var(--line3); text-align: start; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 32px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 4px; }

/* التنبيهات */
.flash { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.flash.ok { background: var(--green-l); color: var(--green-d); }
.flash.err { background: var(--terra-l); color: var(--terra-ink); }
.flash.info { background: var(--amber-l); color: var(--amber); }
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 8px 8px; text-align: center; }
.done-hero .ring { width: 84px; height: 84px; border-radius: 42px; background: var(--green-l); color: var(--green); display: flex; align-items: center; justify-content: center; }
.done-hero h1 { color: var(--green); }
.copybox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line2); }
[dir="rtl"] .copybox { padding: 6px 12px 6px 6px; }
.copybox code { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; font-size: 14px; font-family: ui-monospace, Menlo, monospace; }
.video { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.video .playbtn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); border: none; background: transparent; cursor: pointer; }
.video .playbtn span { width: 64px; height: 64px; border-radius: 32px; background: rgba(5,88,94,.92); display: flex; align-items: center; justify-content: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legal h2 { margin-top: 8px; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { margin: 0; padding-inline-start: 22px; }

@media (min-width: 560px) {
  .wrap { box-shadow: 0 0 0 1px var(--line); background: var(--bg); }
  body { background: #E4EEEC; }
}

/* قائمة اللغات في رأس الصفحات الداخلية */
.langmenu { position: relative; flex: 0 0 44px; }
.langmenu.pill { flex: 0 0 auto; }
.langmenu.pill > summary { width: auto; height: 40px; padding: 0 12px; gap: 6px; border-radius: 20px; border: 1px solid var(--line2); background: var(--white); color: var(--ink2); }
.langmenu > summary { list-style: none; font-size: 13px; font-weight: 800; color: var(--muted); }
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu[open] > summary { color: var(--green); background: var(--green-l); }
.langmenu nav { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; z-index: 30; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border-radius: 14px; background: var(--white); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(19,40,42,.14); }
.langmenu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.langmenu nav a[aria-current] { background: var(--green-l); color: var(--green); }

/* زر واتساب التعاونية */
.wafloat { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); height: 0; z-index: 12; display: flex; justify-content: flex-end; padding-inline-end: 14px; pointer-events: none; }
/* دائرة صغيرة حتى لا تغطي المحتوى */
.wafloat a { pointer-events: auto; transform: translateY(-100%); display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 27px; background: #128C4B; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.wafloat a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wafloat a:hover { color: #fff; background: #0E7A40; }

/* تثبيت التطبيق */
.install { margin: 0 16px 16px; }
.install img { border-radius: 12px; }

/* اختيار الأطباق وقائمة الأطباق */
.kitchens { grid-auto-columns: minmax(0, 1fr); }
.js .dishpick .kitchen[data-kitchen]:not(.on) { display: none; }
.dishpick .kitchen > h2 { margin-top: 6px; }
details.sec { padding: 0; gap: 0; }
details.sec > summary { padding: 12px 14px; min-height: 56px; }
details.sec > summary .t { flex-grow: 1; }
details.sec[open] > summary { border-bottom: 1px solid var(--line3); margin-bottom: 0; }
details.sec[open] > summary > .ic:last-child { transform: rotate(180deg); }
.dlist { display: flex; flex-direction: column; padding: 4px 8px 8px; }
.dish { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; }
.dish + .dish { border-top: 1px solid var(--line3); }
.dish > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dish > .box { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.35; }
.dish > .box .nm { flex-grow: 1; }
.dish .sq { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--dash); display: flex; align-items: center; justify-content: center; color: transparent; }
.dish .star { color: var(--star); font-size: 15px; }
.dish .ing { display: none; font-size: 13px; color: var(--ink2); padding-inline-start: 34px; line-height: 1.5; }
.dish .ing b { color: var(--accent); font-weight: 700; }
.dish > input:checked + .box .sq { background: var(--green); border-color: var(--green); color: #fff; }
.dish > input:checked ~ .ing { display: block; }
.dish:has(> input:checked) { background: var(--green-l); }
.dish > input:focus-visible + .box { outline: 3px solid #E9A23B; outline-offset: 2px; border-radius: 8px; }
.dish.menu-item .ing { display: block; padding-inline-start: 0; color: var(--muted); }
.dish.menu-item .order { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 14px; background: var(--accent-l); color: var(--accent); }
.dlist.short > .dish:not(.pop):not(.on) { display: none; }
.dish.miss { display: none !important; }
.dlist .more { align-self: center; font-size: 14px; }
.picked { position: sticky; bottom: 92px; z-index: 5; padding: 10px 12px; gap: 6px; box-shadow: 0 6px 20px rgba(19,40,42,.10); }
.picked .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.picked .chips::-webkit-scrollbar { display: none; }
.picked .chips button { flex: 0 0 auto; }
.dishpick.sp-on .picked { position: static; box-shadow: none; }
.dish.on { background: var(--green-l); }
.picked .chips button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--green); background: var(--green-l); color: var(--green); font-size: 14px; font-weight: 700; cursor: pointer; }
.suggest .chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line2); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
.suggest .chips button::before { content: "+"; color: var(--accent); font-weight: 800; }
.suggest .chips button.on { border-color: var(--green); background: var(--green-l); color: var(--green); }
.suggest .chips button.on::before { content: "✓"; }
.customdish { gap: 2px; padding: 10px 12px; flex-direction: row; align-items: center; }
.customdish > div { flex-grow: 1; display: flex; flex-direction: column; }
.occmore > summary { min-height: 40px; }
.occmore[open] > summary > .ic:last-child { transform: rotate(180deg); }
.occmore fieldset { margin-top: 10px; }
.pick.urgent > input:checked + .box { border-color: var(--terra); background: var(--terra-l); }
.pick.urgent > input:checked + .box .sq { background: var(--terra); border-color: var(--terra); }
.pick.urgent > .box .sq { border-color: var(--terra); }

/* تنبيهات الأكل */
.alertset { gap: 12px; }
.arow { display: flex; flex-direction: column; gap: 6px; }
.al-name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.seg.sm label > span { min-height: 40px; font-size: 13px; }
.alerts { display: flex; flex-wrap: wrap; gap: 6px; }
.al { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 10px; border-radius: 15px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.al.warn { background: var(--amber-l); color: var(--amber); }
.al.hot { background: #FDE3D9; color: #9A2B12; }
.al.danger { background: var(--terra); color: #fff; }
.al.info { background: var(--green-l); color: var(--green); }
.urgentcard { border: 1.5px solid var(--terra); }

/* أطباق الطلب مع مكوناتها */
.dishlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dishlist li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--green-xl); }
.dishlist .ing { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.dishlist .ing.bycook { color: var(--accent); font-weight: 600; }
.dishlist .ingi { display: inline-flex; align-items: center; gap: 3px; }
.em { font-style: normal; line-height: 1; }
.dishlist .tag { align-self: flex-start; }
/* الطباخة تختار المكونات باللمس */
.ingedit { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px dashed var(--dash); }
.ingedit > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--green); font-weight: 700; }
.ingedit > summary::-webkit-details-marker { display: none; }
.ingedit > summary > span:first-of-type { flex-grow: 1; }
.ingedit[open] > summary { margin-bottom: 4px; }
.ingpick { margin: 0; padding: 10px 0 0; border: none; border-top: 1px solid var(--line3); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ingpick legend { padding: 0; font-weight: 700; font-size: 15px; }
.ingchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ingchip { position: relative; }
.ingchip > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ingchip > span { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1.5px solid var(--green); background: var(--green-l); color: var(--green-d); font-size: 14px; font-weight: 600; cursor: pointer; }
.ingchip > span .em { font-size: 18px; }
.ingchip > input:not(:checked) + span { border-color: var(--line2); background: var(--white); color: var(--faint); text-decoration: line-through; }
.ingchip > input:not(:checked) + span .em { opacity: .45; }
.ingchip > input:focus-visible + span { outline: 3px solid #E9A23B; outline-offset: 2px; }
.ingchip.new > span { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.85); } to { transform: scale(1); } }
.ingadd { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1.5px dashed var(--accent-b); background: transparent; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.ingpanel { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--sand); }
.ingpanel input[type=search] { width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--white); font-size: 16px; }
.ingcats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ingcats::-webkit-scrollbar { display: none; }
.ingcats button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line2); background: var(--white); color: var(--ink2); font-size: 13px; font-weight: 700; cursor: pointer; }
.ingcats button.on { background: var(--green); border-color: var(--green); color: #fff; }
.inggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.inggrid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.inggrid button .em { font-size: 26px; }
.inggrid button.on { border: 2px solid var(--green); background: var(--green-l); color: var(--green); }
@media (prefers-reduced-motion: reduce) { .ingchip.new > span { animation: none; } }

/* المحادثة داخل حداڭة */
.chathead { padding: 10px 12px; }
.chatlog { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.msg { max-width: 84%; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg time { opacity: .7; align-self: flex-end; }
/* رسائلي في جهة النهاية (اليسار بالعربية كما في واتساب) */
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-end-end-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg.sys { align-self: center; max-width: 92%; background: var(--amber-l); color: var(--amber); font-size: 14px; font-weight: 600; text-align: center; border-radius: 12px; }
.msg.sys time { align-self: center; }
.chatform { gap: 8px; padding: 10px; position: sticky; bottom: 8px; box-shadow: 0 6px 20px rgba(19,40,42,.10); }
.chatform .quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chatform .quick::-webkit-scrollbar { display: none; }
.chatform .quick button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--accent-b); background: var(--accent-l); color: var(--green-d); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chatinput { display: flex; gap: 8px; align-items: flex-end; }
.chatinput textarea { flex-grow: 1; min-width: 0; min-height: 48px; max-height: 140px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--white); font-size: 16px; resize: vertical; }
.chatinput .btn { flex: 0 0 52px; width: 52px; min-height: 48px; padding: 0; }
/* الرسائل الصوتية: التسجيل، والمشغل في الفقاعة، وزر الاستماع */
.recbar { display: flex; align-items: center; gap: 8px; }
.recbar .btn { flex: 0 0 52px; width: 52px; min-height: 48px; padding: 0; }
.recbar.busy { opacity: .6; }
.rectime { flex-grow: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--terra); animation: recpulse 1s ease-in-out infinite; }
.recbar.busy .recdot { animation: none; }
@keyframes recpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .recdot { animation: none; } }
.voice { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 2px 0; }
.voice audio { width: 100%; min-width: 220px; }
.voice .vplay { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--green); color: #fff; cursor: pointer; }
.msg.me .voice .vplay { background: #fff; color: var(--green); }
.voice .vbar { flex-grow: 1; height: 6px; border-radius: 3px; background: rgba(19, 40, 42, .14); overflow: hidden; }
.msg.me .voice .vbar { background: rgba(255, 255, 255, .35); }
.voice .vbar i { display: block; height: 100%; width: 0; background: currentColor; transition: width .25s linear; }
.voice .vtime { min-width: 34px; text-align: center; opacity: .85; }
.voice p { margin: 0; }
.mfoot { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.msg.sys .mfoot { justify-content: center; }
.say { width: 36px; height: 36px; margin: -6px 0; border: 0; border-radius: 50%; background: transparent; color: var(--green); display: grid; place-items: center; cursor: pointer; }
.msg.sys .say { color: var(--amber); }
.say:active { background: rgba(19, 40, 42, .08); }
.voiceok { gap: 8px; flex-wrap: wrap; }

/* تتبع الطلب */
.trackmini { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--green-xl); }
.trackmini .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.trackmini .bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent-b); }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 0 0 12px; color: var(--faint); }
.tl li::before { content: ""; position: absolute; top: 24px; bottom: 0; inset-inline-start: 11px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li .dot { position: relative; z-index: 1; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--line2); background: var(--white); display: flex; align-items: center; justify-content: center; color: #fff; }
.tl li.done { color: var(--ink); }
.tl li.done .dot { background: var(--accent-b); border-color: var(--accent-b); }
.tl li.done::before { background: var(--accent-b); }
.trbtns { display: flex; flex-direction: column; gap: 8px; }
.trnote > summary { list-style: none; cursor: pointer; }
.trnote > summary::-webkit-details-marker { display: none; }
.trnote textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); font-size: 16px; }

/* إشعارات الهاتف */
.pushcard { padding: 12px 14px; border-color: var(--accent-b); background: var(--green-xl); }
.pushcard .btn { flex: 0 0 auto; }
.pushcard p { margin: 0; }

/* نصائح الأمان */
.safety ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink2); font-size: 15px; }
.safety[open] > summary > .ic:last-child { transform: rotate(180deg); }
.ingby > summary { list-style: none; cursor: pointer; }
.ingby > summary::-webkit-details-marker { display: none; }
.ingby[open] > summary { margin-bottom: 4px; }

/* الفيديو بإطار المنصة */
.ytcard { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ytcard .video { border: 3px solid var(--green); box-shadow: 0 8px 22px rgba(5,88,94,.16); }
.ytcard .brandmark { position: absolute; top: 8px; inset-inline-start: 8px; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ytcard .brandmark img { width: 28px; height: 28px; opacity: 1; }
.ytcard figcaption { font-weight: 700; font-size: 15px; }
.video .playbtn span { background: var(--accent-b); box-shadow: 0 0 0 6px rgba(255,255,255,.25); }

/* المعرض */
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,20,22,.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 26px; border: none; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox .lb-close { top: 16px; inset-inline-end: 16px; }
.lightbox .lb-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-n { position: absolute; bottom: 18px; color: #fff; font-size: 14px; font-weight: 700; }

/* الصفحة الرئيسية: المطابخ في نوافذ أفقية، والأقسام تنسدل تحت صفها */
.ktabs a, .ktabs label > span { flex-direction: column; gap: 2px; min-height: 60px; padding: 4px 2px; font-size: 13.5px; }
:lang(fr) .ktabs a, :lang(en) .ktabs a, :lang(fr) .ktabs label > span, :lang(en) .ktabs label > span { font-size: clamp(11px, 3.4vw, 12.5px); }
.ktabs label .count { position: absolute; top: 4px; inset-inline-end: 4px; }
.secgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sectile { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 6px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
:lang(fr) .sectile, :lang(en) .sectile { font-size: 13.5px; padding: 6px 10px; }
.sectile .t { flex-grow: 1; min-width: 0; }
.sectile .n { flex: 0 0 auto; min-width: 24px; padding: 0 6px; border-radius: 10px; background: var(--sand); color: var(--muted); font-size: 12px; text-align: center; }
.sectile .ic { color: var(--muted); transition: transform .15s; }
.sectile:hover { border-color: var(--accent-b); color: var(--ink); }
.sectile.on { border: 1.5px solid var(--green); background: var(--green-l); color: var(--green); }
.sectile.on .ic { transform: rotate(180deg); color: var(--green); }
.sectile.all { justify-content: center; color: var(--green); background: var(--green-xl); border-style: dashed; }
.sectile.all .t { flex-grow: 0; }
.secpanel { grid-column: 1 / -1; display: flex; flex-direction: column; padding: 4px 10px 6px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--green); }
.secpanel > .linkbtn { align-self: center; font-size: 14px; }
.kpane.card { margin: 0; }
@media (prefers-reduced-motion: reduce) { .sectile .ic { transition: none; } }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.why > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }

/* وثيقة الاتفاق */
.doc { gap: 14px; border: 2px solid var(--green); }
.dochead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.dochead img { height: 46px; width: auto; }
.doc h2 { font-size: 16px; color: var(--green); }
.docfoot { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 2px dashed var(--line2); color: var(--ink2); font-size: 14px; }
.docfoot img { border-radius: 10px; flex: 0 0 36px; }
.hvrow { align-items: end; }

/* اختيار المدينة: زر يفتح نافذة بحث بكامل الشاشة */
.citypick-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.citypick { display: block; }
.citypick-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--white); font-size: 16px; font-weight: 600; text-align: start; cursor: pointer; }
.citypick-btn::after { content: ""; flex: 0 0 9px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); }
.citypick-dlg { position: fixed; z-index: 60; top: 0; bottom: 0; left: 50%; width: min(480px, 100%); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; padding: 10px 16px 16px; background: var(--bg); overflow-y: auto; }
.citypick-dlg[hidden] { display: none; }
.citypick-head { display: flex; align-items: center; gap: 8px; }
.citypick-head input { flex-grow: 1; min-width: 0; height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--green); background: var(--white); font-size: 17px; }
.citypick-list { display: flex; flex-direction: column; gap: 6px; }
.citypick-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 52px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-align: start; cursor: pointer; }
.citypick-row b { font-size: 16.5px; }
.citypick-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line2); background: var(--white); font-size: 15px; cursor: pointer; }
.citypick-chip b { font-weight: 600; }
body.modal-open { overflow: hidden; }
.geoask { border-color: var(--accent-b); background: var(--green-xl); }

/* الأكل الجاهز */
a.rdbanner { color: var(--ink); border-color: var(--accent-b); background: var(--green-xl); }
a.rdbanner:hover { color: var(--ink); border-color: var(--green); }
.rdbanner.row { flex-direction: row; align-items: center; }
.rdwhere > b { display: flex; align-items: center; gap: 6px; }
.rcard { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.rcard:hover { color: var(--ink); border-color: var(--accent-b); }
.rcard .ph { position: relative; flex: 0 0 116px; width: 116px; height: 116px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard .flag { position: absolute; top: 6px; inset-inline-start: 6px; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 800; line-height: 1.6; }
.rcard .bd { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rcard .bd b { font-size: 16.5px; line-height: 1.35; overflow-wrap: anywhere; }
.rcard .price { font-size: 18px; line-height: 1.3; }
.rcard .tag { min-height: 24px; padding: 1px 8px; font-size: 12px; }
.rdgal { gap: 8px; }
.rdgal a { flex: 0 0 86%; display: block; border-radius: 16px; overflow: hidden; background: var(--sand); }
.rdgal a:only-child { flex-basis: 100%; }
.rdgal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ingview { display: flex; flex-wrap: wrap; gap: 6px; }
.ingview > span { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--green-xl); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ingview .em { font-size: 17px; }
.rdtotal { padding: 10px 12px; border-radius: 12px; background: var(--green-xl); }
.rothumb { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 12px; object-fit: cover; display: block; background: var(--sand); }
.rdtoday { align-items: flex-end; }
.rdtoday .field input { min-height: 44px; }
.rodecline > summary { list-style: none; cursor: pointer; }
.rodecline > summary::-webkit-details-marker { display: none; }
.rodecline[open] { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.rdzone { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--white); }
.rdzone > summary { list-style: none; cursor: pointer; min-height: 48px; }
.rdzone > summary::-webkit-details-marker { display: none; }
.rdzone[open] { padding-bottom: 12px; }
.rdzone[open] > summary { margin-bottom: 6px; }
.rdzone[open] > summary > .ic:last-child { transform: rotate(180deg); }
details.rdwhere[open] > summary .linkbtn { visibility: hidden; }
details.rdwhere > summary .linkbtn { min-height: 32px; }
details.rdwhere > form { margin-top: 6px; }
/* اختيار الصور: زر هادئ (المتصفح يكتب نصه بلغة الهاتف) */
.field input[type=file] { max-width: 100%; font-size: 14px; color: var(--muted); }
.field input[type=file]::file-selector-button { min-height: 44px; margin-inline-end: 10px; padding: 0 16px; border-radius: 12px; border: 1.5px dashed var(--accent-b); background: var(--green-xl); color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.rdph { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.rdph .chip > span { width: 100%; justify-content: center; min-height: 36px; padding: 0 8px; font-size: 13px; }
.rdph:has(input:checked) img { opacity: .35; }
.rdph .chip > input:checked + span { border-color: var(--terra); background: var(--terra-l); color: var(--terra-d); }
.rdmore a { flex: 0 0 150px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 14px; line-height: 1.35; }
.rdmore .ph { position: relative; display: block; width: 150px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--sand); margin-bottom: 4px; }
.rdmore img { width: 150px; height: 112px; object-fit: cover; display: block; }
.rdmore .flag { position: absolute; top: 6px; inset-inline-start: 6px; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 800; line-height: 1.6; }
.favform { display: contents; }
.favbtn.on { background: var(--terra-l); border-color: var(--terra); color: var(--terra-d); }
.favbtn.on .ic { fill: currentColor; }
#favs h2 { display: flex; align-items: center; gap: 6px; }
.sortlinks { display: inline-flex; gap: 12px; }
.sortlinks a { color: var(--muted); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.sortlinks a.on { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

@media print {
  body, .wrap { background: #fff !important; box-shadow: none !important; }
  .top, .bnav, .noprint, .wafloat, .flash, .install, .foot { display: none !important; }
  main { padding: 0 !important; }
  .doc { border: none; padding: 0; }
  .dishlist li { background: none; padding: 2px 0; }
  a { color: inherit; }
}
