:root {
  --bg: #070707;
  --bg-2: #111111;
  --card: #161616;
  --line: #2a2a2a;
  --line-soft: #242424;
  --orange: #f08a1a;
  --orange-2: #ff9f2e;
  --gold: #e0b15a;
  --text: #f4f1ea;
  --muted: #9a948a;
  --green: #3dcc7a;
  --danger: #e85d4c;
  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 24px;
  --nav: 72px;
  --safe: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --screen-x: 18px;
  --screen-y: 20px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --card-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Phase 3 account orders: preserve the original mobile tracking experience. */
.account-orders-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-orders-refresh {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--orange);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.account-orders-refresh:disabled { opacity: .55; cursor: wait; }
.account-active-orders { display: flex; flex-direction: column; gap: 14px; }
.account-orders-notice {
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}
.account-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.account-order-total strong { color: var(--gold); font-size: 14px; }
.account-order-details {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
}
.account-order-details summary { color: var(--orange); font-weight: 700; cursor: pointer; }
.history-status.account-status-negative {
  background: rgba(232,93,76,.09);
  border-color: rgba(232,93,76,.24);
  color: #ef897c;
}
.account-load-more { width: 100%; margin-top: 14px; }
body.light-theme .account-orders-refresh,
body.light-theme .account-orders-notice { background: #fff; border-color: #e1ded8; }
@media (min-width: 1025px) {
  #app > .account-orders-screen { max-width: 860px; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: #1a1714;
  color: var(--text);
  font-family: "Outfit", "Cairo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-ar,
body.is-ar button,
body.is-ar input,
body.is-ar textarea,
body.is-ar select {
  font-family: "Cairo", "Outfit", system-ui, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 24px 12px;
}

.phone {
  width: min(430px, 100%);
  min-height: min(920px, calc(100vh - 48px));
  min-height: min(920px, calc(100svh - 48px));
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow), 0 0 0 8px #2a241c;
}

#app {
  min-height: 100%;
  position: relative;
  padding-bottom: calc(var(--nav) + var(--safe));
}

.screen {
  padding: var(--screen-y) var(--screen-x) 28px;
  /* In-place updates must never fade the entire screen out and back in. */
  animation: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Splash */

.splash {
  min-height: min(920px, calc(100vh - 48px));
  min-height: min(920px, calc(100svh - 48px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(28px + var(--safe-top)) 22px calc(40px + var(--safe));
  position: relative;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.18) 0%, rgba(7, 7, 7, 0.72) 48%, rgba(7, 7, 7, 0.94) 100%),
    url("https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1200&q=80")
      center / cover no-repeat;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.42);
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.splash h1 {
  font-size: clamp(32px, 7vw, 35px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f7f4ee;
}

.splash p {
  color: #d2cbc1;
  margin: 10px 0 26px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 34ch;
}
.splash .btn-primary {
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(240, 138, 26, 0.20);
}

.splash .btn-ghost {
  min-height: 48px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 15px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f2eee8;
  background: rgba(8, 8, 8, 0.18);
}


.phone-hint {
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.03em;
  font-size: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.btn:active,
.icon-btn:active,
.add:active,
.nav button:active,
.toggle button:active,
.tabs button:active,
.spice button:active,
.lang-switch button:active,
.emoji-row button:active,
.qty button:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #1a1004;
  box-shadow: 0 10px 22px rgba(240, 138, 26, 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #3a342c;
  margin-top: 10px;
}

.btn-wa {
  background: #1f3d2c;
  color: #b7f5c8;
  border: 1px solid #2e5a40;
}

/* Generic helpers */

.row {
  display: flex;
  gap: 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn svg,
.nav svg {
  flex-shrink: 0;
}

/* Language switch */

.lang-switch {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 44px;
}

.lang-switch button.on {
  background: var(--orange);
  color: #1a1004;
}

.splash-lang {
  position: absolute;
  top: calc(22px + var(--safe-top));
  inset-inline-end: 22px;
  z-index: 2;
}
.splash-lang .lang-switch button {
  min-width: 42px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.splash-lang .lang-switch button {
  min-width: 46px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
}

.splash-lang .lang-switch button.on {
  background: var(--orange);
  color: #17100a;
}

/* Search and location */

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.loc {
  font-size: 13px;
  color: var(--muted);
}

.loc strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

/* Delivery / pickup switch */

.toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
}

.toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 6px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.toggle button.on {
  background: var(--orange);
  color: #1a1004;
}
.mode-note {
  margin: -4px 4px 16px;
  color: #8fd3a8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Banner */

.banner {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 144px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18)),
    url("https://images.unsplash.com/photo-1603360946369-dc9bb6258143?w=1200&q=85")
      center / cover no-repeat;
  padding: 22px 18px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.banner small {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.banner h2 {
  font-size: clamp(22px, 5vw, 26px);
  line-height: 1.12;
  margin-top: 7px;
  max-width: 12ch;
}

/* Head rows */

.h-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.h-row h3 {
  font-size: 18px;
  line-height: 1.25;
}

.link {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

/* Horizontal cards */

.scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scroll-snap-type: x proximity;
}

.scroll::-webkit-scrollbar {
  height: 0;
}

.special-card {
  min-width: 156px;
  width: 156px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--card-shadow);
  scroll-snap-align: start;
}

.special-card img {
  height: 102px;
  width: 100%;
  object-fit: cover;
}

.special-card div {
  padding: 11px 11px 12px;
}

.special-card h4,
.special-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.special-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.special-card .price {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
}

/* Categories */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--card-shadow);
}

.cat span {
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.cat strong,
.cat h4,
.cat p,
.cat div {
  line-height: 1.35;
}

.cat > *:last-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.cat-photo {
  min-height: 0;
  padding: 7px 7px 10px;
  gap: 8px;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.cat-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background: #0d0d0d;
}
.cat-photo .cat-label {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

/* Menu items */

.item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #0d0d0d;
}

.item h4 {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 8px;
}

.price {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.badge {
  display: inline-block;
  background: #3a2a12;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.add {
  background: var(--orange);
  color: #1a1004;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 54px;
}

/* Hero image */

.hero-img {
  display: block;
  height: 220px;
  width: calc(100% + 36px);
  object-fit: cover;
  margin: -20px -18px 16px;
  background: #111;
}

.stars {
  color: var(--gold);
  font-size: 13px;
  margin: 6px 0 10px;
}

/* Product options */

.options {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: var(--card-shadow);
}

.options h4 {
  margin-bottom: 10px;
  font-size: 15px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.choice:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.choice label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  line-height: 1.4;
}

.choice input {
  accent-color: var(--orange);
}

.spice {
  display: flex;
  gap: 8px;
}

.spice button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.spice button.on {
  border-color: var(--orange);
  color: var(--orange);
  background: #2a1a0c;
}

/* Sticky actions */

.sticky-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  position: sticky;
  bottom: 12px;
  z-index: 2;
}

/* Cart */

.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.field {
  width: 100%;
  min-height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
}

.field::placeholder {
  color: #7e796f;
}

.field:focus {
  border-color: rgba(240, 138, 26, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.1);
}

textarea.field {
  min-height: 96px;
  resize: vertical;
}

.breakdown {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  box-shadow: var(--card-shadow);
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.breakdown .total {
  color: var(--text);
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}

/* Success */

.success {
  text-align: center;
  padding: 40px 8px 20px;
}

.check {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #163322;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 40px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 24px 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--line);
}

.step {
  width: 22%;
  text-align: center;
  position: relative;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}

.step.done .dot,
.step.now .dot {
  background: var(--orange);
}

.step.now {
  color: var(--orange);
  font-weight: 600;
}

/* Tabs / Loyalty */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tabs::-webkit-scrollbar {
  height: 0;
}

.tabs button {
  border: 0;
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
}

.tabs button.on {
  background: var(--orange);
  color: #1a1004;
  font-weight: 600;
}

.points {
  background: linear-gradient(135deg, #2a1c0c, #111111 68%);
  border: 1px solid #4a3418;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.stamps {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}

.stamp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed #4a3418;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.stamp.filled {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold);
  background: #2a1c0c;
}

/* Feedback */

.emoji-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 16px;
}

.emoji-row button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  width: 18%;
  min-height: 72px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.emoji-row button.on {
  border-color: var(--orange);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 138, 26, 0.25) inset;
}

.emoji-row span {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

/* Map and toast */

.map {
  height: 120px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("https://images.unsplash.com/photo-1524661132064-96597144c1fc?w=900&q=80")
      center / cover no-repeat;
  margin: 12px 0;
  border: 1px solid var(--line);
}

.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(var(--nav) + var(--safe) + 14px);
  background: #2a1c0c;
  color: var(--gold);
  border: 1px solid #4a3418;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.toast.show {
  display: block;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
  line-height: 1.6;
}

/* Bottom nav */

.nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav) + var(--safe));
  padding-bottom: var(--safe);
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 5;
}

.nav button {
  position: relative;
  background: none;
  border: 0;
  color: #918c84;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  min-height: var(--nav);
  padding: 7px 4px 5px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.nav-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  display: block;
  font-size: 11.5px;
  line-height: 1;
}

.nav button.active {
  color: var(--orange);
  font-weight: 600;
}

.nav button.active::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
}

