:root {
  --bg: #f7f1e8;
  --bg-deep: #f0e1cf;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffaf3;
  --ink: #1e1a18;
  --muted: #6d6259;
  --line: rgba(62, 43, 29, 0.12);
  --accent: #df6d2d;
  --accent-deep: #b24b14;
  --leaf: #215849;
  --gold: #e6b84e;
  --shadow: 0 18px 45px rgba(66, 37, 18, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(230, 184, 78, 0.32), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(33, 88, 73, 0.18), transparent 22%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 52%, #fbf4ea 100%);
}

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


.page-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(20px);
  background: rgba(251, 247, 241, 0.78);
  border-bottom: 1px solid rgba(62, 43, 29, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark strong,
.hero-title,
.section-head h2,
.info-card h3,
.listing-card__title,
.showcase-title,
.listing-modal h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), #f5a36b);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(223, 109, 45, 0.28);
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
}

.nav-link.active {
  color: var(--ink);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ink);
}

.hero-section {
  padding: 0.9rem 0 0.4rem;
}

.page-hero {
  padding: 1rem 0 0.6rem;
}

.auth-main {
  padding: 1.1rem 0 1.4rem;
}

.auth-section {
  padding: 0.4rem 0 1rem;
}

.page-hero__card,
.marketplace-results-shell,
.filter-panel__body,
.seller-cta-card,
.escrow-modal,
.auth-panel,
.auth-modal {
  border-radius: 26px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 16px 34px rgba(66, 37, 18, 0.09);
}

.page-hero__card {
  padding: 1.25rem;
}

