/* ============================================
   ASHWINI AMRUTTULYA â€” Design System V2
   Production-Ready Delivery App
   ============================================ */

/* --- CSS Variables --- */
:root {
  --crimson: #A01830;
  --crimson-dark: #7D1226;
  --crimson-light: #C82040;
  --gold: #D4A846;
  --gold-light: #E8C97A;
  --gold-dark: #B08A30;
  --white: #FFFFFF;
  --off-white: #FBF9F6;
  --gray-50: #F8F7F5;
  --gray-100: #F0EEEB;
  --gray-200: #E2E0DB;
  --gray-300: #C8C4BD;
  --gray-400: #9E9A92;
  --gray-500: #6B6860;
  --gray-600: #4A4740;
  --gray-700: #2E2C28;
  --gray-800: #1A1917;
  --black: #0D0C0B;
  --green: #1B8C3A;
  --green-light: #E6F7EB;
  --orange: #E67E22;
  --orange-light: #FFF3E0;
  --red: #E53935;
  --red-light: #FFF0F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bottom-nav-height: 72px;
  --topbar-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button {
  font-family: inherit; cursor: pointer; border: none;
  background: none; font-size: inherit; color: inherit;
}
input, select, textarea {
  font-family: inherit; font-size: 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%; color: var(--gray-700);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(160,24,48,0.12);
}
input.error, select.error { border-color: var(--red); }
input.error:focus, select.error:focus { box-shadow: 0 0 0 3px rgba(229,57,53,0.12); }
textarea { resize: vertical; min-height: 60px; }

/* --- Global Toast System --- */
.toast-container {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 600; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: 90%; max-width: 400px;
}
.toast {
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
}
.toast.toast-success { background: var(--green); color: var(--white); }
.toast.toast-error { background: var(--red); color: var(--white); }
.toast.toast-warning { background: var(--orange); color: var(--white); }
.toast.toast-info { background: var(--gray-700); color: var(--white); }
.toast.toast-out { animation: toastOut 0.3s ease forwards; }

/* --- Splash Screen --- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(145deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; color: var(--white); }
.splash-logo { font-size: 64px; animation: pulse-scale 1.5s infinite; }
.splash-title {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 800; margin-top: 16px; letter-spacing: -0.5px;
}
.splash-sub { font-size: 14px; opacity: 0.8; margin-top: 8px; }
.splash-spinner {
  width: 32px; height: 32px; margin: 24px auto 0;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- App & Layout --- */
.app { min-height: 100dvh; position: relative; }
.app.hidden { display: none; }
.page-content {
  padding-top: var(--topbar-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: 100dvh;
}

/* --- Top Bar --- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-height); background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px); background: rgba(255,255,255,0.95);
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-logo { font-size: 28px; }
.topbar-brand {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--crimson); line-height: 1.2;
}
.topbar-location { font-size: 11px; color: var(--gray-400); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.cart-icon-btn {
  position: relative; font-size: 22px; padding: 8px;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.cart-icon-btn:active { background: var(--gray-100); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--crimson); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; transition: transform var(--transition-spring);
}
.cart-badge.bump { animation: bump 0.3s ease; }
.cart-badge[data-count="0"] { display: none; }

/* --- Shop Status Badge --- */
.shop-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.shop-status.open { background: var(--green-light); color: var(--green); }
.shop-status.closed { background: var(--red-light); color: var(--red); }
.shop-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.shop-status.open .shop-status-dot { background: var(--green); animation: pulse-dot 2s infinite; }
.shop-status.closed .shop-status-dot { background: var(--red); }

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bottom-nav-height); background: var(--white);
  display: flex; align-items: center; justify-content: space-around;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 12px; border-radius: var(--radius-md);
  transition: color var(--transition-fast);
  color: var(--gray-400); font-size: 11px; font-weight: 500;
  position: relative;
}
.nav-item .nav-icon { width: 22px; height: 22px; }
.nav-item.active { color: var(--crimson); }
.nav-item.active::after {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 20px; height: 3px;
  background: var(--crimson); border-radius: 0 0 3px 3px;
}
.nav-item:active { transform: scale(0.92); }

/* --- Floating Cart Bar --- */
.floating-cart-bar {
  position: fixed; bottom: calc(var(--bottom-nav-height) + 8px);
  left: 12px; right: 12px; z-index: 95;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--crimson);
  color: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(160,24,48,0.35);
  animation: slideUp 0.3s ease;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.floating-cart-bar:active { transform: scale(0.98); }
.floating-cart-bar-left { display: flex; align-items: center; gap: 10px; }
.floating-cart-count {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.2); font-size: 12px; font-weight: 700;
}
.floating-cart-text { font-size: 14px; font-weight: 600; }
.floating-cart-total { font-family: var(--font-display); font-size: 16px; font-weight: 800; }

/* --- Search Bar --- */
.search-wrap {
  position: relative; margin: 12px 16px;
}
.search-input {
  width: 100%; padding: 12px 14px 12px 42px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full); font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(160,24,48,0.08);
}
.search-input::placeholder { color: var(--gray-400); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--gray-400); pointer-events: none;
}
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gray-200); color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; border: none;
  transition: background var(--transition-fast);
}
.search-clear:hover { background: var(--gray-300); }
.search-no-results {
  text-align: center; padding: 40px 20px;
  color: var(--gray-400); font-size: 14px;
}
.search-no-results-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* --- Back Button --- */
.page-header {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 16px 4px;
}
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 18px; flex-shrink: 0;
  transition: all var(--transition-fast);
}
.back-btn:active { background: var(--gray-200); transform: scale(0.92); }

