/* =====================================================================
   Zrali Eats — Application stylesheet
   Mobile-first, system font fallbacks, CSS custom properties.
   No external framework dependencies.
   ===================================================================== */

/* ------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------ */
:root {
  /* palette: warm, appetite-forward, confident */
  --color-primary:       #E23744;
  --color-primary-dark:  #B82A36;
  --color-primary-soft:  #FEE8EA;
  --color-accent:        #FFBE3D;
  --color-success:       #22A06B;
  --color-warning:       #DB8F00;
  --color-danger:        #E23744;
  --color-info:          #2F80ED;

  --color-ink:           #0F1419;
  --color-text:          #22262A;
  --color-muted:         #5C6770;
  --color-subtle:        #8A8F97;

  --color-bg:            #FFFFFF;
  --color-surface:       #FAF9F7;
  --color-surface-2:     #F3F1ED;
  --color-border:        #E7E3DC;
  --color-border-soft:   #EFECE6;

  /* type */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;

  /* shape */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* shadow — soft, layered */
  --shadow-xs: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 20, 25, 0.12);

  /* layout */
  --max-w: 1240px;
  --nav-h: 72px;
}

/* ------------------------------------------------------------------
   Reset / base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-primary); }

img { max-width: 100%; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border-soft);
  margin: 1.5rem 0;
}

/* ------------------------------------------------------------------
   Layout primitives
------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }
.text-subtle { color: var(--color-subtle); font-size: .875rem; }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }

.hidden { display: none !important; }

/* ------------------------------------------------------------------
   Top navbar
------------------------------------------------------------------ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; color: var(--color-ink);
  letter-spacing: -0.015em;
}
.brand__mark {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: var(--color-primary); color: #fff;
  border-radius: 11px;
  font-weight: 700; font-family: var(--font-body); font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(226, 55, 68, 0.35);
}
.nav-links {
  display: flex; gap: 1.75rem; align-items: center;
  margin: 0; padding: 0; list-style: none;
  font-size: .95rem; font-weight: 500;
}
.nav-links a { color: var(--color-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--color-ink); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  background: none; border: 0; padding: .5rem;
  display: none; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--color-ink); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 0;
    border-bottom: 1px solid var(--color-border-soft);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { border-top: 1px solid var(--color-border-soft); }
  .nav-links a { display: block; padding: 1rem 1.25rem; }
  .nav-toggle { display: inline-flex; }
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600;
  background: var(--color-surface-2); color: var(--color-ink);
  cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: #eae6de; color: var(--color-ink); }
.btn:focus-visible { outline: 3px solid rgba(226,55,68,0.3); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 6px 18px rgba(226,55,68,0.25);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-surface); }

.btn-outline {
  background: transparent; color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-outline:hover { background: var(--color-surface); }

.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b82a36; color: #fff; }

.btn-sm  { padding: .45rem .8rem; font-size: .875rem; }
.btn-lg  { padding: .95rem 1.45rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Icon-only round button (for +/- quantity) */
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--color-border);
  background: #fff; cursor: pointer;
  font-size: 1.1rem; color: var(--color-ink);
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
label { font-weight: 600; font-size: .9rem; color: var(--color-ink); display: block; margin-bottom: .4rem; }
.help { font-size: .85rem; color: var(--color-muted); margin-top: .3rem; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  padding: .78rem .95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff; color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(226,55,68,0.12);
}
textarea { resize: vertical; min-height: 90px; font-family: inherit; }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; }
.form-group:last-child { margin-bottom: 0; }

.check {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; color: var(--color-text);
}
.check input { width: 18px; height: 18px; accent-color: var(--color-primary); }

.input-addon {
  display: flex; align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.input-addon:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(226,55,68,0.12); }
.input-addon__prefix {
  padding: 0 .85rem; display: grid; place-items: center;
  background: var(--color-surface-2); color: var(--color-muted);
  font-weight: 600; border-right: 1px solid var(--color-border);
}
.input-addon input { border: 0; box-shadow: none !important; flex: 1; }

