@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: light;
  --bg: #08111f;
  --bg-strong: #0f1b31;
  --surface: rgba(13, 23, 41, 0.78);
  --surface-strong: rgba(17, 31, 54, 0.92);
  --line: rgba(141, 225, 255, 0.14);
  --text: #f4f8ff;
  --muted: #9aabc7;
  --brand: #12c3ff;
  --brand-deep: #0f84b8;
  --accent: #31e7b6;
  --ok: #52df84;
  --danger: #ff7f8f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

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

html,
body,
#__nuxt {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(18, 195, 255, 0.2), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(49, 231, 182, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(58, 108, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #060d19 0%, #08111f 40%, #091625 100%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(14, 27, 47, 0.88), rgba(9, 19, 34, 0.82)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.1), transparent 30%);
}

.topbar__brand-row {
  display: flex;
  align-items: center;
}

.topbar__brand {
  display: grid;
  min-width: 0;
}

.topbar-home {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  background: rgba(7, 18, 32, 0.52);
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar-home:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 225, 255, 0.24);
  background: rgba(10, 24, 40, 0.7);
}

.topbar__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  min-width: 0;
}

.topbar__menu-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.topbar-sources {
  display: grid;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(14, 27, 47, 0.88), rgba(9, 19, 34, 0.82)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.08), transparent 30%);
}

.topbar-sources__title {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.topbar-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.topbar-catalog__item {
  display: grid;
  gap: 6px;
  align-items: start;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(141, 225, 255, 0.14);
  background: rgba(7, 18, 32, 0.52);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar-catalog__item:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 225, 255, 0.24);
  background: rgba(10, 24, 40, 0.74);
}

.topbar-catalog__logo-wrap {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 64px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(141, 225, 255, 0.1);
  background: rgba(5, 14, 27, 0.76);
}

.topbar-catalog__logo {
  display: block;
  width: 100%;
  max-width: 96px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.topbar-catalog__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-catalog__text strong {
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-catalog__text small {
  color: #9ddff1;
  font-size: 0.69rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(141, 225, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 18, 32, 0.52);
  color: #eff8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.topbar__menu-toggle-label {
  line-height: 1;
}

.topbar__menu-toggle-icon {
  display: grid;
  gap: 4px;
}

.topbar__menu-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.topbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.topbar__actions > * {
  flex-shrink: 0;
}

.topbar-link {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 13px;
  border-radius: 16px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  background: rgba(7, 18, 32, 0.52);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 225, 255, 0.24);
  background: rgba(10, 24, 40, 0.7);
}

.topbar-link span {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.15;
}

.topbar-link small {
  color: #9ddff1;
  font-size: 0.72rem;
  line-height: 1.2;
}

.topbar-link--logo {
  align-items: center;
  justify-items: center;
  min-height: 84px;
  padding: 8px;
}

.topbar-link__logo {
  display: block;
  width: 100%;
  max-width: 122px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.topbar__actions .source-link,
.topbar__actions .source-link--button {
  min-height: 44px;
  padding: 10px 16px;
}

.scrape-toolbar {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(14, 27, 47, 0.88), rgba(9, 19, 34, 0.82)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.08), transparent 28%);
}

.scrape-toolbar__head h2 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.scrape-toolbar__head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
}

.scrape-toolbar__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.scrape-toolbar__item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(141, 225, 255, 0.1);
  background: rgba(8, 18, 32, 0.64);
}

.scrape-toolbar__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.scrape-toolbar__company {
  display: grid;
  gap: 7px;
}

.scrape-toolbar__company strong {
  font-size: 1.02rem;
}

.scrape-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.scrape-toolbar__status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.scrape-toolbar__status--success {
  color: #9ff0c8;
}

.scrape-toolbar__status--running {
  color: #8ee1ff;
}

.scrape-toolbar__status--error {
  color: #ffb0bc;
}

