:root {
  color-scheme: dark;
  --bg: #020305;
  --panel: #0b0d12;
  --panel-2: #141820;
  --panel-soft: rgba(255,255,255,.055);
  --panel-glass: rgba(255,255,255,.075);
  --text: #f7f7f8;
  --muted: #b8bdc7;
  --muted-2: #7d8490;
  --line: rgba(255,255,255,.11);
  --accent: #f01422;
  --accent-2: #f4f5f7;
  --accent-3: #f01422;
  --green: #35d07f;
  --yellow: #ffd166;
  --red: #ff5d73;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --body-bg:
    radial-gradient(circle at 74% 12%, rgba(240,20,34,.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.08), transparent 24%),
    linear-gradient(180deg, #020305 0%, #090b10 46%, #020305 100%);
  --header-bg: rgba(2,3,5,.84);
  --brand-grad: linear-gradient(135deg, #f01422, #a8000d);
  --accent-grad: linear-gradient(135deg, #f01422, #ff3342);
  --accent-shadow: 0 18px 40px rgba(240,20,34,.34);
  --soft-surface: rgba(255,255,255,.055);
  --field-bg: rgba(0,0,0,.26);
  --inset-bg: rgba(0,0,0,.22);
  --success-text: #c7f7df;
  --warm-text: #ffd0bf;
  --radius: 8px;
  --radius-sm: 8px;
  --max: 1180px;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #eceff3;
  --panel-soft: rgba(10,18,32,.045);
  --panel-glass: rgba(255,255,255,.84);
  --text: #111827;
  --muted: #526071;
  --muted-2: #778396;
  --line: rgba(16,24,40,.13);
  --accent: #e5091a;
  --accent-2: #12151c;
  --accent-3: #e5091a;
  --green: #138a54;
  --yellow: #a96500;
  --red: #c7283f;
  --shadow: 0 22px 70px rgba(15,23,42,.12);
  --body-bg:
    radial-gradient(circle at 82% 8%, rgba(229,9,26,.10), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(18,21,28,.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 48%, #eceff3 100%);
  --header-bg: rgba(255,255,255,.84);
  --brand-grad: linear-gradient(135deg, #e5091a, #99000b);
  --accent-grad: linear-gradient(135deg, #e5091a, #ff2d3d);
  --accent-shadow: 0 16px 34px rgba(229,9,26,.2);
  --soft-surface: rgba(255,255,255,.72);
  --field-bg: rgba(255,255,255,.9);
  --inset-bg: rgba(16,24,40,.045);
  --success-text: #116b43;
  --warm-text: #b64622;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background .22s ease, color .22s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: url("assets/hcc-icon.svg") center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(240,20,34,.28);
  overflow: hidden;
}

.brand-mark::before {
  content: none;
}

.brand-mark::after {
  content: none;
}

.brand-mark svg { display: none; }
.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.brand-logo-light { display: none; }
body[data-theme="light"] .brand-logo-dark { display: none; }
body[data-theme="light"] .brand-logo-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: .94rem;
}

.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft-surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.theme-toggle:hover { transform: translateY(-1px); }

.theme-glyph {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
}

.theme-glyph::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: inset -7px -5px 0 var(--panel);
}

body[data-theme="light"] .theme-glyph::before {
  inset: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(229,9,26,.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
  min-height: 46px;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad);
  box-shadow: var(--accent-shadow);
}
.btn-secondary {
  border-color: var(--line);
  background: var(--soft-surface);
}
.btn-ghost {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.btn-wide { width: 100%; }

.hero {
  position: relative;
  padding: 92px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,3,5,.96) 0%, rgba(2,3,5,.84) 42%, rgba(2,3,5,.35) 100%),
    linear-gradient(180deg, rgba(2,3,5,.15), rgba(2,3,5,.92)),
    url("assets/hero-car.jpg") right center / min(58vw, 820px) auto no-repeat;
}

body[data-theme="light"] .hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 42%, rgba(255,255,255,.46) 100%),
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(247,248,250,.88)),
    url("assets/hero-car.jpg") right center / min(58vw, 820px) auto no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 50px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft-surface);
  font-weight: 800;
  font-size: .86rem;
  margin-bottom: 18px;
}

.kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(53,208,127,.12);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: .88;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 710px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-logo-lockup {
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  margin-bottom: 24px;
}

body[data-theme="light"] .hero-logo-lockup {
  border-color: rgba(16,24,40,.1);
  box-shadow: 0 22px 60px rgba(16,24,40,.12);
}

.hero-logo-light { display: none; }
body[data-theme="light"] .hero-logo-dark { display: none; }
body[data-theme="light"] .hero-logo-light { display: block; }

.section-actions {
  margin-top: 26px;
  margin-bottom: 0;
}

.hunt-box {
  background: var(--soft-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  max-width: 720px;
}

.hunt-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 14px 16px;
  outline: 0;
}

.hunt-box input::placeholder { color: var(--muted-2); }

.hero-note {
  color: var(--muted-2);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 14px;
}

.dashboard-card, .phone-shell {
  position: relative;
  background: linear-gradient(180deg, var(--panel-glass), var(--soft-surface));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-card::before, .phone-shell::before {
  content: "";
  position: absolute;
  inset: -90px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(240,20,34,.28);
  box-shadow: 0 0 0 28px rgba(240,20,34,.04), 0 0 0 56px rgba(240,20,34,.025);
}

.phone-shell {
  max-width: 430px;
  justify-self: end;
  border-color: rgba(255,255,255,.17);
  background:
    linear-gradient(180deg, var(--panel-glass), var(--soft-surface)),
    var(--panel);
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 0 0 18px;
}

.phone-top span {
  width: 82px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.mock-label {
  color: var(--muted);
  font-weight: 800;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mock-title { font-size: 1.28rem; font-weight: 950; letter-spacing: 0; margin: 3px 0 0; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255,93,115,.14);
}
.status-pill {
  border: 1px solid rgba(53,208,127,.35);
  background: rgba(53,208,127,.1);
  color: #a8ffd0;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  white-space: nowrap;
  font-size: .82rem;
}

.car-visual, .listing-photo {
  position: relative;
  min-height: 225px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at 30% 20%, rgba(255,176,0,.19), transparent 32%),
    #0d1017;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.listing-photo {
  min-height: 330px;
  display: block;
}

.listing-photo img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.listing-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.72));
  pointer-events: none;
}

.live-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.live-overlay span {
  color: rgba(255,255,255,.86);
  font-size: .86rem;
  font-weight: 850;
}

.live-overlay strong {
  font-size: 2rem;
  letter-spacing: 0;
}

.chat-stack {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  gap: 8px;
  max-width: 65%;
}

.chat-stack span {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,9,13,.64);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.swipe-actions {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.swipe-actions span {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(8,9,13,.68);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: .82rem;
  font-weight: 950;
}

.road-lines {
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

.car-svg {
  width: min(420px, 94%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 22px 18px rgba(0,0,0,.35));
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric small { color: var(--muted-2); display: block; font-weight: 800; margin-bottom: 5px; }
.metric strong { font-size: 1.15rem; }

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

.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--muted);
  font-weight: 800;
}

.alert-row span:first-child { color: var(--text); }
.alert-list.compact { gap: 8px; }
.alert-list.compact .alert-row { padding: 10px 11px; }

.ai-card {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(53,208,127,.08);
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 12px;
}

.ai-card strong {
  display: block;
  margin-bottom: 5px;
}

.ai-card p {
  color: #c7f7df;
  line-height: 1.45;
  margin: 0;
  font-size: .92rem;
}

.bid-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.bid-bar button {
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: 8px;
  min-height: 42px;
  font-weight: 950;
  cursor: pointer;
}

.bid-bar button:nth-child(2) {
  background: var(--accent-grad);
  border-color: transparent;
}

.section { padding: 70px 0; }
.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 950;
  font-size: .78rem;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.section-header p, .lead {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.live-market-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: 28px;
  align-items: center;
}

.live-room {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.live-room-video {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.live-room-video img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.live-room-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.76));
}

