:root {
  --red: #4b168c;
  --red-dark: #2b064f;
  --red-soft: #f4ecff;
  --ink: #14151a;
  --muted: #737782;
  --line: #e8e9ee;
  --paper: #ffffff;
  --bg: #f5f6fa;
  --green: #16a45f;
  --blue: #2563eb;
  --gold: #f59e0b;
  --shadow: 0 14px 38px rgba(22, 26, 39, 0.09);
  --radius: 18px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  background: linear-gradient(100deg, var(--red), #22053d);
  color: #fff;
  font-size: 13px;
}
.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 12px;
}
.top-strip span:last-child { opacity: .9; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 22px;
  color: var(--red);
  white-space: nowrap;
}
.brand-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: #000; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a4d57;
  font-weight: 700;
  font-size: 14px;
  margin-right: auto;
}
.nav-links a, .nav-links button {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 12px;
  color: inherit;
}
.nav-links a:hover, .nav-links button:hover { background: #f0f1f5; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .primary-button, .secondary-button, .ghost-button, .danger-button, .success-button {
  border: 0;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(75,22,140,.24);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(75,22,140,.30); }
.secondary-button { background: #fff; color: var(--red); border: 1px solid #d8c4ff; }
.ghost-button { background: #f1f2f6; color: #3e424c; }
.danger-button { background: #fff1f3; color: var(--red); border: 1px solid #d8c4ff; }
.success-button { background: var(--green); color: white; }
.icon-button { width: 42px; padding: 0; background: #f1f2f6; color: var(--ink); }
.mobile-menu { display: none; }

.hero {
  padding: 26px 0 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}
.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.26), transparent 22%),
    linear-gradient(135deg, #181923 0%, #3b0764 52%, #6d28d9 100%);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 420px;
  height: 210px;
  border-radius: 100% 0 0 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
  transform: rotate(-8deg);
}
.hero-eyebrow {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.05em;
}
.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 590px;
  color: rgba(255,255,255,.84);
  font-size: 16px;
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.stat-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 10px 14px;
  display: grid;
  gap: 2px;
}
.stat-pill strong { font-size: 20px; }
.stat-pill span { color: rgba(255,255,255,.78); font-size: 12px; }

.search-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.search-card h2 { margin: 0 0 14px; font-size: 20px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #565b66; font-size: 12px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfbfd;
  border-radius: 13px;
  padding: 12px 12px;
  outline: none;
  min-height: 44px;
  color: var(--ink);
}
.textarea { min-height: 112px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(75,22,140,.55); box-shadow: 0 0 0 4px rgba(75,22,140,.10); }
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  color: #4f535d;
  font-weight: 800;
  font-size: 13px;
}
.filter-chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.section { padding: 14px 0 30px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sort-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.car-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(24,29,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-width: 0;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(75,22,140,.25); }
.car-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #202536, #4b168c);
  overflow: hidden;
}
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.03em;
}
.badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
}
.badge.vip { background: var(--red); }
.badge.featured { background: var(--green); }
.badge.urgent { background: var(--gold); }
.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.93);
  color: #1f2430;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.car-body { padding: 13px; }
