/* SwiftGo Greytown - Ultra Premium Food & Grocery PWA */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #00C16A;
  --primary-hover: #00A85B;
  --primary-dark: #00381F;
  --primary-light: #E6F9F0;
  --primary-glow: rgba(0, 193, 106, 0.25);
  
  --dark-bg: #0D1117;
  --dark-surface: #161B22;
  --dark-card: #21262D;
  --dark-card-hover: #29303A;
  
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-card: #FFFFFF;
  --light-border: #E2E8F0;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --accent-gold: #F59E0B;
  --accent-blue: #2563EB;
  --accent-red: #DC2626;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 12px 32px -4px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 8px 24px rgba(0, 193, 106, 0.35);
  
  --bottom-bar-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F1F5F9;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* App viewport (Mobile Shell with Desktop centering) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.12);
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
}

/* Sticky Demo Switcher Header */
.demo-role-bar {
  background: #0F172A;
  color: #94A3B8;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid #1E293B;
}
.demo-role-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
  font-weight: 800;
}
.demo-role-chips {
  display: flex;
  gap: 5px;
}
.demo-role-btn {
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.demo-role-btn i { font-size: 10px; }
.demo-role-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 193, 106, 0.4);
}
.demo-role-btn-admin.active {
  background: #6366F1;
  border-color: #6366F1;
}
.demo-role-btn-store.active {
  background: #F59E0B;
  border-color: #F59E0B;
}
.demo-role-btn-driver.active {
  background: #0284C7;
  border-color: #0284C7;
}

/* PWA App Install Callout */
.pwa-install-strip {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.pwa-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
}
.pwa-btn {
  background: #FFFFFF;
  color: #064E3B;
  border: none;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Main Top Header */
.top-header {
  padding: 14px 16px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--light-border);
}
.header-row-one {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.location-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.location-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.location-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.location-address {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.location-address i {
  font-size: 11px;
  color: var(--primary);
}

.brand-emblem {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0F172A;
}
.brand-logo-text span {
  color: var(--primary);
}

/* Search Bar */
.search-wrapper {
  position: relative;
}
.search-input-field {
  width: 100%;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 44px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}
.search-input-field:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 193, 106, 0.15);
}
.search-input-field::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}
.search-icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 15px;
}

/* Promotion Card */
.hero-promo {
  margin: 14px 16px;
  background: linear-gradient(135deg, #00A85B 0%, #00C16A 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 24px -4px rgba(0, 193, 106, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-promo::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.hero-promo-badge {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 6px;
}
.hero-promo-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.hero-promo-sub {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 3px;
}
.hero-promo-pill {
  background: #FFFFFF;
  color: #00A85B;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Marketplace Categories (Pill Tabs) */
.section-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}
.headline-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.headline-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.category-tray {
  display: flex;
  gap: 12px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tray::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 94px;
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--primary);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 193, 106, 0.18);
}
.cat-chip.active .cat-icon-box {
  background: var(--primary);
  color: #FFFFFF;
}
.cat-chip.active .cat-chip-name {
  color: var(--primary);
  font-weight: 800;
}
.cat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}
.cat-chip-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

/* 16 Stores Near You Cards */
.stores-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 20px;
}
.store-item-card {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}
.store-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #CBD5E1;
}
.store-cover-wrap {
  height: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #E2E8F0;
}
.store-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.65) 100%);
}
.store-top-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag-badge-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tag-time-pill {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 193, 106, 0.4);
}
.store-body-box {
  padding: 14px 16px;
}
.store-primary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.store-title-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.store-score-badge {
  font-size: 13px;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 3px;
}
.store-score-badge i { font-size: 11px; }
.store-secondary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.bullet-sep {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}
.delivery-fee-highlight {
  color: var(--primary);
  font-weight: 800;
}

/* Store Menu Modal Sheet */
.app-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.app-sheet-overlay.active {
  display: flex;
}
.app-sheet-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  animation: slideSheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-top-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--light-border);
}
.sheet-close-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.sheet-scroll-body {
  overflow-y: auto;
  padding: 16px 20px 30px;
  flex: 1;
}

/* Store Policy Banner inside Menu Modal */
.store-policy-card {
  background: #F8FAFC;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-policy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.store-policy-row i {
  color: var(--primary);
  width: 16px;
}

