:root {
  --buyout-bg: #0f1115;
  --buyout-card: #171a21;
  --buyout-border: rgba(255,255,255,.08);
  --buyout-text: #f2f4f8;
  --buyout-muted: #aab3c5;
  --buyout-accent: #4c8dff;
  --buyout-accent-2: #7ec8ff;
  --buyout-success: #1f9d63;
  --buyout-warning: #d28c14;
  --buyout-error: #cf4f4f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body,
.buyout-body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0f1115 0%, #121621 100%);
  color: var(--buyout-text);
}

.buyout-body--embedded {
  min-height: 100vh;
}

.buyout-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.buyout-page--embedded {
  max-width: none;
  min-height: 100vh;
  padding: 20px 20px 28px;
}

.buyout-hero {
  margin-bottom: 20px;
}
.buyout-hero__badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(76, 141, 255, .14);
  color: var(--buyout-accent-2);
  font-size: 12px;
  margin-bottom: 10px;
}
.buyout-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}
.buyout-hero p {
  margin: 0;
  color: var(--buyout-muted);
  font-size: 16px;
}

.buyout-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 20px;
}
.buyout-progress__bar {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, var(--buyout-accent), var(--buyout-accent-2));
  transition: width .25s ease;
}

.buyout-card {
  background: var(--buyout-card);
  border: 1px solid var(--buyout-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.buyout-step { display: none; }
.buyout-step.is-active { display: block; }
.buyout-step h2 {
  margin-top: 0;
  font-size: 24px;
}

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

.buyout-choice,
.buyout-button,
.buyout-upload {
  border: 1px solid var(--buyout-border);
  background: rgba(255,255,255,.03);
  color: var(--buyout-text);
  border-radius: 16px;
}

.buyout-choice {
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.buyout-choice:hover,
.buyout-button:hover,
.buyout-upload:hover {
  border-color: rgba(126, 200, 255, .35);
}

.buyout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.buyout-field { display: block; }
.buyout-field--wide { grid-column: 1 / -1; }
.buyout-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--buyout-muted);
  font-size: 14px;
}
.buyout-field input,
.buyout-field select,
.buyout-field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--buyout-border);
  border-radius: 14px;
  color: var(--buyout-text);
}

.buyout-note {
  color: var(--buyout-muted);
}

.buyout-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  cursor: pointer;
  margin-bottom: 14px;
}
.buyout-upload input { display: none; }
.buyout-photo-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.buyout-photo-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--buyout-muted);
  font-size: 13px;
}

.buyout-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}
.buyout-button {
  padding: 13px 18px;
  cursor: pointer;
  min-width: 160px;
  font-weight: 600;
}
.buyout-button--ghost {
  background: transparent;
}
.buyout-button:not(.buyout-button--ghost) {
  background: linear-gradient(90deg, var(--buyout-accent), var(--buyout-accent-2));
  color: #081120;
  border: 0;
}

.buyout-result-card,
.buyout-success-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--buyout-border);
}
.buyout-result-card__price {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
}
.buyout-result-card__mode {
  color: var(--buyout-accent-2);
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}
.buyout-breakdown {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.buyout-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

#buyout-alerts {
  margin-top: 16px;
}
.buyout-alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}
.buyout-alert--error {
  background: rgba(207,79,79,.12);
  border-color: rgba(207,79,79,.32);
}
.buyout-alert--warning {
  background: rgba(210,140,20,.12);
  border-color: rgba(210,140,20,.32);
}
.buyout-alert--success {
  background: rgba(31,157,99,.12);
  border-color: rgba(31,157,99,.32);
}

@media (max-width: 768px) {
  .buyout-page {
    padding: 16px 12px 42px;
  }
  .buyout-hero h1 {
    font-size: 28px;
  }
  .buyout-grid,
  .buyout-field-grid {
    grid-template-columns: 1fr;
  }
  .buyout-actions {
    flex-direction: column;
  }
  .buyout-button {
    width: 100%;
  }
}


.buyout-body--embedded {
  --buyout-bg: #0b0d12;
  --buyout-card: #11141b;
  --buyout-border: rgba(255,255,255,.10);
  --buyout-text: #f4f7fb;
  --buyout-muted: #9ca3af;
  --buyout-accent: #f59e0b;
  --buyout-accent-2: #fb7185;
  background: #0b0d12;
}

.buyout-body--embedded,
.buyout-body--embedded .buyout-body,
.buyout-body--embedded .buyout-page--embedded {
  color: var(--buyout-text);
}

.buyout-body--embedded .buyout-page--embedded {
  min-height: 100vh;
  padding: 16px 16px 20px;
}

.buyout-body--embedded .buyout-hero {
  margin-bottom: 16px;
}

.buyout-body--embedded .buyout-hero__badge {
  background: rgba(245,158,11,.10);
  color: #fdba74;
  border: 1px solid rgba(245,158,11,.24);
  font-weight: 600;
}

.buyout-body--embedded .buyout-hero h1 {
  font-size: 28px;
  line-height: 1.08;
  color: #f8fafc;
}

.buyout-body--embedded .buyout-hero p,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-breakdown li {
  color: var(--buyout-muted);
}

.buyout-body--embedded .buyout-progress {
  height: 7px;
  background: rgba(255,255,255,.08);
  margin-bottom: 16px;
}

.buyout-body--embedded .buyout-progress__bar {
  background: linear-gradient(135deg, var(--buyout-accent) 0%, var(--buyout-accent-2) 100%);
}

.buyout-body--embedded .buyout-card {
  background: var(--buyout-card);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  border-radius: 24px;
  padding: 20px;
}

.buyout-body--embedded .buyout-choice,
.buyout-body--embedded .buyout-button,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-result-card,
.buyout-body--embedded .buyout-success-card {
  border-color: rgba(255,255,255,.10);
  background: #151922;
  color: #f4f7fb;
}

.buyout-body--embedded .buyout-choice:hover,
.buyout-body--embedded .buyout-button:hover,
.buyout-body--embedded .buyout-upload:hover {
  border-color: rgba(251,146,60,.48);
}

.buyout-body--embedded .buyout-step > * {
  position: relative;
  z-index: 1;
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  background: #0f131b;
  border-color: rgba(255,255,255,.10);
  color: #f4f7fb;
}

.buyout-body--embedded .buyout-button--ghost {
  background: #11141b;
  color: #f4f7fb;
}

.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  background: #09090b;
  color: #ffffff;
}

.buyout-body--embedded .buyout-button:not(.buyout-button--ghost):hover {
  background: linear-gradient(135deg, var(--buyout-accent) 0%, var(--buyout-accent-2) 100%);
  color: #ffffff;
}

.buyout-body--embedded .buyout-photo-chip {
  background: rgba(245,158,11,.12);
  color: #fdba74;
}

.buyout-body--embedded .buyout-result-card__mode {
  color: #fdba74;
}

.buyout-body--embedded .buyout-breakdown li {
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 780px) {
  .buyout-body--embedded .buyout-page--embedded {
    padding: 14px 14px 18px;
  }

  .buyout-body--embedded .buyout-hero h1 {
    font-size: 24px;
  }

  .buyout-body--embedded .buyout-card {
    border-radius: 22px;
    padding: 16px;
  }
}

.buyout-choice.is-active {
  border-color: rgba(126, 200, 255, .48);
  background: rgba(255,255,255,.07);
}

.buyout-inline-note,
.buyout-result-placeholder,
.buyout-success-placeholder {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--buyout-border);
  background: rgba(255,255,255,.03);
  color: var(--buyout-muted);
  font-size: 14px;
  line-height: 1.6;
}