/* Segmented radio group (payment method / role chooser) */
.segmented { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.segmented input { display: none; }
.segmented label {
  border: 1px solid var(--color-border);
  padding: .9rem 1rem; border-radius: var(--radius);
  cursor: pointer; font-weight: 600; font-size: .95rem;
  background: #fff; color: var(--color-ink);
  display: flex; gap: .5rem; align-items: center;
  transition: all .15s ease;
  margin: 0;
}
.segmented input:checked + label {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* ------------------------------------------------------------------
   Cards, surfaces
------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card--flush { padding: 0; overflow: hidden; }

.surface {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.section { padding: 3.5rem 0; }
.section--tight { padding: 2rem 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .6rem;
}

.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.section__head h2 { margin: 0; }
.section__head a { color: var(--color-primary); font-weight: 600; font-size: .95rem; }

/* ------------------------------------------------------------------
   Badges & pills
------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: var(--color-surface-2); color: var(--color-muted);
}
.badge--primary  { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.badge--success  { background: #E4F5EC; color: #14784A; }
.badge--warning  { background: #FFF3DC; color: #8A5A00; }
.badge--danger   { background: #FDE7E9; color: #9B1C28; }
.badge--info     { background: #E8F0FD; color: #1E5BBF; }
.badge--ghost    { background: transparent; border: 1px solid var(--color-border); color: var(--color-muted); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; background: currentColor;
}

/* Rating star */
.rating {
  display: inline-flex; align-items: center; gap: .25rem;
  font-weight: 600; color: var(--color-ink);
}
.rating svg { width: 16px; height: 16px; color: var(--color-accent); }

/* ------------------------------------------------------------------
   Hero (home page)
------------------------------------------------------------------ */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(226,55,68,0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 0%,  rgba(255,190,61,0.14), transparent 60%),
    linear-gradient(#fff, var(--color-surface));
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3rem 0; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
}
.hero p.lede {
  font-size: 1.15rem; color: var(--color-muted);
  max-width: 56ch;
}
.hero__search {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: .4rem .4rem .4rem 1.3rem;
  display: flex; align-items: center; gap: .5rem;
  max-width: 520px;
}
.hero__search input {
  flex: 1; border: 0; padding: .75rem 0; background: transparent;
  font-size: 1rem;
}
.hero__search input:focus { box-shadow: none; }
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, #FFBE3D, #E23744 50%, #9B1C28 100%);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero__visual::after {
  /* soft grain */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0,0,0,0.25), transparent 40%);
  pointer-events: none;
}
.hero__visual-emoji {
  font-size: clamp(8rem, 18vw, 14rem);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  position: relative; z-index: 1;
}

/* ------------------------------------------------------------------
   Cuisine strip (horizontal scroller of icons)
------------------------------------------------------------------ */
.cuisines {
  display: flex; gap: .65rem; overflow-x: auto;
  padding: .5rem 0 1rem;
  scrollbar-width: none;
}
.cuisines::-webkit-scrollbar { display: none; }
.cuisine-pill {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 600; font-size: .92rem;
  color: var(--color-text);
  display: inline-flex; align-items: center; gap: .45rem;
  transition: all .15s ease;
}
.cuisine-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cuisine-pill.active {
  background: var(--color-ink); border-color: var(--color-ink); color: #fff;
}
.cuisine-pill__icon { font-size: 1.1rem; line-height: 1; }

/* ------------------------------------------------------------------
   Restaurant card
------------------------------------------------------------------ */
.r-card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.r-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, #E23744, #FFBE3D);
  overflow: hidden;
}
.r-card__media::before {
  /* subtle warm pattern */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.15), transparent 60%);
}
.r-card__emoji {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 4rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}
.r-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: .4rem;
}
.r-card__closed {
  position: absolute; inset: 0; background: rgba(15,20,25,0.55); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.r-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.r-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--color-ink); margin: 0; }
.r-card__meta { font-size: .88rem; color: var(--color-muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.r-card__meta .dot { color: var(--color-border); width: 4px; height: 4px; }
.r-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; font-size: .88rem; }

/* Dish card (featured dishes on home, search hits) */
.dish-card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: border-color .15s ease, transform .15s ease;
}
.dish-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.dish-card__name { font-weight: 600; color: var(--color-ink); }
.dish-card__restaurant { font-size: .85rem; color: var(--color-muted); }
.dish-card__price { font-weight: 700; color: var(--color-primary); }

