:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #66717b;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe5e7;
  --green: #1f7a5a;
  --green-dark: #14543f;
  --amber: #f2b84b;
  --red: #b84c3d;
  --blue: #315f87;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px max(18px, calc((100% - 1180px) / 2));
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(223, 229, 231, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-dark);
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 900;
}

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

.nav-login,
.nav-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.nav-login {
  min-height: 38px;
  border-color: rgba(31, 122, 90, 0.22);
  padding: 0 14px;
  color: var(--green-dark);
  background: #fff;
  font-size: 0.88rem;
}

.nav-action,
.button.primary {
  color: #fff;
  background: var(--green);
}

.nav-login:hover {
  border-color: rgba(31, 122, 90, 0.38);
  background: #f0f8f4;
}

.nav-action:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: min(616px, calc(100vh - 150px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111a1f;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 25, 30, 0.88), rgba(15, 25, 30, 0.44) 50%, rgba(15, 25, 30, 0.18)),
    linear-gradient(0deg, rgba(15, 25, 30, 0.9), rgba(15, 25, 30, 0.08) 58%),
    url("sell-my-wheels-background.png") center bottom / cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
}

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

.hero .eyebrow {
  color: var(--amber);
  font-size: clamp(0.84rem, 1vw, 1rem);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.market-shell {
  padding-top: 42px;
}

@media (min-width: 881px) {
  .site-header {
    gap: 18px;
    padding: 12px max(24px, calc((100% - 1180px) / 2));
  }

  .brand {
    gap: 16px;
  }

  .brand-logo {
    width: 82px;
    height: 72px;
  }

  .brand strong {
    font-size: 1.25rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand small {
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .nav-action {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .nav-login {
    min-height: 36px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: min(616px, calc(100vh - 150px));
  }

  .hero-content,
  .section {
    width: min(1180px, calc(100% - 48px));
  }

  .hero-content {
    padding: 34px 0;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(2.9rem, 3.9vw, 4.25rem);
    line-height: 1;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .hero p:not(.eyebrow) {
    max-width: 660px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .button {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(760px, 100%);
    margin-top: 22px;
    border-radius: 8px;
  }

  .hero-stats div {
    padding: 14px 16px;
  }

  .hero-stats dt {
    font-size: 1rem;
  }

  .hero-stats dd {
    font-size: 0.85rem;
  }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 36px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2,
.seller-copy h1,
.seller-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.seller-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 160px 170px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

input[type="file"] {
  padding: 8px;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 850;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 122, 90, 0.26);
  outline-offset: 2px;
}

.market-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.refine-panel,
.listing-card,
.listing-form,
.seller-signup-form,
.seller-login-form,
.credit-topup-panel,
.seller-session-bar,
.seller-listing-card,
.admin-login-form,
.admin-card,
.subscription-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.refine-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
}

.refine-panel h3,
.listing-form h2,
.listing-form h3,
.seller-signup-form h2,
.seller-signup-form h3,
.seller-login-form h2,
.seller-login-form h3,
.credit-topup-panel h2,
.credit-topup-panel h3,
.seller-listing-card h3,
.admin-login-form h2,
.admin-login-form h3,
.admin-card h2,
.admin-card h3 {
  margin: 0;
}

.refine-panel label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.refine-panel input[type="checkbox"] {
  min-height: auto;
}

.price-range {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.price-range input {
  padding: 0;
}

.price-range strong {
  color: var(--ink);
}

.listing-count {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

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

.listing-card {
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.07);
}

.listing-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d8e1df;
}

.listing-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.listing-topline,
.tag-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.pill,
.tag,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green-dark);
  background: #e8f3ed;
  font-size: 0.78rem;
  font-weight: 900;
}

.price {
  color: var(--blue);
  font-size: 1.1rem;
}

.listing-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.meta,
.description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tag-row {
  justify-content: flex-start;
}

.tag {
  color: #6d4a00;
  background: #fff1ce;
}

.contact-button,
.admin-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.contact-button:hover,
.admin-actions button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.listing-detail-section {
  position: relative;
  display: grid;
  gap: 18px;
}

.section.listing-detail-section {
  padding-top: clamp(22px, 3vw, 34px);
}

.listing-detail-section #listing-detail-status:empty {
  display: none;
}

.listing-detail-section .back-link {
  position: absolute;
  z-index: 5;
  top: calc(clamp(22px, 3vw, 34px) + 14px);
  left: 14px;
  box-shadow: 0 8px 22px rgba(23, 32, 38, 0.16);
}

.back-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-dark);
  background: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.back-link:hover {
  border-color: var(--green);
}

.listing-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.listing-detail-media {
  position: relative;
  background: #d8e1df;
}

.listing-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(23, 32, 38, 0.16);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-button:hover {
  color: var(--green-dark);
  border-color: var(--green);
}

.carousel-button-prev {
  left: 14px;
}

.carousel-button-next {
  right: 14px;
}

.carousel-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  margin: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(23, 32, 38, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.listing-detail-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
}

.listing-public-id {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-detail-body h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--line);
}

