/* =====================================================================
   CARSONNET — B2B Vehicle Stock Dashboard
   Premium automotive design system
   ===================================================================== */

:root {
  /* Palette — dark premium (default) */
  --bg:            #0a0b0d;
  --bg-grad-1:     #0e1013;
  --bg-grad-2:     #0a0b0d;
  --surface:       #14161a;
  --surface-2:     #1a1d22;
  --surface-3:     #20242a;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text:          #f3f4f6;
  --text-dim:      #aab0ba;
  --text-mute:     #868d99;
  --accent:        #e8202e;
  --accent-soft:   rgba(232,32,46,.14);
  --accent-line:   rgba(232,32,46,.35);
  --accent-hover:  #ff3543;
  --green:         #2ed3a3;
  --blue:          #4f9bff;
  --amber:         #f4b740;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.7);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --maxw: 1320px;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-ui);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

[data-theme="light"] {
  --bg:            #f4f5f7;
  --bg-grad-1:     #ffffff;
  --bg-grad-2:     #eef0f3;
  --surface:       #ffffff;
  --surface-2:     #f7f8fa;
  --surface-3:     #eef0f3;
  --border:        rgba(15,20,30,.10);
  --border-strong: rgba(15,20,30,.18);
  --text:          #14171c;
  --text-dim:      #4a525e;
  --text-mute:     #646c79;
  --accent-soft:   rgba(232,32,46,.10);
  --accent-line:   rgba(232,32,46,.30);
  --shadow-md: 0 8px 24px -10px rgba(20,30,50,.18);
  --shadow-lg: 0 24px 50px -16px rgba(20,30,50,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* Keyboard focus — visible ring for all interactive elements (mouse focus stays clean) */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(232,32,46,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(79,155,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 40%);
  background-attachment: fixed;
}

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 22px; width: auto; display: block; color: var(--text); transition: color .2s ease; }
.brand:hover .logo { opacity: .85; }
.topbar__meta { display:flex; align-items:center; gap: 16px; }
.tag-b2b {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px;
}
@media (max-width: 720px){ .tag-b2b{ display:none; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px;
}
.lang-btn {
  height: 30px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-mute); font-family: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: .16s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px -2px var(--accent); }

/* language dropdown (scales to many locales) */
.lang-select-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  height: 38px; padding: 0 32px 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: .16s ease;
}
.lang-select:hover { border-color: var(--border-strong); color: var(--text); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-select__chev {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-mute); pointer-events: none;
}
.lang-select option { color: #14171c; background: #fff; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-dim); cursor: pointer;
  transition: .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn { flex: 0 0 auto; }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .moon { display: none; }
[data-theme="dark"] .sun, :root:not([data-theme="light"]) .sun { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 28px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.hero__eyebrow::before { content:""; width: 24px; height: 1px; background: var(--accent-line); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.04; letter-spacing: -.02em;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 16px; color: var(--text-dim); font-size: 17px; max-width: 56ch;
}

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stats.stats--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr);} .stats.stats--three{ grid-template-columns: repeat(2,1fr);} }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background: linear-gradient(120deg, transparent 60%, var(--accent-soft));
  opacity:.6; pointer-events:none;
}
.stat__val { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.stat__label { color: var(--text-mute); font-size: 13px; margin-top: 2px; font-weight: 500; }

/* ---------- Dashboard extras: Polish-customer box + Packages ---------- */
.dash-extras { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 8px; display: flex; flex-direction: column; gap: 24px; }

/* Polish customers — gross PLN */
.pl-box {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; text-decoration: none; color: var(--text); transition: .18s ease;
}
.pl-box:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pl-box__flag { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.pl-box__text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.pl-box__eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.pl-box__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 2vw, 20px); letter-spacing: -.01em; }
.pl-box__sub { color: var(--text-dim); font-size: 13.5px; line-height: 1.45; }
.pl-box__cta {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 44px; padding: 0 18px; border-radius: 11px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.pl-box__cta svg { width: 16px; height: 16px; }
@media (max-width: 720px){ .pl-box { flex-wrap: wrap; } .pl-box__cta { width: 100%; justify-content: center; } }

/* Packages — listed as rows */
.packages__head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.02em; }
.packages__head p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.packages__list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pkg-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; text-decoration: none; color: var(--text); transition: .16s ease;
}
.pkg-row:hover { border-color: var(--accent-line); transform: translateX(2px); box-shadow: var(--shadow-md); }
.pkg-row__ico { font-size: 20px; flex: 0 0 auto; }
.pkg-row__name { font-weight: 700; font-size: 15px; flex: 1 1 auto; }
.pkg-row__count { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); flex: 0 0 auto; white-space: nowrap; }
.pkg-row__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); flex: 0 0 auto; }
.pkg-row__cta svg { width: 15px; height: 15px; }
@media (max-width: 600px){ .pkg-row__count { display: none; } }
.packages__note { color: var(--text-mute); font-size: 12.5px; margin-top: 14px; line-height: 1.5; max-width: 72ch; }

