/* ============================================================
   GenZ Dabba — Native App Shell
   Only ever active inside the Capacitor Android app. On the plain
   website #appShell stays hidden and none of this fires — see the
   `html.native-app-mode` gate below and js/app-shell.js.
   ============================================================ */

html.native-app-mode,
html.native-app-mode body {
  height: 100%;
  overflow: hidden;
  background: #FFF9F1;
}

/* Website-only chrome, hidden inside the app — the app shell below
   replaces it. #appSplash is intentionally NOT in this list: it
   manages its own visibility/timing in script.js. Modal overlays
   (#authOverlay, #adminOverlay, #paymentOverlay, review modals, etc.)
   are also intentionally left alone — they still work normally,
   triggered from inside the app shell the same way they always were. */
html.native-app-mode .site-header,
html.native-app-mode .hero,
html.native-app-mode .trial-offer-section,
html.native-app-mode #why-us,
html.native-app-mode #plans,
html.native-app-mode #favorites,
html.native-app-mode #timings,
html.native-app-mode .how-you-order-section,
html.native-app-mode #order,
html.native-app-mode .reviews-section,
html.native-app-mode .site-footer,
html.native-app-mode .app-popup,
html.native-app-mode .quick-nav {
  display: none !important;
}

#appShell { display: none; }
html.native-app-mode #appShell {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #FFF9F1;
  font-family: Inter, system-ui, sans-serif;
  color: #1D1916;
  -webkit-font-smoothing: antialiased;
}

/* Owner/staff dashboard, opened on top of the app shell (setPublicSiteHidden
   hides #appShell, this shows). It's an ordinary page section built for
   normal document scrolling — but html.native-app-mode/body above are
   force-set to overflow:hidden for the app shell's OWN internal (.as-scroll)
   scrolling, which otherwise freezes the dashboard solid the moment it's
   taller than one screen (no scroll at all, on both the APK and mobile web).
   Giving it the same fixed-position-with-its-own-scroll treatment #appShell
   already uses fixes that without touching the dashboard's own markup/JS. */
html.native-app-mode #adminDashboard:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFF9F1;
  margin: 0;
  padding: 16px;
  padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 8px)); /* never under the status bar / cut-out */
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
}

#appShell * { box-sizing: border-box; }
/* Several component rules below (e.g. .account-panel, .my-orders-list) set
   their own `display` unconditionally, which — because they're more
   specific than the browser's own `[hidden]{display:none}` UA rule — can
   silently defeat `el.hidden = true`. This keeps `hidden` authoritative for
   every element inside the app shell, no matter what else targets it. */
#appShell [hidden] { display: none !important; }
#appShell svg { width: 18px; height: 18px; flex-shrink: 0; }
#appShell .as-navitem svg { width: 22px; height: 22px; }
#appShell .as-loc-row svg { width: 15px; height: 15px; }
#appShell .as-chev-icon { width: 16px; height: 16px; color: #c8bfae; flex-shrink: 0; }
#appShell h1, #appShell h2, #appShell h3, #appShell h4 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}
#appShell a { text-decoration: none; color: inherit; }
#appShell button { font-family: inherit; cursor: pointer; }

/* ---- App bar ---- */
#appShell .as-appbar {
  flex: 0 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF9F1;
}
#appShell .as-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
#appShell .as-brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: #fff; border: 1px solid #f0e6d8;
}
#appShell .as-brand-name { font: 800 16px "Plus Jakarta Sans"; }
#appShell .as-brand-sub { font: 500 11px Inter; color: #746B64; margin-top: 1px; }
#appShell .as-appbar-title { font: 800 17px "Plus Jakarta Sans"; }
#appShell .as-back {
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  border: 1.5px solid #eee2d2; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#appShell .as-bell {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #eee2d2;
  background: #fff; display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0; color: #1D1916;
}
#appShell .as-bell .as-dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: #e8720c; border: 1.5px solid #fff;
}

/* ---- Screens ---- */
#appShell .as-screen { display: none; flex: 1 1 auto; min-height: 0; }
#appShell .as-screen.on { display: flex; flex-direction: column; }
#appShell .as-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
  -webkit-overflow-scrolling: touch;
}

#appShell .as-section-title { font: 800 20px "Plus Jakarta Sans"; margin: 26px 0 14px; }
#appShell .as-section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; gap: 10px; }
#appShell .as-link { font: 700 13px "Plus Jakarta Sans"; color: #c25a02; background: none; border: 0; padding: 0; white-space: nowrap; }
#appShell .as-card {
  background: #fff; border: 1px solid #f0e6d8; border-radius: 18px;
  box-shadow: 0 1px 3px rgba(29,25,22,0.04); padding: 16px;
}
#appShell .as-empty { text-align: center; color: #746B64; font: 600 13px Inter; padding: 26px 18px; }
#appShell .as-empty strong { display: block; color: #1D1916; font: 700 14px "Plus Jakarta Sans"; margin-bottom: 5px; }

