/* RightCart: shared styles */

/* One calm light theme on every device, even when the phone is in dark mode: a soft off-white page
   with clean white cards on top. */
:root {
  --bg: #f6f7f5;
  --surface: #eef2ef;
  --card: #ffffff;
  --text: #0f1a16;
  --muted: #5b6b64;
  --line: #e3e8e4;
  --accent: #0e6a54;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2ec;
  --gold: #d9a63a;
  --warn: #9a6700;
  --warn-soft: #fff6e0;
  --danger: #b42318;
  --blinkit: #f2c200;
  --zepto: #6b2bd9;
  --swiggy: #fc8019;
  --bigbasket: #84c225;
  --minutes: #2874f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 22, .04), 0 10px 30px rgba(15, 26, 22, .06);
  --font: Aptos, Calibri, Carlito, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light only;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; flex: none;
  color: var(--text); text-decoration: none;
}
.brand svg { color: var(--accent); }
.brand small { font-weight: 400; color: var(--muted); font-size: 15px; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; flex: 1; }
.nav .loc { min-width: 0; flex-shrink: 1; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 999px; color: var(--muted); }
.bell:hover { background: var(--surface); color: var(--text); }
.bell-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.loc {
  display: inline-flex; align-items: center; gap: 6px; max-width: 52vw;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer; font-size: 15px;
}
.loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc:hover { border-color: var(--muted); }

/* ---------- hero + add ---------- */

.hero { padding: 40px 0 24px; }
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.lead { margin: 8px 0 22px; color: var(--muted); font-size: 18px; }

.search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px; max-width: 720px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1; min-width: 0; padding: 10px 10px; border: 0; outline: 0; background: transparent; font-size: 17px;
}

/* ---------- suggestions while typing ---------- */

.search-wrap { position: relative; max-width: 720px; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  max-height: min(60vh, 520px); overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}
.sug-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; gap: 12px; align-items: center;
  width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left;
}
.sug-row:hover, .sug-row.active { background: var(--surface); }
.sug-img { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); object-fit: contain; }
img.sug-img { background: #fff; border: 1px solid var(--line); }
.sug-text { display: grid; gap: 3px; min-width: 0; }
.sug-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.sug-size { margin-right: 2px; }
.sug-price { display: inline-flex; align-items: center; color: var(--text); white-space: nowrap; }
.sug-price .dot { margin-right: 4px; }
.sug-price.best { color: var(--accent); font-weight: 700; }
.sug-price.out { color: var(--muted); }
.sug-add {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1;
}
.sug-note { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--muted); font-size: 14px; text-align: left; }
button.sug-note { color: var(--accent); cursor: pointer; }
.sug-note.warn { color: var(--warn); }
.sug-typed {
  width: 100%; margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--muted); font-size: 14px; text-align: left; cursor: pointer;
}
.sug-typed:hover { color: var(--text); }
.spinner {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text);
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn.live { background: var(--accent-soft); color: var(--accent); }

.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer; font-size: 14px; color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--muted); }

