:root {
  --ink: #14261f;
  --green: #123a32;
  --green-2: #24554a;
  --mint: #e8eee9;
  --paper: #f5f0e7;
  --paper-2: #fffdf8;
  --line: #d8aaa3;
  --muted: #6f756f;
  --gold: #a9362d;
  --red: #b33d32;
  --shadow: 0 24px 70px rgba(29, 42, 35, 0.11);
  --radius: 22px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(245, 240, 231, 0.92);
  border-bottom: 1px solid rgba(169, 54, 45, 0.3);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 5px 13px rgba(9,42,35,.16);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 20px; letter-spacing: 2px; }
.brand-copy small { color: var(--gold); font: 9px/1.2 Arial, sans-serif; letter-spacing: 2px; }
.desktop-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link {
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: #5d665f;
  border-radius: 12px;
  font-weight: 600;
}
.nav-link:hover { background: rgba(255,255,255,.55); }
.nav-link.active { background: var(--green); color: white; }
.account-area { display: flex; align-items: center; gap: 10px; }
.user-chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 20px;
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip span:first-child {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #f1d8d3;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}
.icon-btn { border: 0; background: transparent; font-size: 19px; color: var(--muted); }
.admin-entry {
  padding: 8px 12px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; border-color: rgba(169,54,45,.5); box-shadow: 0 9px 22px rgba(18,58,50,.16); }
.btn-primary:hover { background: #0b2e27; }
.btn-outline { background: transparent; border-color: #b64a40; color: var(--green); }
.btn-outline:hover { background: rgba(255,255,255,.6); }
.btn-dark { background: var(--ink); color: white; }
.btn-gold { background: var(--gold); color: #1c291f; }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #8f271f; }
.btn-glass { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 14px; border-radius: 10px; font-size: 13px; }
.btn-full { width: 100%; }
.text-btn { border: 0; background: none; color: var(--muted); padding: 8px; }

main { overflow: hidden; }
.view { display: none; min-height: calc(100vh - 78px); }
.view.active { display: block; }

.hero {
  min-height: 590px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(500px, 1.12fr);
  align-items: center;
  gap: 50px;
  padding: 42px clamp(24px, 6vw, 92px) 54px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  border: 1px solid rgba(174,133,68,.18);
  border-radius: 50%;
  right: -330px;
  top: -430px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { font: 700 11px/1.2 Arial, sans-serif; letter-spacing: 4px; color: var(--gold); margin: 0 0 18px; }
.eyebrow.dark { color: var(--red); }
.hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 6.1vw, 88px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -2px;
}
.hero h1 span { color: var(--red); }
.hero-desc { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.9; margin: 24px 0 28px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { min-width: 140px; }
.hero-actions .btn-glass { border-color: #a9362d; color: var(--green); background: rgba(255,255,255,.35); }

.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 28px 5px 20px 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255,229,195,.2) 0%, transparent 36%),
    radial-gradient(circle at 55% 45%, #c34b40 0%, #9f2d25 52%, #6f1814 100%);
  border: 1px solid rgba(255,224,183,.4);
  box-shadow: 0 25px 70px rgba(82,16,12,.32);
}
.hero-brand-lockup {
  position: relative;
  z-index: 2;
  width: min(440px, 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.hero-brand-lockup img {
  width: clamp(170px, 22vw, 250px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 30px rgba(27,6,4,.34));
}
.hero-brand-lockup strong {
  color: #fff5e2;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: .22em;
  text-indent: .22em;
}
.hero-brand-lockup span {
  color: #e6c18a;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: .34em;
  text-indent: .34em;
}
.hero-logo-ring {
  position: absolute;
  top: 9%;
  width: 59%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,224,183,.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(255,224,183,.05),
    0 0 0 34px rgba(255,224,183,.025);
}
.hero-platform-image {
  position: absolute;
  z-index: 2;
  inset: 24px 0;
  width: 100%;
  height: calc(100% - 48px);
  border: 1px solid rgba(169,54,45,.2);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(31,42,36,.16);
}
.hero-orbit { position: absolute; border: 1px solid rgba(169,54,45,.28); border-radius: 50%; z-index: 1; }
.orbit-a { width: 88%; height: 72%; rotate: -11deg; }
.orbit-b { width: 72%; height: 93%; rotate: 18deg; }
.market-section { padding: 58px clamp(20px, 6vw, 92px) 100px; }
.market-marquee {
  display: flex;
  align-items: stretch;
  min-height: 46px;
  overflow: hidden;
  border-top: 1px solid rgba(169,54,45,.12);
  border-bottom: 1px solid rgba(169,54,45,.12);
  background: #f1e7d9;
}
.market-marquee-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #f1e7d9;
  box-shadow: 13px 0 18px #f1e7d9;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.market-marquee-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(169,54,45,.1);
}
.market-marquee-window { flex: 1; min-width: 0; overflow: hidden; }
.market-marquee-track {
  width: max-content;
  height: 46px;
  display: flex;
  align-items: center;
  animation: marketMarquee 28s linear infinite;
}
.market-marquee-track span {
  display: block;
  padding-right: 110px;
  color: #625b52;
  font-size: 13px;
  white-space: nowrap;
}
@keyframes marketMarquee {
  to { transform: translateX(-50%); }
}
.section-head, .page-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 3px 0 0; font-family: "Songti SC", serif; font-size: 36px; }
.section-tools { display: flex; align-items: center; gap: 14px; }
.result-count {
  padding: 7px 11px;
  border-left: 3px solid var(--red);
  background: rgba(169,54,45,.07);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.filter-panel {
  margin: 26px 0 32px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(210px, 1.8fr) repeat(3, minmax(110px, .7fr)) auto auto;
  gap: 9px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.filter-panel select, .search-field, .field input, .field select, .field textarea {
  border: 1px solid #d7ada6;
  background: #fffdf9;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  outline: none;
}
.filter-panel select:focus, .search-field:focus-within, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,149,80,.12);
}
.filter-extra-actions { display: flex; align-items: center; gap: 2px; }
.filter-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}
.filter-arrow {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}
.filter-more-btn.expanded .filter-arrow {
  margin-top: 3px;
  transform: rotate(225deg);
}
.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: white;
  font-size: 10px;
}
.advanced-filter-panel {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(169,54,45,.045), transparent 45%),
    #fffdf9;
}
.advanced-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.advanced-filter-head strong { display: block; font: 700 19px/1.3 "Songti SC", serif; }
.advanced-filter-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.advanced-filter-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #6d6f6a;
  font-size: 20px;
  line-height: 1;
}
.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.advanced-field { display: flex; flex-direction: column; gap: 6px; }
.advanced-field > span { color: #6f625e; font-size: 11px; font-weight: 700; }
.advanced-field input,
.advanced-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d7ada6;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  outline: none;
}
.advanced-field input:focus,
.advanced-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169,54,45,.09);
}
.advanced-filter-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #f0deda;
}
.search-field { display: flex; align-items: center; gap: 7px; }
.search-field input { border: 0; outline: 0; width: 100%; background: transparent; }
.search-icon { font-size: 21px; color: var(--gold); }
.vehicle-grid {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(82,24,16,.055);
}
.vehicle-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 154px;
  align-items: stretch;
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: 1px solid #ecd6d2;
  transition: background .18s ease;
  cursor: pointer;
}
.vehicle-card:last-child { border-bottom: 0; }
.vehicle-card:hover { background: #fff9f7; }
.vehicle-cover {
  position: relative;
  height: 148px;
  margin: 17px 0 17px 17px;
  overflow: hidden;
  border-radius: 11px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.7), transparent 38%),
    linear-gradient(140deg, #dfe7e1, #aac1b7);
}
.vehicle-cover img { width: 100%; height: 100%; object-fit: cover; }
.purchase-status-badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(5px);
}
.purchase-status-badge.purchased { background: rgba(20,83,62,.88); }
.purchase-status-badge.unpurchased { background: rgba(169,54,45,.9); }
.vehicle-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(169,54,45,.78);
  background:
    linear-gradient(125deg, rgba(255,255,255,.42), transparent),
    linear-gradient(135deg, #f4e7e2, #d7aaa3);
}
.vehicle-placeholder svg { width: 70%; opacity: .72; }
.vehicle-thumb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 9px 8px;
  color: white;
  text-align: center;
  background: linear-gradient(transparent, rgba(11, 21, 20, .82));
}
.vehicle-thumb-meta span,
.vehicle-thumb-meta strong { display: block; }
.vehicle-thumb-meta span { font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .3px; }
.vehicle-thumb-meta strong { margin-top: 3px; font-size: 14px; }
.status-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(19,54,46,.9);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.sold .status-pill { background: rgba(100,105,101,.9); }
.vehicle-body {
  min-width: 0;
  padding: 18px 22px 17px;
}
.vehicle-row-heading { display: flex; align-items: flex-start; gap: 12px; }
.vehicle-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}
.vehicle-row-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  color: #777d78;
  font-size: 14px;
}
.vehicle-row-specs span + span::before {
  content: "|";
  margin-right: 7px;
  color: #d2aaa4;
}
.vehicle-row-technical {
  margin-top: 8px;
  overflow: hidden;
  color: #666d68;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vehicle-row-source {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  overflow: hidden;
  color: #858a85;
  font-size: 12px;
  white-space: nowrap;
}
.vehicle-row-source span + span::before {
  content: "|";
  margin-right: 7px;
  color: #d0b4af;
}
.vehicle-row-age {
  margin-top: 9px;
  color: #7c817c;
  font-size: 12px;
}
.vehicle-row-age strong { color: var(--red); font-size: 14px; }
.vehicle-interest-count {
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fbf1e7;
  color: #755f40;
  font-size: 11px;
}
.vehicle-interest-count strong { color: var(--red); font-size: 14px; }
.vehicle-price-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 20px;
  border-left: 1px solid #ecd6d2;
  background: #fffaf8;
}
.vehicle-price-line { display: flex; align-items: center; gap: 7px; }
.price-label {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.vehicle-price-line strong {
  color: var(--red);
  font: 700 25px/1 "Noto Serif SC", serif;
  white-space: nowrap;
}
.vehicle-price-line .price-locked {
  padding: 5px 8px;
  border: 1px solid rgba(169,54,45,.2);
  border-radius: 6px;
  background: #fbf3ee;
  color: var(--red);
  font: 800 12px/1.2 sans-serif;
  letter-spacing: .04em;
}
.vehicle-price-line small { margin-left: 2px; font: 12px sans-serif; }
.vehicle-share-code { color: #938a84; font: 11px/1.2 Arial, sans-serif; letter-spacing: .5px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty > span { font-size: 45px; color: var(--gold); }
.empty h3 { color: var(--ink); margin: 12px 0 5px; }

.page-head { padding: 64px clamp(20px, 6vw, 92px) 30px; }
.page-head h1 { margin: 0; font-family: "Songti SC", serif; font-size: 48px; }
.page-head p:not(.eyebrow) { color: var(--muted); }
.auth-required {
  width: min(680px, calc(100% - 40px));
  margin: 40px auto 110px;
  padding: 55px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-2);
}
.lock-mark {
  width: 55px; height: 55px; margin: 0 auto 17px; border-radius: 17px;
  display: grid; place-items: center; background: #f1d8d3; color: var(--red);
  font-weight: 800; font-size: 21px;
}
.vehicle-form { padding: 0 clamp(20px, 6vw, 92px) 100px; }
.form-card {
  max-width: 1060px;
  margin: 0 auto 20px;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.form-card h2 { margin: 8px 0; font-family: "Songti SC", serif; font-size: 27px; }
.form-card p { margin-top: 5px; color: var(--muted); }
.vin-card { background: linear-gradient(135deg, #163a32, #275a4e); color: white; border-color: transparent; }
.vin-card p { color: #c6d7d0; }
.vin-input-row { margin-top: 22px; display: flex; gap: 10px; }
.vin-input-row input {
  flex: 1; min-height: 48px; border: 1px solid rgba(255,255,255,.24); color: white;
  padding: 0 15px; background: rgba(255,255,255,.08); border-radius: 10px;
  text-transform: uppercase; outline: none; letter-spacing: 1px;
}
.vin-input-row input::placeholder { color: rgba(255,255,255,.45); }
.vin-photo-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 13px;
}
.vin-photo-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px dashed rgba(255,225,188,.55);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: white;
  text-align: left;
}
.vin-photo-btn > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f3d8a9;
  color: #7b211b;
  font-size: 20px;
  line-height: 1;
}
.vin-photo-btn strong,
.vin-photo-btn small { display: block; }
.vin-photo-btn strong { font-size: 13px; }
.vin-photo-btn small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 10px; }
.vin-photo-btn:disabled { cursor: wait; opacity: .62; }
.vin-image-preview {
  flex: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: 12px;
}
.vin-image-preview img {
  width: 48px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}
.form-hint { font-size: 12px !important; }
.step-no { font: 700 11px/1 Arial; color: var(--red); letter-spacing: 2px; }
.form-title-row { display: flex; gap: 14px; align-items: baseline; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { color: #59635d; font-size: 12px; font-weight: 700; }
.field.span-2 { grid-column: span 2; }
.field textarea { padding-top: 10px; resize: vertical; }
.introduction-field {
  padding: 15px;
  border: 1px solid rgba(180,145,88,.3);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf8, #f8f1e5);
}
.introduction-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.introduction-field-head span { display: block; color: var(--green); font-size: 13px; font-weight: 800; }
.introduction-field-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.introduction-field-head button { flex: 0 0 auto; }
.parked-group-field {
  padding: 13px;
  border: 1px dashed rgba(43,65,56,.22);
  border-radius: 11px;
  background: #f8f4ec;
}
.parked-group-field > span { display: flex; align-items: center; gap: 8px; }
.parked-group-field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.media-upload-grid { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-upload-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf7;
}
.media-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.media-upload-head strong { display: block; color: var(--ink); font-size: 15px; }
.media-upload-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.media-upload-head b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font: 700 11px/1 Arial, sans-serif;
}
.document-media .media-upload-head b { background: var(--green); }
.upload-field { padding: 13px; border: 1px dashed #bd665c; border-radius: 12px; background: #fbf8f1; }
.upload-field input { border: 0; background: transparent; min-height: auto; padding: 0; }
.upload-field small { color: var(--muted); }
.image-preview { margin-top: 16px; }
.image-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.image-preview img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.form-actions { max-width: 1060px; margin: 34px auto 0; display: flex; justify-content: flex-end; gap: 10px; }

.mine-metrics { padding: 0 clamp(20px, 6vw, 92px) 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mine-metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); }
.mine-metrics strong { display: block; font: 700 30px/1 "Noto Serif SC", serif; color: var(--green); }
.mine-metrics span { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
#mineGrid { padding: 0 clamp(20px, 6vw, 92px) 110px; }
.owner-actions { display: flex; gap: 8px; margin-top: 14px; }
.owner-actions button { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: #faf6ee; color: var(--green); font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,18,15,.55); backdrop-filter: blur(7px); }
.modal-panel {
  position: relative; z-index: 2; width: min(520px, 100%); max-height: calc(100vh - 40px);
  overflow: auto; border-radius: 24px; background: var(--paper-2); padding: 32px;
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}
.detail-panel { width: min(900px, 100%); padding: 0; }
.modal-close {
  position: absolute; right: 17px; top: 13px; border: 0; background: transparent;
  font-size: 27px; color: #6d6f6a; z-index: 4;
}
.modal h2 { margin: 6px 0 10px; font: 700 34px/1.2 "Songti SC", serif; }
.modal-lead { color: var(--muted); margin: 8px 0 22px; }
.portal-login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5efe5;
}
.portal-login-switch button {
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.portal-login-switch strong,
.portal-login-switch small { display: block; }
.portal-login-switch strong { font-size: 13px; }
.portal-login-switch small { margin-top: 3px; font-size: 10px; font-weight: 400; }
.portal-login-switch button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff6e4;
}
.modal code { background: #ece4d7; padding: 2px 6px; border-radius: 5px; color: var(--red); }
.modal form .field { margin-bottom: 15px; }
.modal input, .modal select { width: 100%; }
.register-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.register-prompt small {
  flex-basis: 100%;
  margin-top: 2px;
  color: #8b7049;
  text-align: center;
  font-size: 11px;
}
.register-prompt button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}
.register-panel { width: min(640px, 100%); }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.register-panel .btn-full { margin-top: 8px; }
.register-review-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(178,137,76,.22);
  border-radius: 8px;
  background: #fbf5ea;
  color: #8b7049;
  font-size: 12px;
  text-align: center;
}
.admin-panel {
  margin: 0 clamp(20px, 6vw, 92px) 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(169,54,45,.055), transparent 48%),
    var(--paper-2);
}
.admin-panel-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.admin-panel-head h2 { margin: 0; font: 700 26px/1.2 "Songti SC", serif; }
.admin-panel-head p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.admin-merchant-list { display: flex; flex-direction: column; gap: 9px; }
.admin-merchant-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, .8fr) 130px 110px auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #efdbd7;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.admin-merchant-name strong,
.admin-merchant-name span { display: block; }
.admin-merchant-name strong { font-size: 14px; }
.admin-merchant-name span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.admin-merchant-meta { color: var(--muted); font-size: 12px; }
.admin-merchant-row select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.admin-merchant-row .btn { padding: 8px 11px; font-size: 11px; }
.admin-self-tag {
  display: inline-block !important;
  padding: 3px 7px;
  border-radius: 10px;
  background: #f1d8d3;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}
.detail-hero { position: relative; aspect-ratio: 16/7; background: linear-gradient(140deg, #dbe5df, #91afa2); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 34px;
  border-bottom: 1px solid var(--line);
  background: #fffaf8;
}
.detail-gallery-thumbs button {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f0e7e0;
}
.detail-gallery-thumbs button.active { border-color: var(--red); }
.detail-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-placeholder { height: 100%; display: grid; place-items: center; color: var(--green); }
.detail-placeholder svg { width: 55%; }
.detail-content { padding: 30px 34px 38px; }
.detail-title { font: 700 32px/1.35 "Songti SC", serif; margin: 0 0 8px; }
.detail-price { font: 700 38px/1 "Noto Serif SC", serif; color: var(--red); margin: 18px 0; }
.detail-price small { font: 13px sans-serif; color: var(--muted); }
.detail-price-channel {
  display: block;
  width: fit-content;
  margin: 0 0 7px;
  padding: 0 0 0 8px;
  border-left: 4px solid var(--red);
  color: var(--red);
  font: 800 14px/1.2 sans-serif;
  letter-spacing: 1px;
}
.detail-price.price-locked { font: 700 25px/1.2 "Noto Serif SC", serif; }
.detail-price.price-locked small { display: block; margin-top: 6px; }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.detail-specs div { padding: 13px; background: #f6f1e8; border-radius: 11px; }
.detail-specs small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.detail-specs strong { font-size: 14px; }
.detail-desc { color: #5d6660; line-height: 1.8; }
.detail-interest-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(183,148,90,.24);
  border-radius: 11px;
  background: #fbf5e9;
}
.detail-interest-count span { color: #755f40; font-size: 12px; font-weight: 700; }
.detail-interest-count strong { color: var(--red); font: 700 24px/1 "Noto Serif SC", serif; }
.detail-interest-count small { color: #9a7b4b; font-size: 11px; }
.detail-interest-count em { margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; }
.detail-introduction {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(180,145,88,.28);
  border-radius: 13px;
  background: #fbf7ef;
}
.detail-introduction small { display: block; color: var(--red); font-size: 11px; font-weight: 800; }
.detail-introduction p { margin: 8px 0 0; color: #5d6660; line-height: 1.8; white-space: pre-wrap; }
.detail-documents {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.detail-section-head small { display: block; color: var(--red); font-size: 11px; font-weight: 800; }
.detail-section-head strong { display: block; margin-top: 4px; font-size: 16px; }
.detail-section-head > span { color: var(--muted); font-size: 11px; }
.document-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.document-grid button {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f1e8;
}
.document-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.document-locked {
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px dashed #bd665c;
  border-radius: 12px;
  background: #fff7f5;
  color: #775d58;
  font-size: 13px;
}
.document-count-card {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid rgba(169,54,45,.18);
  border-radius: 14px;
  background: #fff9f5;
}
.document-count-card > div:not(.detail-section-head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(43,65,56,.07);
}
.document-count-card > div span { color: var(--ink); font-size: 13px; font-weight: 700; }
.document-count-card > div strong { color: var(--red); font-size: 13px; }
.document-count-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.merchant-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; margin-top: 21px; border: 1px solid var(--line); border-radius: 14px; }
.merchant-box strong { display: block; }
.merchant-box span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.detail-foot { display: flex; gap: 10px; margin-top: 20px; }
.detail-foot .btn { flex: 1; }

.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 30px);
  opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px;
  color: white; background: #142b24; box-shadow: 0 12px 35px rgba(0,0,0,.2); transition: .25s;
  font-size: 14px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 30px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(169,54,45,.7);
  color: #fff8ed;
  box-shadow: 0 10px 28px rgba(82,24,16,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, background .22s ease, visibility .22s ease;
}
.back-to-top span { font: 700 22px/1 Arial, sans-serif; }
.back-to-top.show { opacity: .78; visibility: visible; transform: translateY(0); }
.back-to-top:hover { opacity: 1; background: rgba(169,54,45,.92); }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .filter-panel { grid-template-columns: 1fr 1fr 1fr; }
  .search-field { grid-column: span 3; }
  .advanced-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero h1 { font-size: 58px; }
}

@media (max-width: 720px) {
  .topbar { height: 66px; padding: 0 16px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 17px; }
  .desktop-nav { display: none; }
  .account-area { margin-left: auto; }
  .brand-copy small { display: none; }
  #loginBtn { padding: 9px 12px; font-size: 12px; }
  .view { min-height: calc(100vh - 120px); padding-bottom: 70px; }
  .hero { display: block; min-height: auto; padding: 35px 20px 45px; }
  .hero h1 { font-size: 49px; }
  .hero-desc { font-size: 15px; }
  .hero-art { min-height: 300px; margin-top: 32px; }
  .hero-art::before { inset: 15px 0 0; }
  .hero-brand-lockup { width: 84%; }
  .hero-brand-lockup img { width: min(190px, 52vw); }
  .market-section { padding: 42px 16px 80px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 29px; }
  .filter-panel { grid-template-columns: 1fr 1fr; padding: 10px; }
  .search-field { grid-column: span 2; }
  .advanced-filter-panel { padding: 15px; }
  .advanced-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-grid { border-radius: 14px; }
  .vehicle-card { grid-template-columns: 112px minmax(0, 1fr); }
  .vehicle-cover { height: 118px; margin: 12px 0 12px 12px; border-radius: 9px; }
  .vehicle-body { padding: 12px 12px 10px; }
  .vehicle-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .vehicle-row-heading .status-pill { display: none; }
  .vehicle-row-specs { gap: 5px; margin-top: 8px; font-size: 12px; }
  .vehicle-row-specs span + span::before { margin-right: 5px; }
  .vehicle-row-technical { margin-top: 5px; font-size: 12px; }
  .vehicle-row-source { margin-top: 6px; font-size: 11px; }
  .vehicle-row-age { margin-top: 6px; font-size: 11px; }
  .vehicle-thumb-meta { padding: 18px 5px 6px; }
  .vehicle-thumb-meta span { font-size: 9px; }
  .vehicle-thumb-meta strong { font-size: 12px; }
  .vehicle-price-block {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #ecd6d2;
    border-left: 0;
  }
  .vehicle-price-line strong { font-size: 22px; }
  .page-head { padding: 36px 20px 24px; }
  .page-head h1 { font-size: 38px; }
  .page-head.split { display: block; }
  .page-head.split .btn { margin-top: 14px; }
  .vehicle-form { padding: 0 16px 80px; }
  .form-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.span-2 { grid-column: span 2; }
  .media-upload-grid { grid-template-columns: 1fr; }
  .image-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vin-input-row { flex-direction: column; }
  .vin-photo-row { flex-direction: column; }
  .vin-photo-btn { width: 100%; min-width: 0; }
  .mine-metrics { padding: 0 16px 20px; grid-template-columns: 1fr 1fr; }
  #mineGrid { padding: 0 16px 90px; }
  .detail-content { padding: 22px 20px 28px; }
  .detail-title { font-size: 25px; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
  .detail-gallery-thumbs { padding: 10px 20px; }
  .document-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-panel { padding: 25px 20px; border-radius: 20px; }
  .register-grid { grid-template-columns: 1fr; }
  .register-grid .field.span-2 { grid-column: span 1; }
  .admin-panel { margin: 0 16px 22px; padding: 18px; }
  .admin-merchant-row { grid-template-columns: 1fr 1fr; }
  .admin-merchant-name { grid-column: span 2; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 60; padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,253,248,.95); border-top: 1px solid var(--line); backdrop-filter: blur(18px);
  }
  .mobile-nav button { border: 0; background: transparent; color: #7e817c; font-size: 11px; padding: 5px; }
  .mobile-nav button span { display: block; font-size: 20px; line-height: 1.2; }
  .mobile-nav button.active { color: var(--red); font-weight: 800; }
  .back-to-top { right: 18px; bottom: 86px; width: 44px; height: 44px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 43px; }
  .hero-actions { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .media-upload-grid { grid-column: span 1; }
  .filter-panel { grid-template-columns: 1fr; }
  .advanced-filter-grid { grid-template-columns: 1fr; }
  .vehicle-card { grid-template-columns: 96px minmax(0, 1fr); }
  .vehicle-cover { height: 108px; margin: 10px 0 10px 10px; }
  .vehicle-body { padding: 10px 10px 8px; }
  .vehicle-title { font-size: 16px; }
  .search-field { grid-column: span 1; }
}
