/* =========================================================
   装机参谋 — PC Build Advisor
   ========================================================= */

:root {
  --bg: #06080b;
  --bg-elev: #0b0f16;
  --panel: #0e131b;
  --panel-2: #111722;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f6fa;
  --muted: #96a2b5;
  --muted-2: #6f7c8f;
  --lime: #c6ff4a;
  --lime-soft: #e4ff9e;
  --cyan: #7be0ff;
  --violet: #a78bfa;
  --orange: #ffb86b;
  --pink: #ff8fb1;
  --red: #ff6b6b;
  --font-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Consolas",
    "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    "Liberation Mono", monospace;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font-sans);
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #080b06;
  background: var(--lime);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Ambient background ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1000px 720px at 7% -12%, rgba(198, 255, 74, 0.155), transparent 62%),
    radial-gradient(900px 720px at 102% 5%, rgba(128, 99, 255, 0.16), transparent 58%),
    radial-gradient(760px 700px at 55% 112%, rgba(123, 224, 255, 0.06), transparent 60%),
    var(--bg);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 12%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 12%, transparent 78%);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 11, 0.55);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 11, 0.84);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #080b06;
  background: linear-gradient(145deg, var(--lime), #8fdd37);
  box-shadow:
    0 0 0 1px rgba(198, 255, 74, 0.25),
    0 8px 24px rgba(198, 255, 74, 0.14);
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--lime);
  transition: right 0.25s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  right: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(198, 255, 74, 0.25);
  border-radius: 9px;
  background: rgba(198, 255, 74, 0.07);
  color: var(--lime);
  font-size: 11.5px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-cta .icon {
  width: 14px;
  height: 14px;
}

.header-cta:hover {
  background: rgba(198, 255, 74, 0.13);
  border-color: rgba(198, 255, 74, 0.45);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 74px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 530px);
  align-items: start;
  gap: 64px;
  padding-top: 10px;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.eyebrow-sep {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 74, 0.1);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 74, 0.3);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(198, 255, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 74, 0);
  }
}

.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(52px, 6.1vw, 82px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.grad-text {
  color: transparent;
  background: linear-gradient(100deg, #eaffb0 0%, #c6ff4a 46%, #7cf6b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(198, 255, 74, 0.16));
}

.hero-lede {
  max-width: 470px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 38px;
}

.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat strong span {
  margin-left: 1px;
  color: var(--lime);
  font-size: 17px;
}

.stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 11px;
}

.hero-promise .icon {
  width: 14px;
  height: 14px;
  color: var(--lime);
}

/* ---------- Builder card ---------- */

.builder-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: linear-gradient(168deg, rgba(23, 29, 40, 0.95), rgba(9, 13, 19, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.builder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(198, 255, 74, 0.48),
    transparent 28%,
    transparent 70%,
    rgba(167, 139, 250, 0.38)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.builder-card::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.14), transparent 66%);
  pointer-events: none;
}

.builder-card > * {
  position: relative;
  z-index: 1;
}

.builder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.builder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.builder-kicker .icon {
  width: 14px;
  height: 14px;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.live-state span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(198, 255, 74, 0.8);
}

.field {
  padding: 2px 0;
}

.field-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.step {
  padding: 2px 5px;
  border: 1px solid rgba(198, 255, 74, 0.22);
  border-radius: 4px;
  background: rgba(198, 255, 74, 0.06);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
}

.field-name {
  color: #d7dfeb;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-hint {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
}

.builder-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

/* Budget */

.budget-field {
  margin-top: 2px;
}

.budget-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 8px;
}

.currency {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
}

.budget-input {
  width: 6.2ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 46px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.065em;
  caret-color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.budget-input:focus {
  outline: none;
}

.budget-input::selection {
  color: #080b06;
  background: var(--lime);
}

.budget-unit {
  margin-left: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.budget-range {
  --fill: 13.5%;
  width: 100%;
  height: 20px;
  margin: 3px 0 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.budget-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    var(--lime) var(--fill),
    rgba(255, 255, 255, 0.12) var(--fill),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.budget-range::-moz-range-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    var(--lime) var(--fill),
    rgba(255, 255, 255, 0.12) var(--fill),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.budget-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  border: 2px solid #0b0e08;
  border-radius: 50%;
  -webkit-appearance: none;
  background: #f4ffd7;
  box-shadow:
    0 0 0 1px rgba(198, 255, 74, 0.9),
    0 0 20px rgba(198, 255, 74, 0.35);
  transition: transform 0.15s ease;
}

.budget-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #0b0e08;
  border-radius: 50%;
  background: #f4ffd7;
  box-shadow:
    0 0 0 1px rgba(198, 255, 74, 0.9),
    0 0 20px rgba(198, 255, 74, 0.35);
}

.budget-range:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.preset {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  transition: all 0.18s ease;
}

.preset:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.preset.is-active {
  border-color: rgba(198, 255, 74, 0.38);
  background: rgba(198, 255, 74, 0.1);
  color: var(--lime);
}

/* Use cases */

.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.use-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.use-card:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.use-card.is-active {
  border-color: rgba(198, 255, 74, 0.44);
  background: linear-gradient(135deg, rgba(198, 255, 74, 0.115), rgba(198, 255, 74, 0.02));
  color: var(--text);
}

.use-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.use-icon .icon {
  width: 17px;
  height: 17px;
}

.use-card.is-active .use-icon {
  background: var(--lime);
  color: #0a0d06;
}

.use-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.use-copy strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.use-copy small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.use-card.is-active .use-copy small {
  color: rgba(198, 255, 74, 0.68);
}

.use-radio {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.use-card.is-active .use-radio {
  border-color: var(--lime);
}

.use-card.is-active .use-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--lime);
}

/* Resolution */

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  transition: background 0.18s ease, color 0.18s ease;
}

.seg small {
  color: var(--muted-2);
  font-size: 7.5px;
}

.seg:hover {
  color: var(--text);
}

.seg.is-active {
  background: #1a2330;
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.seg.is-active small {
  color: var(--lime);
}

/* Preferences */

.preference-field {
  margin-top: 1px;
}

.pref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pref {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 9.5px;
  transition: all 0.18s ease;
}

.pref:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.pref.is-active {
  border-color: rgba(198, 255, 74, 0.34);
  background: rgba(198, 255, 74, 0.105);
  color: var(--lime);
}

/* Build CTA */

.build-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  margin-top: 21px;
  padding: 0 17px;
  border-radius: 13px;
  background: linear-gradient(100deg, #d9ff79, #b9f63f);
  color: #0a0d06;
  font-size: 13.5px;
  font-weight: 750;
  box-shadow:
    0 14px 34px rgba(198, 255, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.build-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(198, 255, 74, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.build-btn:active {
  transform: translateY(0);
}

.build-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.build-btn-text .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.build-btn-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 8, 4, 0.11);
}

.build-btn-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.build-btn:hover .build-btn-arrow .icon {
  transform: translateX(2px);
}

.builder-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.builder-foot .icon {
  width: 10px;
  height: 10px;
  color: var(--lime);
}

/* ---------- Results ---------- */

.results {
  padding: 54px 0 86px;
  scroll-margin-top: 88px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

.results-title-wrap {
  min-width: 0;
}

.results-title-wrap h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.results-title-wrap > p {
  max-width: 690px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.tag.is-accent {
  border-color: rgba(198, 255, 74, 0.24);
  background: rgba(198, 255, 74, 0.085);
  color: var(--lime);
}

.tag.is-warn {
  border-color: rgba(255, 184, 107, 0.28);
  background: rgba(255, 184, 107, 0.08);
  color: var(--orange);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #090c06;
  font-weight: 700;
}

.btn-primary:hover {
  border-color: #d5ff80;
  background: #d5ff80;
}

.btn-icon {
  width: 38px;
  padding: 0;
}

.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 10px;
}

.btn-count {
  margin-left: 2px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Warning banner */

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 17px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 184, 107, 0.25);
  border-radius: 11px;
  background: rgba(255, 184, 107, 0.07);
  color: #ffd0a0;
  font-size: 11px;
  line-height: 1.6;
}

.warning-banner .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--orange);
}

