/* ==========================================================================
   SPRZEDAJWÓZ — COMPONENTS (css/components.css)
   Professional Premium Marketplace Components
   ========================================================================== */

/* ── Distinctive SprzedajWóz Automotive Command Center ─────────────────── */
/* ── Distinctive SprzedajWóz Automotive Command Center ─────────────────── */
.search-command-center,
.main-search-card,
.zone-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 1.35rem 1.75rem;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: box-shadow 0.25s ease;
  box-sizing: border-box;
}

.search-command-center:hover,
.main-search-card:hover,
.zone-search-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
}

/* ── Mobile Expandable Search Trigger Bar (Hidden on Desktop) ── */
.mobile-search-toggle-bar,
.mobile-search-actions-strip {
  display: none;
}

.search-collapsible-body {
  display: block;
}

/* Header Strip with Truthful Badge & Actions */
.search-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.brand-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.pulse-dot-emerald {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 7px #10b981;
  display: inline-block;
  animation: emeraldPulse 2s infinite;
}

@keyframes emeraldPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.search-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.search-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.btn-header-action:hover {
  border-color: #059669;
  color: #059669;
  background: #f8fafc;
}

.btn-ai-search {
  border-color: #059669;
  color: #047857;
  background: rgba(5, 150, 105, 0.06);
}

.btn-ai-search:hover {
  background: rgba(5, 150, 105, 0.12);
  border-color: #059669;
  color: #065f46;
}

.ai-new-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.08rem 0.4rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}

/* Smart Integrated Keyword & VIN Input */
.smart-search-integrated-row {
  position: relative;
  margin-bottom: 0.85rem;
}

input[type="text"].smart-search-input {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 0 44px 0 44px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

.smart-search-input:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.smart-search-input:focus {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.smart-search-input::placeholder {
  color: #9ca3af;
}

.smart-search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.smart-search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1;
  transition: background 0.15s ease;
}

.smart-search-clear-btn:hover {
  background: #d1d5db;
  color: #0f172a;
}

.smart-search-clear-btn.visible {
  display: flex;
}

/* Category Pills Bar (Authentic SprzedajWóz Sectors) */
.search-category-pills-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1.5px solid transparent;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
  box-sizing: border-box;
}

.cat-pill-btn:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #e5e7eb;
}

.cat-pill-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border: 1.5px solid #0284c7;
  color: #0369a1;
  font-weight: 700;
}

.cat-pill-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 2-Row Filter Grid (4 columns each) */
.filter-grid-2rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
}

/* Custom Dropdown / Select Boxes & Zone Filters */
.filter-field-box,
.filter-group {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  display: block;
}

