/* ==========================================================================
   مطاعم ليوان — Public website + QR table ordering
   هوية دافئة: فحمي #121212 / #1c1a17 بالتناوب مع كريمي #f7efe3، زعفراني #f5a524، جمري #e8590c
   يُحمَّل بعد shared/css/base.css (لا يعتمد على app.css الخاص بلوحات ذوق)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Amiri:wght@700&display=swap");

:root {
  --char: #121212;
  --char-2: #1c1a17;
  --char-3: #26231f;
  --cream: #f7efe3;
  --cream-2: #efe2cf;
  --cream-3: #fffaf2;
  --saffron: #f5a524;
  --saffron-600: #de8f12;
  --saffron-soft: rgba(245, 165, 36, .14);
  --ember: #e8590c;
  --ember-soft: rgba(232, 89, 12, .12);
  --mint: #2fbf86;
  --mint-soft: rgba(47, 191, 134, .14);
  --ink: #2a2118;
  --ink-2: #6e604f;
  --ink-3: #9b8c79;
  --line-c: rgba(42, 33, 24, .12);
  --on-dark: #f5efe6;
  --on-dark-2: #b9ad9c;
  --line-d: rgba(255, 255, 255, .09);

  --brand: #f5a524;
  --brand-600: #de8f12;
  --brand-soft: rgba(245, 165, 36, .14);
  --text: #2a2118;
  --text-2: #6e604f;
  --bg: #f7efe3;
  --surface: #fffaf2;
  --border: rgba(42, 33, 24, .12);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --sh: 0 18px 40px -22px rgba(42, 25, 8, .45);
  --sh-lg: 0 30px 70px -30px rgba(0, 0, 0, .6);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --serif: "Amiri", "Tajawal", serif;
  --hh: 72px;
}

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
body.lw { font-family: var(--font); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.7; overflow-x: clip; }
body.lw.dark-body { background: var(--char); color: var(--on-dark); }
.lw a { color: inherit; }
.lw button { font-family: inherit; }
.lw h1, .lw h2, .lw h3, .lw h4 { font-weight: 800; line-height: 1.3; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
[data-lucide] { width: 18px; height: 18px; }
svg.lucide { flex-shrink: 0; }

/* --------------------------------------------------------------- Buttons */
.lw .btn { border-radius: 999px; padding: 11px 22px; font-weight: 700; gap: 8px; font-size: 15px; line-height: 1.2; }
.lw .btn-sm { padding: 8px 15px; font-size: 14px; }
.lw .btn-lg { padding: 15px 30px; font-size: 17px; }
.lw .btn-block { width: 100%; }
.lw .btn-saffron, .lw .btn-primary { background: var(--saffron); color: #1d1406; border-color: var(--saffron); box-shadow: 0 10px 26px -12px rgba(245, 165, 36, .8); }
.lw .btn-saffron:hover, .lw .btn-primary:hover { background: #ffb53d; color: #1d1406; }
.lw .btn-ember { background: var(--ember); color: #fff; border-color: var(--ember); }
.lw .btn-ember:hover { background: #f26a1f; }
.lw .btn-dark { background: var(--char); color: var(--on-dark); }
.lw .btn-dark:hover { background: #2a2622; color: #fff; }
.lw .btn-line { background: transparent; color: var(--ink); border-color: var(--line-c); }
.lw .btn-line:hover { border-color: var(--ink); }
.lw .btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lw .btn-glass:hover { background: rgba(255, 255, 255, .2); }
.lw .btn-ghost { background: transparent; color: var(--ink-2); }
.lw .btn-ghost:hover { background: rgba(42, 33, 24, .06); color: var(--ink); }
.lw .btn[disabled], .lw .btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-c); background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: inherit; flex-shrink: 0; }
.btn-icon:hover { background: rgba(42, 33, 24, .06); }

/* --------------------------------------------------------------- Header */
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(18, 18, 18, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-d); color: var(--on-dark); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: var(--hh); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, var(--saffron), var(--ember)); color: #1d1406; box-shadow: 0 8px 22px -10px rgba(232, 89, 12, .8); }
.logo-mark svg { width: 26px; height: 26px; }
.logo b { font-size: 22px; font-weight: 900; letter-spacing: -.2px; line-height: 1; display: block; }
.logo small { display: block; font-size: 11px; color: var(--on-dark-2); font-weight: 500; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--on-dark-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.on { color: var(--saffron); background: var(--saffron-soft); }
.head-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); border: 1px solid var(--line-d); }
.cart-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.cart-btn .cnt { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ember); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cart-btn .cnt:empty { display: none; }
.staff-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: var(--on-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }
.staff-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.burger { display: none; color: var(--on-dark); border-color: var(--line-d); }
.mnav { display: none; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .staff-btn .t-long { display: none; }
  .mnav { display: block; position: fixed; inset: var(--hh) 0 auto 0; z-index: 89; background: #151413; border-bottom: 1px solid var(--line-d); padding: 10px 20px 22px; transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - var(--hh)); overflow-y: auto; }
  .mnav.open { transform: none; box-shadow: var(--sh-lg); }
  .mnav a { display: flex; align-items: center; gap: 10px; padding: 13px 6px; color: var(--on-dark); font-weight: 600; border-bottom: 1px solid var(--line-d); }
  .mnav a.on { color: var(--saffron); }
  .mnav .mnav-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .mnav .mnav-cta a { justify-content: center; border: 0; }
}
@media (max-width: 560px) {
  .site-head .wrap { gap: 8px; padding-inline: 14px; }
  .logo small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .logo b { font-size: 20px; }
  .head-cta { gap: 6px; }
  .head-cta .btn-order { padding: 8px 13px; font-size: 13.5px; }
  .head-cta .btn-order svg { display: none; }
  .staff-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .staff-btn .t-short { display: none; }
  .cart-btn, .burger { width: 40px; height: 40px; }
}
@media (min-width: 561px) { .staff-btn .t-short { display: inline; } }
@media (min-width: 1061px) { .staff-btn .t-short { display: none; } }

/* --------------------------------------------------------------- Sections */
.sec { padding: 96px 0; position: relative; }
.sec-dark { background: var(--char); color: var(--on-dark); }
.sec-dark2 { background: var(--char-2); color: var(--on-dark); }
.sec-cream { background: var(--cream); color: var(--ink); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--ember); text-transform: uppercase; margin-bottom: 10px; }
.sec-dark .eyebrow, .sec-dark2 .eyebrow { color: var(--saffron); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.25; margin: 0 0 12px; }
.lead { font-size: 17.5px; color: var(--ink-2); margin: 0; }
.sec-dark .lead, .sec-dark2 .lead { color: var(--on-dark-2); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sec { padding: 72px 0; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .sec { padding: 56px 0; } .wrap { padding-inline: 16px; } }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--char); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 12, 10, .96) 4%, rgba(14, 12, 10, .55) 46%, rgba(14, 12, 10, .25) 100%), linear-gradient(270deg, rgba(14, 12, 10, .65), transparent 70%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 80px; padding-top: 120px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(245, 165, 36, .16); border: 1px solid rgba(245, 165, 36, .35); color: var(--saffron); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 7vw, 84px); line-height: 1.15; margin: 0 0 16px; max-width: 760px; }
.hero h1 span { color: var(--saffron); }
.hero p { font-size: clamp(16px, 1.6vw, 19px); color: #e7ddcf; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: #d8cbb8; font-size: 14px; }
.hero-meta div { display: flex; align-items: center; gap: 9px; }
.hero-meta svg { color: var(--saffron); }
.page-hero { position: relative; color: #fff; background: var(--char); overflow: hidden; padding: 70px 0 56px; }
.page-hero .hero-bg { opacity: .42; animation: none; transform: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--char) 0%, rgba(18, 18, 18, .4) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); margin: 0 0 8px; }
.page-hero p { color: #dccfbd; margin: 0; max-width: 620px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #bdb09d; margin-bottom: 14px; }
.crumbs a:hover { color: var(--saffron); }
.crumbs svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------- Dish image (CP.dishImg) */
.dish-img { position: relative; display: block; overflow: hidden; background: linear-gradient(140deg, #3a2a1a, #1c1a17); }
.dish-img::before { content: attr(data-emoji); position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.dish-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

/* --------------------------------------------------------------- Dish cards */
.dish { background: var(--cream-3); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-c); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer; position: relative; min-width: 0; }
.dish:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.dish:hover .dish-img img { transform: scale(1.06); }
.dish .dish-img { aspect-ratio: 4 / 3; }
.dish-tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(18, 18, 18, .78); color: #fff; backdrop-filter: blur(6px); }
.tag.t-signature { background: var(--saffron); color: #1d1406; }
.tag.t-new { background: var(--ember); }
.tag.t-veg { background: #2f8f5b; }
.tag.t-off { background: #4a4440; }
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-body h3 { font-size: 18px; margin: 0; }
.dish-body p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 900; font-size: 19px; color: var(--ink); white-space: nowrap; }
.price small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-inline-start: 3px; }
.add-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--saffron); color: #1d1406; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(245, 165, 36, .9); flex-shrink: 0; transition: transform .15s; }
.add-btn:hover { transform: scale(1.08); }
.dish.off { cursor: default; }
.dish.off .dish-img { filter: grayscale(1) brightness(.75); }
.dish.off .add-btn { background: #d9cdbb; color: #7b6d5c; box-shadow: none; cursor: not-allowed; }
.dish.off .price { color: var(--ink-3); text-decoration: line-through; }
.off-note { color: var(--ember); font-weight: 700; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }
.sec-dark .dish, .sec-dark2 .dish { background: var(--char-3); border-color: var(--line-d); color: var(--on-dark); }
.sec-dark .dish-body p, .sec-dark2 .dish-body p { color: var(--on-dark-2); }
.sec-dark .price, .sec-dark2 .price { color: var(--saffron); }
.sec-dark .price small, .sec-dark2 .price small { color: var(--on-dark-2); }

/* signature: large feature */
.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sig-grid .dish:first-child { grid-column: span 2; grid-row: span 2; }
.sig-grid .dish:first-child .dish-img { aspect-ratio: auto; flex: 1; min-height: 340px; }
.sig-grid .dish:first-child h3 { font-size: 24px; }
@media (max-width: 980px) { .sig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sig-grid .dish:first-child { grid-row: auto; } .sig-grid .dish:first-child .dish-img { min-height: 260px; } }
@media (max-width: 640px) { .sig-grid { grid-template-columns: minmax(0, 1fr); } .sig-grid .dish:first-child { grid-column: auto; } }

/* --------------------------------------------------------------- Branch cards */
.br-card { background: var(--cream-3); border: 1px solid var(--line-c); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sec-dark .br-card, .sec-dark2 .br-card { background: var(--char-3); border-color: var(--line-d); }
.br-photo { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.br-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent 60%); }
.br-photo .br-city { position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 2; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.br-photo .open-chip { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.br-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.br-body h3 { margin: 0; font-size: 21px; }
.br-line { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.sec-dark .br-line, .sec-dark2 .br-line { color: var(--on-dark-2); }
.br-line svg { width: 17px; height: 17px; margin-top: 3px; color: var(--ember); }
.sec-dark .br-line svg, .sec-dark2 .br-line svg { color: var(--saffron); }
.br-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.br-actions .btn { flex: 1 1 auto; }
.open-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(47, 191, 134, .92); color: #fff; }
.open-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.open-chip.closed { background: rgba(80, 72, 66, .92); }
.open-chip.closed::before { animation: none; opacity: .6; }
@keyframes pulse { 50% { opacity: .35; } }
.stars { color: var(--saffron); display: inline-flex; gap: 1px; align-items: center; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* --------------------------------------------------------------- Story */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story-media { position: relative; }
.story-media .ph { border-radius: var(--r-lg); aspect-ratio: 4 / 5; background-size: cover; background-position: center; box-shadow: var(--sh-lg); }
.story-media .ph2 { position: absolute; width: 46%; aspect-ratio: 1; bottom: -30px; inset-inline-end: -24px; border-radius: var(--r); border: 6px solid var(--cream); background-size: cover; background-position: center; box-shadow: var(--sh); }
.story-badge { position: absolute; top: 24px; inset-inline-end: -18px; background: var(--saffron); color: #1d1406; border-radius: 18px; padding: 14px 18px; box-shadow: var(--sh); text-align: center; }
.story-badge b { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.story-badge small { font-weight: 700; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stats div { border-top: 2px solid var(--line-c); padding-top: 12px; }
.stats b { display: block; font-size: 30px; font-weight: 900; color: var(--ember); line-height: 1.2; }
.stats small { color: var(--ink-2); font-size: 13.5px; }
.sig-quote { font-family: var(--serif); font-size: 22px; color: var(--ink); border-inline-start: 3px solid var(--saffron); padding-inline-start: 16px; margin: 22px 0 0; }
@media (max-width: 900px) { .story { grid-template-columns: minmax(0, 1fr); gap: 50px; } .story-media .ph { aspect-ratio: 16 / 11; } .story-media .ph2 { inset-inline-end: 10px; } .story-badge { inset-inline-end: 10px; } }

/* --------------------------------------------------------------- QR explainer */
.qr-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.qr-steps { display: grid; gap: 16px; margin: 28px 0; }
.qr-step { display: flex; gap: 14px; align-items: flex-start; }
.qr-step .n { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--saffron-soft); color: var(--saffron); border: 1px solid rgba(245, 165, 36, .3); }
.qr-step b { display: block; font-size: 17px; }
.qr-step small { color: var(--on-dark-2); font-size: 14.5px; }
.qr-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.tent { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 22px 20px 18px; width: 230px; text-align: center; box-shadow: var(--sh-lg); transform: rotate(-3deg); }
.tent .tent-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.tent .tent-brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.tent .tent-brand .logo-mark svg { width: 20px; height: 20px; }
.tent .qr-box { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line-c); }
.tent .tent-t { font-weight: 900; font-size: 26px; margin-top: 10px; line-height: 1.1; }
.tent small { color: var(--ink-2); font-size: 12.5px; }
.qr { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); aspect-ratio: 1; width: 100%; }
.qr i { display: block; aspect-ratio: 1; }
.qr i.on { background: #17120c; }
.phone-mk { width: 240px; border-radius: 38px; background: #0b0b0b; padding: 10px; box-shadow: var(--sh-lg), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(3deg); }
.phone-mk .scr { border-radius: 30px; overflow: hidden; background: var(--cream); color: var(--ink); height: 440px; display: flex; flex-direction: column; }
.phone-mk .scr-h { background: var(--char); color: #fff; padding: 22px 14px 12px; font-size: 13px; }
.phone-mk .scr-h b { display: block; font-size: 15px; }
.phone-mk .scr-chips { display: flex; gap: 6px; padding: 10px; overflow: hidden; }
.phone-mk .scr-chips span { padding: 4px 10px; border-radius: 999px; font-size: 11px; background: #fff; border: 1px solid var(--line-c); white-space: nowrap; }
.phone-mk .scr-chips span.on { background: var(--saffron); border-color: var(--saffron); }
.phone-mk .scr-list { padding: 0 10px; display: grid; gap: 8px; flex: 1; }
.phone-mk .mini { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 6px; font-size: 12px; }
.phone-mk .mini .dish-img { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; }
.phone-mk .mini .dish-img::before { font-size: 22px; }
.phone-mk .mini b { display: block; font-size: 12.5px; }
.phone-mk .mini em { margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--saffron); display: grid; place-items: center; font-style: normal; font-weight: 900; }
.phone-mk .scr-bar { margin: 10px; background: var(--char); color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; display: flex; justify-content: space-between; font-weight: 700; }
.phone-mk .scr-bar span:last-child { color: var(--saffron); }
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(245, 165, 36, .4); color: var(--on-dark-2); font-size: 14px; margin-top: 18px; }
.demo-note svg { color: var(--saffron); margin-top: 3px; }
.demo-note a { color: var(--saffron); font-weight: 700; text-decoration: underline; }
@media (max-width: 960px) { .qr-sec { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .phone-mk { display: none; } .tent { transform: none; } }

/* --------------------------------------------------------------- Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { background: var(--cream-3); border: 1px solid var(--line-c); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review p { margin: 0; font-size: 15.5px; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: 15px; }
.review .who b { display: block; font-size: 15px; }
.review .who small { color: var(--ink-2); font-size: 13px; }
.rating-strip { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-top: 34px; color: var(--ink-2); font-size: 14px; }
.rating-strip b { color: var(--ink); font-size: 22px; font-weight: 900; margin-inline-end: 6px; }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- App / loyalty teaser */
.app-teaser { background: linear-gradient(120deg, #2a1608, #1c1a17 55%); border-radius: 34px; padding: 50px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; overflow: hidden; position: relative; border: 1px solid var(--line-d); }
.app-teaser::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .3), transparent 65%); top: -160px; inset-inline-end: -120px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.tier { border-radius: 18px; padding: 14px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .04); }
.tier b { display: block; font-size: 16px; }
.tier small { color: var(--on-dark-2); font-size: 12.5px; }
.tier i.dot { display: block; width: 26px; height: 26px; border-radius: 50%; margin-bottom: 8px; }
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 9px 16px; cursor: pointer; font-family: inherit; text-align: start; }
.store small { display: block; font-size: 11px; color: #aaa; line-height: 1.2; }
.store b { display: block; font-size: 15px; line-height: 1.2; }
.store:hover { border-color: var(--saffron); }
.loyal-card { position: relative; z-index: 1; border-radius: 24px; padding: 24px; background: linear-gradient(135deg, var(--saffron), var(--ember)); color: #1d1406; box-shadow: var(--sh-lg); max-width: 380px; margin-inline: auto; width: 100%; aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-4deg); }
.loyal-card .lc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 18px; }
.loyal-card .lc-pts { font-size: 38px; font-weight: 900; line-height: 1; }
.loyal-card .lc-bar { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .18); overflow: hidden; margin-top: 8px; }
.loyal-card .lc-bar i { display: block; height: 100%; width: 64%; background: #1d1406; border-radius: 4px; }
.loyal-card small { font-weight: 700; }
@media (max-width: 900px) { .app-teaser { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; border-radius: 26px; } }
@media (max-width: 420px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- Footer */
.site-foot { background: #0d0c0b; color: var(--on-dark-2); padding: 64px 0 0; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); gap: 34px; }
.site-foot h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.site-foot .logo { margin-bottom: 14px; }
.site-foot p { margin: 0 0 14px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a:hover { color: var(--saffron); }
.foot-br { display: grid; gap: 12px; }
.foot-br div b { color: var(--on-dark); display: block; font-size: 14.5px; }
.foot-br div small { font-size: 13px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; }
.socials a:hover { border-color: var(--saffron); color: var(--saffron); }
.powered { display: flex; flex-direction: column; gap: 10px; }
.thouq-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(245, 165, 36, .3); background: rgba(245, 165, 36, .07); color: var(--on-dark); width: fit-content; }
.thouq-badge:hover { border-color: var(--saffron); }
.thouq-badge .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.thouq-badge .logo-mark svg { width: 19px; height: 19px; }
.thouq-badge small { display: block; font-size: 11.5px; color: var(--on-dark-2); line-height: 1.2; }
.thouq-badge b { display: block; font-size: 15px; line-height: 1.3; }
.by-almgrat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); width: fit-content; }
.by-almgrat img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.by-almgrat:hover { color: #fff; }
.foot-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label em { color: var(--ember); font-style: normal; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-c); border-radius: 14px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.input.err { border-color: var(--ember); }
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e604f' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.hint { font-size: 13px; color: var(--ink-2); }
.demo-fill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ember); background: var(--ember-soft); border: 1px dashed rgba(232, 89, 12, .45); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.demo-fill:hover { background: rgba(232, 89, 12, .2); }
.seg { display: inline-flex; background: rgba(42, 33, 24, .06); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }
.seg button.on { background: var(--char); color: #fff; box-shadow: var(--sh); }
.opt-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt-card { position: relative; display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line-c); background: #fff; border-radius: 16px; padding: 13px 14px; cursor: pointer; font-weight: 700; min-width: 0; }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .oc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--cream); flex-shrink: 0; }
.opt-card small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.opt-card:has(input:checked), .opt-card.on { border-color: var(--saffron); background: #fff8ea; box-shadow: 0 0 0 3px var(--saffron-soft); }
.opt-card:has(input:checked) .oc-ic, .opt-card.on .oc-ic { background: var(--saffron); color: #1d1406; }

/* --------------------------------------------------------------- Panels */
.panel { background: var(--cream-3); border: 1px solid var(--line-c); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--char); color: var(--saffron); display: inline-grid; place-items: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
@media (max-width: 560px) { .panel { padding: 18px 16px; border-radius: 22px; } }

/* --------------------------------------------------------------- Menu page */
.menu-tools { position: sticky; top: var(--hh); z-index: 40; background: rgba(247, 239, 227, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-c); }
.menu-tools .wrap { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
.tools-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 240px; min-width: 0; }
.search svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-inline-start: 42px; border-radius: 999px; }
.br-select { flex: 0 1 260px; min-width: 0; }
.br-select .select { border-radius: 999px; font-weight: 700; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; border: 1.5px solid var(--line-c); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cat-tab:hover { border-color: var(--ink-3); }
.cat-tab.on { background: var(--char); border-color: var(--char); color: #fff; }
.cat-tab .c { font-size: 12px; opacity: .65; }
.cat-block { padding-top: 36px; }
.cat-block h2 { font-family: var(--serif); font-size: 30px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cat-block h2 small { font-family: var(--font); font-size: 14px; color: var(--ink-2); font-weight: 600; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } .menu-grid .dish { flex-direction: row; } .menu-grid .dish .dish-img { aspect-ratio: auto; width: 116px; flex-shrink: 0; } .menu-grid .dish-tags { top: 8px; inset-inline-start: 8px; } .menu-grid .dish-tags .tag:not(:first-child) { display: none; } .menu-grid .dish-body { padding: 12px 14px; } .menu-grid .dish-body h3 { font-size: 16px; } .menu-grid .dish-body p { font-size: 13px; } .price { font-size: 17px; } .add-btn { width: 38px; height: 38px; } }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty .empty-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); margin: 0 auto 14px; color: var(--ember); }
.empty .empty-ic svg { width: 30px; height: 30px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.float-cart { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 140%); z-index: 80; display: flex; align-items: center; gap: 14px; background: var(--char); color: #fff; border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: var(--sh-lg); transition: transform .25s ease; width: max-content; max-width: calc(100vw - 32px); }
.float-cart.show { transform: translate(-50%, 0); }
.float-cart .fc-n { width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); color: #1d1406; display: grid; place-items: center; font-weight: 900; }
.float-cart b { white-space: nowrap; }

/* --------------------------------------------------------------- Item modal (CP.modal) */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(14, 10, 6, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.modal-backdrop.show { opacity: 1; }
.modal { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--cream-3); color: var(--ink); border-radius: 26px; box-shadow: var(--sh-lg); overflow: hidden; transform: translateY(14px) scale(.98); transition: transform .2s ease; font-family: var(--font); }
.modal-backdrop.show .modal { transform: none; }
.modal.sm { max-width: 420px; } .modal.lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-c); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head small { color: var(--ink-2); font-size: 13px; }
.mh-t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mh-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--saffron-soft); color: var(--ember); flex-shrink: 0; }
.modal-body { padding: 20px; overflow-y: auto; min-height: 0; }
.modal-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-c); background: #fff6e8; }
.modal-foot .btn { flex: 1 1 auto; }
.modal.item-m .modal-body { padding: 0; }
.im-hero { position: relative; height: 240px; }
.im-hero .dish-img { position: absolute; inset: 0; }
.im-hero .dish-img::before { font-size: 70px; }
.im-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.im-in { padding: 20px; }
.im-in h3 { font-size: 23px; margin: 0 0 4px; }
.im-in > p { color: var(--ink-2); margin: 0 0 10px; }
.im-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.im-meta span { display: inline-flex; gap: 5px; align-items: center; }
.im-meta svg { width: 15px; height: 15px; }
.mg { border-top: 1px solid var(--line-c); padding: 16px 0 6px; }
.mg-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mg-h b { font-size: 16px; }
.mg-h small { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.mg-h small.req { background: var(--ember-soft); color: var(--ember); }
.mg.missing .mg-h small.req { background: var(--ember); color: #fff; }
.mopt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; border-bottom: 1px dashed var(--line-c); }
.mopt:last-child { border-bottom: 0; }
.mopt input { width: 20px; height: 20px; accent-color: var(--ember); flex-shrink: 0; margin: 0; }
.mopt span { flex: 1; font-weight: 600; }
.mopt em { font-style: normal; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line-c); border-radius: 999px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--saffron); }
.qty b { min-width: 26px; text-align: center; font-size: 16px; }
.qty.sm button { width: 28px; height: 28px; }
.qty.sm button svg { width: 15px; height: 15px; }
.qty.sm b { min-width: 22px; font-size: 14px; }
.im-foot { display: flex; gap: 12px; align-items: center; width: 100%; }
.im-foot .btn { flex: 1; justify-content: space-between; }
@media (max-width: 640px) {
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal.sm, .modal.lg { max-width: none; border-radius: 26px 26px 0 0; max-height: 92vh; max-height: 92dvh; transform: translateY(40px); }
  .im-hero { height: 200px; }
}

/* success / steps / badges (CP helpers) */
.success-box { text-align: center; padding: 6px 4px; }
.success-mark { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--mint); color: #fff; box-shadow: 0 0 0 10px var(--mint-soft); }
.success-mark svg { width: 36px; height: 36px; stroke-width: 3; }
.success-box h3 { margin: 0 0 6px; font-size: 21px; }
.badge.b-new { background: rgba(96, 165, 250, .16); color: #2563eb; }
.badge.b-preparing { background: var(--saffron-soft); color: #b56f00; }
.badge.b-ready { background: var(--mint-soft); color: #13865a; }
.badge.b-served { background: rgba(167, 139, 250, .16); color: #6d4fd8; }
.badge.b-paid { background: rgba(42, 33, 24, .08); color: var(--ink-2); }
.badge.b-cancelled { background: var(--ember-soft); color: var(--ember); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--cream-2); color: var(--ink-2); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* live tracker (order-status + table) */
.tracker { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 4px; margin: 6px 0; }
.tk { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.tk .tk-d { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-c); position: relative; z-index: 1; transition: .3s; }
.tk::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 3px; background: var(--line-c); border-radius: 2px; }
.tk:first-child::before { display: none; }
.tk b { font-size: 13.5px; color: inherit; line-height: 1.35; }
.tk small { font-size: 12px; min-height: 16px; }
.tk.done { color: var(--ink); }
.tk.done .tk-d { background: var(--mint); border-color: var(--mint); color: #fff; }
.tk.done::before, .tk.now::before { background: var(--mint); }
.tk.now { color: var(--ember); }
.tk.now .tk-d { background: var(--saffron); border-color: var(--saffron); color: #1d1406; box-shadow: 0 0 0 7px var(--saffron-soft); animation: ring 1.8s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 12px rgba(245, 165, 36, .05); } }
@media (max-width: 420px) { .tk .tk-d { width: 38px; height: 38px; } .tk::before { top: 18px; } .tk b { font-size: 12px; } .tk small { font-size: 11px; } }

/* --------------------------------------------------------------- Order page */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.summary { position: sticky; top: calc(var(--hh) + 16px); background: var(--char); color: var(--on-dark); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-lg); }
.summary h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; font-size: 19px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--on-dark-2); }
.sum-row b { color: var(--on-dark); }
.sum-row.total { border-top: 1px dashed var(--line-d); margin-top: 6px; padding-top: 14px; font-size: 18px; color: #fff; }
.sum-row.total b { color: var(--saffron); font-size: 22px; font-weight: 900; }
.summary .btn { margin-top: 16px; }
.summary .secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--on-dark-2); margin-top: 12px; }
.cart-lines { display: grid; gap: 10px; }
.cl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line-c); border-radius: 18px; padding: 10px; }
.cl .dish-img { width: 64px; height: 64px; border-radius: 14px; }
.cl .dish-img::before { font-size: 28px; }
.cl b { display: block; font-size: 15.5px; line-height: 1.35; }
.cl small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.cl .cl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl .cl-p { font-weight: 800; white-space: nowrap; }
.cl.bad { border-color: var(--ember); background: #fff3ec; }
.cl .rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; padding: 0; }
.cl .rm:hover { color: var(--ember); }
.cl .rm svg { width: 14px; height: 14px; }
.quick-add { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.qa { flex: 0 0 150px; background: #fff; border: 1px solid var(--line-c); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: start; padding: 0; font: inherit; color: inherit; }
.qa .dish-img { aspect-ratio: 4 / 3; }
.qa div { padding: 8px 10px; }
.qa b { display: block; font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa small { color: var(--ember); font-weight: 800; }
.qa:hover { border-color: var(--saffron); }
.qa.off { opacity: .45; cursor: not-allowed; }
@media (max-width: 1000px) { .order-layout { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }

/* payment simulation */
.pay-sim { text-align: center; padding: 8px 0; }
.pay-sim .ap-logo { font-size: 26px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.pay-sim .ap-amt { font-size: 34px; font-weight: 900; margin: 10px 0 4px; }
.pay-sim .faceid { width: 76px; height: 76px; margin: 18px auto 10px; border-radius: 22px; border: 3px solid var(--ink); display: grid; place-items: center; transition: .3s; }
.pay-sim .faceid svg { width: 38px; height: 38px; }
.pay-sim .faceid.ok { border-color: var(--mint); color: var(--mint); }
.mada-card { margin: 6px auto 14px; max-width: 300px; aspect-ratio: 1.6; border-radius: 18px; padding: 16px 18px; color: #fff; background: linear-gradient(130deg, #1b3b6f, #0f2445 60%, #2a1b4a); display: flex; flex-direction: column; justify-content: space-between; text-align: start; box-shadow: var(--sh); }
.mada-card .mc-top { display: flex; justify-content: space-between; font-weight: 800; }
.mada-card .mc-no { font-size: 19px; letter-spacing: 2px; direction: ltr; text-align: left; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- Status page */
.status-card { background: var(--cream-3); border: 1px solid var(--line-c); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh); }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.st-no { font-size: 40px; font-weight: 900; line-height: 1; color: var(--ember); }
.eta { display: flex; align-items: center; gap: 14px; background: var(--char); color: #fff; border-radius: 20px; padding: 14px 18px; }
.eta .eta-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--saffron); color: #1d1406; display: grid; place-items: center; }
.eta b { display: block; font-size: 22px; line-height: 1.2; }
.eta small { color: var(--on-dark-2); }
.st-msg { text-align: center; margin: 20px 0 6px; font-size: 18px; font-weight: 800; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; margin-top: 24px; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-bottom: 1px dashed var(--line-c); padding-bottom: 8px; }
.kv div span { color: var(--ink-2); }
.items-list { display: grid; gap: 8px; }
.items-list .il { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.items-list .il small { display: block; color: var(--ink-2); font-size: 12.5px; }
.items-list .il.done b { text-decoration: line-through; text-decoration-color: var(--mint); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--mint); }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: pulse 1.4s infinite; }
@media (max-width: 760px) { .st-grid { grid-template-columns: minmax(0, 1fr); } .status-card { padding: 20px 16px; } .st-no { font-size: 32px; } }

/* --------------------------------------------------------------- Reserve page */
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.res-aside { background: var(--char); color: var(--on-dark); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: calc(var(--hh) + 16px); }
.res-aside .ph { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.res-aside .in { padding: 22px; display: grid; gap: 12px; }
.res-aside .br-line { color: var(--on-dark-2); }
.res-aside .br-line svg { color: var(--saffron); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line-c); background: #fff; border-radius: 12px; padding: 9px 4px; text-align: center; font-weight: 800; cursor: pointer; font-size: 14px; font-family: inherit; color: var(--ink); }
.slot:hover { border-color: var(--ink-3); }
.slot.on { background: var(--char); color: var(--saffron); border-color: var(--char); }
.slot.full { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.guests-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.guests-pick button { width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line-c); background: #fff; font-weight: 800; font-size: 16px; cursor: pointer; color: var(--ink); }
.guests-pick button.on { background: var(--saffron); border-color: var(--saffron); color: #1d1406; }
.ticket-conf { border: 2px dashed var(--line-c); border-radius: 18px; padding: 16px; margin-top: 12px; text-align: start; }
@media (max-width: 1000px) { .res-layout { grid-template-columns: minmax(0, 1fr); } .res-aside { position: static; } }

/* --------------------------------------------------------------- Branches page */
.br-full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--cream-3); border: 1px solid var(--line-c); border-radius: var(--r-lg); overflow: hidden; }
.br-full + .br-full { margin-top: 26px; }
.br-full .br-info { padding: 30px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.br-full h2 { font-family: var(--serif); font-size: 32px; margin: 0; }
.br-full .br-pics { display: grid; grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); min-height: 420px; }
.br-full .br-pics .ph { background-size: cover; background-position: center; position: relative; }
.br-full .br-pics .ph .open-chip { position: absolute; top: 16px; inset-inline-start: 16px; }
.map { position: relative; overflow: hidden; background-color: #e9dfcf; background-image: linear-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .55) 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px; }
.map::before { content: ""; position: absolute; width: 140%; height: 26px; background: #fff7e6; top: 46%; left: -20%; transform: rotate(-14deg); box-shadow: 0 0 0 2px rgba(245, 165, 36, .35); }
.map::after { content: ""; position: absolute; width: 18px; height: 140%; background: #fff; top: -20%; left: 62%; transform: rotate(10deg); }
.map.sea::after { width: 34%; height: 100%; top: 0; left: 0; transform: none; background: linear-gradient(90deg, #8ec5e8, #b7dbef); }
.map .park { position: absolute; width: 90px; height: 64px; border-radius: 18px; background: #cfe3b9; top: 14%; right: 12%; }
.map .pin { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -100%); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.map .pin span { background: var(--char); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; box-shadow: var(--sh); }
.map .pin i { width: 36px; height: 36px; margin-top: 4px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ember); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(232, 89, 12, .2); }
.map .pin i::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; }
.feat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line-c); font-size: 13.5px; font-weight: 600; }
.feat svg { width: 15px; height: 15px; color: var(--ember); }
.hours-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-t td { padding: 6px 0; border-bottom: 1px dashed var(--line-c); }
.hours-t td:last-child { text-align: left; font-weight: 700; }
.hours-t tr.today td { color: var(--ember); font-weight: 800; }
@media (max-width: 900px) { .br-full { grid-template-columns: minmax(0, 1fr); } .br-full .br-pics { min-height: 340px; order: -1; } .br-full .br-info { padding: 22px 18px; } }

/* --------------------------------------------------------------- Toast (CP.toast) */
.toast-wrap { position: fixed; z-index: 300; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: #1c1a17; color: #f5efe6; box-shadow: var(--sh-lg); font-size: 14.5px; animation: toastIn .25s ease; font-family: var(--font); }
.toast.hide { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast .t-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; flex-shrink: 0; }
.toast.error .t-icon { background: var(--ember); }
.toast.warning .t-icon, .toast.order .t-icon { background: var(--saffron); color: #1d1406; }
.toast.info .t-icon { background: #60a5fa; }
.toast .t-icon svg { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 560px) { .toast-wrap { left: 16px; right: 16px; bottom: 90px; max-width: none; } }

/* ==========================================================================
   QR table ordering (table.html) — app-like mobile page
   ========================================================================== */
body.tbl-app { background: #f3eadc; }
.tapp { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--cream); position: relative; padding-bottom: 120px; box-shadow: 0 0 60px rgba(0, 0, 0, .08); }
.t-top { position: relative; color: #fff; background: var(--char); overflow: hidden; }
.t-top .hero-bg { opacity: .38; animation: none; transform: none; }
.t-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--char) 8%, rgba(18, 18, 18, .35)); }
.t-top .in { position: relative; z-index: 2; padding: 16px 16px 18px; }
.t-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.t-bar .logo b { font-size: 19px; }
.t-bar .logo-mark { width: 34px; height: 34px; border-radius: 11px; }
.t-bar .logo-mark svg { width: 22px; height: 22px; }
.t-bar .t-acts { display: flex; gap: 6px; }
.t-bar .btn-icon { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); }
.t-title { display: flex; align-items: center; gap: 12px; }
.t-title .tno { width: 58px; height: 58px; border-radius: 18px; background: var(--saffron); color: #1d1406; display: grid; place-items: center; font-weight: 900; font-size: 26px; flex-shrink: 0; box-shadow: 0 10px 26px -10px rgba(245, 165, 36, .9); }
.t-title h1 { font-size: 22px; margin: 0; line-height: 1.3; }
.t-title small { color: #d8ccba; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.t-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.t-actions button:hover { background: rgba(255, 255, 255, .16); }
.t-actions button svg { color: var(--saffron); }
.t-chips { position: sticky; top: 0; z-index: 30; background: rgba(247, 239, 227, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 12px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-c); }
.t-chips::-webkit-scrollbar { display: none; }
.t-chips button { flex-shrink: 0; border: 1.5px solid var(--line-c); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 14px; cursor: pointer; }
.t-chips button.on { background: var(--char); color: #fff; border-color: var(--char); }
.t-sec { padding: 6px 12px 4px; }
.t-sec h2 { font-size: 19px; margin: 18px 4px 10px; display: flex; align-items: center; gap: 8px; }
.t-list { display: grid; gap: 10px; }
.td { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; background: #fff; border-radius: 20px; padding: 10px; border: 1px solid var(--line-c); cursor: pointer; position: relative; }
.td .dish-img { width: 104px; height: 104px; border-radius: 16px; grid-column: 2; grid-row: 1; }
.td .td-b { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 2px 4px; }
.td b { font-size: 15.5px; line-height: 1.35; }
.td p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td .td-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.td .price { font-size: 16px; }
.td .t-add { position: absolute; bottom: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--saffron); color: #1d1406; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); z-index: 2; }
.td .in-cart { position: absolute; top: 16px; left: 16px; z-index: 2; min-width: 26px; height: 26px; border-radius: 13px; background: var(--char); color: var(--saffron); font-weight: 900; font-size: 13px; display: grid; place-items: center; padding: 0 7px; }
.td.off { cursor: default; }
.td.off .dish-img { filter: grayscale(1) brightness(.8); }
.td.off .t-add { background: #ddd2c2; color: #8c7e6d; box-shadow: none; }
.t-cartbar { position: fixed; bottom: 14px; left: 50%; transform: translate(-50%, 160%); width: calc(100% - 24px); max-width: 536px; z-index: 60; background: var(--char); color: #fff; border-radius: 20px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-lg); cursor: pointer; transition: transform .25s ease; border: 0; font: inherit; text-align: start; }
.t-cartbar.show { transform: translate(-50%, 0); }
.t-cartbar .n { width: 38px; height: 38px; border-radius: 12px; background: var(--saffron); color: #1d1406; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.t-cartbar .lbl { flex: 1; font-weight: 800; }
.t-cartbar .lbl small { display: block; font-weight: 500; color: var(--on-dark-2); font-size: 12px; }
.t-cartbar .sum { font-weight: 900; color: var(--saffron); white-space: nowrap; padding-inline-end: 6px; }
.my-orders { padding: 14px 12px 0; display: grid; gap: 12px; }
.mo { background: #fff; border: 1px solid var(--line-c); border-radius: 22px; padding: 16px; }
.mo-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mo-h b { font-size: 17px; }
.mo-h .no { color: var(--ember); font-weight: 900; font-size: 20px; }
.mo .il { font-size: 13.5px; }
.mo .mo-f { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-c); font-weight: 800; }
.mo.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 5px rgba(47, 191, 134, .45); } }
.t-conf { text-align: center; padding: 26px 16px 10px; }
.t-conf .success-mark { animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.t-conf .big-no { font-size: 46px; font-weight: 900; color: var(--ember); line-height: 1; margin: 6px 0; }
.t-foot { text-align: center; padding: 26px 16px 10px; font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.t-foot a { display: inline-flex; align-items: center; gap: 6px; }
.t-foot img { height: 16px; width: auto; opacity: .7; }
.guests-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-c); }
.bill-total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; padding: 12px 0; }
.t-err { padding: 60px 20px; text-align: center; }

/* Thouq product logo inside "يعمل بنظام ذوق" badges */
.logo-mark.thouq-logo { background: #fff8ec; padding: 3px; box-shadow: none; }
.logo-mark.thouq-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
