:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --bg-soft: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --surface-3: #e6e8ea;
  --line: #d7dbe0;
  --line-strong: #c5cbd3;
  --text: #091426;
  --muted: #4d5561;
  --muted-2: #707887;
  --primary: #006591;
  --primary-2: #091426;
  --primary-soft: rgba(0, 101, 145, 0.10);
  --primary-soft-2: rgba(0, 101, 145, 0.16);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.03);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --max: 1440px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button,
a,
input,
select {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

#app {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  width: min(var(--max), calc(100vw - 64px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__inner--landing {
  justify-content: space-between;
}

.topbar__inner--results {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary-2);
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__mark svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.brand__name {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topnav button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  color: var(--primary-2);
}

.topnav button:hover {
  color: var(--primary);
}

.topbar__signin,
.topbar__upgrade {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--primary-2);
  font-weight: 600;
}

.topbar__signin {
  color: var(--primary);
}

.topbar__signin:hover {
  background: rgba(0, 101, 145, 0.06);
}

.topbar__upgrade {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 101, 145, 0.16);
}

.topbar__upgrade:hover,
.search-bar__button:hover,
.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 101, 145, 0.18);
}

.topbar__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-search,
.mobile-search {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.topbar-search {
  width: min(100%, 620px);
  justify-self: center;
}

.mobile-search {
  width: 100%;
}

.topbar-search__icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex: 0 0 auto;
}

.topbar-search__icon svg,
.mobile-search__filter svg {
  width: 22px;
  height: 22px;
}

.topbar-search input,
.mobile-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
}

.topbar-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--muted-2);
}

.topbar-search__button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.mobile-search__filter {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--primary-2);
}

.topbar__mobile-search {
  display: none;
  border-top: 1px solid var(--line);
}

.main-shell {
  width: min(var(--max), calc(100vw - 64px));
  margin: 0 auto;
}

.main-shell--landing {
  padding: 56px 0 40px;
}

.main-shell--results {
  padding: 40px 0 48px;
}

.hero--landing {
  padding: 36px 0 24px;
}

.hero__inner--centered {
  display: grid;
  justify-items: center;
  gap: 30px;
  text-align: center;
}

.hero__copy--centered {
  max-width: 900px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero__subtitle {
  margin: 20px auto 0;
  max-width: 860px;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.search-card {
  width: min(100%, 760px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-card:hover {
  box-shadow: 0 16px 38px rgba(9, 20, 38, 0.08);
}

.search-card--landing {
  padding: 14px;
}

.search-form {
  display: grid;
  gap: 18px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.search-bar__icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: 0 0 auto;
}

.search-bar__icon svg {
  width: 24px;
  height: 24px;
}

.search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
}

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

.search-bar:focus-within {
  border-color: rgba(0, 101, 145, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 101, 145, 0.12);
}

.search-bar__button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

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

.chip-row__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--primary-2);
}

.chip {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

.chip:hover {
  border-color: rgba(0, 101, 145, 0.28);
  color: var(--primary);
  background: rgba(0, 101, 145, 0.06);
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.trust-pill:hover {
  border-color: rgba(0, 101, 145, 0.22);
  background: var(--surface-2);
}

.preview-section,
.stats-section {
  margin-top: 86px;
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head--results {
  align-items: center;
  margin-bottom: 16px;
}

.section-head__caption {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}

.section-link svg {
  width: 18px;
  height: 18px;
}

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

.preview-card {
  min-height: 360px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.preview-card:hover {
  box-shadow: 0 18px 42px rgba(9, 20, 38, 0.09);
}

.preview-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.preview-card__logo {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--primary);
  font-weight: 700;
}

.preview-card__tag {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 101, 145, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.preview-card h3 {
  margin: 28px 0 10px;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

.preview-card__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--primary-2);
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--primary);
}

.stat-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 0 20px;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

.footer__links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.footer__links button:hover {
  color: var(--primary);
}

.results-page {
  display: grid;
  gap: 30px;
}

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

.results-page__header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.results-page__header p {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.results-page__header p span {
  color: var(--primary);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.results-meta__pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
}

.export-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-2);
  font-weight: 500;
}

.export-button:hover {
  border-color: rgba(0, 101, 145, 0.28);
  background: rgba(0, 101, 145, 0.04);
  color: var(--primary);
}

.export-button svg {
  width: 18px;
  height: 18px;
}

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

.sidebar {
  position: sticky;
  top: 96px;
}

.filters-panel {
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.filters-panel__section {
  margin-bottom: 34px;
}

.filters-panel__section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--primary-2);
}

.filters-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-2);
}

.check-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.select-field,
.field input {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0 14px;
  color: var(--text);
}

.select-field:focus,
.field input:focus {
  outline: none;
  border-color: rgba(0, 101, 145, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 101, 145, 0.12);
}

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

.size-chip {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-2);
  font-weight: 500;
}

.size-chip:hover {
  border-color: rgba(0, 101, 145, 0.22);
  background: rgba(0, 101, 145, 0.04);
  color: var(--primary);
}

.size-chip.is-active {
  border-color: var(--primary);
  background: rgba(0, 101, 145, 0.12);
  color: var(--primary);
}

.advanced-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}

