@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap");

/* Cuizeen brand guidelines: palette #E9DDCD / #AFBEA7 / #317472 / #254D4C / #231F20.
   Primary type is Aritsa (licensed, not yet supplied): --display uses Fredoka as a rounded stand-in.
   Secondary type is Montserrat. */
:root {
  color-scheme: light;
  --green: #254d4c;
  --green-2: #317472;
  --green-3: #e4eadf;
  --sage: #afbea7;
  --cream: #f6f0e4;
  --cream-2: #e9ddcd;
  --terra: #317472;
  --terra-2: #254d4c;
  --ink: #231f20;
  --muted: #6a6865;
  --paper: #fbf8f1;
  --white: #ffffff;
  --line: #e6dfd2;
  --success: #317472;
  --warning: #b36b17;
  --danger: #a43e36;
  --blue: #317472;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 28px 70px rgba(35, 31, 32, 0.13);
  --shadow-md: 0 16px 40px rgba(35, 31, 32, 0.09);
  --shadow-sm: 0 8px 24px rgba(35, 31, 32, 0.07);
  --display: "Fredoka", "Montserrat", "Segoe UI", Arial, sans-serif;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { outline-color: var(--terra); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--font-ar); letter-spacing: 0; }
.skip-link { position: fixed; inset-inline-start: 14px; top: -60px; z-index: 1000; background: var(--ink); color: white; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 14px; }

.app-shell { min-height: 100vh; }
.customer-shell { background: var(--paper); }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 80px; display: grid; grid-template-columns: 220px minmax(200px, 560px) auto;
  align-items: center; gap: 28px; padding: 0 4.5vw;
  background: rgba(251,248,241,.93); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(37,77,76,.08);
}
.brand-logo { width: 184px; }
.brand-logo.reversed { width: 170px; }
.searchbar { position: relative; }
.searchbar svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 19px; color: var(--muted); }
.searchbar input {
  width: 100%; border: 1px solid transparent; background: #f3f0e8; border-radius: 999px;
  padding: 13px 48px; color: var(--ink); transition: .2s ease;
}
.searchbar input:focus { border-color: rgba(37,77,76,.3); background: white; box-shadow: 0 0 0 4px rgba(37,77,76,.08); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.icon-btn, .text-btn, .role-chip, .profile-btn {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease;
}
.icon-btn { width: 42px; position: relative; }
.icon-btn:hover, .text-btn:hover, .profile-btn:hover { background: var(--cream); }
.text-btn { padding: 0 14px; font-weight: 700; color: var(--green); }
.profile-btn { padding: 5px 7px 5px 5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--cream); font-weight: 800; font-size: 12px; }
.badge-count { position: absolute; top: -1px; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--terra); color: white; font-size: 11px; font-weight: 800; border: 2px solid var(--paper); }

.customer-nav {
  height: 54px; display: flex; align-items: center; justify-content: center; gap: 4px;
  border-bottom: 1px solid rgba(37,77,76,.08); background: var(--paper); position: sticky; top: 80px; z-index: 35;
}
.nav-link { border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; cursor: pointer; color: #56635b; font-weight: 650; white-space: nowrap; }
.nav-link:hover { color: var(--green); background: var(--cream); }
.nav-link.active { color: var(--paper); background: var(--green); }
.main-wrap { width: min(1440px, 91vw); margin: 0 auto; padding: 30px 0 72px; }
.view { animation: view-in .28s ease backwards; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.hero {
  min-height: 540px; border-radius: 34px; position: relative; overflow: hidden; color: var(--cream);
  background: var(--green) url("media/cuizeen-family-table.png") center / cover no-repeat;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; padding: 60px clamp(30px,6vw,84px);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,48,47,.94) 0%, rgba(28,62,61,.7) 36%, rgba(28,62,61,.12) 67%, rgba(28,62,61,0) 100%); }
