:root {
  --bg: #07080d;
  --surface: rgba(20, 23, 34, 0.72);
  --surface-solid: #131622;
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #8b90a3;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --steam: #66c0f4;
  --steam-deep: #1b2838;
  --xbox: #3ddc84;
  --xbox-deep: #0e7a0d;
  --good: #3ddc84;
  --bad: #ff5c7a;
  --warn: #ffc857;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(61, 220, 132, 0.08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}

a { color: var(--accent-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.02em; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.55);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; }
.brand-text span { color: var(--accent-2); }

.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: #fff; background: rgba(139, 92, 246, 0.18); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45); }
.count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 20px;
}

.status-chips { margin-left: auto; display: flex; gap: 8px; }
.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.status-chip.off .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; flex: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow b { color: var(--text); }

.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.05; margin: 12px 0 10px; text-transform: uppercase; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.hero.compact { padding: 26px 0 4px; }
.hero.compact h1 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 14px; }
.hero.compact .hero-sub, .hero.compact .eyebrow { display: none; }

.search {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 4px rgba(139, 92, 246, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search:focus-within { border-color: rgba(139, 92, 246, 0.6); box-shadow: var(--shadow), 0 0 0 4px rgba(139, 92, 246, 0.18); }
.search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
  transition: transform 0.12s, filter 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d4ae0);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.8);
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.1); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: rgba(255, 92, 122, 0.1); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-steam { background: linear-gradient(135deg, #2a475e, var(--steam-deep)); border-color: rgba(102, 192, 244, 0.4); color: var(--steam); }
.btn-xbox { background: linear-gradient(135deg, #128a10, var(--xbox-deep)); color: #fff; }
.btn-watch.on { border-color: var(--warn); color: var(--warn); background: rgba(255, 200, 87, 0.08); }

.alert {
  max-width: 680px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.4);
  color: #ffe1a3;
  font-size: 14px;
  text-align: left;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature b { font-size: 15px; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.feature-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; font-size: 20px; }
.feature-icon.steam { background: rgba(102, 192, 244, 0.12); }
.feature-icon.xbox { background: rgba(61, 220, 132, 0.12); }
.feature-icon.accent { background: rgba(139, 92, 246, 0.14); }

.loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 36px; color: var(--muted); }
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  font-size: 22px;
  text-transform: uppercase;
}
.section-title::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }
.section-title .muted { font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag-sale { background: rgba(61, 220, 132, 0.14); color: var(--good); border-color: rgba(61, 220, 132, 0.35); }
.tag-blocked { background: rgba(255, 92, 122, 0.12); color: var(--bad); border-color: rgba(255, 92, 122, 0.35); }
.tag-xpa { background: rgba(34, 211, 238, 0.12); color: var(--accent-2); border-color: rgba(34, 211, 238, 0.35); }
.tag-gp { background: rgba(61, 220, 132, 0.1); color: var(--xbox); border-color: rgba(61, 220, 132, 0.3); }
.tag-soft { background: rgba(255, 200, 87, 0.1); color: var(--warn); border-color: rgba(255, 200, 87, 0.3); }
.tag-match { background: rgba(139, 92, 246, 0.14); color: #c4b1ff; border-color: rgba(139, 92, 246, 0.35); }

.result-list { display: grid; gap: 10px; }
.result-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}
.result-card:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-1px); }
.thumb {
  width: 140px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #1d2133, #11131d);
}
.result-info h4 { font-size: 18px; line-height: 1.2; }
.result-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.result-prices { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }

.price-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}
.price-chip .store { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.price-chip.steam .store { color: var(--steam); }
.price-chip.xbox .store { color: var(--xbox); }
.price-chip .value { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-chip.best { border-color: rgba(61, 220, 132, 0.6); box-shadow: 0 0 18px -6px rgba(61, 220, 132, 0.7); }
.price-chip select {
  width: 100%;
  margin-top: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0c0e16;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.manual {
  margin-top: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}
.manual summary { padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--muted); }
.manual summary:hover { color: var(--text); }
.manual-body { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; padding: 0 18px 16px; }
.manual-body select, .manual-body input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0c0e16;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.manual .hint { padding: 0 18px 16px; margin: 0; color: var(--muted); font-size: 13px; }

.compare-hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
}
.compare-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.3);
  opacity: 0.45;
}
.compare-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 13, 0.95) 30%, rgba(7, 8, 13, 0.55)); }
.compare-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; padding: 22px; }
.compare-cover { width: 260px; max-width: 38%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.compare-title { flex: 1; min-width: 0; }
.compare-title h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.05; margin: 6px 0 10px; text-transform: uppercase; }
.compare-title .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.verdict-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 28px; }
.verdict-label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.verdict-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.1; margin: 2px 0 8px; }
.verdict ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.verdict li { display: flex; gap: 8px; font-size: 14px; }
.verdict li::before { flex: 0 0 auto; }
.verdict .reasons li::before { content: '✓'; color: var(--good); font-weight: 800; }
.verdict .tips { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.verdict .tips li { color: #ffe1a3; }
.verdict .tips li::before { content: '💡'; }
.verdict.xbox { border-color: rgba(61, 220, 132, 0.55); background: linear-gradient(135deg, rgba(61, 220, 132, 0.12), var(--surface) 60%); box-shadow: 0 0 40px -18px rgba(61, 220, 132, 0.8); }
.verdict.xbox .verdict-icon { background: rgba(61, 220, 132, 0.16); }
.verdict.xbox .verdict-title { color: var(--xbox); }
.verdict.steam { border-color: rgba(102, 192, 244, 0.55); background: linear-gradient(135deg, rgba(102, 192, 244, 0.12), var(--surface) 60%); box-shadow: 0 0 40px -18px rgba(102, 192, 244, 0.8); }
.verdict.steam .verdict-icon { background: rgba(102, 192, 244, 0.16); }
.verdict.steam .verdict-title { color: var(--steam); }
.verdict.none { border-color: rgba(255, 92, 122, 0.5); background: linear-gradient(135deg, rgba(255, 92, 122, 0.1), var(--surface) 60%); }
.verdict.none .verdict-title { color: var(--bad); }
.verdict.wait .verdict-icon { background: rgba(255, 200, 87, 0.16); }

.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 16px; }
.vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.store-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; }
.store-card.steam::before { background: linear-gradient(90deg, var(--steam), transparent); }
.store-card.xbox::before { background: linear-gradient(90deg, var(--xbox), transparent); }
.store-card.winner.steam { border-color: rgba(102, 192, 244, 0.6); box-shadow: 0 0 44px -16px rgba(102, 192, 244, 0.9); }
.store-card.winner.xbox { border-color: rgba(61, 220, 132, 0.6); box-shadow: 0 0 44px -16px rgba(61, 220, 132, 0.9); }
.store-card.dimmed { opacity: 0.78; }

.store-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.store-name small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.store-card.steam .store-name { color: var(--steam); }
.store-card.xbox .store-name { color: var(--xbox); }
.winner-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #07080d;
  background: linear-gradient(135deg, var(--warn), #ff9f43);
  box-shadow: 0 0 18px rgba(255, 200, 87, 0.5);
}

.big-price { font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 500; }
.big-price .strike { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.blocked-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 92, 122, 0.08);
  border: 1px solid rgba(255, 92, 122, 0.35);
  color: var(--bad);
  font-weight: 700;
}
.blocked-box span { font-size: 26px; }
.blocked-box small { display: block; color: var(--muted); font-weight: 500; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.fact { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); }
.fact dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 700; }
.fact dd small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.fact .yes { color: var(--good); }
.fact .no { color: var(--muted); }
.fact .unknown { color: var(--warn); }
.store-card .btn { margin-top: auto; align-self: flex-start; }

.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.history-card { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.history-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.history-title .legend { font-size: 12px; color: var(--muted); font-weight: 500; }
.history-title-main { display: flex; flex-direction: column; }
.range { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); }
.range button {
  padding: 4px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.range button:hover { color: var(--text); }
.range button.active { background: rgba(139, 92, 246, 0.25); color: #fff; }
.history-card canvas { width: 100%; height: 200px; display: block; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 44px 0 22px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); text-transform: uppercase; margin-top: 6px; }
.page-head p { margin: 6px 0 0; }

.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.watch-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.watch-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 18px 40px -20px rgba(139, 92, 246, 0.8); }
.watch-cover {
  position: relative;
  aspect-ratio: 460 / 215;
  background: linear-gradient(135deg, #2b1f55, #0f2f3a);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.watch-cover .best-flag { position: absolute; top: 10px; left: 10px; }
.watch-cover .best-flag .tag { background: rgba(7, 8, 13, 0.88); backdrop-filter: blur(6px); font-size: 12px; padding: 4px 10px; }
.watch-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; flex: 1; }
.watch-body h4 { font-size: 19px; line-height: 1.15; }
.watch-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.watch-actions { display: flex; gap: 8px; margin-top: auto; }
.watch-actions .btn-primary { flex: 1; }
.watch-meta { font-size: 12px; color: var(--muted); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.empty .empty-icon { font-size: 44px; }
.empty h3 { font-size: 24px; margin: 10px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

.error-box { margin-top: 24px; padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 92, 122, 0.08); border: 1px solid rgba(255, 92, 122, 0.35); color: #ffb3c1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 110px minmax(0, 1fr); }
  .thumb { width: 110px; height: 52px; }
  .result-prices, .result-card > .btn { grid-column: 1 / -1; }
  .duel { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .history-grid { grid-template-columns: 1fr; }
  .manual-body { grid-template-columns: 1fr; }
  .status-chips { display: none; }
}

@media (max-width: 560px) {
  .topbar-inner { gap: 10px; padding: 10px 14px; }
  .brand-text { display: none; }
  .nav-links { margin-left: 0; }
  .nav-link { padding: 8px 10px; }
  .compare-hero-inner { flex-direction: column; align-items: flex-start; }
  .compare-cover { width: 100%; max-width: 100%; }
  .big-price { font-size: 42px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .search { flex-direction: column; }
  .search-icon { top: 30px; }
}