#appShell .as-chip-row { display: flex; gap: 9px; margin: 16px 0; flex-wrap: wrap; }
#appShell .as-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid #eee2d2; background: #fff; font: 700 13px "Plus Jakarta Sans";
  color: #57524c; white-space: nowrap;
}
#appShell .as-chip.on { background: #1D1916; border-color: #1D1916; color: #fff; }

/* Menu category chips: all 4 (Trial Meal / Sunday Special / Veg / Non-Veg)
   must stay on one row on mobile, never wrap — compact padding/font and an
   even flex split instead of the default wrapping chip-row layout used
   elsewhere (e.g. the order flow's Today/Tomorrow chips, left untouched). */
#appShell #asMenuChips {
  flex-wrap: nowrap; gap: 6px;
  /* Fits in one row with room to spare on normal Android widths (360px+).
     overflow-x is just a safety net for extremely narrow devices (~320px)
     so the last chip is still reachable instead of running off-screen. */
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
#appShell #asMenuChips::-webkit-scrollbar { display: none; }
#appShell #asMenuChips .as-chip {
  flex: 0 0 auto; padding: 8px 10px; font-size: 11px; white-space: nowrap;
}

#appShell .as-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
  border-radius: 12px; background: linear-gradient(90deg, #8b1a1a, #e8720c); color: #fff;
  font: 800 13.5px "Plus Jakarta Sans"; border: 0; width: 100%;
}
#appShell .as-btn-primary:disabled { opacity: .55; }
#appShell .as-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px;
  border-radius: 12px; background: #fff; border: 1.5px solid #e6dccb; color: #1D1916;
  font: 700 13px "Plus Jakarta Sans"; width: 100%;
}
#appShell .as-btn-outline:disabled { opacity: .5; }
/* Same WhatsApp green as the website's own .btn.biz-whatsapp-link, so every
   "via WhatsApp" action reads consistently across the site and the app. */
#appShell .as-btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
  border-radius: 14px; background: #25d366; color: #fff; border: 1px solid #eadfcf;
  font: 800 15px "Plus Jakarta Sans"; width: 100%; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38);
}
#appShell .as-btn-whatsapp:hover { background: #1da851; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.46); }
#appShell .as-btn-whatsapp.as-btn-sm { height: 48px; font-size: 14px; }

#appShell .as-navbar {
  flex: 0 0 auto; display: flex; background: #fffdf8; border-top: 1px solid #f0e6d8;
  padding: 8px 4px calc(env(safe-area-inset-bottom, 0px) + 10px);
}
#appShell .as-navitem {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: #a39c92; font: 700 10.5px "Plus Jakarta Sans"; background: none; border: 0;
  padding: 6px 2px; min-height: 48px;
}
#appShell .as-navitem svg { width: 22px; height: 22px; }
#appShell .as-navitem.on { color: #c25a02; }

/* ---- Home ---- */
#appShell .as-loc-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; color: #746B64; font: 600 13px Inter; }
#appShell .as-greet { font: 800 26px "Plus Jakarta Sans"; margin-top: 18px; }
#appShell .as-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
#appShell .as-trust-grid .as-card { display: flex; gap: 10px; align-items: center; padding: 14px; }
#appShell .as-plan-card { background: linear-gradient(135deg, #fff, #fff7ef); border-color: #f3d9b8; }
#appShell .as-media-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
#appShell .as-media-row .as-card { min-width: 220px; flex-shrink: 0; }

/* ---- Menu ---- */
#appShell .as-menu-item { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
#appShell .as-menu-thumb { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
#appShell .as-menu-add {
  width: 34px; height: 34px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: linear-gradient(135deg, #8b1a1a, #e8720c); color: #fff; font: 800 18px sans-serif;
}

/* ---- Plans ---- */
#appShell .as-plan-recommend {
  position: absolute; top: -10px; left: 16px; background: #e8720c; color: #fff;
  font: 800 10px "Plus Jakarta Sans"; padding: 4px 10px; border-radius: 999px;
}
#appShell .as-plan-tile { position: relative; margin-bottom: 12px; }
#appShell .as-plan-tile.featured { border-color: #f0c98a; }

/* ---- Bottom sheet (deposit / terms "Learn more") ---- */
#appShell .as-sheet-overlay {
  position: absolute; inset: 0; background: rgba(29,25,22,.42); z-index: 20;
  display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
#appShell .as-sheet-overlay.open { opacity: 1; pointer-events: auto; }
#appShell .as-sheet {
  background: #fff; border-radius: 22px 22px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 22px);
  width: 100%; max-height: 78%; overflow-y: auto; transform: translateY(12px); transition: transform .18s ease;
}
#appShell .as-sheet-overlay.open .as-sheet { transform: translateY(0); }
#appShell .as-sheet-handle { width: 36px; height: 4px; border-radius: 999px; background: #eee2d2; margin: 6px auto 14px; }
#appShell .as-sheet h3 { font: 800 17px "Plus Jakarta Sans"; margin-bottom: 10px; }
#appShell .as-sheet p { font: 500 13.5px Inter; color: #57524c; line-height: 1.55; margin: 0 0 10px; }

/* ============================================================
   Reused real account/order markup (ported verbatim from
   account.html so the SAME renderAuthState()/renderPlanDetailsCard()
   /renderMyOrdersCard()/renderReferAndEarnCard()/etc. functions in
   script.js populate it — this reskins those existing components for
   the app shell, it does not reimplement them.
   ============================================================ */
