/* ============ Design tokens ============ */
:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef0f6;
  --text: #0f1222;
  --text-2: #4a5068;
  --text-3: #8a90a6;
  --border: #e3e6ef;
  --accent: #6d5efc;
  --accent-2: #00b3ff;
  --accent-soft: rgba(109, 94, 252, 0.1);
  --good: #0e9f6e;
  --good-soft: rgba(14, 159, 110, 0.12);
  --bad: #e0464b;
  --bad-soft: rgba(224, 70, 75, 0.12);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --glass: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --bg-elev: #14171f;
    --bg-soft: #1b1f2a;
    --text: #f2f4fa;
    --text-2: #b4bacb;
    --text-3: #757c91;
    --border: #252a37;
    --accent: #8b7fff;
    --accent-2: #38c6ff;
    --accent-soft: rgba(139, 127, 255, 0.14);
    --good: #34d399;
    --good-soft: rgba(52, 211, 153, 0.14);
    --bad: #ff6b6f;
    --bad-soft: rgba(255, 107, 111, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --glass: rgba(20, 23, 31, 0.72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-elev: #14171f;
  --bg-soft: #1b1f2a;
  --text: #f2f4fa;
  --text-2: #b4bacb;
  --text-3: #757c91;
  --border: #252a37;
  --accent: #8b7fff;
  --accent-2: #38c6ff;
  --accent-soft: rgba(139, 127, 255, 0.14);
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.14);
  --bad: #ff6b6f;
  --bad-soft: rgba(255, 107, 111, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glass: rgba(20, 23, 31, 0.72);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

/* ============ Top bar ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 18px rgba(109, 94, 252, 0.35);
}
.brand__logo svg { stroke-width: 2.6; }
.brand__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand__name b { font-weight: 800; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.rate-pill {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
  white-space: nowrap;
}
.rate-pill strong { color: var(--text); font-variant-numeric: tabular-nums; }
.rate-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.rate-pill__dot.is-live { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elev); display: grid; place-items: center; transition: transform .15s;
}
.icon-btn:active { transform: scale(.94); }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

/* ============ Hero ============ */
.hero { position: relative; padding: 56px 0 28px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(109, 94, 252, .22), transparent 70%),
    radial-gradient(35% 45% at 70% 30%, rgba(0, 179, 255, .18), transparent 70%),
    radial-gradient(30% 40% at 50% 70%, rgba(255, 153, 51, .12), transparent 70%);
  filter: blur(10px);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-2); box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(30px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
  margin: 18px 0 14px;
}
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: clamp(15px, 2vw, 18px); }

.search {
  position: relative; max-width: 560px; margin: 28px auto 0; display: flex; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 0 14px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.search svg { color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 15px 10px; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-3); }
@media (hover: none) { .search kbd { display: none; } }

.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stat {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
}
.stat b { color: var(--text); font-size: 15px; }

/* ============ Controls ============ */
.controls {
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-top: 8px;
}
@media (min-width: 900px) { .controls { grid-template-columns: 1.2fr 1fr .8fr 1.4fr; padding: 18px 20px; align-items: end; } }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.control > label:not(.switch) { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.control--toggle { grid-column: 1 / -1; }
@media (min-width: 900px) { .control--toggle { grid-column: auto; } }
select, .input-affix {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); padding: 0 12px; outline: 0; transition: border-color .2s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
select:focus, .input-affix:focus-within { border-color: var(--accent); }
.input-affix { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.input-affix input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--border); position: relative; transition: background .2s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,1.4,.6,1); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch__text { display: flex; flex-direction: column; line-height: 1.25; }
.switch__text strong { font-size: 14px; font-weight: 600; }
.switch__text small { font-size: 12px; color: var(--text-3); }