.warning-banner p + p {
  margin-top: 3px;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--orange);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-action .icon {
  width: 10px;
  height: 10px;
  margin-top: 0;
  color: currentColor;
}

/* Layout */

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  align-items: start;
  gap: 22px;
}

.result-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.result-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.result-grid.is-fresh {
  animation: fresh 0.45s ease both;
}

@keyframes fresh {
  from {
    opacity: 0.55;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panels */

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.88), rgba(10, 14, 20, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-head .kicker {
  margin-bottom: 7px;
}

.count-badge {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.panel-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-size: 9px;
  white-space: nowrap;
}

.panel-note.is-warn {
  color: var(--orange);
}

.panel-note .icon {
  width: 12px;
  height: 12px;
}

/* Parts */

.parts-list {
  display: flex;
  flex-direction: column;
}

.part-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  transition: background 0.18s ease;
}

.part-row:last-child {
  border-bottom: 0;
}

.part-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.part-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--cat-color, #fff) 20%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--cat-color, #fff) 9%, transparent);
  color: var(--cat-color, var(--muted));
}

.part-icon .icon {
  width: 21px;
  height: 21px;
}

.part-main {
  min-width: 0;
}

.part-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.part-cat {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.part-badge {
  padding: 1px 5px;
  border: 1px solid rgba(198, 255, 74, 0.2);
  border-radius: 3px;
  background: rgba(198, 255, 74, 0.09);
  color: var(--lime);
  font-size: 7.5px;
  line-height: 1.3;
}

.part-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.part-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.45;
}

.part-specs span {
  display: inline-flex;
  align-items: center;
}

.part-specs span + span::before {
  content: "";
  width: 2px;
  height: 2px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.part-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 8px;
}

.part-price strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.part-price strong.is-free {
  color: var(--lime);
  font-size: 10px;
  font-weight: 500;
}

.part-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  color: var(--muted-2);
  font-size: 8.5px;
  transition: color 0.18s ease;
}

.swap-btn .icon {
  width: 10px;
  height: 10px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-2);
  font-size: 8px;
  transition: all 0.18s ease;
}

.detail-btn .icon {
  width: 10px;
  height: 10px;
}

.detail-btn:hover {
  border-color: rgba(198, 255, 74, 0.25);
  color: var(--lime);
}



/* Performance panel */

.perf-panel {
  padding: 21px 24px 19px;
}

.perf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}

.perf-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.perf-head h3 span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.perf-res {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.game-bars,
.cap-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 13px;
}

.game-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.game-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--bar-color, var(--lime)),
    color-mix(in srgb, var(--bar-color, var(--lime)) 55%, #ffffff)
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--bar-color, var(--lime)) 25%, transparent);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-fps {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.game-fps strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}

.game-fps small {
  margin-left: 2px;
  font-size: 7px;
}

.perf-foot {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

.perf-foot .icon {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 1px;
}

/* Insight mini panels */

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.mini-panel {
  padding: 21px 23px 19px;
}

.mini-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 17px;
}

.mini-index {
  padding: 4px 6px;
  border: 1px solid rgba(198, 255, 74, 0.22);
  border-radius: 5px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
}

.mini-head h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mini-head .kicker {
  margin-bottom: 5px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.reason-list li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.reason-list li::before {
  content: "";
  width: 3px;
  height: 3px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(198, 255, 74, 0.5);
}

.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.upgrade-list li {
  display: flex;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.upgrade-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.upgrade-list li::before {
  content: "↗";
  flex: none;
  margin-top: 1px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Summary */

.summary-card {
  padding: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.97), rgba(9, 13, 19, 0.99));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.variant-pill {
  padding: 3px 6px;
  border: 1px solid rgba(198, 255, 74, 0.23);
  border-radius: 4px;
  background: rgba(198, 255, 74, 0.065);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.total-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 9px 0 2px;
}

.total-line .currency {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
}

.total-line strong {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.budget-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0;
  color: var(--muted-2);
  font-size: 9px;
}

.save {
  color: var(--lime);
}

.over {
  color: var(--orange);
}

.budget-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.budget-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9fdc31, var(--lime));
  transition: width 0.55s ease;
}

.budget-fill.is-over {
  background: linear-gradient(90deg, #ff9a5b, var(--red));
}

.breakdown {
  margin: 17px 0;
}

.breakdown-bar {
  display: flex;
  gap: 1px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.breakdown-bar span {
  height: 100%;
  transition: width 0.5s ease;
}

.breakdown-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 11px;
  margin-top: 11px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.legend-dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
}

.legend-item strong {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 12px 0;
}

.metric:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.metric:nth-child(even) {
  padding-left: 15px;
}

.metric:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.metric span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.metric strong {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric strong small {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 400;
}

.summary-actions {
  display: flex;
  gap: 6px;
}

.summary-actions .btn-primary {
  flex: 1;
}

.summary-actions .btn-icon {
  width: 38px;
  flex: none;
}

.reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 9px;
  padding: 7px 0;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted-2);
  font-size: 9px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.reset-btn:hover {
  border-color: rgba(198, 255, 74, 0.3);
  color: var(--lime);
}

.reset-btn .icon {
  width: 11px;
  height: 11px;
}

.checks {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.checks summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  list-style: none;
  cursor: pointer;
}

.checks summary::-webkit-details-marker {
  display: none;
}

.checks .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(198, 255, 74, 0.6);
}

.checks .status-dot.is-warn {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 184, 107, 0.5);
}

.checks .chev {
  width: 11px;
  height: 11px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.checks[open] .chev {
  transform: rotate(180deg);
}

.checks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
  list-style: none;
}

.checks-list li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

.checks-list li .icon {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 2px;
  color: var(--lime);
}

.checks-list li.is-warn .icon {
  color: var(--orange);
}

.checks-list li .check-label {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  opacity: 1;
}

.checks-list li .check-detail {
  margin-left: auto;
  color: var(--muted-2);
  text-align: right;
  opacity: 0.8;
}

.fineprint {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 7.5px;
  line-height: 1.65;
}