/* ------------------------------------------------------------------
   Restaurant page
------------------------------------------------------------------ */
.r-hero {
  aspect-ratio: 21 / 8;
  background: linear-gradient(135deg, #E23744, #FFBE3D);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  font-size: clamp(4rem, 10vw, 7rem);
}
.r-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,20,25,0.45), transparent 60%);
}
.r-info {
  display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.r-info h1 { margin: 0 0 .3rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.r-info__meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--color-muted); font-size: .95rem; }
.r-info__meta strong { color: var(--color-ink); }
.r-info__actions { display: flex; gap: .5rem; }

.menu-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2rem; }
@media (max-width: 900px) { .menu-layout { grid-template-columns: 1fr; } }

.menu-nav {
  position: sticky; top: calc(var(--nav-h) + 20px);
  align-self: start;
  border-right: 1px solid var(--color-border-soft);
  padding-right: 1rem;
  font-size: .95rem;
}
.menu-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.menu-nav a {
  display: block; padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted); font-weight: 500;
}
.menu-nav a:hover, .menu-nav a.active { background: var(--color-surface); color: var(--color-ink); }
@media (max-width: 900px) { .menu-nav { display: none; } }

.menu-section { margin-bottom: 2.5rem; }
.menu-section h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  margin-bottom: 1rem; padding-top: 1rem;
}

.menu-item {
  display: grid; grid-template-columns: 1fr 110px; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.menu-item__info h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.menu-item__desc { color: var(--color-muted); font-size: .92rem; margin: 0 0 .6rem; }
.menu-item__price { font-weight: 700; color: var(--color-ink); display: flex; gap: .5rem; align-items: center; }
.menu-item__compare { color: var(--color-muted); text-decoration: line-through; font-weight: 500; font-size: .9rem; }
.menu-item__image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FFE9D1, #FFBE3D);
  display: grid; place-items: center; font-size: 2.3rem;
  position: relative;
}
.menu-item__add {
  position: absolute; bottom: -10px; right: -6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--color-primary); border: 0;
  display: grid; place-items: center; font-size: 1.25rem;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .15s ease;
}
.menu-item__add:hover { transform: scale(1.08); background: var(--color-primary); color: #fff; }
.menu-item__flags { display: flex; gap: .35rem; margin-top: .4rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   Cart & checkout
------------------------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, #FFE9D1, #FFBE3D);
  display: grid; place-items: center; font-size: 1.7rem;
}
.cart-line__name { font-weight: 600; }
.cart-line__meta { color: var(--color-muted); font-size: .88rem; }
.qty { display: inline-flex; align-items: center; gap: .5rem; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }

.totals dl { display: grid; grid-template-columns: 1fr auto; row-gap: .5rem; margin: 0; }
.totals dt { color: var(--color-muted); }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals__grand { border-top: 1px solid var(--color-border-soft); padding-top: .75rem; font-size: 1.1rem; }
.totals__grand dt, .totals__grand dd { font-weight: 700; color: var(--color-ink); }

/* ------------------------------------------------------------------
   Order tracking timeline
------------------------------------------------------------------ */
.timeline { position: relative; padding-left: 1.8rem; list-style: none; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  border-left: 2px dashed var(--color-border);
}
.timeline li { position: relative; padding: .4rem 0 1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.8rem; top: .55rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--color-border);
}
.timeline li.done::before { background: var(--color-success); border-color: var(--color-success); }
.timeline li.current::before { background: var(--color-primary); border-color: var(--color-primary); animation: pulse 1.4s infinite; }
.timeline h4 { margin: 0 0 .15rem; font-size: 1rem; }
.timeline p  { margin: 0; color: var(--color-muted); font-size: .88rem; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226,55,68,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(226,55,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,55,68,0); }
}

