/* FlashDeals design tokens — black header, white body, logo blue as the only accent, red reserved for deal urgency. */
@font-face { font-family: "Bricolage"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "FDWordmark"; src: url("/fonts/wordmark-opensans-v2.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/body.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bench: #F1F2F4;
  --paper: #FFFFFF;
  --ink: #111318;
  --night: #111318;
  --night-2: #1E2128;
  --mist: #5B616B;
  --line: #C9CDD3;
  --line-soft: #E4E6EA;
  --brand: #1E6FF0;            /* logo blue */
  --brand-deep: #1656C2;
  --brand-wash: #E8F0FE;
  --circuit: #111318;
  --circuit-deep: #111318;
  --circuit-wash: #EEF1F5;
  --tag: #E5322D;
  --tag-wash: #FDE6E5;
  --r-card: 8px;
  --r-ctl: 6px;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bench); color: var(--ink); font: 400 16px/1.5 var(--body); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.pad { padding: 24px; }
.hidden { display: none !important; }

/* ---- header ---- */
.disclosure-strip { background: #fff; color: var(--ink); font-size: 11px; text-align: center; padding: 3px 12px; line-height: 1.3; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); border-bottom: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 10px max(16px, calc((100vw - var(--max)) / 2)); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.wordmark .wm-a { color: #fff; }
.wordmark .wm-b { color: #fff; }
.wm { font-family: "FDWordmark", "Open Sans", var(--display); font-weight: 600; font-style: italic; letter-spacing: -0.03em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0; }
.search { display: flex; align-items: center; background: #fff; border: 0; border-radius: 999px; padding: 0 4px 0 16px; min-width: 0; }
.search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; font: inherit; outline: none; color: var(--ink); }
.search input::placeholder { color: #7E8794; }
.search button { border: 0; background: var(--ink); color: #fff; width: 36px; height: 34px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: var(--brand); }
.tabs { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.tabs a { text-decoration: none; color: #D7DBE1; font: 600 15px var(--display); padding: 8px 12px; border-radius: var(--r-ctl); }
.tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.tabs a[aria-current="page"] { background: #fff; color: var(--ink); }
.mk-select { margin-left: 8px; border: 0; border-radius: var(--r-ctl); background: rgba(255,255,255,.1); color: #fff; padding: 6px 8px; font: 600 13px var(--body); max-width: 150px; }
body.immersive .disclosure-strip, body.immersive .site-footer, body.immersive .site-header { display: none; }

@media (max-width: 860px) {
  .site-header { position: static; grid-template-columns: 1fr; gap: 10px; padding: 10px 14px; }
  .tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tabs a { flex: 0 0 auto; }
}

/* ---- page frame ---- */
#app { max-width: var(--max); margin: 0 auto; padding: 18px 16px 48px; min-height: 60vh; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin: 8px 0 18px; }
.page-head h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--mist); max-width: 62ch; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.section-title h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-title a { font-weight: 600; font-size: 14px; }
.section-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tag); }

/* ---- reel strip (home / search) ---- */
.reel-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.reel-tile { flex: 0 0 148px; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.reel-tile .thumb { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: #111318; border: 2px solid var(--line); }
.reel-tile img { width: 100%; height: 100%; object-fit: cover; }
.reel-tile .thumb-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); }
.reel-tile .play { position: absolute; left: 8px; bottom: 44px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); }
.reel-tile .t { position: absolute; left: 9px; right: 9px; bottom: 8px; margin: 0; color: #fff; font: 600 13px/1.25 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ---- deal cards ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: stretch; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.card { position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; overflow: hidden; }
.card:hover { border-color: var(--ink); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 0.8; background: #fff; padding: 6px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.card-media img { max-width: 100%; max-height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; left: 0; top: 10px; max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; background: var(--tag); color: #fff; font: 700 11.5px var(--display); padding: 4px 11px 4px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); letter-spacing: .01em; }
.pct { position: absolute; right: 8px; top: 9px; background: var(--ink); color: #fff; font: 800 13px var(--display); padding: 3px 7px; border-radius: 4px; }
.timer { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: #fff; font: 600 11.5px var(--display); padding: 3px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.card-body { flex: 1; padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand { margin: 0; height: 15px; line-height: 15px; color: var(--mist); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title { margin: 0; height: 18px; font: 600 13px/18px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title a { color: var(--ink); text-decoration: none; }
.title a:hover { text-decoration: underline; }
.price-row { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 6px; min-height: 22px; min-width: 0; overflow: hidden; margin-top: 1px; }
.price { font: 800 17px/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; flex: 0 0 auto; }
.was { color: var(--mist); font-size: 11px; white-space: nowrap; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.off { background: var(--tag-wash); color: var(--tag); font: 700 10.5px var(--display); padding: 2px 6px; border-radius: 4px; white-space: nowrap; flex: 0 0 auto; }
.asof { margin: 0; height: 14px; line-height: 14px; color: var(--mist); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linklike { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: inherit; }
.ends { margin: 0; color: var(--tag); font-weight: 700; font-size: 13.5px; }
.claim { display: flex; align-items: center; gap: 6px; height: 12px; margin: 0; }
.claim .bar2 { flex: 1; height: 5px; background: var(--tag-wash); border-radius: 2px; overflow: hidden; }
.claim .bar2 i { display: block; height: 100%; background: var(--tag); }
.claim span { font-size: 10px; color: var(--mist); white-space: nowrap; }
.insight { margin: 0; color: var(--mist); font-size: 12px; }
.take { margin: 2px 0 0; padding: 7px 9px; background: var(--brand-wash); border-radius: var(--r-ctl); font-size: 12px; }
.take b { font-family: var(--display); }
.actions { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.acts { display: flex; flex: 1 0 100%; justify-content: space-between; flex-wrap: nowrap; min-width: 0; }
.act { flex: none; display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; border-radius: 6px; padding: 6px 5px; cursor: pointer; color: var(--mist); font: 600 12.5px var(--body); }
.act svg { width: 18px; height: 18px; }
.act:hover { background: var(--bench); color: var(--ink); }
.act[aria-pressed="true"] { color: var(--tag); }
.act.save[aria-pressed="true"] { color: var(--circuit-deep); }
.act.save[aria-pressed="true"] svg, .act.like[aria-pressed="true"] svg { fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; background: var(--circuit); color: #fff; font: 700 15px var(--display); padding: 11px 16px; border-radius: var(--r-ctl); }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--bench); color: var(--ink); }
.btn.danger { background: var(--tag); }
.btn.sm { padding: 7px 12px; font-size: 14px; }
.actions .btn { flex: 1 0 100%; margin-top: 7px; padding: 9px 12px; font-size: 13.5px; background: var(--night); }
.actions .btn:hover { background: var(--brand-deep); color: #fff; }
.sim { display: grid; gap: 8px; padding-top: 6px; }
/* inline "similar products" rows inside a deal card (always 2 rows, lazy-loaded) */
.sim2 { margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line); }
.sim2-h { margin: 0 0 4px; font: 700 10.5px var(--display); color: var(--mist); text-transform: uppercase; letter-spacing: .04em; }
.sim2-rows { display: flex; flex-direction: column; gap: 3px; min-height: 60px; }
.sim2-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; text-decoration: none; color: var(--ink); border-radius: 5px; padding: 3px; }
.sim2-row:hover { background: var(--brand-wash); }
.sim2-row img { width: 26px; height: 26px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); border-radius: 4px; }
.sim2-row .st { font: 500 11px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim2-row .sp { font: 700 11px var(--display); white-space: nowrap; }
.skel { background: linear-gradient(100deg, #E3EAF1 30%, #F1F5F9 50%, #E3EAF1 70%); background-size: 200% 100%; border-radius: var(--r-card); height: 330px; animation: sh 1.3s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; color: var(--mist); min-height: 24px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--circuit); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.empty { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--r-card); padding: 28px; text-align: center; color: var(--mist); }
.empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.notice { background: var(--paper); border-left: 4px solid var(--brand); padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .price { font-size: 19px; }
  .card-body { padding: 8px 9px 10px; }
  .act { padding: 6px 5px; }
  .actions .btn { font-size: 12px; gap: 5px; padding: 8px 6px; white-space: nowrap; }
  .actions .btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
}

/* ---- guides ---- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.guide-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.guide-card:hover { border-color: var(--ink); }
.guide-card h3 { font-size: 16px; margin-bottom: 6px; }
.guide-card p { margin: 0; color: var(--mist); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.article .lead { font-size: 18px; color: var(--mist); margin: 0 0 18px; }
.tips { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { counter-increment: t; position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-card); padding: 12px 14px 12px 52px; }
.tips li::before { content: counter(t); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font: 800 14px var(--display); }
.callout { margin-top: 14px; background: var(--tag-wash); border-left: 4px solid var(--tag); padding: 12px 14px; border-radius: 8px; }
.callout b { font-family: var(--display); }

/* ---- product detail ---- */
.detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.detail .card-media { border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.detail h1 { font-size: clamp(22px, 3vw, 30px); margin: 4px 0 10px; }
.detail .price { font-size: 36px; }
.detail .actions { border-top: 0; padding-top: 0; }
.detail .acts { flex: 0 0 auto; gap: 4px; }
.detail .actions .btn { flex: 0 1 auto; margin-top: 0; margin-left: 8px; padding: 12px 18px; font-size: 15px; }
.detail .claim { max-width: 340px; }
.detail .panel .actions { margin-top: 0; }
.panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; margin-top: 16px; }
.panel h2 { font-size: 18px; margin-bottom: 8px; }
.src-note { color: var(--mist); font-size: 12.5px; margin: 4px 0 0; }
.feature-list { margin: 8px 0 0; padding-left: 20px; }
.feature-list li { margin: 4px 0; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }

/* ---- dialogs / toast / comments ---- */
.dlg { border: 2px solid var(--ink); padding: 0; border-radius: var(--r-card); width: min(560px, calc(100vw - 24px)); max-height: min(720px, 88vh); background: var(--paper); color: var(--ink); }
.dlg::backdrop { background: rgba(10, 25, 35, .55); }
.dlg-in { padding: 18px 20px 20px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dlg-head h2 { font-size: 20px; }
.x { border: 0; background: var(--bench); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.cmt { padding: 10px 0; border-top: 1px solid var(--line); }
.cmt b { font-family: var(--display); }
.cmt small { color: var(--mist); margin-left: 6px; }
.cmt p { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { font: inherit; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 12px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.field .hint { color: var(--mist); font-size: 12.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--tag); font-weight: 600; margin: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-ctl); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- footer ---- */
.site-footer { margin-top: 24px; background: var(--night); color: #C3C8D0; padding: 34px max(16px, calc((100vw - var(--max)) / 2)) 30px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.8fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: #E6E8EC; }
.site-footer .brand-line { display: flex; align-items: center; gap: 8px; color: #fff; font: 800 22px var(--display); margin-bottom: 8px; }
.site-footer .brand-line .wm-a { color: #fff; }
.site-footer .brand-line .wm-b { color: #fff; }
.site-footer .brand-line img { width: 26px; height: 26px; border-radius: 6px; }
.site-footer p { margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fine { font-size: 12px; line-height: 1.5; color: #9AA0AA; max-width: 90ch; }
.site-footer .linklike { color: #E6E8EC; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---- budget: full-width two-column dashboard ---- */
.stat { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.stat span { color: var(--mist); font-size: 13px; font-weight: 600; }
.stat b { display: block; font: 800 28px/1.15 var(--display); letter-spacing: -0.02em; }
.stat b.over { color: var(--tag); }
.stat b.ok { color: var(--ink); }

.budget2 { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.budget-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .budget2 { grid-template-columns: 1fr; } }

.ring-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ring-wrap { position: relative; width: 168px; height: 168px; }
.bring { position: absolute; inset: 0; width: 168px; height: 168px; transform: rotate(-90deg); }
.bring-bg { fill: none; stroke: var(--line-soft); stroke-width: 12; }
.bring-fg { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.bring-fg.over { stroke: var(--tag); }
@media (prefers-reduced-motion: reduce) { .bring-fg { transition: none; } }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-mid b { font: 800 26px var(--display); letter-spacing: -0.02em; }
.ring-mid b.over { color: var(--tag); }
.ring-mid span { color: var(--mist); font-size: 12px; }
.ring-legend { display: flex; gap: 18px; font-size: 13px; }
.ring-legend div { display: flex; align-items: center; gap: 6px; color: var(--mist); }
.ring-legend b { color: var(--ink); font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-spent { background: var(--ink); }
.dot-budget { background: var(--line); }

.row-end { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.row-end .field { flex: 1 1 140px; margin: 0; }
.row-end .btn { flex: 0 0 auto; height: 42px; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-up .field { margin: 0; }
.btn.full { width: 100%; }
.gap-8 { gap: 8px; flex-wrap: wrap; }
.danger-text { color: var(--tag); border-color: var(--tag-wash); }
.danger-text:hover { background: var(--tag-wash); }

.expenses { list-style: none; margin: 0; padding: 0; }
.expenses li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.expenses li:first-child { border-top: 0; }
.expenses .cat { font-size: 17px; }
.expenses .ex-note { display: flex; flex-direction: column; }
.expenses .ex-note small { margin-top: 1px; }
.expenses .ex-amt { display: flex; align-items: center; gap: 10px; }

.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hist-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.hist-row span:last-child { color: var(--mist); }
.hist-bar { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.hist-bar i.over { background: var(--tag); }

/* ---- saved ---- */
.seg { display: inline-flex; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-ctl); padding: 3px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 4px; cursor: pointer; font: 600 14px var(--display); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.reel-grid .reel-tile { flex: initial; }

/* ---- reels feed (immersive) ---- */
.feed { position: fixed; inset: 0; background: #0A1218; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; z-index: 20; }
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; }
.reel-stage { position: relative; height: 100%; max-height: 100dvh; aspect-ratio: 9 / 16; max-width: 100vw; background: #000; overflow: hidden; }
@media (min-width: 700px) { .reel-stage { height: min(100dvh, 920px); border-radius: var(--r-card); } }
.reel-stage video, .reel-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.reel-stage .tapzone { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; }
.reel-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); pointer-events: none; }
.reel-info { position: absolute; left: 0; right: 68px; bottom: 0; padding: 0 14px 18px; color: #fff; }
.reel-info h2 { font-size: 19px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.reel-info p { margin: 6px 0 10px; font-size: 14px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; background: var(--brand); color: #fff; font: 700 12px var(--display); padding: 3px 9px; border-radius: 4px; margin-bottom: 8px; }

.rail { position: absolute; right: 8px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rail .r { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; cursor: pointer; font: 600 12.5px var(--body); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rail .r span.ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(17, 19, 24, .8); display: grid; place-items: center; }
.rail .r[aria-pressed="true"] span.ic { background: var(--tag); }
.rail .r.save[aria-pressed="true"] span.ic { background: var(--brand); color: #fff; }
.rail .r[aria-pressed="true"] svg { fill: currentColor; }
.feed-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; pointer-events: none; }
.feed-bar > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(17, 19, 24, .85); color: #fff; border: 0; text-decoration: none; padding: 8px 14px; border-radius: 6px; font: 600 14px var(--display); cursor: pointer; }
.feed-note { color: #C7D3DA; text-align: center; padding: 40vh 24px 0; }
.mute-hint { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); background: rgba(17,19,24,.85); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; pointer-events: none; }
.buffering::after { content: ""; position: absolute; z-index: 3; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .buffering::after { animation-duration: 3s; } }
.heart-pop { position: absolute; z-index: 5; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; color: #fff; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); opacity: 0; pointer-events: none; }
.heart-pop svg { width: 100%; height: 100%; fill: #fff; }
.heart-pop.go { animation: heartpop .7s ease; }
@keyframes heartpop { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.15); } 55% { transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.pause-flash { position: absolute; z-index: 5; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(17,19,24,.55); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.pause-flash.go { animation: pauseflash .6s ease; }
@keyframes pauseflash { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .heart-pop.go, .pause-flash.go { animation: none; opacity: 0; } }
.seo-fallback { max-width: 70ch; padding: 20px 0; }

/* utilities that replace inline styles (the CSP forbids inline style attributes) */
.mt { margin-top: 12px; }
.white { color: #fff; }
.rail .actions { display: contents; }
.reel-stage .media-slot { position: absolute; inset: 0; }
.reel-stage .media-slot video { z-index: 1; }
.reel-stage .poster { z-index: 0; }
.reel-stage .tapzone { z-index: 2; }
.reel-shade { z-index: 3; }
.reel-info, .rail { z-index: 4; }
.card-actions-note { color: var(--mist); font-size: 13px; }
.field input[type="checkbox"] { width: auto; margin-right: 8px; }
.field label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; font-weight: 500; }

.field select { appearance: auto; }
.seo-fallback { max-width: 70ch; padding: 20px 0; }

/* similar-product tiles (detail page) */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sim-grid .asof { grid-column: 1 / -1; }
.sim-tile { display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-card); padding: 10px; }
.sim-tile:hover { border-color: var(--circuit); }
.sim-tile img { width: 100%; aspect-ratio: 1 / 0.8; object-fit: contain; background: #fff; }
.sim-tile .st { font: 600 13px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-tile .sp { font: 800 16px var(--display); }
.sim-tile .sp s { font-weight: 500; color: var(--mist); font-size: 12px; margin-left: 6px; }

.crumbs { font-size: 13px; color: var(--mist); margin-bottom: 10px; }
.crumbs a { color: var(--mist); }
.about { max-width: 78ch; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--line-soft); }
.about h2 { font-size: 17px; margin-bottom: 6px; }
.about p { margin: 0; color: var(--mist); font-size: 14px; }

/* View on Amazon buttons (deal cards, detail page, reels): always yellow, including on hover. */
a.btn[data-out], a.btn[data-out]:hover, a.btn[data-out]:focus-visible, .actions a.btn[data-out]:hover, .reel-info a.btn[data-out]:hover { background: #FFD814; color: var(--ink); }

/* Budget ring progress line */
.bring-fg, .bring-fg.over { stroke: #FF8A00; }
.dot-spent { background: #FF8A00; }

/* Loading note shown above the placeholder cards */
.loading-note { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 6px; text-align: center; color: var(--ink); }
.loading-note b { font: 700 18px var(--display); }
.loading-note span { color: var(--mist); font-size: 14px; }
.loading-note .spinner { width: 34px; height: 34px; }

/* ---- category FAQ (/deals/:slug) ---- */
.faq-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; margin: 10px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 8px 0 0; color: var(--mist); }
