:root {
  color-scheme: dark;
  --page: #07111f;
  --surface: #0d1728;
  --surface-soft: #111d31;
  --surface-blue: #102744;
  --ink: #dce6f4;
  --ink-strong: #f7fbff;
  --muted: #9aa9be;
  --muted-2: #718198;
  --border: #22344d;
  --border-strong: #314866;
  --brand: #72a8ff;
  --brand-strong: #a8c6ff;
  --brand-action: #2f6df6;
  --brand-action-hover: #2558ca;
  --brand-soft: #17325a;
  --success: #49d6a3;
  --success-bg: #0d2b25;
  --warning: #f2c45d;
  --warning-bg: #302510;
  --danger: #ff8b93;
  --danger-bg: #34171a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 26px 74px rgba(0, 0, 0, 0.4);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(47, 109, 246, 0.2), transparent 34rem),
    linear-gradient(180deg, #091426 0, var(--page) 34rem);
  font-family:
    "Segoe UI",
    "Noto Sans Hebrew",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #020817;
  border-radius: 0 0 10px 10px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 76px;
  padding-inline: max(20px, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(5, 13, 26, 0.95);
  border-bottom: 1px solid rgba(72, 96, 130, 0.46);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: auto;
  height: 48px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  direction: ltr;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.language-button,
.text-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
}

.language-button:hover,
.text-button:hover {
  color: var(--ink-strong);
  background: #17243a;
}

.language-button.is-active {
  color: var(--ink-strong);
  background: #18263c;
  box-shadow: var(--shadow-sm);
}

main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 36px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  color: var(--ink-strong);
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 14px;
  color: var(--ink-strong);
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-service-note {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 9px 12px;
  color: var(--muted-2);
  background: rgba(15, 28, 48, 0.72);
  border: 1px solid rgba(55, 78, 108, 0.6);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.search-card {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-card > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-strong);
  font-weight: 850;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--ink-strong);
  background: #0a1424;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: 0;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input::placeholder {
  color: #718198;
}

input:hover {
  border-color: #49617f;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(114, 168, 255, 0.18);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 850;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.primary-button {
  color: #fff;
  background: var(--brand-action);
  box-shadow: 0 9px 24px rgba(47, 109, 246, 0.28);
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled) {
  background: var(--brand-action-hover);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.52;
  box-shadow: none;
}

.primary-button.is-searching {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 0.86;
}

.primary-button.is-searching::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}

.secondary-button {
  color: var(--brand);
  background: #101c2f;
  border-color: #355071;
}

.secondary-button:hover:not(:disabled),
.secondary-button:focus-visible:not(:disabled) {
  background: #152b49;
  border-color: #4a6d9b;
}

.secondary-button.disabled {
  color: var(--muted-2);
  background: var(--surface-soft);
  border-color: var(--border);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(114, 168, 255, 0.42);
  outline-offset: 2px;
}

.search-meta {
  min-height: 28px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.detected-type {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 800;
}

.notice {
  max-width: 840px;
  margin: 14px auto 0;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface-blue);
  border: 1px solid #31547f;
  border-radius: var(--radius);
}

.notice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-strong);
}

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

.notice.success {
  background: var(--success-bg);
  border-color: #28614f;
}

.notice.warning {
  background: var(--warning-bg);
  border-color: #6d5321;
}

.notice.error {
  background: var(--danger-bg);
  border-color: #71343a;
}

.notice.subtle {
  max-width: none;
  margin: 0 0 18px;
}

.workflow {
  padding: 18px 0 42px;
}

.progress-track {
  position: sticky;
  top: 76px;
  z-index: 70;
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  background: rgba(9, 19, 34, 0.92);
  border: 1px solid rgba(55, 78, 108, 0.72);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.progress-step {
  min-height: 44px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 750;
}

.progress-step b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #111d31;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.75rem;
}

.progress-step.is-active {
  color: var(--brand-strong);
  background: #14233a;
  box-shadow: var(--shadow-sm);
}

.progress-step.is-active b {
  color: #fff;
  background: var(--brand-action);
  border-color: var(--brand-action);
}

.progress-step.is-complete {
  color: var(--success);
}

