/* DealDesk: no frameworks, no web fonts, no CDN. */
[hidden] { display: none !important; }
:root {
  --paper: #f6f4fd;
  --surface: #ffffff;
  --ink: #16122e;
  --muted: #6c6887;
  --line: #e7e3f5;
  --line-soft: #f1eefb;
  --save: #0b9b6a;       /* money saved */
  --save-bg: #e3f7ee;
  --hot: #6b3cf6;        /* brand violet: primary action */
  --hot-2: #ff4f8b;      /* brand pink: gradient partner */
  --hot-ink: #ffffff;
  --sun: #ff8a3d;        /* discount badge */
  --warn: #9a5b00;
  --warn-bg: #fff4dc;
  --bad: #c0213b;
  --radius: 14px;
  --grad: linear-gradient(135deg, var(--hot) 0%, #a33df0 55%, var(--hot-2) 100%);
  --shadow: 0 1px 2px rgba(22, 18, 46, .05), 0 8px 24px rgba(80, 52, 180, .08);
  --shadow-lg: 0 2px 6px rgba(22, 18, 46, .06), 0 18px 40px rgba(80, 52, 180, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0c1f;
    --surface: #18142d;
    --ink: #f2f0fb;
    --muted: #a6a1c4;
    --line: #2b2646;
    --line-soft: #221d3a;
    --save: #39d69a;
    --save-bg: #12322a;
    --hot: #8f6bff;
    --hot-2: #ff6fa3;
    --hot-ink: #ffffff;
    --sun: #ff9a55;
    --warn: #f0b44c;
    --warn-bg: #33270f;
    --bad: #ff8a99;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--hot); color: var(--hot-ink);
  display: grid; place-items: center; font-size: .95rem; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.nav a.on, .nav a:hover { color: var(--ink); background: var(--line-soft); }

main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }

/* Flash */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; background: var(--save-bg); color: var(--save); font-weight: 500; }
.flash--warn { background: var(--warn-bg); color: var(--warn); }
.flash--err { background: var(--warn-bg); color: var(--bad); }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); white-space: nowrap; font-weight: 500; font-size: .92rem; }
.tabs a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.searchrow { display: flex; gap: 8px; flex-wrap: wrap; }
.searchrow input[type=search] { flex: 1 1 220px; }
input, select, textarea {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; min-height: 42px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--hot); outline-offset: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600;
  padding: 9px 16px; min-height: 42px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink);
  color: var(--paper); text-decoration: none; cursor: pointer; }
.btn--hot { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--sm { padding: 5px 10px; min-height: 34px; font-size: .88rem; }
.btn--block { width: 100%; }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px;
  cursor: pointer; color: var(--muted); font-size: 1.05rem; display: grid; place-items: center; }
.iconbtn:hover { color: var(--ink); }
.iconbtn.on { color: var(--hot); border-color: var(--hot); }

/* Deal grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; transition: opacity .2s; }
.card.gone { opacity: 0; pointer-events: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--line-soft); display: block; text-decoration: none; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.mono { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800;
  letter-spacing: -.02em; background: color-mix(in srgb, var(--tint) 12%, var(--surface)); color: var(--tint); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--hot); color: var(--hot-ink); font-weight: 700;
  font-size: .82rem; padding: 3px 8px; border-radius: 6px; }
.badge--type { left: auto; right: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.card__title { font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price__now { font-size: 1.25rem; font-weight: 800; }
.price__was { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.pay { background: var(--save-bg); color: var(--save); border-radius: 8px; padding: 6px 9px; font-size: .84rem; font-weight: 600; }
.pay span { font-weight: 400; }
.why { font-size: .78rem; color: var(--hot); font-weight: 600; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px dashed var(--muted); padding: 2px 6px; border-radius: 4px; font-size: .85rem; }
.card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.card__actions .btn { flex: 1; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Phones: compact horizontal cards so more deals fit on one screen */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { display: grid; grid-template-columns: 104px 1fr; }
  .card__media { aspect-ratio: 1; margin: 12px 0 12px 12px; border-radius: 8px; align-self: start; }
  .card__media img { padding: 6px; }
  .mono { font-size: 1.8rem; }
  .badge { top: 4px; left: 4px; font-size: .72rem; padding: 2px 5px; }
  .badge--type { display: none; }
  .card__body { padding: 12px; }
  .price__now { font-size: 1.1rem; }
  .card__actions .btn { min-height: 38px; }
  .iconbtn { width: 38px; height: 38px; }
  .top__in { gap: 4px; padding-top: 6px; }
  .nav { margin-left: -10px; width: calc(100% + 20px); }
}