.filter-select,
.filter-select-modern,
select.filter-select,
.rental-input-field {
  width: 100%;
  height: 44px;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0 2rem 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.filter-select:hover,
.filter-select-modern:hover,
select.filter-select:hover,
.rental-input-field:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.filter-select:focus,
.filter-select-modern:focus,
select.filter-select:focus,
.rental-input-field:focus {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.zone-advanced-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  align-items: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.zone-filter-reset-wrap {
  display: flex;
  align-items: flex-end;
}

.zone-filter-reset-wrap .btn,
.zone-filter-reset-wrap .btn-outline-primary {
  height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

/* Finansowanie: Segmented Control */
.segmented-buy-lease {
  display: flex;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 2.5px;
  height: 44px;
  align-items: center;
  box-sizing: border-box;
}

.segmented-option-btn {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.segmented-option-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

/* "Więcej filtrów" Trigger Button (Matching OTOMOTO gray button) */
.btn-more-filters-trigger {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

.btn-more-filters-trigger:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.btn-more-filters-trigger.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  color: #0369a1;
}

.more-filters-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.08rem 0.4rem;
  border-radius: 99px;
  display: none;
}

.more-filters-badge.visible {
  display: inline-block;
}

/* Big Action CTA Search Button — Vibrant Primary */
.btn-search-main-cta {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-search-main-cta:hover {
  background: #0369a1;
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

.btn-search-main-cta:active {
  transform: translateY(0);
}

/* ── Compact Non-Intrusive Advanced Filters Drawer ──────────────────────── */
.compact-filter-drawer {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.15rem;
  margin-top: 0.85rem;
  animation: compactDrawerOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.compact-filter-drawer.open {
  display: block;
}

@keyframes compactDrawerOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compact-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.drawer-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.drawer-field-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-input-range {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.drawer-input-range input {
  flex: 1;
  min-width: 0;
}

.drawer-checkbox-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  align-items: center;
  justify-content: space-between;
}

.drawer-checkboxes-left {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.drawer-actions-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Active Filter Chips Strip */
.active-filters-bar {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  max-width: 1360px;
}

.active-filters-bar.visible {
  display: flex;
}

.active-filters-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.active-filter-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.active-filter-chip-remove {
  background: transparent;
  border: none;
  color: #0284c7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.active-filter-chip-remove:hover {
  transform: scale(1.2);
  color: #ef4444;
}

.btn-clear-all-filters {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.btn-clear-all-filters:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ── Feature Promo Cards ────────────────────────────────────────────────── */
.feature-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-promo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.feature-promo-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.promo-card-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.promo-card-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.promo-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.promo-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.promo-card-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Listings Grid ──────────────────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.25rem;
}

/* ── Car Card (Otomoto / Autoplac Polish Modern Style) ─────────────────────── */
.car-card,
.car-card.autoplac-style-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}

.car-card:hover,
.car-card.autoplac-style-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(124, 58, 237, 0.06);
}

/* Photo Wrapper & Carousel */
.car-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  min-height: 185px;
  background: #f1f5f9;
  overflow: hidden;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.car-card:hover .car-card-img {
  transform: scale(1.04);
}

/* Badges (Top-Left of photo) */
.car-card-badges-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.card-badge-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-badge-pill.sprawny,
.card-badge-pill.badge-sprawny {
  background: #059669 !important;
  color: #ffffff !important;
}

.card-badge-pill.damaged,
.card-badge-pill.badge-damaged,
.card-badge-pill.badge-damage-mech {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.card-badge-pill.pro,
.card-badge-pill.badge-pro,
.card-badge-pill.badge-featured {
  background: #7c3aed !important;
  color: #ffffff !important;
}

.card-badge-pill.leasing,
.card-badge-pill.badge-leasing {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.card-badge-pill.import,
.card-badge-pill.badge-import {
  background: #9333ea !important;
  color: #ffffff !important;
}

.card-badge-pill.badge-salon-pl {
  background: #059669 !important;
  color: #ffffff !important;
}

.card-badge-pill.badge-damage-body {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.card-badge-pill.badge-damage-both {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.card-badge-pill.badge-verified {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* Watermark in bottom left corner of photo - subtle gray & discreet */
.card-photo-watermark {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.car-card:hover .card-photo-watermark {
  opacity: 0.75;
}

.card-photo-watermark .wm-accent {
  color: rgba(226, 232, 240, 0.65);
}

.card-photo-watermark .wm-white {
  color: rgba(203, 213, 225, 0.45);
}

/* Favorite Button in bottom right corner of photo - only heart fills red */
.btn-card-fav {
  position: absolute;
  bottom: 8px;
  right: 8px;
  top: auto;
  left: auto;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.btn-card-fav svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.btn-card-fav:hover {
  transform: scale(1.12);
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-card-fav:hover svg {
  stroke: #ef4444;
}

.btn-card-fav.active {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-card-fav.active svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

/* Photo Carousel Arrows (Left / Right) */
.card-photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.card-photo-prev {
  left: 8px;
}

.card-photo-next {
  right: 8px;
}

.car-card:hover .card-photo-nav-btn {
  opacity: 1;
}

.card-photo-nav-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-50%) scale(1.08);
}

/* Carousel Dots */
.car-card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.car-card-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.car-card-dots .dot.active {
  background: #ffffff;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Card Body */
.car-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex-grow: 1;
}

/* Car Title */
.car-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.1rem 0;
  line-height: 1.32;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
  transition: color 0.18s ease;
}

.car-card:hover .car-card-title {
  color: #7c3aed;
}

/* Price & Condition Line (Uszkodzony / Sprawny) */
.card-price-condition-row,
.card-price-raty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0 0.35rem 0;
}

.card-price-main {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: 'Inter', 'Outfit', sans-serif;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card-condition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-condition-pill.condition-sprawny {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.card-condition-pill.condition-sprawny svg {
  color: #059669;
  stroke: #059669;
  flex-shrink: 0;
}

.card-condition-pill.condition-damaged {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.card-condition-pill.condition-damaged svg {
  color: #dc2626;
  stroke: #dc2626;
  flex-shrink: 0;
}

/* Fallback raty pill */
.card-raty-pill {
  display: inline-flex;
  align-items: center;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.card-raty-pill span {
  font-weight: 700;
}

/* 2x2 Technical Grid */
.card-tech-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.15rem;
}

.tech-grid-item {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-grid-item svg {
  color: #64748b;
  flex-shrink: 0;
}

.tech-grid-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-weight: 600;
}

/* Location Row */
.card-location-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-location-row svg {
  color: #0f172a;
  flex-shrink: 0;
}

.card-location-row strong {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Seller Type Row */
.card-seller-type-row {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.05rem;
}

/* Fallback dormant styles for backwards compatibility */
.car-card-subtitle,
.cockpit-power-gauge-wrap,
.car-card-trust-row,
.car-specs-row {
  display: none;
}

/* Card footer */
.car-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.cockpit-price-hud {
  display: flex;
  flex-direction: column;
}

.cockpit-price-digital {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: 'Inter', 'Outfit', sans-serif;
  color: #0f172a !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
}


.cockpit-currency {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669 !important;
  margin-left: 0.2rem;
}

.car-price-sub {
  font-size: 0.65rem;
  color: #64748b !important;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* CTA trigger button on card - British Racing Emerald */
.cockpit-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.cockpit-trigger-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: transform 0.2s ease;
}

.cockpit-trigger-btn:hover,
.car-card:hover .cockpit-trigger-btn {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.cockpit-trigger-btn:hover svg,
.car-card:hover .cockpit-trigger-btn svg {
  transform: translateX(2px);
}

/* Remove the blinking LED dot */
.trigger-led {
  display: none !important;
}

/* ── Empty State ────────────────────────────────────────────────────────── */
.empty-state-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 560px;
  margin: 2rem auto;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Fav Counter ────────────────────────────────────────────────────────── */
.fav-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-content {
  background: #101218;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 1020px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  position: relative;
  padding: 1.75rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #8b95a7;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.modal-close-btn:hover {
  background: rgba(0, 194, 255, 0.15);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.modal-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .modal-top-grid {
    grid-template-columns: 1fr;
  }
}

.modal-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-main-img-box {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
}

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

.modal-thumb-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.modal-thumb {
  width: 76px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-thumb:hover,
.modal-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-car-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.modal-car-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.modal-price-box {
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.12), rgba(10, 25, 45, 0.6));
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.price-header-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.price-large {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 25px rgba(0, 194, 255, 0.4);
}

.price-sub-info {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 0.3rem;
  font-weight: 500;
}

.cepik-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.cepik-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-contact-row {
  display: flex;
  gap: 0.7rem;
}

/* ── Damage Diagnostic ──────────────────────────────────────────────────── */
.damage-diagnostic-card {
  background: rgba(224, 82, 82, 0.06);
  border: 1px solid rgba(224, 82, 82, 0.28);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.75rem;
}

.damage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.damage-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.damage-badge-mech {
  background: rgba(224, 82, 82, 0.2);
  color: #f0a0a0;
  border: 1px solid #e05252;
}

.damage-badge-body {
  background: rgba(230, 168, 23, 0.2);
  color: #f5d97a;
  border: 1px solid #e6a817;
}

.damage-drivable-text {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.damage-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.7rem;
}

.damage-estimate-tag {
  font-size: 0.82rem;
  color: #e6c55a;
  background: rgba(230, 168, 23, 0.1);
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px solid rgba(230, 168, 23, 0.22);
}

/* ── MotoDoradca AI™ Expert System ───────────────────────────────────────── */
.ai-expert-box {
  margin-bottom: 2rem;
  background: radial-gradient(120% 120% at 0% 0%, rgba(30, 36, 60, 0.92) 0%, rgba(13, 16, 26, 0.98) 75%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-top: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 40px rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.ai-expert-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.ai-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  width: 100%;
}

.ai-badge-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ai-badges-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
}

.ai-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e0e7ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.26rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.18);
}

.gemini-sparkle {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
  animation: geminiSparklePulse 2.8s ease-in-out infinite;
}

@keyframes geminiSparklePulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.15) rotate(8deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.9));
  }
}

.ai-source-badge {
  font-size: 0.76rem;
  color: #7dd3fc;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.1);
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}

.ai-report-heading {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
  width: 100%;
  letter-spacing: -0.01em;
}

.ai-car-meta-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  word-break: break-word;
  line-height: 1.45;
  width: 100%;
}

.ai-score-and-voice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.ai-score-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  text-align: right;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.ai-score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  font-weight: 800;
}

.ai-score-number {
  font-size: 1.3rem;
  font-weight: 900;
  color: #34d399;
}

/* Modern Gemini Voice Button & Live Audio Wave */
.btn-gemini-voice {
  background: linear-gradient(135deg, #059669, #7c3aed) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-gemini-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.5) !important;
  background: linear-gradient(135deg, #047857, #6d28d9) !important;
}

.btn-gemini-voice.speaking {
  background: linear-gradient(135deg, #dc2626, #9333ea) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5) !important;
}

.gemini-live-waves {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.gemini-live-waves span {
  width: 3px;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  animation: geminiLiveWave 1.1s ease-in-out infinite alternate;
}

.gemini-live-waves span:nth-child(1) {
  animation-delay: 0.1s;
  height: 35%;
}

.gemini-live-waves span:nth-child(2) {
  animation-delay: 0.35s;
  height: 90%;
}

.gemini-live-waves span:nth-child(3) {
  animation-delay: 0.2s;
  height: 60%;
}

.gemini-live-waves span:nth-child(4) {
  animation-delay: 0.45s;
  height: 100%;
}

@keyframes geminiLiveWave {
  0% {
    transform: scaleY(0.3);
    opacity: 0.6;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Gemini Interactive Prompt Chips inside Listing Card */
.gemini-prompt-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gemini-prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(8px);
}

.gemini-prompt-chip:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.25));
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.ai-verdict-paragraph {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.ai-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .ai-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.ai-pros-card,
.ai-cons-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  border: 1px solid var(--border-subtle);
}

.ai-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.text-green {
  color: #5ecb8a;
}

.text-amber {
  color: #e6c55a;
}

.ai-pros-card ul,
.ai-cons-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ai-pros-card li::before {
  content: "• ";
  color: #5ecb8a;
  font-weight: bold;
}

.ai-cons-card li::before {
  content: "• ";
  color: #e6c55a;
  font-weight: bold;
}

/* ── Financing Widget ───────────────────────────────────────────────────── */
.modal-financing-widget {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.75rem;
}

.section-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}

.financing-slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.15rem;
  align-items: center;
}

@media (max-width: 768px) {
  .financing-slider-grid {
    grid-template-columns: 1fr;
  }
}

.slider-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.slider-label-row span:last-child {
  font-weight: 600;
  color: var(--primary);
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: #1c1f2c;
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.financing-result-box {
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  text-align: center;
}

.result-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.result-rate {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Modal Details ──────────────────────────────────────────────────────── */
.modal-details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
}

.owner-description-box {
  background: #0c0e14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.spec-table-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: background 0.15s ease;
}

.spec-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.spec-row strong {
  color: #f8fafc;
  font-weight: 700;
}

/* Paint Meter */
.paint-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.paint-meter-point {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: all 0.2s ease;
}

.paint-meter-point:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.paint-point-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.paint-point-name {
  color: var(--text-secondary);
  text-transform: capitalize;
}

.paint-point-val {
  font-weight: 600;
}

.val-orig {
  color: var(--accent-green);
}

.val-second {
  color: var(--accent-amber);
}

.val-putty {
  color: var(--accent-red);
}

.val-missing {
  color: var(--accent-red);
  font-weight: 700;
}

.paint-point-bar-bg {
  width: 100%;
  height: 4px;
  background: #1c1f2c;
  border-radius: 3px;
  overflow: hidden;
}

.paint-point-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.38s ease;
}

/* ASO History */
.aso-history-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aso-history-item {
  background: #0c0e14;
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.6rem 0.8rem;
}

.aso-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.18rem;
}

.aso-title {
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* ── AI Chat Drawer ──────────────────────────────────────────────────────── */
.ai-chat-drawer {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 370px;
  max-width: calc(100vw - 3.5rem);
  height: 500px;
  background: #10121a;
  border: 1px solid rgba(155, 114, 212, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  z-index: 95;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-drawer.active {
  display: flex;
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-header {
  padding: 0.9rem 1.15rem;
  background: rgba(18, 20, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.ai-close-btn:hover {
  color: #fff;
}

.ai-chat-body {
  flex: 1;
  padding: 0.95rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ai-msg {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 85%;
}

.ai-msg-bot {
  background: rgba(28, 24, 42, 0.9);
  border: 1px solid rgba(155, 114, 212, 0.22);
  color: #e8edf5;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.ai-msg-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-quick-prompts {
  display: flex;
  gap: 0.38rem;
  overflow-x: auto;
  padding: 0.45rem 0.95rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.ai-prompt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.68rem;
  padding: 0.27rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.ai-prompt-btn:hover {
  background: rgba(155, 114, 212, 0.18);
  color: #d4b8f0;
  border-color: rgba(155, 114, 212, 0.4);
}

.ai-chat-input-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  background: #0c0e14;
  border-top: 1px solid var(--border-subtle);
}

.ai-chat-input {
  flex: 1;
  background: #161820;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font-size: 0.83rem;
  outline: none;
}

.ai-chat-input:focus {
  border-color: rgba(155, 114, 212, 0.5);
}

/* ── MotoDoradca AI Floating Gemini Button ───────────────────────────────── */
.ai-advisor-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  z-index: 90;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
}

.ai-advisor-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.45);
  border-color: rgba(168, 85, 247, 0.6);
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4a8e8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ── Toast Notifications ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 0.22s ease forwards;
  max-width: 360px;
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

.toast.error {
  border-left: 4px solid var(--accent-red);
}

.toast.info {
  border-left: 4px solid var(--accent-blue);
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Auth / Nav User Widget ──────────────────────────────────────────────── */
.nav-auth-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  min-height: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
}

.nav-auth-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  padding: 0 1rem;
  height: 35px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.nav-auth-btn svg {
  color: #059669;
  stroke: #059669;
}

.nav-auth-btn:hover {
  background: #f8fafc !important;
  border-color: #059669 !important;
  color: #059669 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 0 0.8rem 0 0.3rem;
  height: 35px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.user-profile-widget:hover {
  border-color: #059669;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

.user-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #059669;
}

.user-avatar-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  text-transform: uppercase;
  user-select: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-widget:hover .user-avatar-monogram {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.3);
}

.user-avatar-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-avatar-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.user-avatar-role {
  font-size: 0.64rem;
  color: #059669;
  font-weight: 600;
}

.dropdown-caret {
  color: #64748b;
  transition: transform var(--transition-fast);
}

.user-profile-widget:hover .dropdown-caret {
  color: #059669;
  transform: translateY(1px);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: min(340px, calc(100vw - 20px));
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 1px rgba(15, 23, 42, 0.12);
  z-index: 10005;
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

.user-dropdown-menu.active {
  display: flex;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown-header {
  padding: 0.85rem 0.95rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.4rem;
}

.user-dropdown-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.user-dropdown-email {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;
  font-weight: 500;
  word-break: break-all;
}

.user-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.user-badge-tag.badge-superadmin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
}

.user-badge-tag.badge-verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.user-badge-tag.badge-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.superadmin-cockpit-btn {
  background: linear-gradient(135deg, #fefce8, #fef3c7) !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  margin: 0.25rem 0 !important;
  padding: 0.6rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.superadmin-cockpit-btn:hover {
  background: #fde68a !important;
  color: #78350f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

.superadmin-badge-pill {
  background: #b45309;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.user-dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateX(2px);
}

.user-dropdown-item .dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.user-dropdown-item:hover .dropdown-item-icon {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.user-dropdown-item .dropdown-item-icon.icon-blue {
  color: #0284c7;
  background: #f0f9ff;
  border-color: #e0f2fe;
}

.user-dropdown-item .dropdown-item-icon.icon-emerald {
  color: #059669;
  background: #ecfdf5;
  border-color: #d1fae5;
}

.user-dropdown-item .dropdown-item-icon.icon-amber {
  color: #d97706;
  background: #fffbeb;
  border-color: #fef3c7;
}

.user-dropdown-item .dropdown-item-icon.icon-rose {
  color: #e11d48;
  background: #fff1f2;
  border-color: #ffe4e6;
}

.user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0.35rem 0;
}

.user-logout-btn {
  color: #dc2626 !important;
}

.user-logout-btn:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.user-logout-btn .dropdown-item-icon {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

/* ── Auth Modal ──────────────────────────────────────────────────────────── */
#auth-modal .modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

.auth-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.35rem;
  border: 1px solid #e2e8f0;
}

.auth-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.65rem 0.4rem;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.auth-tab-btn.active {
  background: #ffffff !important;
  color: #059669 !important;
  font-weight: 800 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

#auth-modal .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  font-size: 1rem;
}

#auth-modal .modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
  transform: rotate(90deg);
}

#auth-modal .filter-label {
  color: #1e293b !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin-bottom: 0.35rem !important;
  letter-spacing: normal !important;
}

#auth-modal .filter-input,
#auth-modal .filter-select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 0.75rem 1rem !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

#auth-modal .filter-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

#auth-modal .filter-input:focus,
#auth-modal .filter-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
  background: #ffffff !important;
}

#auth-modal .google-auth-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#auth-modal .google-auth-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.auth-presets-box {
  background: rgba(5, 150, 105, 0.06);
  border: 1px dashed rgba(5, 150, 105, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.1rem;
}

.auth-presets-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.auth-preset-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  transition: all var(--transition-fast);
}

.auth-preset-btn:hover {
  background: rgba(0, 194, 255, 0.12);
  border-color: var(--primary);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── My Listings ─────────────────────────────────────────────────────────── */
.my-listing-item {
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 155px 1fr auto;
  gap: 1.4rem;
  align-items: center;
}

@media (max-width: 860px) {
  .my-listing-item {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: stretch;
  }

  .my-listing-item img {
    width: 100% !important;
    height: 170px !important;
  }

  .my-listing-item-actions {
    align-items: stretch !important;
    width: 100%;
  }
}

/* ── Compare ─────────────────────────────────────────────────────────────── */
.compare-floating-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  background: rgba(16, 18, 24, 0.97);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem 0.55rem 0.95rem;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  z-index: 1000;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.22s;
}

.compare-floating-dock.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.compare-dock-thumbs {
  display: flex;
  align-items: center;
}

.compare-dock-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  margin-left: -8px;
  background: #111;
}

.compare-dock-thumb:first-child {
  margin-left: 0;
}

.compare-dock-info {
  display: flex;
  flex-direction: column;
}

.compare-dock-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.compare-dock-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.compare-modal-wrap {
  max-width: 96vw !important;
  width: 96vw !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 2rem !important;
}

.compare-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.compare-car-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: border-color var(--transition-fast);
}

.compare-car-col.winner {
  border-color: var(--accent-amber);
}

.compare-winner-crown {
  position: absolute;
  top: -11px;
  right: 11px;
  background: linear-gradient(135deg, var(--accent-amber), #c87d10);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.compare-car-col img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.compare-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.compare-metric-label {
  color: var(--text-muted);
}

.compare-metric-val {
  font-weight: 600;
  color: #fff;
  text-align: right;
}

/* ── VIN Scanner ─────────────────────────────────────────────────────────── */
.vin-scanner-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin: 2.25rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.vin-scanner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

/* Laser animation — kept but toned down */
.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.scanner-laser-line.scanning {
  opacity: 1;
  animation: scanLaserAnim 1.4s ease-in-out infinite;
}

@keyframes scanLaserAnim {
  0% {
    top: 0%;
    opacity: 0.2;
  }

  50% {
    top: 98%;
    opacity: 0.8;
  }

  100% {
    top: 0%;
    opacity: 0.2;
  }
}

.vin-scanner-input-wrap {
  display: flex;
  gap: 0.7rem;
  margin: 1.1rem 0;
  flex-wrap: wrap;
}

.vin-scanner-input {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.vin-scanner-input:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.vin-scanner-input:focus {
  outline: none;
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.15), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.quick-vin-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.quick-vin-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-vin-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  transform: translateY(-1px);
}

.vin-scan-result-card {
  margin-top: 1.25rem;
  display: none;
}

/* Print Optimization for Zero Fake Certificate */
@media print {
  body * {
    visibility: hidden;
  }

  #printable-certificate,
  #printable-certificate * {
    visibility: visible;
  }

  #printable-certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-shadow: none;
    border: none;
    background: #fff !important;
    color: #000 !important;
  }

  .cert-modal-content button,
  .modal-backdrop {
    display: none !important;
  }
}

/* ── Import/Leads ─────────────────────────────────────────────────────────── */
.dealer-sub-hero-card {
  background: linear-gradient(135deg, rgba(155, 114, 212, 0.08), rgba(18, 20, 28, 0.97));
  border: 1px solid rgba(155, 114, 212, 0.28);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.dealer-sub-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(155, 114, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.lead-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.lead-budget-badge {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #059669;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}

.lead-locked-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

.lead-unlocked-box {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 1rem;
  margin-top: auto;
}

.lead-param-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* ── Speaking pulse (AI voice) ───────────────────────────────────────────── */
@keyframes lektorPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.5);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 194, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 255, 0);
  }
}

.speaking-pulse {
  animation: lektorPulse 1.4s infinite !important;
  background: linear-gradient(135deg, var(--accent-red), var(--primary)) !important;
  border-color: var(--primary) !important;
}

/* ── Gemini AI Assistant Drawer (Chat Engine) ─────────────────────────── */
.ai-drawer {
  position: fixed;
  bottom: 82px;
  right: 22px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 105px);
  background: radial-gradient(130% 120% at 100% 0%, rgba(30, 38, 64, 0.96) 0%, rgba(13, 16, 26, 0.98) 80%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-top: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ai-drawer.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ai-drawer-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.ai-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.ai-drawer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.ai-drawer-body {
  flex: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scrollbar-width: thin;
}

.ai-msg {
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
  max-width: 90%;
  animation: aiMsgFadeIn 0.22s ease-out;
}

@keyframes aiMsgFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-msg-bot {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #e2e8f0;
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.ai-msg-bot strong {
  color: #ffffff;
}

.ai-msg-user {
  background: linear-gradient(135deg, #059669, #7c3aed);
  color: #ffffff;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.ai-drawer-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 20, 0.7);
}

.ai-quick-prompts {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}

.ai-quick-prompts::-webkit-scrollbar {
  display: none;
}

.quick-prompt-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-prompt-pill:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.25));
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.ai-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ai-input-wrap input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  color: #ffffff;
  font-size: 0.86rem;
  transition: border-color 0.18s ease;
}

.ai-input-wrap input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.ai-input-wrap input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 0.5rem 0.8rem;
  color: #fff;
  font-size: 0.84rem;
}

.ai-input-wrap input:focus {
  outline: none;
  border-color: rgba(155, 114, 212, 0.5);
}

@keyframes ai-dot-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

#ai-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Chat / Messenger ────────────────────────────────────────────────────── */
.chat-messenger-window {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  animation: chatModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Online indicator — static, clean green */
.chat-live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ffffff;
}

.chat-car-context-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.chat-messages-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.chat-messages-scroll::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.chat-bubble-me {
  background: #059669;
  color: #ffffff;
  padding: 0.8rem 1.15rem;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
  animation: bubblePop 0.18s ease-out;
}

.chat-bubble-other {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 0.8rem 1.15rem;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  animation: bubblePop 0.18s ease-out;
}

@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.1rem 0 0.65rem;
}

.chat-date-divider::before,
.chat-date-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.chat-date-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 18px;
  letter-spacing: 0.02em;
}

.chat-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 4px;
  width: fit-content;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: chatTypingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.chat-typing-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes chatTypingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
    background: #059669;
  }
}

.chat-quick-prompt-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-quick-prompt-btn:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
  color: #059669;
  transform: translateY(-1px);
}

.chat-footer-input-wrap {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-footer-input-wrap input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.75rem 1.15rem;
  color: #0f172a;
  font-size: 0.92rem;
  flex: 1;
  outline: none;
  transition: all 0.18s ease;
}

.chat-footer-input-wrap input:focus {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.chat-action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.chat-action-icon-btn:hover {
  background: #f0fdf4;
  border-color: #a7f3d0;
  color: #059669;
}

/* Inbox items */
.inbox-item-card {
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.inbox-item-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.inbox-filter-tab {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.inbox-filter-tab.active,
.inbox-filter-tab:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  font-weight: 700;
}

/* ── Brand Marquee Filter ────────────────────────────────────────────────── */
.brand-filter-marquee {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding: 0.75rem 1.15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: visible;
}

.brand-marquee-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-chips-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 2px;
  margin: -4px -2px;
  scrollbar-width: none;
  align-items: center;
}

.brand-chips-scroll::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-chip:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #059669;
}

.brand-chip.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ── Live Market Stats (Compact Badge) ────────────────────────────────── */
.live-market-badge,
.live-market-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.65rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: #475569;
  vertical-align: middle;
  line-height: 1.3;
}

.live-market-badge strong,
.live-market-ticker strong {
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 800;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ticker-dot.emerald {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.ticker-dot.cyan {
  background: var(--accent-blue);
}

.ticker-dot.orange {
  background: var(--primary);
}

.ticker-dot.purple {
  background: var(--accent-purple);
}

/* ── STREFA NAJMU & WYPOŻYCZALNI AUT (css/components.css) ────────────────── */
.rental-hero-dock {
  background: linear-gradient(165deg, rgba(16, 20, 30, 0.98) 0%, rgba(9, 11, 17, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(5, 150, 105, 0.08);
}

.rental-mode-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rental-mode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rental-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rental-mode-btn.active {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: rgba(5, 150, 105, 0.5);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
}

.rental-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.rental-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rental-input-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rental-input-field {
  width: 100%;
  height: 44px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.rental-input-field:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.65);
}

/* Category Filter Chips for Rental */
.rental-category-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rental-cat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.rental-cat-chip:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.rental-cat-chip.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  font-weight: 700;
}

/* Rental Grid & Vehicle Card */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.rental-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.rental-card:hover {
  transform: translateY(-5px);
  border-color: #059669;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.rental-card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #0f172a;
  overflow: hidden;
}

.rental-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rental-card:hover .rental-card-img {
  transform: scale(1.05);
}

.rental-badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.rental-badge-city {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.rental-badge-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #059669;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  z-index: 2;
}

.rental-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rental-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.rental-company-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.rental-specs-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  padding: 0.65rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.95rem;
}

.rental-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-spec-pill svg {
  flex-shrink: 0;
}

.rental-pricing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.rental-price-val {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-telemetry);
  color: #0f172a;
  line-height: 1.1;
}

.rental-price-unit {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 700;
}

.rental-deposit-info {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.2rem;
  font-weight: 600;
}

.rental-deposit-info strong {
  color: #0f172a;
}

/* Modal / Booking Drawer */
.rental-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rental-modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.rental-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  padding: 1.75rem;
  box-sizing: border-box;
}

