/* ==============================================================================
   KENJI'S KITCHEN - FOODPANDA-INSPIRED MOBILE-FIRST DESIGN SYSTEM (v1.1.0)
   Color Palette: Warm Ochre Gold (#F2C12E), Slate Charcoal (#232323), Fresh Cream (#F9F9F9)
   Responsive mobile layout, category pills, bottom floating cart, >=48px touch targets
   ============================================================================== */

:root {
  --primary: #F2C12E;
  --primary-hover: #E0B028;
  --primary-light: rgba(242, 193, 46, 0.14);
  --dark: #232323;
  --dark-light: #333333;
  --white: #FFFFFF;
  --bg: #F8F9FA;
  --soft: #F1F3F5;
  --border: #E9ECEF;
  --border-focus: #D0D5DD;
  --text: #1F2937;
  --muted: #6B7280;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --touch-target: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 96px; /* Spacing for bottom floating cart bar */
}

/* ==============================================================================
   1. STICKY TOP HEADER & SEARCH (FOODPANDA-INSPIRED)
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--dark);
}

.brand-info h1 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Fulfillment Mode Toggle (Delivery vs Pickup vs Dine-In) */
.fulfillment-toggle {
  display: inline-flex;
  background: var(--soft);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.fulfillment-btn {
  border: none;
  background: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  min-height: 34px;
  transition: all 0.2s ease;
}

.fulfillment-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

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

.nav-btn {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: var(--soft);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
}

/* Search Bar */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 0 16px 0 42px;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.checkout-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 0 14px;
  font-size: 0.92rem;
  color: var(--text);
  text-align: left;
  outline: none;
  transition: all 0.2s ease;
}

.checkout-input:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.otp-input {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 0 14px;
  text-align: center;
  letter-spacing: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
  pointer-events: none;
}

/* ==============================================================================
   2. HORIZONTAL SCROLLABLE CATEGORY PILLS BAR
   ============================================================================== */
.category-strip-wrapper {
  position: sticky;
  top: 114px;
  z-index: 950;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-strip {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f1f1;
}

/* Visible styled scrollbar for touch / gadget / mobile devices */
.category-strip::-webkit-scrollbar {
  height: 6px;
}

.category-strip::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
  margin: 0 16px;
}

.category-strip::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 9999px;
}

.category-strip::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.cat-pill {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(242, 193, 46, 0.35);
}

/* ==============================================================================
   3. FOOD ITEM CARDS (TWO-COLUMN MOBILE GRID)
   ============================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* ==============================================================================
   WELCOMING HERO BANNER & RESPONSIVE LANDING SECTION (STEP 3)
   ============================================================================== */
.welcome-hero-section {
  margin-bottom: 24px;
}

.welcome-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  background: #fdf6ec;
}

.welcome-hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.welcome-hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(253, 246, 236, 0.3) 0%, rgba(253, 246, 236, 0.95) 85%);
  margin-top: -12px;
  border-top: 1px solid rgba(220, 200, 180, 0.4);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #7c2d12;
  text-transform: uppercase;
}

.hero-side-badge {
  font-size: 0.8rem;
  font-weight: 700;
  font-style: italic;
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-center-body {
  text-align: center;
  margin: 8px 0 16px;
}

.hero-welcome-title {
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 900;
  color: #451a03;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hero-subheading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 14px;
}

.hero-cta-card {
  background: var(--white);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.hero-cta-text {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hero-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  background: #d97706;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.hero-order-btn:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.45);
}

.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(180, 83, 9, 0.2);
}

.hero-badge-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  min-height: 36px;
}

.badge-icon {
  font-size: 0.9rem;
}

/* Device-Adaptive Responsive Layouts */
@media (min-width: 1024px) {
  .welcome-hero-banner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
  .welcome-hero-bg-img {
    height: 100%;
    min-height: 380px;
  }
  .welcome-hero-overlay {
    margin-top: 0;
    padding: 24px 30px;
    height: 100%;
    justify-content: center;
    background: #fdf6ec;
  }
  .hero-welcome-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .welcome-hero-overlay {
    padding: 20px;
  }
  .hero-welcome-title {
    font-size: 2rem;
  }
  .hero-badge-grid {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .welcome-hero-section {
    margin-bottom: 16px;
  }
  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-welcome-title {
    font-size: 1.6rem;
  }
  .hero-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hero-side-badge {
    text-align: center;
  }
  .hero-badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 6px;
  }
  .hero-badge-pill {
    min-height: 48px;
    justify-content: center;
  }
  .hero-order-btn {
    width: 100%;
  }
}