.live-room-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255,93,115,.92);
  color: white;
  padding: 8px 11px;
  font-weight: 950;
  font-size: .76rem;
}

.live-room-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.live-room-side {
  display: grid;
  align-content: stretch;
  background: rgba(0,0,0,.24);
}

.side-row {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.side-row:last-child {
  border-bottom: 0;
}

.side-row span {
  color: var(--muted-2);
  font-weight: 900;
  font-size: .82rem;
}

.side-row strong {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card, .hunt-card, .panel-card, .result-card {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.feature-card {
  min-height: 118px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(240,20,34,.14);
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 950;
}
.feature-card h3, .hunt-card h3 { margin-bottom: 8px; letter-spacing: 0; }
.feature-card p, .hunt-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.hunt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hunt-card {
  min-height: 150px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.panel-card {
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 950;
}

.analyzer-preview {
  display: grid;
  gap: 14px;
}
.preview-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0,0,0,.20);
}
.preview-row strong { letter-spacing: 0; }
.preview-row span { color: var(--muted); line-height: 1.5; }

.waitlist-band {
  background: linear-gradient(135deg, rgba(240,20,34,.16), rgba(255,255,255,.075));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.form-field label {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: .85rem;
  margin-bottom: 8px;
}
.input, .textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.26);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 15px;
  outline: 0;
}
.textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.55;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, select:focus { border-color: rgba(240,20,34,.62); }
.form-message { margin-top: 12px; color: #a8ffd0; font-weight: 850; min-height: 22px; }
.form-message.error { color: var(--red); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; }
.footer-links a:hover { color: var(--text); }

.page-hero {
  padding: 66px 0 34px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  margin-bottom: 18px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 760px;
}

.analyze-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 70px;
}

.analyze-form {
  position: sticky;
  top: 100px;
}
.form-stack { display: grid; gap: 14px; }
.result-stack { display: grid; gap: 14px; }
.result-card h3 { margin-bottom: 12px; }
.score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.score-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0,0,0,.22);
}
.score-box small { color: var(--muted-2); font-weight: 900; display: block; margin-bottom: 6px; }
.score-box strong { font-size: 1.5rem; }
.badge-low { color: var(--green); }
.badge-med { color: var(--yellow); }
.badge-high { color: var(--red); }
.output-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.content-card {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.content-card p { color: var(--muted); line-height: 1.75; }
.content-card ul { color: var(--muted); line-height: 1.8; padding-left: 21px; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.persona-card {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.persona-card h3,
.persona-card p,
.persona-card .tag-row {
  margin-left: 16px;
  margin-right: 16px;
}

.persona-card h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.persona-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.persona-card .tag-row {
  margin-bottom: 16px;
}

.persona-photo {
  aspect-ratio: 16 / 10;
  background: #11151d;
  overflow: hidden;
}

.persona-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-flow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-step {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 8px;
  padding: 18px;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240,20,34,.14);
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 14px;
}

.flow-step h3 {
  letter-spacing: 0;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.live-dashboard {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.feed-panel {
  position: sticky;
  top: 96px;
}

.feed-phone {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.055);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.vertical-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: #11151d;
}

.vertical-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.vertical-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78));
}

.vertical-card.is-live {
  min-height: 330px;
}

.vertical-card.is-live img {
  min-height: 330px;
}

.vertical-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.vertical-copy span,
.show-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  padding: 7px 10px;
  font-size: .74rem;
  font-weight: 950;
}

.vertical-copy h2 {
  font-size: 1.55rem;
  line-height: 1.05;
  margin: 10px 0 6px;
}

.vertical-copy p {
  color: rgba(255,255,255,.82);
  line-height: 1.45;
  margin: 0;
  font-size: .9rem;
}

.show-board {
  display: grid;
  gap: 16px;
}

.show-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.show-tabs button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font-weight: 950;
  cursor: pointer;
}

