/* ══════════════════════════════════════════════════════════════════
   4DEGREE — app.css
   Shared layout + components for every user-facing screen.
   Signature element: the "route stripe" — a dashed line that stands in
   for the GPS path from kitchen to hostel block, now animated into a
   slow, literal "in transit" pulse. It shows up in the top bar, the
   gate/login heroes, and the order-tracking timeline.
   ══════════════════════════════════════════════════════════════════ */

.screen {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
}
.screen.no-tabbar { padding-bottom: 24px; }

@media (min-width: 720px) {
  .screen {
    margin: 22px auto;
    min-height: calc(100dvh - 44px);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
  }
  .route-bar, .login-hero { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}

/* ── Route bar (signature) ───────────────────────────────────────── */
.route-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(165deg, rgba(16,16,25,.92) 0%, rgba(28,30,44,.92) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: var(--paper);
  padding: calc(var(--safe-t) + 14px) 18px 16px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.route-bar::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(50% 60% at 10% 0%, var(--violet-glow) 0%, transparent 62%),
    radial-gradient(45% 55% at 100% 100%, var(--mango-glow) 0%, transparent 65%);
  opacity: .5;
  pointer-events: none;
}
.route-bar::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 9px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 9px, transparent 9px 17px);
  background-size: 56px 2px;
  opacity: .6;
  animation: dash-flow 2.6s linear infinite;
}
.route-bar__brand, .route-bar__top, .route-bar .search { position: relative; z-index: 1; }
.route-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.route-bar__loc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.route-bar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  flex: none;
  box-shadow: 0 0 0 4px rgba(255,122,41,.24);
  animation: glow-pulse 2.2s ease-in-out infinite;
}
.route-bar__text { min-width: 0; }
.route-bar__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: rgba(255,255,255,.55); }
.route-bar__place { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-bar__eta {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  background: rgba(255,122,41,.18);
  border: 1px solid rgba(255,122,41,.28);
  color: var(--amber);
  padding: 6px 11px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.route-bar__brand {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 13px;
}
.route-bar__brand img { width: 27px; height: 27px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.route-bar__brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.route-bar__brand small { color: var(--amber); font-family: var(--font-mono); font-size: 10px; }
.route-bar .search {
  margin-top: 13px;
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-line-soft);
  border-radius: var(--r-pill);
  padding: 11px 15px;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.route-bar .search:focus-within { background: rgba(255,255,255,.12); border-color: var(--glass-line); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.route-bar .search input {
  background: none; border: none; color: #fff; font-size: 14px; width: 100%; outline: none;
  font-family: var(--font-body);
}
.route-bar .search input::placeholder { color: rgba(255,255,255,.42); }

/* ── Bottom tab bar (floating dock) ──────────────────────────────── */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 14px);
  width: calc(100% - 24px); max-width: calc(var(--maxw) - 24px);
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-lg);
  display: flex;
  gap: 2px;
  padding: 6px;
  box-shadow: var(--shadow-lift);
  z-index: 40;
}
.tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px 8px;
  border-radius: calc(var(--r-lg) - 8px);
  color: var(--slate-soft);
  font-size: 10.5px;
  font-weight: 700;
  position: relative;
  transition: color .18s var(--ease), background .22s var(--ease);
}
.tabbar a.active {
  color: #fff;
  background: linear-gradient(150deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  box-shadow: var(--shadow-pop);
}
.tabbar a svg { width: 21px; height: 21px; transition: transform .22s var(--ease-spring); }
.tabbar a.active svg { transform: translateY(-1px) scale(1.05); }
.tabbar .cart-count {
  position: absolute; top: 2px; right: 20%;
  background: var(--mango); color: var(--ink);
  font-size: 9px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.92);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 14px 22px;
  width: 100%;
  position: relative;
  transition: transform .16s var(--ease-spring), opacity .12s var(--ease), box-shadow .18s var(--ease), filter .12s var(--ease);
}
.btn:active { transform: scale(.965); }
.btn-primary {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  color: #fff; box-shadow: var(--shadow-pop), var(--shadow-inset-hi);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, #FF6A0F 100%);
  color: var(--ink); box-shadow: var(--shadow-glow-mango), var(--shadow-inset-hi);
}
.btn-amber:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--slate-soft); }
.btn-dark { background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 100%); color: var(--paper); box-shadow: var(--shadow-inset-hi); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 10px 24px -10px rgba(226,61,61,.45); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; width: auto; }
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none; color: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), transform .16s var(--ease-spring);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }

/* ── Section headers ─────────────────────────────────────────────── */
.section { padding: 20px 16px 4px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 13px;
}
.section-head h2 { font-size: 18.5px; font-weight: 800; margin: 0; }
.section-head a { font-size: 12.5px; font-weight: 700; color: var(--caramel); }
.eyebrow {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em;
  color: var(--slate-soft); font-weight: 800; margin-bottom: 5px;
}

/* ── Category strip ──────────────────────────────────────────────── */
.cat-scroll {
  display: flex; gap: 13px; overflow-x: auto; padding: 2px 16px 8px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center;
}
.cat-chip__icon {
  width: 60px; height: 60px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--card) 0%, var(--paper-dim) 130%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--ease-spring), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cat-chip:active .cat-chip__icon { transform: scale(.92); border-color: var(--caramel); }
@media (hover: hover) {
  .cat-chip:hover .cat-chip__icon { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--caramel-tint); }
}
.cat-chip span { font-size: 11px; font-weight: 700; line-height: 1.2; }

/* ── Home page promo band (flagship bundle spotlight) ───────────────── */
.promo-band {
  margin: 20px 16px 6px;
  border-radius: var(--r-xl);
  padding: 22px 20px;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.promo-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(48% 70% at 92% -15%, rgba(255,255,255,.24) 0%, transparent 60%),
    radial-gradient(60% 60% at -10% 120%, var(--mango-glow) 0%, transparent 65%);
}
.promo-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.promo-band__inner { position: relative; z-index: 1; }
.promo-band .eyebrow { color: var(--amber-tint); }
.promo-band h3 { margin: 3px 0 7px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.promo-band p { margin: 0 0 16px; font-size: 13.5px; color: rgba(255,255,255,.85); line-height: 1.5; max-width: 90%; }

/* ── Product grid & cards ────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px;
  padding: 4px 16px 8px;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.pcard {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) {
  .pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--paper-dim); }
}
.pcard__img {
  height: 96px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--paper-dim) 0%, #DEE0D6 120%);
}
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge {
  position: absolute; top: 7px; left: 7px; z-index: 1;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--success); background: var(--success-tint);
  border-radius: 5px; padding: 2px 6px;
}

/* Discount % pill — used on the PDP, admin product rows and elsewhere */
.pct-off {
  display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; color: var(--success);
  background: var(--success-tint);
  border-radius: 5px; padding: 1px 6px; margin-left: 6px;
}
.pcard__body { padding: 11px 11px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__unit { font-size: 11px; color: var(--slate-soft); font-weight: 500; }
.pcard__name { font-size: 13px; font-weight: 700; line-height: 1.28; min-height: 33px; }
.pcard__price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.pcard__price { font-family: var(--font-mono); font-weight: 500; font-size: 14px; }
.pcard__mrp { font-family: var(--font-mono); font-size: 11px; color: var(--slate-soft); text-decoration: line-through; margin-left: 4px; }
.pcard__add {
  background: var(--caramel-tint); color: var(--caramel-deep);
  border: none; border-radius: var(--r-sm);
  font-weight: 800; font-size: 12.5px; letter-spacing: .01em;
  padding: 8px 0; width: 58px;
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease-spring);
}
.pcard__add:active { background: var(--caramel); color: #fff; transform: scale(.94); }
.pcard__stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  border-radius: var(--r-sm);
  width: 58px; color: #fff;
  box-shadow: var(--shadow-pop);
}
.pcard__stepper button { background: none; border: none; color: #fff; width: 20px; height: 27px; font-size: 15px; font-weight: 700; }
.pcard__stepper span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }

/* ── List rows (cart, orders) ────────────────────────────────────── */
.row-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px; display: flex; gap: 12px; align-items: center;
  margin: 0 16px 11px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) { .row-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } }
.row-card__img { width: 54px; height: 54px; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--paper-dim) 0%, #DEE0D6 120%); display: flex; align-items: center; justify-content: center; font-size: 27px; flex: none; overflow: hidden; }
.row-card__img img { width: 100%; height: 100%; object-fit: cover; }
.row-card__mid { flex: 1; min-width: 0; }
.row-card__mid .name { font-weight: 700; font-size: 13.5px; }
.row-card__mid .meta { font-size: 11.5px; color: var(--slate-soft); margin-top: 2px; }
.row-card__price { font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; flex: none; }

/* ── Profile: avatar edit + stat cards ───────────────────────────── */
.avatar-wrap { position: relative; flex: none; }
.avatar-edit {
  position: absolute; right: -4px; bottom: -4px;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.avatar-edit svg { width: 13px; height: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.stat-mini {
  background: linear-gradient(160deg, var(--card) 0%, var(--paper-dim) 160%);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 8px; text-align: center;
}
.stat-mini b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.stat-mini span { font-size: 10px; color: var(--slate-soft); line-height: 1.3; }

/* ── Forms ────────────────────────────────────────────────────────── */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14.5px; font-family: inherit; background: var(--card); color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--caramel); outline: none; box-shadow: 0 0 0 4px var(--violet-tint); }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select .chip {
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 15px; font-size: 13px; font-weight: 700; background: var(--card);
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.chip-select .chip.selected { border-color: var(--caramel); background: var(--caramel-tint); color: var(--caramel-deep); }

/* ── Badges / status ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: var(--r-pill); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-placed { background: var(--ink-tint); color: var(--slate); }
.badge-preparing { background: var(--amber-tint); color: var(--amber-deep); }
.badge-out_for_delivery { background: var(--amber-tint); color: var(--amber-deep); }
.badge-delivered { background: var(--success-tint); color: var(--success); }
.badge-cancelled { background: var(--danger-tint); color: var(--danger); }
.badge-pending { background: var(--ink-tint); color: var(--slate); }
.badge-reviewing { background: var(--amber-tint); color: var(--amber-deep); }
.badge-fulfilled { background: var(--success-tint); color: var(--success); }
.badge-declined { background: var(--danger-tint); color: var(--danger); }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(16,16,25,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 12px 19px; border-radius: var(--r-pill);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,.45);
  z-index: 80; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s var(--ease-spring);
  max-width: calc(var(--maxw) - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Empty states ─────────────────────────────────────────────────── */
.empty { padding: 64px 24px; text-align: center; }
.empty__mark {
  width: 76px; height: 76px; margin: 0 auto 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--card) 0%, var(--paper-dim) 140%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  box-shadow: var(--shadow-card);
}
.empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.empty p { color: var(--slate-soft); font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }

/* ── Skeleton / loading ───────────────────────────────────────────── */
.skel { background: linear-gradient(90deg, var(--paper-dim) 25%, var(--card) 37%, var(--paper-dim) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }

/* ── Splash / gate screens (index.html) ──────────────────────────── */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--ink-soft) 0%, var(--ink) 62%);
  position: relative; overflow: hidden;
  color: var(--paper); text-align: center; padding: 32px;
}
.gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 45% at 15% 10%, var(--violet-glow) 0%, transparent 60%),
    radial-gradient(40% 40% at 90% 85%, var(--mango-glow) 0%, transparent 60%);
  opacity: .55;
}
.gate > * { position: relative; z-index: 1; }
.gate__mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; display:flex; align-items:center; gap:10px; }
.gate__mark img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.gate__tag { color: var(--amber); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; margin-bottom: 32px; }
.gate__route {
  width: 100%; max-width: 260px; height: 2px; margin: 24px 0;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 18px);
  background-size: 56px 2px;
  opacity: .65;
  animation: dash-flow 2.6s linear infinite;
}
.gate__spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--amber);
  animation: spin 0.9s linear infinite; margin-bottom: 20px;
}
.gate h2 { font-size: 19px; font-weight: 800; margin: 4px 0 8px; }
.gate p { color: rgba(255,255,255,.68); font-size: 13.5px; line-height: 1.6; max-width: 300px; margin: 0 0 24px; }
.gate .btn { max-width: 260px; }
.gate__distance { font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); margin-top: 10px; }

/* ── Login screen ─────────────────────────────────────────────────── */
.login-hero {
  background: radial-gradient(120% 90% at 50% 0%, var(--ink-soft) 0%, var(--ink) 62%);
  color: #fff; padding: calc(var(--safe-t) + 44px) 28px 52px;
  border-radius: 0 0 var(--r-xl) var(--r-xl); text-align: center; position: relative; overflow: hidden;
}
.login-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 10% 0%, var(--violet-glow) 0%, transparent 60%),
    radial-gradient(45% 55% at 95% 100%, var(--mango-glow) 0%, transparent 62%);
  opacity: .55;
}
.login-hero::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 16px; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 18px);
  background-size: 56px 2px; opacity: .55;
  animation: dash-flow 2.6s linear infinite;
}
.login-hero__mark { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 11px; }
.login-hero__mark img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.login-hero__mark span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.login-hero p { position: relative; z-index: 1; color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.5; max-width: 260px; margin: 0 auto; }
.login-body { padding: 28px 22px; max-width: 380px; margin: 0 auto; }
.login-body .eyebrow { text-align: center; margin-bottom: 18px; }
.provider-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); padding: 14px; font-weight: 700; font-size: 14.5px;
  border: 1.5px solid var(--line); background: var(--card); margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color .16s var(--ease), transform .16s var(--ease-spring), box-shadow .16s var(--ease);
}
.provider-btn:active { transform: scale(.98); }
@media (hover: hover) { .provider-btn:hover { box-shadow: var(--shadow-card); } }
.provider-btn.helix { background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%); color: #fff; border-color: var(--caramel); box-shadow: var(--shadow-pop); }
.provider-btn svg, .provider-btn img { width: 19px; height: 19px; }
.login-divider { display: flex; align-items: center; gap: 10px; color: var(--slate-soft); font-size: 11.5px; margin: 20px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-note { font-size: 11.5px; color: var(--slate-soft); text-align: center; margin-top: 20px; line-height: 1.55; }
.login-error {
  background: var(--danger-tint); color: var(--danger); font-size: 12.5px; font-weight: 700;
  padding: 11px 15px; border-radius: var(--r-sm); margin-bottom: 18px; text-align: center;
}

/* ── Order tracking timeline ──────────────────────────────────────── */
.tl { padding: 6px 20px 6px 26px; position: relative; }
.tl::before {
  content: ""; position: absolute; left: 34px; top: 10px; bottom: 10px; width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px);
}
.tl-step { display: flex; gap: 14px; padding: 15px 0; position: relative; }
.tl-step__dot {
  width: 19px; height: 19px; border-radius: 50%; background: var(--paper-dim); border: 2px solid var(--line);
  flex: none; margin-top: 2px; z-index: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tl-step.done .tl-step__dot { background: var(--success); border-color: var(--success); }
.tl-step.current .tl-step__dot { background: var(--caramel); border-color: var(--caramel); box-shadow: 0 0 0 6px var(--caramel-tint); animation: glow-pulse 2s ease-in-out infinite; }
.tl-step__title { font-weight: 800; font-size: 14px; }
.tl-step:not(.done):not(.current) .tl-step__title { color: var(--slate-soft); }
.tl-step__time { font-size: 11.5px; color: var(--slate-soft); font-family: var(--font-mono); margin-top: 2px; }

/* ── Misc utility ─────────────────────────────────────────────────── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--slate-soft); }
.mt-0 { margin-top: 0; }
.pill { border-radius: var(--r-pill); }
hr.dash { border: none; border-top: 1.5px dashed var(--line); margin: 15px 0; }
.sticky-cta {
  position: sticky; bottom: 0; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 13px 16px calc(13px + var(--safe-b));
}

/* ── Page transition ──────────────────────────────────────────────── */
.screen { animation: screen-in .3s var(--ease-out); }

/* ── Install app banner (auto prompt) ────────────────────────────── */
.install-banner {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  transform: translateX(-50%) translateY(130%);
  width: calc(100% - 24px); max-width: calc(var(--maxw) - 24px);
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 15px 15px 15px 17px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lift);
  z-index: 70;
  transition: transform .34s var(--ease-spring);
}
.install-banner.show { transform: translateX(-50%) translateY(0); }
.install-banner__icon { width: 42px; height: 42px; border-radius: 13px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.install-banner__body { flex: 1; min-width: 0; }
.install-banner__title { font-weight: 800; font-size: 13.5px; }
.install-banner__sub { font-size: 11.5px; color: rgba(255,255,255,.68); margin-top: 1px; }
.install-banner__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.install-banner__btn {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);
  color: #fff; border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 12.5px; padding: 9px 15px; white-space: nowrap;
  box-shadow: var(--shadow-pop);
}
.install-banner__close {
  background: none; border: none; color: rgba(255,255,255,.5); width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  transition: background .16s var(--ease);
}
.install-banner__close svg { width: 14px; height: 14px; }