.listing-facts div {
  padding: 14px;
  background: #fff;
}

.listing-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-facts dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.listing-extra {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background: #fff;
}

.listing-extra h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.listing-extra-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--line);
}

.listing-extra-facts div {
  padding: 14px;
  background: #fff;
}

.listing-extra-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-extra-facts dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.contact-modal {
  width: min(520px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.contact-modal::backdrop {
  background: rgba(15, 25, 30, 0.5);
}

.contact-modal-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.modal-heading h2 {
  margin: 0;
}

.modal-close {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.turnstile-box {
  min-height: 68px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.sell-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 38px);
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.sell-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.38), rgba(251, 250, 246, 0.32) 46%, rgba(251, 250, 246, 0.76) 78%),
    linear-gradient(0deg, rgba(251, 250, 246, 0.7), rgba(251, 250, 246, 0.24) 58%, rgba(251, 250, 246, 0.46)),
    url("seller-page-background.png") left bottom / cover no-repeat;
}

.seller-copy {
  display: grid;
  width: min(100%, 940px);
  justify-self: center;
  justify-items: center;
  scroll-margin-top: 118px;
  text-align: center;
}

.seller-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 18px;
}

.seller-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.seller-benefits span {
  border: 1px solid rgba(31, 122, 90, 0.16);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--green-dark);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.seller-workspace {
  display: grid;
  width: min(100%, 940px);
  gap: 18px;
  justify-self: center;
}

.subscription-box {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 22px 20px 20px;
  box-shadow: 0 12px 32px rgba(23, 32, 38, 0.06);
}

.subscription-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--green);
}

.subscription-box.is-selected {
  border-color: rgba(31, 122, 90, 0.42);
  box-shadow: 0 14px 34px rgba(31, 122, 90, 0.12);
}

.seller-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  text-align: left;
}

.seller-plan-note {
  margin-top: 16px;
}