.scrape-toolbar__helper {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.scrape-toolbar__helper--success {
  color: #9ff0c8;
}

.scrape-toolbar__helper--error {
  color: #ffb0bc;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(10, 23, 42, 0.98), rgba(15, 30, 53, 0.92)),
    linear-gradient(180deg, rgba(18, 195, 255, 0.08), rgba(49, 231, 182, 0.05));
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 28px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  background: linear-gradient(180deg, rgba(18, 195, 255, 0.08), rgba(49, 231, 182, 0.02));
  transform: rotate(18deg);
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -48% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 195, 255, 0.28), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 225, 255, 0.22);
  background: rgba(9, 26, 43, 0.88);
  color: #b9fff1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 18px;
}

.hero-note {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(141, 225, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 25, 43, 0.88), rgba(8, 18, 33, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #ffffff;
}

.hero-note p {
  margin: 0;
  font-size: 0.96rem;
}

.preview-hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  align-content: center;
  min-height: 100%;
}

.preview-hero-copy h1 {
  max-width: 8ch;
}

.preview-hero-copy p {
  max-width: 34ch;
}

.hero-simple {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
  max-width: 8ch;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.eyebrow--compact {
  width: fit-content;
  padding: 7px 11px;
  font-size: 0.74rem;
}

.stats-grid,
.results-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(14, 27, 47, 0.84), rgba(9, 19, 34, 0.8));
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  text-align: center;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 18px;
  padding: 20px;
  align-self: start;
  background:
    linear-gradient(180deg, rgba(14, 27, 47, 0.88), rgba(9, 19, 34, 0.84)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.08), transparent 32%);
}

.filters h2,
.results-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.filters p,
.results-head p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.filters__clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 6px 0;
}

.filters__clear:disabled {
  opacity: 0.45;
  cursor: default;
}

.search-field {
  position: relative;
  margin-top: 22px;
}

.search-field input {
  width: 100%;
  padding: 14px 48px 14px 14px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.74);
  color: var(--text);
}

.search-field__icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: rgba(227, 236, 250, 0.6);
}

.search-field__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.range-field {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 225, 255, 0.1);
}

.range-field__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.range-field__head span {
  color: #e3ecfa;
  font-weight: 700;
}

.range-field__head strong {
  color: #ff8c54;
  font-size: 0.95rem;
}

.range-field__input {
  width: 100%;
  accent-color: #ff6b2c;
}

.filter-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 225, 255, 0.1);
}

.filter-group summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: #eef6ff;
}

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

.filter-group__body {
  padding-top: 8px;
 }

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.74);
  color: var(--text);
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(49, 231, 182, 0.12);
  color: #a7ffe9;
  font-size: 0.9rem;
  font-weight: 700;
}

.pill--warm {
  background: rgba(18, 195, 255, 0.14);
  color: #8ee1ff;
}

.results-panel {
  padding: 20px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.results-grid--companies {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capture-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.capture-card {
  overflow: hidden;
  padding: 18px;
}

.capture-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  background: rgba(6, 13, 24, 0.65);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.capture-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.capture-block {
  padding: 16px;
  border: 1px solid rgba(141, 225, 255, 0.1);
  border-radius: 18px;
  background: rgba(10, 22, 38, 0.7);
}

.capture-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #8ee1ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capture-meta {
  display: grid;
  gap: 12px;
}

.capture-key {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
}

.raw-panel {
  margin-top: 14px;
}

.raw-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.raw-panel pre {
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(4, 10, 20, 0.96);
  color: #e8f4ff;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.listing-card {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 43, 0.92), rgba(9, 19, 34, 0.86)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.12), transparent 35%);
}

.listing-media {
  position: relative;
  min-height: 220px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.16), rgba(8, 17, 30, 0));
}

.listing-media__image {
  aspect-ratio: 16 / 10;
}

.listing-media__placeholder {
  display: grid;
  align-content: end;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(141, 225, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.3), transparent 30%),
    linear-gradient(145deg, rgba(13, 32, 54, 0.96), rgba(7, 17, 31, 0.88));
}

.listing-media__placeholder span {
  color: #9ddff1;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.listing-media__placeholder strong {
  margin-top: 8px;
  font-size: 2rem;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}