.show-tabs button.active {
  color: var(--text);
  background: rgba(240,20,34,.16);
  border-color: rgba(240,20,34,.42);
}

.show-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.show-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  overflow: hidden;
}

.show-card.hero-show {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
}

.show-media {
  position: relative;
  min-height: 210px;
  background: #11151d;
}

.hero-show .show-media {
  min-height: 360px;
}

.show-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.show-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.46));
}

.show-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.show-badge.live {
  background: rgba(255,93,115,.92);
}

.show-body {
  padding: 18px;
}

.hero-show .show-body {
  align-self: center;
  padding: 28px;
}

.show-meta {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 950;
  margin-bottom: 10px;
}

.show-body h2,
.show-body h3 {
  line-height: 1.05;
  margin-bottom: 10px;
}

.show-body p {
  color: var(--muted);
  line-height: 1.6;
}

.show-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-link {
  display: inline-flex;
  color: var(--accent);
  font-weight: 950;
  margin-top: 4px;
}

.auction-main {
  padding: 28px 0 70px;
}

.auction-room {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 18px;
  align-items: start;
}

.auction-stage,
.auction-panel {
  display: grid;
  gap: 14px;
}

.stream-shell {
  position: relative;
  min-height: 690px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  overflow: hidden;
  background: #11151d;
  box-shadow: var(--shadow);
}

.stream-shell img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
}

.stream-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.58), transparent 32%, rgba(0,0,0,.82));
}

.stream-topline {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stream-topline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,9,13,.62);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .8rem;
  font-weight: 950;
}

.stream-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.stream-caption span {
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .78rem;
}

.stream-caption h1 {
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: .95;
  margin: 8px 0 12px;
}

.stream-caption p {
  color: rgba(255,255,255,.84);
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
}

.vehicle-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.queue-car {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--text);
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.queue-car.active {
  border-color: rgba(240,20,34,.55);
  background: rgba(240,20,34,.12);
}

.queue-car img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.queue-car strong,
.queue-car span {
  display: block;
}

.queue-car span {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 3px;
}

.bid-card,
.trust-card,
.copilot-card,
.chat-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  padding: 16px;
}

.bid-head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.bid-head div {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius: 8px;
  padding: 13px;
}

.bid-head span {
  color: var(--muted-2);
  display: block;
  font-weight: 900;
  font-size: .8rem;
  margin-bottom: 5px;
}

.bid-head strong {
  font-size: 1.6rem;
}

.bid-controls {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.bid-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.bid-links a {
  color: var(--accent);
  font-weight: 950;
  font-size: .9rem;
}

.bid-controls button,
.chat-form button {
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: 8px;
  min-height: 44px;
  font-weight: 950;
  cursor: pointer;
}

.bid-controls button.hot,
.chat-form button {
  background: var(--accent-grad);
  border-color: transparent;
}

.bid-controls button.is-active {
  border-color: rgba(53,208,127,.35);
  background: rgba(53,208,127,.12);
  color: #c7f7df;
}

.bid-card p,
.copilot-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.trust-card h2,
.copilot-card h2,
.chat-card h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.trust-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(53,208,127,.28);
  background: rgba(53,208,127,.08);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.trust-score span {
  color: #c7f7df;
  font-weight: 950;
}

.trust-score strong {
  font-size: 2rem;
}

.chat-log {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  margin-bottom: 12px;
}

.chat-log p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 9px;
}

.chat-log strong {
  color: var(--text);
}

.chat-log p.user {
  border-color: rgba(240,20,34,.32);
  background: rgba(240,20,34,.10);
  color: #ffd5d8;
}

.chat-log p.system {
  border-color: rgba(53,208,127,.25);
  background: rgba(53,208,127,.08);
  color: #c7f7df;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
}

.chat-form button {
  padding-inline: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 20px;
  align-items: stretch;
  padding: 34px 0 22px;
}

.detail-media {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  overflow: hidden;
  background: #11151d;
  box-shadow: var(--shadow);
}

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

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.42));
}

.detail-media-label {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,9,13,.66);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 950;
}