.plan-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.plan-label {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.plan-tag {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: #e7f1ec;
  font-size: 0.72rem;
  font-weight: 850;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.subscription-box strong {
  font-size: clamp(2.15rem, 3vw, 2.75rem);
  line-height: 1;
}

.subscription-box small {
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-credits {
  color: var(--ink);
  font-weight: 900;
}

.subscription-box .plan-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan-button {
  width: 100%;
  margin-top: 4px;
}

.plan-button[aria-pressed="true"] {
  background: var(--green-dark);
}

.listing-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.seller-signup-form {
  display: grid;
  width: min(100%, 760px);
  justify-self: center;
  gap: 16px;
  scroll-margin-top: 118px;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(23, 32, 38, 0.08);
}

.signup-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.signup-heading p {
  margin: 8px 0 0;
}

.selected-plan {
  display: flex;
  min-width: min(100%, 320px);
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--green-dark);
  background: #f3f8f5;
  text-align: left;
}

.selected-plan-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.selected-plan-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-plan strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.selected-plan small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.selected-plan-change {
  flex: 0 0 auto;
  min-height: 32px;
  margin-top: 0;
  border: 1px solid rgba(31, 122, 90, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--green-dark);
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.selected-plan-change:hover {
  border-color: rgba(31, 122, 90, 0.48);
  background: #eef7f2;
}

.seller-signup-form.requires-plan .selected-plan {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.signup-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.signup-fields legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup-fields:disabled {
  opacity: 0.56;
  pointer-events: none;
}

.terms-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.terms-check a {
  color: var(--green-dark);
  font-weight: 900;
}

.credit-topup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
}

.credit-topup-panel h2 {
  font-size: 1.1rem;
}

.credit-topup-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.credit-topup-panel.needs-credits {
  border-color: rgba(184, 76, 61, 0.34);
  box-shadow: 0 14px 34px rgba(184, 76, 61, 0.08);
}

.credit-topup-panel.needs-credits h2 {
  color: var(--red);
}

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

.credit-pack-options button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.credit-pack-options button[aria-pressed="true"] {
  border-color: var(--green);
  background: #f0f8f4;
  box-shadow: inset 0 0 0 1px var(--green);
}

.credit-pack-options span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credit-pack-options strong {
  font-size: 1rem;
}

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

.form-wide {
  grid-column: 1 / -1;
}

.image-upload-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.form-note.is-error {
  color: var(--red);
}

.seller-login-prompt {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 8px;
  padding: 12px 14px 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(23, 32, 38, 0.08);
  font-weight: 850;
}

.seller-login-prompt button {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(31, 122, 90, 0.18);
}

.seller-login-prompt button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.sell-section.seller-signup-step .seller-login-prompt {
  width: min(100%, 760px);
}

.admin-section {
  display: grid;
  align-content: start;
  min-height: calc(100vh - 214px);
  padding-top: clamp(48px, 9vw, 94px);
}

.admin-login-panel {
  display: grid;
  width: min(100%, 430px);
  gap: 18px;
  justify-self: center;
  text-align: center;
}

.admin-login-heading {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.admin-login-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.admin-login-lock {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--green-dark);
  background: #e6f2ed;
  font-size: 2rem;
  line-height: 1;
}

.seller-login-form,
.admin-login-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.seller-login-form {
  width: min(100%, 460px);
  justify-self: center;
  scroll-margin-top: 118px;
  padding: 26px;
  box-shadow: 0 16px 42px rgba(23, 32, 38, 0.08);
}

.seller-login-modal .seller-login-form {
  gap: 18px;
  padding: 28px;
}

.seller-login-modal .modal-heading {
  margin-bottom: 2px;
}

.seller-login-modal .turnstile-box {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  margin: 2px 0 0;
}

.seller-login-modal .button.primary {
  margin-top: 0;
}

.forgot-password-link {
  justify-self: start;
  border: 0;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-password-reset-form {
  display: grid;
  gap: 16px;
}

.seller-password-reset-form[hidden],
.forgot-password-link[hidden] {
  display: none;
}

.seller-login-form > .form-note:empty {
  display: none;
}

.seller-login-copy {
  margin: -4px 0 2px;
  color: var(--muted);
  line-height: 1.5;
}

.seller-login-form .modal-heading .seller-login-copy {
  margin-top: 6px;
}

.seller-faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 5vw, 58px);
  padding-top: clamp(46px, 6vw, 72px);
}

.faq-heading {
  display: grid;
  align-content: start;
  gap: 12px;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.faq-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.05);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green-dark);
  background: #e7f1ec;
  font-size: 1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-form {
  text-align: left;
}

.seller-session-bar,
.admin-session-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seller-session-bar p,
.admin-session-bar p {
  margin: 0;
}

#seller-credits {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-left: 4px;
  border: 1px solid rgba(31, 122, 90, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green-dark);
  background: #e7f1ec;
  font-weight: 900;
  vertical-align: middle;
}