.advanced-content {
  display: none;
  gap: 14px;
  margin-top: 14px;
}

.advanced-content.is-open {
  display: grid;
}

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

.field span {
  color: var(--primary-2);
  font-weight: 500;
}

.clear-filters {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  text-align: left;
  font-size: 1rem;
}

.clear-filters:hover {
  text-decoration: underline;
}

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

.mobile-filter-bar {
  display: none;
  margin-bottom: 14px;
}

.mobile-filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-filter-button:hover {
  border-color: rgba(0, 101, 145, 0.28);
  color: var(--primary);
}

.mobile-filter-button svg {
  width: 18px;
  height: 18px;
}

.results-summary {
  margin: 0 0 20px;
  color: var(--muted);
}

.loading-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.loading-strip span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f6 0%, #dfe5eb 50%, #edf2f6 100%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.loading-strip span:nth-child(2) {
  width: 82%;
}

.loading-strip span:nth-child(3) {
  width: 64%;
}

@keyframes shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.results-alert {
  padding: 14px 16px;
  border: 1px solid rgba(186, 26, 26, 0.18);
  border-radius: 10px;
  background: rgba(186, 26, 26, 0.05);
  color: #a11d1d;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-2);
  font-size: 1.08rem;
}

.empty-state p {
  margin: 0;
  line-height: 1.55;
}

.empty-state--featured {
  text-align: left;
}

.featured-section {
  display: grid;
  gap: 20px;
}

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

.result-feature {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.result-feature:hover {
  box-shadow: 0 18px 42px rgba(9, 20, 38, 0.09);
}

.result-feature--featured {
  position: relative;
  overflow: hidden;
}

.result-feature--featured::after {
  content: "Premium";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 14px 26px;
  border-bottom-left-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.result-feature__logo {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.result-feature__badge {
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(0, 101, 145, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.result-feature h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.result-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.result-feature__desc {
  min-height: 60px;
}

.result-feature__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-feature__metrics span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.result-feature__metrics strong {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
}

.result-feature__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--primary-2);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary-2);
}

.icon-button:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.icon-button svg {
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
}

.table-card {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table-card:hover {
  box-shadow: 0 18px 42px rgba(9, 20, 38, 0.09);
}

.table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.results-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.results-table tbody td {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.results-table tbody tr:hover {
  background: rgba(0, 101, 145, 0.035);
}

.results-table a {
  color: var(--primary);
  font-weight: 500;
}

.results-table a:hover {
  text-decoration: underline;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-cell__logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  flex: 0 0 auto;
}

.company-cell strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-2);
}

.company-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.row-action {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 101, 145, 0.10);
  color: var(--primary);
  font-weight: 600;
}

.row-action:hover {
  background: rgba(0, 101, 145, 0.16);
}

.pagination {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--surface);
}

.pagination span {
  color: var(--primary-2);
}

.pagination__pages {
  display: flex;
  gap: 6px;
}

.pagination__pages button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-2);
}

.pagination__pages button:hover {
  border-color: rgba(0, 101, 145, 0.28);
  color: var(--primary);
}

.pagination__pages button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 70;
  width: min(92vw, 480px);
  padding: 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

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

.auth-modal__header h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.auth-modal__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.close-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-2);
}

.close-button:hover {
  border-color: rgba(0, 101, 145, 0.24);
  color: var(--primary);
}

.close-button svg {
  width: 20px;
  height: 20px;
  transform: rotate(270deg);
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-2);
}

.auth-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.auth-tabs button:hover {
  color: var(--primary-2);
}

.auth-tabs button.is-active {
  background: var(--surface);
  color: var(--primary-2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-error {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(186, 26, 26, 0.18);
  background: rgba(186, 26, 26, 0.05);
  color: #a11d1d;
}

.submit-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(9, 20, 38, 0.36);
}

.mobile-drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 65;
  width: min(86vw, 360px);
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.16);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.drawer-head h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  min-height: 70px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.bottom-nav button:hover {
  color: var(--primary);
}

.bottom-nav button span {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.bottom-nav button span svg {
  width: 24px;
  height: 24px;
}

.bottom-nav button.is-active {
  color: var(--primary);
}

@media (max-width: 1180px) {
  .preview-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }

  .filters-panel {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    width: min(var(--max), calc(100vw - 32px));
  }

  .main-shell {
    width: min(var(--max), calc(100vw - 32px));
  }

  .topnav,
  .topbar__actions {
    display: none;
  }

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

  .topbar__mobile-search {
    display: block;
    padding: 12px 16px 14px;
  }

  .topbar-search {
    display: none;
  }

  .mobile-filter-bar {
    display: block;
  }

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

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

  .bottom-nav {
    display: flex;
  }

  .main-shell--results,
  .main-shell--landing {
    padding-bottom: 100px;
  }
}

@media (max-width: 720px) {
  .results-page__header {
    flex-direction: column;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .search-bar__button {
    width: 100%;
  }

  .chip-row {
    justify-content: flex-start;
  }

  .chip-row__label {
    width: 100%;
  }

  .preview-card,
  .result-feature {
    padding: 18px;
  }

  .preview-card h3,
  .result-feature h3 {
    font-size: 1.55rem;
  }

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

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