.trade-entry {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trade-entry-copy {
  min-height: 220px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .035);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 9px;
  justify-items: center;
  text-align: center;
}

.trade-entry-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111318;
  background: #f5f6f8;
}

.trade-entry-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.trade-entry-apple {
  font-size: 30px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.trade-entry-kicker {
  color: #5f6673;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trade-entry h2 {
  margin: 0;
  color: #111318;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: 0;
}

.trade-entry p {
  margin: 0;
  color: #717783;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.trade-entry-spacer {
  min-height: 44px;
}

.trade-entry-button {
  min-height: 44px;
  width: min(100%, 220px);
  border: 1px solid #3a3d44;
  border-radius: 999px;
  background: #3a3d44;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  justify-self: center;
}

.trade-entry-button:hover {
  background: #252830;
  border-color: #252830;
}

.trade-entry-whatsapp {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: #25d366;
}

.trade-entry-whatsapp svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.trade-button {
  min-height: 44px;
  border: 1px solid #111318;
  border-radius: 999px;
  background: #111318;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.trade-button.secondary {
  background: white;
  color: #111318;
  border-color: #e3e7ee;
}

.trade-button[disabled] {
  opacity: .42;
  cursor: not-allowed;
}

.trade-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, .44);
  backdrop-filter: blur(10px);
}

.trade-modal.show {
  display: grid;
}

.trade-panel {
  width: min(760px, 100%);
  max-height: min(820px, 92vh);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.trade-head {
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e6e8ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trade-head-title {
  display: grid;
  gap: 3px;
}

.trade-head-title strong {
  color: #111318;
  font-size: 16px;
  line-height: 1.15;
}

.trade-head-title span {
  color: #717783;
  font-size: 12px;
  font-weight: 750;
}

.trade-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4f6f9;
  color: #273142;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.trade-body {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.trade-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.trade-progress span {
  height: 4px;
  border-radius: 999px;
  background: #e6e8ee;
}

.trade-progress span.active {
  background: #111318;
}

.trade-step {
  display: grid;
  gap: 18px;
}

.trade-step-title {
  display: grid;
  gap: 7px;
}

.trade-step-title h3 {
  margin: 0;
  color: #111318;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.trade-step-title p {
  margin: 0;
  color: #717783;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

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

.trade-option {
  min-height: 54px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: white;
  color: #111318;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.trade-option.selected {
  border-color: #111318;
  box-shadow: inset 0 0 0 1px #111318;
  background: #f8f9fb;
}

.trade-field {
  display: grid;
  gap: 10px;
}

.trade-field label {
  color: #111318;
  font-size: 14px;
  font-weight: 850;
}

.trade-battery-row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: center;
}

.trade-battery-row input[type="range"] {
  width: 100%;
  accent-color: #111318;
}

.trade-battery-row input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  padding: 0 12px;
  color: #111318;
  font-size: 18px;
  font-weight: 900;
}

