:root {
  --bg: #070d1a;
  --bg2: #0c1424;
  --bg3: #131e30;
  --card: #0e1828;
  --bd: rgba(255, 255, 255, 0.08);
  --bd2: rgba(255, 255, 255, 0.14);
  --txt: #fff;
  --txt2: rgba(255, 255, 255, 0.62);
  --txt3: rgba(255, 255, 255, 0.34);
  --b: #1565c0;
  --b2: #1e88e5;
  --b3: #42a5f5;
  --gr: #10b981;
  --gold: #f59e0b;
  --red: #ef4444;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Lato", sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
b,
strong {
  font-weight: 600;
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  width: 980px;
  height: 980px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(30, 136, 229, 0.08) 0%,
    transparent 64%
  );
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: rgba(7, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(30, 136, 229, 0.22));
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(30, 136, 229, 0.22);
  background: rgba(30, 136, 229, 0.08);
  color: var(--b3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--bd2);
  background: transparent;
  color: var(--txt2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.back:hover {
  color: var(--b3);
  border-color: rgba(66, 165, 245, 0.35);
}
.stepbar {
  position: relative;
  z-index: 10;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--bd);
  background: var(--bg2);
}
.stepbar::-webkit-scrollbar {
  display: none;
}
.step {
  flex: 1 0 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--bd);
  text-decoration: none;
  color: var(--txt3);
  transition:
    background 0.2s,
    color 0.2s;
}
.step:last-child {
  border-right: none;
}
.step.done {
  color: var(--b3);
}
.step.active {
  color: #fff;
  background: rgba(21, 101, 192, 0.1);
}
.step-num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--txt3);
  font-size: 11px;
  font-weight: 900;
}
.step.done .step-num {
  background: rgba(30, 136, 229, 0.14);
  border-color: rgba(30, 136, 229, 0.3);
  color: var(--b3);
}
.step.active .step-num {
  background: linear-gradient(135deg, var(--b), var(--b2));
  border-color: var(--b2);
  color: #fff;
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.34);
}
.step-meta {
  min-width: 0;
}
.step-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-title {
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wrap {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 110px;
}
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.side {
  position: sticky;
  top: 92px;
}
.summary,
.panel,
.help,
.result-card,
.choice,
.result-card,
.battery-chip,
.battery-type,
.battery-brand,
.battery-polarity,
.battery-dimension {
  border-radius: 16px;
  border: 1px solid var(--bd);
  background: var(--card);
}
.summary {
  padding: 18px;
}
.summary-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b3);
}
.summary-title {
  margin: 8px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  line-height: 0.96;
  font-weight: 900;
}
.summary-sub {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--txt2);
}
.summary-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bd);
}
.summary-row:last-child {
  border-bottom: none;
}
.k {
  font-size: 11px;
  color: var(--txt3);
  font-weight: 700;
}
.v {
  font-size: 13px;
  color: var(--txt);
  font-weight: 700;
  text-align: right;
}
.edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--bd2);
  color: var(--txt2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.edit:hover {
  border-color: rgba(66, 165, 245, 0.38);
  color: var(--b3);
}
.panel {
  padding: 20px;
}
.hero {
  margin-bottom: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.eyebrow-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--b), var(--b2));
}
.eyebrow-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b3);
}
.title {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--txt2);
  max-width: 760px;
}
.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(66, 165, 245, 0.18);
  background: rgba(21, 101, 192, 0.08);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--txt2);
}
.options {
  display: grid;
  gap: 12px;
}
.brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.type-grid,
.polarity-grid {
  grid-template-columns: 1fr;
}
.chip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dimension-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 840px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.brand,
.type,
.battery-chip,
.polarity,
.dimension {
  display: block;
  width: 100%;
  padding: 16px 14px;
  text-align: left;
  color: var(--txt);
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.brand:hover,
.type:hover,
.battery-chip:hover,
.polarity:hover,
.dimension:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 165, 245, 0.35);
}
.brand.selected,
.type.selected,
.battery-chip.selected,
.polarity.selected,
.dimension.selected {
  border-color: var(--b2);
  background: rgba(21, 101, 192, 0.08);
  box-shadow: 0 0 0 1px rgba(30, 136, 229, 0.16);
}
.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.brand-logo {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid rgba(66, 165, 245, 0.22);
  background: rgba(30, 136, 229, 0.08);
  color: var(--b3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-desc,
.type-desc,
.chip-desc,
.dimension-desc,
.polarity-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--txt2);
}
.type-title,
.polarity-title,
.dimension-title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.type-ico,
.polarity-ico,
.dimension-ico {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 10px;
}
.battery-chip {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.battery-chip small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.help-text {
  font-size: 12px;
  color: var(--txt3);
  line-height: 1.5;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.btn,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--b), var(--b2));
  box-shadow: 0 2px 16px rgba(30, 136, 229, 0.28);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.36);
}
.btn-secondary {
  color: var(--txt2);
  background: transparent;
  border-color: var(--bd2);
}
.btn-secondary:hover {
  color: var(--b3);
  border-color: rgba(66, 165, 245, 0.4);
}
.btn-tertiary {
  color: var(--b3);
  background: rgba(30, 136, 229, 0.08);
  border-color: rgba(30, 136, 229, 0.18);
}
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .results-grid,
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
}
.result-list {
  display: grid;
  gap: 12px;
}
.result-card {
  padding: 18px;
  overflow: hidden;
}
.result-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.result-art {
  position: relative;
  width: 110px;
  min-height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(145deg, rgba(30, 136, 229, 0.12), rgba(14, 24, 40, 0.92));
  border: 1px solid rgba(66, 165, 245, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-art::before,
.result-art::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 10px;
  height: 18px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.45)
  );
}
.result-art::before {
  left: 26px;
}
.result-art::after {
  right: 26px;
}
.result-body {
  flex: 1;
  min-width: 0;
}
.result-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--b3);
  text-transform: uppercase;
}
.result-name {
  margin: 2px 0 10px;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.result-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}
.result-spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--txt2);
  padding: 7px 0;
  border-bottom: 1px solid var(--bd);
}
.result-spec:last-child {
  border-bottom: none;
}
.result-spec span:last-child {
  color: var(--txt);
  font-weight: 700;
  text-align: right;
}
.result-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bd);
}
.result-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.result-meta {
  font-size: 12px;
  color: var(--txt3);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.help {
  padding: 18px;
}
.help-title {
  margin: 0 0 10px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.help-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--txt2);
  font-size: 13px;
  line-height: 1.7;
}
.help-list li + li {
  margin-top: 4px;
}
.help-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  font-size: 12.5px;
  line-height: 1.55;
}
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  background: rgba(7, 13, 26, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--bd);
  padding: 12px 18px;
}
.sticky-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sticky-copy {
  min-width: 0;
}
.sticky-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b3);
}
.sticky-title {
  margin-top: 2px;
  font-size: 13px;
  color: var(--txt2);
}
.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 780px) {
  .nav {
    padding: 0 14px;
  }
  .wrap {
    padding: 18px 14px 118px;
  }
  .result-top {
    flex-direction: column;
  }
  .result-art {
    width: 100%;
    min-height: 104px;
  }
  .sticky-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .sticky-actions {
    justify-content: stretch;
  }
  .sticky-actions .btn,
  .sticky-actions .btn-secondary,
  .sticky-actions .btn-tertiary {
    flex: 1 1 140px;
  }
}