/* Panels / forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2 { margin-bottom: 4px; }
.panel > p.muted:first-of-type { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
.check { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.check input { min-height: 0; width: 18px; height: 18px; }
.narrow { max-width: 440px; margin: 20px auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .9rem; user-select: none; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--hot); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }

/* Deal page */
.deal { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .deal { grid-template-columns: 380px 1fr; } }
.deal__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--line-soft); }
.deal__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 20px; }
.deal__price .price__now { font-size: 2rem; }
.spark { width: 100%; height: 90px; }
.spark path.line { fill: none; stroke: var(--save); stroke-width: 2; }
.spark path.area { fill: var(--save-bg); }
.offerlist { list-style: none; padding: 0; margin: 0; }
.offerlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.offerlist li:last-child { border-bottom: 0; }
.mine { font-size: .75rem; background: var(--hot); color: var(--hot-ink); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: .85rem; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 760px; }

.deal__media:has(.mono) { aspect-ratio: auto; height: 160px; }
@media (min-width: 820px) { .deal__media:has(.mono) { aspect-ratio: 1; height: auto; } }

/* Shopping list */
.item__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; margin-bottom: 6px; }
.item__head h2 { margin: 0 0 2px; }
.item__tools { display: flex; gap: 8px; align-items: center; }
.qty { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); }
.qty input { width: 64px; min-height: 34px; padding: 4px 8px; }
h3.sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.opt--on { border-color: var(--save); background: var(--save-bg); }
.opt input { min-height: 0; width: 18px; height: 18px; accent-color: var(--save); }
.opt__main { display: flex; flex-direction: column; min-width: 0; }
.opt__where { font-weight: 700; font-size: .92rem; }
.opt__title { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.opt__pay { font-size: .8rem; color: var(--save); font-weight: 600; }
.opt__warn { font-size: .8rem; color: var(--bad); font-weight: 600; }
.opt__price { text-align: right; display: flex; flex-direction: column; }
.opt__price small { font-size: .75rem; }
.qc { display: flex; flex-wrap: wrap; gap: 6px; }
.approve { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 14px; margin-top: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.approve strong { font-size: 1.25rem; display: block; }
.approve .muted { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: .85rem; }

/* Baskets */
.basket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.basket__lines { list-style: none; margin: 8px 0; padding: 0; }
.basket__lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.basket__sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-variant-numeric: tabular-nums; margin: 8px 0 12px; }
.basket__sum .total { font-weight: 800; font-size: 1.15rem; }
.basket__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tip { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-size: .85rem; margin: 8px 0; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.basket__sum > span:nth-child(even) { text-align: right; }

/* Targeted offers */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.promo { background: var(--surface); border: 1px dashed var(--hot); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.grid > .promo { min-height: 100%; }
main > .promo { margin-bottom: 16px; }
.promo__label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hot); }
.promo__title { font-size: 1.02rem; }
.promo__body { margin: 0; font-size: .9rem; color: var(--muted); }
.promo__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.promo__why { font-size: .78rem; color: var(--muted); }

/* Sharing and referrals */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.share-row { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.refer { border-color: var(--save); }
.refer__stats { display: flex; gap: 18px; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.refer__stats strong { color: var(--ink); font-size: 1.05rem; }

/* ===== App-style layout (v3) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top__cta { margin-left: 8px; }
.tabbar { display: none; }
@media (max-width: 720px) {
  .top .nav { display: none; }
  .top__in { min-height: 52px; justify-content: space-between; }
  .top__cta { margin-left: auto; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600;
    color: var(--muted); text-decoration: none; padding: 4px 0; border-radius: 10px; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--hot); }
  body.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .approve { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* Hero with the big paste/search box */
.hero { padding: 8px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.hero > p { margin: 0; max-width: 60ch; }
.hero--compact { padding-bottom: 6px; }
.bigsearch { display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.02rem; min-height: 48px; }
.bigsearch input:focus { outline: none; }
.bigsearch:focus-within { outline: 2px solid var(--hot); outline-offset: 2px; }
.bigsearch .btn { min-height: 48px; border-radius: 10px; white-space: nowrap; }
@media (max-width: 480px) { .bigsearch { flex-direction: column; } .bigsearch .btn { width: 100%; } }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.tryrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .88rem; }
.chiplink { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; }
.chiplink:hover { border-color: var(--ink); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
@media (max-width: 720px) { .quick { grid-template-columns: repeat(2, 1fr); } }
.quick a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font-weight: 700; }
.quick a:hover { border-color: var(--ink); }
.quick b { font-size: 1.3rem; line-height: 1; margin-bottom: 4px; }
.quick span { font-weight: 400; color: var(--muted); font-size: .82rem; }

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; align-items: stretch; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.step b { width: 26px; height: 26px; border-radius: 50%; background: var(--save-bg); color: var(--save); display: grid; place-items: center; font-size: .85rem; }
.step .muted { font-size: .88rem; }
.steps3 > .btn { align-self: center; justify-self: start; }

.filters__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters__head h2 { margin: 0; }
.morefilters { position: relative; }
.morefilters summary { list-style: none; cursor: pointer; }
.morefilters summary::-webkit-details-marker { display: none; }
.morefilters[open] .searchrow { margin-top: 10px; }
.morefilters[open] { flex-basis: 100%; }

/* Best-price results */
.cmp-title { font-size: 1.25rem; margin: 2px 0 8px; }
.eyebrow { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.verdict { background: var(--save-bg); color: var(--save); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.verdict strong { font-size: 1.08rem; }
.cmp-list { display: flex; flex-direction: column; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cmp-list .cmp-row:first-child { border-color: var(--save); }
.cmp-row--yours { border-style: dashed; margin-top: 8px; }
.cmp-row__store { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, var(--surface)); }
.cmp-row__main { display: flex; flex-direction: column; min-width: 0; }
.cmp-row__title { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row__pay { font-size: .78rem; color: var(--save); font-weight: 600; }
.cmp-row__price { text-align: right; display: flex; flex-direction: column; }
.cmp-row__price strong { font-size: 1.05rem; }
.cmp-row__price s { color: var(--muted); font-size: .78rem; }
@media (max-width: 480px) {
  .cmp-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .cmp-row .btn { grid-column: 2 / -1; }
}
.card__media:has(.mono) { aspect-ratio: 16 / 7; }
@media (max-width: 560px) { .card__media:has(.mono) { aspect-ratio: 1; } }
@media (max-width: 720px) {
  .steps3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .steps3 .step { flex: 0 0 72%; scroll-snap-align: start; padding: 12px; }
  .steps3 > .btn { flex: 0 0 auto; align-self: center; }
}

/* ===== Cart (v4) ===== */
.badge-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--hot); color: var(--hot-ink); font-size: .7rem; font-weight: 800; vertical-align: 1px; }
.badge-count.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .badge-count.pop { animation: none; } }
.tabbar__ic { position: relative; display: inline-flex; }
.tabbar__ic .badge-count { position: absolute; top: -4px; right: -10px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 16px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); font-weight: 600; max-width: calc(100vw - 32px); }
.toast a { color: var(--hot); white-space: nowrap; }
@media (max-width: 720px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.card__actions .btn--hot { font-size: .92rem; padding-inline: 10px; }
a.iconbtn { text-decoration: none; }

.cmp-row__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 480px) { .cmp-row__btns { grid-column: 2 / -1; justify-content: stretch; } .cmp-row__btns .btn { flex: 1; } }

.cart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.cart-head h1 { margin: 0; }
.cart-head p { margin: 2px 0 0; }
.cart-total { display: flex; flex-direction: column; align-items: flex-end; }
.cart-total strong { font-size: 1.7rem; line-height: 1.1; }
.cart-total .save { color: var(--save); font-weight: 700; font-size: .9rem; }
.cart-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 16px; }
.cart-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: var(--muted); }
.cart-steps li b { display: block; color: var(--ink); font-size: .92rem; }
.cart-steps li b::before { content: counter(s) ". "; color: var(--hot); }
@media (max-width: 720px) { .cart-steps { grid-template-columns: 1fr; } .cart-steps li { padding: 8px 12px; } }