.price { color: var(--ink); font-size: 21px; font-weight: 950; letter-spacing: -.03em; margin-bottom: 4px; }
.car-title { font-weight: 850; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { color: #575d68; font-size: 13px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.meta { margin-top: 10px; color: #868b95; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }

.empty-state, .notice {
  border: 1px dashed #d7d9e2;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.notice { text-align: left; }

.detail-page { padding: 20px 0 86px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}
.gallery, .detail-info, .seller-card, .admin-panel, .login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.gallery { overflow: hidden; }
.main-photo { aspect-ratio: 16 / 11; background: linear-gradient(135deg, #151923, #4b168c); position: relative; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }
.thumb { aspect-ratio: 1.5; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #eef0f5; }
.thumb.active { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 20px; }
.back-link { color: var(--red); font-weight: 900; margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }
.detail-title-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.detail-title-row h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; }
.detail-price { margin: 12px 0 16px; font-size: 34px; font-weight: 950; color: var(--red); letter-spacing: -.05em; }
.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fbfbfd;
}
.spec-item span { display: block; font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.spec-item strong { font-size: 15px; }
.description { margin-top: 18px; color: #3f444f; line-height: 1.68; }
.warning-box {
  margin-top: 16px;
  background: #fff4e5;
  border: 1px solid #ffd69c;
  color: #754500;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
}
.seller-card { margin-top: 14px; padding: 16px; }
.seller-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 950;
}
.seller-row h3 { margin: 0; font-size: 17px; }
.seller-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticky-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.sticky-contact .contact-row { max-width: 520px; margin: 0 auto; }

.admin-page { padding: 24px 0 80px; }
.login-card { max-width: 420px; margin: 40px auto; padding: 24px; }
.login-card h1, .admin-panel h1 { margin: 0 0 12px; letter-spacing: -.04em; }
.admin-panel { padding: 18px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.admin-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.admin-item:last-child { border-bottom: 0; }
.admin-item strong { display: block; }
.admin-item small { color: var(--muted); }
.admin-actions { display: flex; gap: 6px; }
.form-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.switches { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.switches label { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #4a4e59; }
.message { margin-top: 12px; border-radius: 14px; padding: 12px; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.message.error { background: #fff1f3; color: #581c87; border-color: #ddd6fe; }

.red-link { color: var(--red); font-weight: 900; }
.wide-form { max-width: 860px; margin: 0 auto; }
.small-button { min-height: 34px; padding: 0 10px; border-radius: 11px; font-size: 12px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 900;
  font-size: 11px;
  margin-left: 4px;
  background: #eef0f5;
  color: #4b5563;
}
.status-badge.active { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fff7ed; color: #9a3412; }
.status-badge.rejected { background: #fff1f3; color: #581c87; }
.status-badge.draft { background: #eef0f5; color: #4b5563; }
.auth-page .login-card .field { margin-bottom: 10px; }


.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
  color: #777b85;
  font-weight: 800;
}
.mobile-bottom-nav b { font-size: 20px; line-height: 1; }
.mobile-bottom-nav .add-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -22px;
  font-size: 30px;
  box-shadow: 0 8px 18px rgba(75,22,140,.30);
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 90px;
  color: #666b76;
  font-size: 14px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.loader {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #e7e8ee;
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
  margin: 38px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .detail-grid, .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 20px, var(--container)); }
  .top-strip { display: none; }
  .header-inner { height: 58px; }
  .nav-links { display: none; }
  .desktop-add { display: none; }
  .mobile-menu { display: inline-flex; }
  .hero { padding: 14px 0 8px; }
  .hero-card { min-height: 230px; border-radius: 22px; padding: 22px; }
  .search-card { border-radius: 22px; padding: 14px; }
  .form-grid, .admin-form-grid, .spec-table { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .car-card { border-radius: 15px; }
  .car-body { padding: 10px; }
  .price { font-size: 18px; }
  .car-title { font-size: 14px; }
  .specs { font-size: 12px; gap: 2px 6px; }
  .meta { font-size: 11px; }
  .section-head { align-items: start; flex-direction: column; }
  .detail-page { padding-top: 10px; }
  .detail-info, .seller-card { border-radius: 18px; padding: 14px; }
  .gallery { border-radius: 18px; }
  .detail-title-row { display: block; }
  .detail-price { font-size: 30px; }
  .contact-row { grid-template-columns: 1fr 1fr; }
  .sticky-contact { display: block; }
  .mobile-bottom-nav { display: block; }
  .footer { padding-bottom: 90px; }
}
@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .secondary-button { display: none; }
  .hero-card h1 { font-size: 31px; }
  .hero p { font-size: 14px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

.search-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.search-title-row h2 { margin: 0; }
.search-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f5f6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #424650;
  font-size: 13px;
  font-weight: 800;
}
.check-field input { accent-color: var(--red); }
.more-filters {
  border: 1px dashed #d9dce5;
  border-radius: 16px;
  background: #fbfbfd;
  padding: 0;
  overflow: hidden;
}
.more-filters summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 900;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary:after { content: "+"; font-size: 20px; line-height: 1; }
.more-filters[open] summary:after { content: "−"; }
.nested-grid { padding: 0 12px 12px; }
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.badge.credit { background: #0ea5e9; color: #fff; }
.badge.barter { background: #10b981; color: #fff; }
.badge.vin { background: #111827; color: #fff; }
@media (max-width: 720px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .check-field { width: 100%; justify-content: flex-start; }
}
.upload-box {
  border: 1px dashed #d8dce7;
  border-radius: 16px;
  padding: 12px;
  background: #fbfbfd;
}
.upload-box input[type="file"] {
  background: #fff;
  cursor: pointer;
}
.upload-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.5;
}

/* Turbo-style listing submission form */
.listing-wizard-form { display: grid; gap: 14px; }
.listing-form-stack { grid-template-columns: 1fr; gap: 14px; }
.form-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}
.form-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #555b66;
  font-weight: 900;
  font-size: 12px;
}
.form-progress span:first-child { background: var(--red-soft); border-color: #d8c4ff; color: var(--red); }
.form-section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(22, 26, 39, 0.04);
}
.form-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.form-section-head h3 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.form-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 430px; }
.form-two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vehicle-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vehicle-type-card {
  min-height: 112px;
  border: 1px solid var(--line);
  background: #fbfbfd;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}
.vehicle-type-card input, .select-pill input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle-type-card.selected, .vehicle-type-card:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red); box-shadow: 0 0 0 4px rgba(75,22,140,.08); }
.vehicle-icon { font-size: 30px; line-height: 1; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.select-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfbfd;
  color: #4b515c;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.select-pill.selected, .select-pill:has(input:checked) { background: var(--red); color: #fff; border-color: var(--red); }
.input-with-unit { display: grid; grid-template-columns: 1fr 70px; gap: 8px; }
.input-with-unit span { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); font-weight: 900; }
.photo-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.photo-rules div { border-radius: 14px; background: #f4f6fb; border: 1px solid var(--line); min-height: 58px; display: grid; place-items: center; font-weight: 900; color: #4a4e58; font-size: 13px; }
.upload-box-large { display: grid; gap: 10px; }
.image-counter { color: var(--muted); font-weight: 900; font-size: 13px; }
.image-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.image-preview-item { position: relative; overflow: hidden; border-radius: 12px; background: #f0f1f5; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item span { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 900; }
.manual-links textarea { min-height: 74px; }
.equipment-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.condition-list { display: grid; gap: 10px; }
.info-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfd;
  padding: 12px 14px;
  cursor: pointer;
}
.info-check strong { display: block; font-size: 14px; }
.info-check small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.info-check input { width: 20px; height: 20px; accent-color: var(--red); flex: 0 0 auto; }
.big-check-row .check-field { border-radius: 14px; min-height: 46px; padding-inline: 14px; }
.admin-switches label { border: 1px solid var(--line); background: #fbfbfd; border-radius: 999px; padding: 9px 12px; }
.sms-note { margin-top: 10px; }
.sticky-submit { position: sticky; bottom: 88px; z-index: 9; }
.sticky-submit .primary-button { min-height: 50px; font-size: 15px; }
@media (max-width: 820px) {
  .form-progress { grid-template-columns: repeat(2, 1fr); }
  .form-two-cols, .vehicle-type-grid, .photo-rules { grid-template-columns: 1fr; }
  .equipment-grid-large { grid-template-columns: 1fr; }
  .form-section { border-radius: 18px; padding: 14px; }
  .form-section-head { display: block; }
  .image-preview-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-submit { bottom: 78px; }
}
@media (max-width: 520px) {
  .wide-form { max-width: none; }
  .admin-panel { padding: 8px 0; }
  .form-panel { border: 0; background: transparent; padding: 0; }
  .form-progress span { font-size: 11px; }
  .vehicle-type-card { min-height: 88px; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Profile / cabinet page inspired by Turbo.az mobile profile flow */
.profile-page {
  padding: 18px 0 34px;
  background: #f4f5f8;
}
.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.profile-main { min-width: 0; }
.profile-card,
.profile-sidebar > * {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20,21,26,.06);
}
.profile-card { padding: 14px; }
.profile-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef0f4;
  color: #969ba6;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.profile-user-meta { display: grid; gap: 2px; margin-right: auto; }
.profile-user-meta strong { font-size: 15px; }
.profile-user-meta span { color: var(--muted); font-size: 12px; }
.profile-settings {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #f4f5f8;
  color: #555b66;
}
.balance-panel {
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.balance-panel span,
.paid-note {
  color: var(--muted);
  font-size: 12px;
}
.balance-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.blue-add-button {
  border: 0;
  min-width: 92px;
  height: 38px;
  border-radius: 9px;
  background: #3772ff;
  color: #fff;
  font-weight: 900;
}
.paid-note { margin: 9px 2px 14px; }
.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-action {
  min-height: 82px;
  border: 0;
  border-radius: 15px;
  background: #f6f7fa;
  display: grid;
  place-items: center;
  gap: 4px;
  position: relative;
  color: #3c414b;
}
.profile-action span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(20,21,26,.05);
}
.profile-action strong { font-size: 11px; line-height: 1.2; }
.profile-action i {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  background: #4dbb5f;
  color: white;
  font-style: normal;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}
.profile-action.active span { background: #e9f8ed; }
.cabinet-tabs {
  margin: 14px 0 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cabinet-tabs::-webkit-scrollbar { display: none; }
.cabinet-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #4e535f;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  white-space: nowrap;
  font-size: 13px;
}
.cabinet-tab.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.profile-notice {
  background: #fff7e8;
  border: 1px solid #f7d9a5;
  color: #7a4a00;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.cabinet-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cabinet-car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(20,21,26,.05);
}
.cabinet-car-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e8eaf0;
  overflow: hidden;
}
.cabinet-car-image img,
.cabinet-car-image .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vin-chip,
.image-count,
.cabinet-car-status {
  position: absolute;
  border-radius: 7px;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
}
.vin-chip {
  top: 7px;
  left: 7px;
  background: rgba(255,255,255,.94);
  color: #606570;
  padding: 4px 6px;
}
.image-count {
  right: 7px;
  bottom: 7px;
  background: rgba(0,0,0,.62);
  color: #fff;
  padding: 5px 7px;
}
.cabinet-car-status {
  left: 7px;
  bottom: 7px;
  color: #fff;
  padding: 6px 8px;
  background: #707784;
}
.cabinet-car-status.active { background: #22a45d; }
.cabinet-car-status.pending { background: #f59e0b; }
.cabinet-car-status.rejected { background: var(--red); }
.cabinet-car-status.expired,
.cabinet-car-status.draft { background: #68707d; }
.cabinet-car-body {
  padding: 10px 10px 6px;
  display: grid;
  gap: 3px;
}
.cabinet-car-price {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.02em;
}
.cabinet-car-body h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}
.cabinet-car-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.cabinet-car-actions {
  padding: 8px 10px 10px;
  display: grid;
  grid-template-columns: 1fr auto 36px;
  gap: 7px;
  align-items: center;
}
.ad-boost-button,
.restore-button,
.dots-button {
  border-radius: 10px;
  min-height: 34px;
  border: 1px solid #bdd3ff;
  background: #eef5ff;
  color: #2364c7;
  font-weight: 900;
  font-size: 12px;
}
.restore-button {
  padding: 0 12px;
  background: #edf7ff;
}
.dots-button {
  width: 36px;
  background: #f4f5f8;
  color: #565b66;
  border-color: #eceef3;
}
.cabinet-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  background: #fff;
  border: 1px dashed #d8dbe3;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #6d727d;
  text-align: center;
  padding: 24px;
}
.empty-docs {
  font-size: 54px;
  color: #d6d9e2;
  transform: rotate(-8deg);
}
.profile-sidebar {
  display: grid;
  gap: 12px;
}
.app-promo-card,
.profile-menu-card {
  padding: 14px;
}
.promo-art {
  min-height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #151515, #e8e8e8);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.promo-art img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.promo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.promo-brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  background: #000;
}
.promo-brand div { display: grid; gap: 2px; }
.promo-brand span,
.app-promo-card p { color: var(--muted); font-size: 12px; }
.promo-stars { color: #f59e0b; margin-top: 10px; letter-spacing: 1px; }
.dark-store-button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  background: #18202b;
  color: #fff;
  font-weight: 900;
}
.profile-menu-card {
  display: grid;
  gap: 0;
}
.profile-menu-card a {
  padding: 12px 2px;
  border-bottom: 1px solid #f0f1f5;
  color: #3c414b;
  font-size: 13px;
}
.support-block {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  color: #3c414b;
}
.support-block span { font-weight: 950; }
.support-block small { color: var(--muted); }
@media (max-width: 900px) {
  .profile-shell { grid-template-columns: 1fr; }
  .profile-sidebar { order: 2; }
  .profile-page { padding-bottom: 92px; }
}
@media (max-width: 560px) {
  .profile-page { padding-top: 8px; }
  .profile-shell { width: min(100% - 14px, var(--container)); gap: 10px; }
  .profile-card { border-radius: 12px; padding: 10px; }
  .cabinet-list-grid { gap: 8px; }
  .cabinet-car-card { border-radius: 11px; }
  .cabinet-car-actions { grid-template-columns: 1fr 36px; }
  .cabinet-car-actions .small-button,
  .restore-button { display: none; }
  .profile-action strong { font-size: 10px; }
  .profile-notice { font-size: 12px; }
  .profile-sidebar { display: none; }
}

/* Turbo.az re-check alignment: mobile listing, filters and detail layout */
.turbo-home {
  background: #f5f6f9;
  padding: 12px 0 18px;
}
.turbo-home-shell { display: grid; gap: 12px; }
.quick-search-card {
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(20,21,26,.04);
}
.main-brand-select { display: grid; gap: 6px; }
.main-brand-select span { font-size: 12px; color: #707684; font-weight: 800; }
.main-brand-select .select { min-height: 48px; background: #f6f7fa; border-color: #eef0f4; }
.quick-actions-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.quick-action,
.quick-select {
  min-height: 42px;
  border: 1px solid #eceef3;
  border-radius: 14px;
  background: #fff;
  padding: 0 12px;
  font-weight: 850;
  color: #3f444f;
}
.filter-action { color: var(--red); position: relative; }
.filter-action b {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.mobile-catalog-block {
  background: transparent;
  display: grid;
  gap: 6px;
}
.mobile-catalog-block h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.mobile-catalog-block p { margin: 0; color: #7a808b; font-size: 13px; }
.promo-banner {
  min-height: 84px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef7ff, #fff2f3);
  display: flex;
  align-items: center;
  padding: 14px;
  color: #293241;
  font-weight: 900;
  border: 1px solid #edf0f6;
}
.turbo-section-block { display: grid; gap: 10px; }
.turbo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.turbo-section-head h3 {
  margin: 0;
  color: #474b55;
  font-size: 13px;
  letter-spacing: .01em;
  font-weight: 900;
}
.turbo-section-head a,
.turbo-section-head span,
.section-link-button { color: #6f7580; font-size: 12px; font-weight: 800; }
.section-link-button { border: 0; background: transparent; padding: 0; }
.turbo-notice { padding: 12px; border-radius: 14px; }
.filter-screen { position: fixed; inset: 0; z-index: 60; background: rgba(19, 13, 33, .54); padding: 16px 0; overflow: auto; }
.filter-screen-inner { max-width: 760px; min-height: calc(100vh - 32px); display: flex; align-items: flex-start; justify-content: center; }
.turbo-filter-card {
  width: min(760px, calc(100vw - 24px));
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20,21,26,.18);
  padding: 0;
  overflow: hidden;
  margin: 0 auto;
}
.filter-mobile-title {
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 74px;
  align-items: center;
  border-bottom: 1px solid #eef0f4;
  padding: 0 10px;
  background: #fff;
}
.filter-mobile-title a, .filter-close-button { color: #6f7580; font-size: 20px; border: 0; background: transparent; width: 42px; height: 42px; }
.filter-mobile-title strong { text-align: center; font-size: 15px; }
.filter-mobile-title button { border: 0; background: transparent; color: #6d28d9; font-size: 13px; font-weight: 850; }
.filter-accordion-row {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}
.filter-accordion-row span { color: #6c7280; font-size: 13px; }
.filter-block { padding: 14px; border-bottom: 1px solid #eef0f4; background: #fff; }
.filter-block h3 { margin: 0 0 10px; color: #707684; font-size: 13px; font-weight: 850; }
.top-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.brand-logo-chip {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 5px;
  color: #575d68;
  font-weight: 800;
  font-size: 11px;
}
.brand-logo-chip span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7ee;
  background: #fff;
  color: #2f3440;
  display: grid;
  place-items: center;
  font-weight: 950;
}
.brand-logo-chip.active span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px rgba(75,22,140,.10); }
.all-brands-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #4b168c;
  color: #4b168c;
  background: #fff;
  border-radius: 8px;
  font-weight: 900;
  margin-bottom: 12px;
}
.compact-selects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.segmented-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}
.segment {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0f4;
  color: #777e8a;
  font-weight: 900;
  font-size: 13px;
  background: #f8f9fb;
}
.segment:first-child { border-radius: 8px 0 0 8px; }
.segment:last-child { border-radius: 0 8px 8px 0; }
.segment input { display: none; }
.segment.selected { background: var(--red); color: #fff; border-color: var(--red); }
.two-line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.two-line-grid h3 { grid-column: 1 / -1; }
.chip-select-block { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip-select-block h3 { width: 100%; }
.chip-select-block .check-field { width: auto; }
.filter-submit {
  position: sticky;
  bottom: 76px;
  width: calc(100% - 28px);
  margin: 14px;
  min-height: 48px;
  z-index: 10;
  border-radius: 8px;
}
.turbo-detail-page { background: #fff; padding-top: 0; }
.detail-mobile-shell { max-width: 720px; display: grid; gap: 0; }
.detail-breadcrumb {
  height: 52px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  position: sticky;
  top: 0;
  z-index: 12;
}
.detail-breadcrumb a { font-size: 30px; color: #6d737f; }
.detail-breadcrumb strong { text-align: center; color: var(--red); letter-spacing: .02em; }
.dealer-strip {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f4;
}
.dealer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #222936;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
}
.dealer-strip div:nth-child(2) { display: grid; gap: 2px; }
.dealer-strip strong { font-size: 15px; }
.dealer-strip span { color: #7c828d; font-size: 12px; }
.turbo-gallery { border: 0; border-radius: 0; box-shadow: none; }
.turbo-gallery .main-photo { aspect-ratio: 1 / .78; border-radius: 0; }
.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.turbo-detail-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 16px 0 86px;
}
.detail-price-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.turbo-detail-card .detail-price { margin: 0 0 8px; color: #111827; font-size: 28px; }
.price-history { color: #4d65a5; font-size: 12px; text-decoration: underline; }
.turbo-detail-card h1 { margin: 0 0 16px; font-size: 19px; line-height: 1.35; font-weight: 800; }
.spec-list-turbo { display: grid; gap: 0; border-top: 1px solid #f0f1f5; }
.spec-list-turbo .spec-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 0;
  border-bottom: 1px solid #f0f1f5;
  border-radius: 0;
  padding: 9px 0;
  background: #fff;
}
.spec-list-turbo .spec-item span { margin: 0; font-size: 13px; color: #7a808c; }
.spec-list-turbo .spec-item strong { font-size: 13px; font-weight: 650; color: #455070; }
.turbo-description { font-size: 14px; line-height: 1.55; color: #2d3440; margin: 16px 0; white-space: pre-line; }
.feature-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.feature-chip-list span { border-radius: 7px; background: #f0f2f6; color: #49505d; padding: 8px 10px; font-size: 12px; }
.seller-info-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f0f1f5;
  border-bottom: 1px solid #f0f1f5;
}
.seller-info-panel span { color: #657080; font-size: 13px; }
.seller-info-panel a { grid-row: 1 / span 2; grid-column: 2; color: #3366c9; font-size: 13px; }
.danger-note { background: #fff1f3; color: #581c87; border-color: #d8c4ff; }
.listing-stats { display: grid; gap: 5px; margin: 12px 0; color: #6b7280; font-size: 12px; }
.promote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promote-row button { border: 1px solid #e8eaf0; background: #fff; border-radius: 10px; min-height: 42px; font-size: 12px; font-weight: 900; color: #586071; }
@media (max-width: 760px) {
  body { background: #f5f6f9; }
  .site-header { background: #fff; }
  .brand-logo span { font-size: 16px; }
  .brand-logo img { width: 34px; height: 34px; }
  .header-inner { gap: 8px; }
  .header-actions { margin-left: auto; }
  .hero, .section { display: none; }
  .container { width: min(100% - 16px, var(--container)); }
  .card-grid { gap: 8px; }
  .car-card { border-radius: 8px; box-shadow: none; border-color: #e7e9ef; }
  .car-body { padding: 7px; }
  .price { font-size: 17px; margin-bottom: 2px; }
  .car-title { font-size: 12px; margin-bottom: 3px; white-space: normal; line-height: 1.25; }
  .specs { font-size: 11px; line-height: 1.25; display: block; }
  .meta { margin-top: 5px; font-size: 10px; display: block; }
  .badges { top: 6px; left: 6px; gap: 3px; }
  .badge { font-size: 9px; padding: 3px 5px; }
  .fav { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 16px; }
  .quick-actions-row { grid-template-columns: 1fr auto auto; }
  .quick-select { max-width: 118px; }
  .filter-submit { bottom: 76px; }
}
@media (min-width: 761px) {
  .turbo-home .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-screen-inner { max-width: 980px; }
  .detail-mobile-shell { max-width: 980px; }
  .turbo-detail-card { padding-left: 0; padding-right: 0; }
  .turbo-gallery .main-photo { aspect-ratio: 16/9; border-radius: 18px; }
  .dealer-strip { padding-left: 0; padding-right: 0; }
}

.ad-boost-button:disabled { opacity: .58; cursor: not-allowed; filter: grayscale(.2); }

/* Epoint promotion payment screens */
.payment-page {
  min-height: calc(100vh - 80px);
  background: #f3f5f9;
  padding: 20px 0 90px;
}
.payment-shell {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.payment-close {
  position: absolute;
  left: 18px;
  top: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa1ad;
  font-size: 32px;
  line-height: 1;
}
.payment-title {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid #eef0f5;
  margin: -22px -22px 22px;
  padding: 14px 52px;
}
.payment-title img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.payment-title h1 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.payment-intro { margin: 0 0 18px; font-size: 18px; line-height: 1.38; color: #222938; }
.service-icon,
.promo-service-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 950;
}
.service-icon.green, .promo-service-card.green .promo-service-icon { background: #71c91f; }
.service-icon.red, .promo-service-card.red .promo-service-icon { background: #6d28d9; }
.service-icon.gold, .promo-service-card.gold .promo-service-icon { background: #ff9d18; }
.promo-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.promo-service-card {
  border: 1px solid #e8ebf2;
  background: #f9fafc;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  display: grid;
  gap: 10px;
  min-height: 170px;
  color: #222938;
}
.promo-service-card strong { font-size: 18px; }
.promo-service-card small { color: #697182; line-height: 1.35; }
.promo-service-card b { color: var(--blue); }
.bonus-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 14px;
  align-items: center;
  background: #f6f7fb;
  border-radius: 16px;
  padding: 16px 112px 16px 18px;
  margin: 18px 0 22px;
  overflow: hidden;
}
.bonus-card span { color: #9aa1ad; font-weight: 800; }
.bonus-card b { text-decoration: line-through; color: #394151; }
.bonus-card strong {
  width: fit-content;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  color: #2d3440;
  font-size: 13px;
}
.bonus-card em {
  position: absolute;
  right: 0;
  top: 0;
  padding: 12px 16px;
  background: #ff8f1c;
  color: #fff;
  font-style: normal;
  font-weight: 950;
  border-radius: 0 16px 0 16px;
}
.payment-section-title {
  margin: 22px -22px 0;
  padding: 14px 20px;
  text-align: center;
  background: #f8f9fc;
  color: #959cac;
  font-weight: 950;
  letter-spacing: .02em;
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
}
.payment-options { display: grid; }
.payment-option {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eef0f5;
  font-size: 20px;
  color: #242b39;
}
.payment-option input,
.payment-method input { width: 24px; height: 24px; accent-color: #1684ff; }
.payment-option em {
  font-style: normal;
  color: #ff5f77;
  background: #ffe7ea;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 14px;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: 19px;
}
.payment-method b { border: 1px solid #1c1d21; border-radius: 5px; padding: 4px 7px; font-size: 13px; }
.terminal-link {
  margin: 0 -22px;
  background: #f7f9fc;
  padding: 16px 22px;
  color: #2f83ff;
  font-size: 18px;
  text-decoration: underline;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.payment-terms { color: #a5acba; text-align: center; line-height: 1.4; font-size: 14px; }
.pay-button { width: 100%; min-height: 58px; font-size: 20px; background: #4c86f7; box-shadow: none; }
.result-shell { text-align: center; display: grid; gap: 14px; justify-items: center; }
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 38px; font-weight: 950; }
.result-icon.ok { background: var(--green); }
.result-icon.fail { background: var(--red); }
.service-row { margin-top: 14px; }
.service-row button { display: grid; grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 2px 8px; padding: 8px; }
.service-row button small { grid-column: 2; color: var(--blue); }
.ad-boost-button:not(:disabled) { opacity: 1; cursor: pointer; filter: none; }

@media (max-width: 760px) {
  .payment-page { padding-top: 0; background: #fff; }
  .payment-shell {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 22px 16px 96px;
  }
  .payment-title { margin-left: -16px; margin-right: -16px; }
  .payment-section-title { margin-left: -16px; margin-right: -16px; }
  .terminal-link { margin-left: -16px; margin-right: -16px; }
  .promo-service-grid { grid-template-columns: 1fr; }
  .payment-intro { font-size: 20px; }
  .payment-option { font-size: 18px; grid-template-columns: 32px 1fr; }
  .payment-option em { grid-column: 2; width: fit-content; }
  .pay-button { position: sticky; bottom: 14px; }
}


/* VIP999 desktop polish fix: clean dark-purple theme and non-overlapping desktop layout */
:root {
  --purple: #4b168c;
  --purple-dark: #2b064f;
  --purple-soft: #f4ecff;
}
body { overflow-x: hidden; }
.select, .input, .textarea, button { max-width: 100%; }
.site-header { box-shadow: 0 8px 24px rgba(27, 7, 54, .04); }
.brand-logo { color: var(--red); }
.primary-button {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 24px rgba(75, 22, 140, .24);
}
.primary-button:hover { box-shadow: 0 16px 30px rgba(75, 22, 140, .30); }
.secondary-button { color: var(--red); border-color: #d8c4ff; background: #fff; }
.filter-action, .red-link, .back-link { color: var(--red); }

@media (min-width: 761px) {
  body { background: #f5f3f9; }
  .container { width: min(1180px, calc(100% - 40px)); }
  .top-strip { background: linear-gradient(100deg, var(--purple-dark), var(--purple)); }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 74px; height: auto; }
  .nav-links { gap: 4px; flex-wrap: nowrap; }
  .nav-links a, .nav-links button { white-space: nowrap; }
  .header-actions { flex-shrink: 0; }

  .turbo-home { padding: 24px 0 28px; background: #f5f3f9; }
  .turbo-home-shell { gap: 18px; }
  .quick-search-card {
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(31, 18, 51, .08);
    border-color: #e7e1ef;
  }
  .main-brand-select { gap: 8px; }
  .main-brand-select span { font-size: 13px; color: #5b5268; }
  .desktop-search-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr .95fr .8fr .8fr;
    gap: 10px;
    align-items: end;
  }
  .desktop-search-grid .field { gap: 6px; min-width: 0; }
  .desktop-search-grid label { color: #5b5268; font-size: 12px; font-weight: 900; }
  .desktop-search-grid .input,
  .desktop-search-grid .select { min-height: 48px; border-radius: 14px; background: #fbfaff; }
  .quick-actions-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 140px 170px 170px;
    gap: 10px;
    align-items: center;
  }
  .quick-action, .quick-select { width: 100%; min-height: 46px; white-space: nowrap; }
  .filter-action { background: var(--purple-soft); border-color: #d8c4ff; color: var(--purple); }
  .home-search-button { min-height: 46px; border-radius: 14px; }
  .promo-banner { min-height: 96px; background: linear-gradient(90deg, #f1e9ff, #ffffff); border-color: #e3d7f8; }
  .turbo-section-head h3 { font-size: 15px; color: #332842; }
  .turbo-home .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .car-card { border-radius: 18px; }
  .car-media { aspect-ratio: 4/3; background: linear-gradient(135deg, #221630, var(--purple)); }
  .car-title { white-space: normal; min-height: 38px; line-height: 1.25; }
  .specs { min-height: 38px; }
  .meta { min-height: 17px; }

  .filter-screen { padding: 22px 0 92px; background: rgba(19, 13, 33, .54); }
  .filter-screen-inner { max-width: 1180px; }
  .turbo-filter-card { border-radius: 24px; box-shadow: 0 14px 34px rgba(31, 18, 51, .08); }
  .filter-mobile-title { grid-template-columns: 48px 1fr 90px; }
  .filter-mobile-title strong { font-size: 18px; }
  #search-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    background: #fff;
  }
  #search-form > .filter-accordion-row,
  #search-form > .segmented-row,
  #search-form > .filter-block {
    grid-column: span 6;
    border-right: 1px solid #eef0f4;
    min-width: 0;
  }
  #search-form > .filter-block:first-of-type,
  #search-form > .chip-select-block,
  #search-form > .two-line-grid,
  #search-form > .filter-submit { grid-column: 1 / -1; }
  #search-form > .filter-block:nth-of-type(1) { grid-column: 1 / -1; }
  #search-form > .filter-block:nth-of-type(2),
  #search-form > .filter-block:nth-of-type(3),
  #search-form > .filter-block:nth-of-type(4) { grid-column: span 4; }
  #search-form .compact-selects { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .top-brand-grid { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .two-line-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip-select-block { align-content: start; }
  .chip-select-block .select-pill, .chip-select-block .check-field { min-width: 110px; }
  .filter-submit {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    margin: 16px;
    justify-self: end;
    min-width: 220px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .desktop-search-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .desktop-search-grid .field:nth-child(5) { grid-column: span 2; }
  .quick-actions-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .turbo-home .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-brand-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .desktop-search-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .desktop-search-grid .field:not(:first-child) { display: none; }
  .quick-search-card { overflow: hidden; }
  .quick-actions-row { grid-template-columns: 1fr 92px 116px; }
  .quick-action, .quick-select { min-width: 0; padding-inline: 8px; font-size: 12px; }
  .filter-action { color: var(--purple); }
  .mobile-bottom-nav .add-circle { background: var(--purple); box-shadow: 0 8px 18px rgba(75,22,140,.30); }
  .car-media { background: linear-gradient(135deg, #221630, var(--purple)); }
  .filter-submit { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
  .select-pill.selected, .select-pill:has(input:checked), .segment.selected, .filter-chip.active, .cabinet-tab.active { background: var(--purple); border-color: var(--purple); }
  .brand-logo-chip.active span { border-color: var(--purple); color: var(--purple); }
  .all-brands-button { border-color: var(--purple); color: var(--purple); }
}

.simple-profile-note { margin-bottom: 14px; }
.simple-profile-note .profile-notice { margin: 0; }