/* --- Hero Section --- */
.hero {
  position: relative; margin: -64px -0px 0; overflow: hidden;
  background: linear-gradient(145deg, var(--crimson) 0%, var(--crimson-dark) 100%);
}
.hero-image-wrap {
  position: relative; width: 100%; height: 320px; overflow: hidden;
}
.hero-image {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(160,24,48,0.2) 0%, rgba(125,18,38,0.85) 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px 28px; color: var(--white);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,168,70,0.25); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--gold-light);
  margin-bottom: 12px; border: 1px solid rgba(212,168,70,0.3);
}
.hero-title {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 14px; opacity: 0.9; line-height: 1.4; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 14px 28px;
  background: var(--gold); color: var(--gray-800);
  font-weight: 700; font-size: 15px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(212,168,70,0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-cta:active { transform: scale(0.96); }

/* --- Closed Banner --- */
.closed-banner {
  margin: 0 16px 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #FFF0F0 0%, #FFE8E8 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(229,57,53,0.2);
  display: flex; align-items: center; gap: 12px;
}
.closed-banner-icon { font-size: 28px; flex-shrink: 0; }
.closed-banner-title {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; color: var(--red);
}
.closed-banner-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* --- Quick Categories --- */
.quick-cats {
  display: flex; gap: 12px; padding: 20px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
}
.quick-cats::-webkit-scrollbar { display: none; }
.quick-cat-card {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 16px 20px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); min-width: 100px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1.5px solid transparent; cursor: pointer;
}
.quick-cat-card:active { transform: scale(0.96); }
.quick-cat-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.quick-cat-icon { font-size: 32px; }
.quick-cat-name { font-size: 12px; font-weight: 600; color: var(--gray-600); text-align: center; }

/* --- Dine-In Home Banner --- */
.dinein-home-banner {
  margin: 0 16px 4px; padding: 14px 16px;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212,168,70,0.3);
  animation: slideUp 0.35s ease both;
}
.dinein-home-banner-content {
  display: flex; align-items: center; gap: 12px;
}
.dinein-home-icon { font-size: 32px; flex-shrink: 0; }
.dinein-home-title {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; color: var(--gray-800);
}
.dinein-home-sub {
  font-size: 12px; color: var(--gray-500); margin-top: 2px;
}

/* --- Sections --- */
.section { padding: 20px 16px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--gray-800);
}
.section-link { font-size: 13px; font-weight: 600; color: var(--crimson); }

/* --- Trust / Hygiene Section --- */
.trust-section {
  margin: 8px 16px 20px; padding: 20px;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212,168,70,0.25);
}
.trust-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.trust-items { display: flex; flex-direction: column; gap: 10px; }
.trust-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--gray-600); line-height: 1.4;
}
.trust-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* --- Menu Page --- */
.menu-tabs {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
  position: sticky; top: var(--topbar-height); z-index: 50;
  background: rgba(251,249,246,0.95); backdrop-filter: blur(8px);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: 0 0 auto; padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  background: var(--white); color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition-fast); white-space: nowrap;
}
.menu-tab.active {
  background: var(--crimson); color: var(--white);
  border-color: var(--crimson); box-shadow: 0 2px 8px rgba(160,24,48,0.3);
}
.menu-tab:active { transform: scale(0.95); }
.menu-grid { padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.menu-card {
  display: flex; gap: 14px; padding: 14px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative;
  transition: box-shadow var(--transition-fast);
  animation: slideUp 0.35s ease both;
}
.menu-card:hover { box-shadow: var(--shadow-md); }
.menu-card-img-wrap {
  position: relative; width: 100px; height: 100px;
  flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden;
  background: #fff;
}
.menu-card-img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform var(--transition-slow);
}
.menu-card-img.img-error {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: var(--gray-100);
}
.menu-card:hover .menu-card-img { transform: scale(1.05); }
.menu-card-badge {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 8px; border-radius: var(--radius-sm);
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-monopoly { background: var(--gold); color: var(--gray-800); }
.badge-bestseller { background: var(--crimson); color: var(--white); }
.badge-new { background: var(--green); color: var(--white); }
.menu-card-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.menu-card-name { font-weight: 700; font-size: 15px; color: var(--gray-800); line-height: 1.3; }
.menu-card-desc {
  font-size: 12px; color: var(--gray-400); line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.menu-card-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--crimson);
}
.menu-card-agg-price {
  font-size: 11px; color: var(--gray-400);
  text-decoration: line-through; margin-left: 6px;
}
.add-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; background: var(--green-light);
  color: var(--green); font-weight: 700; font-size: 13px;
  border-radius: var(--radius-sm); border: 1px solid rgba(27,140,58,0.2);
  transition: all var(--transition-fast);
}
.add-btn:active { transform: scale(0.95); background: rgba(27,140,58,0.15); }

/* Quantity stepper */
.qty-stepper {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
  background: var(--green-light); border-radius: var(--radius-sm);
  border: 1px solid rgba(27,140,58,0.2); overflow: hidden;
}
.qty-btn {
  width: 32px; height: 34px; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--green);
  transition: background var(--transition-fast);
}
.qty-btn:active { background: rgba(27,140,58,0.15); }
.qty-value {
  width: 28px; text-align: center; font-size: 14px;
  font-weight: 700; color: var(--green);
}

/* --- Cart Page --- */
.cart-page { padding: 16px; }
.cart-empty {
  text-align: center; padding: 60px 20px;
  animation: fadeIn 0.4s ease;
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.cart-empty-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--gray-600);
}
.cart-empty-sub { font-size: 14px; color: var(--gray-400); margin-top: 8px; }
.cart-empty-cta {
  display: inline-flex; padding: 12px 28px; margin-top: 20px;
  background: var(--crimson); color: var(--white);
  font-weight: 700; border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}