.listing-media__badges {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(6, 14, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eff8ff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.listing-chip--source {
  background: rgba(8, 31, 49, 0.82);
  color: #8ee1ff;
}

.listing-chip--delta {
  position: absolute;
  right: 28px;
  bottom: 28px;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  margin-top: 4px;
}

.listing-kicker {
  margin: 0;
  color: #8ee1ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.listing-source {
  color: #8ee1ff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.listing-price {
  font-size: 1.9rem;
  line-height: 1;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}

.listing-price-block {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.listing-price-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.listing-seller-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(49, 231, 182, 0.12);
  color: #a7ffe9;
  font-size: 0.82rem;
  font-weight: 700;
}

.listing-title {
  margin: 10px 0 6px;
  font-size: 1.22rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.listing-headline {
  min-width: 0;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.listing-subtitle {
  margin: 0;
  color: var(--muted);
}

.listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 18px 0;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(141, 225, 255, 0.08);
  font-size: 0.86rem;
}

.listing-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  margin-top: 16px;
}

.listing-spec {
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 18, 32, 0.55);
  border: 1px solid rgba(141, 225, 255, 0.08);
}

.listing-spec span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.listing-spec strong {
  display: block;
  margin-top: 8px;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 225, 255, 0.1);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-item strong {
  display: block;
  margin-top: 6px;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding: 0 18px 18px;
}

.listing-footer--centered {
  justify-content: center;
}

.listing-card--compact .listing-media {
  min-height: 180px;
  padding: 12px;
}

.listing-card--compact .listing-media__image,
.listing-card--compact .listing-media__placeholder {
  aspect-ratio: 16 / 11;
}

.listing-card--compact .listing-top {
  display: grid;
  gap: 12px;
  padding: 0 14px;
}

.listing-card--compact .listing-title {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.listing-card--compact .listing-price-block {
  justify-items: start;
  gap: 8px;
}

.listing-card--compact .listing-price {
  font-size: 1.65rem;
}

.listing-card--compact .listing-price-row {
  justify-content: flex-start;
}

.listing-card--compact .listing-seller-tag {
  white-space: nowrap;
}

.listing-card--compact .listing-badges {
  margin: 14px 14px 0;
}

.listing-card--compact .listing-footer,
.listing-footer--compact {
  margin-top: 18px;
  padding: 0 14px 14px;
  justify-content: flex-start;
}

.listing-card--compact .listing-footer__actions,
.listing-footer__actions--compact {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

.listing-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.listing-footer__actions--centered {
  justify-content: center;
}

.price-delta {
  font-weight: 700;
}

.price-delta--down {
  color: var(--ok);
}

.price-delta--up {
  color: var(--danger);
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14d2ff, #0b8fd0);
  color: #04111e;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(18, 195, 255, 0.22);
  white-space: nowrap;
}

.listing-card--compact .source-link {
  padding: 10px 13px;
  font-size: 0.94rem;
}

.source-link--muted {
  background: rgba(49, 231, 182, 0.12);
  color: #a7ffe9;
  box-shadow: none;
}

.source-link--button {
  border: 0;
  cursor: pointer;
}

.empty-state {
  margin-top: 18px;
  padding: 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.86), rgba(9, 19, 34, 0.84));
}

.compare-hero__price {
  margin-top: 14px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.compare-hero__copy {
  display: grid;
  align-content: start;
}

.compare-hero__card {
  width: 100%;
}

.compare-hero__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(141, 225, 255, 0.14);
  background: rgba(8, 18, 32, 0.7);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.compare-hero__meta {
  margin-top: 8px;
  color: var(--muted);
}

.compare-table {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compare-row {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(141, 225, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(12, 24, 43, 0.88), rgba(9, 19, 34, 0.84));
}

.compare-row--target {
  border-color: rgba(49, 231, 182, 0.24);
  box-shadow: inset 0 0 0 1px rgba(49, 231, 182, 0.12);
}

.compare-row__main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.compare-row__company h3 {
  margin: 8px 0 4px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.compare-row__company p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.compare-row__price {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.compare-row__price strong {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.compare-row__price span {
  color: var(--muted);
  font-weight: 700;
}

.compare-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.compare-row__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(141, 225, 255, 0.08);
  font-size: 0.86rem;
}

.compare-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.page-shell--login {
  width: min(1280px, calc(100vw - 32px));
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  min-height: min(82vh, 860px);
  border: 1px solid rgba(141, 225, 255, 0.14);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(8, 16, 29, 0.82);
  box-shadow: var(--shadow);
}

.login-showcase {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(7, 16, 29, 0.92), rgba(7, 18, 31, 0.72)),
    radial-gradient(circle at top left, rgba(18, 195, 255, 0.22), transparent 24%);
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--login-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.96;
  transform: scale(1.04);
}

.login-showcase__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 100%;
  padding: 36px;
}

.login-showcase__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5, 11, 21, 0.18), rgba(4, 13, 23, 0.76) 48%, rgba(4, 11, 19, 0.9)),
    radial-gradient(circle at top left, rgba(18, 195, 255, 0.18), transparent 24%);
  z-index: -1;
}

