@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #ff4722;
  --primary-hover: #e03612;
  --primary-light: #fff2ee;
  --secondary: #2b3445;
  --accent: #05a760;
  --accent-light: #e6f7ef;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg-main: #f7f9fc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(149, 157, 165, 0.12);
  --shadow-lg: 0 14px 36px rgba(255, 71, 34, 0.16);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
}

/* Quick Role Switcher Bar (Top Banner) */
.role-bar {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.role-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.role-badge {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: #38bdf8;
}

.role-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
}

.role-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.role-pill:hover, .role-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Main Navbar */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 37px;
  z-index: 40;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 48px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  border-radius: 6px;
}

.logo-area:hover .brand-logo-img {
  transform: scale(1.03);
}

[data-theme="dark"] .brand-logo-img {
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 38px;
    max-width: 140px;
  }
}

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

.nav-item-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item-btn:hover, .nav-item-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-indicator-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(255,71,34,0.2);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-indicator-btn:hover {
  background: var(--primary);
  color: #fff;
}

.cart-count-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.cart-indicator-btn:hover .cart-count-badge {
  background: #fff;
  color: var(--primary);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* Layout container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px;
}

.panel {
  display: block;
}

.hidden {
  display: none !important;
}

/* Hero & Promotional Banner */
.hero-banner {
  background: linear-gradient(135deg, #ff4722 0%, #ff6b4a 100%);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-banner::after {
  content: "🍕";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 180px;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  max-width: 580px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 20px;
}

.coupon-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.coupon-code-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* Search and Filter Section */
.search-filter-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  transition: all 0.2s;
}

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

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  color: var(--text-main);
}

/* Category Filter Pills */
.category-strip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pill {
  background: #f1f5f9;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 71, 34, 0.25);
}

/* Section Header */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.section-badge {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Restaurant Grid */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.restaurant-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.restaurant-banner-box {
  position: relative;
  height: 160px;
  background: #cbd5e1;
  overflow: hidden;
}

.restaurant-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.restaurant-card:hover .restaurant-banner-img {
  transform: scale(1.04);
}

.restaurant-status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.restaurant-status-tag.open {
  background: var(--accent);
}

.restaurant-rating-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fff;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.restaurant-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.restaurant-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Food items within restaurant */
.food-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.food-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 10px;
}

.food-details {
  display: flex;
  flex-direction: column;
}

.food-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.veg-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #16a34a;
  padding: 1px;
  border-radius: 2px;
  position: relative;
}

.veg-indicator::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  margin: 3px auto;
}

.nonveg-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #dc2626;
  padding: 1px;
  border-radius: 2px;
}

.nonveg-indicator::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  margin: 3px auto;
}

