/* Sell wizard — trade-in style with step visuals */

.sell-page .sell-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1214 50%, var(--color-red-dark) 100%);
  color: #fff;
  padding: 2.5rem 0;
  overflow: hidden;
}

.sell-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.sell-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.sell-page .sell-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sell-page .sell-hero-copy > p {
  opacity: 0.9;
  max-width: 440px;
  margin-bottom: 1.25rem;
}

.sell-hero-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.sell-hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.sell-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.sell-wizard-wrap {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.sell-wizard-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Side visual panel */
.sell-wizard-aside {
  position: sticky;
  top: 6rem;
}

.sell-visual-panel {
  background: linear-gradient(160deg, #1a1a1a 0%, #3d1518 100%);
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 16px 48px rgba(215, 25, 32, 0.2);
  overflow: hidden;
}

.sell-visual-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.sell-visual-step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.sell-visual-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
}

.sell-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-visual-img.is-pop {
  animation: sell-img-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sell-img-pop {
  0% { opacity: 0.4; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.sell-visual-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.sell-visual-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sell-visual-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.sell-visual-tips li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.sell-visual-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.sell-visual-selection {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sell-visual-selection-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.sell-visual-selection-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

/* Main wizard */
.sell-wizard-main {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.sell-progress {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.sell-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.1rem;
  height: 3px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  z-index: 0;
}

.sell-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--color-red);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sell-progress-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-muted);
  text-align: center;
}

.sell-progress-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sell-progress-step.is-active .sell-progress-icon {
  border-color: var(--color-red);
  background: var(--color-red-light);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.25);
}

.sell-progress-step.is-active {
  color: var(--color-red);
}

.sell-progress-step.is-done .sell-progress-icon {
  border-color: var(--color-red);
  background: var(--color-red);
}

.sell-step {
  animation: sell-step-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sell-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.sell-step-head {
  margin-bottom: 1.25rem;
}

.sell-step h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.sell-step-lead {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.sell-subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}

.sell-step-tip {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fef9e7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #78350f;
}

.sell-back {
  background: none;
  border: none;
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
}

.sell-back:hover {
  text-decoration: underline;
}

/* Cards */
.sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.sell-grid-types {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.sell-grid-brands {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.sell-grid-models {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.sell-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s;
}

.sell-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-red);
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.12);
}

.sell-card.is-selected {
  border-color: var(--color-red);
  background: var(--color-red-light);
  box-shadow: 0 8px 20px rgba(215, 25, 32, 0.15);
}

.sell-card-type {
  padding: 0;
  overflow: hidden;
}

.sell-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}

.sell-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sell-card-type:hover .sell-card-img-wrap img {
  transform: scale(1.06);
}

.sell-card-type .sell-card-icon,
.sell-card-type strong,
.sell-card-type .sell-card-desc {
  padding: 0 0.75rem;
}

.sell-card-type .sell-card-icon {
  margin-top: 0.5rem;
}

.sell-card-type strong {
  padding-bottom: 0.25rem;
}

.sell-card-type .sell-card-desc {
  padding-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.sell-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.sell-card strong {
  font-size: 0.92rem;
}

.sell-card span {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.3;
}

/* Brand cards with logo area */
.sell-card-brand .sell-brand-initial {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-red-light);
  color: var(--color-red);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* Condition */
.sell-condition-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sell-condition-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sell-condition-card:hover {
  transform: translateX(4px);
  border-color: var(--color-red);
  box-shadow: 0 6px 20px rgba(215, 25, 32, 0.08);
}

.sell-condition-card.is-selected {
  border-color: var(--color-red);
  background: var(--color-red-light);
}

.sell-condition-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sell-condition-body {
  flex: 1;
  min-width: 0;
}

.sell-condition-body strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.sell-condition-body span {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.sell-condition-arrow {
  color: var(--color-red);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.sell-condition-card:hover .sell-condition-arrow,
.sell-condition-card.is-selected .sell-condition-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.sell-storage-wrap {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: 14px;
}

.sell-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sell-chip {
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sell-chip:hover {
  border-color: var(--color-red);
}

.sell-chip.is-selected {
  border-color: var(--color-red);
  background: var(--color-red);
  color: #fff;
}

/* Summary & form */
.sell-summary-rich {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sell-summary-rich dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.sell-summary-rich dt {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.sell-summary-rich dd {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

.sell-summary-highlight {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #fecaca;
}

.sell-summary-highlight-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.sell-summary-highlight strong {
  font-size: 1.15rem;
  color: var(--color-red);
}

.sell-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sell-form-grid .form-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.sell-form-trust {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.sell-submit-btn {
  font-size: 1.05rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(215, 25, 32, 0.3);
}

.sell-submit-btn:hover {
  transform: translateY(-2px);
}

/* Device photo upload (max 5) */
.sell-photos-block {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f8f9fa;
  border: 1px dashed #d0d0d0;
  border-radius: 14px;
}

.sell-photos-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.sell-photos-optional {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.sell-photos-help {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.sell-photos-input {
  display: block;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.88rem;
  cursor: pointer;
}

.sell-photos-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sell-photos-count {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  padding: 0.25rem 0.65rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.sell-photos-count.is-full {
  color: var(--color-red);
  border-color: #fecaca;
  background: #fef2f2;
}

.sell-photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.sell-photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: #fff;
  animation: sell-photo-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sell-photo-pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.sell-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sell-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sell-photo-remove:hover {
  background: var(--color-red);
}

.sell-loading {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem;
}

.sell-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted);
  padding: 1.5rem;
}

/* How it works */
.sell-process-lead {
  text-align: center;
  color: var(--color-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.sell-process .fw-process-step {
  position: relative;
}

.sell-process-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

@media (max-width: 992px) {
  .sell-wizard-layout {
    grid-template-columns: 1fr;
  }

  .sell-wizard-aside {
    position: static;
    order: -1;
  }

  .sell-visual-panel {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem 1.25rem;
    align-items: center;
  }

  .sell-visual-badge { grid-column: 1 / -1; }
  .sell-visual-img-wrap { grid-row: 2; margin: 0; aspect-ratio: 1; }
  .sell-visual-title { grid-column: 2; margin: 0; font-size: 1rem; }
  .sell-visual-text { grid-column: 2; margin: 0; font-size: 0.85rem; }
  .sell-visual-tips { grid-column: 1 / -1; display: none; }
  .sell-visual-selection { grid-column: 1 / -1; margin: 0; padding-top: 0.75rem; }

  .sell-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sell-hero-perks { justify-content: center; }
  .sell-hero-visual { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .sell-wizard-main {
    padding: 1.25rem;
  }

  .sell-progress-step {
    font-size: 0.62rem;
  }

  .sell-progress-icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.85rem;
  }

  .sell-form-grid {
    grid-template-columns: 1fr;
  }

  .sell-grid-types,
  .sell-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sell-visual-panel {
    grid-template-columns: 1fr;
  }

  .sell-visual-img-wrap {
    max-height: 160px;
  }
}

@media (max-width: 400px) {
  .sell-grid-types,
  .sell-grid {
    grid-template-columns: 1fr;
  }
}

.sell-card-custom {
  width: 100%;
  margin-top: 0.75rem;
  border-style: dashed;
  border-color: #ccc;
  background: #fffef8;
}

.sell-card-custom:hover {
  border-color: var(--color-red);
  background: #fff9f9;
}

.sell-custom-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.sell-custom-fields {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.sell-grid-series {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