.buyout-actions--single {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.buyout-body--embedded .buyout-page--embedded {
  min-height: auto;
  padding: 0;
}

.buyout-body--embedded .buyout-card {
  border-radius: 22px;
  padding: 18px;
  box-shadow: none;
}

.buyout-body--embedded .buyout-step {
  display: block;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.buyout-body--embedded .buyout-step:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.buyout-body--embedded .buyout-step h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

.buyout-body--embedded .buyout-field--advanced {
  display: none;
}

.buyout-body--embedded .buyout-field--model-primary {
  grid-column: auto;
}

.buyout-body--embedded .buyout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyout-body--embedded .buyout-choice {
  background: #11141b;
}

.buyout-body--embedded .buyout-choice.is-active {
  background: rgba(245,158,11,.12);
  border-color: rgba(251,146,60,.48);
  color: #fdba74;
}

.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-success-placeholder {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.10);
  color: #9ca3af;
}

@media (max-width: 900px) {
  .buyout-body--embedded .buyout-grid {
    grid-template-columns: 1fr;
  }
}


.buyout-actions[hidden] { display: none !important; }
.buyout-actions.is-visible { display: flex; }

.buyout-body--embedded .buyout-alert--success {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.24);
  color: #d1fae5;
}
.buyout-body--embedded .buyout-alert--error {
  background: rgba(244,63,94,.10);
  border-color: rgba(244,63,94,.22);
  color: #fecdd3;
}


.buyout-body--embedded .buyout-card {
  padding: 14px;
}

.buyout-body--embedded .buyout-step {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.buyout-body--embedded .buyout-step h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.15;
}

.buyout-body--embedded .buyout-grid,
.buyout-body--embedded .buyout-field-grid {
  gap: 10px;
}

.buyout-body--embedded .buyout-choice {
  padding: 12px 14px;
  border-radius: 14px;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-result-card__mode,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-success-placeholder {
  font-size: 13px;
  line-height: 1.45;
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  padding: 11px 12px;
  border-radius: 12px;
}

.buyout-body--embedded #buyout-questions .buyout-field + .buyout-field {
  margin-top: 10px;
}

.buyout-body--embedded .buyout-upload {
  padding: 11px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
}

.buyout-body--embedded .buyout-photo-preview {
  gap: 6px;
  margin-bottom: 10px;
}

.buyout-body--embedded .buyout-photo-chip {
  padding: 6px 9px;
  font-size: 12px;
}

.buyout-body--embedded .buyout-actions {
  margin-top: 12px;
  gap: 8px;
}

.buyout-body--embedded .buyout-button {
  min-width: 0;
  padding: 11px 14px;
  border-radius: 14px;
}

.buyout-body--embedded .buyout-result-card,
.buyout-body--embedded .buyout-success-card {
  padding: 14px;
  border-radius: 16px;
}

.buyout-body--embedded .buyout-result-card__price {
  font-size: 28px;
  margin-bottom: 6px;
}

.buyout-body--embedded .buyout-breakdown {
  margin-top: 10px;
}

.buyout-body--embedded .buyout-breakdown li {
  padding: 6px 0;
}

@media (min-width: 1024px) {
  .buyout-body--embedded .buyout-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    grid-template-areas:
      "category category"
      "device questions"
      "photos result";
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
  }

  .buyout-body--embedded .buyout-step {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .buyout-body--embedded .buyout-step[data-step="category"] { grid-area: category; }
  .buyout-body--embedded .buyout-step[data-step="device"] { grid-area: device; }
  .buyout-body--embedded .buyout-step[data-step="questionnaire"] { grid-area: questions; }
  .buyout-body--embedded .buyout-step[data-step="photos"] { grid-area: photos; }
  .buyout-body--embedded .buyout-step[data-step="result"] { grid-area: result; }

  .buyout-body--embedded .buyout-step[data-step="category"] .buyout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .buyout-body--embedded .buyout-card {
    display: block;
  }

  .buyout-body--embedded .buyout-embedded-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: 16px;
    align-items: start;
  }

  .buyout-body--embedded .buyout-embedded-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .buyout-body--embedded .buyout-embedded-column .buyout-step {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .buyout-body--embedded .buyout-step[data-step="photos"] {
    margin-top: -2px;
  }
}