.progress-step.is-complete b {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

.panel {
  max-width: 920px;
  margin: 20px auto;
  padding: 28px;
  scroll-margin-top: 148px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.panel-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading p {
  margin-bottom: 0;
}

.panel-copy {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.pill,
.success-badge,
.classification-badge,
.order-status {
  min-height: 30px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.pill {
  color: var(--brand);
  background: var(--surface-blue);
  border: 1px solid #31547f;
}

.success-badge {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #28614f;
}

.classification-badge {
  color: var(--brand-strong);
  background: var(--surface-blue);
  border: 1px solid #31547f;
}

.classification-badge[data-classification="EXCELLENT_VALUE"],
.classification-badge[data-classification="COMPETITIVE"] {
  color: var(--success);
  background: var(--success-bg);
  border-color: #28614f;
}

.classification-badge[data-classification="PENDING_VERIFICATION"] {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #6d5321;
}

.classification-badge[data-classification="RESTRICTED"] {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #71343a;
}

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

.result-card,
.search-skeleton-card {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-skeleton-card {
  overflow: hidden;
}

.skeleton-block {
  position: relative;
  display: block;
  overflow: hidden;
  background: #18263a;
  border-radius: 9px;
}

.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 198, 255, 0.14),
    transparent
  );
  animation: search-shimmer 1.35s ease-in-out infinite;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.skeleton-copy {
  width: 100%;
  padding-top: 4px;
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line-wide {
  width: min(92%, 280px);
}

.skeleton-line-short {
  width: min(46%, 140px);
}

.skeleton-price {
  width: 100%;
  height: 62px;
  border-radius: 12px;
}

.skeleton-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skeleton-chip {
  width: 92px;
  height: 27px;
}

.skeleton-button {
  width: 100%;
  height: 48px;
  margin-top: auto;
  border-radius: 12px;
}

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

@keyframes search-shimmer {
  to {
    transform: translateX(110%);
  }
}

.result-card-top {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.result-card-top > div {
  min-width: 0;
}

.result-card strong,
.product-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.45;
}

.result-card p,
.product-copy p {
  margin: 4px 0 0;
  color: var(--muted);
}

.result-price {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 12px;
  background: #0a1424;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.result-price span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.result-price strong {
  grid-row: span 2;
  color: var(--brand-strong);
  font-size: 1.35rem;
  line-height: 1;
}

.result-price small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.result-card .secondary-button {
  margin-top: auto;
}

.product-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: linear-gradient(145deg, #17345a, #102641);
  border: 1px solid #31547f;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.product-avatar.small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 0.8rem;
}

.metadata-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.metadata-row span {
  padding: 5px 8px;
  background: #0d1728;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-summary {
  margin-bottom: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-copy {
  min-width: 0;
}

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

.form-grid label,
.auth-card label,
.inline-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) 1.15fr;
  gap: 18px;
}

.quote-total {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 85% 0, rgba(255, 255, 255, 0.2), transparent 11rem),
    linear-gradient(145deg, #173ea8, #1d4ed8);
  border-radius: 20px;
  color: #fff;
}

.quote-total span {
  font-size: 0.9rem;
  font-weight: 750;
  opacity: 0.9;
}

.quote-total strong {
  margin: 6px 0 3px;
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.quote-total small {
  opacity: 0.76;
}

.quote-facts {
  margin: 0;
  display: grid;
  gap: 9px;
}

.quote-facts div {
  padding: 15px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.quote-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quote-facts dd {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-weight: 850;
}

.quote-import-status {
  display: grid;
  gap: 5px;
}

.quote-note {
  display: block;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.value-summary {
  margin-top: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-blue);
  border: 1px solid #31547f;
  border-radius: 14px;
}

.value-summary > div {
  display: grid;
  gap: 4px;
}

.value-summary strong {
  color: var(--ink-strong);
  font-size: 1.08rem;
}

.value-summary small {
  color: var(--muted);
  line-height: 1.5;
}

.comparison-card {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--success-bg);
  border: 1px solid #28614f;
  border-radius: var(--radius);
}

.comparison-card > div {
  min-width: 0;
}

.comparison-kicker,
.comparison-price span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.comparison-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-strong);
}

.comparison-price {
  flex: 0 0 auto;
  text-align: end;
}

.comparison-price strong {
  color: var(--success);
  font-size: 1.28rem;
}

.comparison-price small {
  display: block;
  margin-top: 3px;
  color: var(--success);
  font-weight: 750;
}

.cost-details {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cost-details summary {
  padding: 14px 2px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

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

.cost-grid div {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border-bottom: 1px dashed #263a55;
}

.cost-grid strong {
  color: var(--ink);
}

.error-list,
.exception-box {
  margin: 16px 0;
  padding: 14px 16px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #71343a;
  border-radius: var(--radius);
}

.error-list ul {
  margin-bottom: 0;
}

.error-list[data-kind="activation"],
.error-list[data-kind="warning"] {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #6d5321;
}

.error-list[data-kind="activation"] p,
.error-list[data-kind="warning"] p {
  margin: 6px 0 0;
  color: var(--ink);
}

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

.auth-card,
.consent-card,
.payment-card {
  padding: 20px;
  display: grid;
  gap: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth-card h3,
.consent-card h3,
.payment-card h3 {
  margin-bottom: 2px;
}

.signed-in-summary {
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--success-bg);
  border: 1px solid #28614f;
  border-radius: var(--radius);
}

.signed-in-summary strong {
  color: var(--success);
}

.legal-document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legal-document-links a {
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  line-height: 1.5;
}

.checkbox-row input {
  width: 19px;
  min-height: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.checkout-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.payment-card {
  margin-top: 18px;
  background: var(--surface);
}

#payment-element {
  min-height: 80px;
}

.muted-text {
  color: var(--muted);
  font-size: 0.84rem;
}

.order-list,
.notification-list {
  display: grid;
  gap: 12px;
}

.order-card {
  padding: 18px;
  display: grid;
  gap: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.order-card-main,
.order-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-card-main > div {
  min-width: 0;
}

.order-card-main strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
}

.order-card-details {
  color: var(--muted);
  font-size: 0.86rem;
}

.order-status {
  color: var(--brand-strong);
  background: var(--surface-blue);
  border: 1px solid #31547f;
}

.timeline-status {
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface-blue);
  border: 1px solid #31547f;
  border-radius: var(--radius);
}

.timeline-status span {
  color: var(--muted);
}

.timeline-status strong {
  color: var(--brand-strong);
  font-size: 1.05rem;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  min-height: 76px;
  padding-inline-start: 34px;
  display: flex;
  gap: 12px;
}

.timeline-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  top: 22px;
  bottom: -6px;
  width: 2px;
  background: #29415f;
}

.timeline-dot {
  position: absolute;
  inset-inline-start: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--brand);
  border: 4px solid #173a66;
  border-radius: 50%;
}

.timeline-list p,
.timeline-list small {
  margin: 2px 0 0;
  color: var(--muted);
}

.timeline-list small {
  display: block;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.return-history {
  margin: 12px 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-form {
  margin-top: 22px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--border);
}

.notification-item {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-blue);
  border: 1px solid #31547f;
  border-radius: 13px;
}

.notification-item.is-read {
  opacity: 0.67;
  background: var(--surface-soft);
  border-color: var(--border);
}

.notification-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-state strong {
  color: var(--ink-strong);
}

.empty-state p {
  margin-bottom: 0;
}

.empty-state.compact {
  padding: 18px;
}

.trust-grid {
  margin: 26px 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-grid article {
  padding: 20px;
  background: rgba(13, 23, 40, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-strong);
}

.trust-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

[hidden] {
  display: none !important;
}

html[dir="ltr"] .search-card,
html[dir="ltr"] .panel {
  text-align: left;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand img {
    height: 41px;
  }

  .header-actions {
    gap: 4px;
  }

  .text-button {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 50px;
  }

  .progress-track {
    top: 68px;
  }

  .result-grid,
  .auth-grid,
  .quote-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  main,
  footer {
    width: min(100% - 22px, var(--max-width));
  }

  .site-header {
    min-height: 62px;
    padding-inline: 12px;
    gap: 8px;
  }

  .brand img {
    height: 36px;
  }

  .header-actions {
    gap: 2px;
  }

  .text-button {
    min-height: 34px;
    padding-inline: 7px;
    font-size: 0.75rem;
  }

  .language-button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .hero {
    padding: 30px 0 20px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.75rem);
    line-height: 1.04;
  }

  .hero-subtitle {
    max-width: 94%;
    margin-bottom: 20px;
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .search-card {
    padding: 16px;
    border-radius: 18px;
  }

  .search-row,
  .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .search-row .primary-button,
  .form-actions .primary-button,
  .inline-form .secondary-button {
    width: 100%;
  }

  .search-meta {
    display: grid;
    gap: 5px;
  }

  .detected-type {
    justify-self: start;
  }

  .progress-track {
    top: 62px;
    margin-inline: -2px;
    padding: 5px;
    gap: 3px;
    border-radius: 13px;
  }

  .progress-step {
    min-height: 38px;
    padding: 5px 3px;
    gap: 4px;
    flex-direction: column;
    font-size: 0.66rem;
  }

  .progress-step b {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  .panel {
    margin: 14px 0;
    padding: 17px;
    border-radius: 18px;
    scroll-margin-top: 126px;
  }

  .panel-heading {
    margin-bottom: 16px;
    gap: 10px;
  }

  .panel-heading .eyebrow {
    margin-bottom: 5px;
  }

  h2 {
    font-size: 1.45rem;
  }

  .product-summary {
    align-items: flex-start;
  }

  .product-avatar {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .form-grid {
    gap: 12px;
  }

  .quote-total {
    padding: 20px;
  }

  .quote-total strong {
    font-size: 2.55rem;
  }

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

  .value-summary,
  .comparison-card,
  .checkout-actions,
  .order-card-main,
  .order-card-details,
  .signed-in-summary,
  .timeline-status,
  .notification-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-price {
    width: 100%;
    text-align: start;
  }

  .checkout-actions .primary-button,
  .order-card .secondary-button {
    width: 100%;
  }

  .timeline-list small {
    font-size: 0.7rem;
  }

  footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .site-header {
    min-height: 94px;
    padding: 7px 10px 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }

  .brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand img {
    max-width: 100%;
    height: 28px;
  }

  .header-actions {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 1px;
  }

  .text-button {
    padding-inline: 5px;
    font-size: 0.69rem;
  }

  .language-button {
    padding-inline: 5px;
    font-size: 0.69rem;
  }

  .progress-track {
    top: 94px;
  }

  .panel {
    scroll-margin-top: 158px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* Product catalog and detail experience */
.rich-result-card .result-card-top {
  align-items: center;
}

.result-product-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.result-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-detail-host {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.product-gallery,
.product-gallery-empty {
  position: sticky;
  top: 92px;
  min-width: 0;
}

.product-main-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.product-thumbnails {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.product-thumbnail {
  aspect-ratio: 1 / 1;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.product-thumbnail.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-copy {
  min-width: 0;
}

.product-detail-name {
  margin: 4px 0 12px;
  color: var(--ink-strong);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.product-detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.product-detail-section h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-description {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
}

.variant-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.variant-button {
  min-width: 112px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  color: var(--ink);
  text-align: start;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.variant-button small {
  color: var(--muted);
}

.variant-button.is-active {
  border-color: var(--brand);
  background: var(--surface-blue);
  box-shadow: 0 0 0 1px var(--brand);
}

.seller-list {
  display: grid;
  gap: 9px;
}

.seller-option {
  width: 100%;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  text-align: start;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.seller-option span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.seller-option small {
  color: var(--muted);
}

.seller-option.is-active {
  border-color: var(--brand);
  background: var(--surface-blue);
  box-shadow: 0 0 0 1px var(--brand);
}

.seller-price {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 1.12rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-gallery,
  .product-gallery-empty {
    position: static;
  }

  .product-main-image,
  .product-gallery-empty {
    max-height: 440px;
  }

  .product-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .seller-option {
    align-items: flex-start;
  }
}


/* Delivered-price calculation feedback */
.quote-loading-panel {
  overflow: hidden;
}

.quote-loading-shell {
  min-height: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.quote-loading-spinner {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(114, 168, 255, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: quote-spin 0.85s linear infinite;
}

.quote-loading-copy {
  min-width: 0;
}

.quote-loading-copy h2 {
  margin: 4px 0 8px;
}

.quote-loading-track {
  position: relative;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  background: #122039;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.quote-loading-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: quote-progress 1.35s ease-in-out infinite;
}

.quote-loading-tasks {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quote-loading-tasks span {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.primary-button.is-calculating::before,
.secondary-button.is-calculating::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: quote-spin 0.8s linear infinite;
}

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

@keyframes quote-progress {
  from {
    inset-inline-start: -36%;
  }
  to {
    inset-inline-start: 102%;
  }
}

@media (max-width: 560px) {
  .quote-loading-shell {
    min-height: 190px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quote-loading-spinner {
    width: 46px;
    height: 46px;
  }
}


/* Storefront value proposition */
.benefits-section {
  margin: 10px 0 30px;
  padding: 24px;
  background: rgba(9, 18, 33, 0.78);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.benefits-heading {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.benefits-heading h2 {
  margin-bottom: 10px;
}

.benefits-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.benefit-card {
  min-width: 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(19, 34, 57, 0.96), rgba(12, 23, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: 16px;
}

.benefit-card h3 {
  margin: 12px 0 7px;
  font-size: 0.98rem;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #173ea8);
  border: 1px solid #4e7ee8;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

/* Marketplace-inspired search results */
.result-grid {
  grid-template-columns: 1fr;
}

.marketplace-result-card {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: #0b1526;
}

.marketplace-product-image {
  min-height: 220px;
  padding: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border-inline-end: 1px solid var(--border);
}

.marketplace-product-image img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
}

.marketplace-product-image.empty {
  background: var(--surface-soft);
}

.marketplace-product-body {
  min-width: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marketplace-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.marketplace-source-row > span {
  color: var(--brand-strong);
  font-weight: 850;
}

.marketplace-product-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  line-height: 1.35;
}

.marketplace-buy-row {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.marketplace-price {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.marketplace-price small,
.marketplace-price span {
  color: var(--muted);
  font-size: 0.75rem;
}

.marketplace-price strong {
  color: var(--ink-strong);
  font-size: 1.75rem;
  line-height: 1.05;
}

.compact-button {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}

.retailer-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 0.79rem;
}

.rating-value {
  color: var(--ink-strong);
  font-weight: 850;
}

.rating-stars {
  position: relative;
  background: linear-gradient(
    90deg,
    #f59e0b var(--rating-pct, 0%),
    #46556c var(--rating-pct, 0%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 0.03em;
}

.rating-count {
  color: var(--brand-strong);
}

.retailer-rating small {
  color: var(--muted-2);
}

.result-description {
  -webkit-line-clamp: 2;
}

.product-source-line {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-source-line strong {
  color: var(--brand-strong);
}

.source-note {
  color: var(--muted-2);
  font-size: 0.73rem;
  line-height: 1.45;
}

.product-info-source {
  display: block;
  margin-top: 10px;
}

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

.product-spec-grid div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-spec-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-spec-grid dd {
  margin: 3px 0 0;
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .benefits-section {
    margin: 6px 0 18px;
    padding: 16px;
    border-radius: 18px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .benefit-card {
    padding: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }

  .benefit-card h3 {
    margin: 2px 0 5px;
  }

  .benefit-card p {
    grid-column: 2;
  }

  .marketplace-result-card {
    grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  }

  .marketplace-product-image {
    min-height: 190px;
    padding: 10px;
  }

  .marketplace-product-image img {
    max-height: 190px;
  }

  .marketplace-product-body {
    padding: 13px 12px;
    gap: 7px;
  }

  .marketplace-source-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .marketplace-product-title {
    font-size: 0.97rem;
  }

  .result-description {
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
  }

  .marketplace-buy-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .marketplace-price strong {
    font-size: 1.45rem;
  }

  .compact-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .marketplace-result-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .marketplace-product-image {
    min-height: 170px;
    padding: 8px;
  }

  .marketplace-product-image img {
    max-height: 170px;
  }

  .marketplace-product-body {
    padding: 11px 10px;
  }

  .marketplace-product-title {
    font-size: 0.91rem;
  }

  .retailer-rating {
    font-size: 0.72rem;
    gap: 3px;
  }

  .metadata-row span {
    padding: 4px 6px;
    font-size: 0.68rem;
  }
}


.source-product-link {
  margin-inline-start: auto;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.source-product-link:hover,
.source-product-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .product-source-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .source-product-link {
    width: 100%;
    margin-inline-start: 0;
  }
}
