:root {
  --ink: #111310;
  --lime: #b7f63b;
  --paper: #f3f5f0;
  --white: #fff;
  --line: #dce0d8;
  --muted: #6c7468;
  --red: #d83d33;
  --green: #3e7d18;
  --shadow: 0 18px 50px rgba(16, 20, 12, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #84b927;
  outline-offset: 2px;
}
.hidden {
  display: none !important;
}
.topbar {
  height: 72px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  gap: 38px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #2c3029;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand > span {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-style: italic;
  transform: skew(-5deg);
}
.brand b {
  color: var(--lime);
}
.searchbox {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #242722;
  border: 1px solid #393d36;
  border-radius: 11px;
  padding: 0 13px;
  flex: 1;
  max-width: 590px;
  color: #9da398;
}
.searchbox input {
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
}
.desktopActions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.ghost,
.secondary {
  border: 1px solid #3a3e36;
  background: #1d201c;
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  height: 42px;
  font-weight: 700;
}
.primary {
  border: 0;
  background: var(--lime);
  color: var(--ink);
  border-radius: 10px;
  padding: 0 18px;
  min-height: 44px;
  font-weight: 850;
}
.primary.compact {
  height: 42px;
  min-height: 42px;
}
.primary.wide {
  width: 100%;
  min-height: 50px;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.notice {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border: 1px solid #42473e;
  border-radius: 10px;
  padding: 11px 16px;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.notice.error {
  background: #8e2721;
}
.hero {
  background: var(--ink);
  color: #fff;
  padding: 48px 4.5vw 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.hero p,
.pageHead p {
  margin: 0 0 11px;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  margin: 0;
}
.hero em {
  font-style: normal;
  color: var(--lime);
}
.trust {
  display: flex;
  gap: 24px;
  color: #b6bcb2;
  font-size: 0.82rem;
}
.market,
.page {
  max-width: 1500px;
  margin: auto;
  padding: 25px 4.5vw 95px;
}
.mobileSearch {
  display: none;
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
  padding-bottom: 19px;
}
.chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 750;
}
.chips button.active {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
.filterbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.filterbar select {
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0 12px;
  min-width: 145px;
}
.sectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
}
.sectionHead h2 {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  margin: 0;
}
.sectionHead p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.linkButton {
  border: 0;
  background: none;
  text-decoration: underline;
  color: #596153;
}
.listingGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  min-width: 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20, 28, 12, 0.1);
}
.photo {
  height: 235px;
  background: #232620 url("/placeholder.webp") center/cover;
  position: relative;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #111310db;
  color: #fff;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill.featured {
  top: 12px;
  bottom: auto;
  background: var(--lime);
  color: var(--ink);
}
.heart {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 1.35rem;
}
.heart.on {
  color: var(--red);
}
.cardBody {
  padding: 15px;
}
.category {
  margin: 0 0 6px;
  color: #747c70;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 850;
}
.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 42px;
}
.price {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 9px 0;
}
.meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid #eceee9;
  padding-bottom: 12px;
}
.seller {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 11px;
  font-size: 0.8rem;
  font-weight: 750;
}
.seller .tick {
  color: var(--green);
}
.empty,
.emptySmall {
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd1c6;
  border-radius: 14px;
  padding: 65px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty h3 {
  color: var(--ink);
  margin: 0 0 5px;
}
.loader {
  width: 38px;
  height: 38px;
  border: 4px solid #dfe4da;
  border-top-color: #78a927;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  grid-column: 1/-1;
  margin: 70px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page {
  max-width: 1080px;
}
.pageHead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 25px;
}
.pageHead h1 {
  font-size: 2.2rem;
  letter-spacing: -0.045em;
  margin: 0;
}
.pageHead p {
  color: #5e8417;
  margin-bottom: 4px;
}
.back {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.2rem;
}
.formCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(18, 24, 12, 0.04);
}
.formCard label,
.modal label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 750;
  margin: 14px 0;
}
.formCard input,
.formCard select,
.formCard textarea,
.modal input,
.modal select,
.modal textarea,
.messageComposer input {
  border: 1px solid #ccd2c7;
  background: #fafbf9;
  border-radius: 9px;
  padding: 11px;
  min-height: 45px;
}
.formCard textarea,
.modal textarea {
  min-height: 120px;
  resize: vertical;
}
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stepTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e8ebe5;
  padding-top: 22px;
  margin-top: 22px;
}
.stepTitle:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.stepTitle > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  font-weight: 900;
}
.stepTitle h2 {
  font-size: 1.15rem;
  margin: 0;
}
.stepTitle p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 0;
}
.uploadBox {
  border: 2px dashed #bfc7b9 !important;
  border-radius: 12px;
  min-height: 95px;
  display: grid !important;
  place-items: center;
  background: #fafbf8;
  color: #54771b;
}
.uploadBox input {
  display: none;
}
.imagePreview {
  display: flex;
  gap: 8px;
  overflow: auto;
}
.imagePreview img {
  width: 100px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.check input {
  min-height: auto;
}
.dashboardActions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.accountGrid,
.adminList {
  display: grid;
  gap: 10px;
}
.accountItem,
.adminItem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.accountItem img {
  width: 90px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  background: #262825;
}
.accountItem > div {
  flex: 1;
}
.accountItem h3,
.adminItem h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8ece4;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status.active {
  background: #e4f5d9;
  color: #386b18;
}
.status.pending {
  background: #fff3cf;
  color: #795900;
}
.itemActions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.itemActions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
}
.inbox {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 570px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.conversationList {
  border-right: 1px solid var(--line);
}
.conversation {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8ebe5;
  background: #fff;
  text-align: left;
  padding: 15px;
}
.conversation:hover,
.conversation.active {
  background: #f0f5e9;
}
.conversation b,
.conversation small {
  display: block;
}
.conversation small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messagePane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: auto;
  max-height: 500px;
}
.bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 13px;
  background: #edf0ea;
}
.bubble.mine {
  align-self: end;
  background: #dffcaa;
}
.bubble small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.messageComposer {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.messageComposer input {
  flex: 1;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  z-index: 60;
}
.drawer {
  position: absolute;
  right: 0;
  top: 0;
  width: min(540px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 3;
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  box-shadow: 0 3px 12px #0002;
}
.detailGallery {
  height: 350px;
  background: #242722;
}
.detailGallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detailBody {
  padding: 25px;
}
.detailBody h2 {
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 12px 0 4px;
}
.detailFacts {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.detailFacts span {
  background: #e8ece4;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}
.sellerBox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}
.detailButtons {
  display: grid;
  gap: 8px;
}
.reportLink {
  border: 0;
  background: none;
  color: var(--red);
  margin-top: 14px;
  text-decoration: underline;
}
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px));
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 17px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.modal.small {
  max-width: 430px;
}
.modal h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}
.modal > p {
  color: var(--muted);
  margin-top: 0;
}
.tabs {
  display: flex;
  gap: 5px;
  background: #eef1eb;
  padding: 4px;
  border-radius: 10px;
  margin: 18px 0;
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 9px;
  font-weight: 750;
}
.tabs button.active {
  background: #fff;
  box-shadow: 0 2px 8px #0001;
}
.authLinks {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
}
.authLinks button {
  border: 0;
  background: none;
  text-decoration: underline;
  color: #52604c;
}
.accountMenu {
  display: grid;
  gap: 8px;
}
.accountMenu button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  text-align: left;
  padding: 0 12px;
}
.adminItem {
  align-items: flex-start;
}
.adminItem > div:first-child {
  flex: 1;
}
.adminItem p {
  margin: 5px 0;
  color: var(--muted);
}
.mobileNav {
  display: none;
}
@media (max-width: 1050px) {
  .desktopActions .ghost:first-child,
  .desktopActions .ghost:nth-child(2) {
    display: none;
  }
  .listingGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: 70px;
  }
  .topbar {
    height: 62px;
    padding: 0 15px;
  }
  .topbar > .searchbox,
  .desktopActions {
    display: none;
  }
  .hero {
    padding: 27px 16px 23px;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .market,
  .page {
    padding: 14px 12px 85px;
  }
  .mobileSearch {
    display: flex;
    max-width: none;
    background: #fff;
    border-color: var(--line);
    margin-bottom: 13px;
  }
  .mobileSearch input {
    color: var(--ink);
  }
  .chips {
    padding-bottom: 13px;
  }
  .filterbar {
    overflow: auto;
    padding-bottom: 2px;
    margin-bottom: 15px;
  }
  .filterbar select {
    min-width: 135px;
  }
  .sectionHead h2 {
    font-size: 1.3rem;
  }
  .sectionHead .linkButton {
    font-size: 0.75rem;
  }
  .listingGrid {
    gap: 9px;
  }
  .photo {
    height: 150px;
  }
  .cardBody {
    padding: 10px;
  }
  .card h3 {
    font-size: 0.88rem;
    min-height: 51px;
  }
  .card .price {
    font-size: 1.2rem;
    margin: 6px 0;
  }
  .card .meta {
    border: 0;
    font-size: 0.68rem;
  }
  .card .meta span:last-child,
  .card .seller {
    display: none;
  }
  .pill.featured {
    font-size: 0.58rem;
  }
  .heart {
    width: 35px;
    height: 35px;
  }
  .mobileNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: var(--ink);
    color: #fff;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobileNav button {
    border: 0;
    background: none;
    color: #d7dcd3;
    font-size: 1.1rem;
    display: grid;
    gap: 2px;
    justify-items: center;
  }
  .mobileNav button span {
    font-size: 0.62rem;
  }
  .mobileNav .mobileSell {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: 1.6rem;
    margin-top: -28px;
    box-shadow: 0 0 0 5px var(--paper);
  }
  .formCard {
    padding: 17px;
  }
  .formGrid {
    grid-template-columns: 1fr;
  }
  .pageHead h1 {
    font-size: 1.75rem;
  }
  .dashboardActions {
    display: grid;
  }
  .accountItem {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .accountItem img {
    width: 75px;
    height: 60px;
  }
  .itemActions {
    width: 100%;
  }
  .inbox {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .conversationList {
    border: 0;
  }
  .messagePane {
    min-height: 440px;
  }
  .detailGallery {
    height: 270px;
  }
  .detailBody h2 {
    font-size: 1.55rem;
  }
  .modal {
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-height: 90vh;
  }
  .notice {
    top: 72px;
    width: calc(100% - 24px);
    text-align: center;
  }
}