/* Phase115 visual polish: main-site aligned embedded buyout */
.buyout-body--embedded {
  --buyout-card: #0a0c11;
  --buyout-border: rgba(255,255,255,.09);
  --buyout-text: #f8fafc;
  --buyout-muted: #94a3b8;
  --buyout-accent: #f59e0b;
  --buyout-accent-2: #fb923c;
  background:
    radial-gradient(circle at top, rgba(245,158,11,.08), transparent 34%),
    linear-gradient(180deg, #090b10 0%, #0b0e14 100%);
}

.buyout-body--embedded .buyout-card {
  background: linear-gradient(180deg, rgba(11,14,20,.96) 0%, rgba(10,12,18,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.buyout-body--embedded .buyout-step {
  background: linear-gradient(180deg, rgba(14,18,27,.96) 0%, rgba(12,16,24,.98) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.buyout-body--embedded .buyout-step[data-step="category"] {
  padding: 14px;
}

.buyout-body--embedded .buyout-step h2 {
  color: #f8fafc;
  letter-spacing: -.02em;
}

.buyout-body--embedded .buyout-step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.buyout-body--embedded .buyout-step-heading h2 {
  margin: 0;
}

.buyout-body--embedded .buyout-step--result #buyout-result {
  margin-top: 0;
}

.buyout-body--embedded .buyout-choice,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  background: rgba(8,11,18,.88);
  border-color: rgba(255,255,255,.10);
}

.buyout-body--embedded .buyout-field input:focus,
.buyout-body--embedded .buyout-field select:focus,
.buyout-body--embedded .buyout-field textarea:focus {
  outline: none;
  border-color: rgba(245,158,11,.50);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

.buyout-body--embedded .buyout-choice:hover,
.buyout-body--embedded .buyout-upload:hover,
.buyout-body--embedded .buyout-button--ghost:hover {
  border-color: rgba(245,158,11,.42);
  background: rgba(14,18,27,.96);
}

.buyout-body--embedded .buyout-choice.is-active {
  background: linear-gradient(90deg, rgba(245,158,11,.14) 0%, rgba(251,146,60,.10) 100%);
  border-color: rgba(245,158,11,.55);
  color: #fdba74;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.buyout-body--embedded .buyout-button {
  font-weight: 700;
}

.buyout-body--embedded .buyout-button--primary,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  color: #18120a;
  border: 0;
  box-shadow: 0 10px 24px rgba(245,158,11,.18);
}

.buyout-body--embedded .buyout-button--primary:hover,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost):hover {
  background: linear-gradient(90deg, #f7aa21 0%, #fc9d4f 100%);
  color: #18120a;
}

.buyout-body--embedded .buyout-button--ghost {
  color: #f8fafc;
}

.buyout-body--embedded .buyout-note {
  margin: 0 0 12px;
}

.buyout-body--embedded .buyout-upload {
  margin-bottom: 8px;
}

.buyout-body--embedded .buyout-result-card {
  background: linear-gradient(180deg, rgba(16,22,31,.96) 0%, rgba(12,17,24,.98) 100%);
  border-color: rgba(245,158,11,.18);
}

.buyout-result-card__eyebrow {
  margin-bottom: 8px;
  color: #fdba74;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.buyout-body--embedded .buyout-result-card__price {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #f8fafc;
}

.buyout-body--embedded .buyout-result-card__mode {
  margin-top: 6px;
  margin-bottom: 12px;
  color: #fdba74;
  font-weight: 600;
}

.buyout-result-card__text {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.5;
}

.buyout-body--embedded .buyout-breakdown {
  margin-top: 12px;
}

.buyout-body--embedded .buyout-breakdown li {
  color: #cbd5e1;
}

.buyout-body--embedded .buyout-breakdown strong {
  color: #f8fafc;
}

.buyout-body--embedded .buyout-actions--result {
  justify-content: flex-end;
  margin-top: 14px;
}

.buyout-body--embedded .buyout-result-placeholder {
  min-height: 116px;
  display: flex;
  align-items: center;
}

.buyout-body--embedded .buyout-photo-chip {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.18);
}

.buyout-body--embedded .buyout-alert {
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .buyout-body--embedded .buyout-embedded-columns {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    gap: 14px;
  }

  .buyout-body--embedded .buyout-step[data-step="result"] {
    align-self: stretch;
  }
}

@media (max-width: 1023px) {
  .buyout-body--embedded .buyout-step-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyout-body--embedded .buyout-step-heading .buyout-button {
    width: 100%;
  }
}


/* phase115 refinement: remove extra copy and align embedded buyout to main site look */
.buyout-body--embedded {
  --buyout-card: #090b10;
  --buyout-border: rgba(255,255,255,.08);
  --buyout-text: #f8fafc;
  --buyout-muted: #b0b7c3;
  --buyout-accent: #f59e0b;
  --buyout-accent-2: #fb923c;
  background: #090b10;
}

.buyout-body--embedded .buyout-page--embedded {
  background: transparent;
}

.buyout-body--embedded .buyout-card {
  background: linear-gradient(180deg, #090b10 0%, #0b0d13 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.buyout-body--embedded .buyout-step {
  background: #0c1017;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  box-shadow: none;
}

.buyout-body--embedded .buyout-step[data-step="category"] {
  background: #0c1017;
}

.buyout-body--embedded .buyout-step h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.buyout-body--embedded .buyout-choice,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-result-placeholder {
  background: #0a0d13;
  border-color: rgba(255,255,255,.08);
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  color: #ffffff;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-result-card__text {
  color: #aeb6c2;
}

.buyout-body--embedded .buyout-choice.is-active {
  background: linear-gradient(90deg, rgba(245,158,11,.18) 0%, rgba(251,146,60,.10) 100%);
  border-color: rgba(245,158,11,.62);
  color: #fed7aa;
}

.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost {
  color: #f8fafc;
}

.buyout-body--embedded .buyout-button--primary,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  color: #18120a;
  box-shadow: 0 10px 24px rgba(245,158,11,.16);
}

.buyout-body--embedded .buyout-button--ghost {
  background: #0a0d13;
  border: 1px solid rgba(255,255,255,.08);
}

.buyout-body--embedded .buyout-step-heading {
  margin-bottom: 10px;
}

.buyout-body--embedded .buyout-result-card {
  background: linear-gradient(180deg, #10141c 0%, #0d1118 100%);
  border: 1px solid rgba(245,158,11,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.buyout-body--embedded .buyout-result-card__eyebrow {
  color: #fdba74;
  margin-bottom: 10px;
}

.buyout-body--embedded .buyout-result-card__price {
  font-size: 38px;
}

.buyout-body--embedded .buyout-result-card__mode {
  display: none;
}

.buyout-body--embedded .buyout-breakdown li {
  border-top: 1px solid rgba(255,255,255,.07);
}

.buyout-body--embedded .buyout-photo-chip {
  background: rgba(245,158,11,.10);
  color: #fdba74;
  border: 1px solid rgba(245,158,11,.18);
}

.buyout-body--embedded .buyout-result-placeholder {
  min-height: 84px;
  align-items: center;
}

.buyout-body--embedded .buyout-alert {
  background: rgba(15,18,24,.96);
}

/* phase116: complete site-only buyout final tuning */
.buyout-body--embedded .buyout-step[data-step="category"] .buyout-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.buyout-body--embedded .buyout-step[data-step="photos"] {
  min-height: 168px;
}

.buyout-body--embedded .buyout-step[data-step="result"] {
  min-height: 100%;
}

.buyout-body--embedded .buyout-result-card__mode {
  display: block;
  color: #fdba74;
}

.buyout-body--embedded .buyout-actions--result {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-upload {
  background: rgba(255,255,255,.02);
}

@media (max-width: 1279px) {
  .buyout-body--embedded .buyout-step[data-step="category"] .buyout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .buyout-body--embedded .buyout-step[data-step="category"] .buyout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .buyout-body--embedded .buyout-step[data-step="category"] .buyout-grid {
    grid-template-columns: 1fr;
  }
}


.buyout-choice {
  min-height: 54px;
  display: flex;
  align-items: center;
}

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


.buyout-field-grid--platform-select {
  grid-template-columns: minmax(0, 1fr);
}

.buyout-step--platform-select {
  margin-bottom: 14px;
}

.buyout-body--embedded .buyout-step--platform-select .buyout-field select {
  min-height: 56px;
}

/* phase121: embedded buyout matches single left platform block from approved sketch */
.buyout-field-grid--stacked {
  grid-template-columns: 1fr;
}

.buyout-device-photo-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.buyout-device-photo-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #f8fafc;
}

.buyout-body--embedded .buyout-step--device-panel {
  min-height: 100%;
}

.buyout-body--embedded .buyout-step--device-panel .buyout-field-grid {
  grid-template-columns: 1fr;
}

.buyout-body--embedded .buyout-step--device-panel .buyout-field {
  margin: 0;
}

.buyout-body--embedded .buyout-step--device-panel .buyout-upload {
  margin-bottom: 10px;
}

.buyout-body--embedded .buyout-step--device-panel .buyout-photo-preview {
  min-height: 40px;
  margin-bottom: 0;
}

.buyout-body--embedded .buyout-embedded-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 14px;
  align-items: start;
}

.buyout-body--embedded .buyout-embedded-column {
  min-width: 0;
}

.buyout-body--embedded .buyout-embedded-column--left,
.buyout-body--embedded .buyout-embedded-column--right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buyout-body--embedded .buyout-embedded-column .buyout-step {
  margin: 0;
}

.buyout-body--embedded .buyout-step--device-panel h2,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] h2,
.buyout-body--embedded .buyout-step[data-step="result"] h2 {
  font-size: 18px;
}

.buyout-body--embedded .buyout-step[data-step="result"] .buyout-step-heading {
  margin-bottom: 12px;
}

.buyout-body--embedded .buyout-step[data-step="result"] .buyout-button {
  min-width: 138px;
}

.buyout-body--embedded .buyout-result-placeholder {
  min-height: 124px;
}

@media (max-width: 1023px) {
  .buyout-body--embedded .buyout-embedded-columns {
    grid-template-columns: 1fr;
  }

  .buyout-body--embedded .buyout-step--device-panel .buyout-device-photo-block {
    margin-top: 14px;
  }
}


/* Phase123: light embedded theme aligned to main page */
.buyout-body--embedded {
  --buyout-card: #ffffff;
  --buyout-border: rgba(24,24,27,.10);
  --buyout-text: #18181b;
  --buyout-muted: #71717a;
  --buyout-accent: #f59e0b;
  --buyout-accent-2: #fb923c;
  background: #ffffff;
}

.buyout-body--embedded .buyout-page--embedded,
.buyout-body--embedded .buyout-card,
.buyout-body--embedded .buyout-step {
  background: #ffffff;
}

.buyout-body--embedded .buyout-card {
  border: 1px solid rgba(24,24,27,.08);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15,23,42,.05);
}

.buyout-body--embedded .buyout-step {
  border: 1px solid rgba(24,24,27,.08);
  box-shadow: none;
}

.buyout-body--embedded .buyout-step h2,
.buyout-body--embedded .buyout-step h3,
.buyout-body--embedded .buyout-field label,
.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-result-card__price,
.buyout-body--embedded .buyout-breakdown strong {
  color: #18181b;
}

.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-result-card__text,
.buyout-body--embedded .buyout-result-card__mode,
.buyout-body--embedded .buyout-field span {
  color: #71717a;
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-result-placeholder {
  background: #ffffff;
  color: #18181b;
  border-color: rgba(24,24,27,.12);
}

.buyout-body--embedded .buyout-field input::placeholder,
.buyout-body--embedded .buyout-field textarea::placeholder {
  color: #a1a1aa;
}

.buyout-body--embedded .buyout-field input:focus,
.buyout-body--embedded .buyout-field select:focus,
.buyout-body--embedded .buyout-field textarea:focus {
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost {
  color: #18181b;
}

.buyout-body--embedded .buyout-upload:hover,
.buyout-body--embedded .buyout-button--ghost:hover {
  background: #fff7ed;
  border-color: rgba(245,158,11,.35);
}

.buyout-body--embedded .buyout-button--primary,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  color: #111827;
  box-shadow: 0 10px 24px rgba(245,158,11,.18);
}

.buyout-body--embedded .buyout-button--primary:hover,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost):hover {
  background: linear-gradient(90deg, #f7aa21 0%, #fba24e 100%);
  color: #111827;
}

.buyout-body--embedded .buyout-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(245,158,11,.22);
  box-shadow: none;
}

.buyout-body--embedded .buyout-result-card__eyebrow,
.buyout-body--embedded .buyout-photo-chip {
  color: #c2410c;
}

.buyout-body--embedded .buyout-photo-chip {
  background: #fff7ed;
  border: 1px solid rgba(245,158,11,.22);
}

.buyout-body--embedded .buyout-breakdown li {
  border-top: 1px solid rgba(24,24,27,.08);
}

.buyout-body--embedded .buyout-result-placeholder {
  background: #fafafa;
  min-height: 84px;
}

.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-success-placeholder {
  background: #fafafa;
  border-color: rgba(24,24,27,.10);
  color: #71717a;
}

.buyout-body--embedded .buyout-alert--success {
  background: #ecfdf5;
  border-color: rgba(16,185,129,.20);
  color: #166534;
}

.buyout-body--embedded .buyout-alert--error {
  background: #fff1f2;
  border-color: rgba(244,63,94,.18);
  color: #be123c;
}


/* Phase124: compact light embedded buyout */
.buyout-body--embedded .buyout-page--embedded {
  padding: 10px;
}

.buyout-body--embedded .buyout-card {
  border-radius: 20px;
  padding: 10px;
}

.buyout-body--embedded .buyout-embedded-columns {
  gap: 10px;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.86fr);
}

.buyout-body--embedded .buyout-embedded-column--left,
.buyout-body--embedded .buyout-embedded-column--right {
  gap: 10px;
}

.buyout-body--embedded .buyout-step {
  border-radius: 18px;
  padding: 12px 12px 14px;
}

.buyout-body--embedded .buyout-step--device-panel,
.buyout-body--embedded .buyout-step[data-step="questionnaire"],
.buyout-body--embedded .buyout-step[data-step="result"] {
  min-height: auto;
}

.buyout-body--embedded .buyout-step h2 {
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.buyout-body--embedded .buyout-step-heading {
  margin-bottom: 10px;
}

.buyout-body--embedded .buyout-step-heading--result {
  align-items: center;
}

.buyout-body--embedded .buyout-field-grid {
  gap: 10px;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-result-card__text,
.buyout-body--embedded .buyout-result-card__mode {
  font-size: 12px;
  line-height: 1.45;
}

.buyout-body--embedded .buyout-field span {
  margin-bottom: 6px;
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.buyout-body--embedded .buyout-button:not(.buyout-button--ghost) {
  box-shadow: 0 8px 18px rgba(245,158,11,.14);
}

.buyout-body--embedded .buyout-upload {
  margin-bottom: 8px;
}

.buyout-device-photo-block {
  margin-top: 10px;
  padding-top: 10px;
}

.buyout-device-photo-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.buyout-body--embedded .buyout-photo-preview {
  min-height: 0;
  margin-bottom: 0;
}

.buyout-body--embedded .buyout-photo-chip {
  padding: 5px 8px;
  font-size: 11px;
}

.buyout-body--embedded .buyout-result-placeholder {
  min-height: 68px;
  padding: 12px 14px;
}

.buyout-body--embedded .buyout-result-card {
  padding: 14px;
  border-radius: 16px;
}

.buyout-body--embedded .buyout-result-card__price {
  font-size: 24px;
  line-height: 1.05;
}

.buyout-body--embedded .buyout-breakdown {
  margin-top: 10px;
}

.buyout-body--embedded .buyout-breakdown li {
  padding: 6px 0;
}

.buyout-body--embedded .buyout-actions--result {
  margin-top: 10px;
  gap: 8px;
}

@media (max-width: 1023px) {
  .buyout-body--embedded .buyout-page--embedded {
    padding: 8px;
  }

  .buyout-body--embedded .buyout-embedded-columns {
    grid-template-columns: 1fr;
  }
}

.buyout-photo-note {
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: #7c8798;
}

.buyout-result-card__corridor,
.buyout-result-card__meta {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.buyout-body--embedded .buyout-result-card__corridor,
.buyout-body--embedded .buyout-result-card__meta,
.buyout-body--embedded .buyout-photo-note {
  color: #8f9bad;
}


.buyout-result-placeholder--lead {
  min-height: 0;
  padding: 16px 18px;
}

.buyout-body--embedded .buyout-step--lead-inline {
  margin-top: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 4px 4px;
}

.buyout-body--embedded .buyout-actions--lead-inline {
  justify-content: flex-end;
  padding: 0;
  margin-top: 0;
}

/* Phase: strict scenario buyout result */
.buyout-result-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}
.buyout-result-price {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 10px;
}
.buyout-result-note,
.buyout-result-source {
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.buyout-result-source {
  margin-top: 10px;
  font-size: 12px;
  opacity: .78;
}
.buyout-result-reasons {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
}

/* v68: embedded buyout preliminary price panel */
.buyout-body--embedded .buyout-inline-result {
  margin: 0 0 10px;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  width: 100%;
  border-radius: 16px;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder {
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid rgba(24,24,27,.10);
  color: #71717a;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(245,158,11,.24);
  box-shadow: none;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-label {
  color: #c2410c;
  font-size: 11px;
  margin-bottom: 7px;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-price {
  color: #18181b;
  font-size: 26px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-note,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-source,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-reasons {
  color: #71717a;
  font-size: 12px;
  line-height: 1.45;
}
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-source {
  margin-top: 8px;
}

/* v95: buyout modal rebuilt to match user's two-column sketch */
.buyout-body--embedded {
  background: #ffffff;
  color: #121212;
  overflow-x: hidden;
}

.buyout-body--embedded .buyout-page--embedded {
  padding: 0;
  background: #ffffff;
}

.buyout-body--embedded .buyout-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px 14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.buyout-body--embedded .buyout-embedded-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 12px;
  align-items: stretch;
}

.buyout-body--embedded .buyout-embedded-column,
.buyout-body--embedded .buyout-embedded-column--left,
.buyout-body--embedded .buyout-embedded-column--right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buyout-body--embedded .buyout-step--device-panel,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] {
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(24, 24, 27, 0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.035);
}

.buyout-body--embedded .buyout-step--device-panel h2,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #111827;
}

.buyout-body--embedded .buyout-field-grid,
.buyout-body--embedded .buyout-step--device-panel .buyout-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.buyout-body--embedded .buyout-field {
  display: block;
  margin: 0;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  color: #71717a;
}

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 13px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.buyout-body--embedded .buyout-field input:focus,
.buyout-body--embedded .buyout-field select:focus,
.buyout-body--embedded .buyout-field textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.buyout-body--embedded .buyout-field--advanced {
  display: none !important;
}

.buyout-body--embedded .buyout-device-photo-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

.buyout-body--embedded .buyout-device-photo-block h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.buyout-body--embedded .buyout-upload {
  min-height: 38px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 13px;
  background: #ffffff;
  color: #18181b;
  font-size: 13px;
  font-weight: 700;
}

.buyout-body--embedded .buyout-upload:hover {
  border-color: rgba(245, 158, 11, 0.36);
  background: #fff7ed;
  color: #c2410c;
}

.buyout-body--embedded .buyout-photo-note {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.35;
}

.buyout-body--embedded .buyout-photo-preview {
  min-height: 0;
  margin: 8px 0 0;
}

.buyout-body--embedded #buyout-questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.buyout-body--embedded #buyout-questions .buyout-field + .buyout-field {
  margin-top: 0;
}

.buyout-body--embedded .buyout-step--lead-inline {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.buyout-body--embedded .buyout-inline-result {
  margin: 0;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  width: 100%;
  border-radius: 16px;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(24, 24, 27, 0.10);
  background: #fbfbfc;
  color: #71717a;
  font-size: 12px;
  line-height: 1.4;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  padding: 15px 16px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: #fffaf4;
  box-shadow: none;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-label {
  margin-bottom: 6px;
  color: #c2410c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-price {
  margin-bottom: 6px;
  color: #111827;
  font-size: 26px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-note,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-source,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-reasons,
.buyout-body--embedded .buyout-result-card__corridor,
.buyout-body--embedded .buyout-result-card__meta {
  color: #71717a;
  font-size: 12px;
  line-height: 1.42;
}

.buyout-body--embedded .buyout-actions--lead-inline {
  margin-top: 10px;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.buyout-body--embedded #buyout-transfer-to-lead {
  min-width: 160px;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.18);
}

.buyout-body--embedded #buyout-transfer-to-lead:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #f7aa21 0%, #fba24e 100%);
}

@media (max-width: 820px) {
  .buyout-body--embedded .buyout-card {
    padding: 10px;
    gap: 10px;
  }

  .buyout-body--embedded .buyout-embedded-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .buyout-body--embedded .buyout-step--device-panel,
  .buyout-body--embedded .buyout-step[data-step="questionnaire"] {
    padding: 12px;
    border-radius: 16px;
  }

  .buyout-body--embedded .buyout-step--device-panel h2,
  .buyout-body--embedded .buyout-step[data-step="questionnaire"] h2 {
    font-size: 17px;
  }

  .buyout-body--embedded .buyout-actions--lead-inline,
  .buyout-body--embedded #buyout-transfer-to-lead {
    width: 100%;
  }
}

/* v96: bring buyout modal back to the user's clean sketch */
.buyout-body--embedded {
  background: #ffffff !important;
  color: #111827 !important;
}

.buyout-body--embedded .buyout-page--embedded {
  padding: 0 !important;
  background: #ffffff !important;
}

.buyout-body--embedded .buyout-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.buyout-body--embedded .buyout-embedded-columns {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.buyout-body--embedded .buyout-embedded-column,
.buyout-body--embedded .buyout-embedded-column--left,
.buyout-body--embedded .buyout-embedded-column--right {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  gap: 0 !important;
}

.buyout-body--embedded .buyout-step--device-panel,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] {
  min-height: 356px !important;
  height: 100% !important;
  padding: 16px !important;
  border: 1px solid rgba(24, 24, 27, .10) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.buyout-body--embedded .buyout-step--device-panel h2,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] h2 {
  margin: 0 0 12px !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  letter-spacing: -.025em !important;
  color: #111827 !important;
}

.buyout-body--embedded .buyout-field-grid,
.buyout-body--embedded .buyout-step--device-panel .buyout-field-grid,
.buyout-body--embedded #buyout-questions {
  gap: 10px !important;
}

.buyout-body--embedded .buyout-field span {
  margin-bottom: 5px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field textarea {
  min-height: 42px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(24, 24, 27, .12) !important;
  background: #ffffff !important;
  color: #111827 !important;
}

.buyout-body--embedded .buyout-device-photo-block {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 0 !important;
}

.buyout-body--embedded .buyout-device-photo-block h3 {
  color: #111827 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}

.buyout-body--embedded .buyout-upload {
  min-height: 38px !important;
  width: fit-content !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #111827 !important;
}

.buyout-body--embedded .buyout-photo-note {
  margin-top: 8px !important;
  color: #8a94a6 !important;
}

.buyout-body--embedded .buyout-step--lead-inline {
  margin: 10px 0 0 !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
}

.buyout-body--embedded .buyout-inline-result {
  margin: 0 !important;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  width: 100% !important;
  border-radius: 15px !important;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder {
  min-height: 54px !important;
  padding: 12px 16px !important;
  background: #fbfbfc !important;
  border: 1px solid rgba(24, 24, 27, .10) !important;
  color: #71717a !important;
}

.buyout-body--embedded .buyout-actions--lead-inline {
  margin-top: 10px !important;
  justify-content: flex-end !important;
}

.buyout-body--embedded #buyout-transfer-to-lead {
  min-width: 158px !important;
  min-height: 42px !important;
  border-radius: 13px !important;
}

@media (max-width: 820px) {
  .buyout-body--embedded .buyout-card {
    padding: 12px !important;
  }
  .buyout-body--embedded .buyout-embedded-columns {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .buyout-body--embedded .buyout-step--device-panel,
  .buyout-body--embedded .buyout-step[data-step="questionnaire"] {
    min-height: auto !important;
  }
}


/* v100: live dark background for the embedded buyout window */
.buyout-body--embedded {
  background: #05070d;
  overflow-x: hidden;
  position: relative;
}

.buyout-body--embedded::before,
.buyout-body--embedded::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.buyout-body--embedded::before {
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(249,115,22,.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(244,63,94,.16), transparent 32%),
    radial-gradient(circle at 64% 100%, rgba(59,130,246,.15), transparent 38%),
    linear-gradient(145deg, #05070d 0%, #0b0f18 48%, #05070d 100%);
  animation: buyoutEmbeddedAuroraV100 16s ease-in-out infinite alternate;
}

.buyout-body--embedded::after {
  z-index: 0;
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.06) 44%, transparent 64%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 260px 100%, 54px 54px, 54px 54px;
  animation: buyoutEmbeddedScanV100 9s ease-in-out infinite, buyoutEmbeddedGridV100 18s linear infinite;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.94), transparent 88%);
}

.buyout-body--embedded .buyout-body,
.buyout-body--embedded .buyout-page--embedded {
  background: transparent;
  position: relative;
  z-index: 1;
}

.buyout-body--embedded .buyout-card {
  background: rgba(17,20,27,.78);
  border-color: rgba(255,255,255,.11);
  box-shadow: 0 18px 46px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}

.buyout-body--embedded .buyout-choice,
.buyout-body--embedded .buyout-button,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-result-card,
.buyout-body--embedded .buyout-success-card,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-button--ghost {
  background: rgba(10,14,22,.72);
  backdrop-filter: blur(10px);
}

.buyout-body--embedded .buyout-choice.is-active {
  background: rgba(245,158,11,.16);
  box-shadow: 0 0 0 1px rgba(251,146,60,.20), 0 12px 28px rgba(249,115,22,.08);
}

@keyframes buyoutEmbeddedAuroraV100 {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); filter: saturate(1); }
  45% { transform: translate3d(2%, 1%, 0) scale(1.05); filter: saturate(1.18); }
  100% { transform: translate3d(1%, -2%, 0) scale(1.08); filter: saturate(1.1); }
}

@keyframes buyoutEmbeddedScanV100 {
  0%, 100% { background-position: -300px 0, 0 0, 0 0; opacity: .16; }
  50% { background-position: 360px 0, 0 0, 0 0; opacity: .28; }
}

@keyframes buyoutEmbeddedGridV100 {
  from { background-position: -300px 0, 0 0, 0 0; }
  to { background-position: 360px 0, 54px 54px, 54px 54px; }
}


/* v101: premium dark embedded buyout window after video review.
   Keeps v97/v96 geometry but replaces the white inner form with a readable living dark surface. */
.buyout-body--embedded {
  --buyout-card: rgba(8, 12, 20, .78) !important;
  --buyout-border: rgba(255,255,255,.13) !important;
  --buyout-text: #f7f8fb !important;
  --buyout-muted: #a9b3c6 !important;
  --buyout-accent: #f59e0b !important;
  --buyout-accent-2: #fb923c !important;
  background: #03050b !important;
  color: #f7f8fb !important;
  isolation: isolate !important;
}

.buyout-body--embedded::before {
  z-index: 0 !important;
  opacity: .86 !important;
  background:
    radial-gradient(circle at 14% 16%, rgba(245,158,11,.13), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(56,189,248,.09), transparent 34%),
    radial-gradient(circle at 50% 112%, rgba(249,115,22,.11), transparent 42%),
    linear-gradient(145deg, #03050b 0%, #070b14 48%, #03050b 100%) !important;
  animation: buyoutEmbeddedPremiumAuroraV101 26s ease-in-out infinite alternate !important;
}

.buyout-body--embedded::after {
  z-index: 0 !important;
  opacity: .13 !important;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.045) 44%, transparent 63%),
    radial-gradient(circle, rgba(255,255,255,.13) 0 1px, transparent 1.6px) !important;
  background-size: 330px 100%, 30px 30px !important;
  animation: buyoutEmbeddedPremiumLightV101 12s ease-in-out infinite, buyoutEmbeddedPremiumDotsV101 24s linear infinite !important;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.96), transparent 91%) !important;
}

.buyout-body--embedded .buyout-body,
.buyout-body--embedded .buyout-page--embedded {
  background: transparent !important;
  color: #f7f8fb !important;
  position: relative !important;
  z-index: 1 !important;
}

.buyout-body--embedded .buyout-card {
  background: transparent !important;
  color: #f7f8fb !important;
  border-color: transparent !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.buyout-body--embedded .buyout-step--device-panel,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] {
  background: rgba(8,12,20,.74) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f7f8fb !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.055) !important;
  backdrop-filter: blur(16px) saturate(1.04) !important;
}