.store { gap: 12px; }
.store--opened { border-color: var(--save); box-shadow: 0 0 0 3px var(--save-bg); }
.store__head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.store__head h2 { margin: 0; }
.store__badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, var(--surface)); }
.store__total { font-size: 1.25rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.lines__title { flex: 1 1 200px; min-width: 0; text-decoration: none; font-weight: 500; }
.lines__ctl { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lines__price { min-width: 70px; text-align: right; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 34px; height: 32px; border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--line-soft); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.paytip { background: var(--save-bg); color: var(--save); border-radius: 8px; padding: 9px 11px; font-size: .88rem; }
.paytip .muted { color: inherit; opacity: .8; }
.paytip--other { background: var(--warn-bg); color: var(--warn); }
.store__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.btn--big { min-height: 50px; font-size: 1.02rem; }
.openlist { display: flex; flex-direction: column; gap: 6px; }
.openlist .btn { justify-content: flex-start; }
.store__done .btn { width: 100%; }
.done { border-color: var(--save); text-align: center; }
.cart-empty { padding: 32px 16px; }
.cart-empty__icon { font-size: 2.6rem; margin: 0; }
.cart-empty h1 { margin: 6px 0; }
@media (max-width: 720px) {
  .cart-steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cart-steps li { padding: 8px; text-align: center; }
  .cart-steps li b { font-size: .8rem; }
  .cart-steps li span { display: none; }
}
.toast { white-space: nowrap; }

/* ===== Product thumbnails (v5) ===== */
.card__media { aspect-ratio: 5 / 4; background: #fff; }
.card__media:has(.mono) { aspect-ratio: 5 / 4; }
.thumb { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #fff; isolation: isolate; }
.thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; background: #fff;
  transition: transform .35s ease; }
.card:hover .thumb__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .thumb__img { transition: none; } .card:hover .thumb__img { transform: none; } }
.thumb__art { display: none; }
.thumb--art { background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--tint) 18%, var(--surface)), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 9%, var(--surface)), color-mix(in srgb, var(--tint) 3%, var(--surface))); }
.thumb--art .thumb__art { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--tint); }
.thumb__art svg { width: clamp(36px, 30%, 84px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.thumb__art b { font-size: .72rem; letter-spacing: .14em; font-weight: 800; opacity: .85; }
.thumb--mini .thumb__art b { display: none; }
.thumb--mini .thumb__art svg { width: 26px; }
.thumb--mini .thumb__img { padding: 6%; }
.thumb--hero .thumb__art b { font-size: 1rem; }
.thumb--hero .thumb__img { padding: 8%; }
.card__media .badge { z-index: 2; }

/* cart line thumbnails */
.lines li { flex-wrap: nowrap; }
.lines__thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); }
@media (max-width: 480px) { .lines li { flex-wrap: wrap; } .lines__ctl { width: 100%; justify-content: flex-end; } }