.advice-card {
  display: flex;
  gap: 9px;
  padding: 14px 15px;
  border: 1px solid rgba(123, 224, 255, 0.15);
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(123, 224, 255, 0.065), rgba(255, 255, 255, 0.012));
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.advice-card .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--cyan);
}

.advice-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
}

/* ---------- Guide ---------- */

.guide {
  padding: 72px 0 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.2), rgba(8, 11, 16, 0.62));
}

.section-head {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 760;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.section-head > p {
  max-width: 450px;
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.guide-card {
  position: relative;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.72), rgba(10, 14, 20, 0.72));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 74, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(198, 255, 74, 0.2);
  transform: translateY(-2px);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.guide-num {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(198, 255, 74, 0.14);
  border-radius: 9px;
  background: rgba(198, 255, 74, 0.065);
  color: var(--lime);
}

.guide-icon .icon {
  width: 17px;
  height: 17px;
}

.guide-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.guide-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.guide-tag {
  display: block;
  width: 100%;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 70px 0 88px;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 62px;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro h2 {
  margin-bottom: 15px;
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.faq-intro > p {
  max-width: 290px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.85;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 21px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.faq-badge .icon {
  width: 11px;
  height: 11px;
  color: var(--lime);
}

.faq-badge strong {
  color: var(--text);
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.22s ease;
}

.faq-plus .icon {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}

.faq-list details[open] .faq-plus {
  border-color: var(--lime);
  background: var(--lime);
  color: #090c06;
}

.faq-list details[open] .faq-plus .icon {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 36px 19px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.9;
}

.faq-body code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.62);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 58px;
  padding: 46px 0 38px;
}

.footer-brand p {
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.85;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.footer-col h4 {
  margin-bottom: 11px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 7, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(660px, 100%);
  max-height: 82vh;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  background: linear-gradient(180deg, #121924, #090d13);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.25s ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 23px 15px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.18s ease;
}

.modal-close:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.modal-close .icon {
  width: 14px;
  height: 14px;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 15px 12px;
  overflow-y: auto;
}

.alt-row {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  transition: all 0.16s ease;
}

.alt-row:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.alt-main {
  flex: 1;
  min-width: 0;
}

.alt-name {
  display: block;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
}

.alt-specs {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.alt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.alt-tag {
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-2);
  font-size: 7.5px;
}

.alt-tag.good {
  background: rgba(198, 255, 74, 0.09);
  color: var(--lime);
}

.alt-tag.warn {
  background: rgba(255, 184, 107, 0.08);
  color: var(--orange);
}

.alt-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}

.alt-price strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.alt-price small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.alt-price small.up {
  color: var(--orange);
}

.alt-price small.down {
  color: var(--lime);
}

.alt-current {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 23px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
}

.modal-foot > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-foot .icon {
  width: 10px;
  height: 10px;
  color: var(--lime);
}

.modal-empty {
  padding: 45px 20px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 200;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--lime);
  color: #090c06;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(198, 255, 74, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 300;
  padding: 14px;
  border: 1px solid rgba(255, 184, 107, 0.35);
  border-radius: 10px;
  background: #1a130b;
  color: #ffd0a0;
  font-size: 12px;
  text-align: center;
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy [data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}

.hero-copy [data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}

.hero-copy [data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}

.hero-copy [data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 490px);
    gap: 38px;
  }

  .main-nav {
    gap: 22px;
  }

  .result-grid {
    grid-template-columns: minmax(0, 1fr) 328px;
  }

  .faq-grid {
    gap: 44px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(52px, 9.2vw, 76px);
  }

  .hero-lede {
    max-width: 600px;
  }

  .builder-card {
    width: 100%;
    max-width: 640px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-side {
    position: static;
    order: -1;
  }

  .summary-card {
    padding: 22px;
  }

  .insight-grid {
    gap: 18px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head > p {
    justify-self: start;
    max-width: 600px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro > p {
    max-width: 560px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .eyebrow {
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }

  .eyebrow-sep,
  .eyebrow span:last-child {
    display: none;
  }

  .hero h1 {
    margin: 20px 0 17px;
    font-size: clamp(44px, 12vw, 62px);
  }

  .hero-lede {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-stats {
    gap: 26px;
    margin-top: 28px;
  }

  .stat strong {
    font-size: 23px;
  }

  .stat small {
    font-size: 9px;
  }

  .hero-promise {
    margin-top: 22px;
    font-size: 10px;
  }

  .builder-card {
    padding: 20px;
    border-radius: 22px;
  }

  .budget-input {
    font-size: 41px;
  }

  .results {
    padding: 42px 0 64px;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .result-actions {
    width: 100%;
  }

  .result-actions .btn {
    flex: 1;
    padding: 0 10px;
  }

  .result-actions .btn-icon {
    flex: 0 0 38px;
  }

  .panel-head {
    padding: 18px 18px 15px;
  }

  .panel-head h3 {
    font-size: 16px;
  }

  .panel-note {
    font-size: 8px;
  }

  .panel-note .icon {
    width: 11px;
    height: 11px;
  }

  .part-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 12px 17px;
  }

  .part-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }

  .part-icon .icon {
    width: 18px;
    height: 18px;
  }

  .part-name {
    font-size: 12px;
  }

  .part-specs {
    font-size: 8.5px;
  }

  .part-price strong {
    font-size: 12px;
  }

  .perf-panel {
    padding: 18px;
  }

  .perf-head {
    flex-direction: column;
    gap: 8px;
  }

  .game-row {
    grid-template-columns: 78px minmax(0, 1fr) 60px;
    gap: 9px;
  }

  .game-label {
    font-size: 9px;
  }

  .game-fps strong {
    font-size: 12px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .mini-panel {
    padding: 18px;
  }

  .summary-card {
    padding: 18px;
  }

  .total-line strong {
    font-size: 36px;
  }

  .guide {
    padding: 54px 0 52px;
  }

  .guide-card {
    padding: 20px;
  }

  .faq {
    padding: 54px 0 64px;
  }

  .faq-list summary {
    padding: 15px 0;
    font-size: 12px;
    gap: 10px;
  }

  .faq-body {
    padding-right: 10px;
  }

  .footer-main {
    padding: 36px 0 30px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .modal {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-panel {
    max-height: 88vh;
    border-radius: 18px;
  }

  .modal-head {
    padding: 18px 18px 13px;
  }

  .modal-list {
    padding: 7px 10px 10px;
  }

  .modal-foot {
    padding: 10px 18px;
  }

  .alt-row {
    gap: 10px;
    padding: 11px 8px;
  }

  .alt-name {
    font-size: 11px;
  }

  .alt-specs {
    font-size: 8.5px;
  }
}

@media (max-width: 440px) {
  .use-grid {
    grid-template-columns: 1fr;
  }

  .use-card {
    padding: 9px 10px;
  }

  .use-icon {
    width: 28px;
    height: 28px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat strong {
    font-size: 21px;
  }

  .stat small {
    font-size: 8px;
  }

  .builder-card {
    padding: 17px;
  }

  .budget-input {
    font-size: 37px;
  }

  .currency {
    font-size: 19px;
  }

  .field-head {
    flex-wrap: wrap;
  }

  .field-hint {
    display: none;
  }

  .part-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 13px;
  }

  .part-icon {
    width: 33px;
    height: 33px;
  }

  .part-icon .icon {
    width: 16px;
    height: 16px;
  }

  .part-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .part-badge {
    display: none;
  }

  .part-price strong {
    font-size: 11px;
  }

  .game-row {
    grid-template-columns: 70px minmax(0, 1fr) 54px;
  }

  .game-fps strong {
    font-size: 11px;
  }

  .result-actions .btn-count {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  @page {
    margin: 14mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff;
    color: #111;
  }

  .page-bg,
  .page-noise,
  .site-header,
  .hero,
  .guide,
  .faq,
  .site-footer,
  .result-actions,
  .warning-banner,
  .advice-card,
  .swap-btn,
  .detail-btn,
  .part-badge,
  .modal,
  .toast,
  .summary-actions,
  .checks,
  .perf-foot .icon {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .results {
    padding: 0;
  }

  .results-head {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #111;
  }

  .kicker,
  .panel-head .kicker,
  .mini-head .kicker {
    color: #555;
  }

  .results-title-wrap h2 {
    color: #111;
    font-size: 26px;
  }

  .results-title-wrap > p,
  .tag-row .tag {
    color: #444;
  }

  .tag-row .tag {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .result-grid {
    display: block;
  }

  .result-main {
    gap: 10px;
  }

  .result-side {
    position: static;
    margin-top: 10px;
  }

  .panel,
  .summary-card {
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .part-row {
    padding: 7px 10px;
    border-bottom: 1px solid #ddd;
  }

  .part-row:hover {
    background: transparent;
  }

  .part-name,
  .part-price strong,
  .total-line strong,
  .metric strong,
  .game-fps strong,
  .panel-head h3,
  .mini-head h3,
  .game-label {
    color: #111;
  }

  .part-specs,
  .part-cat,
  .part-price strong,
  .metric span,
  .legend-item,
  .fineprint,
  .reason-list li,
  .upgrade-list li,
  .game-fps,
  .budget-meta,
  .summary-head {
    color: #555;
  }

  .part-icon {
    border-color: #ddd;
    background: #f4f4f4;
    color: #333;
  }

  .breakdown-bar,
  .budget-track {
    background: #eee;
  }

  .metric-grid,
  .checks,
  .breakdown,
  .summary-head {
    border-color: #ddd;
  }

  .game-track {
    background: #eee;
  }

  .perf-panel,
  .mini-panel,
  .summary-card {
    padding: 12px 14px;
  }

  .result-main > .panel,
  .insight-grid {
    margin-top: 8px;
  }

  .insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .part-icon .icon {
    stroke: #333;
  }
}

/* =========================================================
   Readability & interaction pass
   Larger type, clearer hierarchy, more obvious controls.
   Screen-only so the print layout stays compact.
   ========================================================= */

@media screen {
  :root {
    --muted: #a7b3c5;
    --muted-2: #8794a8;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(1200px, calc(100% - 48px));
  }

  /* Header */
  .header-inner {
    height: 76px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 8.5px;
  }

  .main-nav a {
    padding: 7px 0;
    font-size: 14px;
  }

  .header-cta {
    height: 42px;
    padding: 0 17px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(198, 255, 74, 0.1);
  }

  /* Hero */
  .eyebrow {
    padding: 9px 13px;
    font-size: 10px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
    gap: 56px;
  }

  .hero h1 {
    margin: 26px 0 22px;
  }

  .hero-lede {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.85;
  }

  .hero-stats {
    gap: 42px;
    margin-top: 40px;
  }

  .stat strong {
    font-size: 31px;
  }

  .stat small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11.5px;
  }

  .hero-promise {
    font-size: 12.5px;
    color: var(--muted);
  }

  .hero-promise .icon {
    width: 16px;
    height: 16px;
  }

  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
  }

  .hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 11px;
  }

  .hero-badges span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 7px rgba(198, 255, 74, 0.45);
  }

  /* Builder controls */
  .builder-card {
    padding: 30px;
  }

  .builder-kicker {
    font-size: 11px;
  }

  .live-state {
    font-size: 10.5px;
  }

  .field-head {
    gap: 9px;
    margin-bottom: 13px;
  }

  .step {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .field-name {
    font-size: 13.5px;
  }

  .field-hint {
    font-size: 10.5px;
    color: var(--muted);
  }

  .builder-divider {
    margin: 21px 0;
  }

  .currency {
    font-size: 24px;
  }

  .budget-input {
    width: 6.4ch;
    font-size: 52px;
  }

  .budget-unit {
    font-size: 9.5px;
  }

  .budget-range {
    height: 26px;
  }

  .budget-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8.5px;
  }

  .budget-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .range-labels {
    font-size: 9.5px;
  }

  .preset-row {
    gap: 8px;
    margin-top: 14px;
  }

  .preset {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 11px;
  }

  .preset:hover {
    border-color: rgba(198, 255, 74, 0.4);
    background: rgba(198, 255, 74, 0.08);
    color: var(--text);
  }

  .preset.is-active {
    border-color: var(--lime);
    background: var(--lime);
    color: #090c06;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(198, 255, 74, 0.12);
  }

  .use-grid {
    gap: 10px;
  }

  .use-card {
    min-height: 64px;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 13px;
  }

  .use-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.045);
  }

  .use-card.is-active {
    background: linear-gradient(135deg, rgba(198, 255, 74, 0.16), rgba(198, 255, 74, 0.03));
    box-shadow: inset 0 0 0 1px rgba(198, 255, 74, 0.14);
  }

  .use-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }

  .use-icon .icon {
    width: 20px;
    height: 20px;
  }

  .use-copy strong {
    font-size: 14px;
  }

  .use-copy small {
    font-size: 10.5px;
  }

  .use-radio {
    width: 16px;
    height: 16px;
  }

  .use-card.is-active .use-radio::after {
    inset: 4px;
  }

  .segmented {
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
  }

  .seg {
    min-height: 48px;
    gap: 3px;
    padding: 8px 5px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
  }

  .seg small {
    font-size: 9.5px;
    font-weight: 400;
  }

  .seg:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .seg.is-active {
    background: var(--lime);
    color: #090c06;
    box-shadow: 0 5px 16px rgba(198, 255, 74, 0.12);
  }

  .seg.is-active small {
    color: rgba(9, 12, 6, 0.68);
  }

  .pref-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pref {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 9px 10px;
    border-radius: 9px;
    text-align: left;
    font-size: 11.5px;
  }

  .pref strong {
    color: var(--text);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.25;
  }

  .pref small {
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.35;
  }

  .pref:hover {
    border-color: rgba(198, 255, 74, 0.3);
    background: rgba(198, 255, 74, 0.075);
    color: var(--text);
  }

  .pref.is-active {
    border-color: var(--lime);
    background: var(--lime);
    color: #090c06;
  }

  .pref.is-active strong {
    color: #090c06;
    font-weight: 750;
  }

  .pref.is-active small {
    color: rgba(9, 12, 6, 0.7);
  }

  .pref-summary {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 2px solid rgba(198, 255, 74, 0.55);
    border-radius: 0 6px 6px 0;
    background: rgba(198, 255, 74, 0.045);
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
  }

  .pref-summary::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: none;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--lime);
  }

  .build-btn {
    height: 58px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 15px;
  }

  .build-btn-text .icon {
    width: 18px;
    height: 18px;
  }

  .build-btn-arrow {
    width: 31px;
    height: 31px;
  }

  .builder-foot {
    margin-top: 12px;
    font-size: 10px;
  }

  /* Results header */
  .results {
    padding: 62px 0 92px;
  }

  .results-head {
    margin-bottom: 26px;
  }

  .kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .results-title-wrap h2 {
    font-size: clamp(34px, 3.7vw, 48px);
  }

  .results-title-wrap > p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.75;
  }

  .tag-row {
    gap: 7px;
    margin-top: 15px;
  }

  .tag {
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11px;
  }

  .result-actions {
    gap: 8px;
  }

  .btn {
    height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 12.5px;
  }

  .btn .icon {
    width: 16px;
    height: 16px;
  }

  .btn-icon {
    width: 42px;
  }

  .btn-count {
    font-size: 10.5px;
  }


  /* Grid proportions */
  .result-grid {
    grid-template-columns: minmax(0, 1fr) 382px;
    gap: 24px;
  }

  .result-main,
  .result-side {
    gap: 24px;
  }

  /* Panels and parts */
  .panel-head {
    padding: 23px 26px 19px;
  }

  .panel-head h3 {
    font-size: 21px;
  }

  .count-badge {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .panel-note {
    font-size: 10.5px;
  }

  .panel-note .icon {
    width: 14px;
    height: 14px;
  }

  .part-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 17px 26px;
  }

  .part-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .part-icon .icon {
    width: 24px;
    height: 24px;
  }

  .part-top {
    gap: 7px;
    margin-bottom: 4px;
  }

  .part-cat {
    font-size: 10px;
  }

  .part-badge {
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .part-name {
    font-size: 15px;
    font-weight: 600;
  }

  .part-specs {
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
  }

  .part-specs span + span::before {
    margin-right: 6px;
  }

  .part-price {
    gap: 7px;
  }

  .part-price strong {
    font-size: 16px;
  }

  .part-actions {
    gap: 7px;
  }

  .swap-btn,
  .detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #d0d9e4;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
  }

  .swap-btn .icon,
  .detail-btn .icon {
    width: 12px;
    height: 12px;
  }

  .swap-btn:hover,
  .detail-btn:hover {
    border-color: var(--lime);
    background: var(--lime);
    color: #090c06;
  }

  /* Performance */
  .perf-panel {
    padding: 24px 26px 22px;
  }

  .perf-head {
    margin-bottom: 24px;
  }

  .perf-head h3 {
    font-size: 21px;
  }

  .perf-head h3 span {
    font-size: 10px;
  }

  .perf-res {
    padding: 6px 9px;
    font-size: 10px;
  }

  .game-bars,
  .cap-bars {
    gap: 17px;
  }

  .game-row {
    grid-template-columns: 118px minmax(0, 1fr) 82px;
    gap: 15px;
  }

  .game-label {
    font-size: 12px;
  }

  .game-track {
    height: 8px;
  }

  .game-fps {
    font-size: 9.5px;
  }

  .game-fps strong {
    font-size: 17px;
  }

  .game-fps small {
    font-size: 8.5px;
  }

  .perf-foot {
    margin-top: 20px;
    padding-top: 14px;
    font-size: 9.5px;
  }

  .perf-foot .icon {
    width: 12px;
    height: 12px;
  }

  /* Mini insight panels */
  .mini-panel {
    padding: 23px 24px 21px;
  }

  .mini-head {
    gap: 13px;
    margin-bottom: 19px;
  }

  .mini-index {
    padding: 5px 7px;
    font-size: 9px;
  }

  .mini-head h3 {
    font-size: 17px;
  }

  .reason-list {
    gap: 13px;
  }

  .reason-list li,
  .upgrade-list li {
    font-size: 12px;
    line-height: 1.7;
  }

  .upgrade-list {
    gap: 11px;
  }

  /* Summary */
  .summary-card {
    padding: 24px;
  }

  .summary-head {
    font-size: 11.5px;
  }

  .variant-pill {
    padding: 4px 8px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }

  .total-line {
    margin: 11px 0 3px;
  }

  .total-line .currency {
    font-size: 21px;
  }

  .total-line strong {
    font-size: 44px;
  }

  .budget-meta {
    margin: 9px 0;
    font-size: 11px;
  }

  .budget-track {
    height: 6px;
  }

  .breakdown {
    margin: 20px 0;
  }

  .breakdown-bar {
    height: 8px;
  }

  .breakdown-legend {
    gap: 8px 13px;
    margin-top: 13px;
  }

  .legend-item {
    font-size: 10.5px;
  }

  .legend-item strong {
    font-size: 10px;
  }

  .metric {
    padding: 14px 0;
  }

  .metric span {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .metric strong {
    font-size: 20px;
  }

  .metric strong small {
    font-size: 9px;
  }

  .summary-actions {
    gap: 7px;
  }

  .summary-actions .btn-icon {
    width: 42px;
  }

  .reset-btn {
    margin-top: 10px;
    padding: 8px;
    font-size: 10px;
  }

  .checks {
    margin-top: 16px;
    padding-top: 13px;
  }

  .checks summary {
    font-size: 11px;
  }

  .checks-list {
    gap: 8px;
    margin-top: 11px;
  }

  .checks-list li {
    font-size: 10px;
  }

  .checks-list li .icon {
    width: 11px;
    height: 11px;
  }

  .fineprint {
    margin-top: 11px;
    font-size: 9px;
  }

  .advice-card {
    padding: 15px 16px;
    font-size: 11.5px;
  }

  .advice-card strong {
    font-size: 10.5px;
  }

  /* Guide */
  .guide-card h3 {
    font-size: 18px;
  }

  .guide-card p {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .guide-tag {
    font-size: 9.5px;
  }

  .section-head > p {
    font-size: 14px;
  }

  /* FAQ */
  .faq-list summary {
    padding: 19px 0;
    font-size: 14.5px;
  }

  .faq-body {
    padding: 0 40px 21px 0;
    font-size: 12.5px;
    line-height: 1.9;
  }

  .faq-body code {
    font-size: 10.5px;
  }

  .faq-intro > p {
    font-size: 13px;
  }

  .faq-badge {
    font-size: 10px;
  }

  .footer-brand p {
    font-size: 11.5px;
  }

  .footer-col h4 {
    font-size: 10.5px;
  }

  .footer-col a {
    font-size: 11.5px;
  }

  .footer-bottom {
    font-size: 9px;
  }

  /* Modals */
  .modal-head h3 {
    font-size: 23px;
  }

  .modal-head p {
    font-size: 11px;
  }

  .alt-row {
    gap: 16px;
    padding: 14px 13px;
  }

  .alt-name {
    font-size: 13.5px;
  }

  .alt-specs {
    margin-top: 4px;
    font-size: 10.5px;
  }

  .alt-tag {
    padding: 3px 6px;
    font-size: 8.5px;
  }

  .alt-price strong {
    font-size: 13px;
  }

  .alt-price small {
    font-size: 9px;
  }

  .modal-foot {
    font-size: 9.5px;
  }


  .faq-plus {
    width: 24px;
    height: 24px;
  }

  .faq-plus .icon {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 510px);
    gap: 42px;
  }

  .result-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media screen and (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(48px, 8.6vw, 72px);
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 760px) {
  body {
    font-size: 14.5px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .header-cta {
    height: 40px;
    font-size: 12px;
  }

  .hero {
    padding-top: 38px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(46px, 12vw, 62px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .stat strong {
    font-size: 25px;
  }

  .stat small {
    font-size: 10px;
  }

  .hero-promise {
    font-size: 11.5px;
  }

  .hero-badges {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-badges span {
    padding: 6px 8px;
    font-size: 10px;
  }

  .builder-card {
    padding: 22px;
  }

  .field-name {
    font-size: 13px;
  }

  .field-hint {
    font-size: 10px;
  }

  .budget-input {
    font-size: 46px;
  }

  .currency {
    font-size: 21px;
  }

  .range-labels {
    font-size: 9px;
  }

  .preset {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10.5px;
  }

  .use-copy strong {
    font-size: 13.5px;
  }

  .use-copy small {
    font-size: 10px;
  }

  .seg {
    min-height: 46px;
    font-size: 12px;
  }

  .seg small {
    font-size: 9px;
  }

  .pref-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pref {
    min-height: 58px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .pref strong {
    font-size: 11px;
  }

  .pref small {
    font-size: 9px;
  }

  .pref-summary {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .build-btn {
    height: 54px;
    font-size: 14px;
  }

  .builder-foot {
    font-size: 9.5px;
  }

  .results-title-wrap h2 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .results-title-wrap > p {
    font-size: 13.5px;
  }

  .tag {
    font-size: 10px;
  }

  .btn {
    height: 40px;
    font-size: 11.5px;
  }


  .panel-head {
    padding: 19px 18px 16px;
  }

  .panel-head h3 {
    font-size: 18px;
  }

  .panel-note {
    font-size: 9.5px;
  }

  .part-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 14px 17px;
  }

  .part-icon {
    width: 42px;
    height: 42px;
  }

  .part-icon .icon {
    width: 21px;
    height: 21px;
  }

  .part-name {
    font-size: 14px;
  }

  .part-specs {
    font-size: 10px;
  }

  .part-price strong {
    font-size: 14px;
  }

  .swap-btn,
  .detail-btn {
    min-height: 31px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .game-row {
    grid-template-columns: 88px minmax(0, 1fr) 66px;
    gap: 10px;
  }

  .game-label {
    font-size: 10.5px;
  }

  .game-fps strong {
    font-size: 14px;
  }

  .metric strong {
    font-size: 18px;
  }

  .total-line strong {
    font-size: 38px;
  }

  .legend-item {
    font-size: 9.5px;
  }

  .faq-list summary {
    font-size: 13.5px;
  }

  .faq-body {
    font-size: 12px;
  }

}

/* Advanced builder entry + modal */

@media screen {
  .advanced-entry {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin-top: 11px;
    padding: 11px 13px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease;
  }

  .advanced-entry:hover {
    border-color: rgba(198, 255, 74, 0.45);
    background: rgba(198, 255, 74, 0.045);
  }

  .advanced-entry-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border: 1px solid rgba(198, 255, 74, 0.18);
    border-radius: 9px;
    background: rgba(198, 255, 74, 0.06);
    color: var(--lime);
  }

  .advanced-entry-icon .icon {
    width: 18px;
    height: 18px;
  }

  .advanced-entry-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .advanced-entry-copy strong {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 650;
  }

  .advanced-entry-copy small {
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.4;
  }

  .advanced-entry-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
  }

  .advanced-entry-arrow .icon {
    width: 13px;
    height: 13px;
    transition: transform 0.18s ease;
  }

  .advanced-entry:hover .advanced-entry-arrow .icon {
    transform: translateX(2px);
  }

  .advanced-panel {
    display: flex;
    flex-direction: column;
    width: min(1240px, 100%);
    height: min(92vh, 920px);
    max-height: 92vh;
    overflow: hidden;
  }

  .advanced-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex: none;
    padding: 20px 24px 15px;
    border-bottom: 1px solid var(--line);
  }

  .advanced-head h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.035em;
  }

  .advanced-head p {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 11.5px;
  }

  .advanced-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: none;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
  }

  .advanced-total {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: none;
  }

  .advanced-total > span {
    color: var(--muted-2);
    font-size: 9px;
  }

  .advanced-total strong {
    font-family: var(--font-mono);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .advanced-total small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 9.5px;
  }

  .advanced-budget {
    flex: 1;
    max-width: 430px;
  }

  .advanced-budget-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--muted-2);
    font-size: 9.5px;
  }

  .advanced-budget-top strong {
    font-family: var(--font-mono);
    font-weight: 500;
  }

  .advanced-budget-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .advanced-budget-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9fdc31, var(--lime));
    transition: width 0.3s ease;
  }

  .advanced-budget-track span.is-over {
    background: linear-gradient(90deg, #ff9a5b, var(--red));
  }

  .advanced-count {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 9.5px;
    white-space: nowrap;
  }

  .advanced-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
  }

  .advanced-categories {
    overflow-y: auto;
    padding: 10px;
    border-right: 1px solid var(--line);
  }

  .adv-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    text-align: left;
    transition: all 0.18s ease;
  }

  .adv-cat:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
  }

  .adv-cat.is-active {
    border-color: rgba(198, 255, 74, 0.4);
    background: rgba(198, 255, 74, 0.09);
  }

  .adv-cat-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex: none;
    border: 1px solid color-mix(in srgb, var(--cat-color) 22%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--cat-color) 9%, transparent);
    color: var(--cat-color);
  }

  .adv-cat-icon .icon {
    width: 17px;
    height: 17px;
  }

  .adv-cat-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .adv-cat-copy strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
  }

  .adv-cat-copy small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .adv-cat-price {
    flex: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
  }

  .advanced-options {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }

  .advanced-options-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex: none;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--line);
  }

  .advanced-options-head h4 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
  }

  .advanced-category-note {
    display: block;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 9.5px;
  }

  .advanced-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
  }

  .advanced-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 175px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-2);
  }

  .advanced-search .icon {
    width: 14px;
    height: 14px;
    flex: none;
  }

  .advanced-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
  }

  .advanced-search input::placeholder {
    color: var(--muted-2);
  }

  .advanced-sort {
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #111720;
    color: var(--muted);
    font-size: 10px;
    outline: none;
  }

  .advanced-options-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 10px 14px 16px;
  }

  .adv-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    text-align: left;
    transition: all 0.18s ease;
  }

  .adv-option:hover {
    border-color: rgba(198, 255, 74, 0.35);
    background: rgba(198, 255, 74, 0.045);
  }

  .adv-option.is-current {
    border-color: rgba(198, 255, 74, 0.45);
    background: rgba(198, 255, 74, 0.07);
  }

  .adv-option-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .adv-option-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .adv-option-top strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
  }

  .adv-tag {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 1.3;
  }

  .adv-tag.current {
    border: 1px solid rgba(198, 255, 74, 0.25);
    background: rgba(198, 255, 74, 0.1);
    color: var(--lime);
  }

  .adv-tag.good {
    background: rgba(198, 255, 74, 0.08);
    color: var(--lime);
  }

  .adv-tag.warn {
    background: rgba(255, 184, 107, 0.09);
    color: var(--orange);
  }

  .adv-option-specs {
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.45;
  }

  .adv-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex: none;
  }

  .adv-option-price strong {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
  }

  .adv-option-price small {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 9px;
  }

  .adv-option-price small.up {
    color: var(--orange);
  }

  .adv-option-price small.down {
    color: var(--lime);
  }

  .advanced-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: none;
    padding: 11px 24px;
    border-top: 1px solid var(--line);
  }

  .advanced-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.5;
  }

  .advanced-warning .icon {
    width: 13px;
    height: 13px;
    flex: none;
    margin-top: 1px;
    color: var(--lime);
  }

  .advanced-warning.is-warn {
    color: var(--orange);
  }

  .advanced-warning.is-warn .icon {
    color: var(--orange);
  }

  .advanced-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
  }

  .advanced-actions .btn-primary {
    height: 38px;
  }

  .advanced-empty {
    min-height: 180px;
  }
}