.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .food-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .food-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.food-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.food-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.food-card.out-of-stock {
  opacity: 0.6;
  filter: grayscale(85%);
  cursor: not-allowed;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--soft);
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-card.out-of-stock.drink-card {
  opacity: 1;
  filter: none;
  cursor: pointer;
}

.card-img-wrapper.drink-photo,
.modal-hero-img.drink-photo {
  background: #fff;
}

.card-img-wrapper.drink-photo img {
  object-fit: contain;
  padding: 8px;
}

.stock-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(35, 35, 35, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

body.dark-mode .stock-tag {
  background: rgba(32, 37, 43, 0.94);
  border: 1px solid rgba(241, 243, 245, 0.28);
  color: #F1F3F5;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.stock-tag.low-stock {
  background: rgba(239, 68, 68, 0.9);
}

.stock-tag.sold-out {
  background: #EF4444;
}

body.dark-mode .stock-tag.low-stock,
body.dark-mode .stock-tag.sold-out {
  background: #C93B36;
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.favorite-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.favorite-toggle.active {
  color: #D94841;
}

body.dark-mode .favorite-toggle {
  background: rgba(37, 43, 51, 0.94);
  border-color: rgba(241, 243, 245, 0.65);
  color: #E7E9EC;
}

body.dark-mode .favorite-toggle.active {
  color: #FF7770;
}

.promo-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}

.food-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.food-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.food-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.food-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.food-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
}

.old-price {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Interactive "+" Add Button (touch target >= 48px) */
.btn-quick-add {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-quick-add:active {
  transform: scale(0.92);
}

.btn-quick-add:hover {
  background: var(--primary-hover);
}

.btn-quick-add:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

/* ==============================================================================
   4. FLOATING BOTTOM CART BAR / SHEET
   ============================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar:active {
  transform: scale(0.98);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-count-badge {
  background: var(--primary);
  color: var(--dark);
  font-weight: 900;
  font-size: 0.85rem;
  min-width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}

.cart-bar-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-bar-total {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
}

.cart-bar-btn {
  background: var(--primary);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   5. SLIDE-UP CHECKOUT DRAWER / CART SHEET
   ============================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 25px rgba(0,0,0,0.18);
  z-index: 1200;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.drawer-sheet.active {
  transform: translateY(0);
}

.drawer-handle {
  width: 44px;
  height: 5px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.drawer-content {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.cart-item-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.cart-item-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cart-item-info strong {
  font-size: 0.95rem;
  color: var(--dark);
}

.cart-item-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-pill {
  display: flex;
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.qty-btn {
  min-width: 38px;
  min-height: 38px;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.item-notes-text {
  font-size: 0.8rem;
  color: #D97706;
  background: #FFFBEB;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
  display: inline-block;
}

/* ==============================================================================
   6. CUSTOMER SPECIAL INSTRUCTIONS / ITEM NOTES
   ============================================================================== */
.instructions-container {
  margin-top: 14px;
}

.instructions-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.instructions-textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--soft);
  font-size: 0.85rem;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.instructions-textarea:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==============================================================================
   7. MODALS (ITEM DETAIL, AUTHENTICATION, OTP)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-hero-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--soft);
}

.modal-hero-img.drink-photo {
  object-fit: contain;
  padding: 8px;
}

.drink-flavor-section {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--soft);
}

.drink-flavor-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.drink-flavor-section label span {
  color: var(--danger);
}

.drink-flavor-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.payment-option-unavailable {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.gcash-payment-panel {
  margin: 2px 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--soft);
  text-align: center;
}