/* ===== Product page ===== */
.crumbs { font-size: .88rem; margin-bottom: 10px; }
.crumbs a { color: inherit; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 16px; }
@media (min-width: 860px) { .pdp { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; } }
.pdp__media { aspect-ratio: 1; max-width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 859px) { .pdp__media { aspect-ratio: 4 / 3; } }
.pdp__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pdp__title { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin: 0; text-wrap: balance; }
.pdp__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chipk { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.chipk--save { background: var(--save-bg); color: var(--save); }
.bestbox { background: var(--surface); border: 1.5px solid var(--save); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bestbox__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bestbox__price { font-size: 2.1rem; line-height: 1; }
.bestbox__where { font-weight: 600; }
.bestbox__where s { margin-left: 6px; font-weight: 400; }
.bestbox__pay { color: var(--save); font-weight: 600; font-size: .9rem; }
.bestbox__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.bestbox__btns .btn { flex: 1 1 180px; }
.verdict-pill { font-size: .86rem; font-weight: 600; border-radius: 8px; padding: 7px 10px; }
.verdict-pill--good, .verdict-bar--good { background: var(--save-bg); color: var(--save); }
.verdict-pill--ok, .verdict-bar--ok { background: var(--line-soft); color: var(--ink); }
.verdict-pill--wait, .verdict-bar--wait { background: var(--warn-bg); color: var(--warn); }

.history { gap: 12px; scroll-margin-top: 70px; }
.history__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.history__head h2 { margin: 0; }
.seg { display: inline-flex; background: var(--line-soft); border-radius: 10px; padding: 3px; }
.seg a { text-decoration: none; font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.verdict-bar { border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; font-weight: 600; }
.legend i, .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.pchart-scroll { overflow-x: auto; }
.pchart-wrap { position: relative; min-width: 520px; }
.pchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.pchart__grid { stroke: var(--line); stroke-width: 1; }
.pchart__ylab, .pchart__xlab { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pchart__line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.pchart__end { stroke: var(--surface); stroke-width: 2; }
.pchart__cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
.pchart__tip { position: absolute; top: 8px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: .8rem;
  pointer-events: none; min-width: 150px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.pchart__tip b { display: block; margin-bottom: 4px; }
.pchart__tip div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.pchart__tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.htable td { vertical-align: middle; }
.lowtag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--save); background: var(--save-bg); padding: 1px 6px; border-radius: 4px; }
.card__actions { gap: 6px; }
.card__actions .btn { white-space: nowrap; padding-inline: 8px; font-size: .88rem; flex: 1 1 auto; }
.card__actions .iconbtn { width: 36px; height: 36px; flex: 0 0 36px; }
@media (max-width: 859px) { .pdp__media { aspect-ratio: 16 / 10; max-height: 260px; width: 100%; } }
.htable td:first-child { white-space: nowrap; }
@media (max-width: 560px) { .htable th:nth-child(4), .htable td:nth-child(4) { display: none; } }

/* ===== Country & language picker (v6) ===== */
.locale { position: relative; margin-left: 8px; }
.locale summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--surface); }
.locale summary::-webkit-details-marker { display: none; }
.locale[open] summary { border-color: var(--ink); }
.locale__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(340px, calc(100vw - 32px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; }
.locale__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.locale__grid a { text-decoration: none; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-soft); font-size: .9rem; }
.locale__grid a.on { border-color: var(--hot); background: color-mix(in srgb, var(--hot) 8%, var(--surface)); font-weight: 700; }
@media (max-width: 720px) { .locale { margin-left: auto; } .top__cta { margin-left: 8px; } }
/* Right-to-left (Arabic) */
[dir="rtl"] .locale__menu { right: auto; left: 0; }
[dir="rtl"] .cart-total, [dir="rtl"] .cmp-row__price, [dir="rtl"] .lines__price { text-align: left; align-items: flex-start; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }

/* ===== Admin insights (v6) ===== */
.ifgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ifgrid .field { margin: 0; }
.segchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .86rem; }
.segbar { gap: 10px; }
.segbar__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.ins-grid .panel { margin: 0; min-width: 0; }
.ins-head { display: flex; justify-content: space-between; align-items: baseline; }
.ins-head h2 { margin: 0; font-size: 1.05rem; }
.ins-table td:first-child { position: relative; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--w); background: color-mix(in srgb, var(--hot) 12%, transparent); border-radius: 4px; z-index: -1; }
.ins-table tbody tr { position: relative; z-index: 0; }
.ins-table td:first-child a { color: inherit; }
@media (max-width: 720px) {
  .locale { position: static; }
  .locale__menu { position: fixed; left: 12px; right: 12px; top: calc(58px + env(safe-area-inset-top, 0px)); width: auto; max-height: 70vh; overflow-y: auto; }
}