@media screen and (max-width: 900px) {
  .advanced-panel {
    height: 94vh;
    max-height: 94vh;
  }

  .advanced-head {
    padding: 17px 18px 13px;
  }

  .advanced-head h3 {
    font-size: 21px;
  }

  .advanced-topbar {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 18px;
  }

  .advanced-total strong {
    font-size: 22px;
  }

  .advanced-budget {
    order: 4;
    width: 100%;
    max-width: none;
  }

  .advanced-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .advanced-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .adv-cat {
    width: auto;
    min-width: 145px;
    margin-bottom: 0;
    padding: 8px;
  }

  .adv-cat-copy small {
    max-width: 110px;
  }

  .adv-cat-price {
    display: none;
  }

  .advanced-options-head {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px 10px;
  }

  .advanced-tools {
    width: 100%;
  }

  .advanced-search {
    width: auto;
    flex: 1;
  }

  .advanced-options-list {
    padding: 8px 10px 12px;
  }

  .advanced-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px 14px;
  }

  .advanced-actions {
    justify-content: flex-end;
  }

  .advanced-actions .btn {
    flex: 1;
  }
}

@media screen and (max-width: 440px) {
  .advanced-entry {
    padding: 10px;
  }

  .advanced-entry-copy strong {
    font-size: 12px;
  }

  .advanced-entry-copy small {
    font-size: 9.5px;
  }

  .advanced-option {
    padding: 11px 10px;
    gap: 9px;
  }

  .adv-option-top strong {
    font-size: 12px;
  }

  .adv-option-specs {
    font-size: 10px;
  }
}