/* ------------------------------------------------------------------
   Flash toasts
------------------------------------------------------------------ */
.flash-wrap {
  position: fixed; top: calc(var(--nav-h) + 10px); right: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: calc(100vw - 32px);
}
.flash {
  display: flex; align-items: flex-start; gap: .6rem;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  box-shadow: var(--shadow-md);
  min-width: 260px; max-width: 380px;
  animation: slide-in .25s ease;
}
.flash--success { border-left: 4px solid var(--color-success); }
.flash--error   { border-left: 4px solid var(--color-danger);  }
.flash--info    { border-left: 4px solid var(--color-info);    }
.flash button   { background: none; border: 0; cursor: pointer; color: var(--color-muted); font-size: 1.2rem; line-height: 1; }
@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.footer {
  margin-top: 4rem; padding: 3rem 0 2rem;
  background: var(--color-ink); color: #CDD1D5;
}
.footer a { color: #CDD1D5; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 .75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #2A3037; font-size: .85rem; color: #9AA0A6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------------------------
   Auth pages (login / register)
------------------------------------------------------------------ */
.auth-layout {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 820px) { .auth-layout { grid-template-columns: 1fr; } }
.auth-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2), transparent 40%),
    linear-gradient(135deg, #E23744, #8B1923);
  color: #fff; padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-visual h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.auth-visual p { font-size: 1.1rem; opacity: .85; max-width: 40ch; }
.auth-visual::after {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,190,61,0.2); filter: blur(10px);
}
@media (max-width: 820px) { .auth-visual { display: none; } }
.auth-form {
  padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center;
  max-width: 480px; margin: 0 auto; width: 100%;
}

/* ------------------------------------------------------------------
   Dashboard (vendor / admin) layout
------------------------------------------------------------------ */
.dash-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }

.dash-side {
  background: var(--color-ink); color: #B9BFC4;
  padding: 1.5rem 1rem; min-height: 100%;
}
.dash-side h5 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 1.2rem .6rem .5rem; }
.dash-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .8rem; border-radius: 10px;
  color: #CDD1D5; font-weight: 500; font-size: .95rem;
}
.dash-nav a:hover { background: #1C2127; color: #fff; }
.dash-nav a.active { background: var(--color-primary); color: #fff; box-shadow: 0 6px 14px rgba(226,55,68,.3); }
.dash-nav svg { width: 18px; height: 18px; }

.dash-main { padding: 2.2rem 2rem; background: var(--color-surface); }
@media (max-width: 900px) { .dash-main { padding: 1.5rem 1rem; } }

.dash-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.8rem;
}
.dash-head h1 { font-size: 1.75rem; margin: 0; }

/* Dashboard stat tiles */
.stat-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat-tile {
  background: #fff; border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg); padding: 1.25rem 1.4rem;
}
.stat-tile__label { color: var(--color-muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat-tile__value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-ink); margin: .4rem 0 .1rem; }
.stat-tile__meta  { color: var(--color-muted); font-size: .85rem; }

/* Tables */
.table-wrap {
  background: #fff; border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td {
  padding: .9rem 1rem; text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  vertical-align: middle;
}
.table th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-muted); background: var(--color-surface);
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover { background: var(--color-surface); }

/* Mobile-friendly table: stack on small screens */
@media (max-width: 680px) {
  .table, .table thead, .table tbody, .table th, .table td, .table tr { display: block; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--color-border-soft); padding: .8rem 1rem; }
  .table td { border: 0; padding: .25rem 0; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: inline-block; min-width: 110px;
    font-size: .78rem; text-transform: uppercase; color: var(--color-muted); letter-spacing: .06em;
    margin-right: .75rem;
  }
}

/* Toolbar above tables */
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.toolbar .spacer { flex: 1; }

/* Payment status waiting spinner */
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--color-border); border-top-color: var(--color-primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility: sticky mobile bottom bar (cart CTA on restaurant page) */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--color-border-soft);
  z-index: 40;
  box-shadow: 0 -8px 20px rgba(0,0,0,0.06);
}
@media (max-width: 860px) { .mobile-cta { display: block; } }

/* Responsive helpers */
.hide-sm  { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 641px) { .only-sm { display: none !important; } }

/* Empty state */
.empty {
  padding: 3rem 1rem; text-align: center; color: var(--color-muted);
}
.empty__icon { font-size: 3rem; margin-bottom: .5rem; }
.empty h3 { color: var(--color-ink); margin-bottom: .3rem; }

/* Focus ring for keyboard users */
:focus-visible { outline: 3px solid rgba(226,55,68,0.35); outline-offset: 2px; border-radius: 4px; }

/* ==================================================================
   Additions: language switcher, WhatsApp widget, social login, vendor ratings
   ================================================================== */