.trade-alert {
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #f8f9fb;
  color: #475467;
  padding: 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.trade-alert strong {
  color: #111318;
}

.trade-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.trade-condition-option {
  min-height: 252px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: white;
  color: #111318;
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(132px, auto) 1fr;
  align-items: stretch;
  gap: 13px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.trade-condition-option.selected {
  border-color: #111318;
  box-shadow: inset 0 0 0 1px #111318, 0 14px 30px rgba(17, 19, 24, .08);
  background: #f8f9fb;
}

.trade-condition-option.disabled,
.trade-condition-option:disabled {
  cursor: not-allowed;
  opacity: .48;
  background: #f5f6f8;
  box-shadow: none;
}

.trade-phone-pair {
  min-height: 132px;
  border-radius: 8px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
}

.trade-phone-illustration {
  width: 58px;
  height: 112px;
  border: 2px solid #111318;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f6f8);
  position: relative;
  display: block;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
}

.trade-phone-illustration.front {
  transform: none;
}

.phone-speaker {
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: #111318;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-mark {
  position: absolute;
  display: block;
  background: #111318;
  opacity: .62;
}

.phone-mark.tiny {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.phone-mark.small {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.phone-mark.line {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-18deg);
}

.phone-mark.hairline {
  width: 18px;
  height: 1px;
  border-radius: 999px;
  opacity: .46;
  transform: rotate(16deg);
}

.phone-mark.crack {
  width: 2px;
  height: 40px;
  border-radius: 999px;
  transform: rotate(28deg);
}

.phone-mark.one {
  top: 34px;
  right: 13px;
}

.phone-mark.two {
  left: 15px;
  bottom: 29px;
}

.phone-mark.three {
  right: 13px;
  bottom: 18px;
}

.phone-mark.four {
  top: 45px;
  left: 27px;
  height: 28px;
  transform: rotate(-34deg);
}

.phone-mark.five {
  left: 14px;
  top: 25px;
}

.phone-mark.six {
  left: 18px;
  bottom: 33px;
}

.trade-condition-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.trade-condition-copy strong {
  color: #111318;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.trade-condition-copy span {
  color: #717783;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.35;
}

.trade-condition-copy em {
  color: #8b93a1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.trade-summary {
  display: grid;
  gap: 16px;
}

.trade-summary-card {
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.trade-summary-model {
  display: grid;
  gap: 3px;
}

.trade-summary-model strong {
  color: #111318;
  font-size: 22px;
  line-height: 1.1;
}

.trade-summary-model span {
  color: #717783;
  font-size: 14px;
  font-weight: 800;
}

.trade-public-details {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
}

.trade-lines {
  display: grid;
  gap: 8px;
}

.trade-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
  color: #717783;
  font-size: 14px;
  font-weight: 760;
}

.trade-line::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(102,112,133,.18), rgba(102,112,133,.04));
  grid-column: 2;
  grid-row: 1;
}

.trade-line strong {
  color: #111318;
  font-weight: 900;
  text-align: right;
}

.trade-final {
  border-top: 1px solid #e6e8ee;
  padding-top: 18px;
  display: grid;
  gap: 5px;
}

.trade-final span {
  color: #717783;
  font-size: 13px;
  font-weight: 850;
}

.trade-final strong {
  color: #111318;
  font-size: clamp(44px, 8vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}

.trade-final small {
  color: #8b93a1;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.trade-summary-note {
  margin: 0;
  color: #717783;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.trade-shop-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trade-select-label {
  display: grid;
  gap: 6px;
  color: #717783;
  font-size: 11px;
  font-weight: 850;
}

.trade-select-label select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: white;
  color: #111318;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.trade-select-label select:disabled {
  opacity: .48;
  cursor: not-allowed;
  background: #f5f6f8;
}

.trade-main-match {
  display: grid;
}

.trade-recommendations {
  display: grid;
  gap: 10px;
}

.trade-recommendations h4 {
  margin: 0;
  color: #111318;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.trade-next-grid {
  max-height: 430px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-right: 2px;
}

.trade-product-option {
  min-width: 0;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: white;
  padding: 10px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.trade-product-option.selected {
  border-color: #111318;
  box-shadow: inset 0 0 0 1px #111318;
  background: #f8f9fb;
}

.trade-product-option.featured {
  grid-template-columns: 132px 1fr;
  padding: 14px;
  background: #fbfcfd;
}

.trade-product-photo {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f5f6f8;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.trade-product-option.featured .trade-product-photo {
  width: 132px;
}

.trade-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.trade-product-placeholder {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: grid;
  place-items: center;
  color: #8b93a1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.trade-product-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.trade-product-copy strong {
  color: #111318;
  font-size: 15px;
  line-height: 1.1;
}

.trade-product-copy span,
.trade-product-copy em {
  color: #717783;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.28;
}

.trade-product-copy b {
  color: #111318;
  font-size: 18px;
  line-height: 1.05;
}

.trade-product-copy i {
  width: fit-content;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  background: #f8f9fb;
  color: #475467;
  padding: 4px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.trade-product-option.featured .trade-product-copy b {
  font-size: clamp(32px, 6vw, 52px);
  line-height: .95;
}

.trade-product-copy small {
  color: #717783;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.trade-empty {
  grid-column: 1 / -1;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #f8f9fb;
  color: #717783;
  padding: 18px;
  font-size: 14px;
  font-weight: 800;
}

.trade-change-card {
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.trade-change-section {
  display: grid;
  gap: 5px;
}

.trade-change-section > span,
.trade-change-section small {
  color: #717783;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.trade-change-section strong {
  color: #111318;
  font-size: 20px;
  line-height: 1.1;
}

.trade-final.difference {
  border-top: 1px solid #e6e8ee;
  border-bottom: 1px solid #e6e8ee;
  padding: 18px 0;
}

.trade-final.total strong {
  font-size: clamp(48px, 9vw, 78px);
}

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

.trade-benefit-card {
  min-width: 0;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: white;
  padding: 12px;
  display: grid;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.trade-benefit-card.selected {
  border-color: #111318;
  box-shadow: inset 0 0 0 1px #111318;
  background: #f8f9fb;
}

.trade-benefit-image {
  height: 172px;
  border-radius: 8px;
  background: #f5f6f8;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.trade-benefit-image img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 132px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.trade-benefit-copy {
  display: grid;
  gap: 7px;
}

.trade-benefit-copy strong {
  color: #111318;
  font-size: 15px;
  line-height: 1.12;
}

.trade-benefit-copy span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #717783;
  font-size: 12px;
  font-weight: 850;
}

.trade-benefit-copy i {
  color: #717783;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.trade-benefit-copy b {
  border-radius: 999px;
  background: #111318;
  color: white;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
}

.trade-benefit-copy em {
  color: #111318;
  font-size: 28px;
  font-style: normal;
  font-weight: 950;
  line-height: .95;
}

.trade-benefit-copy u {
  color: #717783;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-decoration: none;
}

.trade-benefit-copy small {
  min-height: 34px;
  border: 1px solid #111318;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111318;
  font-size: 12px;
  font-weight: 900;
}

.trade-benefit-card.selected .trade-benefit-copy small {
  background: #111318;
  color: white;
}

.trade-benefit-summary {
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
  display: grid;
  gap: 9px;
}

.trade-benefit-summary > span {
  color: #111318;
  font-size: 14px;
  font-weight: 950;
}

.trade-benefit-summary p {
  margin: 0;
  color: #717783;
  font-size: 13px;
  font-weight: 760;
}

.trade-benefit-summary div,
.trade-total-breakdown div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #475467;
  font-size: 13px;
  font-weight: 820;
}

.trade-benefit-summary small,
.trade-total-breakdown strong {
  color: #111318;
  font-size: 13px;
  font-weight: 950;
}

.trade-benefit-summary.final {
  background: white;
}

.trade-total-breakdown {
  border-top: 1px solid #e6e8ee;
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.trade-review {
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.trade-review h3 {
  margin: 0;
  color: #111318;
  font-size: 24px;
  line-height: 1.1;
}

.trade-review p {
  margin: 0;
  color: #717783;
  font-weight: 750;
  line-height: 1.4;
}

.trade-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.trade-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

@media (max-width: 760px) {
  .trade-entry {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 12px;
  }

  .trade-entry-copy {
    min-height: 0;
    width: 100%;
    padding: 18px 14px;
  }

  .trade-entry-button {
    width: min(100%, 260px);
    justify-self: center;
  }

  .trade-button {
    width: 100%;
  }

  .trade-modal {
    padding: 0;
    align-items: end;
  }

  .trade-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }

  .trade-body {
    padding: 18px 14px;
  }

  .trade-options {
    grid-template-columns: 1fr;
  }

  .trade-battery-row,
  .trade-choices,
  .trade-condition-grid,
  .trade-condition-option,
  .trade-benefits-grid,
  .trade-shop-filters,
  .trade-next-grid,
  .trade-product-option,
  .trade-product-option.featured {
    grid-template-columns: 1fr;
  }

  .trade-condition-option {
    min-height: 0;
  }

  .trade-next-grid {
    max-height: 52vh;
  }

  .trade-product-photo,
  .trade-product-option.featured .trade-product-photo {
    width: 100%;
    max-height: 180px;
  }

  .trade-actions,
  .trade-actions-right {
    display: grid;
    width: 100%;
    margin-left: 0;
  }
}
