/* ==========================================================================
   MENUQRO — CUSTOMER LIVE MENU, CART & ORDER MILESTONE TIMELINE REDESIGN
   ========================================================================== */

:root {
  --milestone-gold: #D4AF37;
  --milestone-gold-light: #FBF0B9;
  --milestone-active: #22c55e;
  --milestone-pending: rgba(255, 255, 255, 0.14);
  --milestone-bg: #140f08;
  --crest-bg: #1a1205;
}

/* ===== 1. SVG RESTAURANT MONOGRAM CREST & BRAND HEADER ===== */
#customerHeroLogoContainer,
.customer-hero-logo-wrap,
.customer-hero-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  max-width: 180px;
  height: 48px;
  min-height: 44px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #140f08 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
  padding: 4px;
}
#customerHeroLogoContainer:hover,
.customer-hero-logo-wrap:hover,
.customer-hero-logo-container:hover {
  transform: scale(1.03);
}

#customerHeroLogo,
.customer-hero-logo-img {
  max-width: 180px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.brand-monogram-crest {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 12px rgba(212,175,55,0.2);
  user-select: none;
  background: var(--crest-bg);
}
.brand-monogram-crest svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Header Bar */
#customerHeroHeader,
.customer-hero-header-bar,
.hero-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--card, #120e09) 95%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}

.hero-brand-left,
.brand-identity-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hero-brand-wrap,
.brand-title-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#brandName,
.hero-brand,
.restaurant-hero-name {
  font-family: 'Cormorant Garamond', Georgia, 'Plus Jakarta Sans', serif;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  color: var(--ink, #ffffff);
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.hero-brand-meta-row,
.brand-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

#brandModePill,
.brand-mode-pill,
.dining-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light, #fbbf24);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

#brandLivePill,
.brand-live-pill,
.live-pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.brand-live-dot,
.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: liveGreenPulse 1.8s infinite;
  display: inline-block;
}

@keyframes liveGreenPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

#heroMyOrderBtn,
.hero-my-order-btn,
.hero-table-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light, #fbbf24);
  font-size: 12px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#heroMyOrderBtn:hover,
.hero-my-order-btn:hover,
.hero-table-chip-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold, #d4af37);
  transform: translateY(-1px);
}

/* Zero-Gap Clean Collapse when Hero Display Mode is None / Off */
#hero[data-hero-mode="none"],
.hero-mode-none {
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#hero[data-hero-mode="none"] #heroStage,
#hero[data-hero-mode="none"] #heroBg,
#hero[data-hero-mode="none"] #heroVideo,
#hero[data-hero-mode="none"] #heroSlides,
#hero[data-hero-mode="none"] #heroDots,
#hero[data-hero-mode="none"] #heroChips,
#hero[data-hero-mode="none"] #heroInfo,
#hero[data-hero-mode="none"] #heroCardDeckStage,
#hero[data-hero-mode="none"] #heroFallbackWarningBanner,
#hero.hero-mode-dense #heroStage,
#hero.hero-mode-dense #heroCardDeckStage,
.hero-mode-none #heroStage,
.hero-mode-none #heroBg,
.hero-mode-none #heroVideo,
.hero-mode-none #heroSlides,
.hero-mode-none #heroDots,
.hero-mode-none #heroChips,
.hero-mode-none #heroInfo,
.hero-mode-none #heroCardDeckStage {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== 2. STICKY CATEGORY NAV & SLIDING ACTIVE INDICATOR ===== */
.category-nav-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--card, #120e09) 95%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-pill, .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.category-pill:hover, .cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.category-pill.active, .cat-pill.active {
  background: #D4AF37 !important;
  color: #0d0a06 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

/* Diet Filter Strip (Pure Veg / Non-Veg / Bestsellers) */
.diet-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.diet-filter-strip::-webkit-scrollbar { display: none; }

.diet-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
}
.diet-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.diet-filter-pill.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: #D4AF37;
  color: var(--gold-light, #fde047);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}
.diet-filter-pill#dietPill_veg.active {
  background: rgba(34, 197, 94, 0.16);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25);
}
.diet-filter-pill#dietPill_nonveg.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.fssai-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  box-sizing: border-box;
}
.fssai-box.veg {
  border-color: #16a34a;
}
.fssai-box.veg .fssai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}
.fssai-box.nonveg {
  border-color: #dc2626;
}
.fssai-box.nonveg .fssai-dot {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 6px solid #dc2626;
  border-radius: 1px;
}