.cart-empty-cta:active { transform: scale(0.96); }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s ease both;
}
.cart-item-img {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  object-fit: contain; flex-shrink: 0; background: #fff;
}
/* Body sits beside the image and takes the remaining width */
.cart-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* Head row: name/price on the left, delete button on the right (always own space) */
.cart-item-head { display: flex; align-items: flex-start; gap: 8px; }
.cart-item-info { flex: 1; min-width: 0; overflow: hidden; }
.cart-item-name { font-weight: 600; font-size: 14px; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cart-item-price { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
/* Controls row: qty stepper aligned to the end, never overlapping the delete icon */
.cart-item-controls { display: flex; justify-content: flex-end; }

/* Min order warning */
.min-order-warning {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0; padding: 12px 16px;
  background: var(--orange-light); border-radius: var(--radius-md);
  border: 1.5px solid rgba(230,126,34,0.2);
  font-size: 13px; color: var(--gray-600);
}
.min-order-warning-icon { font-size: 20px; flex-shrink: 0; }

/* Savings Card */
.savings-card {
  margin: 20px 0; padding: 18px;
  background: linear-gradient(135deg, var(--green-light) 0%, #D4EFDF 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(27,140,58,0.2);
  animation: slideUp 0.4s ease both;
}
.savings-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.savings-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; background: var(--green);
  color: var(--white); border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.savings-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
}
.savings-breakdown {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--gray-500);
}
.savings-row { display: flex; justify-content: space-between; }
.savings-total {
  display: flex; justify-content: space-between;
  margin-top: 8px; padding-top: 10px;
  border-top: 1.5px dashed rgba(27,140,58,0.3);
  font-weight: 700; font-size: 15px; color: var(--green);
}

/* Cart Summary */
.cart-summary {
  margin-top: 20px; padding: 20px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 14px; color: var(--gray-500);
}
.cart-summary-row.total {
  font-weight: 700; font-size: 18px;
  color: var(--gray-800); border-top: 1.5px solid var(--gray-100);
  margin-top: 8px; padding-top: 14px;
}
.checkout-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 16px;
  margin-top: 20px; background: var(--crimson);
  color: var(--white); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(160,24,48,0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.checkout-btn:active { transform: scale(0.98); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Checkout Page --- */
.checkout-page { padding: 16px; }
.checkout-section {
  margin-bottom: 20px; padding: 20px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.checkout-section-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.otp-row { display: flex; gap: 10px; margin-top: 10px; }
.otp-input { width: 160px; letter-spacing: 8px; text-align: center; font-weight: 700; font-size: 18px; }
.send-otp-btn {
  padding: 12px 20px; background: var(--crimson);
  color: var(--white); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm); white-space: nowrap;
  transition: transform var(--transition-fast);
}
.send-otp-btn:active { transform: scale(0.96); }
.send-otp-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; background: var(--green-light);
  color: var(--green); font-size: 13px; font-weight: 600;
  border-radius: var(--radius-full); margin-top: 10px;
}
.field-error {
  font-size: 11px; color: var(--red); margin-top: 4px;
  font-weight: 500; display: none;
}
.field-error.show { display: block; }
.delivery-name-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.delivery-name-phone-grid input { width: 100%; }
.tower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-fast);
}
.payment-opt.selected { border-color: var(--crimson); background: var(--red-light); }
.payment-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gray-300); position: relative;
  flex-shrink: 0; transition: border-color var(--transition-fast);
}
.payment-opt.selected .payment-radio { border-color: var(--crimson); }
.payment-opt.selected .payment-radio::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--crimson); border-radius: 50%;
}
.payment-label { font-weight: 600; font-size: 14px; }
.payment-desc { font-size: 12px; color: var(--gray-400); }
.place-order-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: var(--white); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(160,24,48,0.35);
  transition: transform var(--transition-fast);
}
.place-order-btn:active { transform: scale(0.98); }
.place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.place-order-btn.loading { pointer-events: none; }
.place-order-btn.loading::after {
  content: ''; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

/* Special instructions */
.special-instructions-wrap { margin-top: 12px; }
.special-instructions-label {
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  margin-bottom: 6px; display: block;
}
.special-instructions {
  width: 100%; min-height: 60px; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 13px; resize: vertical; background: var(--gray-50);
  transition: border-color var(--transition-fast);
}
.special-instructions:focus {
  border-color: var(--crimson); background: var(--white);
  outline: none;
}

/* --- Order Type Toggle --- */
.order-type-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.order-type-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 16px 12px;
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--transition-fast);
}
.order-type-btn:active { transform: scale(0.96); }
.order-type-btn.active {
  border-color: var(--crimson); background: var(--red-light);
  box-shadow: 0 2px 12px rgba(160,24,48,0.15);
}
.order-type-icon { font-size: 28px; }
.order-type-label {
  font-weight: 700; font-size: 15px; color: var(--gray-800);
}
.order-type-desc {
  font-size: 11px; color: var(--gray-400); text-align: center;
}
.order-type-btn.active .order-type-label { color: var(--crimson); }

/* --- Dine-In Notice --- */
.dinein-notice {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 14px;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
  border: 1.5px solid rgba(212,168,70,0.3);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--gray-600); line-height: 1.4;
}
.dinein-notice-icon { font-size: 16px; flex-shrink: 0; }

/* --- Token Display (Success Screen) --- */
.dinein-success { animation: fadeIn 0.5s ease; }
.token-display {
  margin: 28px auto 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(160,24,48,0.3);
  max-width: 280px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}
.token-label {
  font-size: 12px; color: rgba(255,255,255,0.75);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.token-number {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 900;
  color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Dine-In Info Card --- */
.dinein-info-card {
  margin: 20px auto; padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 300px;
  animation: slideUp 0.4s ease 0.3s both;
}
.dinein-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.dinein-info-row:last-child { border-bottom: none; }
.dinein-info-icon { font-size: 18px; flex-shrink: 0; }

/* --- Dine-In Wait Message --- */
.dinein-wait-message {
  margin: 20px auto; padding: 16px;
  background: linear-gradient(135deg, var(--green-light) 0%, #D4EFDF 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(27,140,58,0.2);
  max-width: 300px;
  animation: slideUp 0.4s ease 0.4s both;
}
.dinein-wait-message p {
  font-size: 14px; color: var(--gray-600);
  line-height: 1.6; margin: 0;
}

/* --- Order Type Badges (Orders Page) --- */
.order-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  margin-bottom: 8px;
}
.dinein-badge {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
  color: var(--gold-dark); border: 1px solid rgba(212,168,70,0.3);
}
.delivery-badge {
  background: var(--green-light);
  color: var(--green); border: 1px solid rgba(27,140,58,0.15);
}

/* --- Orders Page --- */
.orders-page { padding: 16px; }
.orders-empty {
  text-align: center; padding: 60px 20px;
  animation: fadeIn 0.4s ease;
}
.orders-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.order-card {
  padding: 18px; margin-bottom: 14px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); animation: slideUp 0.35s ease both;
}
.order-card-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}
.order-id { font-weight: 700; font-size: 14px; color: var(--gray-700); }
.order-time { font-size: 12px; color: var(--gray-400); }
.order-items-list { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
.order-total { font-weight: 700; color: var(--gray-800); margin-top: 4px; }

/* Reorder button */
.reorder-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--crimson);
  color: var(--white); font-weight: 600; font-size: 12px;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
  margin-top: 10px;
}
.reorder-btn:active { transform: scale(0.95); }

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #25D366;
  color: var(--white); font-weight: 600; font-size: 12px;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
  text-decoration: none; margin-top: 10px; margin-left: 8px;
}
.whatsapp-btn:active { transform: scale(0.95); }

/* Special instructions in order */
.order-notes {
  margin-top: 8px; padding: 8px 12px;
  background: var(--gray-50); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--gray-500); font-style: italic;
  border-left: 3px solid var(--gold);
}

