/* ============================================================
   Sneh Shakti Delivery · theme taken from the website's index.css
   ============================================================ */
:root {
  --bg-main: #f7f5f2;
  --bg-card: #ffffff;
  --gold: #ff9800;
  --gold-light: #ffb74d;
  --red: #cc2200;
  --red-light: #ff4422;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #f0eee9;
  /* --gradient-primary: radial-gradient(
    circle at 35% 35%,
    var(--gold) 0%,
    var(--red) 100%
  ); */
  --gradient-primary: linear-gradient(
    90deg,
    /* #f26a00 0%, */
    #ff3000 0%,
    #ff9800 48%,
    #d92b00 100%
  );
  --gradient-btn: linear-gradient(135deg, var(--gold), var(--gold-light));
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
  /* --shadow-btn: 0 10px 24px rgba(197, 155, 60, 0.32); */
  --shadow-btn: 0 10px 24px rgba(255, 152, 0, 0.3);

  --notice-bg: #fff4d6;
  --notice-border: #f0d58a;
  --notice-text: #6b4a00;
  --brand-soft: #fdf6e8;
  /* --ok: #1a9c5c; */
  --ok: #16803c;
  --ok-soft: #eaf6ee;
  /* --ok-soft: #e9f9f0; */
  --info: #2f6fe0;
  --info-soft: #eef5ff;
  --violet: #8b4fd9;
  --violet-soft: #f4eefc;
  --amber: #b45f00;
  --amber-soft: #fef6ea;
  --danger: #b91c1c;
  --danger-soft: #fdecea;

  --content-w: 560px;
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
}
:root[data-theme="dark"] {
  --bg-main: #14121f;
  --bg-card: #1e1b2b;
  --text-primary: #f7f5f2;
  --text-secondary: #a9a5b8;
  --border-color: #2e2a3d;
  --brand-soft: #2b2231;
  --notice-bg: #3a2d12;
  --notice-border: #5a4520;
  --notice-text: #ffd78a;
  --ok: #4cc58a;
  --ok-soft: #173226;
  --info: #7da2ff;
  --info-soft: #1a2540;
  --violet: #b88cf2;
  --violet-soft: #2a2040;
  --amber: #ffb74d;
  --amber-soft: #3a2d12;
  --danger: #ff7b6b;
  --danger-soft: #3d1e1a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  background: var(--bg-main);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
}
body {
  font:
    15px/1.5 "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  touch-action: manipulation;
}
body.no-scroll {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
img {
  max-width: 100%;
}
.muted {
  color: var(--text-secondary);
  text-align: center;
  margin-top: 3px;
}
.small {
  font-size: 0.8rem;
}
.center {
  text-align: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.stack > * + * {
  margin-top: 12px;
}

/* ---------- Top bar (same gradient as the website's top bar) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: 12px;
  padding-left: max(
    16px,
    var(--sl),
    calc((100% - var(--content-w)) / 2 + 16px)
  );
  padding-right: max(
    16px,
    var(--sr),
    calc((100% - var(--content-w)) / 2 + 16px)
  );
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  pointer-events: none;
}
.topbar > * {
  position: relative;
  z-index: 1;
}
.topbar .muted {
  color: rgba(255, 255, 255, 0.8);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.who > div:last-child {
  min-width: 0;
}
.hello,
.who .small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hello {
  font-weight: 700;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.avatar.big {
  width: 52px;
  height: 52px;
  background: var(--brand-soft);
  color: var(--red);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.25s;
}
.icon-btn.dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  min-height: 44px;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slider {
  width: 42px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  transition: 0.2s;
  flex: none;
}
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.switch input:checked + .slider {
  /* background: #1f9e57; */
  background: #16803c;
}
.switch input:checked + .slider::after {
  transform: translateX(23px);
}
.switch input:focus-visible + .slider {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.switch-label {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 56px;
}
.offline-bar {
  background: var(--notice-bg);
  border-bottom: 1px solid var(--notice-border);
  color: var(--notice-text);
  text-align: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

#view {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 16px max(16px, var(--sr)) 16px max(16px, var(--sl));
}

/* ---------- Cards, stats ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.page-title {
  font-size: 1.35rem;
  font-weight: 700;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}
.section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
}
.link {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 44px;
  padding: 0 4px;
}
.back {
  font-weight: 700;
  color: var(--red);
  min-height: 44px;
  padding: 0 4px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
.stat span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--border-color);
  overflow: hidden;
  margin-top: 10px;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.4s;
}
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-secondary);
}

/* ---------- Chips and banners (status colors from Orders.css) ---------- */
.chip,
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip-new {
  background: var(--amber-soft);
  color: var(--amber);
}
.chip-accepted {
  background: var(--info-soft);
  color: var(--info);
}
.chip-picked {
  background: var(--violet-soft);
  color: var(--violet);
}
.chip-out {
  background: var(--danger-soft);
  color: var(--red);
}
.chip-delivered,
.pill-paid {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip-failed {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill-cod {
  background: var(--amber-soft);
  color: var(--amber);
}
.banner {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.banner.warn {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-text);
}
.banner.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.banner.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.banner.info {
  background: var(--info-soft);
  color: var(--info);
}

/* ---------- Order lists and tabs ---------- */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.order-grid .empty {
  grid-column: 1/-1;
}
.order-card {
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.3s;
}
.order-card:active {
  transform: scale(0.99);
}
.order-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.oc-name {
  font-weight: 700;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.order-card .muted {
  overflow-wrap: anywhere;
}
.oc-foot {
  margin-top: 10px;
  gap: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.tab.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
  /* box-shadow: var(--shadow-btn); */
}
.tab em {
  font-style: normal;
  opacity: 0.8;
  margin-left: 6px;
}

/* ---------- Order detail ---------- */
.detail-progress {
  margin-bottom: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.stepper {
  display: flex;
  list-style: none;
  margin: 6px 0 4px;
}
.stepper li {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  position: relative;
  padding-top: 30px;
}
.stepper li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--border-color);
  z-index: 1;
}
.stepper li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
}
.stepper li:first-child::after {
  display: none;
}
.stepper li.done {
  color: var(--text-primary);
  font-weight: 700;
}
.stepper li.done::before,
.stepper li.done::after {
  background: var(--red);
}
.stepper li.current::before {
  box-shadow: 0 0 0 5px rgba(204, 34, 0, 0.15);
}
.addr {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.line > *:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.line:last-child {
  border-bottom: 0;
}
.line.total {
  font-weight: 700;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.kv span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.kv:last-child {
  border: 0;
}
.timeline {
  list-style: none;
}
.timeline li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 6px 16px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.proof-img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0;
}

/* ---------- Buttons (gold gradient like the website's Add to Cart / Place Order) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.28s ease;
}
.btn-primary {
  background: var(--gradient-btn);
  color: #000000;
  box-shadow: var(--shadow-btn);
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.btn.busy::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Forms (16px font stops iOS zooming on focus) ---------- */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  min-height: 48px;
  font-size: 16px;
}
input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 16px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  min-height: 44px;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
  flex: none;
}
.error {
  color: var(--danger);
  font-size: 12px;
  min-height: 1.2em;
  margin-bottom: 8px;
}
.otp-input {
  letter-spacing: 0.6em;
  text-align: center;
  font-size: 1.4rem !important;
  font-weight: 700;
}

/* ---------- Earnings bars ---------- */
.bars {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 140px;
  margin-top: 12px;
}
.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.bar-track i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: var(--brand-soft);
}
.bar.today .bar-track i {
  background: var(--gradient-btn);
}
.bar small {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ---------- Navigation, action bar ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  padding: 0 var(--sr) env(safe-area-inset-bottom) var(--sl);
}
.bottom-nav a {
  flex: 1;
  max-width: 160px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.bottom-nav a.active {
  color: var(--gold);
}
.bottom-nav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.in-detail .bottom-nav {
  display: none;
}
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 12px max(16px, var(--sr)) calc(12px + env(safe-area-inset-bottom))
    max(16px, var(--sl));
}
.action-bar .btn {
  flex: 1;
}
.action-bar.two .btn-primary {
  flex: 2;
}

/* ---------- Sheet, toast, skeleton ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 41, 55, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  animation: up 0.25s ease;
}
.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: var(--border-color);
  margin: 0 auto 14px;
}
.sheet-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
#toasts {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 12px;
}
.toast {
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: up 0.2s;
  max-width: 100%;
}
.toast.ok {
  /* background: #1a9c5c; */
  background: #16803c;
  color: #fff;
}
.toast.error {
  background: #b91c1c;
  color: #fff;
}
.skel {
  height: 92px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--border-color) 25%,
    var(--bg-card) 50%,
    var(--border-color) 75%
  );
  background-size: 200% 100%;
  animation: sh 1.2s infinite;
}
@keyframes sh {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Login ---------- */
.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(20px, var(--sr))
    max(20px, env(safe-area-inset-bottom)) max(20px, var(--sl));
  background: radial-gradient(
    circle at 20% 0%,
    var(--brand-soft),
    var(--bg-main) 60%
  );
}
.login-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: var(--shadow-md);
}
.login-card h1 {
  font-size: 1.5rem;
  text-align: center;
}
.login-card form {
  margin-top: 22px;
}
.logo {
  width: 200px;
  /* height: 56px; */
  /* border-radius: 16px; */
  /* background: var(--gradient-primary); */
  /* color: #fff; */
  display: grid;
  place-items: center;
  /* font-weight: 800; */
  /* font-size: 1.4rem; */
  /* margin-bottom: 0.5rem; */
  /* box-shadow: 0 8px 18px rgba(204, 34, 0, 0.25); */
}
.demo-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Small phones (320–360px) */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }
  .topbar {
    gap: 8px;
  }
  .switch-label {
    display: none;
  }
  .stat b {
    font-size: 1.25rem;
  }
  .btn {
    padding: 0 12px;
  }
  .stepper li {
    font-size: 0.65rem;
  }
  .login-card {
    padding: 22px 16px;
  }
}

