/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --ink: #1a1f2e;
  --muted: #8c929e;
  --line: #eceef1;
  --orange: #ff6845;
  --orange-mid: #ff8c6e;
  --orange-soft: #fff1ed;
  --orange-glow: rgba(255,104,69,.18);
  --navy: #1e2335;
  --navy2: #272d42;
  --bg: #f5f6fa;
  --white: #ffffff;
  --green: #3fa278;
  --green-soft: #eaf7f0;
  --shadow-sm: 0 2px 10px rgba(26,31,46,.06);
  --shadow: 0 18px 45px rgba(26,31,46,.10);
  --shadow-lg: 0 28px 70px rgba(26,31,46,.16);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 244px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 "DM Sans", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }

/* ── App shell ───────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 28px 16px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  box-shadow: 2px 0 20px rgba(26,31,46,.04);
  transition: left var(--transition);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font: 800 21px "Plus Jakarta Sans", sans-serif;
  padding: 0 10px 44px;
  letter-spacing: -.8px;
}
.brand span span { color: var(--orange); }
.brand-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff6845, #ff9f6e);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 6px 16px var(--orange-glow);
}

/* nav labels */
.side-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #c2c6cf;
  font-weight: 700;
  margin: 0 10px 10px;
  text-transform: uppercase;
}