/* Tablet */
@media (min-width: 481px) and (max-width: 1199px) {
  .stage {
    min-height: 100svh;
    padding: 0;
    background: var(--bg);
  }

  .phone {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding: 24px 28px 32px;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .stage {
    padding: 0;
    background: var(--bg);
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding: 18px 16px 26px;
  }

  .splash {
    min-height: 100vh;
    min-height: 100svh;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-img {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .item {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .item img {
    width: 82px;
    height: 82px;
  }

  .special-card {
    min-width: 148px;
    width: 148px;
  }

  .special-card img {
    height: 96px;
  }

  .cat {
    min-height: 104px;
    padding: 13px 10px;
  }

  .cat span {
    font-size: 26px;
  }
}

/* Small phones */

@media (max-width: 360px) {
  .screen {
    padding: 16px 14px 24px;
  }

  .grid {
    gap: 10px;
  }

  .item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .item img {
    width: 76px;
    height: 76px;
  }

  .item > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .emoji-row button {
    font-size: 10px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Desktop preview */

@media (min-width: 481px) {
  .phone {
    margin: auto;
  }
}
/* ========================================
   FINAL APP VIEWPORT + BOTTOM NAV SYSTEM
======================================== */

.phone {
  height: min(920px, calc(100dvh - 48px));
  min-height: 0;
}

#app {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}

/* Main screen content scrolls,
   bottom navigation stays visible */
#app > .screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

#app > .screen::-webkit-scrollbar {
  display: none;
}

.nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  flex: 0 0 auto;
  height: calc(var(--nav) + var(--safe));
  padding-bottom: var(--safe);
  z-index: 10;
}

/* iPhone + Android */
@media (max-width: 480px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
  }

  .stage {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  #app {
    height: 100%;
  }

  #app > .screen {
    padding-top: calc(18px + var(--safe-top));
    padding-bottom: 26px;
  }
}
/* ========================================
   RESPONSIVE DEVICE SYSTEM
   Phones + Tablets + Safe Areas
======================================== */

/* Better touch behavior on all devices */
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

/* Safe left/right space for notched phones in landscape */
#app > .screen {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ----------------------------------------
   SMALL PHONES
   320px - 360px
---------------------------------------- */
@media (max-width: 360px) {
  :root {
    --nav: 68px;
  }

  #app > .screen {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .toggle button {
    font-size: 12px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .nav-label {
    font-size: 10.5px;
  }

  .nav-icon {
    width: 19px;
    height: 19px;
  }

  .h-row h3 {
    font-size: 17px;
  }

  .special-card {
    min-width: 140px;
    width: 140px;
  }
}

/* ----------------------------------------
   NORMAL PHONES
   361px - 599px
---------------------------------------- */
@media (min-width: 361px) and (max-width: 599px) {
  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  #app > .screen {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* ----------------------------------------
   TABLETS
   600px - 1024px
---------------------------------------- */
@media (min-width: 600px) and (max-width: 1024px) {
  :root {
    --nav: 78px;
  }

  .stage {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    background: var(--bg);
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  #app > .screen {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
    padding-top: calc(24px + var(--safe-top));
  }

  /* Categories use tablet width better */
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cat-photo {
    padding: 8px 8px 12px;
  }

  /* Bigger promo banner */
  .banner {
    min-height: 190px;
    padding: 28px 24px;
  }

  .banner h2 {
    font-size: 28px;
  }

  /* Larger horizontal product cards */
  .special-card {
    min-width: 210px;
    width: 210px;
  }

  .special-card img {
    height: 135px;
  }

  .special-card h4,
  .special-card strong {
    font-size: 16px;
  }

  .special-card .price {
    font-size: 15px;
  }

  /* Comfortable tablet navigation */
  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-label {
    font-size: 12px;
  }
}

/* ----------------------------------------
   TABLET LANDSCAPE
---------------------------------------- */
@media (min-width: 700px) and (max-width: 1024px) and (orientation: landscape) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner {
    min-height: 170px;
  }
}

/* ----------------------------------------
   DESKTOP = DEVICE PREVIEW
---------------------------------------- */
@media (min-width: 1025px) {
  .stage {
    padding: 24px 12px;
  }

  .phone {
    width: 430px;
    height: min(920px, calc(100dvh - 48px));
    border-radius: 36px;
    box-shadow: var(--shadow), 0 0 0 8px #2a241c;
  }
}
/* ========================================
   ACCOUNT SCREEN
======================================== */

.account-screen .topbar {
  margin-bottom: 22px;
}

.account-screen .topbar h2 {
  font-size: 26px;
  line-height: 1.15;
}

.account-screen > h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Rating */
.account-screen .emoji-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 10px 0 16px;
}

.account-screen .emoji-row button {
  width: 100%;
  min-height: 72px;
  padding: 9px 3px;
  border-radius: 13px;
  font-size: 10.5px;
  font-weight: 500;
  background: #141414;
}

.account-screen .emoji-row span {
  font-size: 22px;
  margin-bottom: 5px;
}

.account-screen .emoji-row button.on {
  background: rgba(240, 138, 26, 0.08);
  border-color: var(--orange);
  color: var(--text);
}

/* Feedback box */
.account-screen textarea.field {
  min-height: 110px;
  padding: 14px;
  font-size: 14px;
  border-radius: 14px;
  resize: none;
  margin-bottom: 12px;
}

.account-screen > .btn-primary {
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

/* Branch section */
.account-screen > h3[style] {
  margin-top: 28px !important;
  margin-bottom: 8px !important;
  font-size: 19px;
}

.account-screen > p {
  font-size: 13.5px !important;
  line-height: 1.55;
}

/* Map */
.account-screen .map {
  height: 135px;
  margin: 14px 0;
  border-radius: 16px;
}

/* Branch action buttons */
.account-screen .row {
  gap: 10px;
}

.account-screen .row .btn,
.account-screen > .btn-ghost {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 13px;
}

/* Small phones */
@media (max-width: 360px) {
  .account-screen .emoji-row {
    gap: 5px;
  }

  .account-screen .emoji-row button {
    font-size: 9.5px;
    min-height: 68px;
  }

  .account-screen .emoji-row span {
    font-size: 20px;
  }
}
/* Premium branch location card */

.account-screen .branch-location {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 14px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.account-screen .branch-location:active {
  background: #181818;
  border-color: rgba(240, 138, 26, 0.45);
}

.branch-location-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(240, 138, 26, 0.12);
  color: var(--orange);
}

.branch-location-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-location-text {
  min-width: 0;
}

.branch-location-text strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.branch-location-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.branch-location-arrow {
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}
/* ========================================
   MORE SCREEN
======================================== */

.more-screen .topbar {
  margin-bottom: 22px;
}

.more-screen .topbar h2 {
  font-size: 28px;
  line-height: 1.15;
}

.more-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Main row */
.more-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;

  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;

  background: #141414;
  color: var(--text);

  text-align: left;
  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.more-item:active {
  transform: scale(0.985);
  background: #191919;
  border-color: rgba(240, 138, 26, 0.45);
}

/* Icon container */
.more-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;

  display: grid;
  place-items: center;

  background: rgba(240, 138, 26, 0.11);
  color: var(--orange);

  font-size: 20px;
  font-weight: 600;
}

/* Text */
.more-item-text {
  min-width: 0;
}

.more-item-text strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}

.more-item-text span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}

/* Arrow */
.more-arrow {
  color: #777169;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

/* Arabic */
body.is-ar .more-item {
  text-align: right;
}

/* Small phones */
@media (max-width: 360px) {
  .more-item {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 70px;
    padding: 11px 12px;
  }

  .more-item-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .more-item-text strong {
    font-size: 14px;
  }

  .more-item-text span {
    font-size: 11.5px;
  }
}
.more-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ========================================
   FEEDBACK SCREEN FINAL POLISH
======================================== */

.feedback-screen .topbar {
  margin-bottom: 24px;
}

.feedback-screen .topbar h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.feedback-intro {
  margin-bottom: 14px;
}

.feedback-intro h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-intro p {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
}

.feedback-screen .emoji-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 16px;
}

