/* ==========================================================================
   LUNAR CAFE - TALABAT-INSPIRED FOOD ORDERING DESIGN SYSTEM
   Mobile-First, Responsive, Production-Ready
   ========================================================================== */

:root {
  --primary: #181C24;
  --primary-light: #2A303C;
  --accent: #FF5B22;
  --accent-hover: #E04812;
  --accent-light: #FFF0EB;
  --secondary: #FFFDF9;
  --bg-main: #F6F7F9;
  --surface: #FFFFFF;
  --border: #E8ECEF;
  --border-light: #F0F2F5;
  --text-main: #181C24;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --veg: #0F8A5F;
  --nonveg: #E23744;
  --egg: #F59E0B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 8px 24px rgba(255, 91, 34, 0.28);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-height: 64px;
  --bottom-bar-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Layout Container */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  background: var(--surface);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
}

/* Top Sticky Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  transition: box-shadow 0.2s ease;
}

.app-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Table Pill Badge */
.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF0EB;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 91, 34, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-pill:hover {
  background: #FFE4DA;
}

.table-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 91, 34, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 91, 34, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 91, 34, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 91, 34, 0); }
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  position: relative;
  transition: background 0.2s;
}

.header-icon-btn:hover {
  background: var(--border);
}

.cart-counter-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Missing Table Alert Banner */
.table-alert-banner {
  background: linear-gradient(90deg, #FFF7ED 0%, #FEF3C7 100%);
  border-bottom: 1px solid #FDE68A;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #92400E;
}

.table-alert-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.table-alert-btn {
  background: #F59E0B;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero Welcome Banner */
.welcome-hero {
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.welcome-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.welcome-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Search Bar */
.search-container {
  padding: 8px 16px 14px;
  background: var(--surface);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 10px 40px 10px 42px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 34, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear-btn.visible {
  display: flex;
}

/* Sticky Category Rail */
.category-rail-wrapper {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-rail {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.cat-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(24, 28, 36, 0.15);
}

/* Filter Tag Row (Veg only, Spicy, Featured) */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter-chip.active {
  background: #FFF0EB;
  border-color: var(--accent);
  color: var(--accent);
}

.diet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.diet-dot.veg { background: var(--veg); }
.diet-dot.nonveg { background: var(--nonveg); }

/* Menu Sections & Food Items */
.menu-container {
  padding: 8px 16px 24px;
}

.category-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.category-item-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Talabat-Style Food Item Card */
.food-card {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.food-card:hover {
  border-color: #D1D5DB;
  box-shadow: var(--shadow-sm);
}

.food-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.food-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.diet-badge-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex-shrink: 0;
}

.spicy-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 2px 6px;
  border-radius: 4px;
}

.featured-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.food-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.food-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

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

.food-custom-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* Right Side: Image & Add Stepper */
.food-media-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  transition: transform 0.2s ease;
}

.food-card:hover .food-image {
  transform: scale(1.03);
}

/* Talabat-Style ADD Button & Quantity Stepper */
.btn-add-action {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-action:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 91, 34, 0.35);
}

.btn-add-action:active {
  transform: translateX(-50%) scale(0.96);
}

/* Quantity Stepper [ - ] [ count ] [ + ] */
.qty-stepper {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90px;
  height: 32px;
  padding: 0 4px;
  box-shadow: 0 4px 12px rgba(255, 91, 34, 0.35);
}

.stepper-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.stepper-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.stepper-count {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

/* Sold Out State */
.food-card.sold-out {
  opacity: 0.65;
  filter: grayscale(0.5);
}

.sold-out-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #64748B;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Empty State / Search Not Found */
.empty-menu-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-light);
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Fixed Bottom Floating Cart Bar (Talabat Style) */
.bottom-cart-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 648px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  height: 56px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
  z-index: 90;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.bottom-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

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

.cart-bar-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-bar-price {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.cart-bar-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.cart-bar-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.bottom-cart-bar:hover .cart-bar-arrow {
  transform: translateX(4px);
}

/* Modal & Drawer Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet by default */
  justify-content: center;
}

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

/* Slide-Up Bottom Drawer (Cart) */
.cart-drawer {
  background: var(--surface);
  width: 100%;
  max-width: 680px;
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .cart-drawer {
  transform: translateY(0);
}

/* Center Modal (Customisation, Table Picker, WhatsApp Handoff) */
.center-modal-card {
  background: var(--surface);
  width: calc(100% - 32px);
  max-width: 480px;
  border-radius: 20px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: auto;
  margin-top: auto;
}

.modal-overlay.active .center-modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.15s ease;
}

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

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}

/* Cart Items Breakdown */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  gap: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.cart-item-opts {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cart-item-instruction-badge {
  font-size: 0.75rem;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.cart-item-stepper button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-stepper span {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 60px;
  text-align: right;
}

/* Bill Breakdown Card */
.bill-summary-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bill-line.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* Order Instructions Input */
.order-note-wrapper {
  margin-top: 14px;
}

.order-note-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

.order-note-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  resize: none;
  height: 60px;
}

.order-note-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* WhatsApp Primary Button */
.btn-place-order-wa {
  width: 100%;
  height: 52px;
  background: #25D366; /* WhatsApp Green */
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-place-order-wa:hover {
  background: #20BA5A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-place-order-wa:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Customisation Modal Elements */
.custom-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-option-label:hover {
  background: var(--bg-main);
}

.custom-option-label input[type="radio"]:checked ~ .custom-opt-text,
.custom-option-label input[type="checkbox"]:checked ~ .custom-opt-text {
  font-weight: 700;
  color: var(--accent);
}

.custom-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-opt-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* WhatsApp Handoff Confirmation Screen */
.handoff-content {
  text-align: center;
  padding: 24px 16px;
}

.handoff-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #E8FBF0;
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.12);
}

.handoff-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.handoff-order-badge {
  display: inline-block;
  background: var(--bg-main);
  border: 1px dashed var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.handoff-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.handoff-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-handoff-retry {
  height: 48px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-handoff-done {
  height: 44px;
  background: var(--bg-main);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid var(--border);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: #181C24;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Skeleton Loading Screens */
.skeleton-card {
  display: flex;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  gap: 14px;
  margin-bottom: 12px;
}

.skeleton-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-box {
  background: linear-gradient(90deg, #F0F2F5 25%, #E4E7EB 50%, #F0F2F5 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (min-width: 681px) {
  body {
    background-color: #ECEFF1;
  }
  .app-container {
    margin: 20px auto 40px;
    border-radius: 20px;
    overflow: hidden;
    min-height: calc(100vh - 60px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }
  .app-header {
    border-radius: 20px 20px 0 0;
  }
}

/* ==========================================================================
   DIRECT UPI & CASH PAYMENT FLOWS (LUNAR CAFE)
   ========================================================================== */

/* Payment Selection in Cart Drawer */
.payment-selection-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pay-method-card {
  display: block;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FFFFFF;
  box-sizing: border-box;
}

.pay-method-card:last-child {
  margin-bottom: 0;
}

.pay-method-card.active {
  border-color: #FF5B22;
  background: #FFF9F5;
  box-shadow: 0 4px 14px rgba(255, 91, 34, 0.12);
}

#payMethodCashCard.active {
  border-color: #10B981;
  background: #F0FDF4;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.pay-method-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.pay-method-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.pay-radio-visual {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: #FFFFFF;
  box-sizing: border-box;
}

.pay-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

.pay-method-card.active .pay-radio-visual {
  border-color: #FF5B22;
}

.pay-method-card.active .pay-radio-dot {
  background: #FF5B22;
}

#payMethodCashCard.active .pay-radio-visual {
  border-color: #10B981;
}

#payMethodCashCard.active .pay-radio-dot {
  background: #10B981;
}

.pay-method-details {
  flex: 1;
}

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

.pay-method-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.pay-badge-upi {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #EA580C;
  background: #FFEDD5;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.pay-badge-cash {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #059669;
  background: #D1FAE5;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.pay-method-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.upi-apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.upi-app-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  padding: 2.5px 7px;
  border-radius: 5px;
  display: inline-block;
}

/* Cash Sub-choices */
.cash-suboptions-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #CBD5E1;
}

.cash-sub-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.cash-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cash-pill-option {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.cash-pill-option input[type="radio"] {
  display: none;
}

.cash-pill-option.active {
  border-color: #059669;
  background: #ECFDF5;
  color: #065F46;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.18);
}

/* UPI Payment Modal */
.upi-modal-card {
  max-width: 440px;
  width: 92%;
}

.upi-order-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #FF5B22;
  background: #FFEBE4;
  padding: 3px 8px;
  border-radius: 6px;
}

.upi-amount-box {
  background: linear-gradient(135deg, #181C24 0%, #2B3340 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.upi-amount-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
  margin-bottom: 4px;
}

.upi-amount-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.upi-merchant-details {
  font-size: 0.76rem;
  color: #CBD5E1;
  margin-top: 6px;
}

.upi-merchant-details code {
  color: #FF7D4F;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Pay with UPI App Intent */
.upi-intent-action-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.btn-pay-upi-intent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: #FF5B22;
  color: #FFFFFF;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 91, 34, 0.35);
  transition: all 0.2s ease;
}

.btn-pay-upi-intent:hover {
  background: #E04B16;
  color: #FFFFFF;
}

.upi-intent-sub {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 5px;
}

.upi-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.upi-or-divider::before,
.upi-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.upi-or-divider span {
  padding: 0 10px;
}

/* Dynamic QR Code Render Card */
.upi-qr-card-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.upi-qr-render-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
  margin: 0 auto;
}

.upi-qr-render-box img,
.upi-qr-render-box canvas {
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #F1F5F9;
}

.upi-qr-scan-hint {
  font-size: 0.76rem;
  color: #64748B;
  margin: 8px 0 0 0;
  font-weight: 600;
}

/* Verification Notice Alert */
.upi-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.upi-alert-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.upi-alert-text {
  font-size: 0.75rem;
  color: #92400E;
  line-height: 1.4;
}

.upi-alert-text strong {
  color: #78350F;
}

/* Optional UTR Input */
.upi-utr-group {
  margin-bottom: 14px;
}

.upi-utr-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.upi-utr-input {
  width: 100%;
  height: 40px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  outline: none;
  background: #FFFFFF;
}

.upi-utr-input:focus {
  border-color: #FF5B22;
  box-shadow: 0 0 0 3px rgba(255, 91, 34, 0.15);
}

/* Payment Claimed State Notice */
.upi-claimed-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  animation: fadeIn 0.3s ease;
}

.claimed-badge-icon {
  font-size: 1.3rem;
}

.claimed-badge-body strong {
  display: block;
  font-size: 0.85rem;
  color: #065F46;
  margin-bottom: 4px;
}

.claimed-badge-body p {
  font-size: 0.77rem;
  color: #047857;
  margin: 0;
  line-height: 1.4;
}

.btn-claim-payment {
  width: 100%;
  height: 48px;
  background: #181C24;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(24, 28, 36, 0.2);
}

.btn-claim-payment:hover {
  background: #2D3748;
}

.btn-claim-payment:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cash Confirmation Modal */
.cash-modal-card {
  max-width: 420px;
  width: 90%;
}

.cash-success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.cash-confirmation-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #166534;
  line-height: 1.4;
}

/* Demo Payment & Simulation Styles */
.demo-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.demo-payment-badge .demo-dot {
  color: #EA580C;
  font-size: 0.7rem;
  line-height: 1;
}

.demo-payment-pill {
  display: inline-block;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 6px;
}

/* WhatsApp Configuration Notice */
.wa-config-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0 6px 0;
  text-align: left;
}

.wa-config-notice .wa-notice-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

.wa-config-notice .wa-notice-body strong {
  display: block;
  font-size: 0.8rem;
  color: #92400E;
  margin-bottom: 2px;
}

.wa-config-notice .wa-notice-body span {
  font-size: 0.74rem;
  color: #B45309;
  line-height: 1.35;
  display: block;
}

.config-alert-box {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #991B1B;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 12px 0 8px 0;
  text-align: left;
}

/* Disabled state for WhatsApp action buttons */
.btn-handoff-retry.disabled,
.btn-handoff-retry:disabled {
  background: #94A3B8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