.seller-session-bar button,
.admin-session-bar button,
.seller-listing-card button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-summary div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-summary strong {
  font-size: 2rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button[aria-pressed="true"] {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.admin-board {
  display: grid;
  gap: 14px;
}

.admin-board[hidden],
.admin-login-panel[hidden],
.admin-session-bar[hidden],
.admin-summary[hidden],
.admin-tabs[hidden],
.seller-copy[hidden],
.seller-faq-section[hidden],
.seller-signup-form[hidden],
.seller-login-prompt[hidden],
.seller-login-form[hidden],
.seller-session-panel[hidden] {
  display: none;
}

.seller-board {
  display: grid;
  gap: 14px;
}

.listing-form + .seller-board {
  margin-top: 24px;
}

.seller-listing-card,
.admin-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.admin-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.seller-listing-thumbnail {
  width: 112px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f1;
}

.seller-listing-card p,
.admin-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.seller-listing-card button {
  padding: 0 14px;
}

.seller-listing-card button[data-action="delete"] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-actions button {
  padding: 0 14px;
}

.admin-actions button[data-action="preview"] {
  color: var(--green-dark);
  background: #e7f1ec;
  border-color: rgba(31, 122, 90, 0.22);
}

.admin-preview-modal {
  width: min(1040px, calc(100% - 24px));
}

.admin-preview-panel {
  max-height: calc(100vh - 32px);
  overflow: auto;
  gap: 20px;
}

.admin-preview-summary {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-preview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-preview-gallery,
.admin-preview-details,
.admin-preview-description {
  min-width: 0;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f1;
  object-fit: cover;
}

.admin-preview-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-preview-thumbnails[hidden] {
  display: none;
}

.admin-preview-thumbnails button {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.admin-preview-thumbnails button[aria-pressed="true"] {
  border-color: var(--green);
}

.admin-preview-thumbnails img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.admin-preview-price {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 1.75rem;
  font-weight: 950;
}

.admin-preview-facts {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-preview-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-preview-facts dd {
  min-width: 0;
  margin: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-preview-description {
  margin-top: 16px;
}

.admin-preview-description h3 {
  margin: 0 0 8px;
}

.admin-preview-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (min-width: 881px) {
  .sell-section.seller-authenticated {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sell-section.seller-authenticated .seller-workspace {
  width: 100%;
}

.admin-actions button[data-action="approve"] {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.admin-actions button[data-action="reject"] {
  color: var(--red);
}

.admin-actions button[data-action="delete"] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.legal-page {
  width: min(860px, calc(100% - 36px));
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-page h2 {
  margin: 36px 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page p {
  margin: 16px 0 0;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-page a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 22px;
  align-items: center;
  padding: 28px max(18px, calc((100% - 1180px) / 2));
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer strong {
  justify-self: start;
  color: var(--green-dark);
}

.site-footer span {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  justify-self: center;
}

.site-footer > a {
  justify-self: end;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: min(630px, calc(100vh - 104px));
  }

  .section-heading,
  .toolbar,
  .market-layout,
  .listing-detail,
  .split-section,
  .seller-faq-section,
  .credit-topup-panel,
  .admin-login-panel,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .refine-panel,
  .seller-copy {
    position: static;
  }

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

  .section.listing-detail-section {
    padding-top: 12px;
  }

  .listing-detail-section .back-link {
    top: 24px;
    left: 12px;
  }

  .listing-detail-media img {
    min-height: 320px;
  }

  .listing-extra-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-preview-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: clamp(8px, 2.5vw, 12px);
    padding: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: clamp(0.95rem, 4vw, 1.12rem);
    white-space: nowrap;
  }

  .brand small {
    display: block;
    font-size: clamp(0.64rem, 2.8vw, 0.76rem);
    white-space: nowrap;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-login,
  .nav-action {
    display: inline-flex;
    min-height: clamp(38px, 10vw, 46px);
    padding: 0 clamp(10px, 3.2vw, 14px);
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    white-space: nowrap;
  }

  .nav-login {
    min-height: clamp(34px, 9vw, 40px);
    padding: 0 clamp(8px, 2.8vw, 12px);
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  }

  .brand-logo {
    width: clamp(52px, 15vw, 68px);
    height: clamp(48px, 14vw, 62px);
  }

  .admin-preview-panel {
    padding: 18px;
  }

  .admin-preview-facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-preview-facts dd {
    margin-bottom: 8px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding: 38px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero .eyebrow {
    font-size: clamp(0.76rem, 3vw, 0.95rem);
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
    border-radius: 8px;
  }

  .hero-stats dt {
    font-size: 1rem;
  }

  .hero-stats dd {
    font-size: 0.86rem;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 54px 0;
  }

  .section.listing-detail-section {
    padding-top: 12px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-inline: 18px;
    text-align: center;
  }

  .form-grid,
  .signup-heading,
  .credit-pack-options,
  .seller-plans,
  .listing-facts,
  .listing-extra-facts,
  .seller-listing-card,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .seller-listing-thumbnail {
    width: 100%;
    max-height: 220px;
  }

  .hero-stats div,
  .seller-signup-form,
  .listing-form,
  .faq-item summary {
    padding: 16px;
  }

  .selected-plan {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .selected-plan-change {
    min-height: 34px;
  }

  .faq-item p {
    padding: 0 16px 16px;
  }
}