.food-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-add-food {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-add-food:hover {
  background: var(--primary);
  color: #fff;
}

/* Cart & Checkout Panel */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.cart-items-card, .order-summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-left {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 700;
  font-size: 15px;
}

.cart-item-restaurant {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-addons {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 20px;
}

.qty-btn {
  background: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

.qty-display {
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

/* Summary breakdown */
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.summary-line.total {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1.5px dashed var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
}

.btn-apply-coupon {
  background: #1e293b;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.input-field {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff6b4a);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 71, 34, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 34, 0.45);
}

/* Orders & Tracking */
.order-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.new { background: #e0f2fe; color: #0284c7; }
.status-pill.accepted { background: #fef3c7; color: #d97706; }
.status-pill.preparing { background: #ede9fe; color: #7c3aed; }
.status-pill.ready { background: #dbeafe; color: #2563eb; }
.status-pill.out-for-delivery { background: #ffedd5; color: #ea580c; }
.status-pill.delivered { background: #dcfce7; color: #16a34a; }
.status-pill.cancelled { background: #fee2e2; color: #dc2626; }

/* Interactive Simulated Map & Route */
.track-map-card {
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  position: relative;
  margin: 16px 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg-canvas {
  width: 100%;
  height: 100%;
}

.route-step-bar {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.route-step {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s;
}

.route-step.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 71, 34, 0.25);
}

.route-step.completed {
  background: #dcfce7;
  color: #16a34a;
}

/* Admin, Restaurant, & Delivery Dashboard Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.stat-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.dashboard-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.dashboard-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Action Button Rows */
.action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-accent:hover {
  background: #048d51;
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  justify-content: space-around;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 45;
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--primary);
}

.mobile-nav-icon {
  font-size: 18px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* GST Printable Invoice Modal Styling */
.invoice-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 13px;
  margin-top: 14px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.invoice-table th, .invoice-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.invoice-table th:last-child, .invoice-table td:last-child {
  text-align: right;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--accent); }
.toast.info { border-left: 4px solid #38bdf8; }
.toast.warning { border-left: 4px solid var(--warning); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #128C7E;
  color: #fff;
  transform: translateY(-1px);
}

.lang-selector {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-selector:focus {
  border-color: var(--primary);
}

/* Custom Leaflet Map Pins */
.custom-map-icon {
  background: transparent;
  border: none;
}

.map-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  border: 2.5px solid #fff;
  transition: transform 0.3s;
}

.map-icon-bubble.rest { background: #ff4722; color: #fff; }
.map-icon-bubble.cust { background: #05a760; color: #fff; }
.map-icon-bubble.rider {
  background: #0f172a;
  color: #fff;
  width: 42px;
  height: 42px;
  font-size: 22px;
  animation: pulseRider 1.5s infinite;
}

@keyframes pulseRider {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8); }
  70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .nav-center {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .hero-banner {
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 26px;
  }
  .restaurant-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PWA Install Banner --- */
.pwa-install-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-out;
}

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

/* --- FSSAI & Hygiene Badges --- */
.fssai-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 999px;
}

.hygiene-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- Interactive Star Ratings & Feedback --- */
.star-rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.15s, color 0.15s;
  padding: 0 2px;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.feedback-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-chip:hover {
  border-color: var(--primary);
  background: #fff;
}

.feedback-chip.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* CSV & Action Buttons */
.btn-export-csv {
  background: #0f766e;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-export-csv:hover {
  background: #115e59;
}

/* ============================================================= */
/* DARK MODE THEME SYSTEM                                        */
/* ============================================================= */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #151d30;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #243049;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --primary-light: rgba(255, 71, 34, 0.15);
  --accent-light: rgba(5, 167, 96, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);
}

/* Theme Toggle Button in Header */
.theme-toggle-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background: #fff;
  transform: translateY(-1px);
}

[data-theme="dark"] header {
  background: rgba(21, 29, 48, 0.94);
  border-color: #243049;
}

[data-theme="dark"] .mobile-nav {
  background: rgba(21, 29, 48, 0.95);
  border-color: #243049;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #1e293b;
  border-color: #334155;
  color: #fbbf24;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #27354f;
  border-color: #fbbf24;
}

[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .order-card,
[data-theme="dark"] .restaurant-card,
[data-theme="dark"] .cart-items-card,
[data-theme="dark"] .order-summary-card,
[data-theme="dark"] .search-filter-card {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .stat-card-title {
  color: var(--text-muted);
}

[data-theme="dark"] .nav-item-btn {
  color: #94a3b8;
}

[data-theme="dark"] .nav-item-btn:hover,
[data-theme="dark"] .nav-item-btn.active {
  color: var(--primary);
  background: rgba(255, 71, 34, 0.14);
}

[data-theme="dark"] .lang-selector,
[data-theme="dark"] .cart-indicator-btn,
[data-theme="dark"] .user-profile-badge {
  background: #101726;
  border-color: var(--border);
  color: #f1f5f9;
}

[data-theme="dark"] .invoice-table th {
  background: #101726;
  color: #94a3b8;
  border-color: var(--border);
}

[data-theme="dark"] .invoice-table td {
  border-color: var(--border);
  color: var(--text-main);
}

[data-theme="dark"] .invoice-table tr:hover {
  background: #1a243b;
}

[data-theme="dark"] .btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #283548;
}

[data-theme="dark"] .input-field,
[data-theme="dark"] .search-input {
  background: #101726;
  color: #f1f5f9;
  border-color: #243049;
}

[data-theme="dark"] .food-row,
[data-theme="dark"] .cart-item-row {
  background: #101726;
  border-color: #243049;
}

[data-theme="dark"] .modal-card {
  background: #151d30;
  color: #f1f5f9;
}

[data-theme="dark"] .notification-drawer {
  background: #151d30;
  border-color: #243049;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

[data-theme="dark"] .notif-item {
  background: #101726;
  border-color: #243049;
}

[data-theme="dark"] .notif-item:hover {
  background: #1a243b;
}

[data-theme="dark"] .category-pill {
  background: #101726;
  border-color: #243049;
  color: #94a3b8;
}

[data-theme="dark"] .category-pill.active {
  background: var(--primary);
  color: #fff;
}

/* ============================================================= */
/* NOTIFICATION DRAWER                                           */
/* ============================================================= */
.notification-wrapper {
  position: relative;
  display: inline-block;
}

.notification-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.notification-btn:hover {
  border-color: var(--primary);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

.notification-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 330px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
  animation: slideDown 0.2s ease-out;
}

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

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s;
  cursor: pointer;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #fff7ed;
}

.notif-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.notif-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================= */
/* DELIVERY OTP BADGE & VERIFICATION                            */
/* ============================================================= */
.delivery-otp-badge {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px dashed #f59e0b;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================================================= */
/* SAVED ADDRESSES GRID                                          */
/* ============================================================= */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.address-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--bg-card);
}

.address-card:hover {
  border-color: var(--primary);
}

.address-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.address-card-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ============================================================= */
/* LIVE ORDER SUPPORT CHAT                                       */
/* ============================================================= */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 380px;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg.bot {
  background: #f1f5f9;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

[data-theme="dark"] .chat-msg.bot {
  background: #1e293b;
  color: #f1f5f9;
}

.chat-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-quick-chips {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
}

.chat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.chat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================= */
/* LOYALTY WALLET STYLES                                         */
/* ============================================================= */
.wallet-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #10b981;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
}

.wallet-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  background: #a7f3d0;
}

[data-theme="dark"] .wallet-nav-btn {
  background: #064e3b;
  color: #a7f3d0;
  border-color: #059669;
}

.wallet-card-hero {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
  position: relative;
  overflow: hidden;
}

.wallet-card-hero::after {
  content: '💳';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 110px;
  opacity: 0.15;
  pointer-events: none;
}

.wallet-hero-balance {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  margin: 6px 0 4px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.wallet-topup-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.topup-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.topup-chip:hover {
  border-color: #10b981;
  color: #059669;
}

.topup-chip.selected {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

[data-theme="dark"] .topup-chip.selected {
  background: #064e3b;
  color: #a7f3d0;
  border-color: #10b981;
}

.wallet-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.wallet-ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

[data-theme="dark"] .wallet-ledger-item {
  background: #1e293b;
  border-color: #334155;
}

.wallet-ledger-title {
  font-weight: 600;
  color: var(--text-main);
}

.wallet-ledger-date {
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-amount.credit {
  color: #059669;
  font-weight: 800;
}

.wallet-amount.debit {
  color: #ef4444;
  font-weight: 800;
}

.wallet-redeem-container {
  background: #ecfdf5;
  border: 1.5px dashed #10b981;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

[data-theme="dark"] .wallet-redeem-container {
  background: rgba(6, 78, 59, 0.4);
  border-color: #059669;
}

/* ============================================================= */
/* PURE VEG FILTER & SORT SELECT                                 */
/* ============================================================= */
.pure-veg-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid #10b981;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pure-veg-toggle:hover {
  background: #ecfdf5;
}

.pure-veg-toggle.active {
  background: #10b981;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.pure-veg-toggle.active .veg-indicator {
  border-color: #fff;
}

.pure-veg-toggle.active .veg-indicator::after {
  background: #fff;
}

.sort-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--primary);
}

/* ============================================================= */
/* DISH FAVORITES (WISHLIST)                                    */
/* ============================================================= */
.btn-fav-dish {
  background: transparent;
  border: none;
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fav-dish:hover {
  transform: scale(1.3);
}

.btn-fav-dish.active {
  animation: heartPop 0.3s ease-out;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============================================================= */
/* ORDER SUBTABS (DELIVERY VS DINE-IN TABLES)                    */
/* ============================================================= */
.order-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.order-subtab {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-subtab:hover {
  color: var(--primary);
  background: rgba(255, 71, 34, 0.05);
}

.order-subtab.active {
  color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .order-subtab.active {
  background: rgba(255, 71, 34, 0.2);
  color: #ff6e4a;
}

/* ============================================================= */
/* DINE-IN TABLE RESERVATION FORM & CARDS                       */
/* ============================================================= */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.slot-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.slot-chip:hover {
  border-color: var(--primary);
}

.slot-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.guest-counter-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  overflow-x: auto;
}

.guest-chip {
  flex: 1;
  min-width: 44px;
  height: 40px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.guest-chip:hover {
  border-color: var(--primary);
}

.guest-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.occasion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px 0;
}

.occasion-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.occasion-chip:hover {
  border-color: var(--primary);
}

.occasion-chip.selected {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

[data-theme="dark"] .occasion-chip.selected {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: #ef4444;
}

/* ============================================================= */
/* VIP TABLE CONFIRMATION PASS                                   */
/* ============================================================= */
.table-pass-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

[data-theme="dark"] .table-pass-card {
  background: #1e293b;
}

.table-pass-header {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-pass-body {
  padding: 20px;
}

.table-pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.table-pass-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-pass-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.table-pass-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-book-table {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.25);
  white-space: nowrap;
}

.btn-book-table:hover {
  background: #3730a3;
  transform: translateY(-1px);
}

/* ============================================================= */
/* RESTAURANT POS (POINT OF SALE) TERMINAL                       */
/* ============================================================= */
.pos-modal-card {
  max-width: 1100px;
  width: 95vw;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.pos-top-bar {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pos-order-type-group {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
}

.pos-type-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pos-type-btn.active {
  background: #fff;
  color: #312e81;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  min-height: 0;
  height: calc(100% - 56px);
}

@media (max-width: 860px) {
  .pos-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
}

.pos-catalog-pane {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  min-height: 0;
}

.pos-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.pos-item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.pos-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pos-item-card:active {
  transform: scale(0.97);
}

.pos-item-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.pos-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pos-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.pos-ticket-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  min-height: 0;
  height: 100%;
}

.pos-ticket-header {
  padding: 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.pos-ticket-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.pos-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 8px;
}

.pos-ticket-row-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-ticket-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-qty-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-main);
}

.pos-ticket-footer {
  padding: 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.pos-tender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.pos-tender-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pos-tender-btn.active {
  background: #e0e7ff;
  border-color: #6366f1;
  color: #4338ca;
}

[data-theme="dark"] .pos-tender-btn.active {
  background: #312e81;
  border-color: #818cf8;
  color: #e0e7ff;
}

/* ============================================================= */
/* 80mm THERMAL RECEIPT PRINTER STYLES                           */
/* ============================================================= */
.thermal-receipt-box {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  color: #000;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
  user-select: text;
}

@media print {
  body * {
    visibility: hidden;
  }
  #thermalPrintArea, #thermalPrintArea * {
    visibility: visible;
  }
  #thermalPrintArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 2mm;
    border: none !important;
  }
}

/* ============================================================= */
/* STAR RATING & COMPLIMENT BADGES                               */
/* ============================================================= */
.star-rating-box {
  display: flex;
  gap: 8px;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

.star-icon {
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.star-icon:hover, .star-icon.selected {
  color: #f59e0b;
  transform: scale(1.15);
}

.tag-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliment-chip {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.compliment-chip:hover {
  border-color: var(--primary);
}

.compliment-chip.selected {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

[data-theme="dark"] .compliment-chip.selected {
  background: #78350f;
  border-color: #d97706;
  color: #fef3c7;
}

/* ============================================================= */
/* PROOF OF DELIVERY (POD) CAMERA VIEWFINDER                     */
/* ============================================================= */
.pod-viewfinder {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #059669;
  background: #000;
}

.pod-target-box {
  position: absolute;
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 25%;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

.pod-watermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 10px 12px;
  line-height: 1.35;
  letter-spacing: 0.5px;
  font-family: monospace;
}

/* ============================================================= */
/* FOODIEBOT AI & LIVE SUPPORT FLOATING ASSISTANT               */
/* ============================================================= */
.foodiebot-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4722, #f43f5e);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 71, 34, 0.38);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foodiebot-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 71, 34, 0.48);
}

.foodiebot-fab-icon {
  font-size: 28px;
}

.foodiebot-fab-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background: #05a760;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #fff;
}

.foodiebot-drawer {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 105;
  animation: foodieSlideUp 0.25s ease-out;
}

@keyframes foodieSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.foodiebot-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foodiebot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4722, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.foodiebot-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-main);
}

.foodiebot-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

.foodiebot-msg.bot {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.foodiebot-msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.foodiebot-dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.foodiebot-chips {
  padding: 8px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-prompt-chip {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.quick-prompt-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.foodiebot-footer {
  padding: 10px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.foodiebot-input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.foodiebot-input:focus {
  border-color: var(--primary);
}

.foodiebot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.foodiebot-send-btn:hover {
  transform: scale(1.06);
}

/* ============================================================= */
/* KITCHEN ANALYTICS & BAR CHARTS                                */
/* ============================================================= */
.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.analytics-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.analytics-bar-label {
  min-width: 75px;
  font-weight: 600;
  color: var(--text-muted);
}

.analytics-bar-track {
  flex: 1;
  height: 16px;
  background: var(--bg-main);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff4722, #f59e0b);
  transition: width 0.6s cubic-bezier(0.1, 1, 0.1, 1);
}

.analytics-bar-val {
  min-width: 50px;
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
}

/* ============================================================= */
/* PHASE 10: VIP GOLD CLUB & GROUP ORDER STRIP                   */
/* ============================================================= */
.vip-group-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .vip-group-strip {
    grid-template-columns: 1fr;
  }
}

.vip-gold-banner {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(254, 240, 138, 0.3);
}

.vip-gold-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.vip-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip-crown-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.vip-banner-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-tag-gold {
  background: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.vip-banner-desc {
  font-size: 12px;
  color: #fef3c7;
  margin-top: 2px;
}

.btn-vip-action {
  background: #fff;
  color: #92400e;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.15s;
}

.btn-vip-action:hover {
  background: #fef3c7;
  transform: scale(1.04);
}

.btn-group-order-trigger {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-group-order-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ============================================================= */
/* VALUE COMBOS & BOGO CAROUSEL                                  */
/* ============================================================= */
.combos-section {
  margin-bottom: 28px;
}

.combos-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .combos-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
}

.combo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.combo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.combo-img-box {
  position: relative;
  height: 140px;
  width: 100%;
}

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

.combo-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.combo-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.combo-rest-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.combo-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.combo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.combo-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.combo-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.combo-price-curr {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}

.combo-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-combo {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-add-combo:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

/* ============================================================= */
/* VIP MODAL STYLING                                             */
/* ============================================================= */
.vip-modal-header {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vip-crown-large {
  font-size: 38px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.vip-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .vip-perks-grid {
    grid-template-columns: 1fr;
  }
}

.vip-perk-item {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 10px;
}

.vip-perk-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.vip-perk-item b {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.vip-perk-item p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vip-plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  position: relative;
  transition: all 0.2s;
}

.vip-plan-card:hover {
  border-color: #d97706;
}

.vip-plan-card.selected {
  border-color: #d97706;
  background: #fffbeb;
}

[data-theme="dark"] .vip-plan-card.selected {
  background: #451a03;
}

.vip-plan-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-muted);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.vip-plan-tag.popular {
  background: #d97706;
}

.vip-plan-tag.saver {
  background: #059669;
}

.vip-plan-duration {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.vip-plan-price {
  font-size: 20px;
  font-weight: 900;
  color: #92400e;
  margin: 4px 0;
}

[data-theme="dark"] .vip-plan-price {
  color: #fde68a;
}

.vip-plan-note {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-vip-activate {
  background: linear-gradient(135deg, #d97706, #b45309);
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px;
  width: 100%;
}

.btn-vip-activate:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

/* ============================================================= */
/* GROUP ORDER & BILL SPLIT                                      */
/* ============================================================= */
.group-share-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.group-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.group-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-member-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ============================================================= */
/* KITCHEN DISPLAY SYSTEM (KDS) KANBAN                           */
/* ============================================================= */
.kds-modal-card {
  background: #0f172a;
  color: #f8fafc;
  width: 95vw;
  max-width: 1200px;
  height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #334155;
}

.kds-header-bar {
  background: #1e293b;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  flex-wrap: wrap;
  gap: 10px;
}

.kds-select {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.kds-live-clock {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  background: #0f172a;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
}

.kds-btn-pill {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}

.kds-btn-pill:hover {
  background: #475569;
}

.kds-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  flex: 1;
  overflow: hidden;
  background: #090d16;
}

@media (max-width: 900px) {
  .kds-board {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.kds-col {
  background: #1e293b;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #334155;
}

.kds-col.col-new {
  border-top: 4px solid #3b82f6;
}

.kds-col.col-preparing {
  border-top: 4px solid #f97316;
}

.kds-col.col-ready {
  border-top: 4px solid #10b981;
}

.kds-col-header {
  padding: 12px 14px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #f8fafc;
}

.kds-col-badge {
  font-size: 10px;
  font-weight: 800;
  background: #2563eb;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.kds-col-body {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.kds-ticket-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, border-color 0.15s;
}

.kds-ticket-card:hover {
  border-color: #64748b;
  transform: translateY(-1px);
}

.kds-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kds-ticket-id {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
}

.kds-ticket-type {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.kds-ticket-type.dinein {
  background: #4f46e5;
  color: #fff;
}

.kds-ticket-type.delivery {
  background: #0284c7;
  color: #fff;
}

.kds-timer-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kds-timer-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.kds-timer-badge.yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.kds-timer-badge.red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.kds-ticket-items {
  background: #1e293b;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kds-ticket-item-row {
  display: flex;
  justify-content: space-between;
}

.btn-kds-bump {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
}

.btn-kds-bump.start {
  background: #ea580c;
  color: #fff;
}

.btn-kds-bump.start:hover {
  background: #c2410c;
}

.btn-kds-bump.ready {
  background: #059669;
  color: #fff;
}

.btn-kds-bump.ready:hover {
  background: #047857;
}

.btn-kds-bump.dispatch {
  background: #2563eb;
  color: #fff;
}

.btn-kds-bump.dispatch:hover {
  background: #1d4ed8;
}

/* ============================================================= */
/* PHASE 11: LUCKY WHEEL & GAMIFICATION REWARDS                  */
/* ============================================================= */
.lucky-spin-nav-btn {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lucky-spin-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45);
}

.wheel-stage {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 4px solid #fff;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: 3px solid #fbcfe8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.15s;
  z-index: 5;
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.lucky-win-box {
  background: #fdf2f8;
  border: 2px dashed #f472b6;
  border-radius: var(--radius-md);
  padding: 16px;
  animation: bounceIn 0.5s ease-out;
}

/* ============================================================= */
/* PHASE 11: DISPUTE & REFUND SYSTEM                             */
/* ============================================================= */
.dispute-reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .dispute-reasons-grid {
    grid-template-columns: 1fr;
  }
}

.dispute-reason-chip {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.dispute-reason-chip:hover {
  border-color: #dc2626;
}

.dispute-reason-chip.selected {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}

[data-theme="dark"] .dispute-reason-chip.selected {
  background: #450a0a;
  color: #fca5a5;
}

.btn-report-issue {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-report-issue:hover {
  background: #fee2e2;
}

/* ============================================================= */
/* PHASE 11: KITCHEN INVENTORY DEPLETION TRACKER                 */
/* ============================================================= */
.inventory-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inventory-item-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.inventory-item-stock {
  font-size: 12px;
  font-weight: 800;
}

.inventory-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-main);
  border-radius: 4px;
  overflow: hidden;
}

.inventory-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.inventory-bar-fill.normal {
  background: #10b981;
}

.inventory-bar-fill.warning {
  background: #f59e0b;
}

.inventory-bar-fill.critical {
  background: #ef4444;
}

/* ============================================================= */
/* PHASE 12: DYNAMIC SURGE & WEATHER ENGINE                      */
/* ============================================================= */
.weather-surge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.weather-surge-pill:hover {
  transform: translateY(-1px);
  border-color: #f59e0b;
}

.weather-surge-pill.rain-mode {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  animation: pulseRain 2s infinite ease-in-out;
}

@keyframes pulseRain {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.surge-alert-box {
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease;
}

/* ============================================================= */
/* PHASE 12: AI MULTI-STOP BATCH ROUTE DISPATCH                  */
/* ============================================================= */
.batch-route-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.batch-route-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-timeline {
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
}

.batch-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 16px;
  width: 2px;
  background: #cbd5e1;
}

.batch-waypoint {
  position: relative;
  margin-bottom: 16px;
}

.batch-waypoint:last-child {
  margin-bottom: 0;
}

.batch-waypoint-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  background: #e2e8f0;
  color: #475569;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.batch-waypoint.active .batch-waypoint-dot {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  animation: pulseWaypoint 1.5s infinite;
}

.batch-waypoint.completed .batch-waypoint-dot {
  background: #16a34a;
  color: #fff;
}

@keyframes pulseWaypoint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.batch-waypoint-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ============================================================= */
/* PHASE 12: GEO HEATMAP & FLEET TELEMETRY                       */
/* ============================================================= */
.heatmap-zone {
  cursor: pointer;
  transition: all 0.3s ease;
}

.heatmap-zone:hover {
  filter: brightness(1.25);
}

.telemetry-rider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.telemetry-rider-row:last-child {
  border-bottom: none;
}

.battery-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #065f46;
}

.speed-badge {
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* ============================================================= */
/* PHASE 12: WHATSAPP BOT SIMULATOR MODAL                        */
/* ============================================================= */
.whatsapp-bot-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.wa-chat-header {
  background: #075e54;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-back-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.wa-profile-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.wa-verified-badge {
  background: #25d366;
  color: #ffffff;
  font-size: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.wa-status-text {
  font-size: 11px;
  color: #bbf7d0;
}

.wa-chat-body {
  background-color: #efeae2;
  background-image: radial-gradient(#d1d7db 0.75px, transparent 0.75px);
  background-size: 16px 16px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-date-pill {
  align-self: center;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #54656f;
  margin-bottom: 6px;
}

.wa-encryption-notice {
  align-self: center;
  background: #fffae6;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: #54656f;
  text-align: center;
  max-width: 90%;
  margin-bottom: 8px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.wa-bubble-incoming {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 0 8px 8px 8px;
  padding: 10px 14px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.15);
  position: relative;
  font-size: 13px;
  color: #111b21;
  line-height: 1.4;
}

.wa-bubble-incoming::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid #ffffff;
  border-left: 8px solid transparent;
}

.wa-bubble-outgoing {
  align-self: flex-end;
  background: #d9fdd3;
  border-radius: 8px 0 8px 8px;
  padding: 8px 12px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.15);
  position: relative;
  font-size: 13px;
  color: #111b21;
}

.wa-bubble-outgoing::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid #d9fdd3;
  border-right: 8px solid transparent;
}

.wa-time {
  font-size: 10px;
  color: #667781;
  text-align: right;
  margin-top: 4px;
}

.wa-chat-footer {
  background: #f0f2f5;
  padding: 10px 12px;
  border-top: 1px solid #d1d7db;
}

.wa-quick-replies {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.wa-reply-btn {
  background: #ffffff;
  border: 1px solid #00a884;
  color: #00a884;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wa-reply-btn:hover {
  background: #00a884;
  color: #ffffff;
}

.wa-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-input {
  flex: 1;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  color: #54656f;
}

.wa-send-btn {
  background: #00a884;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================= */
/* PHASE 13: DELIVERY PARTNER TIPPING & EXPORT STYLES           */
/* ============================================================= */
.tip-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tip-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.tip-chip.selected {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

[data-theme="dark"] .tip-chip {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .tip-chip:hover {
  background: #0c4a6e;
  border-color: #38bdf8;
  color: #38bdf8;
}

[data-theme="dark"] .tip-chip.selected {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-export-csv {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-export-csv:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-1px);
}

/* ============================================================= */
/* PHASE 14: ALLERGY PRECAUTIONS, SOS DESK & Z-REPORT STYLES     */
/* ============================================================= */
.allergy-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.allergy-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.allergy-chip:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.allergy-chip.selected {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

[data-theme="dark"] .allergy-chip.selected {
  background: #7f1d1d;
  color: #fecaca;
  border-color: #ef4444;
}

.btn-rider-sos {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-rider-sos:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

.sos-alert-banner {
  background: #fef2f2;
  border: 2px dashed #dc2626;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  animation: pulseDistress 2s infinite;
}

@keyframes pulseDistress {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.sos-reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}

.sos-reason-option:hover {
  background: rgba(220, 38, 38, 0.05);
  border-color: #fca5a5;
}

.cart-vendor-group {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-vendor-header {
  background: #f1f5f9;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .cart-vendor-header {
  background: #1e293b;
  color: #f1f5f9;
}

.z-report-slip {
  font-family: 'Courier New', Courier, monospace;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
  color: #0f172a;
  line-height: 1.4;
  font-size: 13px;
}

[data-theme="dark"] .z-report-slip {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

.z-report-header {
  text-align: center;
  border-bottom: 1px dashed #64748b;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.z-line {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
}

.z-line.total {
  font-weight: 900;
  font-size: 15px;
  border-top: 1px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  padding: 6px 0;
  margin: 8px 0;
}

[data-theme="dark"] .z-line.total {
  border-top-color: #f8fafc;
  border-bottom-color: #f8fafc;
}

/* ============================================================= */
/* PHASE 15: VOICE SEARCH & SPEECH RECOGNITION                   */
/* ============================================================= */
.voice-search-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.voice-search-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.08);
}

.voice-search-btn.recording {
  background: #fee2e2;
  border-color: #ef4444;
  animation: voicePulse 1s infinite alternate;
}

@keyframes voicePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    transform: scale(1.12);
  }
}

/* ============================================================= */
/* PHASE 15: IN-APP LIVE CHAT DRAWER & BUBBLES                   */
/* ============================================================= */
.chat-drawer-card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpChat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
}

[data-theme="dark"] .chat-bubble.received {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

.chat-bubble-meta {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.75;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

/* ============================================================= */
/* PHASE 15: DINE-IN TABLE QR & DIGITAL WAITER BUZZER            */
/* ============================================================= */
.waiter-service-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.waiter-service-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vendor-waiter-alert-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  animation: pulseAmber 2s infinite alternate;
  color: #78350f;
  margin-bottom: 8px;
}

@keyframes pulseAmber {
  from { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  to { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.dine-in-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #fde047;
}

.scheduled-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
}

/* ============================================================= */
/* DELIVERY AREA & CITY SELECTOR STYLES (SWIGGY/ZOMATO STYLE)   */
/* ============================================================= */
.header-location-picker {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  max-width: 250px;
  flex-shrink: 0;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(255, 71, 34, 0.15);
}

[data-theme="dark"] .header-location-picker {
  background: #1e293b;
  border-color: #ff6347;
}

.header-location-picker:hover {
  border-color: var(--primary);
  background: #fff5f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 71, 34, 0.25);
}

.area-selector-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  color: #c2410c;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.area-selector-search-btn:hover {
  background: #ffedd5;
  border-color: #ea580c;
  transform: translateY(-1px);
}

.loc-pin {
  font-size: 18px;
  color: var(--primary);
  animation: bouncePin 2s infinite;
}

@keyframes bouncePin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.loc-text-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.loc-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loc-arrow {
  color: var(--primary);
  font-size: 10px;
}

.loc-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.gps-detect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1.5px dashed #22c55e;
  color: #15803d;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gps-detect-btn:hover {
  background: #dcfce7;
  border-color: #16a34a;
  transform: translateY(-1px);
}

.location-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.location-zone-card:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.location-zone-card.selected {
  border-color: var(--primary);
  background: #eff6ff;
}

[data-theme="dark"] .location-zone-card.selected {
  background: #1e1b4b;
  border-color: #6366f1;
}

.zone-badge-active {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #059669;
}

/* ============================================================= */
/* COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET, TOUCH)*/
/* ============================================================= */

/* Global safety against horizontal overflow on mobile screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Dark Mode support for Mobile Navigation */
[data-theme="dark"] .mobile-nav {
  background: rgba(15, 23, 42, 0.97) !important;
  border-top-color: #334155 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .mobile-nav-btn {
  color: #94a3b8;
}

[data-theme="dark"] .mobile-nav-btn.active {
  color: #ff6347 !important;
}

/* ------------------------------------------------------------- */
/* TABLET SCREENS (769px to 1024px)                              */
/* ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 16px 20px;
  }

  .nav-center {
    gap: 4px;
  }

  .nav-item-btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  .restaurant-grid,
  .foods-grid,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .stats-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .cart-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------------------------- */
/* MOBILE SMARTPHONES (<= 768px)                                 */
/* ------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Prevent content hiding behind fixed mobile bottom navigation */
  body {
    padding-bottom: 78px !important;
  }

  .container {
    padding: 10px 14px !important;
  }

  /* Show Fixed Bottom Navigation */
  .mobile-nav {
    display: flex !important;
    padding: 6px 10px !important;
    height: 60px;
    box-sizing: border-box;
  }

  .mobile-nav-btn {
    flex: 1;
    padding: 4px 2px !important;
    font-size: 11px !important;
    line-height: 1.1;
  }

  .mobile-nav-icon {
    font-size: 20px !important;
  }

  /* Reposition Floating Assistant & Drawer above bottom navigation */
  #foodieBotFab,
  .foodiebot-fab {
    bottom: 76px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .foodiebot-drawer,
  #orderChatDrawer {
    width: 100vw !important;
    max-width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    height: 82vh !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25) !important;
  }

  /* Top Role Bar - Horizontal smooth swipe */
  .role-bar {
    padding: 6px 10px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
  }

  .role-bar::-webkit-scrollbar {
    display: none;
  }

  .role-bar-left {
    display: none !important;
  }

  .role-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .role-pill {
    padding: 4px 10px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  /* Main Navigation Header */
  header {
    padding: 8px 12px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
  }

  /* Hide desktop center tabs on mobile (handled by bottom nav) */
  .nav-center {
    display: none !important;
  }

  .logo-area {
    gap: 6px !important;
  }

  .brand-name {
    font-size: 17px !important;
  }

  .header-location-picker {
    max-width: 140px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .header-location-picker .loc-pin {
    font-size: 15px !important;
  }

  .header-location-picker .loc-sub {
    max-width: 80px !important;
    font-size: 10px !important;
  }

  .nav-right {
    gap: 6px !important;
    margin-left: auto;
  }

  #weatherSurgePill,
  .lucky-spin-nav-btn,
  .user-profile-badge {
    display: none !important;
  }

  .header-location-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }

  .header-spin-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  .header-search-icon-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  #authBtn {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    border: none !important;
    flex-shrink: 0 !important;
  }

  .cart-indicator-btn,
  .wallet-nav-btn,
  .theme-toggle-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .lang-selector {
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 22px 14px !important;
    border-radius: var(--radius-lg) !important;
    text-align: center !important;
  }

  .hero-title,
  h1 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .hero-desc {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }

  /* Search & Filter Strip */
  .search-bar-container,
  .search-box-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .search-input-wrapper {
    width: 100% !important;
    margin: 0 !important;
  }

  .category-strip,
  .category-pills-row,
  .location-city-tabs,
  #locationCityTabs,
  .tag-chips-grid {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    padding-bottom: 6px !important;
    gap: 8px !important;
  }

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

  .category-pill {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Restaurant & Food Grids */
  .restaurant-grid,
  .foods-grid,
  .menu-grid,
  .restaurant-cards-container {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .food-card img,
  .restaurant-card img {
    height: 165px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .food-card-content,
  .restaurant-card-content {
    padding: 12px 14px !important;
  }

  /* Cart & Checkout Views */
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .cart-item-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .cart-qty-controls {
    align-self: flex-end !important;
  }

  /* Live Order Tracking */
  .order-tracking-grid,
  .track-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #trackMap {
    height: 250px !important;
    width: 100% !important;
    border-radius: var(--radius-md) !important;
  }

  /* Vendor & Admin Dashboards */
  .stats-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .stat-card {
    padding: 12px !important;
  }

  .stat-card-value {
    font-size: 20px !important;
  }

  /* Tables: Wrap in horizontal scroll for no cut-offs */
  .table-responsive,
  table,
  .invoice-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 12px !important;
  }

  /* Modals: Sized comfortably on mobile with scroll */
  .modal-overlay,
  .modal-backdrop {
    padding: 10px !important;
    align-items: flex-end !important;
  }

  .modal-content,
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 86vh !important;
    padding: 16px 14px !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Restaurant POS Terminal Mobile Responsive */
  .pos-layout {
    flex-direction: column !important;
    max-height: none !important;
  }

  .pos-catalog-pane,
  .pos-ticket-pane {
    width: 100% !important;
    border: none !important;
    max-height: none !important;
  }

  .pos-items-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ------------------------------------------------------------- */
/* ULTRA COMPACT MOBILE DEVICES (<= 480px)                       */
/* ------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-title,
  h1 {
    font-size: 18px !important;
  }

  .stats-grid,
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .pos-items-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form columns inside modals switch to single stack */
  .modal-content div[style*="grid-template-columns: 1fr 1fr"],
  .modal-card div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Ensure touch target sizes are easy to tap */
  .btn-primary,
  .btn-secondary,
  .btn-accent,
  .btn-danger {
    min-height: 42px !important;
    font-size: 13px !important;
  }

  .cart-indicator-btn span:nth-child(2) {
    display: none !important;
  }
}/* Voice Search Styles */
.voice-search-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.voice-search-active {
  animation: pulse-recording 1.5s infinite;
  background: #ffcccc !important;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 34, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 71, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 34, 0); }
}

[data-theme="dark"] .feedback-chip {
  background: #1e293b;
  border-color: #334155;
  color: var(--text-main);
}
[data-theme="dark"] .feedback-chip:hover {
  background: #27354f;
  border-color: var(--primary);
}

/* ------------------------------------------------------------- */
/* SMARTPHONE REFINEMENTS (<= 640px) - added for clean mobile UX  */
/* ------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Safety net: never allow stray horizontal scroll on phones */
  body {
    overflow-x: hidden !important;
  }

  /* Compact sticky header */
  header {
    gap: 6px !important;
    padding: 8px 10px !important;
  }

  .logo-area {
    flex: 0 0 auto !important;
  }

  .brand-logo-img {
    height: 34px !important;
    max-width: 120px !important;
  }

  .header-location-picker {
    max-width: 124px !important;
    padding: 4px 6px !important;
  }

  .header-location-picker .loc-sub {
    max-width: 72px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nav-right {
    gap: 4px !important;
    margin-left: auto !important;
    max-width: 100% !important;
  }

  /* Hide low-value decorative controls on phones */
  .notification-wrapper {
    display: none !important;
  }

  /* Keep the theme toggle as icon-only */
  .theme-toggle-btn span:last-child {
    display: none !important;
  }
  .theme-toggle-btn {
    padding: 6px 8px !important;
    font-size: 15px !important;
  }

  .lang-selector {
    max-width: 92px !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  .wallet-nav-btn,
  .cart-indicator-btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  #authBtn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  /* Hero coupon pill wraps instead of overflowing */
  .coupon-promo-pill {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  /* Section title rows may wrap */
  .section-title-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Let the search bar controls wrap to a second row */
  .search-input-wrapper {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .search-input-wrapper .search-input {
    flex: 1 1 160px !important;
  }

  .area-selector-search-btn,
  .sort-select {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  /* VIP banner stacks cleanly on narrow screens */
  .vip-gold-banner,
  .vip-group-strip {
    flex-wrap: wrap !important;
  }
  .btn-vip-action {
    margin-left: 0 !important;
  }
}

/* Densest phones: tuck wallet into icon-only */
@media (max-width: 400px) {
  .wallet-nav-btn span:last-child {
    display: none !important;
  }
  .wallet-nav-btn {
    padding: 6px 7px !important;
  }
  .lang-selector {
    max-width: 84px !important;
  }
  .hero-title,
  h1 {
    font-size: 16px !important;
  }
}