/* Language switcher (navbar) */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .45rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--color-muted); background: #fff;
  transition: all .15s ease;
  line-height: 1;
}
.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.lang-switch__icon { font-size: .95rem; }
.lang-switch__current { color: var(--color-ink); }
.lang-switch__sep { color: var(--color-border); }
.lang-switch__other { color: var(--color-muted); }
.lang-switch:hover .lang-switch__current { color: var(--color-primary); }
@media (max-width: 500px) {
  .lang-switch__sep, .lang-switch__other, .lang-switch__icon { display: none; }
  .lang-switch { padding: .45rem .65rem; }
}

/* WhatsApp floating widget */
.wa-widget {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 80;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem .8rem .9rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0,0,0,0.1);
  font-weight: 600; font-size: .92rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-widget:hover {
  background: #1EB555;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5), 0 6px 14px rgba(0,0,0,0.14);
}
.wa-widget__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
}
.wa-widget__label {
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* On mobile, show circle only */
@media (max-width: 640px) {
  .wa-widget {
    padding: 0;
    width: 56px; height: 56px;
    justify-content: center;
    bottom: 16px; right: 16px;
  }
  .wa-widget__label { display: none; }
  .wa-widget__icon { width: 28px; height: 28px; }
}
/* Lift the widget when the sticky mobile-cta cart bar is visible */
@media (max-width: 860px) {
  body.has-mobile-cta .wa-widget { bottom: 96px; }
}

/* Social login divider + buttons */
.social-sep {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.5rem 0 1rem;
  color: var(--color-subtle); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.social-sep::before, .social-sep::after {
  content: ""; flex: 1;
  border-top: 1px solid var(--color-border-soft);
}
.social-buttons { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) { .social-buttons { grid-template-columns: 1fr; } }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff; color: var(--color-ink);
  font-weight: 600; font-size: .92rem;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.social-btn:hover {
  border-color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--color-ink);
}
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-btn--google  { }
.social-btn--facebook { }
.social-btn--disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
  position: relative;
}
.social-btn--disabled::after {
  content: "Not configured";
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: .7rem; color: var(--color-muted); font-weight: 500;
  text-transform: none; letter-spacing: 0;
}

/* Vendor rating block on restaurant page */
.vendor-rating {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
@media (max-width: 520px) { .vendor-rating { grid-template-columns: 1fr; text-align: center; } }
.vendor-rating__score {
  text-align: center;
  padding: 0 1.75rem;
  border-right: 1px solid var(--color-border);
}
@media (max-width: 520px) { .vendor-rating__score { border-right: 0; border-bottom: 1px solid var(--color-border); padding: 0 0 1rem; } }
.vendor-rating__big {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 600;
  line-height: 1; color: var(--color-ink);
}
.vendor-rating__stars {
  color: var(--color-accent);
  display: inline-flex; gap: 2px;
  margin-top: .35rem;
}
.vendor-rating__stars svg { width: 18px; height: 18px; }
.vendor-rating__count { font-size: .85rem; color: var(--color-muted); margin-top: .35rem; }
.vendor-rating__bars { display: grid; gap: .4rem; }
.vendor-rating__bar {
  display: grid; grid-template-columns: 22px 1fr 40px; gap: .6rem;
  align-items: center; font-size: .85rem; color: var(--color-muted);
}
.vendor-rating__bar-track {
  height: 8px; background: var(--color-border-soft); border-radius: 999px; overflow: hidden;
}
.vendor-rating__bar-fill {
  height: 100%; background: var(--color-accent); border-radius: 999px;
}

/* Footer social-media icons */
.social-links {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #CDD1D5;
  transition: all .2s ease;
}
.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
}

/* ==================================================================
   ANNOUNCEMENT BAR — right-to-left marquee at top of home page
   ================================================================== */