.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.eta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.eta-strip b { color: var(--text); font-weight: 600; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.BlinkIt { background: var(--blinkit); }
.dot.Zepto { background: var(--zepto); }
.dot.Swiggy { background: var(--swiggy); }
.dot.BigBasket { background: var(--bigbasket); }
.dot.Minutes { background: var(--minutes); }
.plan-name .dot + .dot { margin-left: -9px; box-shadow: 0 0 0 2px var(--card); }

.photo-msg { color: var(--accent); }

dialog.wide { width: min(860px, calc(100vw - 32px)); }
.dlg-sub { margin: 0 0 8px; font-size: 16px; }
.app-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.app-pick { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.app-pick input { margin: 0 6px 0 0; }
.app-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
table.fees td { padding: 6px; }
table.fees input { width: 84px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table.fees input:focus { outline: 0; border-color: var(--accent); }

/* ---------- panels ---------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .layout aside { position: sticky; top: 80px; }
}

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { margin: 0; font-size: 18px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }

.empty { padding: 28px 8px; text-align: center; color: var(--muted); }

/* ---------- list rows ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }

.thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--surface); object-fit: contain; }
.thumb.blank { display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.row-title { display: block; max-width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title:hover { color: var(--accent); }
.row-sub { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.price-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 8px; background: var(--surface); font-size: 14px; white-space: nowrap; }
.price-tag.best { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.price-tag.missing { color: var(--muted); }
button.price-tag { border: 0; cursor: pointer; font-size: 14px; }
button.price-tag:hover { color: var(--text); }

.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 15px; }
.remove { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.remove:hover { color: var(--danger); }

.note { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }

.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface), var(--line), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- plans ---------- */

.plans { display: grid; gap: 10px; margin: 14px 0 6px; }
.plan {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px;
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.plan:hover { border-color: var(--muted); }
.plan.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-name { font-weight: 600; }
.plan-total { font-weight: 700; font-size: 20px; text-align: right; }
.plan-meta { color: var(--muted); font-size: 14px; }
.badge { justify-self: end; align-self: center; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }

.order { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.order h3 { margin: 0 0 8px; font-size: 16px; }
.order-group { margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.order-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.order-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- dialogs ---------- */

dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
dialog::backdrop { background: rgba(15, 17, 21, .45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-body { padding: 18px; overflow: auto; }

.segmented { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 12px;
  background: var(--surface); margin-bottom: 14px; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: none; white-space: nowrap; }
.segmented button { padding: 7px 16px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.area { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; }
.area:hover, .area.on { border-color: var(--accent); }
.area.on { background: var(--accent-soft); }

.geo-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left;
  border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); color: var(--text); cursor: pointer;
}
.geo-btn svg { color: var(--accent); flex: none; }
.geo-btn span { display: grid; gap: 2px; }
.geo-btn small { color: var(--muted); font-size: 14px; }
.geo-btn.on { box-shadow: 0 0 0 1px var(--accent) inset; }
.geo-btn:disabled { opacity: .7; cursor: progress; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 14px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.side-by-side { display: grid; gap: 12px; }
@media (min-width: 520px) { .side-by-side { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.offer.best { border-color: var(--accent); }
.offer img { width: 100%; height: 140px; object-fit: contain; border-radius: 10px; background: #fff; }
.offer-plat { font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.offer-name { font-size: 15px; }
.offer-price { font-size: 24px; font-weight: 700; }
.offer-price s { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.offer .btn { margin-top: auto; }

.track {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface);
}
.track-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.target {
  width: 190px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.target:focus { outline: 0; border-color: var(--accent); }

.alts { margin-top: 20px; }
.alts h3 { margin: 0 0 8px; font-size: 16px; }
.alt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.alt:hover .alt-name { color: var(--accent); }
.alt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-prices { color: var(--muted); font-size: 14px; white-space: nowrap; }
.alt.on .alt-name { font-weight: 600; color: var(--accent); }

/* ---------- watchlist ---------- */

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft);
}
.alert { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.alert:first-child { border-top: 0; }
.alert .row-title { white-space: normal; }
.alert.unread .row-title::after { content: "New"; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; vertical-align: 2px; }
.watch { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.watch:first-child { border-top: 0; }
.watch-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 720px) {
  .watch { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .watch-side { grid-column: 3; flex-direction: column; align-items: flex-end; }
}
.spark { display: block; width: 220px; max-width: 100%; height: 48px; margin-top: 8px; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-BlinkIt { stroke: var(--blinkit); }
.spark-Zepto { stroke: var(--zepto); }
.spark-Swiggy { stroke: var(--swiggy); }
.spark-BigBasket { stroke: var(--bigbasket); }
.spark-Minutes { stroke: var(--minutes); }

/* ---------- welcome and consent (hosted beta) ---------- */

.welcome {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px; background: var(--bg);
}
.welcome-card { width: 100%; max-width: 520px; display: grid; gap: 10px; }
.welcome-card .brand { margin-bottom: 8px; }
.welcome-card h1 { margin: 6px 0 0; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.welcome-card h2 { margin: 10px 0 0; font-size: 17px; }
.welcome-card .lead { margin: 0; font-size: 17px; }
.consent-list { margin: 0; padding: 14px 16px 14px 34px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 8px; font-size: 15px; }
.field-label { margin-top: 8px; font-weight: 600; }
.code-input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 20px; letter-spacing: .08em; text-transform: uppercase;
}
.code-input:focus { outline: 0; border-color: var(--accent); }
.consent-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.welcome-msg { margin: 0; min-height: 1.5em; color: var(--danger); font-size: 15px; }
.welcome-card .btn { padding: 13px 18px; font-size: 17px; }

.participant { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.participant:empty { display: none; }

/* ---------- footer ---------- */

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- research page ---------- */

.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 40px; }
textarea { width: 100%; min-height: 200px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); resize: vertical; }
textarea:focus { outline: 0; border-color: var(--accent); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.checks h4 { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }
.cheaper { color: var(--accent); font-weight: 600; }

/* ---------- guided shopping ---------- */

.shop-btn { width: 100%; margin-top: 10px; }
.shop-dialog { width: min(560px, calc(100vw - 24px)); }
.shop-dialog[open] { display: flex; flex-direction: column; }
.shop-dialog .dlg-head h2 { display: flex; align-items: center; }
.shop-dialog .dlg-body { flex: 1; min-height: 0; overflow-y: auto; }
.shop-progress { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.shop-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.shop-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-row {
  display: grid; grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.shop-row.next { border-color: var(--accent); background: var(--accent-soft); }
.shop-row.done { opacity: .65; }
.shop-tick {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--accent-ink); font-size: 13px; font-weight: 700;
}
.shop-row.done .shop-tick { background: var(--accent); border-color: var(--accent); }
.qty-badge { padding: 0 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.shop-again { font-size: 14px; white-space: nowrap; }
.shop-foot { display: grid; gap: 8px; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.shop-foot:empty { display: none; }
.shop-next { width: 100%; padding: 13px 16px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.shop-done { margin: 0; text-align: center; color: var(--accent); font-weight: 600; }

/* ---------- your offers and what you paid ---------- */

.head-links { display: inline-flex; gap: 14px; }
.offers-msg { margin: 10px 0 0; min-height: 1.4em; color: var(--accent); font-size: 14px; }
.offers-card { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.coupon-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.coupon-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.coupon-list b { padding: 1px 8px; border: 1px dashed var(--accent); border-radius: 6px; color: var(--accent); font-size: 13px; }
.coupon-line { color: var(--accent); font-weight: 600; }
.pay-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface); }
.pay-box h3 { margin: 0 0 6px; font-size: 16px; }
.pay-form { display: grid; gap: 10px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pay-field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.pay-field input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-size: 16px; }
.pay-field input:focus { outline: 0; border-color: var(--accent); }
.pay-thanks { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- report your order ---------- */

.order-form { display: grid; gap: 8px; }
.order-form h4 { margin: 10px 0 2px; font-size: 16px; }
.radio-list { display: grid; gap: 6px; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.radio-row input { margin-top: 3px; flex: none; }
.radio-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.paid-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.paid-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; }
.paid-check { display: flex; gap: 10px; align-items: flex-start; min-width: 0; cursor: pointer; }
.paid-check input { margin-top: 4px; flex: none; }
.paid-check > span { display: grid; min-width: 0; }
.paid-price { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; }
.paid-price:focus { outline: 0; border-color: var(--accent); }
.price-report { margin-top: 2px; }
.upload-box { padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); }
.order-details { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.order-details summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 0; }

/* ---------- install as an app ---------- */

.get-app {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; flex: none;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.install-btn { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.install-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 17, 21, .45); }
.install-card {
  width: min(520px, 100%); display: grid; gap: 14px; padding: 20px 18px max(20px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: var(--card);
}
.install-head { display: flex; gap: 12px; align-items: center; }
.install-head img { border-radius: 12px; }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
@media (max-width: 420px) { .get-app { padding: 6px 9px; font-size: 13px; gap: 4px; } }


/* ---------- premium look ---------- */

html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.plan-total, .price-tag, .sug-price, .offer-price, .order-head, .order-item, .shop-progress, td.num { font-variant-numeric: tabular-nums; }

/* header */
.topbar { background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(15, 26, 22, .06); box-shadow: 0 1px 12px rgba(15, 26, 22, .04); }
.brand { gap: 10px; }
.brand-mark { display: block; width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 8px rgba(14, 106, 84, .25); }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.wordmark span { color: var(--accent); }
.loc { border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 26, 22, .04); }

/* hero with a soft emerald glow behind it, edge to edge */
.hero { position: relative; isolation: isolate; padding: 48px 0 30px; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background:
    radial-gradient(70% 90% at 8% 0%, rgba(18, 132, 106, .14) 0%, rgba(18, 132, 106, 0) 60%),
    radial-gradient(60% 80% at 100% 10%, rgba(143, 224, 191, .22) 0%, rgba(143, 224, 191, 0) 60%);
}
.hero h1 { font-size: clamp(32px, 6.4vw, 48px); letter-spacing: -.035em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; max-width: 620px; }

/* search */
.search { border-radius: 20px; border-color: transparent; box-shadow: 0 1px 2px rgba(15, 26, 22, .05), 0 14px 40px rgba(14, 106, 84, .12); padding: 7px; }
.search:focus-within { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), 0 14px 40px rgba(14, 106, 84, .16); }
.chip { background: rgba(255, 255, 255, .8); border-color: var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(15, 26, 22, .04); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.eta-strip > span:not(:first-child) { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }

/* buttons */
.btn { border-radius: 12px; transition: transform .08s ease, box-shadow .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #13866b 0%, #0e6a54 100%); border-color: #0d634f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(14, 106, 84, .25);
}
.btn.primary:hover { filter: brightness(1.06); }

/* cards and lists */
.panel { border-radius: 22px; border-color: var(--line); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { font-size: 19px; letter-spacing: -.01em; }
.thumb { border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.row { padding: 16px 0; }
.price-tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.price-tag.best { background: var(--accent-soft); border-color: #bfe0d1; color: var(--accent); }

/* best-way-to-buy plans */
.plan { border-radius: 16px; padding: 15px 16px; transition: box-shadow .15s ease, border-color .15s ease; }
.plan.selected { border-color: transparent; background: linear-gradient(180deg, #f2faf6 0%, #ffffff 70%);
  box-shadow: 0 0 0 1.5px var(--accent) inset, 0 10px 24px rgba(14, 106, 84, .10); }
.plan-total { font-size: 22px; letter-spacing: -.02em; }
.badge { background: linear-gradient(180deg, #f3cf6f 0%, var(--gold) 100%); color: #3d2a00; box-shadow: 0 2px 6px rgba(217, 166, 58, .35); }
.shop-btn { padding: 12px 16px; }

/* dialogs */
dialog { border-radius: 24px; border-color: rgba(15, 26, 22, .06); box-shadow: 0 30px 80px rgba(15, 26, 22, .25); }
.dlg-head { padding: 18px 20px; }
.dlg-head h2 { font-size: 19px; letter-spacing: -.01em; }

/* welcome */
.welcome { background:
  radial-gradient(80% 50% at 0% 0%, rgba(18, 132, 106, .12) 0%, rgba(18, 132, 106, 0) 60%), var(--bg); }
.welcome-card .brand { font-size: 22px; }
.welcome-card .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.consent-list { background: #fff; border: 1px solid var(--line); }

.foot { border-top-color: var(--line); }
.note-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; padding: 10px 6px 10px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 600; }
.note-banner span { flex: 1 1 200px; }
.note-banner .icon-btn { width: 32px; height: 32px; color: var(--accent); }
@media (max-width: 420px) { .ga-get { display: none; } }
.welcome-card .wordmark { font-size: 24px; }

/* ---------- search any locality ---------- */

.loc-search input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  font-size: 16px; box-shadow: 0 1px 2px rgba(15, 26, 22, .04);
}
.loc-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.loc-results { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.loc-result, .loc-map {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer;
}
.loc-result:hover { background: var(--surface); }
.loc-name { font-weight: 600; }
.loc-city { color: var(--muted); font-size: 14px; white-space: nowrap; }
.loc-map { color: var(--accent); font-weight: 600; justify-content: flex-start; }
.loc-none { padding: 8px 12px; color: var(--muted); font-size: 14px; }
.no-delivery { flex-basis: 100%; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.early-code { padding: 2px 10px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); letter-spacing: .08em; }

/* saved places in the location sheet */
.saved { margin-top: 14px; }
.saved-head { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.saved-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.saved-row.on { border-color: var(--accent); background: var(--accent-soft); }
.saved-use { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 9px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.saved-label { font-weight: 600; }
.saved-use small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-use small.saved-warn { color: var(--warn); }
.saved-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 10px; font-size: 14px; border-radius: 8px; }
.saved-x:hover { color: var(--danger); }
.saved-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.save-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.save-form .target { width: 150px; }
.saved-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* biggest price gaps near you */
.gaps { margin-bottom: 18px; }
.gaps-when { font-size: 13px; white-space: nowrap; }
.gaps-lead { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.gap-list { list-style: none; margin: 0; padding: 0; }
.gap { display: grid; grid-template-columns: 18px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.gap:first-child { border-top: 0; }
.gap-rank { color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.gap-img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.gap-name { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gap-prices { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.gap-price { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gap-price.low { color: var(--accent); font-weight: 600; }
.gap-side { display: grid; justify-items: end; gap: 6px; }
.gap-save { color: var(--accent); font-size: 15px; white-space: nowrap; }
.gap-added { font-size: 13px; }
.gap-wait { padding: 10px 0; color: var(--muted); font-size: 14px; }
#gaps-more { margin-top: 8px; }

/* why RightCart: four consumer benefits */
.benefits { list-style: none; margin: -6px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefit { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.benefit svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit span { display: grid; gap: 1px; min-width: 0; }
.benefit b { font-size: 15px; }
.benefit small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.welcome-card .benefits { margin: 4px 0 0; }

/* your savings wallet */
.wallet { margin-bottom: 18px; padding: 16px 18px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #12846a, #0a4e3e); box-shadow: var(--shadow); }
.wallet-head { display: flex; justify-content: space-between; align-items: center; }
.wallet-title { font-weight: 600; font-size: 15px; opacity: .9; }
.wallet .link { color: #d4f3e6; font-size: 14px; }
.wallet-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 8px; align-items: end; }
.wallet-grid > div { display: grid; gap: 2px; min-width: 0; }
.wallet-grid b { font-size: 20px; letter-spacing: -.01em; }
.wallet-grid .wallet-main b { font-size: 30px; }
.wallet-grid small { font-size: 13px; opacity: .85; line-height: 1.3; }
.wallet-tip, .wallet-how { margin: 10px 0 0; font-size: 13px; line-height: 1.45; opacity: .9; }

/* organiser dashboard */
.dash-group { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dash-group:first-child { margin-top: 4px; }
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .dash-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-tile { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.dash-tile b { font-size: 26px; letter-spacing: -.02em; }
.dash-tile span { font-size: 14px; }
.dash-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.dash-cards { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-card.wide { grid-column: 1 / -1; } }
.dash-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.dash-card h3 { margin: 0 0 10px; font-size: 15px; }
.dash-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-rank li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.dash-rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-rank-bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.dash-rank-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.dash-rank-n { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; }
.dash-empty { margin: 0; font-size: 14px; }
.dash-big { margin: 0; font-size: 26px; font-weight: 700; }
.dash-chart-wrap { position: relative; }
.dash-chart { display: block; width: 100%; height: auto; }
.dash-chart .bar { fill: var(--accent); }
.dash-chart .grid { stroke: var(--line); stroke-width: 1; }
.dash-chart .base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.dash-chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.dash-chart .hit { fill: transparent; cursor: default; }
.dash-chart .hit:hover { fill: rgba(14, 106, 84, .06); }
.dash-tip { position: absolute; top: 0; width: 130px; display: grid; gap: 2px; padding: 8px 10px; font-size: 13px; pointer-events: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.dash-table { margin-top: 8px; font-size: 14px; }
.dash-table summary { cursor: pointer; color: var(--accent); }

/* deal alerts */
.alerts-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px;
  margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.alerts-text { display: grid; gap: 3px; flex: 1 1 240px; }
.alerts-text b { font-size: 16px; }
.alerts-text span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.alerts-actions { display: flex; gap: 8px; }
#alerts-foot { font-size: 14px; }

.push-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
#push-panel .dash-cards { margin-top: 12px; }

.shot-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.shot-list li { padding: 6px 10px; border-radius: 8px; background: var(--surface); }
.shot-list li.bad { background: var(--warn-soft); color: var(--warn); }
#push-panel .panel-head { flex-wrap: wrap; gap: 8px 12px; }
#push-panel .head-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

#guide-body h3 { margin: 18px 0 6px; font-size: 16px; }
.guide-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
#guide-body .btn { margin-top: 16px; }

/* ================================================================
   Quick-commerce look: a mix of the colour families shoppers know from the
   apps (sunny yellow and fresh green, deep purple and pink, warm orange),
   on RightCart's own layout and logo.
   ================================================================ */
:root {
  --accent: #5b21d6;          /* purple: links, selection, focus */
  --accent-ink: #ffffff;
  --accent-soft: #f2ecfe;
  --go: #0c831f;              /* green: buy buttons, best price, savings */
  --go-dark: #096b19;
  --go-soft: #e7f5ea;
  --sun: #f8cb46;             /* yellow: highlights and badges */
  --sun-soft: #fff7d9;
  --spice: #fc8019;           /* orange: deals and festivals */
  --spice-soft: #fff1e5;
  --pink: #e0237d;
  --bg: #fbfaf7;
  --surface: #f3f1ec;
  --line: #ebe7df;
  --shadow: 0 1px 2px rgba(40, 20, 80, .04), 0 10px 30px rgba(40, 20, 80, .07);
}

/* header: white, with a thin yellow-orange-purple ribbon on top */
.topbar { border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--sun) 0%, var(--spice) 45%, var(--pink) 70%, var(--accent) 100%) 1;
  box-shadow: 0 1px 12px rgba(40, 20, 80, .05); }
.wordmark span { color: var(--accent); }
.brand-mark { box-shadow: 0 2px 8px rgba(91, 33, 214, .22); }

/* hero: warm yellow glow on the left, purple-pink on the right */
.hero::before {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(248, 203, 70, .30) 0%, rgba(248, 203, 70, 0) 60%),
    radial-gradient(55% 80% at 100% 0%, rgba(91, 33, 214, .14) 0%, rgba(91, 33, 214, 0) 62%),
    radial-gradient(40% 60% at 75% 100%, rgba(252, 128, 25, .10) 0%, rgba(252, 128, 25, 0) 60%);
}
.hero h1 em { color: var(--accent); background: linear-gradient(90deg, var(--accent), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.welcome { background:
  radial-gradient(80% 45% at 0% 0%, rgba(248, 203, 70, .28) 0%, rgba(248, 203, 70, 0) 60%),
  radial-gradient(60% 40% at 100% 0%, rgba(91, 33, 214, .12) 0%, rgba(91, 33, 214, 0) 60%), var(--bg); }

/* search and chips */
.search { box-shadow: 0 1px 2px rgba(40, 20, 80, .05), 0 14px 40px rgba(91, 33, 214, .12); }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 14px 40px rgba(91, 33, 214, .16); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* buy buttons are green, like the apps' "Add" */
.btn.primary { background: linear-gradient(180deg, #13a02a 0%, var(--go) 100%); border-color: var(--go-dark); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 16px rgba(12, 131, 31, .25); }

/* best price and savings are green; selection is purple */
.price-tag.best { background: var(--go-soft); border-color: #b9e2c1; color: var(--go); }
.gap-price.low, .gap-save { color: var(--go); }
.plan.selected { background: linear-gradient(180deg, #f6f1ff 0%, #ffffff 70%);
  box-shadow: 0 0 0 1.5px var(--accent) inset, 0 10px 24px rgba(91, 33, 214, .10); }
.badge { background: linear-gradient(180deg, #ffe07a 0%, var(--sun) 100%); color: #3d2a00; box-shadow: 0 2px 6px rgba(248, 203, 70, .45); }
.geo-btn { border-color: var(--accent); background: var(--accent-soft); }
.area:hover, .area.on { border-color: var(--accent); }
.area.on { background: var(--accent-soft); }
.saved-row.on { border-color: var(--accent); background: var(--accent-soft); }

/* benefits: one colour each */
.benefit:nth-child(1) svg { stroke: var(--go); }
.benefit:nth-child(2) svg { stroke: var(--accent); }
.benefit:nth-child(3) svg { stroke: var(--spice); }
.benefit:nth-child(4) svg { stroke: var(--pink); }
.benefit:nth-child(1) { background: linear-gradient(180deg, #f3fbf4, #fff); }
.benefit:nth-child(2) { background: linear-gradient(180deg, #f7f2ff, #fff); }
.benefit:nth-child(3) { background: linear-gradient(180deg, #fff6ee, #fff); }
.benefit:nth-child(4) { background: linear-gradient(180deg, #fff1f7, #fff); }

/* savings wallet: deep purple to pink */
.wallet { background: linear-gradient(135deg, #4a17c0 0%, #7a2fe0 55%, #d6247a 100%); box-shadow: 0 12px 30px rgba(91, 33, 214, .25); }
.wallet .link { color: #ffe9a8; }

/* deal alerts card: sunny */
.alerts-card { border-color: #f1c33a; background: var(--sun-soft); }

/* price gaps box gets an orange "deal" edge */
.gaps { border-top: 4px solid var(--spice); }

.dash-chart .hit:hover { fill: rgba(91, 33, 214, .06); }

/* festival banner (shown only on the day) */
#festival { display: grid; gap: 12px; margin: -6px 0 20px; }
.festival { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #fc8019 0%, #e0237d 55%, #5b21d6 100%); box-shadow: 0 14px 34px rgba(224, 35, 125, .25); }
.festival::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 122, .55), rgba(255, 224, 122, 0) 70%); pointer-events: none; }
.fest-head { display: flex; align-items: center; gap: 10px; }
.fest-emoji { font-size: 30px; line-height: 1; }
.fest-head b { display: block; font-size: 20px; letter-spacing: -.01em; }
.fest-when { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 600; }
.fest-greet { margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.fest-hint { margin: 8px 0 8px; font-size: 13px; opacity: .9; }
.fest-items { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.fest-chip { padding: 6px 11px; border: 0; border-radius: 999px; background: #fff; color: #3b1a7a; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 6px rgba(40, 20, 80, .15); }
.fest-chip:hover { background: var(--sun-soft); }
.fest-chip.added { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; cursor: default; }
.wordmark span { background: linear-gradient(90deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-mark { box-shadow: 0 2px 10px rgba(224, 35, 125, .28); }

/* did you order? */
.status-card { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--sun-soft); border: 1px solid #f1c33a; }
.status-card.done { background: var(--go-soft); border-color: #b9e2c1; }
.status-card b { font-size: 16px; }
.status-card p { margin: 3px 0 10px; color: var(--muted); font-size: 14px; }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reason-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips p { flex-basis: 100%; margin: 0 0 2px; font-weight: 600; color: var(--text); }
.reason-chips .chip { margin: 0; }

/* ================================================================
   Same look as the landing page, everywhere: soft colour washes,
   a floating pill header, gradient buttons, big rounded cards.
   ================================================================ */
:root { --violet: #8a3ffc; --lime: #c6f432; --ink: #17112b; --text: #17112b; --muted: #625b78; --line: #ece7f6; }
body { background: #faf8ff; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(138, 63, 252, .20), transparent 70%),
    radial-gradient(50% 35% at 100% 18%, rgba(224, 35, 125, .12), transparent 70%),
    radial-gradient(45% 30% at 0% 75%, rgba(198, 244, 50, .12), transparent 70%),
    radial-gradient(50% 35% at 100% 95%, rgba(252, 128, 25, .10), transparent 70%), #faf8ff; }
.hero::before { display: none; }

/* floating pill header */
.topbar { position: sticky; top: 10px; margin: 10px auto 0; width: min(1120px, calc(100% - 20px)); border: 1px solid rgba(255, 255, 255, .9);
  border-image: none; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 8px 30px rgba(60, 30, 120, .10);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.topbar .wrap { height: 58px; padding: 0 8px 0 12px; }
.brand-mark { border-radius: 10px; }
.wordmark { font-size: 21px; font-weight: 800; }
.loc { border-radius: 999px; background: #fff; }

/* headlines */
.hero { padding: 34px 0 26px; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 9vw, 72px); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { background: linear-gradient(90deg, var(--accent), var(--violet) 40%, var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
main.wrap.stack > div:first-child h1 { font-weight: 800 !important; font-size: clamp(36px, 7vw, 52px) !important; letter-spacing: -.035em !important; line-height: 1.02; }
main.wrap.stack > div:first-child h1::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--spice)); }

/* buttons: pill shapes, purple-to-pink for the main action, green kept for shopping */
.btn { border-radius: 999px; border-color: var(--line); background: #fff; font-weight: 700; }
.btn.small { border-radius: 999px; padding: 7px 14px; }
.btn.primary { background: linear-gradient(90deg, var(--violet), var(--pink)); border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px rgba(160, 40, 200, .28); }
.btn.primary.shop-btn { background: linear-gradient(180deg, #13a02a 0%, var(--go) 100%); box-shadow: 0 8px 20px rgba(12, 131, 31, .25); }
.get-app { border-radius: 999px; }

/* cards */
.panel { border-radius: 28px; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(60, 30, 120, .08); }
.panel h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.search { border-radius: 999px; background: #fff; }
.search input { padding-left: 10px; }
.benefit, .dash-tile, .dash-card { border-radius: 22px; border-color: rgba(255, 255, 255, .95); box-shadow: 0 8px 24px rgba(60, 30, 120, .06); }
.wallet, .festival, .gaps, .alerts-card { border-radius: 28px; }
dialog { border-radius: 30px; border: 0; box-shadow: 0 30px 80px rgba(40, 20, 90, .3); }
dialog::backdrop { background: rgba(23, 17, 43, .45); backdrop-filter: blur(3px); }
.foot { color: var(--muted); }

/* ---------- sign-in screen ---------- */
.welcome { background: transparent; }
.welcome::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 40% at 0% 0%, rgba(138, 63, 252, .26), transparent 70%),
    radial-gradient(60% 40% at 100% 10%, rgba(224, 35, 125, .16), transparent 70%),
    radial-gradient(50% 30% at 100% 100%, rgba(252, 128, 25, .14), transparent 70%), #faf8ff; }
.welcome-card { max-width: 560px; gap: 14px; }
.welcome-card .brand { font-size: 22px; }
.welcome-pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(60, 30, 120, .08); font-weight: 700; font-size: 14px; }
.welcome-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--go); }
.welcome-card h1 { font-weight: 800; font-size: clamp(42px, 11vw, 64px); line-height: .96; letter-spacing: -.045em; margin: 4px 0 0; }
.welcome-card h1 span { display: block; }
.welcome-card h1 .w1 { background: linear-gradient(90deg, var(--pink), var(--spice)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-card h1 .w2 { background: linear-gradient(90deg, var(--accent), var(--violet) 40%, var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.signin-box { display: grid; gap: 12px; padding: 20px; border-radius: 28px; background: rgba(255, 255, 255, .92); border: 1px solid #fff;
  box-shadow: 0 14px 40px rgba(60, 30, 120, .10); }
.signin-box h2 { margin: 0; font-size: 20px; font-weight: 800; }
.consent-list { background: #faf8ff; border: 1px solid var(--line); border-radius: 20px; }
.code-input { border-radius: 18px; border: 2px solid var(--line); font-size: 20px; letter-spacing: .12em; padding: 14px 16px; background: #fff; }
.code-input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(138, 63, 252, .12); }
.welcome-card .btn.primary { padding: 16px 20px; font-size: 18px; }
.welcome-card .install-btn { border-radius: 999px; }
.welcome-card { grid-template-columns: minmax(0, 1fr); }
.signin-box { grid-template-columns: minmax(0, 1fr); }
.hero h1.tri > * { display: block; }
.hero h1 em.w1 { background: linear-gradient(90deg, var(--pink), var(--spice)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* price gaps: refresh and categories */
.gaps .panel-head { align-items: center; gap: 10px; }
.refresh-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; }
.refresh-btn:hover { border-color: var(--accent); }
.refresh-btn:disabled { opacity: .7; cursor: progress; }
.refresh-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gaps-when { white-space: nowrap; }
.gap-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 10px; padding: 2px 20px 6px; scrollbar-width: none; }
.gap-cats::-webkit-scrollbar { display: none; }
.gap-cat { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
  color: var(--text); cursor: pointer; white-space: nowrap; }
.gap-cat.on { border-color: transparent; color: #fff; background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 6px 16px rgba(160, 40, 200, .25); }
.gap-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.gap-offer { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--sun-soft); color: #7a5200;
  font-size: 12px; font-weight: 700; }

/* survey card */
.survey-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: 28px;
  background: linear-gradient(120deg, #fff4d9 0%, #ffe9f3 55%, #efe6ff 100%); border: 1px solid #fff; box-shadow: 0 12px 30px rgba(60, 30, 120, .10); }
.survey-emoji { font-size: 30px; line-height: 1; }
.survey-text { display: grid; gap: 3px; flex: 1 1 220px; }
.survey-text b { font-size: 17px; }
.survey-text span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.survey-actions { display: flex; align-items: center; gap: 12px; }
.survey-nudge { margin: 10px 0 0 !important; font-size: 14px; }
.survey-nudge a { color: var(--accent); font-weight: 700; }

/* feedback button in the header */
.feedback-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; background: linear-gradient(90deg, var(--violet), var(--pink));
  box-shadow: 0 6px 16px rgba(160, 40, 200, .25); }
@media (max-width: 420px) { .feedback-btn span { display: none; } .feedback-btn { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 420px) {
  .get-app { width: 38px; padding: 0; justify-content: center; }
  .get-app > span { display: none; }
  .nav { gap: 4px; }
  .nav .loc { min-width: 104px; }
}
@media (max-width: 420px) {
  .nav .loc { min-width: 92px; }
  /* the watchlist bell only shows on small phones when there's a new alert (Watchlist is also in the footer) */
  .nav .bell:not(:has(.bell-count:not([hidden]))) { display: none; }
}
@media (max-width: 420px) { .get-app { height: 38px; } }