@media screen and (max-width: 440px) {
  .use-grid {
    grid-template-columns: 1fr;
  }

  .part-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 12px 14px;
  }

  .part-icon {
    width: 38px;
    height: 38px;
  }

  .part-name {
    font-size: 13.5px;
  }

  .part-price strong {
    font-size: 13px;
  }

  .swap-btn,
  .detail-btn {
    padding: 0 8px;
    font-size: 10px;
  }

  .part-actions {
    gap: 5px;
  }
}

/* =========================================================
   Configurator layout v3 + generate transition
   ========================================================= */

@media screen {
  .builder-kicker {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
  }

  .builder-kicker .icon {
    width: 15px;
    height: 15px;
  }

  .builder-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .builder-use-col,
  .builder-options-col {
    min-width: 0;
  }

  .builder-use-col .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .builder-use-col .use-card {
    min-height: 58px;
    gap: 8px;
    padding: 9px 10px;
  }

  .builder-use-col .use-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }

  .builder-use-col .use-icon .icon {
    width: 16px;
    height: 16px;
  }

  .builder-use-col .use-copy strong {
    font-size: 12.5px;
  }

  .builder-use-col .use-copy small {
    font-size: 9.5px;
  }

  .builder-use-col .use-radio {
    width: 14px;
    height: 14px;
  }

  .builder-use-col .use-card.is-active .use-radio::after {
    inset: 3px;
  }

  .builder-use-col .budget-input {
    font-size: 48px;
  }

  .builder-use-col .preset {
    padding: 6px 9px;
    font-size: 10px;
  }

  .builder-use-col .preset-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .custom-budget {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 2px;
    padding: 8px 10px;
    border: 1px dashed rgba(198, 255, 74, 0.26);
    border-radius: 8px;
    background: rgba(198, 255, 74, 0.035);
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease;
  }

  .custom-budget:hover {
    border-color: rgba(198, 255, 74, 0.6);
    background: rgba(198, 255, 74, 0.08);
  }

  .custom-budget.is-active {
    border-style: solid;
    border-color: var(--lime);
    background: rgba(198, 255, 74, 0.09);
  }

  .custom-budget-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: none;
    border-radius: 7px;
    background: rgba(198, 255, 74, 0.1);
    color: var(--lime);
  }

  .custom-budget-icon .icon {
    width: 14px;
    height: 14px;
  }

  .custom-budget-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .custom-budget-copy strong {
    color: var(--text);
    font-size: 11.5px;
    font-weight: 650;
  }

  .custom-budget-copy small {
    color: var(--muted-2);
    font-size: 9.2px;
    line-height: 1.35;
  }

  .custom-budget-arrow {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
  }

  .custom-budget-arrow .icon {
    width: 11px;
    height: 11px;
  }

  .custom-budget:hover .custom-budget-arrow {
    color: var(--lime);
  }

  .builder-use-col .builder-divider {
    margin: 14px 0;
  }

  .builder-options-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .builder-options-col .pref-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .builder-options-col .pref {
    min-height: 60px;
    padding: 8px;
  }

  .builder-options-col .pref strong {
    font-size: 11px;
  }

  .builder-options-col .pref small {
    font-size: 8.5px;
  }

  .builder-options-col .pref-summary {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.45;
  }

  .builder-divider {
    margin: 17px 0;
  }

  .build-btn:disabled {
    opacity: 0.9;
    cursor: wait;
    transform: none;
  }

  .build-btn.is-loading .build-btn-text .icon {
    animation: spin 0.8s linear infinite;
  }

  .build-btn-label {
    display: inline-block;
  }

  /* Progress line shown during the jump to the result section */
  .transition-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 2px;
    opacity: 0;
    pointer-events: none;
  }

  .transition-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, var(--lime) 45%, var(--cyan));
    transition: transform 0.78s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .transition-progress.is-active {
    opacity: 1;
  }

  .transition-progress.is-active span {
    transform: scaleX(1);
  }

  .transition-progress.is-done {
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
  }

  /* Staggered result entrance */
  .results.is-revealing .results-head {
    animation: result-reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }


  .results.is-revealing .parts-panel {
    animation: result-reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
  }

  .results.is-revealing .result-side {
    animation: result-reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
  }

  .results.is-revealing .perf-panel {
    animation: result-reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }

  .results.is-revealing .insight-grid {
    animation: result-reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both;
  }

  @keyframes result-reveal {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media screen and (min-width: 1181px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(600px, 47vw, 680px);
    gap: 48px;
  }
}