#appShell .account-guest { text-align: center; padding: 40px 16px; }
#appShell .account-guest p { font: 600 14px Inter; color: #746B64; margin-bottom: 14px; }
#appShell .account-panel { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
#appShell .account-panel-grid { display: flex; flex-direction: column; gap: 14px; }
#appShell .account-subgrid { display: flex; flex-direction: column; gap: 14px; }
#appShell .account-card {
  background: #fff; border: 1px solid #f0e6d8; border-radius: 18px;
  box-shadow: 0 1px 3px rgba(29,25,22,0.04); padding: 18px;
  height: auto; display: block;
}
#appShell .account-card h3 { font: 800 15px "Plus Jakarta Sans"; margin-bottom: 6px; }
#appShell .account-card-sub { font: 500 12.5px Inter; color: #746B64; margin: 0 0 12px; line-height: 1.5; }
#appShell .field-hint { font: 500 12px Inter; color: #a39c92; }
#appShell .form-note { font: 600 12.5px Inter; margin-top: 8px; min-height: 0; }
#appShell .btn { font: 700 14px "Plus Jakarta Sans"; border-radius: 14px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; cursor: pointer; }
#appShell .btn-primary { background: linear-gradient(90deg, #8b1a1a, #e8720c); color: #fff; border: 0; }
#appShell .btn-whatsapp {
  background: #25d366; color: #fff; border: 1px solid #eadfcf;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38);
}
#appShell .btn-whatsapp:hover { background: #1da851; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.46); }
#appShell .btn-outline { background: #fff; border-color: #e6dccb; color: #1D1916; }
#appShell .btn-block { width: 100%; }
#appShell .btn-sm { height: 38px; font-size: 12.5px; padding: 0 14px; }
#appShell select, #appShell input[type="text"], #appShell input[type="date"] {
  font: 600 13.5px Inter; border: 1.5px solid #eee2d2; border-radius: 12px; padding: 11px 12px;
  width: 100%; background: #fff; color: #1D1916;
}
#appShell .pref-mobile-select { margin-top: 10px; }
#appShell .pref-current-box, #appShell .referral-code-box {
  background: #fff7ef; border: 1px solid #f3d9b8; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
}
#appShell .pref-current-label, #appShell .referral-code-label { display: block; font: 700 11px "Plus Jakarta Sans"; text-transform: uppercase; letter-spacing: .04em; color: #a3742c; margin-bottom: 4px; }
#appShell .pref-current-value { font: 800 15px "Plus Jakarta Sans"; }
#appShell .referral-code-value { font: 800 20px "Plus Jakarta Sans"; letter-spacing: .04em; margin-bottom: 10px; }
#appShell .referral-code-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#appShell .plan-headline { font: 800 16px "Plus Jakarta Sans"; margin: 4px 0 10px; }
#appShell .plan-headline-green { color: #1c7a3c; }
#appShell .plan-headline-orange { color: #c25a02; }
#appShell .plan-headline-red { color: #b3312c; }
#appShell .plan-headline-grey { color: #746B64; }
#appShell .plan-facts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
#appShell .plan-facts > div { display: flex; justify-content: space-between; gap: 10px; font: 600 12.5px Inter; border-bottom: 1px dashed #f0e6d8; padding-bottom: 6px; }
#appShell .plan-facts dt { color: #746B64; }

/* ---- Account: Profile Summary stats row ---- */
#appShell .acct-stats-row { display: flex; border-top: 1px solid #f0e6d8; padding-top: 12px; }
#appShell .acct-stat { flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: center; }
#appShell .acct-stat:not(:last-child) { border-right: 1px solid #f0e6d8; }
#appShell .acct-stat-label { font: 700 9.5px "Plus Jakarta Sans"; text-transform: uppercase; letter-spacing: .03em; color: #a39c92; }
#appShell .acct-stat-value { font: 800 12.5px "Plus Jakarta Sans"; }

/* ---- Account: compact Active Plan card ---- */
#appShell .acct-plan-badge { font: 800 10.5px "Plus Jakarta Sans"; padding: 4px 10px; border-radius: 999px; background: #eafaf0; color: #1c7a3c; }
#appShell .acct-plan-facts-row { display: flex; border-top: 1px dashed #f0e6d8; margin-top: 12px; padding-top: 10px; }
#appShell .acct-plan-facts-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#appShell .acct-plan-fact-label { font: 700 9.5px "Plus Jakarta Sans"; text-transform: uppercase; letter-spacing: .03em; color: #a39c92; }
#appShell .acct-plan-fact-value { font: 800 12.5px "Plus Jakarta Sans"; }