.login-showcase__copy,
.login-showcase__stats,
.login-showcase__feature {
  max-width: 32rem;
}

.login-showcase__copy h1 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.login-showcase__copy p {
  margin: 18px 0 0;
  color: rgba(238, 246, 255, 0.78);
  line-height: 1.75;
  font-size: 1rem;
}

.login-showcase__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.login-showcase__stats span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 17, 31, 0.34);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.login-showcase__feature {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.42));
  backdrop-filter: blur(16px);
}

.login-showcase__feature p,
.login-showcase__feature span {
  margin: 0;
  color: rgba(232, 242, 255, 0.76);
}

.login-showcase__feature strong {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.login-showcase__feature b {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.login-showcase__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.88));
}

.login-showcase__rail-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 31, 0.42);
  backdrop-filter: blur(14px);
}

.login-showcase__rail-card strong {
  font-size: 1rem;
}

.login-showcase__rail-card span {
  color: rgba(232, 242, 255, 0.72);
  font-size: 0.92rem;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 246, 255, 0.96)),
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.14), transparent 26%);
  color: #071120;
}

.login-panel__frame {
  width: min(430px, 100%);
  display: grid;
  align-content: center;
  gap: 18px;
}

.login-panel__home {
  width: fit-content;
  color: #0f2a44;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-panel .eyebrow {
  color: #0e7daf;
  border-color: rgba(15, 132, 184, 0.18);
  background: rgba(18, 195, 255, 0.08);
}

.login-panel h2 {
  margin: 0;
  color: #071120;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.login-panel p {
  margin: 0;
  color: #556986;
  line-height: 1.75;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.login-form--stacked {
  align-content: start;
  gap: 14px;
}

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

.login-tabs .login-secondary {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-head strong {
  display: block;
  font-size: 1.1rem;
}

.admin-head p {
  margin-top: 8px;
  max-width: 52ch;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(141, 225, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(12, 24, 43, 0.9), rgba(9, 19, 34, 0.86));
}

.admin-card__eyebrow {
  color: #a7ffe9;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-card h2 {
  margin: 12px 0 0;
  font-size: 1.2rem;
}

.admin-card__status {
  margin-top: 10px;
  color: #9ff0c8;
  font-weight: 700;
}

.admin-card__meta {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--muted);
}

.admin-card__error {
  margin-top: 10px;
  color: #ffb0bc;
  font-size: 0.94rem;
  line-height: 1.55;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #17314c;
}

.login-field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(114, 138, 171, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #071120;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.login-field input::placeholder {
  color: #8ca0bc;
}

.login-field input:focus {
  outline: 2px solid rgba(18, 195, 255, 0.16);
  border-color: rgba(11, 143, 208, 0.42);
}

.login-submit,
.login-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 18px;
  font-weight: 800;
}