/* ===== 3. DISH CARD 2-COL GRID & SWIGGY DENSE ROWS ===== */

/* Modern Web Guidance: Defer rendering calculations for off-screen items for instant <50ms paint */
.menu-card,
.dish-card-modern,
.grid-card,
.swiggy-card {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 180px;
}

/* 2-Column Grid Layout */
.layout-grid-2col,
.dish-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 14px;
}
@media (min-width: 640px) {
  .layout-grid-2col,
  .dish-grid-2col { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .layout-grid-2col,
  .dish-grid-2col { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* 2-Col Card Container */
.menu-card.grid-card,
.dish-card-modern {
  background: color-mix(in srgb, var(--card, #16120b) 92%, transparent);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.menu-card.grid-card:hover,
.dish-card-modern:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-media-grid,
.dish-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d0a06;
  overflow: hidden;
  cursor: pointer;
}
.card-media-grid img,
.dish-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.menu-card.grid-card:hover .card-media-grid img,
.dish-card-modern:hover .dish-media-wrap img {
  transform: scale(1.04);
}

.card-content-grid,
.dish-content-wrap {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 6px;
}

.card-title-grid,
.dish-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink, #ffffff);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.card-desc,
.swiggy-desc,
.dish-card-desc {
  font-size: 11px;
  color: var(--muted, #94a3b8);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-bottom-grid,
.dish-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 8px;
}

.price-grid,
.swiggy-price,
.dish-card-price {
  font-size: 14.5px;
  font-weight: 900;
  color: #D4AF37;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Add Button & Compact Stepper (Universal matching for all modes) */
.add-btn,
.swiggy-add-btn,
.dish-add-cta-btn {
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: #D4AF37 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.add-btn:hover,
.swiggy-add-btn:hover,
.dish-add-cta-btn:hover {
  background: #D4AF37 !important;
  color: #0d0a06 !important;
  border-color: #D4AF37 !important;
}
.add-btn:active,
.swiggy-add-btn:active,
.dish-add-cta-btn:active {
  transform: scale(0.96) !important;
}

.stepper,
.swiggy-stepper,
.dish-card-stepper {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(212, 175, 55, 0.18) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 8px !important;
  padding: 2px 4px !important;
  gap: 4px !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.stepper button,
.swiggy-stepper button,
.dish-card-stepper button {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #D4AF37 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
}
.stepper button:hover,
.swiggy-stepper button:hover,
.dish-card-stepper button:hover {
  background: rgba(212, 175, 55, 0.3) !important;
}
.stepper span,
.swiggy-stepper span,
.dish-card-stepper span {
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  min-width: 16px !important;
  text-align: center !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Sold Out & Urgency Overlays */
.dish-soldout-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
}
.dish-soldout-text {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #f87171;
  border: 1.5px solid #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.dish-urgency-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  animation: microShake 0.4s ease 1s 1;
}
@keyframes microShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* SWIGGY DENSE ROW MODE (Fast Scanning for 70+ Items) */
.layout-list-dense .menu-card.swiggy-card,
.menu-card.swiggy-card {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.swiggy-info-col {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.swiggy-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.swiggy-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #ffffff);
  line-height: 1.25;
  margin: 0 0 4px;
}
.swiggy-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.swiggy-price {
  font-size: 14.5px;
  font-weight: 900;
  color: #D4AF37;
}

.swiggy-media-col {
  position: relative;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.swiggy-img-wrap {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0a06;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.swiggy-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiggy-btn-anchor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* ===== 4. SCREEN 2: CART DRAWER ("YOUR ORDER") ===== */
.drawer {
  background: #0d0a06 !important;
  color: #ffffff !important;
  border-top: 1.5px solid rgba(212, 175, 55, 0.3) !important;
}

.drawer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.cart-customer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.cart-input-field-wrap:focus-within {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.cart-input-icon {
  padding: 8px 10px;
  font-size: 13px;
  color: #94a3b8;
}
.cart-input-element {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 10px 8px 0;
}

.cart-coupons-card {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.cart-coupon-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.cart-coupon-chip {
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed rgba(212, 175, 55, 0.45);
  color: var(--gold-light, #fde047);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.cart-coupon-chip:hover {
  background: #D4AF37;
  color: #0d0a06;
}

.cart-savings-highlight {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  color: #22c55e;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.cart-add-more-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--gold-light, #fbbf24);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cart-add-more-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #D4AF37;
}

/* ===== 5. SCREEN 3: ORDER MILESTONE TIMELINE (WARM LUXURY STANDARD) ===== */
.order-milestone-sheet {
  background: #0d0a06 !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.active-order-highlight-card {
  background: linear-gradient(180deg, rgba(26, 18, 5, 0.8) 0%, rgba(13, 10, 6, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.active-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.active-order-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-light, #fbbf24);
  font-family: 'JetBrains Mono', monospace;
}
.active-order-status-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.active-order-status-badge.cooking {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.active-order-status-badge.ready {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.active-order-items-preview {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Vertical Live Milestone Timeline */
.live-milestone-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  margin: 16px 0;
  gap: 18px;
}

.timeline-step-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timeline-step-node:last-child {
  padding-bottom: 0;
}

/* Continuous Vertical Connecting Line */
.timeline-step-node::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  bottom: -22px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease;
}
.timeline-step-node:last-child::before {
  display: none;
}
.timeline-step-node.completed::before {
  background: #D4AF37;
}

/* Milestone Node Circle */
.timeline-node-circle {
  position: absolute;
  left: -27px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a1205;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #ffffff;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step-node.completed .timeline-node-circle {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #0d0a06;
  font-weight: 900;
}

.timeline-step-node.active .timeline-node-circle {
  background: #22c55e;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
  animation: activeNodePulse 1.8s infinite;
}

@keyframes activeNodePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.timeline-step-info {
  display: flex;
  flex-direction: column;
}
.timeline-step-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.timeline-step-node.completed .timeline-step-title,
.timeline-step-node.active .timeline-step-title {
  color: #ffffff;
  font-weight: 800;
}

.timeline-step-time {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.45);
}
.timeline-step-node.active .timeline-step-time,
.timeline-step-node.completed .timeline-step-time {
  color: var(--gold-light, #fbbf24);
}

.active-order-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.active-order-actions-row button {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.active-order-actions-row button:hover {
  transform: translateY(-1px);
}

/* Past Orders Cards */
.past-orders-section-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-light, #fbbf24);
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.past-order-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.past-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}
.past-order-meta {
  font-size: 11px;
  color: var(--muted, #94a3b8);
}
.past-order-items {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  margin-bottom: 8px;
}
.past-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}
.past-order-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #D4AF37;
  font-family: 'JetBrains Mono', monospace;
}
.past-order-repeat-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light, #fbbf24);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.past-order-repeat-btn:hover {
  background: #D4AF37;
  color: #0d0a06;
}

/* ===== NON-DISRUPTIVE LIVE DELTA SYNC STYLES ===== */
@keyframes priceGlowPulse {
  0% { transform: scale(1); color: var(--gold-light, #d4af37); text-shadow: 0 0 0 transparent; }
  35% { transform: scale(1.12); color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
  100% { transform: scale(1); color: var(--gold-light, #d4af37); text-shadow: 0 0 0 transparent; }
}

.price-live-pulse {
  animation: priceGlowPulse 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  display: inline-block;
  will-change: transform, color;
}

.cart-item-soldout-badge {
  animation: fadeInDown 0.22s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-card.is-sold-out .dish-media-wrap img,
.swiggy-card.is-sold-out .swiggy-img-wrap img {
  filter: grayscale(85%) contrast(85%) brightness(85%);
  transition: filter 0.3s ease;
}

/* ===== PART 3: ANDROID & MOBILE HARDWARE ACCELERATION & ZERO-JANK CWV ===== */
button,
a,
input,
select,
.menu-card,
.swiggy-card,
.cat-pill,
.category-pill,
.stepper button,
.dish-add-cta-btn,
.drawer-handle-bar {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Off-screen Card Skipping (Core Web Vitals LCP/INP Acceleration) */
.menu-list-layout > .menu-card,
.menu-list-layout > .swiggy-card {
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 0 160px;
}

/* GPU-Accelerated Bottom Sheets & Over-scroll Containment */
.drawer.open,
#drawer.open,
.history-overlay.open,
#historyOverlay.open,
#customerChatOverlay.open,
#paymentOverlay.open {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
}

.drawer:not(.open),
#drawer:not(.open) {
  transform: translate(-50%, 100%) !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 640px) {
  .drawer:not(.open),
  #drawer:not(.open) {
    transform: translateY(100%) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .drawer.open,
  #drawer.open {
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.drawer-body,
#drawerBody,
.history-body,
#orderHistoryList {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================================= */
/* UNIVERSAL QUANTITY & PORTION SELECTOR BOTTOM SHEET (ARGON-TIER LUXURY)    */
/* ========================================================================= */

.quantity-selector-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.quantity-selector-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quantity-selector-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #0d0a06;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.85), 0 0 2px rgba(212, 175, 55, 0.4);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: manipulation;
}

.quantity-selector-overlay.open .quantity-selector-sheet {
  transform: translate3d(0, 0, 0);
}

.qty-sheet-header {
  padding: 8px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.qty-sheet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 36px;
}

.qty-sheet-dish-title {
  font-size: 17px;
  font-weight: 800;
  color: #fef3c7;
  margin: 0;
  line-height: 1.3;
}

.qty-sheet-subtitle {
  font-size: 11.5px;
  color: #a8a29e;
  margin-top: 3px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.qty-sheet-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f4ede0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.qty-sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.qty-sheet-options {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.qty-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.qty-variant-row.in-cart {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.qty-var-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qty-var-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-var-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  flex: 0 0 14px;
  transition: all 0.2s;
}

.qty-var-radio.selected {
  border-color: #D4AF37;
  background: radial-gradient(circle, #D4AF37 40%, transparent 45%);
}

.qty-var-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4ede0;
}

.qty-var-unit-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.12);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.qty-var-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #D4AF37;
  margin-left: 22px;
}

.qty-var-stepper-wrap {
  flex: 0 0 auto;
}

.qty-var-stepper-wrap .mini-btn {
  padding: 5px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.qty-sheet-footer {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #120e08;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qty-sheet-total-box {
  display: flex;
  flex-direction: column;
}

.qty-sheet-done-btn {
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4AF37, #B8960C);
  color: #0d0a06;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.qty-sheet-done-btn:active {
  transform: scale(0.97);
}

/* Card Button States for Variants */
.dish-add-cta-btn.active-in-cart {
  background: rgba(212, 175, 55, 0.16) !important;
  border: 1.5px solid #D4AF37 !important;
  color: #D4AF37 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.var-active-count {
  font-weight: 900;
  background: #D4AF37;
  color: #0d0a06;
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 10px;
  margin-right: 2px;
}