/* Status Tracker */
.status-tracker { padding: 8px 0; }
.status-steps { display: flex; align-items: flex-start; position: relative; }
.status-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; position: relative; z-index: 1;
}
.status-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-100); border: 2.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all var(--transition-base);
  margin-bottom: 6px;
}
.status-step.completed .status-dot {
  background: var(--green); border-color: var(--green);
  color: var(--white);
}
.status-step.active .status-dot {
  background: var(--white); border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(160,24,48,0.15);
  animation: pulse-scale 2s infinite;
}
.status-label { font-size: 10px; font-weight: 600; color: var(--gray-400); line-height: 1.3; max-width: 70px; }
.status-step.completed .status-label,
.status-step.active .status-label { color: var(--gray-700); }
.status-line {
  position: absolute; top: 14px; left: 0; right: 0;
  height: 3px; background: var(--gray-200);
  z-index: 0; margin: 0 14%;
}
.status-line-fill {
  height: 100%; background: var(--green);
  border-radius: 2px; transition: width var(--transition-slow);
}

/* --- Profile Page --- */
.profile-page { padding: 16px; }
.profile-header {
  text-align: center; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: var(--white); font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-family: var(--font-display);
}
.profile-name {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--gray-800);
}
.profile-phone { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.profile-section {
  padding: 16px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.profile-section-title {
  font-weight: 700; font-size: 14px; color: var(--gray-800);
  margin-bottom: 10px;
}
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-600); cursor: pointer;
  transition: color var(--transition-fast);
}
.profile-row:last-child { border-bottom: none; }
.profile-row:hover { color: var(--crimson); }
.profile-row-icon { font-size: 18px; }
.profile-row-arrow { margin-left: auto; font-size: 14px; color: var(--gray-300); }
.logout-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 14px;
  background: var(--red-light); color: var(--crimson);
  font-weight: 600; font-size: 15px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast);
}
.logout-btn:active { transform: scale(0.98); }

/* Favorites section */
.favorites-grid {
  display: flex; gap: 10px; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
  padding: 4px 0;
}
.favorites-grid::-webkit-scrollbar { display: none; }
.fav-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--gray-50);
  border-radius: var(--radius-full); font-size: 13px;
  font-weight: 600; color: var(--gray-600);
  border: 1px solid var(--gray-200); cursor: pointer;
  transition: all var(--transition-fast);
}
.fav-chip:hover { border-color: var(--crimson); color: var(--crimson); }
.fav-chip-count { font-size: 11px; color: var(--gray-400); }

/* Share button */
.share-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 14px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast);
  margin-top: 8px;
}
.share-btn:active { transform: scale(0.98); }

/* --- Modal / Overlay --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-content {
  width: 100%; max-width: 480px; max-height: 85vh;
  background: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px 32px; overflow-y: auto;
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-handle {
  width: 40px; height: 4px; background: var(--gray-200);
  border-radius: 2px; margin: 0 auto 20px;
}
.modal-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--gray-800); margin-bottom: 16px;
}

/* --- Order Success --- */
.order-success {
  text-align: center; padding: 40px 20px; animation: fadeIn 0.4s ease;
}
.order-success-icon {
  font-size: 80px; margin-bottom: 16px;
  animation: bounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.order-success-title {
  font-family: var(--font-display); font-size: 24px;
  font-weight: 800; color: var(--gray-800);
}
.order-success-sub {
  font-size: 14px; color: var(--gray-400);
  margin-top: 8px; line-height: 1.5;
}
.order-success-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px; max-width: 280px;
  margin-left: auto; margin-right: auto;
}

/* --- Page Title --- */
.page-title {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: var(--gray-800);
  padding: 20px 16px 4px; display: flex; align-items: center; gap: 8px;
}
.page-title-sub {
  font-size: 13px; color: var(--gray-400);
  padding: 0 16px 12px;
}

/* --- Delivery Time Estimate --- */
.delivery-estimate {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin: 0 0 16px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(27,140,58,0.15);
}
.delivery-estimate-icon { font-size: 20px; }
.delivery-estimate-text { font-size: 13px; color: var(--green); font-weight: 600; }

/* --- Edit Address Modal --- */
.edit-address-form { display: flex; flex-direction: column; gap: 12px; }
.edit-address-form label {
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  margin-bottom: 4px; display: block;
}
.edit-address-save {
  padding: 14px; background: var(--crimson); color: var(--white);
  font-weight: 700; border-radius: var(--radius-lg); margin-top: 8px;
  transition: transform var(--transition-fast);
}
.edit-address-save:active { transform: scale(0.98); }

/* --- Animations --- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Stagger children */
.menu-card:nth-child(1) { animation-delay: 0s; }
.menu-card:nth-child(2) { animation-delay: 0.06s; }
.menu-card:nth-child(3) { animation-delay: 0.12s; }
.menu-card:nth-child(4) { animation-delay: 0.18s; }
.menu-card:nth-child(5) { animation-delay: 0.24s; }
.cart-item:nth-child(1) { animation-delay: 0s; }
.cart-item:nth-child(2) { animation-delay: 0.06s; }
.cart-item:nth-child(3) { animation-delay: 0.12s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* --- Page Transitions --- */
.page-content {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.page-exit {
  opacity: 0;
  transform: translateY(8px);
}
.page-enter {
  animation: fadeSlideIn 0.25s ease forwards;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Search Results Dropdown --- */
.search-results-dropdown {
  position: relative;
  margin: -8px 16px 8px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
  border: 1.5px solid var(--gray-200);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }
.search-result-img {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain; flex-shrink: 0;
  background: #fff;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.search-result-price { font-size: 13px; color: var(--crimson); font-weight: 700; }
.add-btn-sm {
  padding: 6px 12px !important;
  font-size: 11px !important;
  flex-shrink: 0;
}

/* --- Item Detail Modal --- */
.item-detail-modal-content {
  max-height: 90vh;
}
.item-detail-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--gray-100);
}
.item-detail-img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
}
.item-detail-video-wrap {
  margin-bottom: 16px;
}
.item-detail-video {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 200px;
  background: #000;
}
.item-detail-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.item-detail-desc {
  font-size: 14px; color: var(--gray-500);
  line-height: 1.5; margin-bottom: 16px;
}
.item-detail-price-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.item-detail-price {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--crimson);
}
.item-detail-agg-price {
  font-size: 12px; color: var(--gray-400);
  text-decoration: line-through;
  display: block; margin-top: 2px;
}
.item-detail-saving {
  padding: 6px 14px;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
}
.item-detail-actions { text-align: center; }
.item-detail-add-btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 6px;
  padding: 14px 40px;
  background: var(--crimson);
  color: var(--white);
  font-weight: 700; font-size: 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(160,24,48,0.3);
  transition: transform var(--transition-fast);
  cursor: pointer; border: none;
}
.item-detail-add-btn:active { transform: scale(0.96); }
.qty-stepper-lg {
  display: inline-flex;
  transform: scale(1.2);
}