.gcash-payment-title {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.gcash-payment-title i {
  margin-right: 5px;
  color: var(--primary);
}

.gcash-qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.gcash-qr-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.gcash-qr-frame.loaded .gcash-qr-image {
  display: block;
}

.gcash-qr-unavailable {
  display: none;
  max-width: 155px;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}

.gcash-qr-frame.unavailable .gcash-qr-unavailable {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.gcash-qr-unavailable i {
  color: #94A3B8;
  font-size: 2rem;
}

.gcash-number-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.gcash-number-line strong {
  margin-left: 5px;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.gcash-payment-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.modal-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}

.btn-primary {
  width: 100%;
  min-height: var(--touch-target);
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(242, 193, 46, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
}

.customer-tools-modal {
  width: min(620px, 94vw);
  max-width: 620px;
  max-height: min(82vh, 760px);
  overflow-y: auto;
}

.customer-orders-modal {
  overflow: hidden;
}

.customer-orders-modal > .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.customer-orders-modal h2 {
  padding-right: 48px;
}

.customer-orders-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 1.25rem;
  line-height: 1;
}

.customer-orders-close:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.customer-tools-modal h2 {
  margin: 0 38px 8px 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.customer-account-name {
  color: var(--muted);
  margin-bottom: 20px;
}

.customer-tools-actions {
  display: grid;
  gap: 10px;
}

.customer-tools-actions .btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.customer-tools-actions .customer-secondary-action {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.customer-signout-action {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.customer-orders-list,
.customer-favorites-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.customer-order-row,
.customer-favorite-row {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--soft);
  border: 1px solid var(--border);
}

.customer-order-top,
.customer-favorite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.customer-order-row p,
.customer-favorite-row p {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 6px 0 10px;
}

.customer-order-actions,
.customer-favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-order-actions button,
.customer-favorite-actions button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-order-actions button:hover,
.customer-favorite-actions button:hover {
  border-color: var(--primary);
}

.customer-order-actions button.active {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: var(--dark);
}

.customer-orders-section {
  margin-top: 18px;
}

.customer-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 10px;
}

.customer-order-row.is-selected-tracking {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.order-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.16);
  color: #A66500;
  font-size: 0.76rem;
  font-weight: 800;
}

.order-status-chip.pending,
.order-status-chip.cancellation-requested {
  background: rgba(245, 158, 11, 0.16);
  color: #A66500;
}
.order-status-chip.preparing {
  background: rgba(59, 130, 246, 0.16);
  color: #1D4ED8;
}
.order-status-chip.ready {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}
.order-status-chip.rider-assigned,
.order-status-chip.out-for-delivery {
  background: rgba(59, 130, 246, 0.16);
  color: #1D4ED8;
}
.order-status-chip.delivered {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}
.order-status-chip.delivery-attempt-failed,
.order-status-chip.refunded,
.order-status-chip.voided {
  background: rgba(239, 68, 68, 0.16);
  color: #B91C1C;
}
.order-status-chip.served {
  background: rgba(107, 114, 128, 0.16);
  color: #374151;
}
.order-status-chip.cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #B91C1C;
}

body.dark-mode .order-status-chip {
  color: #FFD27A;
}
body.dark-mode .order-status-chip.pending,
body.dark-mode .order-status-chip.cancellation-requested {
  color: #FFD27A;
  background: rgba(245, 158, 11, 0.22);
}
body.dark-mode .order-status-chip.preparing {
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.22);
}
body.dark-mode .order-status-chip.ready {
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.22);
}
body.dark-mode .order-status-chip.rider-assigned,
body.dark-mode .order-status-chip.out-for-delivery {
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.22);
}
body.dark-mode .order-status-chip.delivered {
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.22);
}
body.dark-mode .order-status-chip.delivery-attempt-failed,
body.dark-mode .order-status-chip.refunded,
body.dark-mode .order-status-chip.voided {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.25);
}
body.dark-mode .order-status-chip.served {
  color: #D1D5DB;
  background: rgba(107, 114, 128, 0.25);
}
body.dark-mode .order-status-chip.cancelled {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.25);
}

.order-tracking-panel {
  margin-top: 14px;
}

.tracking-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tracking-card h3 {
  margin: 0 0 6px;
  color: var(--dark);
  font-size: 1rem;
}

