:root{
  --ct-bg0:#020617;
  --ct-bg1:#061028;
  --ct-card:rgba(255,255,255,.06);
  --ct-stroke:rgba(255,255,255,.10);
  --ct-text:rgba(255,255,255,.92);
  --ct-sub:rgba(255,255,255,.70);
  --ct-dim:rgba(255,255,255,.55);
  --ct-blue:#3b82f6;
}

/* Keep all Sell-page layout safely inside the viewport */
body.ct-sell *,
body.ct-sell *::before,
body.ct-sell *::after {
  box-sizing: border-box;
}

body.ct-sell{
  margin:0;
  color:var(--ct-text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 500px at 50% 25%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(900px 400px at 50% 70%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, var(--ct-bg1), var(--ct-bg0));
  min-height:100vh;
}

.ct-sell__main{
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.ct-sell__hero{
  text-align:center;
  margin-top: 10px;
}
.ct-sell__hero h1{
  font-size: 56px;
  letter-spacing:-.02em;
  margin: 20px 0 10px;
}
.ct-sell__sub{ color:var(--ct-sub); margin:0; font-size:16px; }
.ct-sell__fine{ color:var(--ct-dim); margin:10px 0 0; font-size:12px; }

.ct-sell__stepper{
  margin: 28px auto 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
}

.ct-step{
  width: 38px; height: 38px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--ct-stroke);
  color: rgba(255,255,255,.75);
  font-weight: 700;
}
.ct-step--active{
  background: rgba(59,130,246,.95);
  border-color: rgba(59,130,246,.95);
  color: white;
}
.ct-step--done{
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.55);
  color: rgba(255,255,255,.95);
}
.ct-step-line{
  width: 70px;
  height: 2px;
  background: rgba(255,255,255,.12);
}

.ct-sell__card{
  max-width: 720px;
  margin: 0 auto;
  background: var(--ct-card);
  border: 1px solid var(--ct-stroke);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.ct-panel h2{
  margin: 0 0 16px;
  font-size: 22px;
}

.ct-field{
  display:block;
  margin: 6px 0 18px;
}
.ct-field input{
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--ct-text);
  font-size: 18px;
  padding: 0 16px;
  outline: none;
}
.ct-field input:focus{
  border-color: rgba(59,130,246,.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,.20);
}

.ct-field--price{ position:relative; }
.ct-field__prefix{
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.75);
  font-size: 18px;
  pointer-events:none;
}
.ct-field--price input{ padding-left: 38px; }

.ct-help{
  margin: -8px 0 18px;
  color: var(--ct-sub);
  font-size: 13px;
}

.ct-actions{
  display:flex;
  gap: 12px;
  justify-content: space-between;
}
.ct-btn{
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--ct-text);
  padding: 0 18px;
  font-weight: 650;
  cursor:pointer;
  flex:1;
}
.ct-btn--primary{
  background: rgba(59,130,246,.95);
  border-color: rgba(59,130,246,.95);
  color: white;
}
.ct-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ct-summary{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 16px;
}
.ct-summary__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 10px;
  border-radius: 12px;
}
.ct-summary__row span{ color: var(--ct-sub); font-size: 14px; }
.ct-summary__row strong{ font-size: 16px; }

.ct-info{
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.30);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.ct-info__title{
  color: rgba(59,130,246,.95);
  font-weight: 750;
  margin-bottom: 8px;
}
.ct-info ul{
  margin: 0;
  padding-left: 18px;
  color: var(--ct-text);
  font-size: 13px;
}
.ct-info li{ margin: 6px 0; }

.ct-error{
  margin-top: 14px;
  color: rgba(255,120,120,.95);
  font-size: 13px;
}

.ct-hidden{ display:none !important; }

.ct-sell__stats{
  display:flex;
  justify-content:center;
  gap: 90px;
  margin-top: 42px;
  text-align:center;
}
.ct-stat__big{
  font-size: 30px;
  font-weight: 800;
}
.ct-stat__small{
  color: var(--ct-sub);
  font-size: 12px;
  margin-top: 6px;
}

/* mobile */
@media (max-width: 720px){
  .ct-sell__hero h1{ font-size: 38px; }
  .ct-step-line{ width: 44px; }
  .ct-actions{ flex-direction: column; }
  .ct-sell__stats{ gap: 34px; }
}

/* Make the Step 1 plate input sit nicely inside the card, not edge-to-edge */
.ct-sell__card .ct-panel:first-of-type .ct-field {
  max-width: 640px;      /* narrower than the outer card */
  margin: 16px auto 18px; /* center horizontally, keep similar vertical spacing */
}

/* Make sell-page inputs sit nicely inside the card on all steps */
.ct-sell__card .ct-field {
  max-width: 640px;        /* narrower than the outer card */
  margin: 16px auto 18px;  /* center horizontally with same vertical spacing */
}


.ct-btn--primary{
  background: rgba(59,130,246,.95);
  border-color: rgba(59,130,246,.95);
  color: white;
}

/* Highlighted publish CTA on step 3 */
.ct-btn--publish{
  position: relative;
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.55);
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    opacity .12s ease;
}

.ct-btn--publish:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(15,23,42,.7);
}

.ct-btn--publish:active:not(:disabled){
  transform: translateY(0);
  box-shadow: 0 14px 32px rgba(15,23,42,.6);
}

/* Mobile refinement: keep plate input comfortably inside the card */
@media (max-width: 720px) {
  /* Slightly smaller padding so the outer card doesn't feel cramped */
  .ct-sell__card {
    padding: 22px 18px 24px;
  }

  /* Step 1: inner column for the plate field + button */
  .ct-sell__card .ct-panel[data-step="1"] {
    max-width: 360px;
    margin: 0 auto;
  }

  .ct-sell__card .ct-panel[data-step="1"] .ct-field {
    margin: 12px 0 16px;
  }

  .ct-sell__card .ct-panel[data-step="1"] .ct-field input {
    width: 100%;
    height: 52px;
  }

  /* Make the Continue button match the same inner column width */
  .ct-sell__card .ct-panel[data-step="1"] .ct-btn {
    display: block;
    width: 100%;
    margin: 4px 0 0;
  }
}

/* Mobile: make Back / Continue buttons full-width inside the card */
@media (max-width: 720px) {
  .ct-actions {
    flex-direction: column;      /* already set earlier, re-assert here */
  }

  .ct-actions .ct-btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile: make Back / Continue buttons feel taller and better spaced */
@media (max-width: 720px) {
  .ct-actions {
    flex-direction: column;   /* keep them stacked */
    gap: 10px;                /* more vertical space between the two */
    align-items: stretch;     /* let children expand to full width */
  }

  .ct-actions .ct-btn {
    width: 100%;
    height: 58px;             /* a bit taller than the desktop default */
    font-size: 14px;
    padding: 0 18px;          /* keep side padding consistent */
    text-align: center;
  }
}

/* Mobile: make Back / Continue (and Publish) nice chunky CTAs */
@media (max-width: 720px) {
  /* Stack and stretch the action row for steps 2 + 3 */
  .ct-panel[data-step="2"] .ct-actions,
  .ct-panel[data-step="3"] .ct-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ct-panel[data-step="2"] .ct-actions .ct-btn,
  .ct-panel[data-step="3"] .ct-actions .ct-btn {
    flex: 0 0 auto;           /* stop flex:1 from the base .ct-btn */
    width: 100%;
    height: 56px !important;  /* taller than default */
    line-height: 56px;
    padding: 0 18px;
    font-size: 14px;
    text-align: center;
  }
}