html[dir="rtl"] .hero::after { background: linear-gradient(-90deg, rgba(19,48,47,.94) 0%, rgba(28,62,61,.7) 36%, rgba(28,62,61,.12) 67%, rgba(28,62,61,0) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 850; color: var(--terra); margin: 0 0 16px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: .99; margin: 0 0 20px; font-weight: 700; max-width: 720px; }
.hero p { color: rgba(246,240,228,.83); font-size: 18px; line-height: 1.65; max-width: 500px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  border: 0; border-radius: 999px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--terra); color: white; box-shadow: 0 12px 24px rgba(49,116,114,.25); }
.btn.primary:hover { background: var(--terra-2); }
.btn.secondary { background: var(--cream); color: var(--green); }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid rgba(37,77,76,.2); }
.btn.ghost-light { background: rgba(255,255,255,.1); color: var(--cream); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn.dark { background: var(--green); color: var(--cream); }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: 13px; }
.btn.danger { background: #fae7e5; color: var(--danger); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }

.section { padding-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px,3vw,42px); margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; line-height: 1.6; }
.section-link { border: 0; background: transparent; color: var(--green); font-weight: 800; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { color: var(--terra); }

.recommendation-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; margin-top: 22px;
  border-radius: var(--radius-lg); background: linear-gradient(120deg,#e9ddcd,#f6f0e4); border: 1px solid #ddd0bb;
}
.rec-icon { width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; background: var(--terra); color: white; }
.rec-icon svg { width: 24px; }
.recommendation-band h3 { margin: 0 0 4px; font-size: 18px; }
.recommendation-band p { margin: 0; color: #715449; }

.category-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; border: 1px solid var(--line); background: white; padding: 10px 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #536159; cursor: pointer; }
.category-chip svg { width: 17px; height: 17px; }
.category-chip.active, .category-chip:hover { background: var(--green); color: white; border-color: var(--green); }

.meal-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.meal-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .25s ease; display: flex; flex-direction: column; min-width: 0; }
.meal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.meal-art { height: 186px; position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; }
.meal-art::before { content: ""; width: 118px; height: 118px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 10px rgba(255,255,255,.34), 0 17px 30px rgba(35,31,32,.12); }
.meal-art::after { content: attr(data-glyph); position: absolute; font-size: 62px; filter: drop-shadow(0 12px 14px rgba(35,31,32,.14)); }
.art-kabsa,.art-mandi,.art-maqluba,.art-ouzi { background: radial-gradient(circle at 75% 15%,#f6efe4 0 9%,transparent 10%), linear-gradient(135deg,#e9ddcd,#d4c3a8); }
.art-kofta,.art-grill,.art-kids { background: radial-gradient(circle at 75% 15%,#e9ddcd 0 9%,transparent 10%), linear-gradient(135deg,#cdd8c6,#afbea7); }
.art-molokhia,.art-salad,.art-leaves { background: radial-gradient(circle at 75% 15%,#e4eadf 0 9%,transparent 10%), linear-gradient(135deg,#afbea7,#6f9a8f); }
.art-fish,.art-salmon { background: radial-gradient(circle at 75% 15%,#f6efe4 0 9%,transparent 10%), linear-gradient(135deg,#afbea7,#317472); }
.art-jareesh,.art-lentil { background: radial-gradient(circle at 75% 15%,#ffffff 0 9%,transparent 10%), linear-gradient(135deg,#e9ddcd,#c9b99d); }
.art-aubergine,.art-bamia { background: radial-gradient(circle at 75% 15%,#e4eadf 0 9%,transparent 10%), linear-gradient(135deg,#6f9a8f,#254d4c); }
.art-pasta,.art-mac { background: radial-gradient(circle at 75% 15%,#f6efe4 0 9%,transparent 10%), linear-gradient(135deg,#d9d2b8,#afbea7); }
.art-roast { background: linear-gradient(135deg,#e9ddcd,#afbea7); }
.art-cake { background: radial-gradient(circle at 75% 15%,#f6efe4 0 9%,transparent 10%), linear-gradient(135deg,#c9b99d,#7d6a55); }
/* Real menu photography: the photo replaces the decorative glyph, the art-* gradient remains as the loading backdrop. */
.meal-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.meal-art.has-photo::before, .meal-art.has-photo::after { display: none; }
.meal-art.has-photo::after { display: none; }
.meal-card:hover .meal-photo { transform: scale(1.04); }
.meal-modal-art.has-photo { padding: 0; }
.meal-modal-art.has-photo .meal-photo { position: absolute; }
.cart-thumb.has-photo, .mini-art.has-photo, .ai-food-art.has-photo { position: relative; overflow: hidden; padding: 0; }
.cart-thumb.has-photo img, .mini-art.has-photo img, .ai-food-art.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-food-art.has-photo small { position: absolute; inset-inline: 0; bottom: 0; padding: 4px 2px; background: rgba(35,31,32,.62); color: #fff; text-align: center; }
.meal-badge { position: absolute; top: 13px; inset-inline-start: 13px; z-index: 2; padding: 7px 10px; background: rgba(251,248,241,.9); backdrop-filter: blur(6px); border-radius: 999px; font-size: 11px; font-weight: 850; color: var(--green); }
.heart-btn { position: absolute; top: 11px; inset-inline-end: 11px; z-index: 2; width: 34px; height: 34px; border: 0; background: rgba(251,248,241,.86); backdrop-filter: blur(6px); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.heart-btn.active { color: var(--terra); }
.meal-body { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.meal-body h3 { font-size: 18px; margin: 0 0 6px; }
.meal-body p { color: var(--muted); font-size: 13px; line-height: 1.52; margin-bottom: 14px; flex: 1; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 15px; }
.tag { padding: 5px 8px; border-radius: 7px; background: var(--cream); color: #647068; font-size: 11px; font-weight: 750; }
.meal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 19px; font-weight: 850; color: var(--green); }
.price small { font-size: 11px; color: var(--muted); font-weight: 650; }
.add-btn { min-width: 40px; height: 40px; border: 0; border-radius: 14px; background: var(--green); color: white; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 800; }
.add-btn:hover { background: var(--terra); }
.add-btn[disabled] { background: #d7d7d0; cursor: not-allowed; }

.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.feature-card { border-radius: 26px; overflow: hidden; padding: 34px; min-height: 330px; position: relative; }
.feature-card.dark { background: var(--green); color: var(--cream); }
.feature-card.cream { background: var(--cream); }
.feature-card .large-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: rgba(49,116,114,.16); color: var(--terra); margin-bottom: 40px; }
.feature-card.dark .large-icon { background: rgba(255,255,255,.1); color: var(--cream); }
.feature-card h3 { font-size: 30px; margin-bottom: 12px; }
.feature-card p { max-width: 580px; color: var(--muted); line-height: 1.65; }
.feature-card.dark p { color: rgba(246,240,228,.72); }

.page-head { padding: 16px 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 22px; }
.page-head h1 { font-size: clamp(34px,4vw,54px); margin: 0 0 8px; }
.page-head p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 740px; }
.page-tools { display: flex; gap: 9px; flex-wrap: wrap; }
.filter-panel { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: white; margin: 12px 0 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select, .input, .textarea { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 12px; padding: 11px 13px; min-height: 44px; width: 100%; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(37,77,76,.08); }
.filter-panel .select { width: auto; min-width: 160px; }
.spacer { flex: 1; }

.conventional-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--cream); color: #536159; margin-top: 18px; font-size: 13px; }
.conventional-note svg { flex: 0 0 20px; color: var(--green); }

.ai-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 22px; }
.ai-panel, .summary-card, .panel { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm); }
.ai-brand { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ai-mark { width: 48px; height: 48px; border-radius: 16px; background: var(--green); color: var(--cream); display: grid; place-items: center; position: relative; }
.ai-mark::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); top: 6px; inset-inline-end: 6px; border: 2px solid var(--cream); }
.stepper { display: flex; gap: 7px; margin: 24px 0; }
.stepper span { height: 5px; flex: 1; background: var(--line); border-radius: 99px; }
.stepper span.done { background: var(--terra); }
.question-card { padding: 4px 0 14px; }
.question-card h2 { font-size: 32px; margin-bottom: 9px; }
.question-card > p { color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.choice { min-height: 68px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: start; }
.choice:hover, .choice.active { border-color: var(--green); background: var(--green-3); }
.choice.active::after { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.ai-safety { margin-top: 16px; border-inline-start: 3px solid var(--terra); padding: 12px 14px; background: #f6f0e4; color: #254d4c; font-size: 13px; line-height: 1.55; }
.summary-card { position: sticky; top: 155px; height: fit-content; }
.summary-card h3 { margin-bottom: 18px; }
.answer-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.answer-row span:first-child { color: var(--muted); }
.answer-row strong { text-align: end; }
.suggested-list { display: grid; gap: 10px; margin-top: 16px; }
.suggested-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; padding: 10px; border-radius: 14px; background: var(--cream); }
.suggested-item .mini-art { height: 52px; border-radius: 12px; display: grid; place-items: center; background: #eac999; font-size: 26px; }
.suggested-item h4 { margin: 0 0 2px; font-size: 14px; }
.suggested-item p { margin: 0; font-size: 12px; color: var(--muted); }

.planner-grid { display: grid; grid-template-columns: repeat(7,minmax(140px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.day-column { min-width: 140px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-height: 340px; }
.day-column.active { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.day-column h3 { font-size: 15px; margin-bottom: 3px; }
.day-column .date { font-size: 12px; color: var(--muted); }
.plan-slot { margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--cream); min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; }
.plan-slot.empty { border: 1px dashed #c9cbc4; background: #fbfaf6; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.plan-slot h4 { font-size: 13px; margin-bottom: 5px; }
.plan-slot p { font-size: 11px; color: var(--muted); }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 22px; }
.checkout-section { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 14px; }
.checkout-title { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.checkout-num { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 850; }
.checkout-title h3 { margin: 0; font-size: 18px; }
.option-cards { display: grid; gap: 10px; }
.option-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.option-card.active { border-color: var(--green); background: var(--green-3); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #aab0ac; position: relative; }
.option-card.active .radio-dot { border-color: var(--green); }
.option-card.active .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 12px; font-weight: 800; color: #4d5952; }
.sticky-order { position: sticky; top: 155px; height: fit-content; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.line-item h4 { font-size: 13px; margin: 0 0 3px; }
.line-item p { margin: 0; font-size: 12px; color: var(--muted); }
.totals { margin-top: 15px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 13px; }
.total-row.grand { color: var(--ink); font-weight: 850; font-size: 18px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 5px; }

.order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: white; margin-bottom: 12px; }
.order-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--cream); color: var(--green); display: grid; place-items: center; }
.order-card h3 { margin: 0 0 5px; font-size: 16px; }
.order-card p { margin: 0; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.new { background: #edf2fb; color: #496c99; }
.status.approved { background: #eeeaf9; color: #675398; }
.status.preparing { background: #fff2db; color: #a36513; }
.status.completed,.status.active,.status.paid { background: #e6f4eb; color: #347751; }
.status.handover { background: #e5f2f3; color: #35747a; }
.status.exceptions,.status.inactive,.status.failed { background: #fae7e5; color: #9e493f; }
.status.demo { background: #fff1e9; color: var(--terra-2); }

.timeline { margin: 24px 0; display: grid; grid-template-columns: repeat(5,1fr); }
.timeline-step { position: relative; text-align: center; padding-top: 28px; font-size: 11px; color: var(--muted); }
.timeline-step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #d8ddd9; border: 4px solid white; box-shadow: 0 0 0 1px #cad0cc; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); z-index: 2; }
.timeline-step::after { content: ""; height: 2px; background: #d8ddd9; position: absolute; top: 13px; left: 0; right: 0; }
.timeline-step:first-child::after { left: 50%; }
.timeline-step:last-child::after { right: 50%; }
.timeline-step.done::before { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-step.done::after { background: var(--green); }
.timeline-step.current::before { background: var(--terra); box-shadow: 0 0 0 4px #f5ddd4; }

.chef-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.chef-card { background: var(--cream); border-radius: 26px; padding: 28px; display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: center; }
.chef-portrait { width: 116px; height: 138px; border-radius: 58px 58px 22px 22px; background: linear-gradient(160deg,var(--green),#1c3e3d); color: var(--cream); display: grid; place-items: center; font-size: 32px; font-weight: 800; position: relative; overflow: hidden; }
.chef-portrait::after { content: ""; position: absolute; width: 70px; height: 25px; border-radius: 50%; background: rgba(49,116,114,.8); bottom: 15px; transform: rotate(-10deg); }
.chef-card h3 { margin-bottom: 5px; }
.chef-card .role { color: var(--terra); font-weight: 800; font-size: 13px; }
.chef-card p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.boundary-note { margin-top: 22px; padding: 18px 20px; border: 1px solid #ddd0bb; background: #f6f0e4; border-radius: 16px; color: #254d4c; font-size: 13px; line-height: 1.6; }

.request-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; }
.upload-placeholder { border: 1px dashed #b9c0bb; background: #fbfaf6; min-height: 112px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
.upload-placeholder strong { color: var(--ink); }
.placeholder-tag { display: inline-flex; gap: 6px; align-items: center; color: var(--terra); font-weight: 800; font-size: 11px; margin-top: 7px; }

.account-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 22px; }
.account-nav { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 20px; height: fit-content; }
.account-nav a, .account-nav button { width: 100%; box-sizing: border-box; text-decoration: none; font: inherit; font-size: 14px; border: 0; background: transparent; text-align: start; padding: 12px 13px; border-radius: 11px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #59655e; white-space: nowrap; }
.account-nav a.active, .account-nav a:hover, .account-nav button.active, .account-nav button:hover { color: var(--green); background: var(--green-3); font-weight: 800; }
.pref-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pref-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: white; }
.pref-card.active { background: var(--green-3); border-color: var(--green); }
.pref-card h4 { margin: 0 0 3px; }
.pref-card p { margin: 0; color: var(--muted); font-size: 12px; }

.cart-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(10,20,14,.44); opacity: 0; transition: .25s; }
.cart-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px,100vw); background: var(--paper); box-shadow: -22px 0 60px rgba(0,0,0,.16); transform: translateX(105%); transition: .3s ease; display: flex; flex-direction: column; }
html[dir="rtl"] .cart-panel { transform: translateX(-105%); }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: none; }
.drawer-head { padding: 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 18px 24px; overflow: auto; flex: 1; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: white; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center; background: #e9ddcd; font-size: 30px; }
.cart-item h4 { margin: 0 0 4px; font-size: 14px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; }
.qty button { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); background: white; cursor: pointer; }
.empty-state { min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 78px; height: 78px; border-radius: 25px; background: var(--cream); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }

.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,20,14,.52); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(940px,100%); max-height: min(88vh,820px); overflow: auto; background: var(--paper); border-radius: 28px; box-shadow: 0 32px 90px rgba(0,0,0,.25); animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity:0; transform: scale(.97) translateY(10px); } }
.modal-close { position: sticky; top: 14px; float: inline-end; z-index: 3; margin: 14px 14px 0 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); cursor: pointer; }
html[dir="rtl"] .modal-close { margin: 14px 0 0 14px; }
.meal-modal-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 600px; }
.meal-modal-art { min-height: 600px; display: grid; place-items: center; position: sticky; top: 0; background: linear-gradient(135deg,#e9ddcd,#afbea7); }
.meal-modal-art .plate { width: 250px; height: 250px; border-radius: 50%; display: grid; place-items: center; font-size: 120px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 20px rgba(255,255,255,.28), 0 30px 50px rgba(0,0,0,.14); }
.meal-modal-info { padding: 48px 38px 36px; }
.meal-modal-info h2 { font-size: 38px; margin-bottom: 9px; }
.detail-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0 18px; }
.detail-tabs button { border: 0; background: transparent; padding: 10px 4px; margin-inline-end: 18px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.detail-tabs button.active { color: var(--green); border-color: var(--green); font-weight: 800; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.nutrition { padding: 11px; border-radius: 12px; background: var(--cream); text-align: center; }
.nutrition strong { display: block; color: var(--green); }
.nutrition span { font-size: 10px; color: var(--muted); }
.portion-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0; }
.portion { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.portion.active { border-color: var(--green); background: var(--green-3); }

.toast-root { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 150; display: grid; gap: 9px; }
.toast { min-width: 280px; max-width: 410px; padding: 15px 17px; border-radius: 14px; background: var(--ink); color: white; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toast-in .25s ease both; }
.toast.success { background: var(--green); }
.toast.warning { background: #7b571d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Administration and kitchen workspaces */
.ops-shell { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; background: #f4f5f1; }
.ops-sidebar { background: var(--green); color: var(--cream); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.ops-sidebar .brand-logo { width: 170px; margin: 3px 10px 24px; }
.workspace-label { margin: 0 10px 24px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); font-size: 12px; }
.workspace-label strong { color: white; display: block; font-size: 13px; margin-top: 2px; }
.ops-nav { display: grid; gap: 3px; }
.ops-nav button { border: 0; background: transparent; color: rgba(246,240,228,.72); min-height: 43px; padding: 0 12px; border-radius: 11px; cursor: pointer; display: flex; align-items: center; gap: 11px; text-align: start; }
.ops-nav button svg { width: 18px; flex: 0 0 18px; }
.ops-nav button:hover, .ops-nav button.active { background: rgba(255,255,255,.11); color: white; }
.ops-nav button.active { box-shadow: inset 3px 0 0 var(--terra); }
html[dir="rtl"] .ops-nav button.active { box-shadow: inset -3px 0 0 var(--terra); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.user-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; color: white; padding: 10px; border-radius: 13px; background: rgba(255,255,255,.08); }
.user-card .avatar { background: var(--cream); color: var(--green); }
.user-card strong { font-size: 12px; display: block; }
.user-card span { font-size: 10px; color: rgba(255,255,255,.62); }
.ops-main { min-width: 0; }
.ops-topbar { height: 78px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid #e0e3df; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.ops-title h1 { font-size: 20px; margin: 0; }
.ops-title p { font-size: 11px; margin: 2px 0 0; color: var(--muted); }
.ops-actions { display: flex; align-items: center; gap: 8px; }
.ops-content { padding: 26px 28px 60px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: white; border: 1px solid #e0e3df; border-radius: 18px; padding: 19px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -44px; width: 120px; height: 120px; border-radius: 50%; background: var(--green-3); opacity: .7; }
.kpi-card .kpi-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: var(--green-3); margin-bottom: 18px; }
.kpi-card .value { font-size: 28px; font-weight: 850; position: relative; z-index: 1; }
.kpi-card .label { color: var(--muted); font-size: 12px; }
.trend { display: inline-flex; align-items: center; gap: 3px; margin-top: 9px; font-size: 10px; font-weight: 800; color: var(--success); position: relative; z-index: 1; }
.ops-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.ops-panel { background: white; border: 1px solid #e0e3df; border-radius: 18px; overflow: hidden; }
.ops-panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid #e8eae6; }
.ops-panel-head h2 { margin: 0; font-size: 16px; }
.ops-panel-body { padding: 16px 18px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: start; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 10px; border-bottom: 1px solid #e9ebe8; white-space: nowrap; }
.data-table td { padding: 13px 10px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbf8; }
.table-primary { font-weight: 800; color: var(--green); }
.table-secondary { color: var(--muted); font-size: 10px; margin-top: 2px; }
.table-scroll { overflow-x: auto; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-actions button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.metric-bars { display: grid; gap: 14px; }
.metric-row .metric-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.metric-track { height: 8px; background: #edf0ed; border-radius: 99px; overflow: hidden; }
.metric-fill { height: 100%; background: var(--green); border-radius: inherit; }
.alert-list { display: grid; gap: 10px; }
.alert-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 11px; border-radius: 12px; background: #fafaf7; }
.alert-item .alert-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff1e8; color: var(--terra); }
.alert-item h4 { margin: 0 0 2px; font-size: 12px; }
.alert-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.alert-item time { color: var(--muted); font-size: 9px; }

.kanban { display: grid; grid-template-columns: repeat(6,minmax(210px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { min-width: 210px; background: #ecefeb; border-radius: 16px; padding: 11px; }
.kanban-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 3px 3px 6px; }
.kanban-head h3 { margin: 0; font-size: 12px; }
.kanban-head span { width: 22px; height: 22px; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.kanban-card { background: white; border-radius: 13px; padding: 12px; margin-bottom: 9px; box-shadow: 0 4px 12px rgba(35,31,32,.05); cursor: pointer; }
.kanban-card:hover { box-shadow: var(--shadow-sm); }
.kanban-card .order-number { color: var(--green); font-weight: 850; font-size: 11px; }
.kanban-card h4 { margin: 7px 0 4px; font-size: 12px; }
.kanban-card p { margin: 0; font-size: 10px; color: var(--muted); }
.kanban-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 9px; font-size: 10px; }

.map-box { min-height: 370px; border-radius: 16px; background: linear-gradient(135deg,#eef2ed,#dbe4dc); position: relative; overflow: hidden; border: 1px solid #dce2dc; }
.map-box::before, .map-box::after { content: ""; position: absolute; border: 2px solid rgba(37,77,76,.12); border-radius: 50%; }
.map-box::before { width: 400px; height: 260px; top: 30px; left: 40px; transform: rotate(-12deg); }
.map-box::after { width: 280px; height: 420px; top: -40px; right: 80px; transform: rotate(24deg); }
.zone-shape { position: absolute; border: 2px solid; border-radius: 44% 56% 50% 50% / 42% 40% 60% 58%; padding: 16px; font-size: 11px; font-weight: 800; display: grid; place-items: center; text-align: center; }
.zone-north { width: 190px; height: 120px; top: 45px; left: 28%; color: var(--green); background: rgba(37,77,76,.12); }
.zone-central { width: 170px; height: 120px; top: 165px; left: 36%; color: var(--terra-2); background: rgba(49,116,114,.14); }
.zone-east { width: 190px; height: 150px; top: 100px; left: 57%; color: #7c693b; background: rgba(220,191,99,.18); }
.legend { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; background: rgba(255,255,255,.82); border-radius: 10px; padding: 8px; font-size: 9px; }
.legend span { display: inline-flex; gap: 4px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.report-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.chart { height: 230px; display: flex; align-items: end; gap: 12px; padding-top: 24px; }
.bar-wrap { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.bar { width: 100%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: var(--green); min-height: 10px; position: relative; }
.bar.alt { background: var(--terra); }
/* Inertia's page-loading bar also uses a ".bar" element: undo the chart-bar styling so it stays a thin full-width line. */
#nprogress .bar { max-width: none; min-height: 0; border-radius: 0; position: fixed; }
.bar-value { font-size: 9px; color: var(--muted); }
.bar-label { font-size: 9px; color: var(--muted); }
.donut { width: 180px; height: 180px; border-radius: 50%; margin: 20px auto; background: conic-gradient(var(--green) 0 43%, var(--terra) 43% 69%, var(--sage) 69% 86%, #e9ddcd 86% 100%); display: grid; place-items: center; }
.donut::after { content: attr(data-total); white-space: pre; width: 112px; height: 112px; border-radius: 50%; background: white; display: grid; place-items: center; text-align: center; font-size: 17px; font-weight: 850; line-height: 1.1; }

.integration-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.integration-card { background: white; border: 1px solid #e0e3df; border-radius: 16px; padding: 17px; }
.integration-card .integration-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.integration-card h3 { margin: 0 0 4px; font-size: 14px; }
.integration-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.integration-card .scope { margin-top: 13px; padding: 10px; background: #f7f8f5; border-radius: 10px; }

.requirements-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-bottom: 15px; }
.requirement-group { background: white; border: 1px solid #e0e3df; border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.requirement-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 17px; font-weight: 850; }
.requirement-group summary::-webkit-details-marker { display:none; }
.requirement-group[open] summary { border-bottom: 1px solid #e5e8e4; }
.req-list { padding: 4px 17px; }
.req-row { display: grid; grid-template-columns: 72px 1.2fr .8fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf0ed; }
.req-row:last-child { border: 0; }
.req-id { font-weight: 850; color: var(--green); }
.req-row h4 { margin: 0 0 4px; font-size: 12px; }
.req-row p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.req-status { justify-self: end; }

.mobile-bottom-nav { display: none; }
.mobile-menu-btn { display: none; }

/* Refined compact visual scale */
body { font-size: 14px; }
.topbar {
  height: 68px;
  grid-template-columns: 190px minmax(200px, 520px) auto;
  gap: 22px;
}
.brand-logo { width: 158px; }
.topbar .searchbar input { padding-top: 11px; padding-bottom: 11px; }
.icon-btn, .text-btn, .role-chip, .profile-btn { min-height: 38px; }
.icon-btn { width: 38px; }
.customer-nav { height: 46px; top: 68px; }
.nav-link { padding: 8px 13px; font-size: 13px; }
.main-wrap { width: min(1240px, 92vw); padding: 22px 0 58px; }
.hero {
  min-height: 430px;
  border-radius: 26px;
  padding: 46px clamp(30px, 5vw, 66px);
}
.hero-copy { max-width: 510px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; margin-bottom: 16px; }
.hero p { font-size: 16px; line-height: 1.58; max-width: 470px; }
.eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .16em; }
.btn { min-height: 43px; padding: 0 18px; font-size: 13px; }
.button-row { margin-top: 22px; }
.recommendation-band { padding: 16px 20px; margin-top: 16px; border-radius: 17px; }
.rec-icon { width: 42px; height: 42px; border-radius: 13px; }
.recommendation-band h3 { font-size: 15px; }
.recommendation-band p { font-size: 12px; }
.section { padding-top: 38px; }
.section-head { margin-bottom: 17px; }
.section-head h2 { font-size: clamp(25px, 2.6vw, 34px); }
.section-head p { font-size: 13px; line-height: 1.55; }
.category-chip { padding: 8px 13px; font-size: 12px; }
.meal-grid { gap: 14px; }
.meal-card { border-radius: 17px; }
.meal-art { height: 154px; }
.meal-art::before { width: 96px; height: 96px; }
.meal-art::after { font-size: 50px; }
.meal-body { padding: 14px; }
.meal-body h3 { font-size: 16px; margin-bottom: 5px; }
.meal-body p { font-size: 12px; margin-bottom: 11px; }
.meal-badge { top: 10px; inset-inline-start: 10px; padding: 5px 8px; font-size: 9px; }
.heart-btn { top: 9px; inset-inline-end: 9px; width: 31px; height: 31px; }
.tag { padding: 4px 7px; font-size: 10px; }
.price { font-size: 16px; }
.add-btn { height: 36px; min-width: 36px; border-radius: 11px; padding: 0 10px; font-size: 12px; }
.feature-card { min-height: 280px; padding: 28px; border-radius: 20px; }
.feature-card .large-icon { width: 52px; height: 52px; border-radius: 17px; margin-bottom: 28px; }
.feature-card h3 { font-size: 25px; }
.feature-card p { font-size: 13px; }
.page-head { padding: 10px 0 22px; }
.page-head h1 { font-size: clamp(31px, 3.5vw, 45px); }
.page-head p { font-size: 13px; }
.filter-panel { padding: 12px; margin-bottom: 17px; }
.ai-panel, .summary-card, .panel { border-radius: 19px; padding: 21px; }
.question-card h2 { font-size: 27px; }
.choice { min-height: 57px; border-radius: 13px; padding: 12px; font-size: 12px; }
.summary-card { top: 128px; }
.checkout-section { border-radius: 16px; padding: 18px; }
.sticky-order { top: 128px; }
.chef-card { border-radius: 20px; padding: 22px; grid-template-columns: 96px 1fr; }
.chef-portrait { width: 96px; height: 122px; }
.order-card { padding: 15px; border-radius: 15px; }
.modal { border-radius: 22px; }
.meal-modal-info { padding: 38px 30px 30px; }
.meal-modal-info h2 { font-size: 32px; }

.ops-shell { grid-template-columns: 238px 1fr; }
.ops-sidebar { padding: 20px 14px; }
.ops-sidebar .brand-logo { width: 150px; margin-bottom: 18px; }
.workspace-label { margin-bottom: 18px; }
.ops-nav button { min-height: 39px; font-size: 12px; }
.ops-topbar { height: 68px; padding: 0 22px; }
.ops-content { padding: 20px 22px 48px; }
.kpi-grid { gap: 11px; margin-bottom: 15px; }
.kpi-card { border-radius: 15px; padding: 16px; }
.kpi-card .kpi-icon { margin-bottom: 13px; }
.kpi-card .value { font-size: 24px; }
.ops-panel { border-radius: 15px; }
.ops-panel-head { min-height: 55px; padding: 0 15px; }
.ops-panel-body { padding: 14px 15px; }
.data-table td { padding: 11px 9px; }

/* Complete customer footer */
.site-footer {
  background: #254d4c;
  color: var(--cream);
  margin-top: 18px;
  padding: 46px max(4vw, 28px) 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(246,240,228,.08);
  border-radius: 50%;
  inset-inline-start: -150px;
  top: -190px;
}
.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(520px, 1.6fr);
  gap: clamp(44px, 7vw, 100px);
  position: relative;
}
.footer-brand img { width: 164px; margin-bottom: 18px; }
.footer-brand p { max-width: 390px; color: rgba(246,240,228,.69); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.footer-service { display: inline-flex; align-items: center; gap: 8px; color: rgba(246,240,228,.86); font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links h3 { color: var(--cream); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
html[dir="rtl"] .footer-links h3 { letter-spacing: 0; }
.footer-links a,
.footer-links button {
  border: 0;
  background: transparent;
  color: rgba(246,240,228,.64);
  padding: 0;
  margin-bottom: 11px;
  cursor: pointer;
  font-size: 12px;
  text-align: start;
  transition: .2s ease;
}
.footer-links a:hover, .footer-links button:hover { color: white; transform: translateX(3px); }
html[dir="rtl"] .footer-links a:hover, html[dir="rtl"] .footer-links button:hover { transform: translateX(-3px); }
.footer-base {
  width: min(1240px, 100%);
  margin: 38px auto 0;
  min-height: 62px;
  border-top: 1px solid rgba(246,240,228,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(246,240,228,.48);
  font-size: 10px;
}
.footer-base button { border: 0; background: transparent; color: var(--cream); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Taste Passport */
.passport-head { align-items: stretch; }
.passport-stamp { min-width: 190px; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 18px; color: var(--green); display: grid; justify-items: start; align-content: center; gap: 5px; box-shadow: var(--shadow-sm); }
.passport-stamp svg { color: var(--terra); }
.passport-stamp strong { font-family: var(--display); font-size: 18px; }
.passport-stamp span { color: var(--muted); font-size: 10px; }
.passport-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); gap: 18px; align-items: start; }
.passport-form { padding: 24px; }
.taste-field { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.taste-field:last-of-type { margin-bottom: 0; }
.taste-field legend { font-family: var(--display); color: var(--green); font-size: 16px; font-weight: 700; margin-bottom: 11px; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.taste-chip { min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--paper); color: var(--green); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.taste-chip:hover { border-color: var(--sage); background: white; }
.taste-chip.active { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 5px 14px rgba(37,77,76,.15); }
.passport-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.passport-privacy { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; display: flex; align-items: flex-start; gap: 7px; }
.passport-impact { display: grid; gap: 14px; }
.impact-card { border: 1px solid var(--line); border-radius: 19px; background: white; padding: 22px; box-shadow: var(--shadow-sm); }
.impact-card.dark { color: var(--cream); background: linear-gradient(145deg,#254d4c,#317472); border: 0; }
.impact-card.dark .eyebrow { color: #e3b982; }
.impact-card h2 { font-size: 27px; margin: 5px 0 20px; }
.impact-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.12); margin-bottom: 24px; }
.signal-list { display: grid; gap: 16px; }
.signal-list > div { display: grid; grid-template-columns: 24px 1fr; gap: 9px; color: rgba(246,240,228,.8); font-size: 11px; line-height: 1.55; }
.signal-list strong { color: white; display: block; margin-bottom: 2px; font-size: 12px; }
.profile-signals { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.profile-signals span, .profile-signals small { border-radius: 99px; padding: 6px 9px; background: var(--green-3); color: var(--green); font-size: 10px; font-weight: 800; }
.passport-match-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.passport-match { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.passport-match .mini-art { width: 88px; height: 88px; border-radius: 14px; display: grid; place-items: center; font-size: 38px; background: #ebd4ac; }
.passport-match h3 { font-size: 15px; margin: 3px 0 4px; }
.passport-match p { color: var(--muted); font-size: 10px; line-height: 1.45; margin: 0 0 5px; }
.match-score { color: var(--terra-2); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.match-actions { display: grid; gap: 7px; justify-items: end; }

/* Conversational AI Ordering */
.ai-chat-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.ai-chat-panel { border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-sm); overflow: hidden; }
.ai-chat-header { min-height: 70px; padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; background: #fbfcf8; }
.ai-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--green),var(--green-2)); }
.ai-chat-header strong { display: block; color: var(--green); font-size: 13px; }
.ai-chat-header span { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 10px; }
.ai-chat-header span i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.ai-secure { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; background: white; color: var(--green) !important; font-weight: 750; }
.ai-transcript { min-height: 410px; max-height: 620px; overflow-y: auto; padding: 22px 20px; background: linear-gradient(180deg,#fbf8f1 0%,#fbfaf5 100%); }
.chat-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; }
.chat-row.user { justify-content: flex-end; }
.chat-avatar { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px; display: grid; place-items: center; color: white; background: var(--green); }
.chat-bubble { max-width: min(78%,620px); border-radius: 7px 17px 17px 17px; padding: 12px 14px; background: white; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(35,31,32,.04); }
.chat-row.user .chat-bubble { color: white; background: var(--green); border: 0; border-radius: 17px 7px 17px 17px; }
html[dir="rtl"] .chat-bubble { border-radius: 17px 7px 17px 17px; }
html[dir="rtl"] .chat-row.user .chat-bubble { border-radius: 7px 17px 17px 17px; }
.chat-author { display: block; color: var(--terra-2); font-size: 9px; font-weight: 850; margin-bottom: 4px; }
.chat-row.user .chat-author { color: rgba(255,255,255,.7); }
.chat-bubble p { margin: 0; line-height: 1.65; font-size: 12px; }
.ai-food-results { margin: 22px 0 8px 39px; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
html[dir="rtl"] .ai-food-results { margin: 22px 39px 8px 0; }
.ai-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.ai-result-head .eyebrow { margin: 0 0 2px; }
.ai-result-head h3 { margin: 0; font-size: 15px; }
.ai-result-head > span { color: var(--muted); font-size: 10px; }
.ai-food-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 12px; }
.ai-food-card { display: grid; grid-template-columns: 84px 1fr; min-height: 126px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ai-food-art { border: 0; background: #e9ddcd; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 7px; font-size: 34px; }
.ai-food-art small { font-size: 8px; color: var(--green); font-weight: 800; }
.ai-food-info { padding: 11px; min-width: 0; }
.ai-food-info h4 { margin: 3px 0; font-size: 12px; }
.ai-food-info p { margin: 0 0 8px; color: var(--muted); font-size: 9px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-food-info > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ai-food-info strong { color: var(--green); font-size: 11px; }
.ai-food-info .btn { min-height: 31px; padding: 0 9px; font-size: 9px; }
.ai-quick-prompts { padding: 10px 15px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.ai-quick-prompts > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 800; }
.ai-quick-prompts button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); padding: 7px 10px; color: var(--green); font-size: 9px; cursor: pointer; }
.ai-composer { margin: 10px 14px; min-height: 52px; border: 1px solid #bfcac2; border-radius: 16px; background: white; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; padding: 6px; }
.ai-composer:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,77,76,.08); }
.ai-composer textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; line-height: 1.45; padding: 9px 5px; }
.ai-send { width: 40px; height: 40px; border: 0; border-radius: 13px; background: var(--terra); color: white; display: grid; place-items: center; cursor: pointer; }
html[dir="rtl"] .ai-send svg { transform: scaleX(-1); }
.ai-chat-note { padding: 0 18px 13px; color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 5px; }
.ai-context-panel { position: sticky; top: 128px; border: 1px solid var(--line); border-radius: 19px; background: white; padding: 19px; box-shadow: var(--shadow-sm); }
.context-head { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.passport-mini-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--terra); background: #f9ebe3; }
.context-head .eyebrow { margin: 0 0 2px; }
.context-head h3 { margin: 0; font-size: 15px; }
.context-block { padding: 15px 0; border-bottom: 1px solid var(--line); }
.context-block > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.context-block strong { display: block; font-size: 11px; color: var(--green); }
.context-block p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.ai-context-panel > .btn { width: 100%; margin-top: 16px; }

/* Taste Passport admin */
.taste-impact-stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px 0 18px; }
.taste-impact-stat strong { color: var(--terra); font-size: 38px; font-family: var(--display); }
.taste-impact-stat span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.mini-progress { width: 72px; height: 4px; border-radius: 99px; background: #e8ece8; margin-top: 5px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 180px 1fr auto; padding: 0 3vw; gap: 18px; }
  .meal-grid { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .ops-grid { grid-template-columns: 1fr; }
  .planner-grid { grid-template-columns: repeat(7,170px); }
  .passport-layout, .ai-chat-layout { grid-template-columns: 1fr; }
  .passport-impact { grid-template-columns: repeat(2,1fr); }
  .ai-context-panel { position: static; }
}

@media (max-width: 900px) {
  .topbar { height: 68px; grid-template-columns: 150px 1fr auto; }
  .brand-logo { width: 145px; }
  .topbar .searchbar { display: none; }
  .customer-nav { top: 68px; overflow-x: auto; justify-content: flex-start; padding: 0 3vw; scrollbar-width: none; }
  .main-wrap { width: 94vw; padding-top: 20px; }
  .hero { min-height: 410px; padding: 34px; background-position: 56% center; }
  .hero::after { background: linear-gradient(90deg,rgba(19,48,47,.95),rgba(28,62,61,.74) 55%,rgba(28,62,61,.22)); }
  .meal-grid { grid-template-columns: repeat(2,1fr); }
  .feature-split, .ai-layout, .checkout-layout, .request-layout { grid-template-columns: 1fr; }
  .summary-card, .sticky-order { position: static; }
  .chef-grid { grid-template-columns: 1fr; }
  .ops-shell { grid-template-columns: 82px 1fr; }
  .ops-sidebar { padding: 18px 10px; }
  .ops-sidebar .brand-logo, .workspace-label, .ops-nav button span, .sidebar-bottom .user-card > :not(.avatar) { display: none; }
  .ops-nav button { justify-content: center; padding: 0; }
  .sidebar-bottom .user-card { grid-template-columns: 1fr; justify-items: center; background: transparent; padding: 0; }
  .integration-grid, .report-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand p { max-width: 520px; }
  .passport-match-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .topbar { grid-template-columns: 126px 1fr; padding: 0 16px; }
  .top-actions { gap: 1px; }
  .top-actions .profile-btn, .customer-nav { display: none; }
  .top-actions .role-chip { display: none; }
  .text-btn { padding: 0 10px; font-size: 12px; }
  .main-wrap { width: auto; padding: 14px 14px 54px; }
  .hero { border-radius: 20px; min-height: 500px; align-items: flex-end; padding: 26px 21px; background-position: 61% center; }
  .hero::after { background: linear-gradient(0deg,rgba(15,40,39,.98) 0%,rgba(28,62,61,.7) 53%,rgba(28,62,61,.05) 90%); }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; }
  .hero .btn { width: 100%; }
  .recommendation-band { grid-template-columns: auto 1fr; padding: 17px; }
  .recommendation-band .btn { grid-column: 1/-1; width: 100%; }
  .section { padding-top: 36px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 29px; }
  .section-link { display: none; }
  .meal-grid { grid-template-columns: 1fr; }
  .meal-card { display: grid; grid-template-columns: 112px 1fr; }
  .meal-art { height: 100%; min-height: 176px; }
  .meal-art::before { width: 80px; height: 80px; }
  .meal-art::after { font-size: 45px; }
  .meal-badge { display: none; }
  .meal-body { padding: 14px; }
  .feature-card { padding: 24px; min-height: 300px; }
  .feature-card h3 { font-size: 25px; }
  .page-head { display: block; padding-bottom: 20px; }
  .page-tools { margin-top: 16px; }
  .page-head h1 { font-size: 36px; }
  .filter-panel { padding: 10px; }
  .filter-panel .select { width: 100%; }
  .choice-grid { grid-template-columns: 1fr; }
  .ai-panel, .summary-card, .panel { padding: 19px; border-radius: 19px; }
  .question-card h2 { font-size: 27px; }
  .form-grid, .pref-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: auto 1fr; }
  .order-card > :last-child { grid-column: 2; justify-self: start; }
  .timeline { overflow-x: auto; grid-template-columns: repeat(5,110px); }
  .chef-card { grid-template-columns: 82px 1fr; padding: 20px; gap: 15px; }
  .chef-portrait { width: 82px; height: 108px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { display: flex; overflow-x: auto; padding: 7px; }
  .account-nav a, .account-nav button { width: auto; white-space: nowrap; }
  .meal-modal-grid { grid-template-columns: 1fr; }
  .meal-modal-art { min-height: 260px; position: static; }
  .meal-modal-art .plate { width: 160px; height: 160px; font-size: 78px; }
  .meal-modal-info { padding: 28px 20px; }
  .meal-modal-info h2 { font-size: 29px; }
  .nutrition-grid { grid-template-columns: repeat(2,1fr); }
  .ops-shell { display: block; padding-bottom: 0; }
  .ops-sidebar { position: fixed; z-index: 70; inset: 0 auto 0 0; width: 250px; transform: translateX(-105%); transition: .25s; }
  html[dir="rtl"] .ops-sidebar { inset: 0 0 0 auto; transform: translateX(105%); }
  .ops-shell.mobile-nav-open .ops-sidebar { transform: none; }
  .ops-sidebar .brand-logo, .workspace-label, .ops-nav button span, .sidebar-bottom .user-card > :not(.avatar) { display: block; }
  .ops-nav button { justify-content: flex-start; padding: 0 12px; }
  .sidebar-bottom .user-card { grid-template-columns: 38px 1fr auto; justify-items: stretch; background: rgba(255,255,255,.08); padding: 10px; }
  .ops-topbar { height: 68px; padding: 0 14px; }
  .mobile-menu-btn { display: inline-flex; }
  .ops-title p { display: none; }
  .ops-actions .text-btn { display: none; }
  .ops-content { padding: 16px 13px 40px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { padding: 15px; }
  .kpi-card .value { font-size: 23px; }
  .req-row { grid-template-columns: 58px 1fr; }
  .req-status { grid-column: 2; justify-self: start; }
  .requirements-tools { grid-template-columns: 1fr; }
  .mobile-bottom-nav { position: fixed; z-index: 38; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5,1fr); height: 66px; background: rgba(255,253,248,.97); border-top: 1px solid var(--line); backdrop-filter: blur(15px); }
  .mobile-bottom-nav button, .mobile-bottom-nav a { border: 0; text-decoration: none; font-family: inherit; background: transparent; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 3px; font-size: 9px; }
  .mobile-bottom-nav button svg, .mobile-bottom-nav a svg { width: 20px; height: 20px; }
  .mobile-bottom-nav button.active, .mobile-bottom-nav a.active { color: var(--green); font-weight: 800; }
  .site-footer { margin-top: 0; padding: 38px 20px 72px; }
  .footer-inner { gap: 30px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px 30px; }
  .footer-links nav:last-child { grid-column: 1 / -1; }
  .footer-base { margin-top: 28px; min-height: auto; padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 9px; }
  .passport-stamp { margin-top: 16px; min-width: 0; width: 100%; }
  .passport-layout { display: block; }
  .passport-impact { grid-template-columns: 1fr; margin-top: 14px; }
  .passport-form { padding: 18px; }
  .passport-actions { align-items: stretch; flex-direction: column-reverse; }
  .passport-actions .btn { width: 100%; }
  .passport-match { grid-template-columns: 68px 1fr; }
  .passport-match .mini-art { width: 68px; height: 74px; }
  .match-actions { grid-column: 1/-1; grid-template-columns: auto 1fr; width: 100%; }
  .match-actions .btn { width: 100%; }
  .ai-chat-panel { border-radius: 17px; }
  .ai-chat-header { padding: 11px 13px; }
  .ai-secure { display: none !important; }
  .ai-transcript { min-height: 380px; max-height: none; padding: 17px 13px; }
  .chat-bubble { max-width: 88%; }
  .ai-food-results, html[dir="rtl"] .ai-food-results { margin: 19px 0 5px; }
  .ai-food-grid { grid-template-columns: 1fr; }
  .ai-quick-prompts { padding-inline: 12px; }
  .ai-context-panel { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Filtered-out items must stay hidden even where a component sets its own display value. */
[hidden] { display: none !important; }

.upload-placeholder .placeholder-tag { display: flex; justify-content: center; }
.footer-links a { display: inline-block; text-decoration: none; }
.cart-drawer { height: 100vh; height: 100dvh; }
.cart-panel { height: 100%; max-height: 100%; }
.drawer-body { min-height: 0; }
.drawer-foot { flex-shrink: 0; padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(0,0,0,.05); }
.drawer-foot .totals { margin-top: 0; }
.drawer-foot .total-row { padding: 5px 0; }
.drawer-foot .total-row.grand { padding-top: 12px; }
.drawer-foot .btn { text-decoration: none; width: 100%; min-height: 50px; margin-top: 14px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1; text-decoration: none; font-family: inherit; }
.nav-link svg { flex-shrink: 0; display: block; }

@media (max-width: 900px) { .meal-modal-art.has-photo { position: relative; } }

/* ---------- Taste Passport studio (v1.2.0 design, Cuizeen brand palette) ---------- */
.taste-identity-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 38px 42px; border: 1px solid #d5ddcf; border-radius: 26px; background: radial-gradient(circle at 90% 5%,rgba(49,116,114,.12),transparent 28%),linear-gradient(135deg,#e4eadf,#fbf8f1); overflow: hidden; }
.taste-identity-hero h1 { margin: 6px 0 10px; font-size: clamp(38px,5vw,62px); }
.taste-identity-hero > div:first-child > p:last-of-type { max-width: 720px; color: var(--muted); line-height: 1.7; }
.taste-identity-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.taste-identity-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; background: white; color: var(--green); border: 1px solid #d5ddcf; font-size: 10px; font-weight: 800; }
.taste-completion { min-width: 210px; display: grid; justify-items: center; gap: 12px; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.72); border: 1px solid rgba(37,77,76,.1); text-align: center; }
.taste-completion > div:last-child strong,.taste-completion > div:last-child small { display: block; }
.taste-completion > div:last-child small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.taste-ring { --value:75; width: 116px; height: 116px; padding: 9px; border-radius: 50%; background: conic-gradient(var(--terra) calc(var(--value)*1%),#e4eadf 0); }
.taste-ring span { width: 100%; height: 100%; border-radius: 50%; background: white; display: grid; place-content: center; text-align: center; }
.taste-ring strong { color: var(--green); font-family: var(--display); font-size: 27px; }
.taste-ring small { color: var(--muted); font-size: 9px; }
.taste-studio-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; margin-top: 20px; }
.taste-preferences { border: 1px solid var(--line); border-radius: 22px; background: white; padding: 24px; }
.taste-section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.taste-section-title h2 { margin: 4px 0 0; font-size: 27px; }
.taste-section-title > span { color: var(--muted); font-size: 10px; }
.taste-question-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.taste-preference-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid #e6dfd2; border-radius: 17px; background: #fbf8f1; }
.taste-preference-card legend { width: 100%; padding: 0 0 12px; display: flex; align-items: center; gap: 9px; color: var(--green); font-family: var(--display); font-size: 14px; font-weight: 700; }
.taste-card-icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 10px; display: grid; place-items: center; color: var(--terra); background: #e4eadf; }
.taste-preference-card .taste-chip { min-height: 34px; padding: 0 11px; font-size: 10px; }
.taste-save-bar { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.taste-save-bar p { flex: 1; display: flex; gap: 7px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.taste-save-bar > div { display: flex; gap: 8px; }
.taste-insight-panel { position: sticky; top: 128px; overflow: hidden; border-radius: 22px; padding: 23px; color: var(--cream); background: linear-gradient(155deg,#254d4c,#317472); box-shadow: 0 22px 50px rgba(37,77,76,.16); }
.taste-insight-head { display: flex; align-items: flex-start; gap: 11px; padding-bottom: 19px; border-bottom: 1px solid rgba(255,255,255,.12); }
.taste-insight-head > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.1); color: #afbea7; }
.taste-insight-head .eyebrow { color: #afbea7; margin-bottom: 3px; }
.taste-insight-head h3 { margin: 0; color: white; font-size: 18px; line-height: 1.25; }
.taste-bars { display: grid; gap: 15px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.taste-bars span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: rgba(255,255,255,.86); font-size: 10px; }
.taste-bars i { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.taste-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#afbea7,#e9ddcd); }
.taste-intelligence { display: grid; gap: 15px; padding: 20px 0; }
.taste-intelligence > div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: #afbea7; }
.taste-intelligence strong,.taste-intelligence small { display: block; }
.taste-intelligence strong { color: white; font-size: 11px; margin-bottom: 2px; }
.taste-intelligence small { color: rgba(255,255,255,.62); font-size: 9px; line-height: 1.5; }
.taste-insight-panel > .btn { width: 100%; background: var(--cream); color: var(--green); }
.taste-matches { padding-top: 38px; }
.taste-match-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.taste-match-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.taste-match-photo { height: 150px; width: 100%; position: relative; overflow: hidden; border: 0; padding: 0; background: #e4eadf; cursor: pointer; }
.taste-match-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.taste-match-photo span { position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 6px 8px; border-radius: 999px; background: rgba(255,253,248,.9); color: var(--terra-2); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.taste-match-card > div { padding: 14px; }
.taste-match-card h3 { margin: 0 0 5px; font-size: 15px; }
.taste-match-card p { min-height: 43px; margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.taste-match-card > div > div { display: flex; align-items: center; gap: 6px; }
.taste-match-card > div > div > strong { margin-inline-end: auto; color: var(--green); font-size: 11px; }
@media (max-width: 1180px) {
  .taste-studio-grid { grid-template-columns: 1fr; }
  .taste-insight-panel { position: static; }
  .taste-match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .taste-identity-hero { padding: 30px; }
}
@media (max-width: 640px) {
  .taste-identity-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .taste-completion { min-width: 0; grid-template-columns: auto 1fr; justify-items: start; text-align: start; }
  .taste-ring { width: 84px; height: 84px; }
  .taste-ring strong { font-size: 20px; }
  .taste-preferences { padding: 17px 14px; }
  .taste-section-title { display: block; }
  .taste-section-title > span { display: block; margin-top: 7px; }
  .taste-question-grid { grid-template-columns: 1fr; }
  .taste-save-bar { align-items: stretch; flex-direction: column; }
  .taste-save-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .taste-match-grid { grid-template-columns: 1fr; }
  .taste-match-card { display: grid; grid-template-columns: 118px 1fr; }
  .taste-match-photo { height: 100%; min-height: 170px; }
  .taste-match-card p { min-height: 0; }
}
.taste-match-photo { display: block; }
.taste-preference-card legend { float: left; }
.taste-preference-card legend + * { clear: both; }

/* ---------- AI conversation cards (v1.2.0 layout) ---------- */
.ai-food-card { grid-template-columns: 118px 1fr; min-height: 174px; }
.ai-food-art { display: block; min-height: 174px; overflow: hidden; padding: 0; }
.ai-food-art.has-photo img { min-height: 174px; }
.ai-food-info { padding: 13px; display: flex; flex-direction: column; align-items: stretch; }
.ai-food-info > strong { margin: 3px 0 10px; color: var(--green); }
.ai-food-info > .ai-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.ai-card-actions .btn { min-height: 34px; justify-content: center; padding-inline: 7px; }
@media (max-width: 640px) {
  .ai-food-card { grid-template-columns: 104px 1fr; }
  .ai-card-actions { grid-template-columns: 1fr !important; }
}

/* ---------- Live delivery tracking (v1.2.0 layout, Cuizeen brand palette) ---------- */
/* Live delivery tracking */
.tracking-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #254d4c; background: #e4eadf; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #317472; box-shadow: 0 0 0 4px rgba(49,116,114,.14); animation: live-pulse 1.8s ease infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 8px rgba(49,116,114,0); } }
.tracking-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 32px; border-radius: 22px; color: var(--cream); background: linear-gradient(140deg,#254d4c,#317472); }
.tracking-hero h1 { margin: 5px 0 6px; color: white; font-size: clamp(30px,4vw,48px); }
.tracking-hero p { margin: 0; color: rgba(255,255,255,.7); }
.eta-card { min-width: 150px; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.1); text-align: center; }
.eta-card span,.eta-card small { display: block; color: rgba(255,255,255,.7); font-size: 9px; text-transform: uppercase; }
.eta-card strong { display: block; color: white; font-family: var(--display); font-size: 48px; line-height: 1; margin: 7px 0 3px; }
.tracking-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 18px; margin-top: 18px; align-items: start; }
.tracking-map-card,.tracking-details { border: 1px solid var(--line); border-radius: 20px; background: white; overflow: hidden; }
.tracking-map { position: relative; min-height: 480px; overflow: hidden; background: linear-gradient(135deg,#e4eadf,#f3eee2); }
.tracking-map::before { content:""; position:absolute; inset:0; opacity:.6; background-image: linear-gradient(90deg,rgba(255,255,255,.7) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.7) 1px,transparent 1px); background-size:46px 46px; transform:rotate(-7deg) scale(1.15); }
.map-road { position:absolute; height:24px; border-block:2px solid rgba(255,255,255,.8); background:#cfd8c9; transform-origin:left center; }
.road-one { width:120%; top:27%; left:-10%; transform:rotate(12deg); }
.road-two { width:110%; top:63%; left:-5%; transform:rotate(-16deg); }
.road-three { width:90%; top:8%; left:43%; transform:rotate(77deg); }
.route-line { position:absolute; z-index:2; left:18%; right:17%; top:52%; height:8px; border-radius:99px; background:linear-gradient(90deg,var(--green) var(--driver-progress),#afbea7 var(--driver-progress)); transform:rotate(-8deg); box-shadow:0 0 0 3px rgba(255,255,255,.8); }
.route-start,.route-home,.driver-dot { position:absolute; top:50%; display:grid; place-items:center; transform:translate(-50%,-50%) rotate(8deg); border-radius:50%; box-shadow:0 6px 18px rgba(37,77,76,.2); }
.route-start,.route-home { width:40px;height:40px;background:white;color:var(--green); }
.route-start { left:0; }.route-home { left:100%; }
.driver-dot { left:var(--driver-progress); width:46px; height:46px; color:white; background:var(--terra); border:5px solid white; }
.map-label { position:absolute; z-index:3; padding:7px 9px; border-radius:8px; background:rgba(255,255,255,.9); color:var(--green); font-size:9px; font-weight:800; }
.kitchen-label { left:9%; top:59%; }.home-label { right:8%; top:39%; }
.tracking-map-footer { min-height:70px; display:flex; align-items:center; gap:15px; justify-content:space-between; padding:12px 16px; }
.tracking-map-footer > div { display:flex; align-items:center; gap:10px; }
.tracking-map-footer > div > i { width:9px;height:9px;border-radius:50%;background:#317472; }
.tracking-map-footer strong,.tracking-map-footer small { display:block; }
.tracking-map-footer strong { color:var(--green);font-size:11px; }.tracking-map-footer small { color:var(--muted);font-size:9px;margin-top:2px; }
.tracking-details { padding:19px; }
.driver-card { display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line); }
.driver-avatar { width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:white;background:var(--green);font-weight:850; }
.driver-card span,.driver-card strong,.driver-card small { display:block; }.driver-card span { color:var(--muted);font-size:8px;text-transform:uppercase; }.driver-card strong { font-size:12px;margin:2px 0; }.driver-card small { color:var(--muted);font-size:9px; }
.delivery-timeline { padding:19px 0; border-bottom:1px solid var(--line); }
.delivery-timeline > div { position:relative;display:grid;grid-template-columns:28px 1fr;gap:9px;min-height:54px; }
.delivery-timeline > div:not(:last-child)::before { content:"";position:absolute;left:13px;top:25px;width:2px;height:32px;background:#e4eadf; }
html[dir="rtl"] .delivery-timeline > div:not(:last-child)::before { left:auto;right:13px; }
.delivery-timeline i { width:27px;height:27px;border-radius:50%;display:grid;place-items:center;border:2px solid #e4eadf;background:white; }
.delivery-timeline .done i { color:white;border-color:var(--green);background:var(--green); }.delivery-timeline .current i { border:7px solid #c4d7d2;background:var(--terra); }
.delivery-timeline strong,.delivery-timeline small { display:block; }.delivery-timeline strong { color:var(--green);font-size:11px; }.delivery-timeline small { color:var(--muted);font-size:9px;margin-top:3px; }
.delivery-address { display:grid;grid-template-columns:24px 1fr;gap:9px;padding:17px 0; }.delivery-address small,.delivery-address strong { display:block; }.delivery-address small { color:var(--muted);font-size:8px;text-transform:uppercase; }.delivery-address strong { margin:3px 0;font-size:11px; }.delivery-address p { margin:0;color:var(--muted);font-size:9px;line-height:1.4; }
.tracking-help { padding:14px;border-radius:13px;background:var(--cream); }.tracking-help p { margin:0;color:var(--muted);font-size:9px; }
.order-title-line { display:flex;align-items:center;gap:9px;flex-wrap:wrap; }.order-card-actions { text-align:end; }.order-card-actions .button-row { justify-content:flex-end;margin-top:10px; }
@media (max-width: 1180px) { .tracking-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tracking-hero { align-items: stretch; flex-direction: column; padding: 23px 20px; }
  .eta-card { display: grid; grid-template-columns: 1fr auto auto; align-items: end; text-align: start; }
  .eta-card strong { font-size: 38px; margin: 0 5px; }
  .tracking-map { min-height: 360px; }
  .tracking-map-footer { align-items: stretch; flex-direction: column; }
  .tracking-map-footer .btn { width: 100%; }
}

/* Meal modal: photo credit chip */
.meal-photo-credit { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 18px; padding: 7px 10px; border-radius: 999px; background: rgba(251,248,241,.88); color: var(--green); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }

/* ---------- AI conversation memory panel (v1.2.0) ---------- */
.ai-memory-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.ai-memory-row span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.ai-memory-row strong { display: block; margin-top: 5px; color: #8b948e; font-size: 10px; }
.ai-memory-row.complete span, .ai-memory-row.complete strong { color: var(--green); }
.composer-tools { display: grid; place-items: center; width: 34px; color: var(--green-2); }