/* ── Install option row (Profile / Admin menu) + iOS instructions sheet */
.install-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--caramel-tint) 0%, var(--amber-tint) 100%);
  border: 1px solid var(--caramel-tint);
  border-radius: var(--r-md); padding: 15px; margin-bottom: 10px;
}
.install-row__icon {
  width: 41px; height: 41px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
}
.install-row__icon img { width: 24px; height: 24px; border-radius: 6px; }
.install-row__body { flex: 1; min-width: 0; }
.install-row__title { font-weight: 800; font-size: 13.5px; }
.install-row__sub { font-size: 11.5px; color: var(--slate); margin-top: 1px; }
.install-row__btn {
  background: var(--ink); color: #fff; border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 12px; padding: 9px 15px; flex: none; white-space: nowrap;
}
.install-row.installed { background: var(--success-tint); border-color: var(--success-tint); }
.install-row.installed .install-row__sub { color: var(--success); font-weight: 700; }

.ios-sheet-steps { list-style: none; margin: 0 0 4px; padding: 0; counter-reset: step; }
.ios-sheet-steps li {
  counter-increment: step; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.45;
}
.ios-sheet-steps li:last-child { border-bottom: none; }
.ios-sheet-steps li::before {
  content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--caramel-tint); color: var(--caramel-deep); font-weight: 800; font-size: 11.5px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.ios-sheet-steps b { color: var(--caramel-deep); }

/* ── Bottom sheet modal (shared shell for the iOS install-instructions
   sheet on customer-facing pages — same pattern as admin/css/admin.css) */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(16,16,25,.58); z-index: 90;
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--paper); width: 100%; max-width: var(--maxw);
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 22px 18px calc(18px + var(--safe-b));
  max-height: 88dvh; overflow-y: auto;
  box-shadow: 0 -20px 50px -20px rgba(16,16,25,.35);
  position: relative;
}
.sheet::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 999px; background: var(--line);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; margin-top: 6px; }
.sheet-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