/* --- Video Icon on Menu Cards --- */
.menu-card-video-icon {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.7);
  color: white; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* --- Image Fallback --- */
.img-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

/* --- Location Card --- */
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.location-card strong { color: var(--gray-800); }
.location-meta {
  font-size: 12px;
  color: var(--gray-400);
}

/* --- Form Label Small --- */
.form-label-sm {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
  display: block;
}
.required-star {
  color: var(--red, #e74c3c);
  font-weight: 700;
  margin-left: 1px;
}

/* --- Section Count --- */
.section-count {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

/* --- Profile Stats Grid --- */
.profile-stats-grid {
  display: flex; gap: 12px; margin-top: 8px;
}
.profile-stat {
  flex: 1; text-align: center;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.profile-stat-value {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
}
.profile-stat-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- Edit Address Button --- */
.edit-address-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; margin-top: 10px;
  background: var(--gray-50);
  color: var(--crimson);
  font-weight: 600; font-size: 13px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.edit-address-btn:hover { border-color: var(--crimson); }

/* --- Coming Soon Card --- */
.coming-soon-card {
  margin-top: 20px; padding: 18px;
  background: linear-gradient(135deg, #FFF8E7, #FFFBF0);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--gold);
  text-align: center;
}
.coming-soon-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--gray-800);
}
.coming-soon-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- Order Card Footer --- */
.order-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap; gap: 8px;
}
.order-address-text {
  font-size: 12px; color: var(--gray-400);
}
.order-actions {
  display: flex; gap: 6px;
  align-items: center;
}

/* --- Field Validation --- */
.field-error {
  font-size: 11px; color: var(--red);
  margin-top: 4px; font-weight: 500;
  display: none;
}
.field-error.show { display: block; }
input.error, select.error { border-color: var(--red); }

/* --- Search Bar --- */
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 16px 14px; padding: 12px 16px;
  background: var(--white); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-100);
  transition: border-color var(--transition-fast);
}
.search-wrap:focus-within { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(160,24,48,0.08); }
.search-icon { font-size: 16px; color: var(--gray-400); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--gray-700);
  font-family: var(--font-body);
}
.search-input::placeholder { color: var(--gray-300); }
.search-no-results {
  padding: 30px 16px; text-align: center;
  color: var(--gray-400); font-size: 14px;
}
.search-no-results-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }

/* --- Special Instructions --- */
.special-instructions-wrap {
  margin: 16px 0; padding: 14px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.special-instructions-label {
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 8px; display: block;
}
.special-instructions {
  width: 100%; min-height: 60px; resize: vertical;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 10px 14px; font-size: 13px; font-family: var(--font-body);
  color: var(--gray-700); background: var(--gray-50);
  transition: border-color var(--transition-fast);
}
.special-instructions:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(160,24,48,0.08);
}

/* --- Min Order Warning --- */
.min-order-warning {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin: 12px 0;
  background: #FFF3E6; border: 1px solid #FFD699;
  border-radius: var(--radius-md);
  font-size: 13px; color: #B85C00; font-weight: 500;
}
.min-order-warning-icon { font-size: 18px; flex-shrink: 0; }

/* --- Checkout Page --- */
.checkout-page { padding: 16px; }
.checkout-section {
  margin-bottom: 16px; padding: 16px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.checkout-section-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
  margin-bottom: 12px;
}
.checkout-section input,
.checkout-section select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 14px; font-family: var(--font-body); color: var(--gray-700);
  background: var(--gray-50);
  transition: border-color var(--transition-fast);
}
.checkout-section input:focus,
.checkout-section select:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(160,24,48,0.08);
}

/* Verified Badge */
.verified-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--green-light);
  color: var(--green); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27,140,58,0.15);
}

/* OTP */
.otp-row {
  display: flex; gap: 10px; margin-top: 10px;
}
.otp-input {
  flex: 1; text-align: center; font-size: 18px;
  letter-spacing: 6px; font-weight: 700;
}
.send-otp-btn {
  padding: 12px 20px; background: var(--crimson);
  color: var(--white); font-weight: 700; font-size: 14px;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform var(--transition-fast);
}
.send-otp-btn:active { transform: scale(0.97); }

/* Order Type Toggle */
.order-type-toggle {
  display: flex; gap: 10px;
}
.order-type-btn {
  flex: 1; padding: 14px 12px;
  background: var(--gray-50); border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center; cursor: pointer;
  transition: all var(--transition-fast);
}
.order-type-btn.active {
  border-color: var(--crimson);
  background: rgba(160,24,48,0.04);
}
.order-type-icon { display: block; font-size: 24px; margin-bottom: 4px; }
.order-type-label { display: block; font-weight: 700; font-size: 14px; color: var(--gray-800); }
.order-type-desc { display: block; font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Dine-In Notice */
.dinein-notice {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-top: 10px;
  background: var(--gold-light, #FFF8E7); border-radius: var(--radius-md);
  font-size: 13px; color: var(--gray-600);
  border: 1px solid rgba(212,168,70,0.2);
}
.dinein-notice-icon { font-size: 16px; }

/* Name & Phone Grid */
.delivery-name-phone-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 10px;
}
.delivery-name-phone-grid input { width: 100%; }

/* Tower Grid */
.tower-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* Payment Options */
.payment-options {
  display: flex; flex-direction: column; gap: 10px;
}
.payment-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--transition-fast);
}
.payment-opt.selected {
  border-color: var(--crimson);
  background: rgba(160,24,48,0.04);
}
.payment-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  position: relative; transition: all var(--transition-fast);
}
.payment-opt.selected .payment-radio {
  border-color: var(--crimson);
}
.payment-opt.selected .payment-radio::after {
  content: ''; position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: var(--crimson); border-radius: 50%;
}
.payment-label { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.payment-desc { font-size: 12px; color: var(--gray-400); }

/* Checkout & Place Order Buttons */
.checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px;
  background: var(--crimson); color: var(--white);
  font-weight: 700; font-size: 16px;
  border-radius: var(--radius-lg); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(160,24,48,0.3);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.checkout-btn:active { transform: scale(0.98); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.place-order-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px; margin-top: 10px;
  background: linear-gradient(135deg, var(--crimson) 0%, #C41030 100%);
  color: var(--white); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-lg); border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(160,24,48,0.35);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.place-order-btn:active { transform: scale(0.98); }
.place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.place-order-btn.loading {
  pointer-events: none;
  animation: pulse-scale 1s infinite;
}

/* Cart Empty CTA */
.cart-empty-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; margin-top: 16px;
  background: var(--crimson); color: var(--white);
  font-weight: 700; font-size: 14px;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: transform var(--transition-fast);
}
.cart-empty-cta:active { transform: scale(0.96); }

/* --- Order Success: Token & Dine-In --- */
.token-display {
  margin: 24px auto; text-align: center;
  padding: 20px; background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 200px;
}
.token-label {
  font-size: 12px; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.token-number {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  color: var(--crimson); margin-top: 4px;
}
.dinein-info-card {
  margin: 20px auto; padding: 16px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); max-width: 300px;
}
.dinein-info-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-600);
}
.dinein-info-row:last-child { border-bottom: none; }
.dinein-info-icon { font-size: 18px; }
.dinein-wait-message {
  margin-top: 20px; padding: 14px;
  background: var(--green-light); border-radius: var(--radius-md);
  font-size: 14px; color: var(--green); text-align: center;
  border: 1px solid rgba(27,140,58,0.15);
}