/* ---- Account: collapsible accordion sections ---- */
#appShell .acct-accordion { padding: 0; overflow: hidden; }
#appShell .acct-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
  min-height: 44px;
}
#appShell .acct-row-icon { font-size: 18px; flex-shrink: 0; }
#appShell .acct-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#appShell .acct-row-title { font: 800 13.5px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .acct-row-summary { font: 600 12px Inter; color: #746B64; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#appShell .acct-row-action { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#appShell .acct-row-edit { font: 700 12.5px "Plus Jakarta Sans"; color: #e8720c; }
#appShell .acct-row-chevron { font-size: 14px; color: #a39c92; transition: transform .2s ease; }
#appShell .acct-accordion.is-open .acct-row-chevron { transform: rotate(180deg); }
#appShell .acct-accordion.is-open .acct-row-edit { color: #746B64; }
#appShell .acct-detail { padding: 0 18px 18px; }
#appShell .acct-done-btn { font-size: 13px; height: 42px; }
#appShell .plan-facts dd { margin: 0; text-align: right; }
#appShell .plan-deposit-line { font: 600 12.5px Inter; margin-top: 4px; }
#appShell .deposit-badge { padding: 3px 9px; border-radius: 999px; font: 800 11px "Plus Jakarta Sans"; }
#appShell .deposit-badge-paid { background: #eafaf0; color: #1c7a3c; }
#appShell .deposit-badge-pending { background: #fff3e0; color: #c25a02; }
#appShell .deposit-badge-refunded { background: #eef1f4; color: #57524c; }
#appShell .plan-earlier h4 { font: 800 12.5px "Plus Jakarta Sans"; margin: 12px 0 8px; color: #746B64; }
#appShell .my-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4ece0; font: 600 12.5px Inter; }
#appShell .my-order small { display: block; color: #a39c92; font-weight: 500; margin-top: 2px; }
#appShell .plan-badge { padding: 3px 9px; border-radius: 999px; font: 800 10.5px "Plus Jakarta Sans"; white-space: nowrap; }
#appShell .plan-badge-green { background: #eafaf0; color: #1c7a3c; }
#appShell .plan-badge-orange { background: #fff3e0; color: #c25a02; }
#appShell .plan-badge-red { background: #fdecec; color: #b3312c; }
#appShell .plan-badge-grey { background: #eef1f4; color: #57524c; }
#appShell .my-orders-list { display: flex; flex-direction: column; gap: 4px; }
#appShell .today-delivery-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4ece0; font: 600 13px Inter; }
#appShell .today-delivery-row:last-child { border-bottom: 0; }
#appShell .today-delivery-shift { font: 800 11px "Plus Jakarta Sans"; color: #a3742c; background: #fff3e6; padding: 3px 9px; border-radius: 999px; }
#appShell .today-delivery-phone { margin-left: auto; color: #c25a02; font: 700 12.5px Inter; }
#appShell .paused-dates-list { display: flex; flex-direction: column; gap: 6px; }
#appShell .paused-dates-list:empty::before { content: "None yet."; color: #a39c92; font: 500 12.5px Inter; }
#appShell .pause-calendar-wrap { margin-top: 12px; }
#appShell .pause-calendar { background: #fff7ef; border: 1px solid #f3d9b8; border-radius: 14px; padding: 12px; }
#appShell .calendar-header { display: flex; align-items: center; justify-content: space-between; font: 800 13px "Plus Jakarta Sans"; margin-bottom: 8px; }
#appShell .calendar-nav { border: 0; background: #fff; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; }
#appShell .calendar-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font: 700 10.5px Inter; color: #a39c92; margin-bottom: 4px; }
#appShell .calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
#appShell .calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 9px; font: 700 12px Inter; border: 0; background: #fff; }
#appShell .calendar-day.is-empty { background: transparent; }
#appShell .calendar-day.is-disabled { color: #d8cfc2; }
#appShell .calendar-day.is-today { outline: 1.5px solid #c25a02; }
#appShell .calendar-day.is-selected, #appShell .calendar-day.is-full { background: #8b1a1a; color: #fff; }
#appShell .calendar-day.is-morning, #appShell .calendar-day.is-evening { background: #f5b81c; color: #1D1916; }
#appShell .calendar-legend { font: 500 10.5px Inter; color: #a39c92; margin-top: 8px; }
#appShell .legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 8px; }
#appShell .legend-full { background: #8b1a1a; }
#appShell .legend-morning, #appShell .legend-evening { background: #f5b81c; }
#appShell .pause-slot-picker { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px; }
#appShell .pause-slot-picker-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#appShell .pause-claim-month-field { display: block; font: 600 12.5px Inter; margin-top: 10px; }
#appShell .pause-claim-month-field select { margin-top: 6px; }
#appShell .addon-offers-grid { display: flex; flex-direction: column; gap: 10px; }
#appShell .map-card { border-radius: 14px; overflow: hidden; border: 1px solid #f0e6d8; }
#appShell .location-picker-map { width: 100%; height: 180px; background: #f4ece0; }
#appShell .map-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font: 600 12.5px Inter; background: #fff; }
#appShell .address-field { display: block; margin-top: 4px; }
#appShell .field-label { font: 700 12px "Plus Jakarta Sans"; display: block; margin-bottom: 6px; }
#appShell .field-optional { color: #a39c92; font-weight: 500; }
#appShell .address-input-group { display: flex; align-items: center; gap: 8px; border: 1.5px solid #eee2d2; border-radius: 12px; padding: 0 12px; }
#appShell .address-input-group input { border: 0; padding: 11px 0; }
#appShell .address-history { margin-top: 10px; }
#appShell .address-history-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#appShell .referral-item-date { color: #a39c92; font: 500 12px Inter; }
#appShell .referral-claim-row { display: flex; flex-direction: column; gap: 8px; }
#appShell .referral-claim-auto { font: 500 12.5px Inter; color: #57524c; line-height: 1.5; }
#appShell .referral-claim-link { background: none; border: 0; color: #c25a02; font: 700 12.5px "Plus Jakarta Sans"; padding: 0; text-align: left; }
#appShell .referral-claim-calendar-wrap { display: none; }
#appShell .referral-claim-calendar-wrap.is-open { display: block; }
#appShell .claim-slot-picker { display: none; }
#appShell .claim-slot-picker.is-open { display: block; }
#appShell .claim-slot-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#appShell .admin-table-wrap { overflow-x: auto; }
#appShell .admin-table { width: 100%; border-collapse: collapse; font: 600 12.5px Inter; }
#appShell .admin-table th { text-align: left; color: #a39c92; font: 700 10.5px "Plus Jakarta Sans"; text-transform: uppercase; letter-spacing: .03em; padding: 0 8px 8px 0; }
#appShell .admin-table td { padding: 9px 8px 9px 0; border-top: 1px solid #f4ece0; }
#appShell .history-date-picker { display: flex; gap: 8px; margin-bottom: 12px; }
#appShell .history-date-picker select { width: auto; flex: 1; }
#appShell .account-card-delivery-today { border-color: #f3d9b8; background: linear-gradient(135deg, #fff, #fff7ef); }
#appShell .account-logout-row { padding: 6px 0 4px; }
#appShell .referrals-empty { font: 600 13px Inter; color: #746B64; text-align: center; padding: 14px 0; }
#appShell .copy-note { font: 600 12px Inter; min-height: 16px; margin-top: 6px; }

