/* ============================================================ DealsDekho — design tokens */
:root {
  --bg: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #f4f3fc;
  --surface-3: #ecebf8;
  --ink: #15132b;
  --ink-2: #48456a;
  --mute: #7c7998;
  --line: #e6e4f3;
  --line-2: #d9d6ee;
  --brand: #6d5dfc;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --grad: linear-gradient(135deg, #6d5dfc 0%, #a855f7 55%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #efedff 0%, #f7eefe 55%, #fff0f7 100%);
  --focus: #6d5dfc;

  --great: #047857; --great-bg: #d1fae5; --great-glow: rgba(16, 185, 129, .35);
  --good: #15803d;  --good-bg: #dcfce7;
  --fair: #475569;  --fair-bg: #eef1f6;
  --wait: #b45309;  --wait-bg: #fef3c7;
  --fake: #be123c;  --fake-bg: #ffe4e8;
  --unknown: #6b6987; --unknown-bg: #efeef6;
  --gold: #a16207; --gold-bg: #fef6d8;

  --flipkart: #2874f0; --amazon: #f08a00; --myntra: #ff3f6c;

  --shadow-sm: 0 1px 2px rgba(30, 20, 80, .06), 0 1px 3px rgba(30, 20, 80, .06);
  --shadow: 0 2px 6px rgba(30, 20, 80, .05), 0 10px 30px -10px rgba(60, 40, 160, .18);
  --shadow-lg: 0 24px 60px -18px rgba(60, 40, 160, .35);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg: #0f0d22;
  --surface: #18162f;
  --surface-2: #1f1c3a;
  --surface-3: #282448;
  --ink: #eeedfb;
  --ink-2: #c4c1e4;
  --mute: #9a96c0;
  --line: #2c2850;
  --line-2: #3a3566;
  --grad-soft: linear-gradient(135deg, #221d4a 0%, #2a1d45 55%, #34193a 100%);
  --focus: #a99eff;
  --great: #34d399; --great-bg: rgba(16, 185, 129, .16);
  --good: #4ade80;  --good-bg: rgba(34, 197, 94, .14);
  --fair: #a8b3c7;  --fair-bg: rgba(148, 163, 184, .14);
  --wait: #fbbf24;  --wait-bg: rgba(245, 158, 11, .16);
  --fake: #fb7185;  --fake-bg: rgba(244, 63, 94, .16);
  --unknown: #a19dc6; --unknown-bg: rgba(161, 157, 198, .12);
  --gold: #fcd34d; --gold-bg: rgba(250, 204, 21, .14);
  --flipkart: #6aa2ff; --amazon: #ffb547; --myntra: #ff7a98;
  --shadow-sm: none;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
}

/* ============================================================ base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); }

/* floating colour blobs behind everything */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 22s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { background: #c7c0ff; top: -160px; left: -120px; }
.blobs span:nth-child(2) { background: #f5c2ff; top: 30%; right: -200px; animation-delay: -6s; }
.blobs span:nth-child(3) { background: #ffc6dd; bottom: -220px; left: 30%; animation-delay: -12s; }
[data-theme="dark"] .blobs span { opacity: .18; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.12); } }

/* ============================================================ header */
header.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.logo .mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(109, 93, 252, .8); }
.logo .mark svg { width: 19px; height: 19px; }
nav.links { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
nav.links a { text-decoration: none; padding: 8px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
nav.links a:hover { background: var(--surface-2); color: var(--ink); }
nav.links a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
nav.links .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
nav.links .count:empty { display: none; }
.top .spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }

/* ============================================================ buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 13px; font-weight: 700; font-size: 14.5px; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(109, 93, 252, .75); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(168, 85, 247, .8); }
.btn-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--line-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .2s var(--ease); user-select: none; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="dark"] .chip.on { background: #fff; color: #15132b; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .n { font-weight: 800; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--mute); transition: all .2s var(--ease); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

select.sel { height: 36px; padding: 0 30px 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7998' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: .25s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .25s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ============================================================ search box */
.searchbox { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow); transition: box-shadow .25s, border-color .25s; }
.searchbox:focus-within { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow), 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.searchbox > svg { width: 21px; height: 21px; color: var(--mute); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; font-weight: 500; padding: 10px 4px; }
.searchbox input::placeholder { color: var(--mute); }
.searchbox .btn { height: 46px; border-radius: 15px; padding: 0 22px; }
.searchbox.compact { padding: 5px 5px 5px 14px; border-radius: 16px; }
.searchbox.compact input { font-size: 15.5px; padding: 7px 4px; }
.searchbox.compact .btn { height: 40px; }
.link-hint { position: absolute; left: 50px; top: -11px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; opacity: 0; transform: translateY(4px); transition: .2s; pointer-events: none; }
.searchbox.is-link .link-hint { opacity: 1; transform: none; }

/* ============================================================ hero (home) */
.hero { text-align: center; padding: 70px 0 30px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.hero .eyebrow b { background: var(--grad); color: #fff; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 22px auto 14px; font-weight: 800; max-width: 820px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 640px; margin: 0 auto 30px; }
.hero .searchbox { max-width: 720px; margin: 0 auto; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px auto 0; max-width: 760px; }
.hero .tip { margin-top: 16px; font-size: 13.5px; color: var(--mute); }
.hero .tip kbd { font: inherit; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 1px 7px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 42px auto 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { color: var(--mute); font-size: 13px; font-weight: 600; }

.sales { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0 0; }
.sale { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.sale::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.sale .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.sale .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: pulse 1.6s infinite; }
.sale .t { font-weight: 700; font-size: 14px; line-height: 1.35; }
.sale .d { font-size: 12.5px; color: var(--mute); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

section.block { margin: 46px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.block-head p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.step .n { width: 34px; height: 34px; border-radius: 11px; background: var(--grad-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ============================================================ results toolbar */
.results-top { padding: 22px 0 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.toolbar .grow { flex: 1; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store-chip .spin { width: 13px; height: 13px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.store-chip.err { border-color: color-mix(in srgb, var(--fake) 40%, var(--line)); color: var(--fake); }
.store-chip.off { opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.filters-pop { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; z-index: 20; display: none; }
.pop.open { display: block; animation: rise .25s var(--ease); }
.pop label.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pop label.row + label.row { border-top: 1px solid var(--line); }

.progress { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 16px 0 0; opacity: 0; transition: opacity .3s; }
.progress.on { opacity: 1; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); background-size: 200% 100%; border-radius: 99px; transition: width .4s var(--ease); animation: slide 1.4s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }
.progress-label { font-size: 12.5px; color: var(--mute); margin-top: 6px; min-height: 18px; }

.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.sum { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; font-weight: 700; border: 1px solid transparent; transition: transform .15s, box-shadow .2s; }
.sum:hover { transform: translateY(-1px); }
.sum.on { box-shadow: 0 0 0 2px currentColor inset; }
.sum b { font-size: 15px; }
.sum.real { background: var(--great-bg); color: var(--great); }
.sum.fake { background: var(--fake-bg); color: var(--fake); }
.sum.normal { background: var(--fair-bg); color: var(--fair); }
.sum.unknown { background: var(--unknown-bg); color: var(--unknown); }
.sum.acc { background: var(--surface-2); color: var(--ink-2); }
.note { font-size: 13px; color: var(--mute); margin: 8px 0 0; }

.codes-strip { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin: 14px 0 4px; }
.codes-strip .codebox { flex: 1 1 420px; }
.codes-strip .sale { flex: 1 1 300px; }

/* ============================================================ product grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; margin: 18px 0 40px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card.enter { animation: rise .5s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.card .media { position: relative; aspect-ratio: 1 / .92; background: radial-gradient(120% 90% at 50% 0%, #fff 40%, var(--surface-2) 100%); display: grid; place-items: center; overflow: hidden; }
[data-theme="dark"] .card .media { background: #fff; }
.card .media img { max-width: 82%; max-height: 82%; object-fit: contain; transition: transform .5s var(--ease); mix-blend-mode: multiply; }
.card:hover .media img { transform: scale(1.06); }
.card .media .tl { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card .heart { position: absolute; top: 8px; right: 8px; }
.card .media .bl { position: absolute; bottom: 10px; left: 10px; }

.vpill { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; background: var(--vbg); color: var(--vc); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.vpill svg { width: 14px; height: 14px; }
.v-great { --vc: var(--great); --vbg: var(--great-bg); }
.v-good { --vc: var(--good); --vbg: var(--good-bg); }
.v-fair { --vc: var(--fair); --vbg: var(--fair-bg); }
.v-wait { --vc: var(--wait); --vbg: var(--wait-bg); }
.v-fake { --vc: var(--fake); --vbg: var(--fake-bg); }
.v-unknown { --vc: var(--unknown); --vbg: var(--unknown-bg); }
.card .vpill.v-great { animation: glow 2.4s ease-in-out 1; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px var(--great-glow); } }
.badge-low { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: var(--gold-bg); color: var(--gold); }

.heart-btn { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--mute); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s; }
.heart-btn:hover { color: var(--brand-3); transform: scale(1.08); }
.heart-btn svg { width: 18px; height: 18px; }
.heart-btn.on { color: var(--brand-3); }
.heart-btn.on svg { fill: currentColor; }
.heart-btn.pop { animation: heart .45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.store-name { display: inline-flex; align-items: center; gap: 6px; color: var(--sc); }
.store-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.s-flipkart { --sc: var(--flipkart); } .s-amazon { --sc: var(--amazon); } .s-myntra { --sc: var(--myntra); }
.drop-tag { color: var(--great); background: var(--great-bg); padding: 2px 8px; border-radius: 99px; font-size: 11.5px; white-space: nowrap; }
.drop-tag.up { color: var(--wait); background: var(--wait-bg); }
.card .title { font-size: 14px; font-weight: 600; line-height: 1.38; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.price-row .now { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.price-row .usual { font-size: 12.5px; color: var(--mute); }
.price-row .usual s { color: var(--mute); }

/* price range bar: where today's price sits between lowest and highest ever */
.range { position: relative; height: 22px; margin: 2px 4px 0; }
.range .track { position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #34d399, #a3e635 35%, #fbbf24 65%, #fb7185); opacity: .85; }
.range .tick { position: absolute; top: 4px; width: 2px; height: 15px; border-radius: 2px; background: var(--ink-2); transform: translateX(-1px); opacity: .55; }
.range .dot { position: absolute; top: 4px; width: 15px; height: 15px; border-radius: 50%; transform: translateX(-7.5px); background: var(--vc, var(--brand)); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: left .6s var(--ease); }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); font-weight: 600; margin: -2px 0 0; }
.nohist { font-size: 12px; color: var(--mute); padding: 6px 0 2px; }

.offer-line { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; display: flex; align-items: center; gap: 7px; min-height: 30px; color: var(--ink-2); }
.offer-line svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.offer-line b { color: var(--great); }
.offer-line .mine { color: var(--brand); font-weight: 800; }
.shimmer { display: inline-block; height: 12px; width: 70%; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.skel { pointer-events: none; }
.skel .media { background: var(--surface-2); }
.skel .media::after, .skel .ln { content: ""; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel .media::after { position: absolute; inset: 0; }
.skel .ln { display: block; height: 12px; border-radius: 6px; }

.empty { text-align: center; padding: 60px 16px; color: var(--mute); }
.empty .art { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 32px; background: var(--grad-soft); display: grid; place-items: center; color: var(--brand); }
.empty .art svg { width: 54px; height: 54px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 19px; }

/* ============================================================ coupon codes */
.codebox { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.codebox h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.codebox h4 small { font-weight: 500; color: var(--mute); }
.coderow { display: flex; flex-wrap: wrap; gap: 8px; }
.code { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 5px 5px 5px 11px; background: var(--surface-2); }
.code b { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; font-size: 13.5px; }
.code .meta { font-size: 11.5px; color: var(--mute); max-width: 220px; line-height: 1.3; }
.code .meta .ok { color: var(--great); font-weight: 700; }
.code button { height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.code button:hover { border-color: var(--brand); color: var(--brand); }
.vote { display: inline-flex; gap: 4px; }
.vote button { padding: 0 7px; }

/* ============================================================ detail drawer */
.scrim { position: fixed; inset: 0; background: rgba(20, 16, 50, .38); backdrop-filter: blur(3px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--bg); z-index: 41; transform: translateX(102%); transition: transform .42s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-head .grow { flex: 1; }
.drawer-body { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.d-hero { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.d-img { aspect-ratio: 1; background: #fff; border-radius: 18px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.d-img img { max-width: 86%; max-height: 86%; object-fit: contain; }
.d-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 6px 0 10px; }
.d-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-price .now { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.d-price .mrp { color: var(--mute); font-size: 13.5px; }
.yourprice { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px; border-radius: 12px; background: var(--grad-soft); color: var(--brand); font-weight: 800; font-size: 14px; }
.yourprice svg { width: 16px; height: 16px; }
.verdict-box { border-radius: 18px; padding: 16px; background: var(--vbg); color: var(--vc); display: flex; gap: 12px; align-items: flex-start; }
.verdict-box .ic { width: 40px; height: 40px; border-radius: 13px; background: var(--surface); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.verdict-box .ic svg { width: 22px; height: 22px; }
.verdict-box h3 { margin: 0 0 2px; font-size: 17px; }
.verdict-box p { margin: 0; color: var(--ink-2); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.panel h4 { margin: 0 0 12px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.panel h4 small { font-weight: 500; color: var(--mute); font-size: 12.5px; }
.big-range { margin: 26px 8px 4px; position: relative; height: 34px; }
.big-range .track { position: absolute; left: 0; right: 0; top: 14px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #34d399, #a3e635 35%, #fbbf24 65%, #fb7185); }
.big-range .mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.big-range .mk .lbl { position: absolute; bottom: 30px; white-space: nowrap; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 7px; background: var(--ink); color: var(--bg); }
.big-range .mk.now .dot { width: 22px; height: 22px; margin-top: 7px; border-radius: 50%; background: var(--vc, var(--brand)); border: 4px solid var(--surface); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.big-range .mk.usual .bar { width: 3px; height: 26px; margin-top: 5px; border-radius: 2px; background: var(--ink-2); }
.big-range .mk.usual .lbl { background: var(--surface-3); color: var(--ink-2); bottom: auto; top: 34px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 30px; }
.kv div { background: var(--surface-2); border-radius: 12px; padding: 9px 11px; }
.kv span { display: block; font-size: 11.5px; color: var(--mute); font-weight: 600; }
.kv b { font-size: 15px; }
.kv small { display: block; font-size: 11px; color: var(--mute); }
.chart svg { width: 100%; height: 150px; display: block; }
.chart .cap { font-size: 12px; color: var(--mute); margin-top: 4px; }
.offer-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.offer-row:first-of-type { border-top: 0; }
.offer-row .amt { font-weight: 800; color: var(--great); }
.offer-row .amt.upto { color: var(--mute); font-weight: 700; }
.offer-row .who { font-weight: 600; }
.offer-row .who small { display: block; color: var(--mute); font-weight: 500; font-size: 12px; }
.tag-mine { font-size: 11px; font-weight: 800; color: var(--brand); background: var(--grad-soft); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tag-any { font-size: 11px; font-weight: 700; color: var(--mute); background: var(--surface-2); padding: 3px 8px; border-radius: 99px; }
.cmp-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; text-decoration: none; transition: background .2s; }
.cmp-row:hover { background: var(--surface-2); }
.cmp-row + .cmp-row { margin-top: 4px; }
.cmp-row .t { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-row .p { font-weight: 800; font-size: 16px; text-align: right; }
.cmp-row.best { background: var(--great-bg); }
.cmp-row.best .p { color: var(--great); }
.cmp-row .here { font-size: 11px; font-weight: 700; color: var(--mute); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes span { min-width: 38px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.sizes span.no { color: var(--mute); text-decoration: line-through; background: var(--surface-2); }
.watch-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.watch-box .inp { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.watch-box input { width: 110px; border: 0; outline: 0; background: none; font-weight: 700; }

/* ============================================================ watchlist */
.wl { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 40px; }
.wl-row { display: grid; grid-template-columns: 84px 1fr 180px 150px auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.wl-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wl-row.enter { animation: rise .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 50ms); }
.wl-row .im { width: 84px; height: 84px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.wl-row .im img { max-width: 86%; max-height: 86%; object-fit: contain; }
.wl-row .t { font-weight: 700; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 6px; }
.wl-row .pr b { font-size: 20px; letter-spacing: -.02em; }
.chg { font-size: 12.5px; font-weight: 800; }
.chg.down { color: var(--great); } .chg.up { color: var(--fake); } .chg.same { color: var(--mute); }
.spark svg { width: 150px; height: 46px; }
.spark small { display: block; font-size: 11px; color: var(--mute); }
.settings-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.settings-bar label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ============================================================ cards page */
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bank { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: var(--surface); border: 1.5px solid var(--line); text-align: left; transition: all .2s var(--ease); box-shadow: var(--shadow-sm); }
.bank:hover { transform: translateY(-2px); border-color: var(--line-2); }
.bank .lg { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; background: var(--bc); flex: none; }
.bank .nm { font-weight: 700; font-size: 14px; line-height: 1.2; }
.bank .nm small { display: block; font-weight: 500; color: var(--mute); font-size: 12px; }
.bank .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: .2s; }
.bank .ck svg { width: 13px; height: 13px; opacity: 0; }
.bank.on { border-color: var(--brand); background: var(--grad-soft); }
.bank.on .ck { background: var(--brand); border-color: var(--brand); }
.bank.on .ck svg { opacity: 1; }

/* ============================================================ how it works */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.legend .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.legend .item p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h3 { color: var(--ink); margin: 26px 0 8px; }

/* ============================================================ toasts & footer */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast .35s var(--ease); }
[data-theme="dark"] .toast { background: #fff; color: #15132b; }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }
footer { padding: 30px 0 40px; color: var(--mute); font-size: 13px; text-align: center; }

.page { animation: page .35s var(--ease); }
@keyframes page { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================ small screens */
@media (max-width: 860px) {
  .wl-row { grid-template-columns: 70px 1fr auto; }
  .wl-row .im { width: 70px; height: 70px; }
  .wl-row .spark, .wl-row .when { display: none; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 8px; height: 58px; }
  .logo span.name { display: none; }
  nav.links { margin-left: 0; }
  nav.links a { padding: 8px 9px; }
  nav.links a .lbl { display: none; }
  .hero { padding: 40px 0 20px; }
  .searchbox .btn span { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; } .stat b { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .price-row .now { font-size: 18px; }
  .drop-tag .vs { display: none; }
  .d-hero { grid-template-columns: 1fr; }
  .d-img { max-width: 220px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .offer-row { grid-template-columns: 74px 1fr; }
  .offer-row .tag-mine, .offer-row .tag-any { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================ search suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 25; text-align: left; animation: rise .2s var(--ease); }
.sug { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: var(--ink); }
.sug:hover, .sug.on { background: var(--surface-2); }
.sug .e { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.sug b { display: block; font-size: 14.5px; }
.sug small { color: var(--mute); font-size: 12px; }
.sug.all { color: var(--brand); font-weight: 700; font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 11px 11px; }
.sug.all svg { width: 17px; height: 17px; margin: 0 9px; }

/* ============================================================ what we understood + refine + facets */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; min-height: 26px; }
.crumb-link { color: var(--mute); text-decoration: none; font-weight: 600; }
.crumb-link:hover { color: var(--brand); }
.crumb-link.small { font-size: 12.5px; text-decoration: underline; margin-left: 6px; }
.crumb .sep { color: var(--line-2); }
.crumb-cur { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; text-decoration: none; color: var(--ink); }
.crumb-cur svg { width: 16px; height: 16px; }
.pill-q { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--grad-soft); color: var(--brand); font-weight: 700; font-size: 13px; text-decoration: none; }
.pill-q.price { background: var(--great-bg); color: var(--great); }
.pill-q.price:hover { text-decoration: line-through; }
.note-pill { font-size: 12.5px; color: var(--great); font-weight: 600; }
.refine, .facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.refine { margin-top: 10px; }
.facets { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.facets:empty, .refine:empty { display: none; }
.small { font-size: 12.5px; }
.facet-row > .muted { width: 46px; font-weight: 700; }
.chip-sm { height: 30px; padding: 0 11px; font-size: 12.5px; text-decoration: none; }
.chip-sm .n { color: var(--mute); font-weight: 700; }
.chip.on .n { color: inherit; opacity: .7; }
.more-box { text-align: center; padding: 6px 0 30px; }
.more-box:empty { display: none; }
.more-box .btn { min-width: 220px; }
.more-box .spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }

/* ============================================================ categories */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--g)); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; min-height: 118px; }
.cat-tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cat-tile .e { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.cat-tile b { font-size: 16.5px; letter-spacing: -.01em; }
.cat-tile small { opacity: .88; font-size: 12.5px; line-height: 1.35; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cats { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 40px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-sm); scroll-margin-top: 80px; transition: box-shadow .3s, border-color .3s; }
.cat.focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--g)); box-shadow: var(--shadow); }
.cat-head h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.cat-head small { color: var(--mute); }
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sub-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--surface-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: all .2s var(--ease); }
.sub-tile:hover { background: var(--surface); border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sub-tile .e { font-size: 20px; }
@media (max-width: 640px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .cat-tile { min-height: 104px; padding: 13px; }
  .subgrid { grid-template-columns: 1fr 1fr; }
  .facet-row > .muted { width: auto; }
}

.src-tag { font-size: 11px; font-weight: 600; color: var(--mute); }
.steps-list { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.steps-list li { margin: 6px 0; }
.steps-list code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- production polish: footer, skip link, keyboard focus, reduced motion ---------- */
.site-foot { display: grid; gap: 6px; }
.site-foot p { margin: 0; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px;
        background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .blobs { display: none; }
}