.feedback-screen .emoji-row button {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 9px 3px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 500;
}

.feedback-screen .emoji-row span {
  font-size: 23px;
  margin-bottom: 5px;
}

.feedback-screen textarea.field {
  min-height: 105px;
  border-radius: 14px;
  font-size: 14px;
  padding: 14px;
  resize: none;
}

.feedback-screen .feedback-submit {
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* Very small phones */
@media (max-width: 360px) {
  .feedback-screen .emoji-row {
    gap: 5px;
  }

  .feedback-screen .emoji-row button {
    min-height: 66px;
    font-size: 9px;
    padding: 7px 2px;
  }

  .feedback-screen .emoji-row span {
    font-size: 20px;
  }

  .feedback-screen .topbar h2 {
    font-size: 22px;
  }
}
/* ========================================
   BRANCH & CONTACT SCREEN
======================================== */

.branch-screen .topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.branch-screen .topbar h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* Main branch card */
.branch-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;

  padding: 16px;
  margin-bottom: 12px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.branch-pin {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;

  border-radius: 14px;
  background: rgba(240, 138, 26, 0.12);
  color: var(--orange);
}

.branch-pin svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-card h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.branch-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Opening hours + phone */
.branch-info-card {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 4px 15px;
  margin-bottom: 14px;
}

.branch-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.branch-info-row + .branch-info-row {
  border-top: 1px solid var(--line-soft);
}

.branch-info-row span {
  color: var(--muted);
  font-size: 13px;
}

.branch-info-row strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
}

/* Actions */
.branch-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #3a342c;
  border-radius: 14px;

  color: var(--text);
  font-size: 14px;
  font-weight: 600;

  background: transparent;
}

.branch-action-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a1004;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(240, 138, 26, 0.16);
}

.branch-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.branch-action-wa {
  background: #1f4933;
  border-color: #2d6848;
  color: #bff2cf;
}

.branch-action:active {
  transform: scale(0.985);
}

/* Arabic */
body.is-ar .branch-info-row strong {
  text-align: left;
}

/* Small phones */
@media (max-width: 360px) {
  .branch-screen .topbar h2 {
    font-size: 19px;
  }

  .branch-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .branch-pin {
    width: 44px;
    height: 44px;
  }

  .branch-card h3 {
    font-size: 15px;
  }

  .branch-info-row {
    padding: 12px 0;
  }
}

/* ========================================
   HELP & SUPPORT SCREEN
======================================== */

.support-screen .topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.support-screen .topbar h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.support-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Support option cards */
.support-item {
  width: 100%;
  min-height: 74px;

  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 13px 14px;

  background: #141414;
  color: var(--text);

  border: 1px solid var(--line);
  border-radius: 16px;

  text-align: left;
  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.support-item:active {
  transform: scale(0.985);
  background: #191919;
  border-color: rgba(240, 138, 26, 0.45);
}

/* Orange icon box */
.support-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(240, 138, 26, 0.11);
  color: var(--orange);

  font-size: 16px;
  font-weight: 700;
}

.support-item > div:nth-child(2) {
  min-width: 0;
}

.support-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}

.support-item div span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}

.support-arrow {
  color: #777169;
  font-size: 25px;
  line-height: 1;
}

/* Call + WhatsApp */
.support-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* Arabic */
body.is-ar .support-item {
  text-align: right;
}

/* Small phones */
@media (max-width: 360px) {
  .support-screen .topbar h2 {
    font-size: 20px;
  }

  .support-item {
    min-height: 68px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 12px;
  }

  .support-icon {
    width: 40px;
    height: 40px;
  }

  .support-item strong {
    font-size: 14px;
  }

  .support-item div span {
    font-size: 11.5px;
  }
}
.support-svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ========================================
   SUPPORT REQUEST SCREEN
======================================== */

.support-request-screen .topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.support-request-screen .topbar h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.support-field-label {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin: 0 2px 7px;
}

.support-request-screen input.field {
  min-height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.support-request-screen textarea.field {
  min-height: 120px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  margin-bottom: 14px;
}

.support-note {
  position: relative;
  margin: 0 0 14px;
  padding: 11px 12px 11px 34px;

  background: rgba(240, 138, 26, 0.07);
  border: 1px solid rgba(240, 138, 26, 0.18);
  border-radius: 12px;

  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.support-note::before {
  content: "i";
  position: absolute;
  left: 12px;
  top: 11px;

  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;

  border: 1px solid var(--orange);
  border-radius: 50%;

  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
}

.support-request-screen .btn-wa,
.support-request-screen .btn-ghost {
  min-height: 50px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.support-request-screen .btn-wa {
  margin-bottom: 10px;
}

/* Arabic */
body.is-ar .support-note {
  padding: 11px 34px 11px 12px;
}

body.is-ar .support-note::before {
  left: auto;
  right: 12px;
}

@media (max-width: 360px) {
  .support-request-screen .topbar h2 {
    font-size: 20px;
  }

  .support-field-label {
    font-size: 12.5px;
  }
}
/* Offers sub-page header */

.offers-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.offers-topbar h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .offers-topbar h2 {
    font-size: 20px;
  }
}

/* Back arrow visual polish only - no JS changes */
.topbar > .icon-btn:first-child,
.topbar > .icon-btn:last-child {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #f5f5f5;
}
/* ========================================
   ACCOUNT SCREEN
======================================== */

.new-account-screen .topbar {
  margin-bottom: 20px;
}

.account-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.account-topbar h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

/* Guest profile card */
.account-guest-card {
  padding: 18px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 22px;
}

.account-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 138, 26, 0.12);
  color: var(--orange);
  margin-bottom: 13px;
}

.account-avatar svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-guest-copy h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.account-guest-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 15px;
}

.account-signin-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

/* Section title */
.account-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 4px 9px;
}

.account-settings-title {
  margin-top: 20px;
}

/* Rewards card */
.account-rewards-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;

  padding: 14px;
  background: #141414;
  color: var(--text);
  border: 1px solid rgba(224, 177, 90, 0.28);
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
}

.account-reward-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(224, 177, 90, 0.11);
  color: var(--gold);
}

.account-reward-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.account-reward-copy {
  min-width: 0;
}

.account-reward-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.account-reward-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.account-reward-copy small {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
}

/* Account settings list */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.account-list-item {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  background: #141414;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.account-list-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(240, 138, 26, 0.1);
  color: var(--orange);
}

.account-list-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-language-icon span {
  font-size: 15px;
  font-weight: 700;
}

.account-list-copy {
  min-width: 0;
}

.account-list-copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-list-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-arrow {
  color: #777169;
  font-size: 25px;
  line-height: 1;
}

/* Press feedback */
.account-rewards-card:active,
.account-list-item:active {
  transform: scale(0.985);
}

/* Arabic */
body.is-ar .account-rewards-card,
body.is-ar .account-list-item {
  text-align: right;
}

body.is-ar .account-arrow {
  transform: rotate(180deg);
}

/* Small phones */
@media (max-width: 360px) {
  .account-topbar h2 {
    font-size: 25px;
  }

  .account-guest-card {
    padding: 15px;
  }

  .account-rewards-card {
    min-height: 86px;
  }
}

/* ========================================
   SIGN IN SCREEN
======================================== */

.signin-screen {
  padding-bottom: 28px;
}

.signin-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.signin-topbar h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.signin-intro {
  margin-bottom: 24px;
}

.signin-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.signin-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 2px 8px;
}

.mobile-field-wrap {
  width: 100%;
  min-height: 56px;

  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 15px;

  overflow: hidden;
}

.country-code {
  padding: 0 14px 0 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--line);
}

.mobile-input.field {
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.mobile-field-wrap:focus-within {
  border-color: rgba(240, 138, 26, 0.7);
}

.signin-mobile-note {
  color: var(--muted);
  font-size: 11.5px;
  margin: 8px 3px 22px;
}

.signin-continue {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.signin-terms {
  max-width: 310px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

/* Arabic */
body.is-ar .country-code {
  border-right: 0;
  border-left: 1px solid var(--line);
}
/* ========================================
   OTP VERIFICATION SCREEN
======================================== */

.otp-screen {
  padding-bottom: 30px;
}

.otp-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.otp-topbar h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* Intro */
.otp-intro {
  margin-bottom: 28px;
}

.otp-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 5px;
}

.otp-intro strong {
  display: inline-block;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

/* Change number = text action */
.otp-change-number {
  display: block;
  margin-top: 8px;
  padding: 0;

  background: transparent;
  border: 0;

  color: var(--orange);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Verification label */
.otp-label {
  display: block;
  margin: 0 2px 8px;

  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* OTP field */
.otp-input.field {
  width: 100%;
  height: 64px;
  margin: 0 0 22px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 15px;

  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;

  outline: none;
}

.otp-input.field:focus {
  border-color: rgba(240, 138, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.08);
}

/* Verify button */
.otp-verify-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* Resend */
.otp-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  margin-top: 17px;

  color: var(--muted);
  font-size: 12px;
}

.otp-resend button {
  padding: 0;

  background: transparent;
  border: 0;

  color: var(--orange);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Arabic */
body.is-ar .otp-change-number {
  text-align: right;
}

@media (max-width: 360px) {
  .otp-topbar h2 {
    font-size: 20px;
  }

  .otp-input.field {
    height: 58px;
    font-size: 20px;
    letter-spacing: 8px;
  }
}
/* ========================================
   PROFILE SETUP SCREEN
======================================== */

.profile-setup-screen {
  padding-bottom: 30px;
}

.profile-setup-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.profile-setup-topbar h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.profile-setup-intro {
  margin-bottom: 26px;
}

.profile-setup-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.profile-setup-label {
  display: block;
  margin: 0 2px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.profile-setup-screen .field {
  width: 100%;
  min-height: 56px;
  margin: 0 0 20px;
  padding: 13px 15px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 15px;

  color: var(--text);
  font-size: 15px;
  outline: none;
}

.profile-setup-screen .field:focus {
  border-color: rgba(240, 138, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.08);
}

.profile-save-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .profile-setup-topbar h2 {
    font-size: 20px;
  }
}

/* ========================================
   SIGNED-IN ACCOUNT
======================================== */

.signed-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;

  padding: 17px;
  margin-bottom: 22px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.signed-profile-card .account-avatar {
  width: 52px;
  height: 52px;
  margin: 0;
}

/* Customer information */
.signed-profile-copy {
  min-width: 0;
}

.signed-profile-copy > span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 3px;
}

.signed-profile-copy h3 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.signed-profile-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.signed-profile-copy small {
  display: block;
  margin-top: 3px;

  color: var(--muted);
  font-size: 11.5px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Edit profile */
.signed-edit-btn {
  padding: 8px 11px;

  background: transparent;
  border: 1px solid rgba(240, 138, 26, 0.38);
  border-radius: 10px;

  color: var(--orange);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;

  cursor: pointer;
  white-space: nowrap;
}

/* Rewards summary */
.signed-rewards-card {
  min-height: 88px;

  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;

  padding: 14px 8px;

  background: #141414;
  border: 1px solid rgba(224, 177, 90, 0.28);
  border-radius: 17px;
}

.signed-reward-stat {
  text-align: center;
}

.signed-reward-stat strong {
  display: block;

  color: var(--gold);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 7px;
}

.signed-reward-stat span {
  display: block;

  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.signed-reward-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

/* Sign out */
.account-signout-btn {
  width: 100%;
  min-height: 48px;

  margin-top: 18px;

  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;

  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;

  cursor: pointer;
}

.account-signout-btn:active {
  background: #151515;
}

/* Arabic */
body.is-ar .signed-profile-card {
  text-align: right;
}

/* Small phones */
@media (max-width: 360px) {

  .signed-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .signed-edit-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .signed-reward-stat strong {
    font-size: 19px;
  }
}

/* ========================================
   SAVED ADDRESSES SCREEN
======================================== */

.saved-addresses-screen {
  padding-bottom: 30px;
}

.saved-addresses-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.saved-addresses-topbar h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

/* Empty state */
.address-empty-state {
  min-height: 260px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 28px 24px;
  margin-bottom: 18px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 18px;

  text-align: center;
}

.address-empty-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  margin-bottom: 16px;

  border-radius: 18px;
  background: rgba(240, 138, 26, 0.11);
  color: var(--orange);
}

.address-empty-icon svg {
  width: 29px;
  height: 29px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-empty-state h3 {
  margin: 0 0 7px;

  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.address-empty-state p {
  max-width: 280px;
  margin: 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Add address */
.add-address-btn {
  width: 100%;
  min-height: 52px;

  border-radius: 14px;

  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .saved-addresses-topbar h2 {
    font-size: 20px;
  }

  .address-empty-state {
    min-height: 230px;
    padding: 24px 18px;
  }
}
/* ========================================
   ADD ADDRESS SCREEN
======================================== */

.add-address-screen {
  padding-bottom: 30px;
}

.add-address-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.add-address-topbar h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

/* Labels */
.address-form-label {
  display: block;
  margin: 0 2px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

/* Address type selector */
.address-type-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.address-type-toggle button {
  min-height: 44px;
  padding: 0 10px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 12px;

  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.address-type-toggle button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #111;
}

/* Inputs */
.add-address-screen .field {
  width: 100%;
  min-height: 54px;

  margin: 0 0 18px;
  padding: 13px 15px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 14px;

  color: var(--text);
  font-size: 14px;
  line-height: 1.4;

  outline: none;
}

.add-address-screen textarea.field {
  min-height: 105px;
  resize: none;
}

.add-address-screen .field:focus {
  border-color: rgba(240, 138, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.08);
}

.add-address-screen .field::placeholder {
  color: #777169;
}

/* Save */
.save-address-btn {
  width: 100%;
  min-height: 52px;

  margin-top: 3px;

  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* Arabic */
body.is-ar .add-address-screen {
  text-align: right;
}

/* Small phones */
@media (max-width: 360px) {
  .add-address-topbar h2 {
    font-size: 19px;
  }

  .address-type-toggle button {
    font-size: 12px;
  }
}

/* ========================================
   SAVED ADDRESS CARDS
======================================== */

.saved-address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.saved-address-card {
  width: 100%;
  min-height: 92px;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;

  padding: 14px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.saved-address-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: rgba(240, 138, 26, 0.11);
  color: var(--orange);
}

.saved-address-icon svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-address-copy {
  min-width: 0;
}

.saved-address-copy strong {
  display: block;
  margin-bottom: 4px;

  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
}

.saved-address-copy span {
  display: block;
  margin-bottom: 4px;

  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.saved-address-copy small {
  display: block;

  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* Arabic */
body.is-ar .saved-address-card {
  text-align: right;
}

/* ========================================
   SAVED ADDRESS ACTIONS
======================================== */

.saved-address-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.saved-address-heading strong {
  margin: 0;
}

.default-address-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 8px;

  background: rgba(240, 138, 26, 0.12);
  border: 1px solid rgba(240, 138, 26, 0.3);
  border-radius: 999px;

  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.saved-address-card.is-default {
  border-color: rgba(240, 138, 26, 0.35);
}

/* Actions */
.saved-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.saved-address-actions button {
  min-height: 32px;
  padding: 6px 10px;

  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 9px;

  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
}

.saved-address-actions button:active {
  transform: scale(0.97);
}

/* Set default */
.saved-address-actions button:first-child {
  color: var(--orange);
  border-color: rgba(240, 138, 26, 0.28);
}

/* Delete */
.saved-address-actions .address-delete-btn {
  color: #d98b8b;
  border-color: rgba(217, 139, 139, 0.22);
}

/* Arabic */
body.is-ar .saved-address-heading,
body.is-ar .saved-address-actions {
  justify-content: flex-start;
}

/* ========================================
   ORDERS SCREEN
======================================== */

.orders-screen {
  padding-bottom: 26px;
}

.orders-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.orders-topbar h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

/* Active / History */
.orders-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;

  padding: 5px;
  margin-bottom: 22px;

  background: #111;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.orders-tabs button {
  min-height: 42px;

  background: transparent;
  border: 0;
  border-radius: 10px;

  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.orders-tabs button.active {
  background: var(--orange);
  color: #111;
}

/* Empty state */
.orders-empty-state {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 30px 22px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 18px;

  text-align: center;
}

.orders-empty-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  margin-bottom: 17px;

  background: rgba(240, 138, 26, 0.11);
  border-radius: 18px;

  color: var(--orange);
}

.orders-empty-icon svg {
  width: 28px;
  height: 28px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-empty-state h3 {
  margin: 0 0 7px;

  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.orders-empty-state p {
  max-width: 290px;

  margin: 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.orders-menu-btn {
  width: 100%;
  max-width: 280px;

  min-height: 48px;

  margin-top: 20px;

  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

/* History cards - used later when orders exist */
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-order-card {
  min-height: 72px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 14px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.history-order-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.history-order-card div > span {
  color: var(--muted);
  font-size: 12px;
}

/* Arabic */
body.is-ar .history-order-card {
  text-align: right;
}

@media (max-width: 360px) {
  .orders-topbar h2 {
    font-size: 25px;
  }

  .orders-empty-state {
    min-height: 270px;
    padding: 24px 18px;
  }
}

/* ========================================
   ACTIVE ORDER + STATUS TIMELINE
======================================== */

.active-order-card {
  padding: 17px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* Header */
.active-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;

  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.active-order-head > div > span {
  display: block;

  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 4px;
}

.active-order-head > div > strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.order-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;
  padding: 5px 10px;

  background: rgba(240, 138, 26, 0.11);
  border: 1px solid rgba(240, 138, 26, 0.25);
  border-radius: 999px;

  color: var(--orange);
  font-size: 10.5px;
  font-weight: 700;
}

/* Timeline */
.order-timeline {
  padding: 20px 2px 8px;
}

.order-step {
  position: relative;

  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;

  min-height: 58px;
}

.order-step:not(:last-child)::after {
  content: "";

  position: absolute;
  left: 6px;
  top: 18px;

  width: 2px;
  height: calc(100% - 5px);

  background: #343434;
}

.order-step-dot {
  position: relative;
  z-index: 2;

  width: 14px;
  height: 14px;

  margin-top: 2px;

  background: #242424;
  border: 2px solid #555;
  border-radius: 50%;
}

.order-step-copy strong {
  display: block;

  color: #777169;
  font-size: 13.5px;
  font-weight: 600;
}

/* Completed */
.order-step.done .order-step-dot {
  background: var(--orange);
  border-color: var(--orange);
}

.order-step.done:not(:last-child)::after {
  background: var(--orange);
}

.order-step.done .order-step-copy strong {
  color: var(--text);
}

/* Current */
.order-step.now .order-step-dot {
  background: var(--orange);
  border-color: var(--orange);

  box-shadow:
    0 0 0 4px rgba(240, 138, 26, 0.12);
}

.order-step.now .order-step-copy strong {
  color: var(--orange);
  font-weight: 700;
}

/* Order items */
.active-order-items {
  padding-top: 15px;
  margin-top: 3px;

  border-top: 1px solid var(--line);
}

.active-order-items h4 {
  margin: 0 0 10px;

  color: var(--muted);
  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.active-order-item {
  padding: 7px 0;

  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

/* Call restaurant */
.orders-call-btn {
  width: 100%;
  min-height: 46px;

  margin-top: 15px;

  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
}

/* Arabic timeline */
body.is-ar .active-order-card {
  text-align: right;
}

body.is-ar .order-step:not(:last-child)::after {
  left: auto;
  right: 6px;
}

/* ========================================
   ORDER HISTORY CARDS
======================================== */

.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Card */
.history-order-card {
  display: block;
  min-height: 0;

  padding: 16px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 17px;
}

/* Top row */
.history-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.history-order-top > div {
  min-width: 0;
}

.history-order-top strong {
  display: block;

  color: var(--text);
  font-size: 16px;
  font-weight: 700;

  margin-bottom: 4px;
}

.history-order-top > div > span {
  display: block;

  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

/* Completed badge */
.history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 9px;

  background: rgba(69, 196, 125, 0.09);
  border: 1px solid rgba(69, 196, 125, 0.22);
  border-radius: 999px;

  color: #70c995;
  font-size: 10.5px;
  font-weight: 700;

  white-space: nowrap;
}

/* Order information */
.history-order-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;

  padding: 13px 0;
}

.history-order-meta > span {
  position: relative;

  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.history-order-meta > span:not(:last-of-type)::after {
  content: "•";
  position: absolute;
  right: -9px;

  color: #57524c;
}

.history-order-meta strong {
  margin-left: auto;

  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

/* Reorder */
.history-reorder-btn {
  width: 100%;
  min-height: 42px;

  background: transparent;
  border: 1px solid rgba(240, 138, 26, 0.32);
  border-radius: 11px;

  color: var(--orange);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;

  cursor: pointer;
}

.history-reorder-btn:active {
  transform: scale(0.985);
  background: rgba(240, 138, 26, 0.06);
}

/* Arabic */
body.is-ar .history-order-card {
  text-align: right;
}

body.is-ar .history-order-meta strong {
  margin-left: 0;
  margin-right: auto;
}

body.is-ar .history-order-meta > span:not(:last-of-type)::after {
  right: auto;
  left: -9px;
}

/* ========================================
   ORDER CONFIRMATION DETAILS
======================================== */

.confirmation-message {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.confirmation-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 15px;
  padding: 5px 10px;

  background: rgba(240, 138, 26, 0.1);
  border: 1px solid rgba(240, 138, 26, 0.24);
  border-radius: 999px;

  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
}

.confirmation-order {
  margin-top: 14px;
}

.confirmation-eta {
  color: var(--gold);
  margin-top: 6px;
}
/* ========================================
   CHECKOUT - ORDER TYPE + SCHEDULING
======================================== */

.checkout-screen {
  padding-bottom: 30px;
}

.checkout-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.checkout-topbar h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.checkout-section-title {
  margin: 20px 2px 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

/* Customer fields */
.checkout-screen > .field {
  width: 100%;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 13px 15px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 14px;

  color: var(--text);
  font-size: 14px;
  outline: none;
}

.checkout-screen > .field:focus {
  border-color: rgba(240, 138, 26, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.07);
}

/* Delivery / Takeaway / Dine-in */
.checkout-order-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;

  padding: 5px;
  margin-bottom: 14px;

  background: #111;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.checkout-order-types button {
  min-height: 44px;
  padding: 0 7px;

  background: transparent;
  border: 0;
  border-radius: 10px;

  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.checkout-order-types button.active {
  background: var(--orange);
  color: #111;
}

/* Location */
.checkout-location-card {
  padding: 15px;
  margin-bottom: 20px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.checkout-location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-location-card h4 {
  margin: 0 0 9px;

  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.checkout-location-head h4 {
  margin-bottom: 0;
}

.checkout-location-card p {
  margin: 10px 0 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-location-card .link {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}

/* Timing */
.checkout-time-title {
  margin-top: 0;
}

.checkout-time-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.checkout-time-options button {
  min-height: 42px;
  padding: 6px 4px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 11px;

  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
}

.checkout-time-options button.active {
  background: rgba(240, 138, 26, 0.12);
  border-color: var(--orange);
  color: var(--orange);
}

.checkout-time-note {
  margin: 9px 3px 20px;

  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

/* Total */
.checkout-total-card {
  margin-top: 6px;
  padding: 16px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.checkout-total-card .total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-total-card .total span:first-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.checkout-total-card .total span:last-child {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
}

/* Place order */
.checkout-place-order {
  width: 100%;
  min-height: 54px;

  margin-top: 14px;

  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* Arabic */
body.is-ar .checkout-screen {
  text-align: right;
}

/* Small phones */
@media (max-width: 360px) {
  .checkout-topbar h2 {
    font-size: 21px;
  }

  .checkout-order-types button {
    font-size: 10.5px;
  }

  .checkout-time-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   LANGUAGE SETTINGS
======================================== */

.language-settings-screen {
  padding-bottom: 30px;
}

.language-settings-topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.language-settings-topbar h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.language-settings-intro {
  margin: 0 2px 18px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.language-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-setting-item {
  width: 100%;
  min-height: 74px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 16px;

  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.language-setting-item strong {
  display: block;

  color: var(--text);
  font-size: 15px;
  font-weight: 700;

  margin-bottom: 4px;
}

.language-setting-item div > span {
  display: block;

  color: var(--muted);
  font-size: 12px;
}

.language-setting-item.active {
  border-color: rgba(240, 138, 26, 0.5);
  background: rgba(240, 138, 26, 0.07);
}

.language-check {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
}

.language-setting-item.active .language-check {
  background: rgba(240, 138, 26, 0.13);
}

body.is-ar .language-setting-item {
  text-align: right;
}

@media (max-width: 360px) {
  .language-settings-topbar h2 {
    font-size: 21px;
  }
}

/* Meerath official brand logo */
.splash-brand-logo {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  margin: -20px auto 36px;
  object-fit: contain;
}

/* ========================================
   HOME COMPACT BRANDING
======================================== */

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-brand-location {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

.home-brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  object-fit: contain;
}

.home-brand-location .loc {
  min-width: 0;
}

.home-brand-location .loc strong {
  display: block;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .home-brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .home-brand-location {
    gap: 8px;
  }
}

/* ORDER CONFIRMATION BRANDING */

.confirmation-brand-logo {
  width: 76px;
  height: 76px;

  display: block;
  object-fit: contain;

  margin: 0 auto 18px;
}
/* ========================================
   HOME SMART SEARCH
======================================== */

.home-search-wrap {
  position: relative;
  z-index: 30;
  margin-bottom: 14px;
}

.home-search-box {
  width: 100%;
  min-height: 54px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 15px;

  background: #141414;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.home-search-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;

  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-box input {
  width: 100%;
  min-width: 0;

  background: transparent;
  border: 0;
  outline: 0;

  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.home-search-box input::placeholder {
  color: var(--muted);
}

/* Remove browser search decoration */
.home-search-box input::-webkit-search-cancel-button {
  display: none;
}

/* Results */
.home-search-results {
  display: none;

  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;

  max-height: 330px;
  overflow-y: auto;

  padding: 6px;

  background: #111;
  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.home-search-results.show {
  display: block;
}

.home-search-result {
  width: 100%;
  min-height: 66px;

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;

  padding: 7px;

  background: transparent;
  border: 0;
  border-radius: 11px;

  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.home-search-result:active {
  background: #1a1a1a;
}

.home-search-result img {
  width: 52px;
  height: 52px;

  object-fit: cover;
  border-radius: 10px;
}

.home-search-result-copy {
  min-width: 0;
}

.home-search-result-copy strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.home-search-result-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.home-search-arrow {
  color: var(--muted);
  font-size: 23px;
}

.home-search-empty {
  padding: 19px 12px;

  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

body.is-ar .home-search-result {
  text-align: right;
}
.sticky-actions.single-action {
  grid-template-columns: 1fr;
}

.sticky-actions.single-action .btn {
  width: 100%;
}
/* ========================================
   TOP CART ICON
======================================== */

.cart-icon-btn {
  position: relative;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: #141414;
  border: 1px solid var(--line);

  padding: 0;
}

.cart-top-icon {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: var(--text);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-top-badge {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--orange);
  color: #111;
  border-radius: 999px;
  border: 2px solid var(--bg);

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
/* ========================================
   FOOD CART / BASKET
======================================== */

.cart-icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: #111;
  border: 1px solid var(--line);

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.cart-basket-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Cart has items */

.cart-icon-btn.has-items {
  background: rgba(240, 138, 26, 0.10);
  border-color: rgba(240, 138, 26, 0.70);
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.08);
}

.cart-icon-btn.has-items .cart-basket-icon {
  stroke: var(--orange);
}


/* Item count */

.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;

  min-width: 21px;
  height: 21px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--orange);
  color: #111;

  border: 2px solid #080808;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
/* TABLET FULL SCREEN - FINAL OVERRIDE */
@media (min-width: 481px) and (max-width: 1400px) {
  .stage {
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .phone {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
}

/* Keep laptop/desktop as phone preview */
@media (hover: hover) and (pointer: fine) and (min-width: 481px) {
  .phone {
    width: min(430px, 100%) !important;
    max-width: 430px !important;
    border-radius: 36px !important;
    box-shadow: var(--shadow), 0 0 0 8px #2a241c !important;
  }

  .stage {
    padding: 24px 12px !important;
  }
}
/* ========================================
   CART SIZE - SAME ON ALL SCREENS
======================================== */

.cart-icon-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;

  flex: 0 0 48px;
  padding: 0 !important;

  display: grid;
  place-items: center;
}

.cart-icon-btn .cart-basket-icon {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px;
}
/* ========================================
   LIGHT THEME
======================================== */

body.light-theme {
  --bg: #f6f6f4;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #171717;
  --muted: #6f6f6f;
  --line: #e3e3df;

  background: var(--bg);
  color: var(--text);
}

body.light-theme .screen,
body.light-theme .app-shell {
  background: var(--bg);
  color: var(--text);
}

body.light-theme .icon-btn,
body.light-theme .card,
body.light-theme .panel,
body.light-theme .bottom-nav {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--text);
}
/* ========================================
   LIGHT THEME - MAIN CARDS
======================================== */

body.light-theme .cat {
  background: #ffffff;
  border-color: #e3e3df;
  color: #171717;
}

body.light-theme .more-item,
body.light-theme .account-guest-card,
body.light-theme .account-rewards-card,
body.light-theme .account-list-item,
body.light-theme .orders-empty-state,
body.light-theme .history-order-card {
  background: #ffffff;
  border-color: #e3e3df;
  color: #171717;
}

body.light-theme .more-item strong,
body.light-theme .account-guest-card h3,
body.light-theme .account-rewards-card strong,
body.light-theme .account-list-item strong,
body.light-theme .orders-empty-state h3 {
  color: #171717;
}

body.light-theme .more-item span,
body.light-theme .account-guest-card p,
body.light-theme .account-rewards-card span,
body.light-theme .account-list-item span,
body.light-theme .orders-empty-state p {
  color: #727272;
}

/* ========================================
   LIGHT THEME - CARD FIXES
======================================== */

/* MENU CATEGORY CARDS */
body.light-theme .cat,
body.light-theme .cat-photo {
  background: #ffffff !important;
  border-color: #e4e1dc !important;
  color: #171717 !important;
}

body.light-theme .cat-label {
  color: #171717 !important;
}

/* MORE PAGE */
body.light-theme .more-item {
  background: #ffffff !important;
  border-color: #e4e1dc !important;
  color: #171717 !important;
}

body.light-theme .more-item strong {
  color: #171717 !important;
}

body.light-theme .more-item span {
  color: #74706b !important;
}

body.light-theme .more-arrow {
  color: #8a857e !important;
}

/* ACCOUNT PAGE */
body.light-theme .account-guest-card,
body.light-theme .account-rewards-card,
body.light-theme .account-list-item {
  background: #ffffff !important;
  border-color: #e4e1dc !important;
  color: #171717 !important;
}

body.light-theme .account-guest-card h3,
body.light-theme .account-rewards-card strong,
body.light-theme .account-list-item strong {
  color: #171717 !important;
}

body.light-theme .account-guest-card p,
body.light-theme .account-rewards-card span,
body.light-theme .account-list-item span {
  color: #74706b !important;
}

body.light-theme .account-arrow {
  color: #8a857e !important;
}

/* ========================================
   LIGHT THEME - TOP ICON VISIBILITY
======================================== */

body.light-theme .icon-btn {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .cart-icon-btn {
  color: #171717 !important;
}

body.light-theme .cart-icon-btn.has-items {
  color: var(--orange) !important;
  border-color: rgba(240, 138, 26, 0.65) !important;
  background: rgba(240, 138, 26, 0.08) !important;
}
/* Splash always stays dark */
body.light-theme .phone:has(.splash),
body.light-theme #app:has(.splash) {
  background: #070707 !important;
}

body.light-theme .splash {
  color: #f4f1ea;
}

/* ========================================
   LIGHT THEME - SEARCH + BOTTOM NAV
======================================== */

/* HOME SEARCH BAR */
body.light-theme .home-search-box {
  background: #ffffff !important;
  border: 1px solid #dedbd6 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.light-theme .home-search-box input {
  background: transparent !important;
  color: #171717 !important;
}

body.light-theme .home-search-box input::placeholder {
  color: #85817b !important;
}

body.light-theme .home-search-icon {
  stroke: #77736d !important;
}

/* SEARCH RESULTS */
body.light-theme .home-search-results {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
}

body.light-theme .home-search-result {
  color: #171717 !important;
}

body.light-theme .home-search-result-copy strong {
  color: #171717 !important;
}

/* BOTTOM NAVIGATION */
body.light-theme .nav {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #e2dfda !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .nav button {
  color: #88847e !important;
}

body.light-theme .nav button.active {
  color: var(--orange) !important;
}

body.light-theme .nav-icon {
  stroke: currentColor !important;
}
/* BACK ARROW - EXACT SAME ON ALL DEVICES */

.back-btn {
  position: relative !important;
  padding: 0 !important;
}

.back-arrow-icon {
  position: absolute !important;

  width: 27px;
  height: 27px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -48%);

  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[dir="rtl"] .back-arrow-icon {
  transform: translate(-50%, -48%) scaleX(-1);
} 
/* ========================================
   LIGHT THEME - APPEARANCE SETTINGS
======================================== */

body.light-theme .language-setting-item {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .language-setting-item strong {
  color: #171717 !important;
}

body.light-theme .language-setting-item span {
  color: #74706b;
}

/* Selected option */
body.light-theme .language-setting-item.active {
  background: #fff7ed !important;
  border-color: var(--orange) !important;
}

body.light-theme .language-setting-item.active strong {
  color: #171717 !important;
}

body.light-theme .language-setting-item.active .language-check {
  color: var(--orange) !important;
}

html, body, button, a { touch-action: manipulation; }
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

.item-choice-group { margin: 18px 0; }
.item-choice-group h4 { margin: 0 0 10px; }
.item-choice-row { display:flex; align-items:center; gap:10px; min-height:48px; padding:10px 12px; margin:8px 0; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.item-choice-row input { width:18px; height:18px; accent-color:var(--orange); flex:0 0 auto; }
.item-choice-row span { flex:1; }
.item-choice-row small { color:var(--muted); }

/* ========================================
   LIGHT THEME - CHECKOUT, BRANCH, SUPPORT
======================================== */

/* Checkout fields and cards must follow the selected theme instead of keeping
   their old hard-coded dark backgrounds. */
body.light-theme .checkout-screen > .field,
body.light-theme .checkout-order-types,
body.light-theme .checkout-location-card,
body.light-theme .checkout-time-options button,
body.light-theme .checkout-total-card {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .checkout-screen > .field::placeholder {
  color: #85817b !important;
}

body.light-theme .checkout-section-title,
body.light-theme .checkout-location-card h4,
body.light-theme .checkout-total-card .total,
body.light-theme .checkout-total-card .total span:first-child {
  color: #171717 !important;
}

body.light-theme .checkout-location-card p,
body.light-theme .checkout-time-note,
body.light-theme .checkout-order-types button,
body.light-theme .checkout-time-options button,
body.light-theme .checkout-total-card > div:not(.total) {
  color: #74706b !important;
}

body.light-theme .checkout-order-types button.active {
  background: var(--orange) !important;
  color: #17100a !important;
}

body.light-theme .checkout-time-options button.active {
  background: #fff4e5 !important;
  border-color: var(--orange) !important;
  color: #b75e00 !important;
}

/* Branch & Contact */
body.light-theme .account-screen .branch-location,
body.light-theme .branch-card,
body.light-theme .branch-info-card {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .account-screen .branch-location:active,
body.light-theme .branch-card:active {
  background: #faf8f5 !important;
}

body.light-theme .branch-location-text strong,
body.light-theme .branch-card h3,
body.light-theme .branch-info-row strong {
  color: #171717 !important;
}

body.light-theme .branch-location-text span,
body.light-theme .branch-location-arrow,
body.light-theme .branch-card p,
body.light-theme .branch-info-row span {
  color: #74706b !important;
}

body.light-theme .branch-info-row + .branch-info-row {
  border-color: #ece9e4 !important;
}

body.light-theme .branch-action:not(.branch-action-primary):not(.branch-action-wa) {
  background: #ffffff !important;
  border-color: #d9d4cd !important;
  color: #171717 !important;
}

body.light-theme .branch-action-primary {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #17100a !important;
}

body.light-theme .branch-action-wa {
  background: #1f4933 !important;
  border-color: #2d6848 !important;
  color: #e4f8eb !important;
}

/* Help & Support and its request form */
body.light-theme .support-item {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .support-item:active {
  background: #faf8f5 !important;
  border-color: rgba(240, 138, 26, 0.55) !important;
}

body.light-theme .support-item strong,
body.light-theme .support-field-label {
  color: #171717 !important;
}

body.light-theme .support-intro,
body.light-theme .support-item div span,
body.light-theme .support-arrow {
  color: #74706b !important;
}

body.light-theme .support-icon {
  background: #fff3e3 !important;
  color: #c96800 !important;
}

body.light-theme .support-request-screen .field {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .support-request-screen .field::placeholder {
  color: #85817b !important;
}

body.light-theme .support-note {
  background: #fff7ed !important;
  border-color: #f1d5b2 !important;
  color: #6f675e !important;
}

/* ========================================
   LIGHT THEME - AUTH, PROFILE & ADDRESSES
======================================== */

/* Authentication and profile fields */
body.light-theme .mobile-field-wrap,
body.light-theme .otp-input.field,
body.light-theme .profile-setup-screen .field,
body.light-theme .add-address-screen .field {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
  caret-color: #171717;
}

body.light-theme .mobile-input.field {
  background: transparent !important;
  color: #171717 !important;
}

body.light-theme .country-code {
  color: #171717 !important;
  border-color: #dedbd6 !important;
}

body.light-theme .mobile-input.field::placeholder,
body.light-theme .otp-input.field::placeholder,
body.light-theme .profile-setup-screen .field::placeholder,
body.light-theme .add-address-screen .field::placeholder {
  color: #85817b !important;
  opacity: 1;
}

body.light-theme .mobile-field-wrap:focus-within,
body.light-theme .otp-input.field:focus,
body.light-theme .profile-setup-screen .field:focus,
body.light-theme .add-address-screen .field:focus {
  border-color: rgba(240, 138, 26, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(240, 138, 26, 0.1) !important;
}

body.light-theme .signin-label,
body.light-theme .otp-label,
body.light-theme .profile-setup-label,
body.light-theme .address-form-label,
body.light-theme .otp-intro strong {
  color: #171717 !important;
}

/* Signed-in account summary */
body.light-theme .signed-profile-card,
body.light-theme .signed-rewards-card {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .signed-profile-copy h3 {
  color: #171717 !important;
}

body.light-theme .signed-profile-copy > span,
body.light-theme .signed-profile-copy p,
body.light-theme .signed-profile-copy small,
body.light-theme .signed-reward-stat span {
  color: #74706b !important;
}

body.light-theme .signed-reward-divider {
  background: #dedbd6 !important;
}

body.light-theme .account-signout-btn {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #6f6b65 !important;
}

body.light-theme .account-signout-btn:active {
  background: #faf8f5 !important;
}

/* Saved-address empty state and saved cards */
body.light-theme .address-empty-state,
body.light-theme .saved-address-card {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #171717 !important;
}

body.light-theme .address-empty-state h3,
body.light-theme .saved-address-copy strong,
body.light-theme .saved-address-copy > span {
  color: #171717 !important;
}

body.light-theme .address-empty-state p,
body.light-theme .saved-address-copy small {
  color: #74706b !important;
}

body.light-theme .saved-address-card.is-default {
  border-color: rgba(240, 138, 26, 0.48) !important;
}

body.light-theme .saved-address-actions button {
  background: #faf8f5 !important;
  border-color: #dedbd6 !important;
  color: #6f6b65 !important;
}

body.light-theme .saved-address-actions button:first-child {
  color: #b75e00 !important;
  border-color: rgba(240, 138, 26, 0.38) !important;
}

body.light-theme .saved-address-actions .address-delete-btn {
  color: #b54d4d !important;
  border-color: rgba(181, 77, 77, 0.3) !important;
}

/* Address-type selector */
body.light-theme .address-type-toggle button {
  background: #ffffff !important;
  border-color: #dedbd6 !important;
  color: #6f6b65 !important;
}

body.light-theme .address-type-toggle button.active {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #17100a !important;
}

/* Prevent browser autofill from restoring a dark-looking field in light mode. */
body.light-theme input:-webkit-autofill,
body.light-theme input:-webkit-autofill:hover,
body.light-theme input:-webkit-autofill:focus,
body.light-theme textarea:-webkit-autofill {
  -webkit-text-fill-color: #171717 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  caret-color: #171717;
}
/* Live menu additions: retain all existing layout/theme rules above. */
.menu-status { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); font-size: 14px; line-height: 1.5; }
.menu-status .link { margin-inline-start: 8px; }
.menu-hint { color: var(--muted); padding: 12px 0; font-size: 14px; line-height: 1.5; }
.menu-subcategories { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; }
.menu-subcategories button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--text); padding: 9px 15px; font: inherit; font-size: 14px; cursor: pointer; }
.menu-subcategories button.on { background: var(--orange); border-color: var(--orange); color: #111; }
.menu-unavailable > img { opacity: .6; }
.menu-availability { color: var(--muted); display: block; font-size: 13px; margin-top: 5px; }
.add:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Responsive website mode: original mobile experience remains below 1025px. */
.desktop-nav-brand { display: none; }
.menu-items-grid { min-width: 0; }

@media (min-width: 1025px) {
  html, body { height: 100%; overflow: hidden; background: var(--bg); }
  .stage {
    width: 100%; height: 100dvh; min-height: 100dvh; padding: 0;
    background: radial-gradient(circle at 85% 10%, rgba(240,138,26,.09), transparent 28%), var(--bg);
  }
  .phone {
    width: 100%; max-width: none; height: 100dvh; min-height: 100dvh;
    max-height: none; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  }
  #app {
    display: grid; grid-template-columns: 224px minmax(0,1fr);
    grid-template-areas: "nav content"; height: 100dvh; overflow: hidden;
  }
  #app > .screen {
    grid-area: content; width: 100%; max-width: 1320px; margin: 0 auto;
    padding: 34px clamp(34px,5vw,76px) 50px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  #app > .screen::-webkit-scrollbar { display: block; width: 8px; }
  #app > .screen::-webkit-scrollbar-thumb { background: var(--line); border-radius: 20px; }
  .nav {
    grid-area: nav; width: 224px; height: 100dvh; padding: 24px 14px;
    border-top: 0; border-inline-end: 1px solid var(--line);
    background: rgba(14,14,14,.98); display: flex; flex-direction: column;
    align-items: stretch; gap: 7px; z-index: 20;
  }
  .desktop-nav-brand {
    display: flex; align-items: center; gap: 11px; min-height: 70px;
    padding: 5px 8px 22px; margin-bottom: 9px; border-bottom: 1px solid var(--line);
  }
  .desktop-nav-brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
  .desktop-nav-brand div { min-width: 0; }
  .desktop-nav-brand strong { display: block; color: var(--text); font-size: 15px; line-height: 1.25; }
  .desktop-nav-brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
  .nav button {
    width: 100%; min-height: 48px; padding: 0 15px; border-radius: 12px;
    flex-direction: row; justify-content: flex-start; gap: 13px; font-size: 14px;
  }
  .nav button.active { background: rgba(240,138,26,.11); }
  .nav button.active::before {
    top: 50%; inset-inline-start: 0; width: 3px; height: 24px; transform: translateY(-50%);
  }
  .nav-icon { width: 21px; height: 21px; }
  .nav-label { font-size: 14px; line-height: 1; }
  #app:has(.splash) { display: block; }
  #app:has(.splash) .splash {
    width: 100%; min-height: 100dvh; padding: 60px max(8vw,80px); background-position: center 58%;
  }
  #app:has(.splash) .splash > * { max-width: 460px; }
  #app:has(.splash) .splash-brand-logo { width: min(360px,42vw); }
  .topbar { margin-bottom: 22px; }
  .topbar h2 { font-size: 28px; }
  .home-topbar { min-height: 66px; }
  .home-brand-logo { width: 118px; }
  .home-search-wrap, .mode-note { max-width: 720px; }
  .home-order-toggle { max-width: 560px; }
  .banner {
    min-height: 250px; padding: 40px; border-radius: 24px; background-position: center 54%;
  }
  .banner h2 { max-width: 520px; font-size: 38px; }
  .scroll { gap: 16px; padding-bottom: 14px; }
  .special-card { min-width: 224px; width: 224px; }
  .special-card img { height: 142px; }
  .special-card h4, .special-card strong { font-size: 16px; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
  .cat-photo { padding: 9px 9px 14px; border-radius: 19px; }
  .cat-photo img { aspect-ratio: 16/9; }
  .cat-photo .cat-label, .cat-photo { font-size: 16px; }
  .menu-subcategories { gap: 10px; padding-bottom: 20px; }
  .menu-items-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .menu-items-grid .item { margin-bottom: 0; min-height: 126px; padding: 14px; }
  .menu-items-grid .item img { width: 98px; height: 98px; }
  .menu-items-grid .item h4 { font-size: 17px; }
  .menu-items-grid .item p { font-size: 14px; }
  .detail-screen, .cart-screen, .checkout-screen, .account-screen,
  .new-account-screen, .feedback-screen, .branch-screen, .support-screen,
  .support-request-screen { max-width: 980px !important; }
  .detail-screen .hero-img {
    width: 100%; height: clamp(300px,42vh,470px); border-radius: 24px; object-fit: cover;
  }
  .cart-line { padding: 14px; }
  .checkout-order-types, .checkout-time-options { max-width: 720px; }
  body.light-theme .nav {
    background: rgba(255,255,255,.98) !important; border-top: 0 !important;
    border-inline-end: 1px solid #e2dfda !important; box-shadow: 5px 0 20px rgba(0,0,0,.04);
  }
  body.light-theme .desktop-nav-brand { border-color: #e2dfda; }
  body.light-theme .desktop-nav-brand strong { color: #171717; }
  body.light-theme .nav button.active { background: rgba(240,138,26,.09); }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  #app { grid-template-columns: 190px minmax(0,1fr); }
  .nav { width: 190px; }
  #app > .screen { padding-inline: 32px; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .menu-items-grid { grid-template-columns: 1fr; }
}

/* Final desktop override for the older device-preview rules above. */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .stage {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .phone {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
/* Splash: center tagline and buttons on every screen size */
#app .splash > p,
#app .splash > .btn {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
}

/* Checkout: clear restaurant closed state */
.restaurant-closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255, 181, 71, .58);
  border-radius: 16px;
  background: rgba(255, 164, 28, .13);
  color: #fff4df;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}
.restaurant-closed-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2a528;
  color: #17120a;
  font-size: 20px;
  font-weight: 900;
}
.restaurant-closed-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.restaurant-closed-notice p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
}
.checkout-place-order:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.15);
}
body.light-theme .restaurant-closed-notice {
  border-color: #e6a13c;
  background: #fff3df;
  color: #5a3510;
  box-shadow: 0 10px 26px rgba(108, 66, 15, .08);
}

/* Orders and live tracking in light theme */
body.light-theme .orders-tabs {
  background: #ebe9e5;
  border-color: #dedbd5;
}
body.light-theme .orders-tabs button {
  color: #68645e;
}
body.light-theme .orders-tabs button.active {
  background: var(--orange);
  color: #17120b;
  box-shadow: 0 3px 10px rgba(240, 138, 26, .2);
}
body.light-theme .active-order-card,
body.light-theme .history-order-card {
  background: #ffffff;
  border-color: #e1ded8;
  color: #171717;
  box-shadow: 0 10px 28px rgba(40, 34, 26, .06);
}
body.light-theme .active-order-head,
body.light-theme .active-order-items,
body.light-theme .history-order-top {
  border-color: #e8e5df;
}
body.light-theme .active-order-head > div > span,
body.light-theme .active-order-items h4,
body.light-theme .history-order-top > div > span,
body.light-theme .history-order-meta > span {
  color: #77716a;
}
body.light-theme .active-order-head > div > strong,
body.light-theme .active-order-item,
body.light-theme .history-order-top strong {
  color: #171717;
}
body.light-theme .order-step:not(:last-child)::after {
  background: #ddd9d2;
}
body.light-theme .order-step-dot {
  background: #ffffff;
  border-color: #bdb8b0;
}
body.light-theme .order-step-copy strong {
  color: #827d75;
}
body.light-theme .order-step.done .order-step-copy strong {
  color: #292622;
}
body.light-theme .history-order-meta > span:not(:last-of-type)::after {
  color: #aaa49b;
}
body.light-theme .history-status {
  background: #e9f8ef;
  border-color: #b9e6c9;
  color: #23824d;
}
body.light-theme .history-reorder-btn,
body.light-theme .orders-call-btn {
  background: #fffaf2;
  border-color: rgba(240, 138, 26, .38);
  color: #a85608;
}

/* Explicit delivery destination selector, mobile and desktop. */
#delivery-pin-map{height:340px;min-height:280px;width:100%;border-radius:18px;overflow:hidden;margin:14px 0;background:var(--bg-2,#eee)}
.delivery-pin-form{display:grid;gap:12px}.delivery-pin-form button{min-height:48px}#delivery-pin-status{overflow-wrap:anywhere}#delivery-place-search>*{width:100%}

/* Batch V2: choice title, badge, note; Add to Cart no longer covers the spice buttons */
.item-choice-group h4 .choice-required { font-size:12px; font-weight:600; color:var(--orange); border:1px solid var(--orange); border-radius:999px; padding:2px 8px; margin-inline-start:6px; vertical-align:middle; }
.choice-badge { font-style:normal; font-size:11px; font-weight:700; color:#fff; background:var(--orange); border-radius:999px; padding:2px 8px; margin-inline-start:6px; white-space:nowrap; }
.item-choice-row .choice-note { display:block; margin-top:3px; font-size:12px; line-height:1.4; }
.detail-screen .sticky-actions { bottom:0; margin-top:8px; padding:10px 0 12px; background:var(--bg); box-shadow:0 -14px 14px -6px var(--bg); }

/* Batch D: remove the applied code */
.coupon-applied { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 14px; margin:8px 0; border:1px solid var(--orange); border-radius:12px; }
.coupon-applied-text { color:var(--orange); font-weight:600; }

/* Batch N: focused steps keep the navigation only on a wide screen */
@media (max-width: 1024px) { .nav.nav-wide-only { display: none; } }

/* Gate 4: Turnstile challenge box (empty until the challenge needs a click). */
.captcha-box { min-height: 0; margin: 12px 0; display: flex; justify-content: center; }
.captcha-box:empty { margin: 0; }
.captcha-floating { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 60; pointer-events: none; }
.captcha-floating > * { pointer-events: auto; }