.buyout-body--embedded .buyout-step--lead-inline {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.buyout-body--embedded .buyout-step--device-panel h2,
.buyout-body--embedded .buyout-step[data-step="questionnaire"] h2,
.buyout-body--embedded .buyout-step h2,
.buyout-body--embedded .buyout-step h3,
.buyout-body--embedded .buyout-device-photo-block h3,
.buyout-body--embedded .buyout-result-card__price,
.buyout-body--embedded .buyout-breakdown strong {
  color: #f8fafc !important;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-field label,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-photo-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-result-card__text,
.buyout-body--embedded .buyout-result-card__mode,
.buyout-body--embedded .buyout-result-card__corridor,
.buyout-body--embedded .buyout-result-card__meta,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-note,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-source,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-reasons {
  color: #a9b3c6 !important;
}

.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost {
  background: rgba(255,255,255,.065) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.buyout-body--embedded .buyout-field select option {
  background: #080c14 !important;
  color: #f8fafc !important;
}

.buyout-body--embedded .buyout-field input::placeholder,
.buyout-body--embedded .buyout-field textarea::placeholder {
  color: rgba(203,213,225,.62) !important;
}

.buyout-body--embedded .buyout-field input:focus,
.buyout-body--embedded .buyout-field select:focus,
.buyout-body--embedded .buyout-field textarea:focus {
  border-color: rgba(245,158,11,.62) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.15), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.buyout-body--embedded .buyout-upload:hover,
.buyout-body--embedded .buyout-button--ghost:hover {
  background: rgba(245,158,11,.12) !important;
  border-color: rgba(245,158,11,.38) !important;
  color: #fed7aa !important;
}

.buyout-body--embedded .buyout-device-photo-block {
  border-top-color: rgba(255,255,255,.08) !important;
}

.buyout-body--embedded .buyout-photo-chip {
  background: rgba(245,158,11,.12) !important;
  border-color: rgba(245,158,11,.22) !important;
  color: #fed7aa !important;
}

.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder,
.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-success-placeholder {
  background: rgba(7,11,18,.70) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  color: #a9b3c6 !important;
}

.buyout-body--embedded .buyout-result-card,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  background: linear-gradient(180deg, rgba(245,158,11,.15), rgba(12,17,27,.84)) !important;
  border: 1px solid rgba(245,158,11,.24) !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 34px rgba(245,158,11,.075), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-label,
.buyout-body--embedded .buyout-result-card__eyebrow {
  color: #fbbf24 !important;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-price {
  color: #f8fafc !important;
}

.buyout-body--embedded .buyout-breakdown li {
  border-top-color: rgba(255,255,255,.09) !important;
}

.buyout-body--embedded .buyout-button--primary,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost),
.buyout-body--embedded #buyout-transfer-to-lead {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%) !important;
  color: #111827 !important;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(245,158,11,.18) !important;
}

.buyout-body--embedded .buyout-button--primary:hover,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost):hover,
.buyout-body--embedded #buyout-transfer-to-lead:hover {
  background: linear-gradient(90deg, #f7aa21 0%, #fba24e 100%) !important;
  color: #111827 !important;
}