/* ---- Delivery address (v6) ---- */
form.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--hot); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.addrbar { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; font-size: .92rem; }
.addrbar a { color: inherit; font-weight: 700; white-space: nowrap; }
.addrlist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.addrlist li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.addrlist li.is-default { border-color: var(--hot); }
.addrlist .mine { margin-left: 4px; }
.addrlist__act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.addrform > summary { cursor: pointer; font-weight: 700; color: var(--hot); padding: 6px 0; list-style: none; }
.addrform > summary::-webkit-details-marker { display: none; }
.addrform[open] > summary { color: var(--ink); margin-bottom: 8px; }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.addr-grid__full { grid-column: 1 / -1; }
.addr-grid input, .addr-grid select { width: 100%; }
.lbl { font-weight: 600; font-size: .9rem; }
.seg--radio label { cursor: pointer; }
.seg--radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg--radio span { display: block; font-size: .9rem; font-weight: 600; padding: 7px 12px; border-radius: 8px; color: var(--muted); }
.seg--radio input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg--radio input:focus-visible + span { outline: 2px solid var(--hot); }
.stores-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stores-head h2 { margin: 0; }
.progress-pill { background: var(--line-soft); border-radius: 99px; padding: 3px 10px; font-size: .85rem; font-weight: 700; }
.syncl { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.syncl li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.syncl li.is-done { background: var(--save-bg); border-color: transparent; }
.syncl .store__badge { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
.syncl__name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.syncl__ok { color: var(--save); font-weight: 800; font-size: 1.2rem; padding: 0 8px; }
.shipto { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; background: var(--line-soft); border-radius: var(--radius); padding: 10px 12px; margin: 12px 0 4px; font-size: .9rem; }
.shipto--none { display: block; }
.shipto--warn { background: var(--warn-bg); }
.shipto__txt { min-width: 0; overflow-wrap: anywhere; }
.shipto__txt .muted { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.shipto__fix, .shipto__ok { grid-column: 1 / -1; font-size: .85rem; }
.shipto__fix { color: var(--warn); }
.shipto__fix a { color: inherit; font-weight: 700; margin-right: 10px; }
.shipto__fix .linkbtn { color: inherit; }
.shipto__ok { color: var(--save); }
@media (max-width: 560px) {
  .addr-grid { grid-template-columns: 1fr; }
  .addrlist li { flex-direction: column; }
  .addrlist__act { justify-content: flex-start; }
}

/* ---- Verticals (v6) ---- */
.vstrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vstrip::-webkit-scrollbar { display: none; }
.vstrip a { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 10px 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; }
.vstrip a b { font-size: 1.6rem; line-height: 1; font-weight: 400; }
.vstrip a:hover { border-color: var(--hot); }
.vstrip__all b { color: var(--hot); font-weight: 700 !important; }
.hub-head { margin: 8px 0 18px; }
.hub-head h1 { margin: 0 0 4px; }
.hub-group { margin: 22px 0; }
.hub-group h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.vtile:hover { border-color: var(--hot); transform: translateY(-1px); }
.vtile__ic { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
.vtile .muted { font-size: .85rem; }
.vtile__foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flowpill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--line-soft); color: var(--ink); white-space: nowrap; }
.flowpill--cart { background: var(--save-bg); color: var(--save); }
.flowpill--quote, .flowpill--lead { background: var(--warn-bg); color: var(--warn); }
.flowpill--buy, .flowpill--book { background: color-mix(in srgb, var(--hot) 14%, transparent); color: var(--hot); }
.vhero { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.vhero h1 { margin: 0; }
.vhero p { margin: 4px 0 0; }
.vhero__ic { font-size: 2.4rem; width: 64px; height: 64px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; flex-shrink: 0; }
.vctx { margin: 0 0 10px; }
.vfinder { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.vfinder .field { margin: 0; min-width: 120px; }
.vfinder__grow { flex: 1 1 240px; }
.vfinder input, .vfinder select { width: 100%; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-radio label { cursor: pointer; }
.chips-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips-radio span { display: block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; background: var(--paper); }
.chips-radio input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips-radio input:focus-visible + span { outline: 2px solid var(--hot); outline-offset: 2px; }
.vnote { font-size: .88rem; color: var(--muted); background: var(--line-soft); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 14px; }
.domlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.dom__name { display: flex; flex-direction: column; gap: 2px; }
.dom__name strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.dom__st { font-size: .85rem; font-weight: 700; }
.dom--free { border-color: var(--save); }
.dom--free .dom__st { color: var(--save); }
.dom--taken { opacity: .65; }
.dom--taken .dom__st { color: var(--bad); }
.dom--unknown .dom__st { color: var(--warn); }
.dom__buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dom__buy small { display: block; }
.ptable td, .ptable th { white-space: nowrap; }
.planlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.plan__head { display: flex; gap: 10px; align-items: center; }
.plan__head .store__badge { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; flex-shrink: 0; }
.plan__name { font-size: .85rem; }
.plan__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan__price > div { display: flex; flex-direction: column; background: var(--line-soft); border-radius: 10px; padding: 8px 10px; }
.plan__price span.muted { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.plan__price strong { font-size: 1.15rem; }
.plan__price .lowtag { align-self: flex-start; margin-top: 4px; }
.plan__feat { list-style: none; padding: 0; margin: 0; font-size: .88rem; display: grid; gap: 3px; }
.plan__feat li::before { content: '✓ '; color: var(--save); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }
.storelinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.storelinks a { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.storelinks a:hover { border-color: var(--hot); }
.storelinks b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--tint) 16%, var(--surface)); color: var(--tint); }
.storelinks span { display: flex; flex-direction: column; font-weight: 700; font-size: .92rem; }
.storelinks small { font-weight: 500; }
.adminnote { font-size: .82rem; background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: var(--radius); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.specs div { background: var(--line-soft); border-radius: 10px; padding: 8px 10px; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.badge--own { background: var(--save); color: #fff; top: auto; bottom: 8px; }
@media (max-width: 560px) {
  .vtiles { grid-template-columns: 1fr 1fr; }
  .vtile { padding: 12px; }
  .vtile .muted { font-size: .8rem; }
  .vtile__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .vfinder .field { flex: 1 1 100%; }
  .vfinder .btn { width: 100%; }
  .vhero__ic { width: 52px; height: 52px; font-size: 2rem; }
}


/* =====================================================================
   Theme v2: violet → pink brand, soft lavender canvas, rounded cards
   ===================================================================== */
body { font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--hot-2) 10%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, color-mix(in srgb, var(--hot) 10%, transparent), transparent 60%),
    var(--paper);
  background-attachment: fixed; }
h1, h2, h3 { letter-spacing: -.025em; font-weight: 800; }
::selection { background: color-mix(in srgb, var(--hot) 25%, transparent); }

/* Header: frosted glass */
.top { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { letter-spacing: -.03em; font-size: 1.2rem; }
.brand__mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); box-shadow: 0 4px 12px color-mix(in srgb, var(--hot) 40%, transparent); font-weight: 900; }
.nav a { border-radius: 10px; font-weight: 600; }
.nav a.on { color: var(--hot); background: color-mix(in srgb, var(--hot) 10%, transparent); }

/* Buttons */
.btn { border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn--hot { background: var(--grad); border: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--hot) 32%, transparent); }
.btn--hot:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--hot) 40%, transparent); }
.btn--hot:active { transform: translateY(0); }
.btn--quiet { background: var(--surface); }
.btn--quiet:hover { border-color: var(--hot); color: var(--hot); }
.iconbtn { border-radius: 12px; background: var(--surface); transition: color .15s, border-color .15s; }
.iconbtn:hover { color: var(--hot); border-color: var(--hot); }
input, select, textarea { border-radius: 12px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--hot) 35%, transparent); outline-offset: 1px; border-color: var(--hot); }