.detail-summary,
.detail-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  padding: 20px;
}

.detail-summary {
  display: grid;
  align-content: center;
}

.detail-summary h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: .96;
  margin: 10px 0 14px;
}

.detail-summary p,
.detail-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.price-row div {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius: 8px;
  padding: 13px;
}

.price-row span,
.seller-stats span {
  display: block;
  color: var(--muted-2);
  font-weight: 900;
  font-size: .8rem;
  margin-bottom: 5px;
}

.price-row strong,
.seller-stats strong {
  font-size: 1.45rem;
}

.detail-actions,
.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 0 54px;
}

.detail-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.seller-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.seller-line span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f01422, #05070a);
  color: white;
  font-weight: 950;
}

.seller-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 1.55rem;
}

.similar-section {
  padding-bottom: 70px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.seller-hero {
  padding: 34px 0 22px;
}

.seller-cover {
  height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #11151d;
}

.seller-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
}

.seller-profile h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .95;
  margin: 8px 0 12px;
}

.seller-profile p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 780px;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 44px;
}

.seller-stats div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  padding: 16px;
}

.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  padding-bottom: 70px;
}

.seller-show-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 48px;
}

.compact-header {
  margin-top: 8px;
}

.seller-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

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

.review-list p {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.review-list strong {
  color: var(--text);
}

.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 70px;
}

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

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-stats div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 8px;
  padding: 16px;
}

.admin-stats span {
  display: block;
  color: var(--muted-2);
  font-size: .82rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.admin-stats strong {
  font-size: 1.7rem;
}

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

.admin-list,
.admin-table {
  display: grid;
  gap: 9px;
}

.admin-list-row,
.admin-table-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 10px;
}

.admin-list-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-list-row span,
.admin-table-row span,
.admin-table-row small {
  color: var(--muted);
  line-height: 1.45;
}

body[data-theme="light"] .dashboard-card,
body[data-theme="light"] .phone-shell,
body[data-theme="light"] .live-room,
body[data-theme="light"] .feature-card,
body[data-theme="light"] .hunt-card,
body[data-theme="light"] .panel-card,
body[data-theme="light"] .result-card,
body[data-theme="light"] .content-card,
body[data-theme="light"] .persona-card,
body[data-theme="light"] .flow-step,
body[data-theme="light"] .feed-phone,
body[data-theme="light"] .show-card,
body[data-theme="light"] .queue-car,
body[data-theme="light"] .bid-card,
body[data-theme="light"] .trust-card,
body[data-theme="light"] .copilot-card,
body[data-theme="light"] .chat-card,
body[data-theme="light"] .detail-summary,
body[data-theme="light"] .detail-card,
body[data-theme="light"] .seller-profile,
body[data-theme="light"] .seller-stats div,
body[data-theme="light"] .admin-stats div,
body[data-theme="light"] .admin-list-row,
body[data-theme="light"] .admin-table-row {
  background: rgba(255,255,255,.78);
  border-color: var(--line);
}

body[data-theme="light"] .hunt-card,
body[data-theme="light"] .panel-card,
body[data-theme="light"] .waitlist-band {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(241,245,249,.86));
}

body[data-theme="light"] .metric,
body[data-theme="light"] .preview-row,
body[data-theme="light"] .score-box,
body[data-theme="light"] .live-room-side,
body[data-theme="light"] .bid-head div,
body[data-theme="light"] .chat-log p,
body[data-theme="light"] .price-row div,
body[data-theme="light"] .review-list p {
  background: var(--inset-bg);
}

body[data-theme="light"] .input,
body[data-theme="light"] .textarea,
body[data-theme="light"] select,
body[data-theme="light"] .chat-form input {
  background: var(--field-bg);
  color: var(--text);
}

body[data-theme="light"] .tag,
body[data-theme="light"] .alert-row,
body[data-theme="light"] .show-tabs button,
body[data-theme="light"] .bid-bar button,
body[data-theme="light"] .bid-controls button,
body[data-theme="light"] .chat-form button:not(.hot) {
  background: rgba(255,255,255,.7);
  border-color: var(--line);
}