.buyout-body--embedded .buyout-alert--success {
  background: rgba(16,185,129,.12) !important;
  border-color: rgba(16,185,129,.26) !important;
  color: #bbf7d0 !important;
}

.buyout-body--embedded .buyout-alert--error {
  background: rgba(244,63,94,.12) !important;
  border-color: rgba(244,63,94,.25) !important;
  color: #fecdd3 !important;
}

@keyframes buyoutEmbeddedPremiumAuroraV101 {
  0% { transform: translate3d(-1.2%, -.8%, 0) scale(1); filter: saturate(.98); }
  50% { transform: translate3d(1.2%, .8%, 0) scale(1.035); filter: saturate(1.08); }
  100% { transform: translate3d(.8%, -1.1%, 0) scale(1.055); filter: saturate(1.02); }
}

@keyframes buyoutEmbeddedPremiumLightV101 {
  0%, 100% { background-position: -360px 0, 0 0; opacity: .10; }
  52% { background-position: 380px 0, 0 0; opacity: .17; }
}

@keyframes buyoutEmbeddedPremiumDotsV101 {
  from { background-position: -360px 0, 0 0; }
  to { background-position: 380px 0, 30px 30px; }
}


/* v102: clean dark embedded buyout. Solid readable cards instead of cloudy panels. */
.buyout-body--embedded {
  --buyout-card: #0b101a !important;
  --buyout-border: rgba(255,255,255,.13) !important;
  --buyout-text: #f8fafc !important;
  --buyout-muted: #aab4c6 !important;
  --buyout-accent: #f59e0b !important;
  --buyout-accent-2: #fb923c !important;
  background: #06090f !important;
  color: #f8fafc !important;
}

