/* ================= AI Deals — design tokens ================= */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --ink: #101826;
  --ink-2: #4a5568;
  --muted: #8a94a6;
  --line: #e3e6ec;
  --brand: #b87400;          /* text links (dark amber, readable on white) */
  --accent: #ffc21a;         /* road-marking yellow: buttons, highlights */
  --hero-1: #0f1a2b;
  --brand-grad: linear-gradient(160deg, #0f1a2b 0%, #16263d 55%, #1f3656 100%);
  --brand-soft: #fff3cf;
  --save: #0d9f6e;          /* green = money saved, only */
  --save-soft: #e1f6ee;
  --warn-soft: #fff3d6; --warn: #8a5b00;
  --shadow-sm: 0 1px 2px rgba(16,24,38,.05), 0 2px 8px rgba(16,24,38,.05);
  --shadow: 0 2px 4px rgba(16,24,38,.04), 0 12px 30px rgba(16,24,38,.1);
  --r-lg: 22px; --r: 16px; --r-sm: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --tabbar-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111b; --surface: #141c29; --surface-2: #1c2635; --ink: #eef2f8; --ink-2: #b3bccb;
    --muted: #7d889b; --line: #253043; --brand: #ffc21a; --brand-soft: #2e2610; --save: #3fd69a; --save-soft: #12301f;
    --warn-soft: #3a2f10; --warn: #f3d98a; --hero-1: #0a121e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #dfe3ea; }
@media (prefers-color-scheme: dark) { html { background: #05060c; } }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  max-width: 480px; margin: 0 auto; height: 100dvh; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20,20,43,.05), 0 30px 80px rgba(20,20,43,.2);
}
button { font: inherit; color: inherit; }
svg { display: block; }

/* ================= app shell + pages ================= */
#app { position: relative; height: 100%; overflow: hidden; background: var(--bg); }
.page {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  background: var(--bg); display: none; padding-bottom: calc(var(--tabbar-h) + 24px);
  scrollbar-width: none; overscroll-behavior: contain;
}
.page::-webkit-scrollbar { display: none; }
.page.is-active, .page.is-animating { display: block; }
#page-detail { padding-bottom: 120px; }

/* ================= brand ================= */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.brand-word { font-size: 22px; font-weight: 700; letter-spacing: -.035em; color: #fff; line-height: 1; }
.brand-word b {
  font-weight: 800; margin-right: .2em;
  background: linear-gradient(120deg, #fff 0%, #d9ccff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 9px; background: rgba(255,255,255,.1);
}

/* ================= home ================= */
.home-hero {
  background: var(--brand-grad); color: #fff; padding: 20px 20px 96px;
  border-radius: 0 0 32px 32px; position: relative; overflow: hidden;
}
.home-hero::after { /* soft light blob */
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px;
  background: radial-gradient(circle, rgba(255,194,26,.16), transparent 65%); pointer-events: none;
}
.brand-row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: 30px; line-height: 1.08; letter-spacing: -.04em; font-weight: 800; margin: 26px 0 18px; position: relative; z-index: 1; }
.hero-title span { color: var(--accent); }

.searchbox {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px;
  padding: 6px 6px 6px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.3); position: relative; z-index: 1;
}
.searchbox > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; padding: 10px 0;
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox button {
  flex: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--accent); cursor: pointer;
  display: grid; place-items: center; transition: transform .12s var(--ease);
}
.searchbox button svg { width: 20px; height: 20px; fill: none; stroke: #101826; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.searchbox button:active { transform: scale(.94); }
.searchbox.small { flex: 1; box-shadow: none; background: var(--surface-2); padding: 2px 12px; border-radius: 14px; }
.searchbox.small input { padding: 10px 0; }

.ex-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px; scrollbar-width: none; position: relative; z-index: 1; }
.ex-row::-webkit-scrollbar { display: none; }
.ex {
  flex: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s;
}
.ex:active { transform: scale(.96); background: rgba(255,255,255,.22); }

.home-body { padding: 4px 20px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.section-head h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; font-weight: 800; }
.link { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 0; }

.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dept {
  border: 0; background: var(--surface); border-radius: var(--r); padding: 12px 4px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease);
}
.dept:active { transform: scale(.95); }
.dept .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.dept span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

.carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.pcard {
  flex: none; width: 158px; scroll-snap-align: start; border: 0; text-align: left; cursor: pointer;
  background: var(--surface); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px; transition: transform .12s var(--ease);
}
.pcard:active { transform: scale(.97); }
.pcard .tile { height: 104px; border-radius: 16px; display: grid; place-items: center; font-size: 46px; position: relative; }
.pcard .tile .save-chip { position: absolute; left: 8px; top: 8px; }
.pcard .t { font-size: 13px; font-weight: 600; line-height: 1.3; height: 34px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .p { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.pcard .s { font-size: 11.5px; color: var(--muted); margin-top: -6px; }

.save-chip { background: var(--save-soft); color: var(--save); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.fine { color: var(--muted); font-size: 11.5px; line-height: 1.6; text-align: center; margin: 28px 8px 0; }

/* ================= top bars ================= */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
}
.bar.transparent { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; justify-content: space-between; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center;
  transition: transform .12s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: scale(.92); }
#save-btn.on svg { fill: #ff4d6d; stroke: #ff4d6d; }
#save-btn.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* ================= results ================= */
.res-body { padding: 4px 16px 0; }
.understood {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--surface);
  border-radius: var(--r); padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.understood[hidden] { display: none; }
.u-label { font-size: 12px; font-weight: 800; color: var(--brand); width: 100%; display: flex; justify-content: space-between; }
.u-chip { background: var(--brand-soft); color: var(--brand); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.u-clear { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.understood.thinking .u-label::after { content: "●"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .15; } }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: var(--surface); border-radius: 999px; padding: 9px 14px; min-height: 40px;
  font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), background .2s;
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.res-tools { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.seg { flex: 1; display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700;
  padding: 8px 4px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
select {
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--surface-2);
  border: 0; border-radius: 14px; padding: 0 10px; height: 44px; max-width: 132px;
}
.ship-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ship-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.ship-toggle input:checked + .switch { background: var(--brand); }
.ship-toggle input:checked + .switch::after { transform: translateX(16px); }
.count { color: var(--muted); font-size: 12px; margin: 12px 0 10px; }

.list { display: grid; gap: 10px; }
.list.pad { padding: 0 16px; }
.row {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: var(--surface); border-radius: var(--r-lg); padding: 10px 12px 10px 10px; box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease);
}
.row:active { transform: scale(.98); }
.row .tile { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; }
.row .mid { flex: 1; min-width: 0; }
.row .t { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.row .end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row .p { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }

/* entrance stagger for lists */
.stagger > * { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.empty { text-align: center; color: var(--muted); padding: 48px 24px; }
.empty[hidden] { display: none; }
.empty-icon { font-size: 40px; width: 84px; height: 84px; border-radius: 28px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--brand); }
.empty b { color: var(--ink); }

/* ================= product page ================= */
.d-hero { height: 270px; display: grid; place-items: center; font-size: 110px; border-radius: 0 0 36px 36px; position: relative; }
.d-hero .tile-emoji { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.d-body { padding: 18px 20px 0; }
.d-kicker { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.d-title { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 800; margin: 6px 0 14px; }
.d-price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.d-price .big { white-space: nowrap; font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.d-price .at { font-size: 13px; color: var(--muted); margin-top: 6px; }
.d-price .save-chip { font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.demo-note { display: inline-block; background: var(--warn-soft); color: var(--warn); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; border-radius: 6px; padding: 2px 7px; margin-top: 10px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px; margin-top: 18px; }
.card h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: -.02em; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .name { font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--muted); opacity: .45; transform-origin: left; animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.bar-row.best .bar-fill { background: var(--save); opacity: 1; }
.bar-row.best .val { color: var(--save); }
.bar-row .val { font-weight: 800; }
@keyframes grow { from { transform: scaleX(0); } }

.offer {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.offer:first-of-type { border-top: 0; padding-top: 0; }
.offer .o-mid { flex: 1; min-width: 0; }
.offer .o-store { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.offer .o-title { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer .o-price { text-align: right; font-weight: 800; font-size: 15px; }
.offer .o-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.how { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.how-ai { color: var(--brand); background: var(--brand-soft); }

.cta-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 6;
}
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 18px;
  background: var(--accent); color: #101826; font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 12px 28px rgba(255,194,26,.35); transition: transform .12s var(--ease);
}
.cta:active { transform: scale(.97); }

/* ================= saved ================= */
.page-title { padding: 26px 20px 16px; }
.page-title h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; font-weight: 800; }
.page-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ================= tab bar ================= */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--tabbar-h);
  display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px);
  border-radius: 24px; box-shadow: var(--shadow); z-index: 10; padding: 6px;
  transition: transform .35s var(--ease), opacity .25s;
}
.tabbar.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
.tabbar button {
  flex: 1; border: 0; background: none; cursor: pointer; border-radius: 18px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 700; transition: color .2s, background .25s;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.is-on { color: var(--brand); background: var(--brand-soft); }
.tabbar button:active { transform: scale(.94); }
.badge { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 99px; background: #ff4d6d; color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
.badge[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.res-tools { flex-wrap: wrap; }
.res-tools .seg { flex: 1 1 100%; }
.res-tools select { order: 3; margin-left: auto; }
.res-tools .ship-toggle { order: 2; margin-top: 0; }

.d-price .big small { font-size: .55em; font-weight: 700; letter-spacing: 0; margin-left: 4px; }

/* logo: 2Roți big, AI small badge */
.brand-word { font-weight: 800; font-size: 24px; display: inline-flex; align-items: center; }
.ai-badge {
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; margin-left: 7px;
  padding: 4px 7px 3px; border-radius: 7px; background: var(--accent); color: #101826;
  border: 0; line-height: 1;
}
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 26px 8px 0; }
.legal-links a { color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.legal-links a:hover { color: var(--brand); }
.legal-links + .fine { margin-top: 12px; }

/* ---------- the road at the bottom of the hero: scooters riding by ---------- */
.home-hero > .hero-inner { position: relative; z-index: 1; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; overflow: hidden; pointer-events: none; z-index: 0; }
.road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.08); }
.lane { position: absolute; left: 0; bottom: 13px; width: calc(100% + 56px); height: 3px; opacity: .8;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 56px); animation: lane 1.4s linear infinite; }
@keyframes lane { to { transform: translateX(-56px); } }
.veh { position: absolute; bottom: 24px; left: 0; width: 78px; height: 46px; color: #fff; animation: drive 18s linear infinite; }
.veh.v2 { animation-delay: -6s; animation-duration: 21s; }
.veh.v3 { animation-delay: -12s; animation-duration: 15s; }
@keyframes drive { from { transform: translateX(-140px); } to { transform: translateX(110vw); } }
.vsym { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.vic { width: 74%; height: auto; color: var(--ink); overflow: visible; }
.dept .ico .vic { width: 86%; }
.d-hero .vic { width: 62%; }
.tile-emoji:has(.vic) { width: 100%; display: grid; place-items: center; }

/* ================= price history ================= */
.hbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; border-radius: 7px; padding: 3px 7px; white-space: nowrap; }
.hb-min { background: #fff1c2; color: #8a5800; }
.hb-near { background: var(--save-soft); color: var(--save); }
.hb-up { background: var(--surface-2); color: var(--muted); }
.vb-good { background: var(--save-soft); color: var(--save); }
.vb-mid { background: #fff1c2; color: #8a5800; }
.vb-bad { background: #ffe3e3; color: #c0262d; }
@media (prefers-color-scheme: dark) { .hb-min, .vb-mid { background: #3a2f10; color: #ffd36b; } .vb-bad { background: #3b1518; color: #ff8a8f; } }
.pcard .hbadge { align-self: flex-start; margin-top: -2px; }
.row .hbadge { margin-top: 5px; }
.hstrip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hstrip:empty { display: none; }
.hstrip .hbadge { font-size: 12.5px; padding: 5px 10px; border-radius: 9px; }

.hhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.hhead h3 { margin: 0; }
.hr-tabs { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.hr-tabs button { border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.hr-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.hbox { position: relative; touch-action: pan-y; }
.hchart { width: 100%; height: 170px; display: block; overflow: visible; }
.h-line { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.h-typ { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.h-typ-l, .h-ticks text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.h-min { fill: var(--save); stroke: var(--surface); stroke-width: 2; }
.h-now { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.h-hover line { stroke: var(--ink); stroke-width: 1; opacity: .4; vector-effect: non-scaling-stroke; }
.htip { position: absolute; top: -6px; background: var(--ink); color: var(--bg); font-size: 12px; border-radius: 8px; padding: 4px 8px; pointer-events: none; white-space: nowrap; z-index: 2; }
.htip b { margin-right: 4px; }
.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.hstats div { background: var(--surface-2); border-radius: 12px; padding: 8px 8px 7px; min-width: 0; }
.hstats small { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hstats b { display: block; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hstats em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.good { color: var(--save); }
.hnote { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.5; }
.alert-link { margin-top: 12px; width: 100%; border: 1.5px dashed var(--line); background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; border-radius: 14px; padding: 11px; cursor: pointer; }
.alert-link:hover { border-color: var(--accent); background: var(--brand-soft); }

.vrow { border-radius: 14px; padding: 12px; margin-top: 10px; background: var(--surface-2); }
.vrow:first-of-type { margin-top: 0; }
.v-top { display: flex; align-items: center; gap: 8px; }
.v-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; flex: none; }
.v-good .v-ico { background: var(--save); } .v-mid .v-ico { background: #e09a00; } .v-bad .v-ico { background: #d6333a; }
.v-top b { font-size: 14px; flex: 1; }
.v-store { font-size: 12px; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.v-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.v-cmp div { background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.v-cmp small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.v-cmp b { font-size: 20px; letter-spacing: -.03em; }
.v-cmp em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.v-good .v-cmp div:last-child b { color: var(--save); }
.v-bad .v-cmp div:last-child b { color: #d6333a; }

.cta-row { display: flex; gap: 10px; }
.cta-row .cta { flex: 1; }
.cta-bell { flex: none; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 22px; cursor: pointer; transition: transform .12s var(--ease); }
.cta-bell:active { transform: scale(.92); }
.cta-bell.on { background: var(--ink); }

/* ================= alert sheet + toast ================= */
.sheet-bg { position: absolute; inset: 0; z-index: 30; background: rgba(8,12,20,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.sheet-bg[hidden] { display: none; }
.sheet-bg.open { opacity: 1; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .3s var(--ease); }
.sheet-bg.open .sheet { transform: none; }
.sh-grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.sh-prod { margin: 0; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.sh-now { margin: 6px 0 16px; font-size: 13.5px; color: var(--ink-2); }
.sh-lbl { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sh-input { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 14px; padding: 4px 16px; margin-top: 6px; }
.sh-input input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 26px; font-weight: 800; color: var(--ink); padding: 8px 0; outline: none; }
.sh-input span { font-weight: 800; color: var(--muted); }
.sh-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sh-quick button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 7px 12px; cursor: pointer; }
.sh-quick button:hover { border-color: var(--accent); }
.sh-info { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 14px 0; }
.sh-actions { display: flex; gap: 10px; }
.sh-actions button { flex: 1; height: 52px; border-radius: 16px; border: 0; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.sh-save { background: var(--accent); color: #101826; }
.sh-cancel { background: var(--surface-2); color: var(--ink); }
.sh-del { background: #ffe3e3; color: #c0262d; }
.toast { position: absolute; left: 50%; bottom: calc(var(--tabbar-h) + 26px); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.toast.show { animation: rise .35s var(--ease); }

/* ================= home extras ================= */
.section-sub { margin: -8px 0 12px; color: var(--muted); font-size: 13px; }
.steps { display: grid; gap: 10px; margin-top: 22px; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px 14px 56px; position: relative; box-shadow: var(--shadow-sm); }
.step .n { position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 10px; background: var(--accent); color: #101826; font-weight: 900; display: grid; place-items: center; }
.step b { font-size: 15px; }
.step p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ================= saved: alerts ================= */
.sv-h { font-size: 15px; margin: 6px 0 2px; letter-spacing: -.01em; }
.arow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; border: 0; width: 100%; cursor: pointer; background: var(--surface); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow-sm); font: inherit; color: inherit; }
.arow .a-t { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .a-m { grid-column: 1; font-size: 12px; color: var(--muted); }
.arow .a-s { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 5px 9px; }
.arow.hit .a-s { background: var(--save-soft); color: var(--save); }
#alerts-box:empty { display: none; }
#alerts-box + #saved-list { margin-top: 10px; }

.hcap { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }
