/* CoreDrive — brand design system */
:root {
  --cd-navy: #0A1A30;
  --cd-ink: #0d2137;
  --cd-blue: #1B4DFF;
  --cd-blue-deep: #0E3AD6;
  --cd-cyan: #33C1FF;
  --cd-sky: #E8F4FF;
  --cd-mist: #F4F8FC;
  --cd-line: #D5E3F0;
  --cd-muted: #5A6B7D;
  --cd-white: #ffffff;
  --cd-success: #0F9F6E;
  --cd-danger: #D92D20;
  --cd-radius: 14px;
  --cd-shadow: 0 18px 50px rgba(10, 26, 48, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--cd-navy);
  background: var(--cd-mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cd-blue); text-decoration: none; }
a:hover { color: var(--cd-blue-deep); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.muted { color: var(--cd-muted); }
.container { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .85rem 1.4rem;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cd-cyan), var(--cd-blue) 55%, var(--cd-blue-deep));
  color: #fff; box-shadow: 0 10px 28px rgba(27, 77, 255, .28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: transparent; color: var(--cd-navy);
  border: 1.5px solid var(--cd-line);
}
.btn-dark { background: var(--cd-navy); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-danger { background: var(--cd-danger); color: #fff; }

/* Marketing nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 252, .86);
  border-bottom: 1px solid rgba(213, 227, 240, .7);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; }
.brand img { height: 42px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand-text span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--cd-muted); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--cd-ink); font-weight: 600; font-size: .92rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--cd-line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--cd-navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* Hero — Autocore-inspired, brand-first */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(51, 193, 255, .28), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(27, 77, 255, .18), transparent 55%),
    linear-gradient(180deg, #EEF5FF 0%, #F4F8FC 55%, #ffffff 100%);
}
.hero--photo {
  color: #fff;
  background: #0A1A30;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4.5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 18, 34, .92) 0%, rgba(10, 26, 48, .78) 42%, rgba(10, 26, 48, .45) 70%, rgba(10, 26, 48, .55) 100%),
    linear-gradient(0deg, rgba(7, 18, 34, .55), transparent 45%);
}
.hero--photo .container { position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  margin: 0 0 1rem;
  color: var(--cd-cyan);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero-brand-mark { height: 72px; margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: .75rem;
}
.hero--photo h1 { color: #fff; }
.hero .lead {
  font-size: 1.12rem; color: var(--cd-muted); max-width: 38ch; margin-bottom: 1.75rem;
}
.hero--photo .lead { color: rgba(255,255,255,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-on-dark {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn-on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-visual {
  position: relative;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-photo-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: #0A1A30;
}
.hero-photo-card img {
  width: 100%;
  height: clamp(240px, 34vw, 360px);
  object-fit: cover;
  display: block;
}
.hero-photo-card figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .85rem 1.1rem;
  background: rgba(7, 18, 34, .92);
  font-size: .85rem;
}
.hero-photo-card figcaption span { color: rgba(255,255,255,.65); }
.hero-photo-card figcaption strong { color: var(--cd-cyan); font-weight: 700; }
.vehicle-preview {
  background: var(--cd-navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  background-image:
    linear-gradient(135deg, rgba(51,193,255,.25), transparent 45%),
    linear-gradient(225deg, rgba(27,77,255,.45), var(--cd-navy));
}
.vehicle-preview .price { font-size: 1.6rem; font-weight: 800; color: var(--cd-cyan); }
.vehicle-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; font-size: .85rem; }
.vehicle-meta span { display: block; color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.subdomain-chip {
  display: inline-flex; margin-top: 1rem; padding: .45rem .8rem;
  border-radius: 999px; background: rgba(255,255,255,.1); font-size: .8rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.replace-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.panel-box {
  background: #fff; border: 1px solid var(--cd-line); border-radius: var(--cd-radius);
  padding: 1.5rem;
}
.panel-box.accent {
  background: linear-gradient(160deg, #0A1A30, #123056);
  color: #fff; border: 0;
}
.panel-box ol { margin: 0; padding-left: 1.1rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.feature-item {
  padding: 1.35rem 1.25rem;
  border-radius: var(--cd-radius);
  background: #fff;
  border: 1px solid var(--cd-line);
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature-item p { margin: 0; color: var(--cd-muted); font-size: .92rem; }
.icon-dot {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: .85rem;
  background: linear-gradient(135deg, var(--cd-cyan), var(--cd-blue));
}

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.stat strong { display: block; font-size: 1.8rem; font-family: var(--font-display); }
.cta-band {
  margin: 2rem 0 4rem;
  border-radius: 28px;
  padding: 3rem;
  background:
    linear-gradient(120deg, rgba(51,193,255,.2), transparent 40%),
    linear-gradient(180deg, #0A1A30, #123056);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.site-footer {
  border-top: 1px solid var(--cd-line);
  padding: 2.5rem 0;
  background: #fff;
  color: var(--cd-muted); font-size: .9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Forms */
.stack-form { display: grid; gap: .9rem; }
.stack-form label, .form-grid label {
  display: grid; gap: .35rem; font-weight: 600; font-size: .88rem;
}
input, select, textarea {
  width: 100%; border: 1.5px solid var(--cd-line); border-radius: 10px;
  padding: .7rem .85rem; font: inherit; background: #fff; color: var(--cd-navy);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(27,77,255,.25); border-color: var(--cd-blue);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert {
  padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; font-size: .92rem;
}
.alert-error { background: #FEE4E2; color: #B42318; }
.alert-success { background: #D1FADF; color: #027A48; }
.alert-info { background: var(--cd-sky); color: var(--cd-blue-deep); }

/* Auth */
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(51,193,255,.2), transparent),
    var(--cd-mist);
}
.auth-card {
  width: min(440px, 100%); background: #fff; border-radius: 20px;
  padding: 2rem; border: 1px solid var(--cd-line); box-shadow: var(--cd-shadow);
}
.auth-card img { height: 52px; margin: 0 auto 1rem; }

/* App shell / panels */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #071222, #0A1A30 40%, #0E2748);
  color: #fff; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow: auto;
}
.sidebar .brand { margin-bottom: 1.5rem; padding: 0 .4rem; }
.sidebar .brand img { height: 36px; background: #fff; border-radius: 8px; padding: 4px; }
.sidebar .brand-text { color: #fff; }
.sidebar nav a {
  display: block; color: rgba(255,255,255,.78); padding: .65rem .85rem;
  border-radius: 10px; font-weight: 600; font-size: .9rem; margin-bottom: .2rem;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(51,193,255,.16); color: #fff;
}
.app-main { padding: 1.5rem 1.75rem 3rem; }
.app-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: var(--cd-radius);
  padding: 1.1rem 1.2rem;
}
.stat-card span { color: var(--cd-muted); font-size: .82rem; font-weight: 600; }
.stat-card strong { display: block; font-size: 1.45rem; margin-top: .25rem; font-family: var(--font-display); }

.table-wrap {
  background: #fff; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--cd-line); }
th { background: var(--cd-sky); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cd-muted); }
.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: var(--cd-sky); color: var(--cd-blue-deep);
}
.badge-green { background: #D1FADF; color: #027A48; }
.badge-amber { background: #FEF0C7; color: #B54708; }
.badge-red { background: #FEE4E2; color: #B42318; }

/* Marketplace */
.market-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #E8F4FF, var(--cd-mist));
}
.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem;
}
.listing-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: 16px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--cd-shadow); }
.listing-thumb {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(51,193,255,.35), rgba(27,77,255,.55)),
    var(--cd-navy);
  background-size: cover;
  background-position: center;
}
.listing-body { padding: 1rem 1.1rem 1.2rem; }
.listing-body h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.listing-price { font-weight: 800; color: var(--cd-blue); font-size: 1.1rem; }
.filter-bar {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .6rem;
  background: #fff; padding: 1rem; border-radius: 14px; border: 1px solid var(--cd-line);
  margin-bottom: 1.5rem;
}

/* Pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.price-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: 18px; padding: 1.5rem;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--cd-cyan), var(--cd-blue)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--cd-shadow);
}
.price-card .amount { font-size: 2rem; font-family: var(--font-display); font-weight: 800; }

/* Chat / WhatsApp */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; min-height: 480px; }
.thread-list, .chat-pane {
  background: #fff; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); overflow: hidden;
}
.thread-item { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--cd-line); color: inherit; }
.thread-item.active { background: var(--cd-sky); }
.messages { padding: 1rem; display: grid; gap: .65rem; max-height: 360px; overflow: auto; }
.bubble {
  max-width: 75%; padding: .7rem .9rem; border-radius: 14px; font-size: .9rem;
}
.bubble.in { background: var(--cd-sky); }
.bubble.out { background: var(--cd-blue); color: #fff; margin-left: auto; }
.chat-compose { display: flex; gap: .5rem; padding: 1rem; border-top: 1px solid var(--cd-line); }

/* Dealer themes */
.theme-classic { --theme-accent: var(--cd-blue); }
.theme-modern { --theme-accent: #0E3AD6; }
.theme-showroom { --theme-accent: #0A1A30; }
.dealer-site-header {
  background: #fff; border-bottom: 1px solid var(--cd-line); padding: 1rem 0;
}
.dealer-hero {
  padding: 3.5rem 0;
  background: linear-gradient(120deg, #0A1A30, #1B4DFF);
  color: #fff;
}
.dealer-hero h1 { color: #fff; }

/* Install */
.install-body {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(500px 280px at 50% 0%, rgba(51,193,255,.25), transparent), var(--cd-mist);
}
.install-card {
  width: min(480px, calc(100% - 2rem)); background: #fff; border-radius: 20px;
  padding: 2rem; border: 1px solid var(--cd-line); box-shadow: var(--cd-shadow);
}
.install-logo { height: 56px; margin: 0 auto 1rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .45rem 0; font-weight: 600; }
.check-list .ok { color: var(--cd-success); }
.check-list .fail { color: var(--cd-danger); }

@media (max-width: 960px) {
  .hero-grid, .replace-grid, .feature-grid, .price-grid, .stat-cards, .stats-row, .chat-layout, .app-shell, .filter-bar, .form-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { position: relative; height: auto; }
  .app-shell { display: block; }
  .nav-row { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--cd-line);
    border-radius: 16px;
    box-shadow: var(--cd-shadow);
    z-index: 50;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: .85rem .9rem;
    border-radius: 10px;
    width: 100%;
  }
  .nav-links a:hover { background: var(--cd-sky); }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: .25rem; }
  .brand-text span { display: none; }
  .hero--photo { min-height: auto; padding: 3.5rem 0 3rem; }
  .hero-photo-card img { height: 220px; }
}

/* Admin builders */
.form-error { color: var(--cd-danger); font-size: .82rem; font-weight: 600; margin-top: -.5rem; }
.checkbox-row { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.builder-page { display: grid; gap: 1.25rem; }
.builder-page__intro { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.builder-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.builder-tab {
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: #fff; border: 1.5px solid var(--cd-line); color: var(--cd-navy);
}
.builder-tab.is-active {
  background: linear-gradient(135deg, var(--cd-cyan), var(--cd-blue));
  color: #fff; border-color: transparent;
}
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.builder-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); padding: 1.1rem;
}
.builder-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; gap: .75rem; }
.builder-card__head h3 { margin: 0; font-size: 1.05rem; }
.builder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.builder-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: start;
  padding: .75rem; border: 1.5px solid var(--cd-line); border-radius: 12px; background: var(--cd-mist);
  cursor: grab;
}
.builder-item.is-dragging { opacity: .55; }
.builder-item.is-over { border-color: var(--cd-blue); }
.builder-item__handle { color: var(--cd-muted); font-weight: 800; padding-top: .35rem; user-select: none; }
.builder-item__fields { display: grid; gap: .45rem; }
.builder-item__fields--form { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.builder-item__fields { grid-template-columns: 1fr 1fr; }
.builder-mini { display: grid; gap: .2rem; font-size: .75rem; font-weight: 700; color: var(--cd-muted); }
.builder-mini input, .builder-mini select { font-size: .88rem; font-weight: 500; color: var(--cd-navy); }
.builder-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; margin-top: 1.1rem; }
.builder-item__remove {
  border: 0; background: #FEE4E2; color: #B42318; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.builder-lock { font-size: .9rem; padding-top: .4rem; }
.builder-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
@media (max-width: 960px) {
  .builder-grid, .builder-item__fields, .builder-item__fields--form { grid-template-columns: 1fr; }
}

.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: .95rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(51,193,255,.18), rgba(27,77,255,.12));
  color: var(--cd-blue);
  border: 1px solid rgba(27,77,255,.12);
}
.feature-icon svg { width: 24px; height: 24px; }
.features-hero-band { background: linear-gradient(180deg, #E8F4FF 0%, var(--cd-mist) 40%, #fff 100%); }
.features-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(51,193,255,.18), transparent 55%),
    linear-gradient(180deg, #E8F4FF 0%, #F7FBFF 55%, #fff 100%);
}
.features-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; margin: 0 0 .8rem; }
.features-lead { max-width: 42rem; color: var(--cd-muted); font-size: 1.08rem; margin: 0 0 1.5rem; }
.features-kicker {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cd-blue); font-weight: 700; margin: 0 0 .55rem;
}
.features-jump { display: flex; flex-wrap: wrap; gap: .45rem; }
.features-jump a {
  text-decoration: none; color: var(--cd-navy); font-weight: 600; font-size: .88rem;
  border: 1px solid var(--cd-line); background: #fff; border-radius: 999px; padding: .4rem .85rem;
}
.features-jump a:hover { border-color: var(--cd-blue); color: var(--cd-blue); }
.feature-block { padding: 4rem 0; scroll-margin-top: 5rem; }
.feature-block--alt { background: linear-gradient(180deg, #F7FBFF, #fff); }
.feature-block-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.feature-block--alt .feature-block-grid { grid-template-columns: .95fr 1.05fr; }
.feature-block--alt .feature-mock { order: -1; }
.feature-copy h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 .7rem; }
.feature-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.feature-points li {
  position: relative; padding-left: 1.35rem; color: var(--cd-navy); font-weight: 500;
}
.feature-points li::before {
  content: ''; position: absolute; left: 0; top: .45rem; width: .7rem; height: .7rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--cd-cyan), var(--cd-blue));
}
.feature-mock { min-width: 0; }
.mock-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: 20px;
  padding: 1.1rem 1.15rem; box-shadow: 0 18px 40px rgba(10,26,48,.08);
}
.mock-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; font-weight: 700; }
.mock-head em { font-style: normal; color: var(--cd-muted); font-weight: 500; font-size: .85rem; }
.mock-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: .55rem; align-items: center;
  padding: .65rem 0; border-top: 1px solid var(--cd-line); font-size: .9rem;
}
.mock-row i { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--cd-muted); }
.mock-row i.ok { color: #0B8F5A; }
.mock-foot { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--cd-line); color: var(--cd-muted); font-size: .88rem; }
.mock-lead { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--cd-line); }
.mock-lead b {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #E8F4FF; color: var(--cd-blue); font-size: .75rem;
}
.mock-lead small { display: block; color: var(--cd-muted); }
.mock-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: .6rem; }
.mock-metrics-3 { margin-top: .8rem; margin-bottom: 0; }
.mock-metrics div { background: var(--cd-sky); border-radius: 12px; padding: .7rem; }
.mock-metrics small { display: block; color: var(--cd-muted); font-size: .72rem; }
.mock-metrics strong { display: block; font-size: 1.05rem; margin: .15rem 0; }
.mock-metrics em { font-style: normal; font-size: .75rem; color: var(--cd-muted); }
.mock-metrics em.up { color: #0B8F5A; }
.mock-chart { display: flex; align-items: flex-end; gap: .35rem; height: 110px; padding: .4rem 0 .8rem; }
.mock-chart i {
  flex: 1; display: block; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--cd-cyan), var(--cd-blue)); opacity: .85;
}
.mock-browser { display: flex; gap: .35rem; margin-bottom: .8rem; }
.mock-browser span { width: 8px; height: 8px; border-radius: 50%; background: #D0D7E2; }
.mock-site-hero {
  background: linear-gradient(135deg, #0A1A30, #1B4DFF); color: #fff;
  border-radius: 12px; padding: 1.4rem 1rem; font-weight: 700; margin-bottom: .7rem;
}
.mock-site-grid, .mock-market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: .7rem; }
.mock-market-grid { grid-template-columns: repeat(2, 1fr); }
.mock-site-grid div, .mock-market-grid div {
  height: 54px; border-radius: 10px;
  background: linear-gradient(135deg, #E8F4FF, #cfe4ff);
}
.mock-site p { margin: 0; color: var(--cd-muted); font-size: .88rem; }
.feature-connected {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, #0A1A30, #123056);
  color: #fff;
}
.feature-connected .muted { color: rgba(255,255,255,.72); }
.feature-connected .features-kicker { color: var(--cd-cyan); }
.feature-connected h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .7rem; }
.feature-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.8rem 0 1.6rem;
}
.feature-flow div {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1rem;
}
.feature-flow strong { display: block; margin-bottom: .25rem; }
.feature-flow span { color: rgba(255,255,255,.7); font-size: .9rem; }
.feature-cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.feature-cta-row .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 900px) {
  .feature-block-grid, .feature-block--alt .feature-block-grid { grid-template-columns: 1fr; }
  .feature-block--alt .feature-mock { order: 0; }
  .feature-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-flow, .mock-metrics { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr; }
}
.listing-thumb--photo {
  background-color: #0A1A30;
  background-size: cover;
  background-position: center;
}

.login-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-aside {
  color: #fff; padding: 2rem 2.4rem;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.login-aside .brand-text, .login-aside .brand-text span { color: #fff; }
.login-aside .brand img { background: #fff; border-radius: 10px; padding: 4px; height: 48px; }
.login-aside-copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; margin: 0 0 1.2rem; }
.login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.login-points li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-weight: 600; font-size: 1.02rem;
}
.login-points li::before {
  content: ""; width: 22px; height: 22px; flex: 0 0 22px; margin-top: .1rem;
  border-radius: 50%; background: #33C1FF;
  box-shadow: inset 0 0 0 6px #0A1A30;
}
.login-panel { display: grid; place-items: center; padding: 2rem 1.25rem; background: #fff; }
.login-card { width: min(420px, 100%); }
.login-mark { height: 48px; margin-bottom: .6rem; }
.login-card h1 { margin: 0 0 .35rem; font-size: 2rem; }
.login-submit { width: 100%; margin-top: .4rem; }
.login-foot { text-align: center; margin-top: 1.2rem; }
.password-field { display: flex; gap: .45rem; align-items: center; }
.password-field input { flex: 1; }
.hub-section { margin: 1.35rem 0 1.6rem; }
.hub-section h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cd-muted); margin: 0 0 .7rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.hub-tile {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--cd-line); border-radius: 16px;
  padding: .9rem 1rem; color: inherit; min-height: 84px;
}
.hub-tile:hover { border-color: #1B4DFF; box-shadow: var(--cd-shadow); }
.hub-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
  display: grid; place-items: center; color: #1B4DFF;
  background: linear-gradient(145deg, rgba(51,193,255,.2), rgba(27,77,255,.1));
}
.hub-icon svg { width: 22px; height: 22px; }
.hub-copy { display: grid; min-width: 0; }
.hub-copy strong { font-size: .98rem; }
.hub-copy span { color: var(--cd-muted); font-size: .8rem; font-weight: 600; }
.hub-tile em {
  margin-left: auto; font-style: normal; font-family: var(--font-display);
  font-weight: 800; color: var(--cd-navy);
}
.upgrade-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.upgrade-icon {
  width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%;
  display: grid; place-items: center; color: #1B4DFF;
  background: #E8F4FF;
}
.upgrade-icon svg { width: 28px; height: 28px; }
.upgrade-card {
  text-align: left; background: #fff; border: 1px solid var(--cd-line);
  border-radius: 18px; padding: 1.1rem 1.2rem; margin: 1rem 0 1.2rem;
}
.upgrade-card h3 { text-align: center; margin: .2rem 0 1rem; }
.upgrade-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.upgrade-card li { display: flex; gap: .7rem; align-items: flex-start; }
.upgrade-card strong, .upgrade-card small { display: block; }
.upgrade-card small { color: var(--cd-muted); font-weight: 600; }
.upgrade-check { color: #027A48; font-weight: 800; }
.upgrade-cta { width: 100%; margin-bottom: .6rem; }
.settings-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.settings-tabs a {
  padding: .45rem .8rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--cd-line); font-weight: 700; font-size: .85rem; color: var(--cd-navy);
}
.settings-tabs a.is-active { background: #1B4DFF; color: #fff; border-color: transparent; }
.section-settings { margin-bottom: 1rem; max-width: 720px; }
.site-announce { background: #0A1A30; color: #fff; text-align: center; padding: .55rem 1rem; font-size: .92rem; }
.footer-social { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .7rem; }
.cms-preview { background: var(--cd-sky); border-radius: 12px; padding: .8rem; display: inline-block; }
.cms-preview img { max-width: 180px; max-height: 72px; height: auto; display: block; }
.cms-preview-sm img { max-width: 48px; max-height: 48px; }
.cms-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-top: 1rem; }
.cms-media figure, .cms-media-pick button { margin: 0; border: 1px solid var(--cd-line); border-radius: 12px; overflow: hidden; background: #fff; padding: 0; }
.cms-media img { width: 100%; height: 120px; object-fit: cover; display: block; }
.cms-media figcaption { padding: .5rem; display: grid; gap: .4rem; }
.cms-media figcaption input { width: 100%; font-size: .75rem; }
.cms-media-pick { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.cms-media-pick img { height: 72px; cursor: pointer; }
.cms-body img { max-width: 100%; height: auto; }
.cms-body h1, .cms-body h2, .cms-body h3 { margin: .4rem 0 .6rem; }
.mail-editor { border: 1px solid var(--cd-line); border-radius: 14px; overflow: hidden; background: #fff; }
.mail-editor-bar { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; padding: .55rem; background: var(--cd-sky); border-bottom: 1px solid var(--cd-line); }
.mail-editor-bar button, .mail-editor-tools button {
  border: 1px solid var(--cd-line); background: #fff; border-radius: 8px;
  padding: .35rem .6rem; font-weight: 700; cursor: pointer; color: var(--cd-navy);
}
.mail-editor-bar button.is-active { background: #1B4DFF; color: #fff; border-color: transparent; }
.mail-editor-tools { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.mail-visual, .mail-html {
  min-height: 220px; padding: .9rem 1rem; width: 100%; border: 0; outline: none;
  font: inherit; color: var(--cd-navy); background: #fff; box-sizing: border-box;
}
.mail-html { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; display: none; }
.mail-html:not([hidden]) { display: block; }
.mail-visual[hidden], .mail-html[hidden] { display: none; }
.row-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
@media (max-width: 960px) {
  .login-split { grid-template-columns: 1fr; }
  .login-aside { min-height: 280px; padding: 1.4rem; }
  .login-aside-copy h2 { font-size: 1.6rem; }
}

.app-topbar { display: none; }
.nav-backdrop { display: none; }
.nav-section {
  margin: 1rem .4rem .35rem;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 700;
}
.sidebar { display: flex; flex-direction: column; }
.sidebar nav { flex: 1; }
.sidebar-user {
  display: flex; gap: .7rem; align-items: center;
  margin-top: 1rem; padding: .8rem .4rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sidebar-user strong, .sidebar-user span { display: block; color: #fff; }
.sidebar-user span { color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 500; }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #1B4DFF; color: #fff; font-weight: 800;
  object-fit: cover;
}
.profile-head { display: flex; gap: 1rem; align-items: center; }
.profile-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 1.4rem; }
.welcome-block h2 { margin: 0 0 .25rem; }
.overview-analytics { margin-top: .25rem; }
.overview-analytics-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem;
}
.overview-analytics-head h2 { margin: 0; }
.overview-mini-stats { margin-bottom: 1rem; }
.overview-charts {
  display: grid; grid-template-columns: 1.45fr .85fr; gap: 1rem; margin-bottom: .5rem;
}
.overview-charts .panel-box h3 { margin: 0 0 .85rem; font-size: 1rem; }
.overview-charts canvas { width: 100% !important; max-height: 260px; }
@media (max-width: 900px) {
  .overview-charts { grid-template-columns: 1fr; }
}
.welcome-date { margin-top: .15rem; }
.start-card { text-align: center; }
.start-card > .metric-icon { margin: .4rem auto 1rem; }
.step-list { display: grid; gap: .85rem; text-align: left; margin-top: 1.25rem; }
.step-card {
  position: relative; border: 1px solid var(--cd-line); border-radius: 16px; padding: 1.1rem 1.1rem 1.1rem 1.2rem;
  background: #fff;
}
.step-num {
  position: absolute; left: -12px; top: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: #0A1A30; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.step-card h4 { margin: .2rem 0 .35rem; }
.step-card p { margin: 0 0 .6rem; color: var(--cd-muted); }
.step-card a { color: #1B4DFF; font-weight: 700; }
.toolbar, .inline-form, .date-range, .filter-row {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .9rem 0 1rem;
}
.filter-row input, .filter-row select, .date-range input { max-width: 280px; }
.empty-card {
  border: 1.5px dashed var(--cd-line); border-radius: 18px; background: #fff;
  text-align: center; padding: 2.4rem 1.2rem; margin: 1rem 0;
}
.empty-card h3 { margin: .4rem 0 .35rem; }
.metric-stack { display: grid; gap: .85rem; margin: 1rem 0 1.2rem; }
.metric-card {
  background: #fff; border: 1px solid var(--cd-line); border-radius: 16px; padding: 1.15rem 1.2rem;
}
.metric-card strong { display: block; font-size: 1.7rem; font-family: var(--font-display); margin: .35rem 0 .1rem; }
.metric-card span { color: var(--cd-muted); font-weight: 600; }
.metric-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #FFF1F0; color: #E11D48; font-weight: 800;
}
.metric-icon svg { width: 22px; height: 22px; }
.auction-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: start; }
@media (max-width: 960px) {
  .app-topbar {
    display: flex; align-items: center; gap: .75rem;
    position: sticky; top: 0; z-index: 40;
    background: #fff; border-bottom: 1px solid var(--cd-line);
    padding: .7rem 1rem;
  }
  .app-topbar .brand img { height: 32px; }
  .app-topbar .brand-text { color: var(--cd-navy); }
  .sidebar#app-nav {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 88vw); height: 100vh; z-index: 80;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: var(--cd-shadow);
  }
  .sidebar#app-nav.is-open { transform: translateX(0); }
  .nav-backdrop.is-open {
    display: block; position: fixed; inset: 0; z-index: 70;
    background: rgba(10, 26, 48, .45);
  }
  .app-main { padding: 1.1rem 1rem 2.5rem; }
  .auction-layout { grid-template-columns: 1fr; }
}