.buyout-body--embedded::before {
  z-index: 0 !important;
  opacity: .36 !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(245,158,11,.16), transparent 42%),
    radial-gradient(circle at 96% 12%, rgba(56,189,248,.055), transparent 36%),
    linear-gradient(145deg, #06090f 0%, #090d16 54%, #06090f 100%) !important;
  animation: buyoutCleanDarkGlowV102 24s ease-in-out infinite alternate !important;
}

.buyout-body--embedded::after {
  z-index: 0 !important;
  opacity: .045 !important;
  background-image: radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1.8px) !important;
  background-size: 38px 38px !important;
  animation: buyoutCleanDarkDotsV102 34s linear infinite !important;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.92), transparent 88%) !important;
}

.buyout-body--embedded .buyout-body,
.buyout-body--embedded .buyout-page--embedded {
  background: transparent !important;
  color: #f8fafc !important;
  position: relative !important;
  z-index: 1 !important;
}

.buyout-body--embedded .buyout-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.buyout-body--embedded .buyout-step--device-panel,
.buyout-body--embedded .buyout-step[data-step="questionnaire"],
.buyout-body--embedded .buyout-step[data-step="result"] {
  background: #0b101a !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.045) !important;
  backdrop-filter: none !important;
}

.buyout-body--embedded .buyout-step--lead-inline {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.buyout-body--embedded .buyout-step h2,
.buyout-body--embedded .buyout-step h3,
.buyout-body--embedded .buyout-device-photo-block h3,
.buyout-body--embedded .buyout-result-card__price,
.buyout-body--embedded .buyout-breakdown strong,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-price {
  color: #f8fafc !important;
}

.buyout-body--embedded .buyout-field span,
.buyout-body--embedded .buyout-field label,
.buyout-body--embedded .buyout-note,
.buyout-body--embedded .buyout-photo-note,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-result-card__text,
.buyout-body--embedded .buyout-result-card__mode,
.buyout-body--embedded .buyout-result-card__corridor,
.buyout-body--embedded .buyout-result-card__meta,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-note,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-source,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-reasons {
  color: #aab4c6 !important;
}

.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost {
  background: #101722 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.buyout-body--embedded .buyout-field select option {
  background: #101722 !important;
  color: #f8fafc !important;
}

.buyout-body--embedded .buyout-field input::placeholder,
.buyout-body--embedded .buyout-field textarea::placeholder {
  color: rgba(203,213,225,.58) !important;
}

.buyout-body--embedded .buyout-field input:focus,
.buyout-body--embedded .buyout-field select:focus,
.buyout-body--embedded .buyout-field textarea:focus {
  border-color: rgba(245,158,11,.62) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.13) !important;
}

.buyout-body--embedded .buyout-upload:hover,
.buyout-body--embedded .buyout-button--ghost:hover {
  background: #151d2a !important;
  border-color: rgba(245,158,11,.36) !important;
  color: #fed7aa !important;
}

.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-placeholder,
.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-success-placeholder {
  background: #0f1621 !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  color: #aab4c6 !important;
}