/* ============ Toolbar ============ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px auto 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; flex: 1 1 auto; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text-2); font-size: 14px; font-weight: 500; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip span { opacity: .55; margin-left: 4px; font-size: 12px; }
.sort select { height: 38px; border-radius: 999px; background-color: var(--bg-elev); font-size: 14px; min-width: 200px; }
@media (max-width: 600px) { .sort { width: 100%; } .sort select { width: 100%; } }

/* ============ Grid & cards ============ */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: rise .4s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; } }
.card__head { display: flex; gap: 14px; align-items: flex-start; }
.thumb {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(0, 179, 255, .1)); color: var(--accent);
}
.thumb svg { width: 28px; height: 28px; stroke-width: 1.6; }
.card__title { min-width: 0; flex: 1; }
.card__brand { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.card__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; line-height: 1.25; }
.compare-check {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft);
  display: grid; place-items: center; color: var(--text-3); transition: all .2s;
}
.compare-check svg { width: 16px; height: 16px; }
.compare-check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.variant {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .15s;
}
.variant[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price {
  border-radius: 14px; padding: 12px; background: var(--bg-soft); position: relative; min-width: 0;
}
.price.is-winner { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.price__flag { font-size: 12px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.price__val { font-size: clamp(18px, 4.6vw, 22px); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.crown { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--good); color: #fff; }

.verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
.verdict--us { background: var(--good-soft); color: var(--good); }
.verdict--in { background: var(--bad-soft); color: var(--bad); }
.verdict--even { background: var(--bg-soft); color: var(--text-2); }
.verdict__pct { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--bg-elev); }

.card__foot { display: flex; gap: 8px; margin-top: auto; }
.btn {
  height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s;
}
.btn:active { transform: scale(.97); }
.btn--block { flex: 1; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--ghost { background: transparent; }
.btn svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty__icon { font-size: 40px; }
.empty h3 { margin: 10px 0 4px; color: var(--text); }

/* ============ Info ============ */
.info { margin-top: 64px; }
.info h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.03em; margin: 0 0 20px; }
.info__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.info article { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.info h3 { margin: 12px 0 6px; font-size: 16px; }
.info p { margin: 0; color: var(--text-2); font-size: 14px; }
.disclaimer { font-size: 13px; color: var(--text-3); margin-top: 20px; max-width: 800px; }

.footer { margin-top: 48px; padding: 28px 0 120px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; text-align: center; }

/* ============ Compare tray ============ */
.tray {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 50; width: calc(100% - 32px); max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 18px; background: var(--glass);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: up .3s both;
}
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.tray[hidden] { display: none; }
.tray__items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tray__item { flex: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tray__item button { border: 0; background: none; padding: 0; color: var(--text-3); font-size: 16px; line-height: 1; }
.tray__actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 520px) { .tray__items { display: none; } .tray__actions { flex: 1; } .tray__actions .btn { flex: 1; } }

/* ============ Dialog / sheet ============ */
.sheet {
  border: 0; padding: 0; background: var(--bg-elev); color: var(--text);
  width: min(560px, calc(100% - 32px)); max-height: min(88vh, 900px); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.sheet--wide { width: min(980px, calc(100% - 32px)); }
.sheet::backdrop { background: rgba(8, 10, 16, .55); backdrop-filter: blur(4px); }
.sheet[open] { animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 600px) {
  .sheet, .sheet--wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .sheet[open] { animation: slide .35s cubic-bezier(.2, .9, .3, 1); }
  @keyframes slide { from { transform: translateY(100%); } }
}
.sheet__body { padding: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.sheet__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.sheet__head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.sheet__head .card__brand { margin-bottom: 2px; }
.sheet__close { margin-left: auto; flex: none; }
.grabber { display: none; width: 40px; height: 5px; border-radius: 99px; background: var(--border); margin: -8px auto 14px; }
@media (max-width: 600px) { .grabber { display: block; } }

.breakdown { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.breakdown__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--bg-soft); font-weight: 700; font-size: 14px; }
.breakdown__title small { font-weight: 500; color: var(--text-3); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.row span:first-child { color: var(--text-2); }
.row span:last-child { text-align: right; font-weight: 500; }
.row--total { font-weight: 700; font-size: 15px; }
.row--total span { color: var(--text) !important; font-weight: 800 !important; }
.row--muted span { color: var(--text-3) !important; font-size: 13px; }

.big-verdict { text-align: center; padding: 18px; border-radius: 18px; margin-top: 4px; }
.big-verdict strong { display: block; font-size: clamp(26px, 7vw, 34px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-verdict span { font-size: 14px; font-weight: 600; }
.note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 13px; color: var(--text-2); }
.note b { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 520px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text-2); position: sticky; left: 0; background: var(--bg-elev); }
.cmp thead th { background: var(--bg-soft); font-size: 13px; }
.cmp thead th:first-child { background: var(--bg-soft); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .is-good { color: var(--good); font-weight: 700; }
.cmp .is-bad { color: var(--bad); font-weight: 700; }
.cmp .strong td { font-weight: 700; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  transition: all .3s; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ Product media & freshness ============ */
.media {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #f5f5f7; display: grid; place-items: center; margin: -4px -4px 0;
}
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
@media (hover: hover) { .card:hover .media img { transform: scale(1.04); } }
.media__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), rgba(0, 179, 255, .1)), var(--bg-soft); }
.media__fallback svg { width: 44px; height: 44px; stroke-width: 1.4; }
.media img + .media__fallback { display: none; }
.media--sheet { aspect-ratio: 2 / 1; margin: 0 0 16px; border-radius: 18px; }

.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge--live { background: var(--good-soft); color: var(--good); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--stale { background: rgba(245, 158, 11, .14); color: #d97706; }
.badge--manual { background: var(--bg-soft); color: var(--text-3); border: 1px dashed var(--border); }
.breakdown__title .badge { margin: 0; }

.freshness { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.row a { color: var(--accent); text-decoration: none; font-weight: 600; }
.row a:hover { text-decoration: underline; }

/* ============ Small phones (≤ 400px) ============ */
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { font-size: 16px; }
  .topbar__actions { gap: 6px; }
  .rate-pill { padding: 6px 10px; font-size: 12px; gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .controls { grid-template-columns: 1fr; }
  .prices { gap: 8px; }
  .price { padding: 10px; }
}
.badge--partial { background: var(--accent-soft); color: var(--accent); }
.badge--partial::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