/* ---- Monthly-plan offers in the app (APK / mobile web) ---------------------
   Price + savings + CTA sit above the description; one card per row at every
   phone width so the offer price can never be clipped. */
#appShell .as-plan-kind { display: inline-block; font: 800 10.5px 'Plus Jakarta Sans'; letter-spacing: .05em; color: #1c7a3c; }
#appShell .as-plan-kind.nonveg { color: #b3312c; }
#appShell .as-plan-tile.has-offer { border-color: #e8720c; box-shadow: 0 6px 18px rgba(232,114,12,.14); }
#appShell .as-offer-badge { display: inline-block; margin-top: 10px; background: #fff1e0; color: #c25a02; border: 1px solid #e8720c; font: 800 10.5px 'Plus Jakarta Sans'; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
#appShell .as-offer-price { font: 800 24px 'Plus Jakarta Sans'; line-height: 1.1; margin-top: 8px; color: #211a14; overflow-wrap: anywhere; }
#appShell .as-offer-price small { font: 600 12px Inter; color: #746B64; }
#appShell .as-offer-regular { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font: 500 13px Inter; color: #746B64; }
#appShell .as-offer-save { background: #eafaf0; color: #1c7a3c; font: 800 12px 'Plus Jakarta Sans'; padding: 3px 10px; border-radius: 999px; }
#appShell .as-offer-until { margin-top: 6px; font: 500 11.5px Inter; color: #746B64; }
#appShell .as-plan-cta { min-height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
#appShell .as-plan-details { margin-top: 10px; }
#appShell .as-plan-details summary { cursor: pointer; font: 700 12.5px 'Plus Jakarta Sans'; color: #c25a02; padding: 4px 0; }
#appShell .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#appShell .as-plan-rule { margin-top: 8px; font: 600 12px Inter; color: #b3312c; }