.page-hero__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.page-hero__row h1 {
  margin: 0.2rem 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero__row p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.auth-panel {
  height: 100%;
  padding: 1.25rem;
}

.auth-panel--accent {
  background:
    radial-gradient(circle at top left, rgba(230, 184, 78, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.98), rgba(241, 231, 215, 0.95));
}

.auth-panel--accent h1,
.auth-panel--form h2,
.auth-modal h3 {
  margin: 0.25rem 0 0.7rem;
  font-family: "Space Grotesk", sans-serif;
}

.auth-panel--accent h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-panel--accent p,
.auth-footer-note,
.auth-modal p,
.auth-points {
  color: var(--muted);
}

.auth-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.auth-points li + li {
  margin-top: 0.55rem;
}

.auth-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-alt-link,
.auth-link,
.filter-reset {
  color: var(--accent-deep);
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field .form-control {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(62, 43, 29, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.auth-field .form-control:focus,
.filter-select:focus {
  border-color: rgba(33, 88, 73, 0.4);
  box-shadow: 0 0 0 0.18rem rgba(33, 88, 73, 0.12);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-submit {
  min-height: 52px;
}

.auth-check {
  color: var(--muted);
}

.auth-footer-note {
  margin: 1rem 0 0;
}

.auth-footer-note a {
  color: var(--accent-deep);
  font-weight: 700;
}

.auth-modal {
  padding: 0.25rem 0.25rem 1rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid rgba(62, 43, 29, 0.08);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(145deg, rgba(255, 249, 242, 0.95), rgba(244, 233, 217, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 109, 45, 0.14), transparent 68%);
}

.eyebrow-pill,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(33, 88, 73, 0.1);
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-title {
  margin: 1rem 0 0.85rem;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-link,
.info-card p,
.listing-card__desc,
.listing-modal p,
.flow-step p {
  color: var(--muted);
}

.search-panel {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-panel__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(62, 43, 29, 0.08);
}

.search-panel__field i {
  color: var(--accent);
  font-size: 1.1rem;
}

.search-panel__field .form-control {
  padding: 0;
  background: transparent;
  font-size: 1rem;
}

.btn-accent {
  min-height: 54px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(223, 109, 45, 0.25);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  background: linear-gradient(135deg, #d96626, #9d4414);
}

.hero-showcase {
  position: relative;
  min-height: 310px;
}

.popular-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.hero-listing-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fffefb, #f4ebde);
  box-shadow: 0 20px 38px rgba(66, 37, 18, 0.13);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-listing-card.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-listing-card .listing-card__desc {
  min-height: 0;
}

.hero-listing-card .listing-card__meta {
  margin-bottom: 0;
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.showcase-title {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.showcase-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.slider-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(66, 37, 18, 0.08);
}

.slider-nav:hover,
.slider-nav:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #163b31);
}

.listing-card__top,
.listing-card__meta,
.listing-card__footer,
.section-head,
.info-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tiny-status,
.modal-info-grid small {
  color: var(--muted);
  font-size: 0.83rem;
}

.market-dots {
  position: absolute;
  top: 2.4rem;
  right: 1.5rem;
  width: 92px;
  height: 92px;
  background-image: radial-gradient(rgba(33, 88, 73, 0.25) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.7;
}

.category-strip,
.market-section {
  padding: 1.2rem 0;
}

.marketplace-page-section {
  padding: 0.8rem 0 1.2rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
}

.section-link {
  font-weight: 600;
}

.category-scroller,
.feed-switcher,
.listing-card__tags,
.listing-modal__meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.category-scroller {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.chip,
.feed-pill,
.tag-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s ease;
}

.chip.is-active,
.feed-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #163b31);
}

.market-layout {
  align-items: start;
}

.listing-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 14px 28px rgba(66, 37, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(66, 37, 18, 0.13);
}

.listing-card__top {
  align-items: flex-start;
}

.listing-card__category,
.listing-card__type {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.listing-card__category {
  background: rgba(223, 109, 45, 0.13);
  color: var(--accent-deep);
}

.listing-card__type {
  background: rgba(33, 88, 73, 0.12);
  color: var(--leaf);
}

.listing-card__title {
  margin: 0.95rem 0 0.45rem;
  font-size: 1.35rem;
}

.listing-card__desc {
  margin-bottom: 1rem;
  min-height: 72px;
}

.tag-pill {
  padding: 0.45rem 0.8rem;
  background: rgba(66, 37, 18, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
}

.listing-card__meta {
  margin: 1rem 0;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listing-card__meta strong,
.listing-card__footer strong {
  display: block;
}

.listing-card__meta span,
.listing-card__footer small {
  color: var(--muted);
  font-size: 0.84rem;
}

.listing-card__price {
  font-size: 1.45rem;
  font-family: "Space Grotesk", sans-serif;
}

.seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(62, 43, 29, 0.08);
}

.seller-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), #3f8c79);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.listing-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.listing-card__actions .btn {
  min-height: 46px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.side-stack {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 1rem;
}

.filter-panel {
  position: sticky;
  top: 98px;
}

.filter-panel__body {
  padding: 1.15rem;
}

.filter-panel__header {
  margin-bottom: 0.85rem;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-title,
.marketplace-title,
.seller-cta-card h3,
.escrow-modal h3 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", sans-serif;
}

.filter-title,
.marketplace-title {
  font-size: 1.5rem;
}

.filter-reset,
.auth-link {
  border: 0;
  background: transparent;
}

.filter-group + .filter-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.filter-label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.search-panel__field--compact {
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
}

.filter-checks,
.filter-choice-group {
  display: grid;
  gap: 0.6rem;
}

.filter-check,
.filter-choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(66, 37, 18, 0.04);
  color: var(--ink);
  font-weight: 600;
}

.filter-check input,
.filter-choice input {
  margin: 0;
  accent-color: var(--leaf);
}

.filter-select {
  min-height: 50px;
  border-radius: 16px;
  border-color: rgba(62, 43, 29, 0.12);
  background-color: rgba(255, 255, 255, 0.82);
}

.seller-cta-card {
  margin-top: 1rem;
  padding: 1rem;
}

.seller-cta-card p,
.results-summary,
.escrow-modal__intro p,
.escrow-step p,
.escrow-note p {
  color: var(--muted);
}

.marketplace-results-shell {
  padding: 1.15rem;
}

.marketplace-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-summary {
  font-weight: 600;
}

.info-card,
.listing-modal {
  border-radius: 26px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.88);
  box-shadow: 0 16px 34px rgba(66, 37, 18, 0.09);
}

.info-card {
  padding: 1.2rem;
}

.info-card__head i {
  color: var(--accent);
  font-size: 1.2rem;
}

.modal-info-grid div {
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(66, 37, 18, 0.04);
}

.flow-steps {
  display: grid;
  gap: 0.85rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
}

.flow-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(33, 88, 73, 0.1);
  color: var(--leaf);
  font-weight: 800;
}

.flow-step.is-current span {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.flow-step strong,
.seller-points li,
.modal-info-grid strong {
  font-size: 0.96rem;
}

.flow-step p,
.seller-points {
  margin: 0.25rem 0 0;
}

.seller-points {
  padding-left: 1.1rem;
  color: var(--muted);
}

.seller-points li + li {
  margin-top: 0.45rem;
}

.site-footer {
  padding: 0.8rem 0 1.5rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 246, 0.88);
  box-shadow: 0 16px 34px rgba(66, 37, 18, 0.09);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.footer-brand__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), #f5a36b);
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-dock {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 22px;
  border: 1px solid rgba(62, 43, 29, 0.08);
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(66, 37, 18, 0.16);
  z-index: 1040;
}

.mobile-dock a {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-height: 56px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.mobile-dock a.is-active,
.mobile-dock a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #163b31);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 26px;
  border: 1px dashed rgba(62, 43, 29, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(223, 109, 45, 0.12);
  color: var(--accent);
  font-size: 1.6rem;
}

.listing-modal {
  padding: 0.25rem 0.25rem 1rem;
}

.escrow-modal {
  padding: 0.25rem 0.25rem 1rem;
}

.escrow-modal__intro {
  margin-bottom: 1rem;
}

.escrow-steps {
  display: grid;
  gap: 0.85rem;
}

.escrow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 20px;
  background: rgba(66, 37, 18, 0.04);
}

.escrow-step span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 800;
}

.escrow-note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(33, 88, 73, 0.1), rgba(230, 184, 78, 0.12));
}

.escrow-note strong,
.escrow-step strong {
  display: block;
}

.listing-modal__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-modal__top strong {
  font-size: 1.55rem;
  font-family: "Space Grotesk", sans-serif;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.15rem;
}

.modal-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-action-row .btn {
  min-height: 50px;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 1.1rem;
  }

  .hero-card {
    padding: 2rem;
  }

  .page-hero__card {
    padding: 1.5rem;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .search-panel {
    flex-direction: row;
    align-items: center;
  }

  .search-panel__field {
    flex: 1;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }

  .side-stack {
    position: static;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding-bottom: 108px;
  }

  .topbar .btn-dark {
    width: 100%;
  }

  .hero-card {
    padding: 1.1rem;
    border-radius: 28px;
  }

  .hero-showcase {
    min-height: 270px;
  }

  .page-hero__row,
  .marketplace-toolbar,
  .auth-panel__head,
  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-switcher {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .feed-switcher::-webkit-scrollbar {
    display: none;
  }

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

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-action-row {
    flex-direction: column;
  }

  .escrow-step {
    grid-template-columns: 1fr;
  }
}