.buyout-body--embedded .buyout-result-card,
.buyout-body--embedded .buyout-step--lead-inline .buyout-result-card {
  background: linear-gradient(180deg, #111827 0%, #0b101a 100%) !important;
  border: 1px solid rgba(245,158,11,.24) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.22) !important;
}

.buyout-body--embedded .buyout-step--lead-inline .buyout-result-label,
.buyout-body--embedded .buyout-result-card__eyebrow,
.buyout-body--embedded .buyout-photo-chip {
  color: #fbbf24 !important;
}

.buyout-body--embedded .buyout-photo-chip {
  background: rgba(245,158,11,.10) !important;
  border-color: rgba(245,158,11,.20) !important;
}

.buyout-body--embedded .buyout-breakdown li,
.buyout-body--embedded .buyout-device-photo-block {
  border-top-color: rgba(255,255,255,.09) !important;
}

.buyout-body--embedded .buyout-button--primary,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost),
.buyout-body--embedded #buyout-transfer-to-lead {
  background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%) !important;
  color: #111827 !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(245,158,11,.18) !important;
}

.buyout-body--embedded .buyout-button--primary:hover,
.buyout-body--embedded .buyout-button:not(.buyout-button--ghost):hover,
.buyout-body--embedded #buyout-transfer-to-lead:hover {
  background: linear-gradient(90deg, #f7aa21 0%, #fba24e 100%) !important;
  color: #111827 !important;
}

@keyframes buyoutCleanDarkGlowV102 {
  0% { transform: translate3d(-.8%, -.7%, 0) scale(1); opacity: .30; }
  50% { transform: translate3d(.8%, .4%, 0) scale(1.02); opacity: .40; }
  100% { transform: translate3d(.5%, -.8%, 0) scale(1.035); opacity: .34; }
}

@keyframes buyoutCleanDarkDotsV102 {
  from { background-position: 0 0; }
  to { background-position: 38px 38px; }
}

/* v114: starfall visual layer from working v102. CSS-only, no mobile/open logic touched. */
.buyout-body--embedded {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -14%, rgba(245,158,11,.12), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(56,189,248,.06), transparent 34%),
    linear-gradient(180deg, #070a11 0%, #090c13 100%) !important;
}

.buyout-body--embedded::before,
.buyout-body--embedded::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.buyout-body--embedded::before {
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(245,158,11,.36) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(56,189,248,.26) 0 1px, transparent 2px);
  background-size: 48px 48px, 92px 92px, 136px 136px;
  animation: buyoutStarfieldDriftV114 30s linear infinite;
  filter: drop-shadow(0 0 7px rgba(245,158,11,.12));
}

.buyout-body--embedded::after {
  opacity: .44;
  background-image:
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.82) 48%, rgba(245,158,11,.70) 51%, transparent 58%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.52) 49%, rgba(56,189,248,.38) 52%, transparent 59%),
    linear-gradient(112deg, transparent 0 45%, rgba(255,255,255,.64) 50%, rgba(245,158,11,.46) 53%, transparent 60%);
  background-size: 520px 180px, 650px 220px, 780px 260px;
  background-position: -620px -120px, -760px 130px, -920px 360px;
  animation: buyoutMeteorRainV114 6.8s linear infinite;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.72));
}

.buyout-body--embedded .buyout-page--embedded,
.buyout-body--embedded .buyout-card,
.buyout-body--embedded .buyout-step,
.buyout-body--embedded .buyout-actions,
.buyout-body--embedded .buyout-alerts {
  position: relative;
  z-index: 1;
}

.buyout-body--embedded .buyout-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 118%, rgba(245,158,11,.075), transparent 34%),
    rgba(9,11,16,.82) !important;
}

.buyout-body--embedded .buyout-step {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(12,16,23,.80) !important;
  backdrop-filter: blur(3px);
}

.buyout-body--embedded .buyout-step::before,
.buyout-body--embedded .buyout-step::after,
.buyout-body--embedded .buyout-result-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.buyout-body--embedded .buyout-step::before {
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.62) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(245,158,11,.32) 0 1px, transparent 1.9px);
  background-size: 42px 42px, 78px 78px;
  animation: buyoutPanelStarsV114 22s linear infinite;
}

.buyout-body--embedded .buyout-step::after {
  left: -60%;
  top: -32%;
  width: 260px;
  height: 2px;
  inset: auto auto auto -60%;
  top: -28%;
  border-radius: 999px;
  opacity: .62;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.76), rgba(245,158,11,.60), transparent);
  box-shadow: 0 0 18px rgba(245,158,11,.30);
  transform: rotate(16deg);
  animation: buyoutPanelMeteorV114 5.4s linear infinite;
}

.buyout-body--embedded .buyout-step[data-step="questionnaire"]::after { animation-delay: -1.9s; animation-duration: 6.1s; }
.buyout-body--embedded .buyout-step[data-step="photos"]::after { animation-delay: -3.3s; animation-duration: 7.2s; opacity: .46; }
.buyout-body--embedded .buyout-step[data-step="result"]::after { animation-delay: -4.8s; animation-duration: 6.6s; opacity: .42; }

.buyout-body--embedded .buyout-field input,
.buyout-body--embedded .buyout-field select,
.buyout-body--embedded .buyout-field textarea,
.buyout-body--embedded .buyout-upload,
.buyout-body--embedded .buyout-button--ghost,
.buyout-body--embedded .buyout-result-placeholder,
.buyout-body--embedded .buyout-inline-note,
.buyout-body--embedded .buyout-success-placeholder {
  background: rgba(10,13,19,.88) !important;
  backdrop-filter: blur(2px);
}

@keyframes buyoutStarfieldDriftV114 {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, -92px 92px, 136px -136px; }
}

@keyframes buyoutMeteorRainV114 {
  from { background-position: -620px -120px, -760px 130px, -920px 360px; }
  to { background-position: 960px 430px, 980px 620px, 900px 760px; }
}

@keyframes buyoutPanelStarsV114 {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, -78px 78px; }
}

@keyframes buyoutPanelMeteorV114 {
  0% { transform: translate3d(-10%, -20px, 0) rotate(16deg); opacity: 0; }
  12% { opacity: .62; }
  42% { opacity: .50; }
  72%, 100% { transform: translate3d(720px, 250px, 0) rotate(16deg); opacity: 0; }
}

@media (max-width: 760px) {
  .buyout-body--embedded::after {
    opacity: .34;
    background-size: 420px 160px, 540px 200px, 640px 230px;
  }
  .buyout-body--embedded .buyout-step::after {
    width: 190px;
    opacity: .42;
  }
}


/* v115: more visible starfall from confirmed working v114/v102 base. Visual-only; no JS or mobile opening logic touched. */
.buyout-body--embedded::before {
  opacity: .40;
  background-size: 34px 34px, 66px 66px, 102px 102px;
  animation-duration: 22s;
  filter: drop-shadow(0 0 8px rgba(245,158,11,.18)) drop-shadow(0 0 10px rgba(56,189,248,.08));
}

.buyout-body--embedded::after {
  opacity: .68;
  background-image:
    linear-gradient(112deg, transparent 0 42%, rgba(255,255,255,.88) 48%, rgba(255,191,87,.78) 51%, transparent 59%),
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.64) 49%, rgba(56,189,248,.44) 52%, transparent 60%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.74) 50%, rgba(245,158,11,.54) 53%, transparent 61%),
    linear-gradient(112deg, transparent 0 45%, rgba(255,255,255,.54) 49%, rgba(251,146,60,.46) 52%, transparent 60%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.72) 50%, rgba(245,158,11,.62) 53%, transparent 61%),
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.52) 49%, rgba(56,189,248,.34) 52%, transparent 60%);
  background-size: 420px 150px, 520px 180px, 610px 210px, 700px 240px, 480px 160px, 760px 260px;
  background-position: -520px -110px, -680px 40px, -800px 190px, -940px 340px, -640px 510px, -1060px 620px;
  animation: buyoutMeteorRainV115 4.4s linear infinite;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.90), rgba(0,0,0,.82));
}

.buyout-body--embedded .buyout-step::before {
  opacity: .32;
  background-size: 34px 34px, 62px 62px;
  animation-duration: 18s;
}