/* ---- Plans loading skeleton ---- */
#appShell .as-skeleton { min-height: 190px; display: flex; flex-direction: column; gap: 12px; }
#appShell .as-skeleton i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, #efe6d9 25%, #f8f2e9 50%, #efe6d9 75%); background-size: 200% 100%; animation: as-shimmer 1.3s linear infinite; }
#appShell .as-skeleton i:nth-child(1) { width: 60%; }
#appShell .as-skeleton i:nth-child(2) { width: 40%; height: 28px; }
#appShell .as-skeleton i:nth-child(3) { width: 80%; }
#appShell .as-skeleton i:nth-child(4) { height: 42px; border-radius: 999px; margin-top: auto; }
@keyframes as-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { #appShell .as-skeleton i { animation: none; } }

/* ---- Active Plan card: preference / frequency / meals / delivery period (read-only for the customer) ---- */
#appShell .acct-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; }
#appShell .acct-plan-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#appShell .acct-plan-grid-foot { border-top: 1px dashed #f0e6d8; margin-top: 10px; padding-top: 10px; }
#appShell .acct-pref-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
#appShell .acct-pref-dot.veg { background: #1c9b4b; }
#appShell .acct-pref-dot.nonveg { background: #d23c3c; }

#appShell .as-plan-meals { margin-top: 2px; font: 600 12px Inter; color: #746B64; }

/* ---- Notification bell panel ---- */
#appShell .as-bell-panel { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 58px); right: 12px; left: 12px; max-width: 380px; margin-left: auto; background: #fff; border: 1px solid #f0e6d8; border-radius: 18px; box-shadow: 0 12px 32px rgba(60,40,10,.16); padding: 12px 14px 8px; }
#appShell .as-bell-head { font: 800 13.5px "Plus Jakarta Sans"; padding-bottom: 6px; border-bottom: 1px solid #f6efe4; }
#appShell .as-bell-item { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f6efe4; }
#appShell .as-bell-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #e8720c; margin-top: 5px; }
#appShell .as-bell-msg { font: 600 12.5px Inter; color: #211a14; overflow-wrap: anywhere; }
#appShell .as-bell-item:not(.unread) .as-bell-msg { color: #746B64; font-weight: 500; }
#appShell .as-bell-time { font: 500 11px Inter; color: #a39c92; margin-top: 2px; }
#appShell .as-bell-empty { font: 600 12.5px Inter; color: #746B64; padding: 14px 0; text-align: center; }
#appShell .as-bell-all { display: block; text-align: center; padding: 10px 0 4px; font: 800 12.5px "Plus Jakarta Sans"; color: #c25a02; text-decoration: none; }

/* =====================================================================================================
   Customer Home (hm-*) — compact summary screen. Same tokens as the rest of the app shell:
   cream ground, white cards, 1px warm border, 20px radius, 16px gutter, Plus Jakarta Sans / Inter.
   ===================================================================================================== */
#appShell .hm-card { background: #fff; border: 1px solid #f0e6d8; border-radius: 20px; padding: 14px 16px; margin-top: 12px; box-shadow: 0 1px 2px rgba(60,40,10,.04); }
#appShell .hm-section-label { font: 800 13px "Plus Jakarta Sans"; color: #1D1916; margin: 18px 2px 0; }
#appShell .hm-eyebrow { font: 800 10.5px "Plus Jakarta Sans"; letter-spacing: .08em; color: #8a8178; }
#appShell .hm-chev { display: inline-flex; color: #a39c92; }
#appShell .hm-chev svg { width: 16px; height: 16px; }
#appShell .hm-chev.up svg { transform: rotate(-90deg); }

/* location row */
#appShell .hm-loc { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid #f0e6d8; border-radius: 16px; padding: 10px 14px; margin-top: 4px; font: inherit; color: inherit; cursor: pointer; }
#appShell .hm-loc-ic { width: 32px; height: 32px; border-radius: 10px; background: #fff3e6; color: #c25a02; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; }
#appShell .hm-loc-ic svg { width: 17px; height: 17px; }
#appShell .hm-loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#appShell .hm-loc-label { font: 600 11px Inter; color: #8a8178; }
#appShell .hm-loc-value { font: 700 13.5px "Plus Jakarta Sans"; color: #1D1916; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* order card */
#appShell .hm-order-title { font: 800 17px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .hm-order-sub { font: 500 12.5px Inter; color: #746B64; margin-top: 3px; }
#appShell .hm-order-actions { display: flex; gap: 10px; margin-top: 14px; }
#appShell .hm-btn { flex: 1; min-height: 44px; border-radius: 14px; font: 800 13.5px "Plus Jakarta Sans"; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; box-sizing: border-box; padding: 0 14px; }
#appShell .hm-btn-primary { background: linear-gradient(135deg, #8f1d1a, #e8720c); color: #fff; }
#appShell .hm-btn-outline { background: #fff; color: #c25a02; border-color: #f0c98a; }
#appShell .hm-btn-sm { flex: 0 0 auto; min-height: 38px; font-size: 12.5px; }

/* quick menu */
#appShell .hm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
#appShell .hm-quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid #f0e6d8; border-radius: 16px; padding: 10px 4px 9px; font: 700 11px "Plus Jakarta Sans"; color: #1D1916; text-align: center; line-height: 1.2; cursor: pointer; min-width: 0; }
#appShell .hm-qi { width: 34px; height: 34px; border-radius: 12px; background: #f6f1e9; display: inline-flex; align-items: center; justify-content: center; color: #57524c; }
#appShell .hm-qi svg { width: 18px; height: 18px; }
#appShell .hm-qi-trial { background: #fff3e6; color: #c25a02; }
#appShell .hm-qi-sunday { background: #fdf3d4; color: #a3742c; }
/* the Indian veg / non-veg mark */
#appShell .hm-vm { display: inline-block; width: 14px; height: 14px; border: 1.6px solid; border-radius: 3px; position: relative; vertical-align: -2px; margin-right: 6px; box-sizing: border-box; }
#appShell .hm-vm::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: currentColor; }
#appShell .hm-vm.veg { color: #1c9b4b; }
#appShell .hm-vm.nonveg { color: #d23c3c; }
#appShell .hm-qi .hm-vm { margin: 0; width: 18px; height: 18px; vertical-align: 0; }
#appShell .hm-qi .hm-vm::after { inset: 3.5px; }

/* your tiffin */
#appShell .hm-card-head { display: flex; align-items: center; justify-content: space-between; }
#appShell .hm-pill { font: 800 10.5px "Plus Jakarta Sans"; padding: 3px 10px; border-radius: 999px; background: #eafaf0; color: #1c7a3c; }
#appShell .hm-pill.wait { background: #fff3e6; color: #c25a02; }
#appShell .hm-pill.off { background: #f0e6d8; color: #746B64; }
#appShell .hm-tiffin-main { font: 800 15px "Plus Jakarta Sans"; margin-top: 10px; color: #1D1916; }
#appShell .hm-tiffin-meals { font: 600 12.5px Inter; color: #746B64; margin: 2px 0 8px; }
#appShell .hm-kv { display: flex; justify-content: space-between; font: 600 12.5px Inter; color: #746B64; padding: 5px 0; border-top: 1px dashed #f0e6d8; }
#appShell .hm-kv b { font: 800 12.5px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .hm-link { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 auto; background: none; border: 0; padding: 4px 0; font: 800 12.5px "Plus Jakarta Sans"; color: #c25a02; cursor: pointer; }
#appShell .hm-link svg { width: 14px; height: 14px; }

/* today's tiffin */
#appShell .hm-meal { border-top: 1px solid #f6efe4; margin-top: 8px; padding-top: 4px; }
#appShell .hm-meal:first-of-type { border-top: 0; }
#appShell .hm-meal-main { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 8px 0; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
#appShell .hm-meal-title { flex: 1; font: 800 14px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .hm-status { font: 800 12px "Plus Jakarta Sans"; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
#appShell .hm-status.s0 { background: #fff3e6; color: #c25a02; }
#appShell .hm-status.s1 { background: #eaf2ff; color: #2a5db0; }
#appShell .hm-status.s2 { background: #eafaf0; color: #1c7a3c; }
#appShell .hm-status.sx, #appShell .hm-status.is-paused { background: #f0e6d8; color: #746B64; }
#appShell .hm-steps { list-style: none; margin: 2px 0 8px 2px; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 8px; }
#appShell .hm-steps li { display: flex; align-items: center; gap: 10px; font: 600 13px Inter; color: #a39c92; }
#appShell .hm-steps li.done { color: #1c7a3c; }
#appShell .hm-steps li.now { color: #1D1916; font-weight: 800; }
#appShell .hm-step-mark { width: 18px; text-align: center; font-size: 13px; }
#appShell .hm-steps li.now .hm-step-mark { color: #e8720c; }

/* no plan, promo, reviews */
#appShell .hm-noplan { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#appShell .hm-noplan-title { font: 800 14.5px "Plus Jakarta Sans"; }
#appShell .hm-noplan-sub { font: 500 12px Inter; color: #746B64; margin-top: 2px; }
#appShell .hm-promo { border-color: #f0c98a; background: linear-gradient(180deg, #fff, #fffaf3); }
#appShell .hm-tag { display: inline-block; font: 800 10px "Plus Jakarta Sans"; letter-spacing: .08em; color: #c25a02; background: #fff1e0; border: 1px solid #f0c98a; border-radius: 999px; padding: 3px 10px; }
#appShell .hm-tag-sunday { color: #a3742c; background: #fdf3d4; border-color: #ecd491; }
#appShell .hm-promo-title { font: 800 14.5px "Plus Jakarta Sans"; margin-top: 10px; }
#appShell .hm-promo-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
#appShell .hm-promo-prices b { font: 800 22px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .hm-promo-prices s { font: 500 13px Inter; color: #746B64; }
#appShell .hm-save { font: 800 11.5px "Plus Jakarta Sans"; color: #1c7a3c; background: #eafaf0; border-radius: 999px; padding: 3px 10px; }
#appShell .hm-promo-cta { width: 100%; margin-top: 12px; flex: none; }
#appShell .hm-reviews { display: flex; align-items: center; gap: 14px; cursor: pointer; font: 600 12.5px Inter; color: #746B64; }
#appShell .hm-reviews strong { display: block; color: #1D1916; font: 800 13.5px "Plus Jakarta Sans"; }
@media (prefers-reduced-motion: no-preference) { #appShell .hm-steps { animation: hm-open .2s ease; } }
@keyframes hm-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- Account: compact Refer & Earn + My Tiffin Plan ---- */
#appShell .acct-refer { margin-top: 12px; }
#appShell .acct-refer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#appShell .acct-refer-title { font: 800 14.5px "Plus Jakarta Sans"; }
#appShell .acct-refer-sub { font: 500 12px Inter; color: #746B64; margin-top: 2px; }
#appShell .acct-refer-code { font: 800 17px "Plus Jakarta Sans"; letter-spacing: .12em; color: #8f1d1a; background: #fff3e6; border: 1px dashed #f0c98a; border-radius: 12px; padding: 8px 12px; }
#appShell .acct-refer-actions { display: flex; gap: 10px; margin-top: 12px; }
#appShell .acct-refer-actions .hm-btn { min-height: 40px; }
#appShell .acct-refer .copy-note { min-height: 0; font: 600 12px Inter; color: #1c7a3c; margin-top: 4px; }
#appShell .acct-plan-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
#appShell .acct-plan-trio > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#appShell .acct-plan-trio .acct-plan-fact-value { font-size: 12.5px; overflow-wrap: anywhere; }
#appShell .acct-plan-kvs { margin-top: 10px; }
#appShell .acct-plan-kvs > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed #f0e6d8; font: 600 12.5px Inter; color: #746B64; }
#appShell .acct-plan-kvs b { font: 800 13px "Plus Jakarta Sans"; color: #1D1916; }
#appShell #acctDetail-refer .referral-code-box { display: none; }

#appShell .hm-sub { display: block; font: 500 12px Inter; color: #746B64; margin-top: 2px; }

/* Limited Time Offer carousel — dots live INSIDE the offer card; the page itself never scrolls sideways */
#appShell .hm-carousel { overflow: hidden; }
#appShell .hm-car-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin: 0 -2px; }
#appShell .hm-car-track::-webkit-scrollbar { display: none; }
#appShell .hm-car-track:focus-visible { outline: 2px solid #e8720c; outline-offset: 2px; border-radius: 12px; }
#appShell .hm-car-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 2px; box-sizing: border-box; }
#appShell .hm-car-track.multi { touch-action: pan-x pan-y; } /* one offer at a time: each slide is the full width of the card */
#appShell .hm-car-slide .hm-promo-title { overflow-wrap: anywhere; }
#appShell .hm-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
#appShell .hm-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#appShell .hm-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e3d6c2; transition: background .15s, width .15s; }
#appShell .hm-dot.on::before { background: #e8720c; width: 18px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { #appShell .hm-dot::before { transition: none; } }

/* ---- "Get the Android app" (mobile website only) ---- */
#appShell .hm-apk, #appShell .acct-apk { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #fff3e6, #ffffff); border: 1px solid #f4d9b6; border-radius: 16px; padding: 10px 8px 10px 12px; margin-top: 4px; }
#appShell .acct-apk { margin-top: 14px; padding: 12px; }
#appShell .acct-apk[hidden] { display: none; }
#appShell .hm-apk-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; object-fit: cover; }
#appShell .hm-apk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#appShell .hm-apk-text b { font: 800 13.5px "Plus Jakarta Sans"; color: #1D1916; }
#appShell .hm-apk-text span { font: 500 11.5px Inter; color: #746B64; line-height: 1.35; }
#appShell .hm-apk-btn { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 999px; background: linear-gradient(90deg, #9b2017, #e8720c); color: #fff; font: 800 12.5px "Plus Jakarta Sans"; display: inline-flex; align-items: center; text-decoration: none; }
#appShell .hm-apk-x { flex: 0 0 32px; width: 32px; height: 38px; border: 0; background: none; color: #8a8178; font-size: 22px; line-height: 1; cursor: pointer; }
#appShell .acct-apk { flex-wrap: wrap; }
#appShell .acct-apk-hint { flex: 1 1 100%; margin: 2px 0 0; font: 500 11.5px Inter; color: #746B64; line-height: 1.4; }
@media (max-width: 360px) { #appShell .hm-apk .hm-apk-ic { display: none; } #appShell .hm-apk { padding-left: 14px; } }
#appShell .hm-apk-text i, #appShell .acct-apk i { font-style: normal; }
#appShell .acct-apk .hm-apk-text i { display: inline-block; margin-top: 2px; font-weight: 700; color: #4a433c; }

/* ---- a message from a notification tap ("This offer is no longer available.") + the plan a tap points at ---- */
#appShell .as-toast {
  position: absolute; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 30;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #1D1916; color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px;
  font: 600 13px Inter; box-shadow: 0 10px 28px rgba(29,25,22,.28); animation: gdAsToast 280ms cubic-bezier(.33,1,.68,1) both;
}
#appShell .as-toast-msg { flex: 1 1 100px; line-height: 1.35; }
#appShell .as-toast-btn { white-space: nowrap; background: #fff; color: #1D1916; border: 0; border-radius: 999px; padding: 8px 14px; font: 800 12px "Plus Jakarta Sans"; min-height: 36px; }
#appShell .as-toast-x { background: none; border: 0; color: #cfc6b8; font-size: 22px; line-height: 1; padding: 0 6px; min-height: 36px; }
#appShell .as-plan-tile.gd-flash { animation: gdPlanFlash 2.4s ease-out 1; }
@keyframes gdPlanFlash { 0%, 55% { box-shadow: 0 0 0 3px rgba(232,114,12,.55), 0 8px 24px rgba(232,114,12,.25); } 100% { box-shadow: 0 1px 3px rgba(29,25,22,0.04); } }
@media (prefers-reduced-motion: reduce) { #appShell .as-plan-tile.gd-flash { animation: none; box-shadow: 0 0 0 3px rgba(232,114,12,.55); } }
@keyframes gdAsToast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sunday Special: when it is served */
#appShell .hm-promo-when { font: 700 12px Inter; color: #8a5a00; background: #fff1d6; display: inline-block; border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
#appShell .as-special-when { display: inline-block; font: 700 11.5px Inter; color: #8a5a00; background: #fff1d6; border-radius: 999px; padding: 2px 9px; margin-top: 5px; }