/* nav items */
.main-nav { margin-bottom: 28px; }
.nav-item {
  height: 42px;
  margin-bottom: 3px;
  padding: 0 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8d929f;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13.5px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-item:hover { background: var(--orange-soft); color: var(--orange); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, #fff1ed, #ffe8e0);
  color: var(--orange);
  font-weight: 700;
}
.nav-item.active::before { opacity: 1; }
.nav-icon { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-count {
  margin-left: auto;
  background: linear-gradient(135deg, #ff6845, #ff9f6e);
  color: white;
  font-size: 9px;
  border-radius: 20px;
  padding: 3px 7px;
  font-weight: 700;
}

/* help box */
.sidebar-help {
  margin-top: auto;
  background: linear-gradient(135deg, #fff8f5, #fff1ed);
  border-radius: 12px;
  padding: 16px 14px 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffddd4;
}
.sidebar-help::after {
  content: "";
  position: absolute;
  background: rgba(255,104,69,.12);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  right: -38px;
  top: -36px;
}
.help-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd6ca, #ffb8a4);
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
}
.sidebar-help strong { font-size: 12px; }
.sidebar-help p { color: #9699a0; font-size: 11px; margin: 5px 0 12px; line-height: 1.5; }
.link-button { color: var(--orange); font-weight: 700; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.link-button span { font-size: 15px; }

/* user card */
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 18px 4px 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fac9b2, #f5a88c);
  color: #7a3d24;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 4px 10px rgba(250,100,50,.2);
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.user-info strong { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { color: #adb0b8; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { color: #c0c3cc; letter-spacing: 2px; font-size: 11px; cursor: pointer; }
.auth-link {
  color: #b2b6bf;
  font-size: 10px;
  text-align: center;
  margin-top: 10px;
  display: block;
  transition: color var(--transition);
}
.auth-link:hover { color: var(--orange); }

/* ── Main content ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  max-width: 1420px;
  padding: 0 44px 60px;
}

/* topbar */
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(245,246,250,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 4;
  margin: 0 -44px;
  padding: 0 44px;
}
.breadcrumbs { color: #b2b5bc; font-size: 12px; }
.breadcrumbs span { padding: 0 10px; color: #d0d2d6; }
.breadcrumbs b { color: #3d4456; }
.top-actions { display: flex; align-items: center; gap: 18px; }

.icon-button {
  font-size: 21px;
  color: #8f939f;
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}
.icon-button:hover { background: var(--orange-soft); color: var(--orange); }
.notification i {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 6px;
  top: 6px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .8; }
}

.cart-button {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(26,31,46,.22);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cart-button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,31,46,.3); }
.cart-button span { font-size: 16px; }
.cart-button b {
  background: linear-gradient(135deg, var(--orange), #ff9f6e);
  border-radius: 50%;
  font-size: 9px;
  padding: 3px 6px;
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

/* ── Welcome section ─────────────────────────────────────────── */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px 0 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #b0b4bd;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.welcome-section h1 {
  font: 800 32px "Plus Jakarta Sans", sans-serif;
  letter-spacing: -1.3px;
  margin-bottom: 8px;
  line-height: 1.1;
}
.welcome-section h1 span { color: var(--orange); font-size: 24px; }
.muted { color: #9ea3ac; font-size: 13px; }

.location-pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--orange);
  font-size: 17px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.location-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #ffd3c9; }
.location-pill span { color: #a5a8b0; font-size: 11px; }
.location-pill strong { font-size: 11px; color: #3d4252; }
.location-pill b { font-size: 14px; color: #9ea3ac; }

/* ── Search ──────────────────────────────────────────────────── */
.search-wrap { display: flex; gap: 12px; margin-bottom: 36px; }
.search-box {
  background: var(--white);
  border: 1.5px solid var(--line);
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex: 1;
  max-width: 660px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.search-box > span { font-size: 24px; color: #9ea3af; line-height: 0; margin-right: 12px; transform: rotate(-20deg); flex-shrink: 0; }
.search-box input { border: 0; outline: 0; flex: 1; color: var(--ink); font-size: 13px; background: transparent; }
.search-box input::placeholder { color: #b8bcc6; }
.search-box kbd {
  font-size: 10px;
  color: #b8bcc6;
  border: 1px solid #e0e2e7;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f8f9fb;
  white-space: nowrap;
}
.filter-button {
  height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  color: #7e8390;
  background: var(--white);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.filter-button:hover { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow); }
.filter-button b { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ── Section headings ────────────────────────────────────────── */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 { font: 700 18px "Plus Jakarta Sans", sans-serif; letter-spacing: -.5px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.text-button, .section-heading > a {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.text-button:hover, .section-heading > a:hover { gap: 8px; }
.text-button span, .section-heading > a span { font-size: 15px; }

/* ── Category pills ──────────────────────────────────────────── */
.categories { margin-bottom: 36px; }
.category-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }
.category {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  width: 88px;
  height: 86px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.category:hover {
  background: var(--orange-soft);
  border-color: #ffd3c9;
  color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--orange-glow);
}
.category.active {
  background: linear-gradient(135deg, var(--orange), #ff9f6e);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--orange-glow);
}
.category.active .category-emoji { filter: none; }
.category-emoji { font-size: 26px; height: 30px; display: flex; align-items: center; }
.category strong { font-size: 10.5px; font-weight: 700; }

/* ── Restaurant cards ────────────────────────────────────────── */
.restaurant-section { margin-bottom: 36px; }
.restaurant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.restaurant-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eeeff2;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.food-image {
  height: 160px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.food-image::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  top: -70px;
  right: -30px;
}
.food-image::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  bottom: -30px;
  left: -20px;
}
.food-image .food-art {
  font-size: 82px;
  filter: drop-shadow(0 14px 12px rgba(0,0,0,.18));
  z-index: 1;
  transition: transform var(--transition);
}
.restaurant-card:hover .food-art { transform: scale(1.08) rotate(-5deg); }

/* image color variants (kept for fallback) */
.image-1 { background: linear-gradient(135deg, #f5b48a, #ee8562); }
.image-2 { background: linear-gradient(135deg, #f3d06a, #e8b840); }
.image-3 { background: linear-gradient(135deg, #8fc9a4, #5db380); }
.image-4 { background: linear-gradient(135deg, #e8a49a, #d97870); }
.image-5 { background: linear-gradient(135deg, #c4a8e0, #9c72cf); }
.image-6 { background: linear-gradient(135deg, #f0c87c, #e0a94e); }

/* ── Real-photo card image ───────────────────────────────────── */
.food-image-real {
  height: 175px;
  position: relative;
  overflow: hidden;
}
.food-image-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.restaurant-card:hover .food-image-real img { transform: scale(1.07); }
.food-image-real::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,18,32,.45) 0%, transparent 55%);
  pointer-events: none;
}

/* delivery time badge overlay */
.card-time-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  z-index: 2;
}
html.dark .card-time-badge { background: rgba(28,33,48,.92); color: #e8eaf0; }


.heart-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #9ea3b0;
  font-size: 16px;
  z-index: 2;
  transition: color var(--transition), transform var(--transition), background var(--transition);
  display: grid;
  place-items: center;
}
.heart-button:hover { transform: scale(1.15); }
.heart-button.liked { color: #e84040; background: rgba(255,255,255,.95); }

.card-info { padding: 14px 14px 13px; }
.card-info h3 {
  font: 700 13.5px "Plus Jakarta Sans", sans-serif;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta { display: flex; gap: 7px; align-items: center; color: #9ea3ac; font-size: 10.5px; }
.rating { color: #eaa228; font-weight: 700; }
.dot { font-size: 7px; color: #d8dadf; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f2f3f5;
  margin-top: 12px;
  padding-top: 10px;
  color: #9da2aa;
  font-size: 10.5px;
}
.card-footer strong { color: #565c6c; font-size: 10.5px; }
.add-button {
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.add-button:hover {
  background: var(--orange);
  color: white;
  transform: scale(1.12);
  box-shadow: 0 6px 16px var(--orange-glow);
}

/* ── Promo banner ────────────────────────────────────────────── */
.promo-banner {
  height: 200px;
  background: linear-gradient(120deg, #1e2335 0%, #2e3448 60%, #3c4460 100%);
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  position: relative;
  color: white;
  margin-top: 4px;
}
.promo-copy { padding: 32px 36px; z-index: 1; }
.promo-tag {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #ff9f87;
  font-weight: 700;
  text-transform: uppercase;
}
.promo-copy h2 { font: 700 22px "Plus Jakarta Sans", sans-serif; margin: 10px 0 6px; line-height: 1.2; }
.promo-copy p { color: #afb4c0; font-size: 11.5px; margin-bottom: 20px; }
.promo-copy p strong { color: #fff; }

.primary-button {
  background: linear-gradient(135deg, var(--orange), #ff8c6e);
  color: white;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--orange-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 0;
  cursor: pointer;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,104,69,.36); }
.primary-button span { font-size: 15px; }

/* promo art */
.promo-art {
  margin-left: auto;
  position: relative;
  width: 42%;
  background: linear-gradient(115deg, #2b3148 0%, #4a5068 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.sun {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #e06e3a 0%, #c85030 100%);
  right: 40px;
  top: 16px;
  opacity: .85;
  animation: sun-pulse 4s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.04); opacity: .9; }
}
.plate {
  position: absolute;
  font-size: 90px;
  right: 68px;
  top: 40px;
  filter: drop-shadow(0 18px 14px rgba(0,0,0,.3));
  transform: rotate(-12deg);
  animation: plate-float 3s ease-in-out infinite;
}
@keyframes plate-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-8px); }
}
.spark { position: absolute; color: #ff9478; }
.s1 { right: 30px; top: 28px; font-size: 16px; animation: spark-blink 2s ease-in-out infinite; }
.s2 { right: 170px; bottom: 28px; font-size: 11px; animation: spark-blink 2s ease-in-out infinite .8s; }
@keyframes spark-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.7); }
}

/* ── Cart drawer ─────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 12;
  box-shadow: -12px 0 50px rgba(26,31,46,.12);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,25,44,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.visible { opacity: 1; visibility: visible; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 4px;
}
.drawer-header h2 { font: 700 18px "Plus Jakarta Sans", sans-serif; margin: 4px 0 0; }
.drawer-header h2 span { font: 400 12px "DM Sans", sans-serif; color: #a5a9b2; }
.close-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f5f6fa;
  color: #8e929e;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}
.close-button:hover { background: #ffe8e0; color: var(--orange); }

.cart-items { overflow-y: auto; flex: 1; padding: 10px 0; scrollbar-width: thin; }
.empty-cart { text-align: center; margin-top: 100px; color: #9da2aa; }
.empty-cart div { font-size: 48px; margin-bottom: 14px; }
.empty-cart strong { color: #3e4558; font-size: 15px; display: block; margin-bottom: 6px; }
.empty-cart p { font-size: 12px; line-height: 1.5; }

.cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f2f3f5;
}
.cart-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-info strong { font-size: 12.5px; display: block; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row-info small { color: #a1a5ad; font-size: 11px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
  width: 24px;
  height: 24px;
  border: 1.5px solid #eceef0;
  border-radius: 6px;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background var(--transition), border-color var(--transition);
}
.qty-control button:hover { background: var(--orange-soft); border-color: #ffd3c9; }
.qty-control span { font-size: 12px; font-weight: 700; min-width: 14px; text-align: center; }
.remove-item { font-size: 18px; color: #c0c3cc; transition: color var(--transition); }
.remove-item:hover { color: #d34e3c; }

.cart-summary { border-top: 1px solid var(--line); padding-top: 14px; }
.cart-summary > div { display: flex; justify-content: space-between; color: #989ca5; font-size: 12px; margin: 9px 0; }
.cart-summary .total { color: var(--ink); font-size: 15px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.checkout-button { width: 100%; margin-top: 12px; justify-content: center; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--navy);
  color: white;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .28s, transform .28s;
  z-index: 20;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(26,31,46,.28);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Mobile menu ─────────────────────────────────────────────── */
.mobile-menu { display: none; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,25,44,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 30;
  transition: opacity .22s, visibility .22s;
  padding: 18px;
}
.modal-backdrop.visible { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: 18px;
  width: min(470px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in {
  from { transform: scale(.94) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f5f6fa;
  color: #9da1aa;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: #ffe8e0; color: var(--orange); }
.modal h2 { font: 700 20px "Plus Jakarta Sans", sans-serif; margin-bottom: 6px; }
.modal > p { color: #999da6; font-size: 12px; line-height: 1.6; }

.modal-form { display: grid; gap: 14px; margin-top: 20px; }
.modal-form label { display: grid; gap: 6px; color: #565c70; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.modal-form input,
.modal-form textarea,
.modal-form select {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  outline: 0;
  color: var(--ink);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 13px;
}
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.modal-form .primary-button { margin-top: 4px; }

.modal-list { display: grid; gap: 10px; margin-top: 18px; }
.modal-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #fafbfc;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.modal-list-item:hover { box-shadow: var(--shadow-sm); }
.modal-list-item small { display: block; color: #a1a5ad; margin-top: 4px; line-height: 1.5; }

.status-pill {
  color: var(--green);
  background: var(--green-soft);
  border-radius: 20px;
  padding: 5px 10px;
  height: max-content;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* settings */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.switch {
  width: 40px;
  height: 22px;
  border-radius: 20px;
  background: #d7dae0;
  padding: 3px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.switch::after {
  content: "";
  display: block;
  background: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.switch.on { background: var(--orange); }
.switch.on::after { transform: translateX(18px); }

/* notifications */
.notification-pop {
  position: absolute;
  right: 20px;
  top: 66px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  width: 240px;
  z-index: 8;
  display: none;
}
.notification-pop.visible { display: block; animation: modal-in .18s ease; }
.notification-pop strong { font-size: 12px; }
.notification-pop p { font-size: 11px; color: #999; margin: 8px 0 0; line-height: 1.5; }

/* profile */
.profile-head { display: flex; gap: 14px; align-items: center; margin: 16px 0; }
.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fac9b2, #f5a88c);
  color: #7a3d24;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(250,100,50,.2);
  flex-shrink: 0;
}

/* ── Responsive: tablet ──────────────────────────────────────── */
@media (max-width: 1060px) {
  .main-content { padding-left: 28px; padding-right: 28px; }
  .topbar { margin: 0 -28px; padding: 0 28px; }
  .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
  :root { --sidebar-w: 210px; }
}

/* ── Responsive: mobile ──────────────────────────────────────── */
@media (max-width: 700px) {
  .sidebar { left: -260px; transition: left .28s cubic-bezier(.4,0,.2,1); box-shadow: none; }
  .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; width: 100%; padding: 0 18px 40px; }
  .topbar { margin: 0 -18px; padding: 0 18px; height: 64px; }
  .mobile-menu { display: grid; place-items: center; font-size: 22px; color: #777; margin-right: 12px; width: 36px; height: 36px; border-radius: 9px; }
  .mobile-menu:hover { background: var(--orange-soft); color: var(--orange); }
  .breadcrumbs { margin-right: auto; }
  .top-actions { gap: 10px; }
  .icon-button { display: none; }
  .cart-button { padding: 10px 12px; }
  .welcome-section { display: block; padding: 26px 0 20px; }
  .welcome-section h1 { font-size: 26px; }
  .location-pill { display: inline-flex; margin-top: 18px; }
  .search-wrap { margin-bottom: 28px; }
  .search-box kbd { display: none; }
  .filter-button span { display: none; }
  .filter-button { width: 50px; padding: 0; justify-content: center; }
  .restaurant-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .food-image { height: 130px; }
  .food-image .food-art { font-size: 64px; }
  .card-info { padding: 11px 11px 10px; }
  .card-info h3 { font-size: 11.5px; }
  .card-meta { font-size: 9.5px; gap: 4px; }
  .promo-banner { height: 185px; }
  .promo-copy { padding: 24px 20px; }
  .promo-copy h2 { font-size: 17px; max-width: 180px; }
  .promo-art { width: 38%; }
  .plate { font-size: 60px; right: 22px; top: 55px; }
  .sun { width: 120px; height: 120px; right: -10px; top: 38px; }
}
@media (max-width: 400px) {
  .restaurant-grid { grid-template-columns: 1fr; }
  .food-image { height: 160px; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE
════════════════════════════════════════════════════════════ */
html.dark {
  --ink: #e8eaf0;
  --muted: #7a8094;
  --line: #2a2f42;
  --bg: #141824;
  --white: #1c2130;
  --orange-soft: #2a1f1a;
  --green-soft: #142518;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
  --shadow: 0 18px 45px rgba(0,0,0,.38);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.5);
}
html.dark body { background: var(--bg); color: var(--ink); }
html.dark .sidebar { background: var(--white); border-right-color: var(--line); }
html.dark .topbar { background: rgba(20,24,36,.88); border-bottom-color: var(--line); }
html.dark .restaurant-card,
html.dark .category,
html.dark .search-box,
html.dark .filter-button,
html.dark .location-pill { background: var(--white); border-color: var(--line); }
html.dark .search-box > span,
html.dark .filter-button { color: #6a7088; }
html.dark .card-footer { border-top-color: var(--line); }
html.dark .card-info h3 { color: var(--ink); }
html.dark .promo-banner { background: linear-gradient(120deg, #10131d, #1a1f30 60%, #22283c 100%); }
html.dark .modal { background: #1c2130; color: var(--ink); }
html.dark .modal-close { background: #252c40; }
html.dark .modal-form input,
html.dark .modal-form textarea,
html.dark .modal-form select { background: #252c40; border-color: var(--line); color: var(--ink); }
html.dark .modal-list-item { background: #252c40; border-color: var(--line); }
html.dark .sidebar-help { background: linear-gradient(135deg, #1e1814, #241e19); border-color: #3a2820; }
html.dark .cart-drawer { background: var(--white); }
html.dark .drawer-header { border-bottom-color: var(--line); }
html.dark .cart-summary { border-top-color: var(--line); }
html.dark .cart-row { border-bottom-color: var(--line); }
html.dark .empty-cart strong { color: #a0a8c0; }
html.dark .setting-row { border-bottom-color: var(--line); }
html.dark .notification-pop { background: #1c2130; border-color: var(--line); }
html.dark .mob-nav { background: #1c2130; border-top-color: var(--line); }
html.dark .mob-nav-btn { color: #6a7088; }
html.dark .mob-nav-btn.active { color: var(--orange); }

/* ════════════════════════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton-line,
.skeleton-img,
.skeleton-art,
.skeleton-circle {
  background: linear-gradient(90deg, #e8eaef 25%, #f5f6fa 50%, #e8eaef 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
html.dark .skeleton-line,
html.dark .skeleton-img,
html.dark .skeleton-art,
html.dark .skeleton-circle {
  background: linear-gradient(90deg, #252c40 25%, #2e3550 50%, #252c40 75%);
  background-size: 1200px 100%;
}
.skeleton-img  { width: 100%; height: 160px; border-radius: 0; }
.skeleton-art  { width: 100%; height: 126px; border-radius: 0; }
.skeleton-circle { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line.w30 { width: 30%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w90 { width: 90%; }

/* ════════════════════════════════════════════════════════════
   CART BADGE BOUNCE
════════════════════════════════════════════════════════════ */
@keyframes badge-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.6); }
  60%  { transform: scale(.85); }
  80%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.cart-button b.bounce { animation: badge-bounce .45s cubic-bezier(.36,.07,.19,.97); }

/* ════════════════════════════════════════════════════════════
   RIPPLE EFFECT
════════════════════════════════════════════════════════════ */
.ripple-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out .5s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR
════════════════════════════════════════════════════════════ */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--white);
  border-top: 1px solid var(--line);
  z-index: 6;
  padding: 0 10px;
  box-shadow: 0 -4px 20px rgba(26,31,46,.08);
  align-items: center;
  justify-content: space-around;
  safe-area-inset-bottom: env(safe-area-inset-bottom);
}
.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9ea3b0;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
  position: relative;
  min-width: 52px;
  border: 0;
  background: none;
  cursor: pointer;
}
.mob-nav-btn .mob-icon { font-size: 20px; line-height: 1; }
.mob-nav-btn.active { color: var(--orange); }
.mob-nav-btn.active .mob-icon { filter: drop-shadow(0 0 6px rgba(255,104,69,.4)); }
.mob-nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--orange);
  color: white;
  font-size: 8px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}
@media (max-width: 700px) {
  .mob-nav { display: flex; }
  /* push content above bottom nav */
  .main-content { padding-bottom: 80px; }
}

/* ════════════════════════════════════════════════════════════
   ORDER PROGRESS TRACKER
════════════════════════════════════════════════════════════ */
.tracker {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 20px;
}
.tracker-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
  color: #b0b4be;
  font-size: 13px;
}
.tracker-step:last-child { padding-bottom: 0; }
.tracker-step::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  width: 2px;
  height: calc(100% - 10px);
  background: #e5e7ed;
  transition: background .4s;
}
.tracker-step:last-child::before { display: none; }
.tracker-step.done::before { background: var(--green); }
.tracker-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #dde0e8;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--white);
  color: #b0b4be;
  transition: border-color .3s, background .3s, color .3s;
  z-index: 1;
}
.tracker-step.done .tracker-dot {
  border-color: var(--green);
  background: var(--green);
  color: white;
  box-shadow: 0 4px 12px rgba(63,162,120,.35);
}
.tracker-step.current .tracker-dot {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  box-shadow: 0 4px 12px var(--orange-glow);
  animation: tracker-pulse 1.6s ease-in-out infinite;
}
.tracker-step.current { color: var(--ink); font-weight: 600; }
.tracker-step.done    { color: #6a7085; }
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 4px 12px var(--orange-glow); }
  50%       { box-shadow: 0 4px 22px rgba(255,104,69,.45); }
}
.tracker-eta {
  background: var(--orange-soft);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #7a4030;
  border: 1px solid #ffd3c9;
}
html.dark .tracker-eta { background: #2a1f1a; color: #e09a80; border-color: #3a2820; }
html.dark .tracker-dot { background: #252c40; border-color: #3a3f56; }
html.dark .tracker-step::before { background: #2e3550; }

/* ════════════════════════════════════════════════════════════
   IMPROVED NOTIFICATION PANEL
════════════════════════════════════════════════════════════ */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.notif-badge {
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: 0; }
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.notif-item strong { font-size: 12px; display: block; margin-bottom: 3px; }
.notif-item p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   IMPROVED EMPTY STATE
════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}
.empty-icon { font-size: 58px; margin-bottom: 16px; }
.empty-state h3 { font: 700 17px "Plus Jakarta Sans", sans-serif; color: var(--ink); margin-bottom: 8px; }
.empty-state p  { font-size: 13px; max-width: 280px; margin: 0 auto; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   SAVED ADDRESS PILLS (location modal)
════════════════════════════════════════════════════════════ */
.saved-addresses { display: flex; flex-direction: column; gap: 8px; }
.address-pill {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: #5a6075;
}
.address-pill:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.address-pill.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   ORDER PLACED STATUS PILL VARIANT
════════════════════════════════════════════════════════════ */
.status-placed { color: var(--orange); background: var(--orange-soft); }

/* ════════════════════════════════════════════════════════════
   PREFERS REDUCED MOTION
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ════════════════════════════════════════════════════════════
   API STATUS PILL
════════════════════════════════════════════════════════════ */
.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--line);
  color: var(--muted);
  transition: all var(--transition);
}
.api-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
}
.api-status-pill.online {
  background: #eaf7f0;
  color: #2b825b;
  border: 1px solid rgba(63, 162, 120, 0.3);
}
.api-status-pill.online .status-dot {
  background: #3fa278;
  box-shadow: 0 0 8px #3fa278;
  animation: pulse-dot 1.5s infinite;
}
.api-status-pill.offline {
  background: #fff8eb;
  color: #b27b16;
  border: 1px solid rgba(229, 152, 25, 0.3);
}
.api-status-pill.offline .status-dot {
  background: #e59819;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ════════════════════════════════════════════════════════════
   ACCOUNT SWITCHER MODAL
════════════════════════════════════════════════════════════ */
.account-switch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-switch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.account-switch-card:hover,
.account-switch-card.active-account {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* ════════════════════════════════════════════════════════════
   LIVE ORDER TRACKER MODAL & MAP
════════════════════════════════════════════════════════════ */
.live-tracker-wrapper { padding: 4px 0; }
.status-pill.status-delivered { background: #eaf7f0; color: #3fa278; }
.status-pill.status-cancelled { background: #fdeeee; color: #d04040; }
.route-map-card {
  background: linear-gradient(180deg, #1b2234 0%, #151a29 100%);
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  margin: 14px 0 18px;
  box-shadow: 0 10px 30px rgba(14, 20, 36, 0.25);
  position: relative;
  overflow: hidden;
}
.map-backdrop {
  position: relative;
  height: 110px;
  margin-bottom: 12px;
}
.route-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.route-track-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}
.route-track-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
}
.map-pin.rest-pin { left: 16px; }
.map-pin.home-pin { right: 16px; }
.map-pin span {
  display: block;
  font-size: 26px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.map-pin small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}
.map-scooter {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -60%);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.scooter-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ffa07a);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255, 104, 69, 0.6);
}
.scooter-bubble.pulsing {
  animation: scooter-bounce 1s infinite alternate;
}
@keyframes scooter-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
.live-eta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}
.eta-clock {
  font: 800 19px "Plus Jakarta Sans", sans-serif;
  color: #ff9f6e;
  letter-spacing: -0.5px;
  margin-top: 2px;
}
.tracker-steps-horizontal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
  margin-bottom: 18px;
}
.step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  transition: all 0.3s;
}
.step-col.step-done .step-circle {
  background: #3fa278;
  border-color: #3fa278;
  color: white;
}
.step-col.step-current .step-circle {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
  animation: tracker-pulse 1.6s infinite;
}
.step-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.step-col.step-done .step-name,
.step-col.step-current .step-name {
  color: var(--ink);
}
.driver-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.driver-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2b334a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.driver-btn {
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: all .2s;
}
.driver-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.order-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.track-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  color: white;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px var(--orange-glow);
  transition: all .2s;
}
.track-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px var(--orange-glow);
}
.reorder-btn {
  background: var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.reorder-btn:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

/* ── World Cuisine & Country Explorer ──────────────────────── */
.world-explorer-section {
  margin-bottom: 28px;
}
.world-flags-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
}
.world-flags-scroll::-webkit-scrollbar {
  height: 6px;
}
.world-flags-scroll::-webkit-scrollbar-thumb {
  background: #dcdfe6;
  border-radius: 4px;
}
.country-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.country-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--orange-glow);
}
.country-pill.active {
  background: linear-gradient(135deg, var(--orange), #ff9f6e);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px var(--orange-glow);
}
.country-flag {
  font-size: 18px;
  line-height: 1;
}

/* ── Origin & Dietary Badges on Cards ───────────────────────── */
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4ff;
  color: #3b66cf;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 6px;
}
.card-origin-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e2335;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}
.diet-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.diet-badge.veg {
  background: #eaf7f0;
  color: #2e8b60;
}
.diet-badge.nonveg {
  background: #fdf0f0;
  color: #cf3b3b;
}
.diet-badge.vegan {
  background: #edf8e9;
  color: #228b22;
}
.spice-badge {
  font-size: 11px;
  margin-left: 4px;
}

/* Dark mode adjustments */
html.dark .country-pill {
  background: var(--navy2);
  border-color: rgba(255,255,255,0.08);
  color: #e2e8f0;
}
html.dark .country-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
html.dark .country-pill.active {
  background: linear-gradient(135deg, var(--orange), #ff9f6e);
  color: white;
}
html.dark .card-origin-pill {
  background: rgba(30, 35, 53, 0.92);
  color: #f1f5f9;
}



