:root {
  --bg-page: #eef3ec;
  --bg-app: #f7f9f5;
  --surface: #ffffff;
  --primary: #15803d;
  --primary-dark: #166534;
  --primary-soft: #dcfce7;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.12);
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: radial-gradient(circle at top left, #e2f2e5, #e9efe6 55%, #dfe7dc);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* ============ Top Reviewer Toolbar ============ */
.prototype-toolbar {
  background: #111827;
  color: #f9fafb;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.toolbar-brand strong {
  display: block;
  font-size: 14px;
}

.toolbar-brand small {
  font-size: 11px;
  color: #9ca3af;
}

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

.view-switcher {
  display: flex;
  background: #1f2937;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.switch-btn {
  border: none;
  background: transparent;
  color: #d1d5db;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s;
}

.switch-btn.active {
  background: #15803d;
  color: #ffffff;
}

.mini-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
}

.lang-btn {
  border: 1px solid #374151;
  background: #1f2937;
  color: #f3f4f6;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

/* ============ Stage & Mobile Frame ============ */
.stage-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 12px;
}

.phone-frame {
  width: 412px;
  max-width: 100%;
  height: 830px;
  max-height: calc(100vh - 28px);
  background: var(--bg-app);
  border-radius: 36px;
  border: 8px solid #1f2937;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch-bar {
  background: #ffffff;
  padding: 6px 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  flex-shrink: 0;
}

.notch-pill {
  width: 78px;
  height: 16px;
  background: #111827;
  border-radius: 999px;
}

.app-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
}

.app-screen.active {
  display: flex;
}

/* ============ Customer App Header ============ */
.app-header {
  background: #ffffff;
  padding: 6px 14px 8px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  z-index: 10;
  flex-shrink: 0;
}

.brand-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.app-brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.app-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.22);
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name-row strong {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.brand-chip {
  font-size: 9.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 999px;
}

.app-brand-text small {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 1px;
}

.brand-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cust-lang-btn {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: var(--text-main);
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cust-lang-btn:hover {
  background: #f3f4f6;
}

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

.location-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  flex: 1;
  min-width: 0;
  font-family: inherit;
}

.loc-pin {
  font-size: 18px;
}

.loc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.loc-label {
  font-size: 10px;
  color: var(--primary-dark);
  font-weight: 600;
}

.loc-text strong {
  font-size: 12.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-btn.logged-in {
  background: #ecfdf5;
  color: var(--primary-dark);
  border: 1px solid #86efac;
}

.profile-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px;
}

.profile-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-account-meta strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}

.profile-account-meta small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.verified-otp-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 999px;
}

.logout-full-btn {
  width: 100%;
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  padding: 11px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.logout-full-btn:hover {
  background: #fee2e2;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 4px 6px 4px 10px;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.search-box:focus-within {
  background: #ffffff;
  border-color: var(--primary);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  color: var(--text-main);
}

.clear-search {
  border: none;
  background: #e5e7eb;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

.voice-btn {
  border: none;
  background: #dcfce7;
  color: var(--primary-dark);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Free Delivery Banner */
.free-delivery-banner {
  margin-top: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 6px 10px;
}

.free-delivery-banner.unlocked {
  background: #ecfdf5;
  border-color: #86efac;
}

.fd-text {
  font-size: 11.5px;
  color: #92400e;
  margin-bottom: 4px;
}

.free-delivery-banner.unlocked .fd-text {
  color: var(--primary-dark);
  font-weight: 700;
}

.fd-track {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fd-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #16a34a);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* ============ Scrollable Content ============ */
.app-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 96px;
  scroll-behavior: smooth;
}

/* Moving Live Notifications Ticker (Right to Left) */
.live-ticker-bar {
  display: flex;
  align-items: center;
  background: #14532d;
  color: #f0fdf4;
  border-radius: 10px;
  padding: 4px 8px 4px 4px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.18);
}

.ticker-label {
  background: #fef08a;
  color: #713f12;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  margin-left: 8px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  width: max-content;
  animation: tickerRightToLeft 26s linear infinite;
}

.live-ticker-bar:hover .ticker-track,
.live-ticker-bar:active .ticker-track {
  animation-play-state: paused;
}

.ticker-text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  padding-right: 24px;
}

@keyframes tickerRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.app-scroll-content::-webkit-scrollbar {
  width: 4px;
}

.app-scroll-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Hero Card */
.hero-card {
  background: linear-gradient(135deg, #15803d 0%, #166534 60%, #14532d 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.25);
  margin-bottom: 12px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-content h2 {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.hero-content p {
  font-size: 11.5px;
  color: #dcfce7;
  margin-bottom: 8px;
}

.hero-offer-pill {
  display: inline-block;
  background: #fef08a;
  color: #713f12;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
}

.hero-art {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

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

/* Quick Actions Strip */
.quick-actions-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-card {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 14px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

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

.reorder-card {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
  border-color: #bbf7d0;
}

.combo-card {
  background: linear-gradient(180deg, #ffffff, #fffbeb);
  border-color: #fde68a;
}

.qc-icon {
  font-size: 18px;
}

.qc-info strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
}

.qc-info small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.25;
}

.qc-cta {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.combo-card .qc-cta {
  color: #b45309;
  background: var(--accent-soft);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.cat-chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.cat-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

.section-title-row h3 {
  font-size: 15px;
  font-weight: 800;
}

.item-count-pill {
  font-size: 11px;
  color: var(--text-muted);
  background: #e5e7eb;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* ============ Product Grid & Cards ============ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.veg-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.veg-card.out-of-stock {
  opacity: 0.6;
}

.veg-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 2;
}

.veg-share-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #bbf7d0;
  background: rgba(255, 255, 255, 0.94);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, background 0.15s;
}

.veg-share-btn:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  transform: scale(1.08);
}

.delivery-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-mode-card {
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  border-radius: 12px;
  padding: 9px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.delivery-mode-card.selected {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.14);
}

.delivery-mode-card .dm-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.delivery-mode-card strong {
  display: block;
  font-size: 11.5px;
  color: var(--text-main);
}

.delivery-mode-card small {
  display: block;
  font-size: 10px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-top: 2px;
}

.badge-fresh {
  background: #dcfce7;
  color: #166534;
}

.badge-deal {
  background: #fee2e2;
  color: #b91c1c;
}

.veg-art-box {
  height: 112px;
  background: #f8faf7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #eef2ec;
}

.veg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}

.veg-photo.contain {
  object-fit: contain;
  background: transparent;
  padding: 5px;
  mix-blend-mode: multiply;
}

.veg-card:hover .veg-photo {
  transform: scale(1.05);
}

.veg-art-box svg {
  width: 68px;
  height: 68px;
}

.veg-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.veg-sub {
  font-size: 10.5px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.weight-pills {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.weight-btn {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.weight-btn.active {
  border-color: var(--primary);
  background: #ecfdf5;
  color: var(--primary-dark);
}

.veg-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
}

.price-col strong {
  font-size: 15px;
  color: var(--text-main);
  display: block;
  line-height: 1.1;
}

.price-col del {
  font-size: 10.5px;
  color: #9ca3af;
}

.add-btn {
  border: 1.5px solid var(--primary);
  background: #f0fdf4;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

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

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  width: 26px;
  height: 30px;
  cursor: pointer;
}

.qty-stepper span {
  font-size: 12.5px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

/* Trust Footer */
.trust-footer {
  margin-top: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 18px;
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trust-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.trust-item strong {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.trust-item small {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.2;
}

.taluka-pill-banner {
  margin-top: 12px;
  padding: 7px 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.taluka-note {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: #166534;
  text-align: center;
  line-height: 1.3;
}

/* ============ Sticky Cart & Bottom Nav ============ */
.sticky-cart-wrapper {
  position: absolute;
  bottom: 76px;
  left: 12px;
  right: 12px;
  z-index: 20;
}

.sticky-cart-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.38);
  cursor: pointer;
  font-family: inherit;
}

.cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.cart-count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.cart-price-col strong {
  display: block;
  font-size: 15px;
}

.cart-price-col small {
  font-size: 10px;
  color: #dcfce7;
}

.cart-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.arrow-circle {
  background: #ffffff;
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.bottom-nav {
  height: 68px;
  background: linear-gradient(180deg, #f2fbf4 0%, #e4f5e8 100%);
  border-top: 1.5px solid #bbf7d0;
  box-shadow: 0 -6px 20px rgba(21, 128, 61, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 7px 10px 8px;
  flex-shrink: 0;
  z-index: 15;
}

.nav-item {
  border: 1px solid #d1fae5;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-icon-wrap {
  width: 34px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #15803d;
  transition: color 0.18s ease;
}

.nav-item:hover:not(.active) {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.nav-item.active {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: #15803d;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.28);
}

.nav-item.active .nav-icon-wrap {
  background: transparent;
  color: #ffffff;
}

.nav-item.active::before {
  display: none;
}

.nav-item small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.nav-cart-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.35);
}

/* ============ Admin View ============ */
.admin-header {
  background: #111827;
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.admin-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.admin-pill {
  font-size: 10px;
  color: #4ade80;
  font-weight: 700;
  display: block;
}

.admin-header h2 {
  font-size: 15px;
}

.back-to-shop-btn {
  border: 1px solid #374151;
  background: #1f2937;
  color: #f9fafb;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.admin-scroll {
  padding-bottom: 24px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.stat-box.highlight {
  background: #fef2f2;
  border-color: #fecaca;
}

.stat-box small {
  font-size: 10.5px;
  color: var(--text-light);
  display: block;
}

.stat-box strong {
  font-size: 16px;
  color: var(--text-main);
}

.admin-info-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #1e3a8a;
  margin-bottom: 14px;
}

.admin-section-heading {
  font-size: 14px;
  margin-bottom: 8px;
}

.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-order-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.admin-order-card.is-new {
  border-color: #ef4444;
  background: #fffafa;
}

.ao-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ao-status {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.ao-status.new {
  background: #fee2e2;
  color: #b91c1c;
}

.ao-status.packed {
  background: #dcfce7;
  color: #166534;
}

.ao-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}

.ao-items {
  background: #f9fafb;
  padding: 8px;
  border-radius: 8px;
  font-size: 11.5px;
  margin-bottom: 8px;
}

.ao-actions {
  display: flex;
  gap: 6px;
}

.ao-btn {
  flex: 1;
  border: none;
  padding: 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ao-btn.map {
  background: #e0f2fe;
  color: #0369a1;
}

.ao-btn.accept {
  background: var(--primary);
  color: #ffffff;
}

.rate-sheet-header {
  margin-bottom: 8px;
}

.rate-sheet-header small {
  font-size: 11px;
  color: var(--text-light);
}

.admin-rate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.rate-row-name {
  font-size: 12.5px;
  font-weight: 700;
}

.rate-row-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-input {
  width: 58px;
  padding: 4px 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.stock-toggle {
  border: none;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.stock-toggle.in {
  background: #dcfce7;
  color: #166534;
}

.stock-toggle.out {
  background: #fee2e2;
  color: #b91c1c;
}

/* ============ Modals & Bottom Sheets ============ */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 30;
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.22s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 999px;
  margin: 8px auto 4px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.sheet-header h3 {
  font-size: 15px;
}

.close-sheet {
  border: none;
  background: #f3f4f6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.sheet-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Map Simulation */
.gps-detect-btn {
  width: 100%;
  border: 1.5px dashed var(--primary);
  background: #f0fdf4;
  color: var(--primary-dark);
  padding: 10px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: inherit;
}

.map-sim-box {
  margin-bottom: 12px;
}

.map-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.leg-green { color: #15803d; font-weight: 700; }
.leg-red { color: #dc2626; font-weight: 700; }

.interactive-map {
  height: 150px;
  background: #e5e7eb;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid #cbd5e1;
}

.map-roads {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.7) 49%, rgba(255,255,255,0.7) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.7) 49%, rgba(255,255,255,0.7) 51%, transparent 52%);
}

.service-zone-circle {
  position: absolute;
  width: 130px;
  height: 130px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.22);
  border: 2px dashed #15803d;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.zone-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #14532d;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 6px;
}

.village-label {
  position: absolute;
  font-size: 9.5px;
  color: #991b1b;
  background: #fee2e2;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: 700;
}

.v1 { top: 8px; left: 8px; }
.v2 { bottom: 8px; right: 8px; }

.map-pin {
  position: absolute;
  font-size: 26px;
  transform: translate(-50%, -90%);
  transition: left 0.25s ease, top 0.25s ease;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.3));
}

.geofence-status {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.geofence-status.valid {
  background: #dcfce7;
  color: #166534;
}

.geofence-status.invalid {
  background: #fee2e2;
  color: #b91c1c;
}

/* Forms */
.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.primary-full-btn {
  width: 100%;
  border: none;
  background: var(--primary);
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}

.primary-full-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Auth OTP */
.security-note {
  background: #ecfdf5;
  color: #166534;
  font-size: 11.5px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
}

.phone-input-wrap .prefix {
  background: #f3f4f6;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid #d1d5db;
}

.phone-input-wrap input {
  border: none;
  min-width: 0;
  width: 100%;
}

.otp-channel-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.otp-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  width: 100%;
}

.otp-digit {
  width: 54px;
  min-width: 0;
  max-width: 22%;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: var(--text-main);
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.otp-digit:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
}

.demo-hint {
  font-size: 11px;
  color: #b45309;
  background: #fffbeb;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.link-btn {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 11.5px;
}

/* Cart & Checkout Inside Sheet */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.cart-item-info strong {
  font-size: 13px;
  display: block;
}

.cart-item-info small {
  font-size: 11px;
  color: var(--text-light);
}

.checkout-block {
  margin-top: 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.checkout-block h4 {
  font-size: 12.5px;
  margin-bottom: 8px;
}

.slot-grid,
.pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.option-card {
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  cursor: pointer;
}

.option-card.selected {
  border-color: var(--primary);
  background: #f0fdf4;
}

.bill-summary {
  margin-top: 12px;
  font-size: 12.5px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.bill-row.total {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  font-size: 15px;
  font-weight: 800;
}

/* Success & WhatsApp Preview */
.success-body {
  text-align: center;
}

.success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 10px;
}

.whatsapp-preview-card {
  text-align: left;
  background: #e7f8ec;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.5;
}

.whatsapp-preview-card .wa-header {
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

/* Toast */
.toast-msg {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 60;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.upi-qr-checkout-box {
  margin-top: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.upi-qr-img {
  width: 165px;
  height: 165px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 6px;
  margin: 8px auto;
  display: block;
}

.upi-id-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 8px;
}

.upi-copy-btn {
  border: none;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.upi-app-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.upi-utr-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #86efac;
  border-radius: 9px;
  font-size: 12px;
  background: #ffffff;
  font-family: inherit;
}

/* ============ POS Thermal Receipt Preview & Print ============ */
.ao-btn.print {
  background: #fef3c7;
  color: #92400e;
}

.pos-modal-body {
  background: #e5e7eb;
  padding: 12px 14px 20px;
}

.pos-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pos-size-switch {
  display: flex;
  background: #ffffff;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  gap: 3px;
}

.pos-size-btn {
  border: none;
  background: transparent;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.pos-size-btn.active {
  background: #111827;
  color: #ffffff;
}

.pos-print-action-btn {
  border: none;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
}

.pos-paper-stage {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.pos-receipt {
  background: #ffffff;
  color: #000000;
  font-family: 'Courier New', 'Noto Sans Devanagari', monospace;
  padding: 14px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  position: relative;
  border-top: 3px dashed #9ca3af;
  border-bottom: 3px dashed #9ca3af;
  line-height: 1.35;
}

.pos-receipt.size-58mm {
  width: 240px;
  font-size: 11px;
}

.pos-receipt.size-80mm {
  width: 315px;
  font-size: 12px;
}

.pos-center {
  text-align: center;
}

.pos-shop-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.pos-shop-sub {
  font-size: 10px;
  margin-top: 2px;
}

.pos-divider {
  border-top: 1px dashed #111827;
  margin: 7px 0;
}

.pos-divider-double {
  border-top: 2px solid #111827;
  margin: 7px 0;
}

.pos-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
}

.pos-cust-box {
  font-size: 10.5px;
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.pos-table th {
  text-align: left;
  border-bottom: 1px dashed #111827;
  padding-bottom: 3px;
  font-weight: 800;
}

.pos-table td {
  padding: 3px 0;
  vertical-align: top;
}

.pos-table .num {
  text-align: right;
  white-space: nowrap;
}

.pos-grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 900;
  padding: 4px 0;
}

.pos-pay-badge {
  border: 1px solid #111827;
  text-align: center;
  font-weight: 800;
  padding: 3px 6px;
  margin: 6px 0;
  font-size: 10.5px;
}

.pos-barcode {
  margin: 6px auto 2px;
  display: block;
}

.pos-footer-note {
  text-align: center;
  font-size: 10px;
  margin-top: 4px;
}

/* ============ Real Thermal Printer (@media print) ============ */
@media print {
  @page {
    margin: 2mm;
  }
  body {
    background: #ffffff !important;
  }
  .prototype-toolbar,
  .phone-notch-bar,
  #customerView,
  #adminView,
  .modal-backdrop,
  .sheet-handle,
  .sheet-header,
  .pos-controls-bar,
  .toast-msg,
  #locationModal,
  #cartModal,
  #authModal,
  #successModal,
  #ordersHistoryModal {
    display: none !important;
  }
  .stage-wrapper,
  .phone-frame {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  #posPrintModal {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  .pos-modal-body,
  .pos-paper-stage {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
  }
  .pos-receipt {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .pos-receipt.size-58mm {
    width: 54mm !important;
  }
  .pos-receipt.size-80mm {
    width: 76mm !important;
  }
}

/* ============ Responsive Actual Mobile Device ============ */
@media (max-width: 520px) {
  .stage-wrapper {
    padding: 0;
  }
  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
  }
  .phone-notch-bar {
    display: none;
  }
}