/* Menu Product Rows with Real Dish Photo */
.menu-dish-row {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}
.menu-dish-row:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card);
}
.dish-photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #E2E8F0;
}
.dish-details {
  flex: 1;
  min-width: 0;
}
.dish-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-price-tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.btn-dish-add {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 193, 106, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-dish-add:active {
  transform: scale(0.94);
}

/* Floating Cart Sticky Pill */
.floating-order-pill {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 193, 106, 0.45);
  cursor: pointer;
  z-index: 1000;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-order-pill.active {
  display: flex;
}
@keyframes popIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cart-qty-badge {
  background: #FFFFFF;
  color: var(--primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.cart-view-label {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-total-value {
  font-size: 16px;
  font-weight: 900;
}

/* Bottom Navigation Bar */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-bar-height);
  background: #FFFFFF;
  border-top: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.2s ease;
}
.dock-item i {
  font-size: 18px;
}
.dock-item.active {
  color: var(--primary);
}

/* Cart Checkout Breakdown Sheet */
.breakdown-card {
  background: #F8FAFC;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.calc-row.total-row {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  border-top: 1px solid var(--light-border);
  padding-top: 10px;
  margin-top: 10px;
}
.btn-checkout-action {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-checkout-action:active {
  transform: scale(0.98);
}

/* Leaflet Map Styling */
.map-visual-box {
  height: 250px;
  background: #E2E8F0;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #CBD5E1;
}
#live-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Tracking Step Flow */
.track-step-flow {
  background: #F8FAFC;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.track-node {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.track-node:last-child {
  padding-bottom: 0;
}
.track-node::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}
.track-node:last-child::after { display: none; }
.track-node.completed::after { background: var(--primary); }
.track-bullet-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}
.track-node.completed .track-bullet-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
.track-node.active .track-bullet-circle {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Portals: Store, Driver, Admin, Account */
.portal-view {
  padding: 16px;
  display: none;
}
.kpi-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-tile {
  background: #F8FAFC;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.kpi-tile-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 2px;
}
.kpi-tile-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Account Tab Styling */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.user-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
}
.wallet-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wallet-balance-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}
.account-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s;
}
.account-menu-item:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* Toast Message */
.app-toast-alert {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  z-index: 3000;
  display: none;
  animation: dropIn 0.2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* SwiftGo Single-Store & Real Leaflet Integration Extensions */
.single-store-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 12px 16px 16px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 193, 106, 0.18);
  color: #00C16A;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.store-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00C16A;
  box-shadow: 0 0 8px #00C16A;
}

.store-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: #94A3B8;
  flex-wrap: wrap;
}

.store-meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
}

#location-leaflet-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-subtle);
  z-index: 10;
}

.distance-fee-readout {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-gps-locate {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
}
.btn-gps-locate:hover {
  background: #DBEAFE;
}

.role-perspectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.role-persp-card {
  border: 1px solid var(--light-border);
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-persp-card:hover {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}
.role-persp-card.active {
  border-color: var(--primary);
  background: #E6F9F0;
}

.role-persp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px 20px 16px;
}

.dish-card-modern {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}
.dish-card-modern:hover {
  box-shadow: var(--shadow-card);
  border-color: #CBD5E1;
}

.dish-thumb-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}


/* SwiftGo Full In-App Simulation & In-App Navigation Extensions */
.dev-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid #BFDBFE;
}

.dev-notice-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
}

.payment-gateway-demo-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

.in-app-nav-container {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.in-app-nav-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#driver-nav-leaflet-map {
  width: 100%;
  height: 260px;
  background: #E2E8F0;
  z-index: 10;
}

.in-app-nav-banner {
  padding: 12px 16px;
  background: #EFF6FF;
  border-bottom: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  gap: 12px;
}

.in-app-nav-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563EB;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.store-select-card {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}
.store-select-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary);
}
.store-select-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}


/* Dedicated Auth View & Map Dimension Enforcements */
#view-auth {
  padding: 24px 16px 40px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-hero-box {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card-panel {
  background: #FFFFFF;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.auth-tab-switch {
  display: flex;
  gap: 8px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
}

/* Explicit Leaflet Map Sizes */
#checkout-leaflet-map, 
#live-leaflet-map, 
#driver-nav-leaflet-map,
#location-leaflet-map {
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--light-border);
  position: relative;
  background: #E2E8F0;
  z-index: 5;
}

.role-header-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--light-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.btn-logout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout-pill:hover {
  background: #FEE2E2;
}

.portal-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--light-border);
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.auth-quick-roles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-role-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-role-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.btn-address-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-address-chip:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}
.btn-address-chip.active {
  background: #E6F9F0;
  border-color: #00C16A;
  color: #00C16A;
}

/* ========================================== */
/* Master Admin Tabs & PC / Mobile Responsive */
/* ========================================== */
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px 0;
  scrollbar-width: none;
}
.admin-nav-tabs::-webkit-scrollbar { display: none; }
.admin-tab-btn {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.admin-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}
.admin-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}
.admin-inp {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  padding: 10px 14px !important;
}
.admin-pc-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .app-container.pc-admin-mode {
    max-width: 1120px;
    padding: 8px 20px 40px 20px;
  }
  .app-container.pc-admin-mode .admin-kpi-4col {
    grid-template-columns: repeat(4, 1fr);
  }
  .app-container.pc-admin-mode .admin-pc-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .app-container.pc-admin-mode .admin-nav-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