.announce-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--color-ink) 0%, #2B2F33 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announce-bar::before,
.announce-bar::after {
  /* soft fade on each edge so items don't pop in/out harshly */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.announce-bar::before { left: 0;  background: linear-gradient(90deg, var(--color-ink), transparent); }
.announce-bar::after  { right: 0; background: linear-gradient(270deg, #2B2F33, transparent); }

.announce-bar__track {
  display: flex;
  width: max-content;
  /* Two identical copies side-by-side; we translate by -50% which lands the
     second copy exactly where the first started — seamless loop. */
  animation: announce-scroll 38s linear infinite;
  will-change: transform;
}
.announce-bar:hover .announce-bar__track { animation-play-state: paused; }

.announce-bar__group {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;   /* keeps last item separated from first of next copy */
  flex-shrink: 0;
}

.announce-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s ease;
}
a.announce-bar__item:hover { opacity: .75; text-decoration: underline; }
.announce-bar__icon { font-size: 1.05rem; }

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .announce-bar__track { animation: none; }
  .announce-bar__track { justify-content: center; flex-wrap: wrap; }
}

/* ==================================================================
   FEATURED DISHES CAROUSEL — slow auto-drift, pause on hover
   ================================================================== */
.carousel-section {
  padding: 3rem 0;
  background: var(--color-bg);
}
.dish-carousel {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  /* soft fade mask on both edges for a polished look */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.dish-carousel__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1.25rem;
  animation: carousel-scroll 60s linear infinite;   /* slow, cinematic */
  will-change: transform;
}
.dish-carousel:hover .dish-carousel__track { animation-play-state: paused; }

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* the cards themselves — wider and more visual than the standard dish-card */
.dish-card--carousel {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dish-card--carousel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: var(--color-ink);
}
.dish-card--carousel .dish-card__media {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #FFE8D6 0%, #FFD4B8 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dish-card--carousel .dish-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dish-card--carousel .dish-card__media-emoji {
  font-size: 4rem;
  line-height: 1;
}
.dish-card--carousel .dish-card__flag {
  position: absolute;
  top: .6rem; right: .6rem;
  background: rgba(255,255,255,0.95);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.dish-card--carousel .dish-card__flag--spicy { color: var(--color-primary); }
.dish-card--carousel .dish-card__flag--veg   { color: #2E7D32; }

.dish-card--carousel .dish-card__body {
  padding: .85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.dish-card--carousel .dish-card__name {
  font-weight: 600; font-size: 1rem;
  color: var(--color-ink);
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.dish-card--carousel .dish-card__restaurant {
  font-size: .8rem;
  color: var(--color-muted);
}
.dish-card--carousel .dish-card__price {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: .4rem;
}

@media (prefers-reduced-motion: reduce) {
  .dish-carousel__track { animation: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .dish-card--carousel  { scroll-snap-align: start; }
}

/* Mobile — smaller cards, faster scroll */
@media (max-width: 640px) {
  .dish-card--carousel { flex: 0 0 200px; }
  .dish-card--carousel .dish-card__media { height: 140px; }
  .dish-card--carousel .dish-card__media-emoji { font-size: 3rem; }
  .dish-carousel__track { animation-duration: 45s; gap: .85rem; }
}

/* ==================================================================
   RESTAURANT CARD — real cover image
   ================================================================== */
.r-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* ==================================================================
   MENU ITEM — real photo display on restaurant page
   ================================================================== */
.menu-item__image-src {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.menu-item__image-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

/* ==================================================================
   IMAGE UPLOAD SLOTS — vendor profile + admin
   ================================================================== */
.image-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
@media (max-width: 680px) {
  .image-grid { grid-template-columns: 1fr; }
}
.image-grid__slot label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-ink);
  margin-bottom: .5rem;
}

.image-slot {
  position: relative;
  width: 180px;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color .2s ease;
}
.image-slot--wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 420px;
}
.image-slot:hover { border-color: var(--color-primary); }

.image-slot__preview {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot__empty {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: var(--color-muted);
  text-align: center;
  padding: 1rem;
}
.image-slot__empty > span:first-child {
  font-size: 2.5rem;
  line-height: 1;
}
.image-slot__empty > span:last-child {
  font-size: .82rem;
}

.image-slot__input {
  /* hidden — we trigger via the label button */
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.image-slot__btn {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: rgba(255,255,255,0.95);
  pointer-events: none;       /* let the invisible input catch clicks */
  backdrop-filter: blur(4px);
}

/* Tighten the "help" text under upload controls */
.image-grid .help {
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--color-muted);
}

/* ==================================================================
   CITY PICKER — dropdown in the navbar
   ================================================================== */
.city-picker { position: relative; }
.city-picker__dropdown { position: relative; }
.city-picker__dropdown > summary { list-style: none; cursor: pointer; }
.city-picker__dropdown > summary::-webkit-details-marker { display: none; }

.city-picker__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem; font-weight: 600;
  color: var(--color-ink);
  transition: all .15s ease;
  line-height: 1; white-space: nowrap;
  max-width: 180px;
}
.city-picker__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.city-picker__label {
  overflow: hidden; text-overflow: ellipsis;
}
.city-picker__dropdown[open] .city-picker__btn {
  border-color: var(--color-primary); color: var(--color-primary);
}

.city-picker__menu {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  z-index: 60;
}

.city-picker__item-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: .55rem .75rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm, 8px);
  text-align: left;
  font-size: .88rem;
  color: var(--color-ink);
  text-decoration: none;
  cursor: pointer;
  gap: .75rem;
  font-weight: 500;
}
.city-picker__item-btn:hover { background: var(--color-surface); color: var(--color-ink); }
.city-picker__item-btn.is-active { background: var(--color-primary); color: #fff; }
.city-picker__item-btn.is-active .city-picker__region { color: rgba(255,255,255,0.8); }
.city-picker__item-btn--muted { color: var(--color-muted); font-size: .82rem; }
.city-picker__item .city-picker__item-btn { padding: .55rem .75rem; }
.city-picker__item form { margin: 0; width: 100%; }
.city-picker__item { width: 100%; }

.city-picker__region {
  font-size: .72rem;
  color: var(--color-muted);
  font-weight: 400;
}
.city-picker__divider {
  border: 0;
  border-top: 1px solid var(--color-border-soft);
  margin: .3rem 0;
}
.city-picker__geo-btn {
  color: var(--color-primary);
  width: 100%;
}

/* Distance badge on restaurant card */
.r-card__distance {
  display: inline-flex; align-items: center;
  gap: .25rem;
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 500;
}
.r-card__distance::before { content: "📍"; font-size: .85rem; }

/* "Showing restaurants in" banner strip */
.city-context {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
  padding: .75rem 0;
}
.city-context__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--color-muted);
}
.city-context__name {
  color: var(--color-ink);
  font-weight: 600;
}
.city-context a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ==================================================================
   STAR RATING INPUT — reversed-row trick for pure-CSS hover fill
   ================================================================== */
.stars-input {
  display: inline-flex;
  flex-direction: row-reverse;  /* reverses DOM order so :hover~ cascades right-to-left */
  gap: .15rem;
}
.stars-input input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.stars-input label {
  cursor: pointer;
  padding: 2px;
  color: rgba(0,0,0,0.12);
  transition: color .15s ease, transform .15s ease;
}
.stars-input label svg {
  width: 32px; height: 32px;
  fill: currentColor;
  display: block;
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label {
  color: var(--color-accent);
}
.stars-input input:focus-visible + label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.stars-input label:hover { transform: scale(1.1); }

.review-form { margin-bottom: 1.5rem; }
.review-form__label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--color-ink);
}