/* Hero: gradient banner */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: 30px 26px 22px; margin: 4px 0 22px;
  box-shadow: var(--shadow-lg); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero::before { width: 340px; height: 340px; right: -90px; top: -140px; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.hero::after { width: 260px; height: 260px; left: -80px; bottom: -150px; background: radial-gradient(circle, rgba(255,214,102,.35), transparent 65%); }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.7rem); max-width: 18ch; }
.hero > p, .hero .muted { color: rgba(255,255,255,.88); }
.hero .bigsearch { border: 0; border-radius: 18px; padding: 7px; box-shadow: 0 14px 34px rgba(30, 10, 80, .28); background: var(--surface); color: var(--ink); }
.hero .bigsearch .btn { border-radius: 13px; }
.bigsearch { border-radius: 18px; border: 1.5px solid var(--line); }
.bigsearch:focus-within { outline: 3px solid color-mix(in srgb, var(--hot) 30%, transparent); }
.hero .vstrip a { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .vstrip a:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.hero .vstrip__all b { color: #fff; }
.hero .vstrip a b { filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.vstrip a { border-radius: 18px; transition: transform .15s, background .15s; }
.vstrip a:hover { transform: translateY(-2px); }

/* Steps for new visitors */
.step { border-radius: 18px; box-shadow: var(--shadow); border-color: transparent; }
.step b { background: var(--grad); color: #fff; }

/* Cards */
.card { border-radius: 20px; border-color: transparent; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { border-radius: 16px; margin: 8px 8px 0; }
.badge { background: linear-gradient(135deg, var(--hot-2), var(--sun)); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: .78rem;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--hot-2) 35%, transparent); }
.badge--type { background: var(--surface); color: var(--ink); box-shadow: none; }
.badge--own { background: var(--save); box-shadow: none; }
.card__meta { text-transform: none; font-weight: 600; }
.card__title { font-weight: 700; }
.price__now { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.pay { background: var(--save-bg); color: var(--save); border-radius: 10px; padding: 4px 8px; font-weight: 600; font-size: .85rem; }
.why { color: var(--hot); font-weight: 600; font-size: .82rem; }

/* Panels and pills */
.panel { border-radius: 22px; border-color: transparent; box-shadow: var(--shadow); padding: 20px; }
.tabs a { border-radius: 999px; font-weight: 600; transition: background .15s, color .15s; }
.tabs a.on { background: var(--ink); color: var(--paper); }
.chips-radio span { border-radius: 999px; }
.chips-radio input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.flash { border-radius: 14px; }
.lowtag { border-radius: 999px; padding: 2px 8px; }

/* Category tiles and pages */
.vtile { border-radius: 22px; border-color: transparent; box-shadow: var(--shadow); }
.vtile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vtile__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.7rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hot) 14%, var(--surface)), color-mix(in srgb, var(--hot-2) 14%, var(--surface))); }
.vhero__ic { border: 0; background: var(--grad); box-shadow: var(--shadow-lg); }
.vfinder { border-radius: 22px; border-color: transparent; box-shadow: var(--shadow); }
.plan, .dom, .storelinks a, .addrlist li, .syncl li { border-radius: 18px; }
.plan { box-shadow: var(--shadow); border-color: transparent; background: var(--surface); }
.hub-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.hub-group h2 { color: var(--hot); }