.login-submit {
  width: min(220px, 100%);
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #12c3ff, #0b8fd0);
  color: #04111e;
  box-shadow: 0 18px 32px rgba(18, 195, 255, 0.18);
  justify-self: center;
  margin-top: 24px;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-submit--link {
  width: min(220px, 100%);
}

.login-secondary {
  width: min(220px, 100%);
  border: 1px solid rgba(15, 42, 68, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #17314c;
  justify-self: center;
}

.login-secondary--button {
  cursor: pointer;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 127, 143, 0.12);
  color: #b42339;
  font-weight: 700;
}

.login-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(49, 231, 182, 0.12);
  color: #136b50;
  font-weight: 700;
}

.login-note {
  margin: 0;
  font-size: 0.9rem;
  color: #5f6f86;
}

.site-footer {
  display: grid;
  gap: 28px;
  margin-top: 52px;
  padding: 36px 0 12px;
  border-top: 1px solid rgba(141, 225, 255, 0.14);
}

.site-footer__main {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  align-items: start;
}

.site-footer__brand {
  display: grid;
  gap: 18px;
  max-width: 34ch;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #f3f7ff;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(141, 225, 255, 0.08);
}

.footer-block {
  display: grid;
  gap: 14px;
}

.footer-block__label {
  margin: 0;
  color: #c7d2e6;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(154, 171, 199, 0.9);
}

.footer-inline-link {
  color: #e3ecfa;
  font-weight: 700;
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-inline-link:hover {
  color: #8ee1ff;
}

.footer-inline-link--muted {
  color: #b9ffe8;
}

.info-hero h1 {
  max-width: 12ch;
}

.info-hero p {
  max-width: 54ch;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.info-card {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(18, 195, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(12, 24, 43, 0.9), rgba(9, 19, 34, 0.86));
}

.info-card h2 {
  margin: 10px 0 8px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.info-kicker {
  color: #8ee1ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .workspace,
  .results-grid,
  .stats-grid,
  .capture-columns,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topbar__brand-row {
    justify-content: space-between;
    gap: 12px;
  }

  .topbar__menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .topbar__menu-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
  }

  .topbar__menu-panel--open {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-footer {
    gap: 24px;
  }

  .results-grid--companies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-catalog__logo-wrap {
    min-height: 58px;
  }

  .scrape-toolbar__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .scrape-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .filters {
    position: static;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: 380px;
  }

  .login-panel {
    padding: 28px 22px 34px;
  }
}

@media (max-width: 760px) {
  .compare-hero .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compare-hero__card {
    margin-top: 6px;
  }

  .compare-hero h1 {
    max-width: none;
  }

  .page-shell--login {
    width: min(100vw - 20px, 1280px);
  }

  .login-shell {
    border-radius: 24px;
  }

  .login-showcase__visual {
    padding: 24px;
  }

  .login-showcase__copy h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .login-showcase__rail {
    grid-template-columns: 1fr;
  }

  .login-panel__frame {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding: 14px 0 28px;
  }

  .hero,
  .filters,
  .results-panel,
  .listing-card,
  .stat-card {
    border-radius: 20px;
  }

  .hero {
    padding: 22px;
  }

  .compare-hero__copy {
    gap: 4px;
  }

  .compare-hero__card {
    padding: 18px;
  }

  .inline-grid,
  .listing-meta,
  .listing-specs {
    grid-template-columns: 1fr;
  }

  .topbar__brand {
    min-width: 0;
  }

  .topbar-home {
    width: 100%;
    white-space: normal;
  }

  .topbar__brand-row {
    align-items: stretch;
  }

  .topbar-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid--companies {
    grid-template-columns: 1fr;
  }

  .results-head,
  .listing-top,
  .listing-footer,
  .compare-row__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-price-block {
    justify-items: flex-start;
  }

  .listing-chip--delta {
    right: auto;
    left: 28px;
    bottom: 28px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .source-link {
    width: 100%;
  }

  .scrape-toolbar__item {
    padding: 15px;
  }

  .listing-footer__actions,
  .compare-row__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .listing-footer__actions--compact {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .compare-row__price {
    justify-items: flex-start;
  }
}