/* ==================================================================
   REVIEW CARDS — public reviews list
   ================================================================== */
.review-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.review-card:last-child { border-bottom: 0; }
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .5rem;
}
.review-card__who {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-left: .5rem;
  padding: 2px 8px;
  background: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.review-card__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.review-card__stars svg { width: 16px; height: 16px; }
.review-card__body {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.55;
  padding-left: calc(40px + .75rem);   /* align under avatar */
}
@media (max-width: 520px) {
  .review-card__body { padding-left: 0; }
  .review-card__head { flex-direction: column; }
}

/* ==================================================================
   CASH SETTLEMENTS — admin + vendor balance views
   ================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.stat {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
}
.stat__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: .4rem;
}
.stat__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
}
.stat--highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, #C53030 100%);
  border-color: transparent;
}
.stat--highlight .stat__label { color: rgba(255,255,255,0.85); }
.stat--highlight .stat__value { color: #fff; }

/* Row highlight: vendor has outstanding balance */
.settle-row--owed { background: rgba(226, 55, 68, 0.04); }
.settle-row--owed:hover { background: rgba(226, 55, 68, 0.08); }

.text-danger { color: var(--color-danger, var(--color-primary)) !important; }

/* Vendor "you owe Zrali" hero card */
.settle-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--color-surface) 100%);
  border-left: 4px solid var(--color-primary);
}
@media (max-width: 640px) {
  .settle-hero { grid-template-columns: 1fr; }
}
.settle-hero__label {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: .5rem;
}
.settle-hero__amount {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-display, inherit);
}
.settle-hero__cta p:first-child {
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 .3rem;
}