/* Large phones / small tablets */
@media (min-width: 640px) {
  :root {
    --content-w: 720px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-card:hover {
    transform: translateY(-2px);
  }
  /* bottom sheet becomes a centered dialog */
  .sheet-backdrop {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    max-width: 480px;
    border-radius: 24px;
    padding-bottom: 20px;
  }
  .sheet-handle {
    display: none;
  }
}

/* Tablets */
@media (min-width: 768px) {
  :root {
    --content-w: 880px;
  }
  body {
    font-size: 16px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  #view {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bars {
    height: 180px;
  }
  .action-bar {
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: 0;
  }
}

/* Large tablets / landscape tablets */
@media (min-width: 1024px) {
  :root {
    --content-w: 1080px;
  }
  .order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phones in landscape: reclaim vertical space */
@media (max-height: 480px) and (orientation: landscape) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .topbar {
    position: static;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .bottom-nav a {
    flex-direction: row;
    gap: 8px;
    min-height: 48px;
    font-size: 0.78rem;
  }
  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }
  .sheet-backdrop {
    align-items: center;
  }
  .sheet {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 18px;
  }
  .sheet-handle {
    display: none;
  }
  .action-bar {
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .login-body {
    place-items: start center;
  }
}

/* Hover effects only on devices that have a mouse */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 18px rgba(204, 34, 0, 0.3);
  }
  .btn-ghost:hover {
    border-color: var(--gold);
  }
  .tab:hover:not(.active) {
    border-color: var(--gold);
  }
  .order-card:hover {
    box-shadow: 0 18px 38px rgba(31, 41, 55, 0.12);
  }
  .icon-btn:hover {
    background: rgba(255, 255, 255, 0.34);
  }
  .link:hover,
  .back:hover {
    color: var(--red-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Cancelled orders + small text buttons */
.chip-cancelled {
  background: var(--border-color);
  color: var(--text-secondary);
}
.link:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Order cards: soft status tint, website colours ===== */
.order-card {
  background: var(--st-bg, var(--bg-card));
  border: 0.5px solid var(--st-stripe, var(--border-color));
  border-bottom: 4px solid var(--st-stripe, var(--border-color));
  /* border-right: 4px solid var(--st-stripe, var(--border-color)); */
}
.order-card:has(.chip-new) {
  --st-bg: #fff7eb;
  --st-stripe: #ff9800;
}
.order-card:has(.chip-accepted) {
  --st-bg: #f5f8ff;
  --st-stripe: #5b8def;
}
.order-card:has(.chip-picked) {
  --st-bg: #f8f5fd;
  --st-stripe: #9b72dc;
}
.order-card:has(.chip-out) {
  --st-bg: #fff4f1;
  --st-stripe: #cc2200;
}
.order-card:has(.chip-delivered) {
  --st-bg: #f3faf5;
  --st-stripe: #16803c;
}
.order-card:has(.chip-failed),
.order-card:has(.chip-cancelled) {
  --st-bg: #f4f3f1;
  --st-stripe: #9ca3af;
}

:root[data-theme="dark"] .order-card:has(.chip-new) {
  --st-bg: #2b2416;
  --st-stripe: #ffb74d;
}
:root[data-theme="dark"] .order-card:has(.chip-accepted) {
  --st-bg: #1c2233;
  --st-stripe: #7da2ff;
}
:root[data-theme="dark"] .order-card:has(.chip-picked) {
  --st-bg: #251f33;
  --st-stripe: #b88cf2;
}
:root[data-theme="dark"] .order-card:has(.chip-out) {
  --st-bg: #33201d;
  --st-stripe: #ff6a4d;
}
:root[data-theme="dark"] .order-card:has(.chip-delivered) {
  --st-bg: #1a2a22;
  --st-stripe: #4cc58a;
}
:root[data-theme="dark"] .order-card:has(.chip-failed),
:root[data-theme="dark"] .order-card:has(.chip-cancelled) {
  --st-bg: #25232d;
  --st-stripe: #6b7280;
}
:root[data-theme="dark"] .chip-out {
  color: #ff8a70;
}