/* PL gross-price note banner (pl.html) + back-to-B2B link */
.pl-note {
  max-width: var(--maxw); margin: 0 auto 4px; padding: 12px 24px;
}
.pl-note__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text-dim); font-size: 13px;
}
.pl-note__inner svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.pl-note__b2b { margin-left: auto; color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pl-note__b2b:hover { text-decoration: underline; }

/* ---------- Toolbar ---------- */
.toolbar-wrap {
  position: sticky; top: 64px; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.toolbar {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.toolbar__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.search {
  position: relative; flex: 1 1 320px; min-width: 240px;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-mute); }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: .18s ease;
}
.search input::placeholder { color: var(--text-mute); }
.search input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }

.select-wrap { position: relative; }
.select-wrap::after {
  content:""; position:absolute; right: 12px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
select, .pill-select {
  height: 46px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 14px; font-family: inherit; cursor: pointer;
  transition: .18s ease; max-width: 220px;
}
select:hover { border-color: var(--border-strong); }
select:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }

.btn-reset {
  height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-dim); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
.btn-reset:hover { color: var(--text); border-color: var(--accent-line); }

/* Brand chips */
.brand-rail {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
  -ms-overflow-style: none;
}
.brand-rail::-webkit-scrollbar { height: 6px; }
.brand-rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; }
.chip {
  flex: 0 0 auto; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: .16s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px -4px var(--accent);
}
.chip .count {
  font-size: 11px; padding: 1px 7px; border-radius: 100px;
  background: var(--surface-3); color: var(--text-mute);
}
.chip[aria-pressed="true"] .count { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Results meta ---------- */
.results-head {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 4px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.results-head .count-big { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.results-head .count-big span { color: var(--accent); }
.results-head .sub { color: var(--text-mute); font-size: 14px; }

/* ---------- Grid ---------- */
.grid {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px;
}

/* ---------- Vehicle list (rows) — full data per row, scrolls horizontally on narrow screens ---------- */
.vlist-scroll { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 40px; overflow-x: auto; }
.vlist { display: flex; flex-direction: column; gap: 8px; min-width: 980px; }
.vrow {
  display: grid;
  grid-template-columns: minmax(210px, 2.3fr) 70px 118px 82px 92px 122px 86px 138px 128px;
  align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 16px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  animation: rowin .3s ease both;
}
.vrow:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateX(2px); }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vrow__veh { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vrow__logo {
  width: 44px; height: 32px; flex: 0 0 auto; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.vrow__logo img { max-width: 34px; max-height: 22px; object-fit: contain; }
.vrow__logo--txt { font-family: var(--font-display); font-weight: 800; color: var(--text-dim); font-size: 15px; background: var(--surface-3); }
.vrow__id { min-width: 0; }
.vrow__make { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow__equip { color: var(--text-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow__cell { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; min-width: 0; }
.vrow__cell svg { width: 15px; height: 15px; color: var(--text-mute); flex: 0 0 auto; }
.vrow__cell small { color: var(--text-mute); font-weight: 500; }
.vrow__flag { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.vrow__price { text-align: right; line-height: 1.15; }
.vrow__price .amt { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.vrow__price .net { display: block; font-size: 10.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.vrow__action { display: flex; justify-content: flex-end; }
.vrow__action .btn-report { height: 34px; padding: 0 12px; font-size: 12.5px; }
.vrow__action .vin { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.vrow__action .note-badge { max-width: 120px; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

/* Card visual header — branded plate (no photos available) */
.card__plate {
  position: relative; height: 126px; padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.05), transparent 50%),
    linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.card__plate::before{
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 20px);
  opacity:.6;
}
.card__monogram {
  position: absolute; right: -6px; bottom: -22px;
  font-family: var(--font-display); font-weight: 800; font-size: 92px;
  letter-spacing: -.04em; color: var(--text); opacity: .06; line-height: 1; user-select: none;
}
/* Brand logo — full colour, prominent (replaces monogram when a logo exists) */
.card__logo-bg {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 92px; height: 92px; object-fit: contain; object-position: center;
  opacity: 1; pointer-events: none; user-select: none;
  /* soft dark drop + faint light rim so dark logo parts stay legible on dark cards */
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.5)) drop-shadow(0 0 1px rgba(255,255,255,.55));
}
[data-theme="light"] .card__logo-bg { filter: drop-shadow(0 2px 8px rgba(20,30,50,.18)); }
/* Small clear brand logo in the brand badge */
.brand-logo {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 6px; background: #fff; padding: 3px;
  display: inline-grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Logo inside filter chips */
.chip-logo {
  width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain;
  border-radius: 4px; background: #fff; padding: 2px;
}
.card__topline { display: flex; align-items: center; justify-content: flex-start; gap: 8px; z-index: 4; flex-wrap: wrap; }
.brand-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text);
}
.brand-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.flag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 100px; border: 1px solid var(--border-strong);
  color: var(--text-dim); background: var(--surface-3);
  display: inline-flex; align-items: center; gap: 5px; z-index: 5; box-shadow: var(--shadow-sm);
}
.card__title { z-index: 1; }
.card__title h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  line-height: 1.15; max-width: 64%;
}
.fuel-tag {
  position:absolute; left: 18px; top: 16px;
}
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px;
}
.tag--elec { background: rgba(46,211,163,.14); color: var(--green); }
.tag--phev { background: rgba(79,155,255,.14); color: var(--blue); }
.tag--mhev { background: rgba(244,183,64,.14); color: var(--amber); }
.tag--diesel { background: rgba(150,160,175,.16); color: var(--text-dim); }
.tag--petrol { background: rgba(232,32,46,.12); color: #ff8e96; }
.tag--hybrid { background: rgba(46,211,163,.12); color: var(--green); }
.tag--default { background: var(--surface-3); color: var(--text-mute); }
[data-theme="light"] .tag--petrol { color: var(--accent); }

.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__equip { color: var(--text-dim); font-size: 13.5px; line-height: 1.4; min-height: 38px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.spec { display: flex; align-items: center; gap: 9px; }
.spec svg { width: 15px; height: 15px; color: var(--text-mute); flex: 0 0 auto; }
.spec .v { font-size: 13.5px; font-weight: 600; color: var(--text); }
.spec .v small { color: var(--text-mute); font-weight: 500; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--border-strong); flex: 0 0 auto; }

.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.price { line-height: 1.1; }
.price .amt { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.price .net { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btn-report {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; transition: .16s ease; white-space: nowrap;
}
.btn-report:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -6px var(--accent); }
.btn-report svg { width: 14px; height: 14px; }
.note-badge {
  font-size: 11px; color: var(--amber); background: rgba(244,183,64,.12);
  padding: 5px 10px; border-radius: 8px; font-weight: 600; max-width: 160px; text-align: right;
}
.vin {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: .02em;
}

/* ---------- Load more / empty ---------- */
.loadmore-wrap { display: grid; place-items: center; padding: 8px 24px 60px; }
.btn-loadmore {
  height: 50px; padding: 0 28px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .18s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-loadmore:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.empty {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 90px; text-align: center;
}
.empty__icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--text-mute); }
.empty h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.empty p { color: var(--text-mute); margin-top: 8px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 20px;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px;
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__credit { color: var(--text-mute); display: inline-flex; align-items: center; gap: 8px; }
.footer__credit a { color: var(--accent); font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }
/* "created by" privatagent.ai logo (white-bg logo → small white pill, clean on any footer) */
.credit-logo-link { display: inline-flex; align-items: center; vertical-align: middle; transition: transform .15s ease; }
.credit-logo-link:hover { transform: translateY(-1px); }
.credit-logo { height: 40px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 4px 10px; box-shadow: 0 2px 8px -2px rgba(0,0,0,.25); }

/* ---------- Buy-interest contact CTA — square tab, centered on the right edge ---------- */
.buy-cta {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 120;
}
.buy-cta__tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
  width: 138px; min-height: 138px; padding: 22px 16px; border: 0; border-radius: 26px 0 0 26px;
  background: var(--accent); color: #fff; font-family: inherit; font-weight: 800;
  font-size: 14px; line-height: 1.18; letter-spacing: -.01em; text-align: center; cursor: pointer;
  box-shadow: -12px 0 34px -14px var(--accent);
  transition: transform .18s ease, background .16s ease, box-shadow .3s ease;
  animation: buyGlow 2.6s ease-in-out infinite;
}
.buy-cta__tab svg { width: 42px; height: 42px; }
.buy-cta__tab:hover { transform: translateX(-4px); animation: none; box-shadow: -20px 0 60px -8px var(--accent); }
.buy-cta.open .buy-cta__tab { background: var(--accent-hover); animation: none; }
@keyframes buyGlow {
  0%, 100% { box-shadow: -10px 0 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
  50%      { box-shadow: -20px 0 64px -4px var(--accent); }
}

.buy-cta__panel {
  position: absolute; right: calc(100% + 12px); top: 50%;
  width: 272px; max-width: calc(100vw - 140px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transform-origin: right center; opacity: 0; transform: translateY(-50%) translateX(12px) scale(.97); pointer-events: none;
  transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.buy-cta.open .buy-cta__panel { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.buy-cta__label { color: var(--text-mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.buy-cta__row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.buy-cta__row:hover { background: var(--surface-3); transform: translateX(2px); }
.buy-cta__row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--text-mute); }
.buy-cta__row--wa svg { color: #25D366; }
@media (max-width: 560px) {
  .buy-cta__tab { width: 104px; min-height: 104px; padding: 15px 10px; font-size: 12px; gap: 8px; border-radius: 20px 0 0 20px; }
  .buy-cta__tab svg { width: 32px; height: 32px; }
  .buy-cta__panel { width: 244px; max-width: calc(100vw - 128px); }
}
@media (prefers-reduced-motion: reduce) {
  .buy-cta__tab { animation: none; box-shadow: -14px 0 44px -10px var(--accent); }
  .buy-cta__panel { transition: opacity .15s ease; transform: translateY(-50%); }
  .buy-cta.open .buy-cta__panel { transform: translateY(-50%); }
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card { animation: fadeUp .4s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 540px){
  .hero { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .toolbar select { max-width: 100%; flex: 1 1 140px; }
  .topbar__inner { padding: 0 14px; gap: 10px; }
  .topbar__meta { gap: 8px; }
  .logo { height: 18px; }
  /* touch targets ≥44px on small screens */
  .icon-btn { width: 44px; height: 44px; }
  .lang-select { height: 44px; flex: 0 0 auto; }
  .chip { height: 44px; }
}