body[data-theme="light"] .feature-icon,
body[data-theme="light"] .flow-step span,
body[data-theme="light"] .queue-car.active,
body[data-theme="light"] .show-tabs button.active {
  background: rgba(229,9,26,.1);
  color: #a80010;
}

body[data-theme="light"] .ai-card,
body[data-theme="light"] .trust-score,
body[data-theme="light"] .chat-log p.system,
body[data-theme="light"] .bid-controls button.is-active {
  background: rgba(19,138,84,.09);
  border-color: rgba(19,138,84,.24);
  color: var(--success-text);
}

body[data-theme="light"] .ai-card p,
body[data-theme="light"] .trust-score span {
  color: var(--success-text);
}

body[data-theme="light"] .chat-log p.user {
  background: rgba(229,9,26,.08);
  color: var(--warm-text);
}

body[data-theme="light"] .mini-link,
body[data-theme="light"] .bid-links a {
  color: var(--warm-text);
}

body[data-theme="light"] .car-visual,
body[data-theme="light"] .persona-photo,
body[data-theme="light"] .vertical-card,
body[data-theme="light"] .show-media,
body[data-theme="light"] .stream-shell,
body[data-theme="light"] .detail-media,
body[data-theme="light"] .seller-cover {
  background: #e8eef5;
}

body[data-theme="light"] .status-pill {
  color: var(--success-text);
}

@media (max-width: 980px) {
  .hero-grid, .split, .analyze-layout, .two-col, .live-market-grid, .live-dashboard, .auction-room, .detail-hero, .seller-layout, .admin-layout { grid-template-columns: 1fr; }
  .card-grid, .hunt-grid { grid-template-columns: repeat(2, 1fr); }
  .persona-grid, .flow-steps, .detail-grid, .similar-grid, .seller-stats, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .analyze-form { position: static; }
  .feed-panel, .seller-sidebar { position: static; }
  .nav-links { display: none; }
  .phone-shell { justify-self: center; }
  .show-grid { grid-template-columns: repeat(2, 1fr); }
  .show-card.hero-show { grid-template-columns: 1fr; }
  .auction-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 56px; }
  .nav { gap: 10px; }
  .brand-text { display: none; }
  .brand-mark,
  .theme-toggle { width: 42px; height: 42px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { white-space: nowrap; }
  .hunt-box { flex-direction: column; }
  .hunt-box .btn { width: 100%; }
  .card-grid, .hunt-grid, .metrics, .score-row, .persona-grid, .flow-steps, .show-grid, .auction-panel, .vehicle-strip, .detail-grid, .similar-grid, .seller-stats, .price-row, .seller-show-grid, .admin-stats, .admin-grid { grid-template-columns: 1fr; }
  .preview-row { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .btn { padding-inline: 15px; }
  .phone-shell { padding: 16px; border-radius: 26px; }
  .listing-photo, .listing-photo img { height: 290px; min-height: 290px; }
  .live-room { grid-template-columns: 1fr; }
  .live-room-video, .live-room-video img { min-height: 310px; }
  .live-overlay { align-items: start; flex-direction: column; gap: 6px; }
  .chat-stack { max-width: 78%; }
  .feed-phone { border-radius: 20px; }
  .vertical-card.is-live,
  .vertical-card.is-live img { min-height: 260px; }
  .hero-show .show-media,
  .show-media { min-height: 240px; }
  .stream-shell,
  .stream-shell img { min-height: 560px; }
  .stream-topline { left: 12px; right: 12px; top: 12px; }
  .stream-caption { left: 12px; right: 12px; bottom: 12px; }
  .chat-form { grid-template-columns: 1fr; }
  .admin-list-row { grid-template-columns: 1fr; }
  .detail-media,
  .detail-media img { min-height: 360px; }
  .seller-profile { grid-template-columns: 1fr; }
  .seller-avatar.large { width: 72px; height: 72px; font-size: 1.2rem; }
}