.buyout-body--embedded .buyout-step::after {
  width: 340px;
  height: 2.4px;
  opacity: .78;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.90), rgba(255,191,87,.78), rgba(56,189,248,.20), transparent);
  box-shadow: 0 0 20px rgba(245,158,11,.46), 0 0 36px rgba(255,255,255,.12);
  animation: buyoutPanelMeteorV115 4.2s linear infinite;
}

.buyout-body--embedded .buyout-step[data-step="questionnaire"]::after { animation-delay: -1.0s; animation-duration: 4.8s; }
.buyout-body--embedded .buyout-step[data-step="photos"]::after { animation-delay: -2.2s; animation-duration: 5.2s; opacity: .62; }
.buyout-body--embedded .buyout-step[data-step="result"]::after { animation-delay: -3.4s; animation-duration: 5.0s; opacity: .60; }

@keyframes buyoutMeteorRainV115 {
  from {
    background-position: -520px -110px, -680px 40px, -800px 190px, -940px 340px, -640px 510px, -1060px 620px;
  }
  to {
    background-position: 940px 390px, 980px 520px, 940px 680px, 860px 820px, 1060px 910px, 760px 1060px;
  }
}

@keyframes buyoutPanelMeteorV115 {
  0% { transform: translate3d(-18%, -34px, 0) rotate(16deg); opacity: 0; }
  9% { opacity: .82; }
  42% { opacity: .70; }
  70%, 100% { transform: translate3d(840px, 290px, 0) rotate(16deg); opacity: 0; }
}

@media (max-width: 760px) {
  .buyout-body--embedded::before {
    opacity: .34;
    background-size: 36px 36px, 72px 72px, 112px 112px;
  }
  .buyout-body--embedded::after {
    opacity: .52;
    background-size: 360px 140px, 460px 170px, 540px 200px, 620px 230px, 420px 150px, 660px 250px;
  }
  .buyout-body--embedded .buyout-step::after {
    width: 250px;
    opacity: .58;
  }
}

/* v116: faster and slightly denser starfall from confirmed working v115/v114/v102 base. Visual-only; no JS or mobile opening logic touched. */
.buyout-body--embedded::before {
  opacity: .44;
  background-size: 32px 32px, 60px 60px, 92px 92px;
  animation-duration: 16s;
}

.buyout-body--embedded::after {
  opacity: .74;
  background-image:
    linear-gradient(112deg, transparent 0 42%, rgba(255,255,255,.90) 48%, rgba(255,191,87,.82) 51%, transparent 59%),
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.68) 49%, rgba(56,189,248,.46) 52%, transparent 60%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.78) 50%, rgba(245,158,11,.58) 53%, transparent 61%),
    linear-gradient(112deg, transparent 0 45%, rgba(255,255,255,.56) 49%, rgba(251,146,60,.48) 52%, transparent 60%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.74) 50%, rgba(245,158,11,.66) 53%, transparent 61%),
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.54) 49%, rgba(56,189,248,.36) 52%, transparent 60%),
    linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.70) 50%, rgba(255,191,87,.54) 53%, transparent 61%),
    linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.48) 49%, rgba(56,189,248,.30) 52%, transparent 60%);
  background-size: 390px 140px, 480px 165px, 560px 195px, 640px 220px, 430px 150px, 690px 240px, 520px 180px, 740px 255px;
  background-position: -500px -120px, -650px 10px, -760px 135px, -880px 265px, -610px 400px, -1000px 520px, -720px 650px, -1120px 760px;
  animation: buyoutMeteorRainV116 2.65s linear infinite;
}

.buyout-body--embedded .buyout-step::before {
  opacity: .36;
  background-size: 32px 32px, 58px 58px;
  animation-duration: 14s;
}

.buyout-body--embedded .buyout-step::after {
  width: 360px;
  opacity: .82;
  animation: buyoutPanelMeteorV116 2.75s linear infinite;
}

.buyout-body--embedded .buyout-step[data-step="questionnaire"]::after { animation-delay: -.55s; animation-duration: 3.05s; }
.buyout-body--embedded .buyout-step[data-step="photos"]::after { animation-delay: -1.50s; animation-duration: 3.35s; opacity: .66; }
.buyout-body--embedded .buyout-step[data-step="result"]::after { animation-delay: -2.10s; animation-duration: 3.25s; opacity: .64; }

@keyframes buyoutMeteorRainV116 {
  from {
    background-position: -500px -120px, -650px 10px, -760px 135px, -880px 265px, -610px 400px, -1000px 520px, -720px 650px, -1120px 760px;
  }
  to {
    background-position: 980px 420px, 1010px 540px, 990px 690px, 900px 830px, 1100px 920px, 790px 1060px, 1040px 1160px, 760px 1260px;
  }
}

@keyframes buyoutPanelMeteorV116 {
  0% { transform: translate3d(-22%, -36px, 0) rotate(16deg); opacity: 0; }
  7% { opacity: .86; }
  48% { opacity: .74; }
  82%, 100% { transform: translate3d(860px, 300px, 0) rotate(16deg); opacity: 0; }
}

@media (max-width: 760px) {
  .buyout-body--embedded::before {
    opacity: .38;
    background-size: 34px 34px, 66px 66px, 104px 104px;
  }
  .buyout-body--embedded::after {
    opacity: .58;
    background-size: 340px 130px, 430px 160px, 500px 185px, 580px 215px, 390px 145px, 620px 230px, 480px 170px, 660px 240px;
    animation-duration: 2.9s;
  }
  .buyout-body--embedded .buyout-step::after {
    width: 260px;
    opacity: .62;
    animation-duration: 3.2s;
  }
}



/* v121: mobile buyout performance tuning. Keeps working opening logic untouched. */
@media (max-width: 760px) {
  .buyout-body--embedded::before {
    opacity: .24 !important;
    background-size: 46px 46px, 88px 88px, 132px 132px !important;
    animation-duration: 36s !important;
    filter: none !important;
  }
  .buyout-body--embedded::after {
    opacity: .34 !important;
    background-image:
      linear-gradient(112deg, transparent 0 42%, rgba(255,255,255,.72) 48%, rgba(255,191,87,.60) 51%, transparent 59%),
      linear-gradient(112deg, transparent 0 43%, rgba(255,255,255,.48) 49%, rgba(56,189,248,.28) 52%, transparent 60%),
      linear-gradient(112deg, transparent 0 44%, rgba(255,255,255,.62) 50%, rgba(245,158,11,.46) 53%, transparent 61%) !important;
    background-size: 430px 150px, 540px 190px, 650px 230px !important;
    background-position: -520px -120px, -700px 120px, -860px 380px !important;
    animation: buyoutMeteorRainV121Mobile 7.6s linear infinite !important;
    filter: none !important;
  }
  .buyout-body--embedded .buyout-step {
    backdrop-filter: none !important;
  }
  .buyout-body--embedded .buyout-step::before {
    opacity: .12 !important;
    animation-duration: 42s !important;
    filter: none !important;
  }
  .buyout-body--embedded .buyout-step::after {
    width: 190px !important;
    opacity: .34 !important;
    animation-duration: 7.2s !important;
    box-shadow: 0 0 10px rgba(245,158,11,.20) !important;
  }
  .buyout-body--embedded .buyout-field select,
  .buyout-body--embedded .buyout-field input,
  .buyout-body--embedded .buyout-field textarea,
  .buyout-body--embedded .buyout-upload,
  .buyout-body--embedded .buyout-button--ghost,
  .buyout-body--embedded .buyout-result-placeholder,
  .buyout-body--embedded .buyout-inline-note,
  .buyout-body--embedded .buyout-success-placeholder {
    backdrop-filter: none !important;
  }
  .buyout-body--embedded select,
  .buyout-body--embedded button,
  .buyout-body--embedded input,
  .buyout-body--embedded textarea {
    touch-action: manipulation;
  }
}

@keyframes buyoutMeteorRainV121Mobile {
  from { background-position: -520px -120px, -700px 120px, -860px 380px; }
  to { background-position: 920px 390px, 960px 600px, 820px 850px; }
}