/* Cart */
.store { border-left: 0 !important; }
.store__badge { border-radius: 14px; }

/* Bottom tab bar: floating pill */
@media (max-width: 720px) {
  .tabbar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 10px 30px rgba(40, 20, 110, .18); padding: 6px; }
  .tabbar a { border-radius: 16px; padding: 6px 0; }
  .tabbar a.on { color: var(--hot); background: color-mix(in srgb, var(--hot) 11%, transparent); }
  body.has-tabbar { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .hero { border-radius: 24px; padding: 24px 18px 18px; margin-inline: -4px; }
}
.badge-count { background: linear-gradient(135deg, var(--hot-2), var(--sun)); }
.toast { border-radius: 16px; }
.toast a { color: #c9b8ff; }

.foot { border-top: 0; }

/* Admin: separate look and login */
.adminbar { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 10; }
.adminbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.adminbar .brand { color: var(--paper); }
.adminbar__act { display: flex; gap: 8px; align-items: center; }
.adminbar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--paper); }
.adminauth__tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--grad); color: #fff; }
body.adminauth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.adminauth__card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 26px; padding: 28px 24px; box-shadow: var(--shadow-lg); }
.adminauth__card .brand { margin-bottom: 18px; }
.adminauth__card h1 { font-size: 1.4rem; }
.adminauth__card input { width: 100%; }
.adminauth__note { font-size: .85rem; margin: 16px 0 0; }
.hashbox { width: 100%; font: 13px/1.4 ui-monospace, Menlo, monospace; }
.statuspill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.statuspill--ok { background: var(--save-bg); color: var(--save); }
.statuspill--todo { background: var(--line-soft); color: var(--muted); }
.statuspill--warn { background: var(--warn-bg); color: var(--warn); }
.statuspill--off { background: var(--line-soft); color: var(--muted); text-decoration: line-through; }
body.is-admin { background: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .vtile, .vstrip a { transition: none; }
  .card:hover, .vtile:hover, .btn--hot:hover, .vstrip a:hover { transform: none; }
}

.ifgrid input, .ifgrid select, .ifgrid textarea { width: 100%; min-width: 0; }
.ifgrid > * { min-width: 0; }
.adminbar .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .adminbar .brand { font-size: 1rem; }
  .adminbar__act .btn { padding: 4px 9px; min-height: 32px; font-size: .8rem; }
  .card .badge { top: 6px; left: 6px; font-size: .68rem; padding: 3px 7px; }
}

.brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.brand__tag { font-size: .68rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.brand__mark { font-size: 1rem; }
@media (max-width: 380px) { .brand__tag { display: none; } }
.empty--fresh { border-style: solid; border-color: transparent; background: var(--surface); box-shadow: var(--shadow); border-radius: 22px; }