.rental-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.rental-modal-close {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.rental-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.rental-input-group {
  display: flex;
  flex-direction: column;
}

.rental-input-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.rental-input-field {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 600;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rental-input-field:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.rental-calc-summary-panel {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .rental-modal-box {
    max-width: 95vw;
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .rental-modal-header h3 {
    font-size: 1.15rem !important;
  }

  .rental-modal-box form>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .rental-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem;
  }

  .rental-pricing-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .rental-pricing-row button {
    width: 100%;
    justify-content: center;
  }
}

/* ── 2026 Modern Search Command Center & Expandable Parameters ────────── */
.search-header-ai-advisor {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.search-quick-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.search-quick-controls-bar .btn-expand-params {
  flex: 0 1 auto;
}

.search-quick-controls-bar .btn-search-main-cta {
  width: auto;
  min-width: 140px;
  margin-left: auto;
  padding: 0 1.6rem;
}

.btn-expand-params {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-expand-params:hover,
.btn-expand-params.active {
  background: #f0fdf4;
  border-color: #059669;
  color: #047857;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.btn-expand-params .params-chevron-icon {
  transition: transform 0.2s ease;
  color: #64748b;
}

.btn-expand-params.active .params-chevron-icon {
  transform: rotate(180deg);
  color: #059669;
}

.params-active-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
}

.btn-ai-advisor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(56, 189, 248, 0.12));
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  color: #7e22ce;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ai-advisor-chip:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.2));
  border-color: #9333ea;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.ai-live-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #7e22ce;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.search-parameters-drawer {
  display: none;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  animation: drawerSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-parameters-drawer.open {
  display: block;
}

@keyframes drawerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.parameters-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.btn-close-params {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-params:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.parameters-grid-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.param-field-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.param-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.param-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.param-checkbox-label input[type="checkbox"] {
  accent-color: #059669;
  width: 16px;
  height: 16px;
}

.btn-clear-params-text {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.4rem 0.6rem;
}

.btn-clear-params-text:hover {
  color: #dc2626;
}

.btn-apply-params-cta {
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-apply-params-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}