/* --- Dine-In Home Banner --- */
.dinein-home-banner {
  margin: 0 16px 16px; padding: 14px 16px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFBF0 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212,168,70,0.25);
}
.dinein-home-banner-content {
  display: flex; align-items: center; gap: 12px;
}
.dinein-home-icon { font-size: 28px; }
.dinein-home-title { font-weight: 700; font-size: 14px; color: var(--gray-800); }
.dinein-home-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ============================================
   TIMER SYSTEM â€” Now Serving & Countdown
   ============================================ */

/* --- Now Serving Banner (Home Page) --- */
.timer-banner-wrap {
  padding: 0 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.timer-banner {
  position: relative; overflow: hidden;
  padding: 16px 18px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: slideUp 0.4s ease both;
}
.timer-banner:active { transform: scale(0.98); }
.timer-banner.active-slot {
  background: linear-gradient(135deg, #1B8C3A 0%, #15703A 60%, #0D5A2E 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,140,58,0.25);
}
.timer-banner.upcoming-slot {
  background: linear-gradient(135deg, #F8F7F5 0%, #FFF8E7 100%);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.timer-banner-shimmer {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.timer-banner-icon {
  font-size: 36px; flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.timer-banner-info { flex: 1; min-width: 0; }
.timer-banner-label {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; line-height: 1.2;
  display: flex; align-items: center; gap: 6px;
}
.timer-banner-desc {
  font-size: 12px; opacity: 0.85; margin-top: 3px;
}
.timer-banner-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 4px;
}
.active-slot .timer-banner-status {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
}
.upcoming-slot .timer-banner-status {
  background: var(--orange-light);
  color: var(--orange);
}
.timer-banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.active-slot .timer-banner-dot {
  background: #4AE87C;
  animation: pulse-dot 2s infinite;
}
.upcoming-slot .timer-banner-dot {
  background: var(--orange);
}

/* --- Countdown Display --- */
.timer-countdown-wrap {
  text-align: right; flex-shrink: 0;
}
.timer-countdown-label {
  font-size: 9px; text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 2px;
}
.timer-countdown {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 24px; font-weight: 800;
  letter-spacing: 1px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.active-slot .timer-countdown {
  color: var(--white);
  text-shadow: 0 0 12px rgba(74,232,124,0.4), 0 1px 2px rgba(0,0,0,0.2);
}
.upcoming-slot .timer-countdown {
  color: var(--gray-700); font-size: 18px;
}
.timer-countdown-colon {
  animation: blink-colon 1s step-end infinite;
  opacity: 1;
}
@keyframes blink-colon {
  50% { opacity: 0.3; }
}

/* --- Urgency Badge --- */
.timer-urgency {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
  background: rgba(229,57,53,0.15); color: var(--red);
  animation: pulse-scale 2s ease infinite;
  margin-top: 4px;
}
.active-slot .timer-urgency {
  background: rgba(255,255,255,0.2); color: #FFD700;
}

/* --- Timer Badge on Menu Categories --- */
.timer-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-variant-numeric: tabular-nums;
}
.timer-cat-badge.live {
  background: var(--green-light); color: var(--green);
  border: 1px solid rgba(27,140,58,0.2);
}
.timer-cat-badge.upcoming {
  background: var(--orange-light); color: var(--orange);
  border: 1px solid rgba(230,126,34,0.2);
}
.timer-cat-badge.expired {
  background: var(--red-light); color: var(--red);
  border: 1px solid rgba(229,57,53,0.15);
}

/* --- Menu Item Unavailable Overlay --- */
.menu-card-unavailable {
  position: relative;
  pointer-events: none;
}
.menu-card-unavailable::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(251,249,246,0.7);
  border-radius: var(--radius-lg);
  z-index: 2;
}
.menu-card-unavailable-badge {
  position: absolute; bottom: 14px; right: 14px;
  z-index: 3; padding: 6px 14px;
  background: var(--gray-700); color: var(--white);
  font-size: 11px; font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

/* Timed item badge colors */
.badge-breakfast { background: linear-gradient(135deg, #FF9800, #F57C00); color: var(--white); }
.badge-lunch { background: linear-gradient(135deg, #4CAF50, #388E3C); color: var(--white); }

/* ============================================
   DELIVERY ETA COUNTDOWN
   ============================================ */

/* --- Order Success Delivery ETA --- */
.delivery-eta-section {
  margin: 24px auto; padding: 24px;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); max-width: 320px;
  text-align: center;
  animation: slideUp 0.4s ease 0.2s both;
}
.delivery-eta-ring-wrap {
  position: relative; width: 140px; height: 140px;
  margin: 0 auto 16px;
}
.delivery-eta-ring {
  width: 140px; height: 140px;
  transform: rotate(-90deg);
}
.delivery-eta-ring-bg {
  fill: none; stroke: var(--gray-100); stroke-width: 8;
}
.delivery-eta-ring-progress {
  fill: none; stroke: var(--green); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.delivery-eta-ring-progress.warning { stroke: var(--orange); }
.delivery-eta-ring-progress.urgent { stroke: var(--red); }
.delivery-eta-time-display {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.delivery-eta-time {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 28px; font-weight: 800;
  color: var(--gray-800); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.delivery-eta-unit {
  font-size: 10px; color: var(--gray-400);
  text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.5px; margin-top: 2px;
}
.delivery-eta-label {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; color: var(--gray-800);
}
.delivery-eta-sub {
  font-size: 12px; color: var(--gray-400); margin-top: 4px;
}
.delivery-eta-done {
  padding: 12px 20px; margin-top: 12px;
  background: var(--green-light); color: var(--green);
  font-size: 14px; font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(27,140,58,0.2);
  animation: pulse-scale 2s ease infinite;
}

/* --- Orders Page Compact ETA Strip --- */
.order-eta-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-top: 8px;
  background: linear-gradient(135deg, var(--green-light) 0%, #D4EFDF 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(27,140,58,0.15);
  font-size: 13px; color: var(--gray-600);
}
.order-eta-strip-icon { font-size: 18px; flex-shrink: 0; }
.order-eta-strip-time {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-weight: 700; color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* --- Delivery Charge Banner --- */
.delivery-charge-banner {
  margin: 16px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(230, 126, 34, 0.25);
  animation: slideUp 0.35s ease both;
}
.delivery-charge-banner.free-delivery-unlocked {
  background: linear-gradient(135deg, var(--green-light) 0%, #D4EFDF 100%);
  border-color: rgba(27, 140, 58, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.delivery-charge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.delivery-charge-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.delivery-charge-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}
.delivery-charge-text strong {
  color: var(--gray-800);
}
.free-delivery-unlocked .delivery-charge-text strong {
  color: var(--green);
}
.delivery-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(230, 126, 34, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.delivery-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #F39C12 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.delivery-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
.delivery-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
}

/* --- Shimmer Animation --- */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}


/* --- Cart Item Remove Button (#4) --- */
.cart-item-remove {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); color: var(--red);
  font-size: 15px; flex-shrink: 0; border: none; cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0; position: relative; z-index: 2;
  margin-left: auto;
}
.cart-item-remove:active { transform: scale(0.9); background: #fdd; }

/* --- Menu Card Discount Badge (#5) --- */
.menu-card-discount {
  display: inline-flex; align-items: center;
  padding: 2px 6px; margin-left: 4px;
  background: var(--green-light); color: var(--green);
  font-size: 10px; font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

/* --- Today's Schedule Card (#1) --- */
.schedule-card {
  margin: 0 16px 16px; padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  animation: slideUp 0.35s ease both;
}
.schedule-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.schedule-card-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
  display: flex; align-items: center; gap: 8px;
}
.schedule-shop-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-shop-status.open { background: var(--green-light); color: var(--green); }
.schedule-shop-status.closed { background: var(--red-light); color: var(--red); }
.schedule-shop-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.schedule-shop-status.open .schedule-shop-status-dot { background: var(--green); animation: pulse-dot 2s infinite; }
.schedule-shop-status.closed .schedule-shop-status-dot { background: var(--red); }
.schedule-items {
  display: flex; flex-direction: column; gap: 10px;
}
.schedule-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--gray-600);
}
.schedule-item-icon {
  font-size: 22px; flex-shrink: 0;
}
.schedule-item-info { flex: 1; min-width: 0; }
.schedule-item-name {
  font-weight: 600; font-size: 13px; color: var(--gray-700);
}
.schedule-item-time {
  font-size: 11px; color: var(--gray-400); margin-top: 2px;
}
.schedule-item-status {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-full); flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.schedule-item-status.now { background: var(--green-light); color: var(--green); }
.schedule-item-status.upcoming { background: var(--orange-light); color: var(--orange); }
.schedule-item-status.ended { background: var(--gray-100); color: var(--gray-400); }

/* --- Availability Card (what's available & when) --- */
.avail-card {
  margin: 0 16px 16px; padding: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  animation: slideUp 0.35s ease both;
}
.avail-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.avail-card-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--gray-800);
}
.avail-card-sub { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.avail-shop-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; white-space: nowrap;
}
.avail-shop-status.open { background: var(--green-light); color: var(--green); }
.avail-shop-status.closed { background: var(--red-light); color: var(--red); }
.avail-shop-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.avail-shop-status.open .avail-shop-status-dot { background: var(--green); animation: pulse-dot 2s infinite; }
.avail-shop-status.closed .avail-shop-status-dot { background: var(--red); }
.avail-card-rows { display: flex; flex-direction: column; gap: 8px; }
.avail-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; background: var(--gray-50);
  border-radius: var(--radius-md); cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.avail-row:active { transform: scale(0.985); background: var(--gray-100); }
.avail-row-cafe {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFEDD8 100%);
  border: 1px solid rgba(230,126,34,0.18);
}
.avail-row-emoji { font-size: 22px; flex-shrink: 0; }
.avail-row-info { flex: 1; min-width: 0; }
.avail-row-name { font-weight: 600; font-size: 13px; color: var(--gray-700); }
.avail-row-time {
  font-size: 11px; color: var(--gray-400); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.avail-row-status {
  font-size: 10px; font-weight: 700; padding: 4px 9px;
  border-radius: var(--radius-full); flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.avail-row-status.now { background: var(--green-light); color: var(--green); }
.avail-row-status.upcoming { background: var(--orange-light); color: var(--orange); }
.avail-row-status.ended { background: var(--gray-100); color: var(--gray-400); }
.avail-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1.5px dashed var(--gray-100);
  font-size: 12px; color: var(--gray-500);
}
.avail-foot-item { display: inline-flex; align-items: center; gap: 6px; }
.avail-foot-emoji { font-size: 15px; }

/* --- Shop Closed Banner (#1) --- */
.shop-closed-banner {
  margin: 0 16px 16px; padding: 18px 16px;
  background: linear-gradient(135deg, #FFF0F0 0%, #FFE8E8 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(229,57,53,0.2);
  text-align: center;
  animation: slideUp 0.35s ease both;
}
.shop-closed-banner-icon { font-size: 40px; margin-bottom: 8px; }
.shop-closed-banner-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; color: var(--red); margin-bottom: 4px;
}
.shop-closed-banner-sub {
  font-size: 13px; color: var(--gray-500); line-height: 1.5;
}
.shop-closed-banner-sub strong { color: var(--gray-700); }

/* --- Cancel Order Button + Countdown (#8) --- */
.cancel-order-section {
  margin: 16px 0; padding: 16px;
  background: var(--red-light);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(229,57,53,0.15);
  text-align: center;
  animation: slideUp 0.3s ease both;
}
.cancel-countdown-text {
  font-size: 13px; color: var(--gray-600);
  margin-bottom: 10px;
}
.cancel-countdown-timer {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--red); margin-bottom: 12px;
}
.cancel-countdown-bar {
  width: 100%; height: 4px; background: rgba(229,57,53,0.15);
  border-radius: var(--radius-full); overflow: hidden;
  margin-bottom: 12px;
}
.cancel-countdown-fill {
  height: 100%; background: var(--red);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}
.cancel-order-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 24px;
  background: var(--red); color: var(--white);
  font-weight: 700; font-size: 14px;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}
.cancel-order-btn:active { transform: scale(0.95); }
.cancel-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Small cancel btn for orders list */
.cancel-order-btn-sm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; background: var(--red-light);
  color: var(--red); font-weight: 600; font-size: 11px;
  border-radius: var(--radius-full); border: 1px solid rgba(229,57,53,0.2);
  cursor: pointer; transition: all var(--transition-fast);
  margin-top: 10px;
}
.cancel-order-btn-sm:active { transform: scale(0.95); background: #fdd; }
.cancel-countdown-inline {
  font-weight: 800; font-family: var(--font-display);
}

/* --- Google Sign-In Button (#2) --- */
/* Single source of truth for the "Continue with Google" button.
   Styled to match Google's official brand guidelines so it looks
   identical to every other major app's Google sign-in. */
.google-signin-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%; padding: 12px;
  background: #fff; color: #3c4043;
  font-weight: 500; font-size: 15px; font-family: inherit;
  border-radius: 10px;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s, border-color .15s;
}
.google-signin-btn:hover { background: #fafafa; box-shadow: 0 1px 3px rgba(60,64,67,.18); }
.google-signin-btn:active { background: #f1f3f4; }
.google-signin-btn:focus-visible { outline: 2px solid #4285F4; outline-offset: 2px; }
.google-signin-btn:disabled { cursor: default; opacity: .7; }
.google-signin-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
}
.google-signin-icon svg { width: 18px; height: 18px; display: block; }
/* Spinner shown briefly while the redirect to Google is being initiated */
.google-signin-btn.loading .google-signin-icon,
.google-signin-btn.loading span:last-child { visibility: hidden; }
.google-signin-btn.loading { position: relative; pointer-events: none; }
.google-signin-btn.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid #dadce0; border-top-color: #4285F4;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* "Completing sign-in…" placeholder shown after the Google redirect
   returns, while Supabase restores the session asynchronously.
   Stops the sign-in form from flashing back into view. */
.auth-completing {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 14px;
  background: #fff; color: var(--gray-600);
  font-size: 14px; font-weight: 500;
  border-radius: 10px; border: 1px solid var(--gray-200);
}
.auth-completing-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--gray-200); border-top-color: #4285F4;
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* --- Auth Divider (#2) --- */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--gray-400); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--gray-200);
}
.auth-divider span { background: var(--off-white); padding: 0 4px; position: relative; }

@media print {
  .topbar, .bottom-nav, .floating-cart-bar, .toast-container,
  .reorder-btn, .whatsapp-btn, .back-btn { display: none !important; }
  .page-content { padding: 0 !important; }
  .order-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  body { background: white; }
}

/* --- Responsive Desktop --- */
@media (min-width: 481px) {
  .page-content { max-width: 480px; margin: 0 auto; }
  .topbar, .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .floating-cart-bar { max-width: 456px; left: 50%; right: auto; transform: translateX(-50%); }
  body { background: var(--gray-100); }
  .app { max-width: 480px; margin: 0 auto; background: var(--off-white); min-height: 100dvh; position: relative; box-shadow: var(--shadow-xl); }
}


/* ============================================
   New UI elements (v2 â€” back btn, cart remove, discount, google sign-in,
   shop-closed banner, order cancel countdown)
   ============================================ */

/* Back button (#3) */
.back-btn { position: fixed; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); font-size: 26px; line-height: 1; color: var(--crimson); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 50; padding: 0 0 2px; transition: transform .15s; }
.back-btn:active { transform: scale(.92); }
/* Leave room on the left so the page title doesn't sit under the back button. */
.page-title { padding-left: 50px; }
.page-title-sub { padding-left: 50px; }

/* Checkout Google-only sign-in help text */
.auth-help-text { text-align: center; font-size: 12px; color: var(--gray-400); margin: 10px 0 0; }

/* Cart item — ensure proper overflow handling for flex children */
.cart-item { position: relative; overflow: visible; }

/* Discount badge + MRP strike (#5) */
.menu-card-discount { display: inline-block; background: #e8f5e9; color: #2e7d32; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.menu-card-agg-price { text-decoration: line-through; opacity: .6; font-size: 12px; margin-left: 6px; vertical-align: middle; }

/* Google sign-in button (#2) */
.google-signin-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 10px; background: #fff; border: 1.5px solid #dadce0; color: #3c4043; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; transition: box-shadow .15s; }
.google-signin-btn:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.google-signin-btn:active { background: #f8f9fa; }
.google-signin-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(45deg, #4285F4, #EA4335 33%, #FBBC05 66%, #34A853); color: #fff; font-weight: 800; font-size: 13px; font-family: Arial; }
.auth-divider { position: relative; text-align: center; margin: 14px 0; color: var(--gray-400); font-size: 12px; }
.auth-divider span { background: var(--off-white); padding: 0 10px; position: relative; z-index: 1; }
.auth-divider:before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }

/* Shop closed banner + today hours (#1) */
.shop-closed-banner { margin: 12px 16px; background: linear-gradient(135deg, #fff3e0, #ffe0e0); border: 1px solid #ffb74d; border-radius: 12px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; }
.shop-closed-banner-icon { font-size: 20px; }
.shop-closed-banner-body { flex: 1; font-size: 13px; color: #5d4037; line-height: 1.4; }
.shop-closed-banner-body strong { display: block; color: #bf360c; margin-bottom: 2px; }
.shop-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.shop-status-pill.open { background: #e8f5e9; color: #2e7d32; }
.shop-status-pill.closed { background: #ffebee; color: #c62828; }
.shop-status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
.today-hours-card { margin: 0 16px 12px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.today-hours-card h4 { font-size: 13px; color: var(--gray-500); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; }
.today-hours-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.today-hours-row:last-child { border-bottom: none; }
.today-hours-row.active { font-weight: 700; color: var(--crimson); }
.today-hours-row.active .slot-time { color: var(--crimson); }