@media screen and (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .builder-card {
    width: 100%;
    max-width: 680px;
  }
}

@media screen and (max-width: 760px) {
  .builder-controls {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .builder-use-col .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-options-col .pref-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-options-col {
    gap: 14px;
  }

  .builder-card {
    max-width: none;
  }
}

@media screen and (max-width: 360px) {
  .builder-use-col .use-grid {
    grid-template-columns: 1fr;
  }
}

/* Swap modal search / compatibility notices */

@media screen {
  .compat-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    flex: none;
    margin: 0 15px 9px;
    padding: 10px 11px;
    border: 1px solid rgba(198, 255, 74, 0.26);
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(198, 255, 74, 0.08), rgba(198, 255, 74, 0.025));
  }

  .compat-notice-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: none;
    border-radius: 7px;
    background: rgba(198, 255, 74, 0.12);
    color: var(--lime);
  }

  .compat-notice-icon .icon {
    width: 14px;
    height: 14px;
  }

  .compat-notice-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .compat-notice-copy strong {
    color: var(--lime-soft);
    font-size: 11.5px;
    font-weight: 650;
  }

  .compat-notice-copy small {
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.45;
  }

  .swap-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 0 15px 10px;
  }

  .swap-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-2);
  }

  .swap-search:focus-within {
    border-color: rgba(198, 255, 74, 0.45);
    background: rgba(198, 255, 74, 0.035);
  }

  .swap-search .icon {
    width: 14px;
    height: 14px;
    flex: none;
  }

  .swap-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 11px;
  }

  .swap-search input::placeholder {
    color: var(--muted-2);
  }

  .swap-sort {
    height: 38px;
    flex: none;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #111720;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 10.5px;
  }

  .swap-count {
    min-width: 42px;
    flex: none;
    color: var(--muted-2);
    font-family: var(--font-sans);
    font-size: 9.5px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .modal-foot-end {
    justify-content: flex-end;
  }

  .modal-list {
    min-height: 0;
  }

  .alt-empty {
    padding: 44px 20px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    text-align: center;
  }

  .alt-empty span {
    color: var(--muted-2);
    font-size: 9.5px;
  }

  .advanced-category-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(198, 255, 74, 0.24);
    border-radius: 5px;
    background: rgba(198, 255, 74, 0.065);
    color: var(--lime-soft);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
  }

  .advanced-category-note .icon {
    width: 11px;
    height: 11px;
    flex: none;
    color: var(--lime);
  }
}