.tracking-close-btn {
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tracking-close-btn:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--text);
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0 14px;
}
.tracking-steps.delivery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tracking-step {
  position: relative;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.tracking-step-label {
  display: block;
}

.tracking-step-time {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.tracking-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-focus);
}

.tracking-step.complete,
.tracking-step.current {
  color: var(--text);
  font-weight: 800;
}

.tracking-step.complete::before,
.tracking-step.current::before {
  background: var(--primary);
}

.tracking-items {
  margin: 12px 0 0;
  padding: 12px 0 0 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
}

.tracking-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.tracking-item-notes {
  font-size: 0.76rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.tracking-poll-warning {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  color: #B45309;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-pulse {
  display: inline-block;
  color: #10B981;
  font-size: 0.8rem;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.tracking-cancelled-banner {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #B91C1C;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .customer-section-heading {
  color: #F1F3F5;
}
body.dark-mode .customer-order-row.is-selected-tracking {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
body.dark-mode .customer-order-actions button,
body.dark-mode .customer-favorite-actions button {
  background: #303943;
  color: #E7E9EC;
  border-color: #454F5B;
}
body.dark-mode .customer-order-actions button:hover,
body.dark-mode .customer-favorite-actions button:hover {
  border-color: #F59E0B;
  color: #F59E0B;
}
body.dark-mode .customer-order-actions button.active {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #1F2937;
}
body.dark-mode .tracking-card {
  background: #272E36;
  border-color: #454F5B;
}
body.dark-mode .tracking-card h3 {
  color: #F1F3F5;
}
body.dark-mode .tracking-close-btn {
  background: #3B4652;
  color: #D5D9DE;
  border-color: #454F5B;
}
body.dark-mode .tracking-close-btn:hover {
  background: #4A5663;
  color: #FFFFFF;
}
body.dark-mode .tracking-poll-warning {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
}
body.dark-mode .tracking-cancelled-banner {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

.receipt-email-status {
  min-height: 1.2em;
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ==============================================================================
   8. KITCHEN DISPLAY SYSTEM (KDS) & CASHIER POS TICKET CARDS
   ============================================================================== */
.kds-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kds-card.pending {
  border-top: 5px solid var(--primary);
}

.kds-card.preparing {
  border-top: 5px solid var(--dark);
}

.kds-card.ready {
  border-top: 5px solid var(--success);
}

.kds-item-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Toast message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  max-width: calc(100vw - 32px);
  text-align: center;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Unified Auth Modal — Sign In & Register with OTP
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modal card sizing */
.auth-modal-card {
  max-width: 420px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

/* ── Tab bar ── */
.auth-tabs {
  display: flex;
  background: #f7f7f7;
  border-bottom: 2px solid #eeeeee;
}

.auth-tab {
  flex: 1;
  padding: 14px 10px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.auth-tab:hover {
  color: #f59e0b;
  background: #fff8e1;
}

.auth-tab.active {
  color: #111111;
  background: #ffffff;
  border-bottom-color: #f59e0b;
}

/* ── Sub-heading text ── */
.auth-sub {
  font-size: 0.83rem;
  color: #888888;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* ── Email / SMS type pills ── */
.auth-type-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-type-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #888888;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.auth-type-pill:hover {
  border-color: #f59e0b;
  color: #b37700;
  background: #fffbe6;
}

.auth-type-pill.active {
  background: #fff8e1;
  border-color: #f59e0b;
  color: #111111;
}

/* ── Form fields ── */
.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333333;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.9rem;
  background: #f9f9f9;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-input:focus {
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

/* ── Primary action button ── */
.auth-btn-primary {
  width: 100%;
  height: 50px;
  background: #f59e0b;
  color: #111111;
  border: none;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transition: background 0.18s, transform 0.1s;
}

.auth-btn-primary:hover  { background: #e08e00; }
.auth-btn-primary:active { transform: scale(0.98); }
.auth-btn-primary:disabled {
  background: #d4d4d4;
  color: #888888;
  cursor: not-allowed;
}

/* ── OTP step: shield icon ── */
.auth-otp-icon {
  text-align: center;
  font-size: 2.8rem;
  color: #f59e0b;
  margin-bottom: 10px;
}

.auth-otp-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
  color: #111111;
}

.auth-otp-title span {
  color: #f59e0b;
}

/* ── Six individual OTP digit boxes ── */
.auth-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.auth-otp-box {
  width: 46px;
  height: 54px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #111111;
  background: #f9f9f9;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  caret-color: #f59e0b;
}

.auth-otp-box:focus {
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.auth-otp-box.filled {
  border-color: #f59e0b;
  background: #fffbe6;
}

/* ── Timer row ── */
.auth-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 14px;
}

/* ── Back button ── */
.auth-btn-back {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  transition: border-color 0.18s, color 0.18s;
}

.auth-btn-back:hover {
  border-color: #aaaaaa;
  color: #111111;
}

/* ── Resend row ── */
.auth-resend-row {
  text-align: center;
  font-size: 0.8rem;
  color: #888888;
  margin-top: 14px;
}

.auth-resend-btn {
  background: none;
  border: none;
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.auth-resend-btn:disabled {
  color: #bbbbbb;
  cursor: not-allowed;
  text-decoration: none;
}

/* ── Responsive: narrow screens ── */
@media (max-width: 480px) {
  .auth-otp-box {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .auth-otp-boxes {
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DAY & NIGHT MODE (DARK THEME) STYLES
   Accent color: #f59e0b
   Soft charcoal surfaces and low-glare neutral text
   ═══════════════════════════════════════════════════════════════════════════ */

/* Theme Toggle Button in Header */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: #fef3c7;
  color: #d97706;
  border-color: #f59e0b;
}

/* ── Soft charcoal theme ── */
body.dark-mode {
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-light: rgba(245, 158, 11, 0.18);
  --bg: #252B33;
  --white: #303943;
  --soft: #39434F;
  --border: #454F5B;
  --border-focus: #667381;
  --text: #E7E9EC;
  --muted: #B0B8C2;
  --dark: #F1F3F5;
  background-color: #252B33 !important;
  color: #E7E9EC !important;
}

body.dark-mode .navbar {
  background-color: #303943;
  border-bottom-color: #454F5B;
}

body.dark-mode .welcome-hero-banner,
body.dark-mode .welcome-hero-overlay {
  background: #303943;
  border-color: #454F5B;
}

body.dark-mode .hero-tagline,
body.dark-mode .hero-welcome-title {
  color: #F1F3F5;
}

body.dark-mode .hero-subheading,
body.dark-mode .hero-side-badge {
  color: #E7E9EC;
}

body.dark-mode .hero-side-badge {
  background: rgba(245, 158, 11, 0.16);
}

body.dark-mode .hero-cta-card {
  background: #39434F;
  border-color: #59636F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

body.dark-mode .hero-cta-text {
  color: #D5D9DE;
}

body.dark-mode .hero-order-btn {
  background: #F59E0B;
  color: #252B33;
}

body.dark-mode .hero-order-btn:hover {
  background: #FBBF24;
}

body.dark-mode .hero-bottom-row {
  border-top-color: #59636F;
}

body.dark-mode .hero-badge-pill {
  box-shadow: none;
}

body.dark-mode .brand-info h1 {
  color: #F1F3F5;
}

body.dark-mode .brand-info span {
  color: #B0B8C2;
}

body.dark-mode .search-wrapper {
  background: #272E36;
  border: 1px solid #454F5B;
}

body.dark-mode .search-input {
  background: #272E36;
  color: #E7E9EC;
  border-color: #454F5B;
}

body.dark-mode .search-input::placeholder {
  color: #B0B8C2;
}

body.dark-mode .checkout-input,
body.dark-mode .otp-input {
  background: #272E36;
  color: #E7E9EC;
  border-color: #454F5B;
}

body.dark-mode .checkout-input:focus,
body.dark-mode .otp-input:focus {
  background: #1F252D;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

body.dark-mode .checkout-input::placeholder {
  color: #B0B8C2;
}

body.dark-mode .search-icon {
  color: #F59E0B;
}

body.dark-mode .category-strip-wrapper {
  background: #252B33;
  border-bottom-color: #454F5B;
}

body.dark-mode .category-pill {
  background: #303943;
  color: #D5D9DE;
  border-color: #454F5B;
}

body.dark-mode .category-pill:hover {
  background: #3B4652;
  color: #F59E0B;
  border-color: #F59E0B;
}

body.dark-mode .category-pill.active {
  background: #F59E0B;
  color: #252B33;
  border-color: #F59E0B;
}

body.dark-mode .food-card {
  background: #303943;
  border-color: #454F5B;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .food-card:hover {
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

body.dark-mode .food-card h3,
body.dark-mode .food-title {
  color: #F1F3F5 !important;
}

body.dark-mode .food-card p,
body.dark-mode .food-desc {
  color: #B0B8C2 !important;
}

body.dark-mode .food-card .price,
body.dark-mode .food-price {
  color: #FBBF24 !important;
}

body.dark-mode .food-category {
  color: #F59E0B !important;
}

body.dark-mode .nav-btn {
  background: #303943;
  border-color: #454F5B;
  color: #E7E9EC;
}

body.dark-mode .nav-btn:hover {
  background: #3B4652;
  color: #F59E0B;
  border-color: #F59E0B;
}

body.dark-mode .modal-card {
  background: #303943;
  color: #E7E9EC;
  border: 1px solid #454F5B;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .modal-title {
  color: #F1F3F5;
}

body.dark-mode .modal-price {
  color: #FBBF24;
}

body.dark-mode .instructions-label {
  color: #D5D9DE;
}

body.dark-mode .instructions-textarea {
  background: #272E36;
  border-color: #454F5B;
  color: #E7E9EC;
}

body.dark-mode .instructions-textarea:focus {
  border-color: #F59E0B;
}

body.dark-mode .qty-pill {
  background: #272E36;
  border: 1px solid #454F5B;
}

body.dark-mode .qty-pill span {
  color: #F1F3F5;
}

body.dark-mode .qty-btn {
  color: #FBBF24;
}

body.dark-mode .auth-tabs {
  background: #272E36;
  border-bottom-color: #454F5B;
}

body.dark-mode .auth-tab {
  color: #B0B8C2;
}

body.dark-mode .auth-tab.active {
  color: #F59E0B;
  background: #303943;
  border-bottom-color: #F59E0B;
}

body.dark-mode .auth-sub {
  color: #B0B8C2;
}

body.dark-mode .auth-type-pill {
  background: #272E36;
  border-color: #454F5B;
  color: #D5D9DE;
}

body.dark-mode .auth-type-pill.active {
  background: #413723;
  border-color: #F59E0B;
  color: #F59E0B;
}

body.dark-mode .auth-field label {
  color: #D5D9DE;
}

body.dark-mode .auth-input {
  background: #272E36;
  border-color: #454F5B;
  color: #E7E9EC;
}

body.dark-mode .auth-input:focus {
  background: #303943;
  border-color: #F59E0B;
}

body.dark-mode .auth-otp-box {
  background: #272E36;
  border-color: #454F5B;
  color: #E7E9EC;
}

body.dark-mode .auth-otp-box:focus {
  background: #303943;
  border-color: #f59e0b;
}

body.dark-mode .auth-otp-box.filled {
  background: #413723;
  border-color: #f59e0b;
}

body.dark-mode .auth-btn-back {
  border-color: #454F5B;
  color: #D5D9DE;
}

body.dark-mode .auth-btn-back:hover {
  border-color: #667381;
  color: #F1F3F5;
}

body.dark-mode .btn-close-modal {
  background: #3B4652;
  color: #E7E9EC;
}

body.dark-mode .btn-close-modal:hover {
  background: #4A5663;
}

body.dark-mode .cart-drawer,
body.dark-mode .drawer-sheet {
  background: #303943;
  color: #E7E9EC;
  border-left-color: #454F5B;
  border-top-color: #454F5B;
}

body.dark-mode .drawer-header,
body.dark-mode .cart-header,
body.dark-mode .cart-footer {
  background: #272E36;
  border-color: #454F5B;
}

body.dark-mode .drawer-handle {
  background: #667381;
}

body.dark-mode .cart-item {
  border-bottom-color: #454F5B;
}

body.dark-mode .cart-item-title {
  color: #F1F3F5;
}

body.dark-mode .floating-cart-bar {
  background: #303943;
  border-color: #454F5B;
  box-shadow: 0 10px 30px rgba(0,0,0,0.32);
}

body.dark-mode .floating-cart-bar .cart-bar-title {
  color: #F1F3F5;
}

body.dark-mode .floating-cart-bar .cart-bar-total {
  color: #FBBF24;
}

body.dark-mode .fulfillment-toggle {
  background: #272E36;
  border-color: #454F5B;
}

body.dark-mode .fulfillment-btn {
  color: #B0B8C2;
}

body.dark-mode .fulfillment-btn.active {
  background: #F59E0B;
  color: #252B33;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════
   INTERACTIVE NOODLE / PASTA SIZE PICKER COMPONENT STYLING
   ═══════════════════════════════════════════════════════════════════════════ */

.size-picker-section {
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
}

.size-picker-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.size-picker-title i {
  color: var(--primary);
  font-size: 1rem;
}

.size-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Individual size selection card / pill */
.size-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.size-option-card:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.04);
}

.size-option-card.selected {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.size-info-col {
  display: flex;
  flex-direction: column;
}

.size-name-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.size-price-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #D97706;
}

.size-radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.size-option-card.selected .size-radio-indicator {
  border-color: #F59E0B;
  background: #F59E0B;
}

.size-option-card.selected .size-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* Dark Mode Overrides for Size Picker */
body.dark-mode .size-picker-section {
  background: #272E36;
  border-color: #454F5B;
}

body.dark-mode .size-picker-title {
  color: #F1F3F5;
}

body.dark-mode .size-option-card {
  background: #303943;
  border-color: #454F5B;
}

body.dark-mode .size-option-card:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

body.dark-mode .size-option-card.selected {
  border-color: #F59E0B;
  background: #413723;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

body.dark-mode .size-name-tag {
  color: #E7E9EC;
}

body.dark-mode .size-price-tag {
  color: #FBBF24;
}

body.dark-mode .size-radio-indicator {
  border-color: #667381;
}

/* Packaging Option Picker */
.packaging-picker-section {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.packaging-picker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.packaging-picker-title i {
  color: var(--primary);
  font-size: 1rem;
}

.packaging-required-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.packaging-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.packaging-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.packaging-option-card:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.04);
}

.packaging-option-card.selected {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.packaging-info-col {
  display: flex;
  flex-direction: column;
}

.packaging-name-tag {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.packaging-desc-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.packaging-radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.packaging-option-card.selected .packaging-radio-indicator {
  border-color: #F59E0B;
  background: #F59E0B;
}

.packaging-option-card.selected .packaging-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* Dark Mode Overrides for Packaging Picker */
body.dark-mode .packaging-picker-section {
  background: #272E36;
  border-color: #454F5B;
}

body.dark-mode .packaging-picker-title {
  color: #F1F3F5;
}

body.dark-mode .packaging-required-tag {
  color: #FCA5A5;
  background: #7F1D1D;
}

body.dark-mode .packaging-option-card {
  background: #303943;
  border-color: #454F5B;
}

body.dark-mode .packaging-option-card:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

body.dark-mode .packaging-option-card.selected {
  border-color: #F59E0B;
  background: #413723;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

body.dark-mode .packaging-name-tag {
  color: #E7E9EC;
}

body.dark-mode .packaging-desc-tag {
  color: #9CA3AF;
}

body.dark-mode .packaging-radio-indicator {
  border-color: #667381;
}

/* ==============================================================================
   CUSTOMER PASSWORD EYE TOGGLE
   ============================================================================== */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pw-wrap .pw-input {
  padding-right: 46px;
  width: 100%;
}

.pw-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.18s ease;
}

.pw-eye-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.pw-eye-btn:hover {
  color: #374151;
}

.pw-eye-btn:focus-visible {
  outline: 2px solid #F2C12E;
  outline-offset: 2px;
}

body.dark-mode .pw-eye-btn {
  color: #9ca3af;
}

body.dark-mode .pw-eye-btn:hover {
  color: #e5e7eb;
}