@media screen and (max-width: 760px) {
  .compat-notice {
    margin: 0 10px 8px;
    padding: 9px;
  }

  .swap-tools {
    flex-wrap: wrap;
    padding: 0 10px 8px;
  }

  .swap-search {
    flex: 1 1 100%;
    height: 40px;
  }

  .swap-sort {
    flex: 1;
  }

  .swap-count {
    margin-left: auto;
  }

  .advanced-category-note {
    font-size: 9px;
  }
}


/* Part detail modal */
.detail-panel {
  width: min(600px, 100%);
}

.detail-panel .modal-head {
  padding-bottom: 14px;
}

.detail-panel .modal-head h3 {
  font-size: 22px;
}

.detail-panel .modal-head p {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.5;
}

.detail-body {
  padding: 18px 24px 20px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.detail-body::-webkit-scrollbar {
  width: 6px;
}

.detail-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.detail-value {
  max-width: 66%;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-empty {
  padding: 36px 20px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

@media screen and (max-width: 760px) {
  .detail-panel {
    max-height: 90vh;
  }

  .detail-panel .modal-head h3 {
    font-size: 20px;
  }

  .detail-panel .modal-head p {
    font-size: 10px;
  }

  .detail-body {
    padding: 15px 18px 17px;
    max-height: 58vh;
  }

  .detail-row {
    gap: 12px;
    padding: 9px 0;
  }

  .detail-label {
    font-size: 11px;
  }

  .detail-value {
    max-width: 64%;
    font-size: 12px;
  }
}

/* Collapsible secondary preferences */
.preference-field .pref-more {
  margin-top: 8px;
}

.pref-more-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pref-more-toggle::-webkit-details-marker {
  display: none;
}

.pref-more-toggle:hover {
  border-color: rgba(198, 255, 74, 0.42);
  background: rgba(198, 255, 74, 0.045);
  color: var(--text);
}

.pref-more[open] .pref-more-toggle {
  border-style: solid;
  border-color: rgba(198, 255, 74, 0.3);
  background: rgba(198, 255, 74, 0.055);
}

.pref-more-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pref-more-copy strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.pref-more-copy small {
  color: var(--muted-2);
  font-size: 9.2px;
  line-height: 1.35;
}

.pref-more-arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.pref-more-arrow .icon {
  width: 10px;
  height: 10px;
}

.pref-more[open] .pref-more-arrow {
  transform: rotate(180deg);
  color: var(--lime);
}

.pref-row-more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

@media screen and (max-width: 760px) {
  .pref-more-toggle {
    min-height: 40px;
    padding: 8px 9px;
  }

  .pref-more-copy strong {
    font-size: 11.5px;
  }

  .pref-more-copy small {
    font-size: 9.5px;
  }
}
/* Build comparison modal */
.compare-panel {
  width: min(980px, 100%);
}

.compare-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 22px 12px;
}

.compare-slot {
  min-width: 0;
}

.compare-select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #111720;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 11px;
}

.compare-body {
  min-height: 0;
  max-height: 60vh;
  padding: 0 22px 20px;
  overflow: auto;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row-head {
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.compare-key {
  color: var(--muted-2);
  text-align: left;
}

.compare-cell {
  min-width: 0;
  color: var(--text);
  text-align: left;
}

.compare-row-head .compare-cell {
  color: var(--text);
  font-size: 10.5px;
  text-align: left;
}

.compare-cell strong,
.compare-cell small {
  display: block;
}

.compare-cell strong {
  font-size: 11px;
  font-weight: 550;
}

.compare-cell small {
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.compare-row-total {
  background: rgba(198, 255, 74, 0.035);
}

.compare-row-total .compare-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.compare-cell .over {
  color: var(--orange);
}

.compare-cell .save {
  color: var(--lime);
}

.compare-empty {
  padding: 45px 20px;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

@media screen and (max-width: 760px) {
  .compare-toolbar {
    grid-template-columns: 1fr;
    padding: 0 14px 10px;
  }

  .compare-body {
    padding: 0 14px 16px;
    max-height: 62vh;
  }

  .compare-table {
    min-width: 560px;
  }

  .compare-row {
    grid-template-columns: 108px minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 10px;
    padding: 8px 9px;
    font-size: 10.5px;
  }

  .compare-cell strong {
    font-size: 10.5px;
  }
}
