/* UPIT.ba — stilovi */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --accent: #1F5BFF;
  --accent-hover: #1846CC;
  --accent-soft: #EBF0FF;
  --accent-line: #C7D5FF;
  --amber: #FFB020;
  --amber-soft: #FFF4DB;
  --ink: #0A0A0A;
  --ink-2: #27272A;
  --ink-3: #3F3F46;
  --muted: #52525B;
  --muted-2: #71717A;
  --line: #E4E4E7;
  --line-2: #D4D4D8;
  --soft: #F5F7FA;
  --gray: #F4F4F5;
  --white: #FFFFFF;
  --good-bg: #DCFCE7;
  --good-fg: #166534;
  --good-line: #4ADE80;
  --fair-bg: #EBF0FF;
  --fair-fg: #1846CC;
  --high-bg: #FFE4E6;
  --high-fg: #9F1239;
  --warn-bg: #FFF7E6;
  --warn-fg: #B45309;
  --danger: #DC2626;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --bottom-nav-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-nav-h);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; border-radius: 6px; }

svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Raspored ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 56px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hide { display: none !important; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-title { font-size: 32px; font-weight: 700; letter-spacing: -0.045em; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  background: var(--gray); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { color: var(--ink); background: #EAEAEC; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #27272A; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { background: var(--gray); }
.btn-soft { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }
.btn-soft:hover { background: #DCE5FF; color: var(--accent-hover); }
.btn-amber { background: var(--amber-soft); color: #92400E; }
.btn-amber:hover { background: #FFE9B5; color: #92400E; }
.btn-ghost { background: transparent; color: var(--accent-hover); padding: 0 8px; }
.btn-ghost:hover { background: transparent; color: var(--accent); }
.btn-danger { background: #fff; border-color: #FECACA; color: var(--danger); }
.btn-danger:hover { background: #FEF2F2; color: var(--danger); }
.btn-white { background: #fff; color: var(--accent-hover); }
.btn-white:hover { background: #F5F7FF; color: var(--accent-hover); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 999px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0;
}
.icon-btn:hover { background: var(--gray); color: var(--ink); }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---------- Oznake ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good-fg); }
.badge-fair { background: var(--fair-bg); color: var(--fair-fg); }
.badge-high { background: var(--high-bg); color: var(--high-fg); }
.badge-gray { background: var(--gray); color: var(--ink-3); }
.badge-white { background: #fff; color: var(--ink-3); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-amber { background: var(--amber-soft); color: #92400E; }
.badge-sold { background: var(--ink); color: #fff; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hover); font-size: 13px; font-weight: 500; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--gray); color: var(--ink); font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.chip:hover { color: var(--ink); background: #EAEAEC; }
.chip-soft { background: var(--accent-soft); color: var(--accent-hover); }
.chip-soft:hover { background: #DCE5FF; color: var(--accent-hover); }
.chip-outline { background: #fff; border-color: var(--line); }
.chip-outline:hover { background: var(--gray); }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); font-weight: 600; }

/* ---------- Zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo .dot { color: var(--amber); }
.logo .ba { font-weight: 600; font-size: 18px; color: var(--accent); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .ba { color: #fff; opacity: .78; }
.main-nav { display: flex; gap: 2px 20px; flex: 1 1 auto; flex-wrap: wrap; }
.main-nav a { color: var(--ink-3); font-weight: 500; font-size: 15px; padding: 10px 0; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.header-search { flex: 1 1 360px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--muted-2); max-width: 560px; }
.header-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font-size: 15px; color: var(--ink); outline: none; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 50; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); background: none; border: 0; font-size: 15px; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--gray); color: var(--ink); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-head { padding: 10px 12px 8px; }

/* Donji meni na mobitelu */
.bottom-nav { display: none; }

/* ---------- Poruke (flash) ---------- */
.flashes { position: fixed; z-index: 60; top: 84px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg); animation: flashIn .25s ease-out; }
.flash .i { margin-top: 2px; }
.flash-success .i { color: var(--amber); }
.flash-error { background: #7F1D1D; }
.flash-info { background: #1E293B; }
.flash button { margin-left: auto; background: none; border: 0; color: #fff; opacity: .7; padding: 0 2px; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 14px; color: var(--ink-3); }
.notice .i { margin-top: 1px; flex-shrink: 0; }
.notice-warn { background: var(--warn-bg); } .notice-warn .i { color: var(--warn-fg); }
.notice-info { background: var(--accent-soft); color: #1E3A8A; } .notice-info .i { color: var(--accent); }
.notice-good { background: #F0FDF4; } .notice-good .i { color: #16A34A; }
.notice-danger { background: #FEF2F2; color: #7F1D1D; } .notice-danger .i { color: var(--danger); }
.notice strong { color: var(--ink); }

/* ---------- Naslovna ---------- */
.hero { position: relative; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-lanes { position: absolute; inset: 0; pointer-events: none; }
.lane { position: absolute; top: -40%; height: 180%; width: 6px; border-radius: 3px; transform: rotate(-28deg); background-image: repeating-linear-gradient(to bottom, rgba(31,91,255,.14) 0 56px, transparent 56px 140px); animation: lane 2.4s linear infinite; }
.lane.amber { background-image: repeating-linear-gradient(to bottom, rgba(255,176,32,.45) 0 56px, transparent 56px 140px); }
@keyframes lane { from { background-position: 0 0; } to { background-position: 0 -140px; } }
.hero .container { position: relative; padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 500; }
.hero-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--amber); }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -0.055em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.big-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.big-search .field-wrap { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 0 12px; color: var(--muted-2); }
.big-search input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 17px; color: var(--ink); outline: none; }
.big-search .btn { height: 52px; border-radius: 16px; padding: 0 26px; }
.parsed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--muted); }
.parsed .chip { height: 30px; font-size: 13px; background: #fff; border-color: var(--line); }
.quick-links { font-size: 14px; color: var(--muted); }
.quick-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

.hero-card { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-card .top { display: flex; justify-content: space-between; gap: 8px; padding: 20px 20px 0; flex-wrap: wrap; }
.hero-card svg.car-scene { display: block; width: 100%; height: auto; margin-top: 8px; }
.hero-card .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 20px; padding: 14px 18px; border-radius: 20px; background: var(--soft); color: var(--ink); }
.hero-card .bottom:hover { color: var(--ink); background: #EEF2F8; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .55s linear infinite; }
.road-dash { animation: road .45s linear infinite; }
.wind { animation: road .3s linear infinite; }
.car-body { animation: bob .8s ease-in-out infinite; }
@keyframes road { to { stroke-dashoffset: 26; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-0.8px); } }
@media (prefers-reduced-motion: reduce) {
  .lane, .wheel, .road-dash, .wind, .car-body { animation: none !important; }
}

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { color: var(--ink); border-color: var(--accent-line); box-shadow: var(--shadow); }
.cat-tile .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cat-tile small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature strong { font-size: 17px; font-weight: 600; }
.feature span { font-size: 14px; color: var(--muted); }

.sell-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: var(--accent); color: #fff; }
.sell-band h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.05em; }
.sell-band ol { flex: 2 1 560px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sell-band li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); }
.sell-band li .num { width: 32px; height: 32px; border-radius: 999px; background: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.sell-band li span { font-size: 14px; color: var(--muted); }

/* ---------- Kartice oglasa ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.lcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; }
.lcard .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--gray); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A1A1AA; }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lcard:hover .ph img { transform: scale(1.03); }
.lcard .ph .tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .ph .count { position: absolute; left: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink-3); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.fav-btn:hover { color: #E11D48; }
.fav-btn.is-saved { color: #E11D48; }
.fav-btn.is-saved svg { fill: #E11D48; }
.lcard .body { display: flex; flex-direction: column; gap: 3px; }
.lcard .title { color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.lcard .title::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lcard .spec { font-size: 14px; color: var(--muted); }
.lcard .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.lcard .price { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; }
.lcard .city { font-size: 13px; color: var(--muted); }
.lcard .seller { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lcard.is-sold .ph img { filter: grayscale(.6); opacity: .8; }

.lrow { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px; border-radius: 22px; border: 1px solid var(--line); position: relative; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lrow:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.lrow .ph { position: relative; flex: 0 0 240px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--gray); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A1A1AA; }
.lrow .ph img { width: 100%; height: 100%; object-fit: cover; }
.lrow .ph .count { position: absolute; left: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.lrow .info { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.lrow .title { color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; line-height: 1.3; }
.lrow .title::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lrow .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.lrow .specs span { padding: 2px 10px; border-radius: 8px; background: var(--gray); color: var(--ink-3); font-size: 13px; }
.lrow .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.lrow .side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 4px 4px 0; }
.lrow .price { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.lrow .fav-btn { position: relative; top: auto; right: auto; border: 1px solid var(--line); box-shadow: none; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: 24px; text-align: center; color: var(--muted); }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.empty strong { color: var(--ink); font-size: 18px; }

/* ---------- Pretraga ---------- */
.search-head { padding-top: 24px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.search-layout { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; align-items: flex-start; }
.filters { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.filters h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.price-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px; border-radius: 22px; background: var(--soft); }
.price-stats .big { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
.histo { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.histo span { flex: 1; border-radius: 4px 4px 0 0; }
.histo .good { background: #86EFAC; } .histo .fair { background: var(--accent); } .histo .high { background: #FDA4AF; }
.filters-mobile-bar { display: none; }
.drawer-head { display: none; }

/* ---------- Forme ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.label-lg { font-size: 15px; font-weight: 600; color: var(--ink); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff;
  font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,91,255,.12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.btn:disabled { opacity: .6; cursor: default; }
.input-group { display: flex; align-items: center; height: 54px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; gap: 8px; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,91,255,.12); }
.input-group input { flex: 1; min-width: 0; border: 0; outline: none; height: 50px; background: transparent; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.input-group .suffix { font-weight: 600; color: var(--muted); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-text { font-size: 13px; color: var(--danger); font-weight: 500; }
.help { font-size: 13px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--accent-soft); cursor: pointer; }
.check-card input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; border-bottom: 1px solid var(--gray); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--accent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--gray); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-3); cursor: pointer; text-align: center; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.pill input:checked + span::before { content: ''; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231846CC' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") center/contain no-repeat; }
.pill input:focus-visible + span { outline: 3px solid var(--accent-line); }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cat-pick label { position: relative; }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick span { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; }
.cat-pick span .i { color: var(--accent); }
.cat-pick input:checked + span { border: 2px solid var(--accent); padding: 11px; background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- Oglas ---------- */
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-areas: "gallery side" "details side"; gap: 28px 32px; margin-top: 12px; align-items: start; }
.listing-grid > .gallery { grid-area: gallery; }
.listing-side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.listing-main { grid-area: details; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1080px) { .listing-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 860px) {
  .listing-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "details"; gap: 20px; margin-top: 0; }
  .listing-side { position: static; }
}
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; background: var(--gray); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A1A1AA; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0A0A0A; }
.gallery-main .nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(15,23,42,.15); padding: 0; z-index: 2; }
.gallery-main .nav.prev { left: 16px; } .gallery-main .nav.next { right: 16px; }
.gallery-main .counter { position: absolute; right: 16px; bottom: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(10,10,10,.8); color: #fff; font-size: 13px; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 4 / 3; border-radius: 12px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--gray); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-on { border-color: var(--accent); }
.spec-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.spec-grid div { background: #fff; padding: 14px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line), 1px 1px 0 var(--line); }
.spec-grid dt { font-size: 13px; color: var(--muted); }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.desc { color: var(--ink-3); white-space: pre-line; max-width: 72ch; }
.buy-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,23,42,.06); background: #fff; }
.buy-box h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.045em; }
.big-price { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.meter { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--soft); }
.meter-bar { position: relative; display: grid; grid-template-columns: 37fr 24fr 39fr; gap: 3px; margin-top: 6px; }
.meter-bar span { height: 8px; }
.meter-bar span:nth-child(1) { background: var(--good-line); border-radius: 999px 0 0 999px; }
.meter-bar span:nth-child(2) { background: #93C5FD; }
.meter-bar span:nth-child(3) { background: #FDA4AF; border-radius: 0 999px 999px 0; }
.meter-bar .pin { position: absolute; top: -6px; width: 20px; height: 20px; margin-left: -10px; border-radius: 999px; background: var(--ink); border: 4px solid #fff; transition: left .3s; box-sizing: border-box; height: 20px; }
.meter-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.offer-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.offer-amounts button { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 58px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 15px; padding: 0 4px; }
.offer-amounts button small { font-weight: 500; font-size: 11px; color: var(--muted); }
.offer-amounts button.is-on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.seller-box { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 24px; border: 1px solid var(--line); }
.seller-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-3); }
.seller-box li { display: flex; align-items: center; gap: 8px; }
.seller-box li .i { color: var(--accent); }
.loan { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; border-radius: 22px; background: var(--soft); }
.loan input[type=range] { width: 100%; accent-color: var(--accent); }
.loan .result { flex: 1 1 200px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 20px; border-radius: 18px; background: #fff; }
.loan .result strong { font-size: 34px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--gray); font-size: 14px; }
.feature-tags .i { color: #15803D; }
.sold-banner { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; }
.mobile-cta { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.lightbox .close, .lightbox .nav { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .nav.prev { left: 16px; top: 50%; } .lightbox .nav.next { right: 16px; top: 50%; }
.lightbox .counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.45); display: none; align-items: flex-end; justify-content: center; }
.sheet-backdrop.is-open { display: flex; }
.sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px 24px; display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); }
@media (min-width: 768px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 26px; padding: 20px 24px 24px; } .sheet .grab { display: none; } }

/* ---------- Čarobnjak za objavu ---------- */
.wizard-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.wizard-header .container-narrow { display: flex; align-items: center; gap: 16px; height: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1; max-width: 420px; margin-left: auto; }
.steps a, .steps span { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps i { display: block; height: 4px; border-radius: 999px; background: var(--line); }
.steps .done i, .steps .on i { background: var(--accent); }
.steps .on { color: var(--ink); }
.wizard-body { padding-top: 28px; padding-bottom: 24px; }
.wizard-title { font-size: 30px; font-weight: 700; letter-spacing: -0.045em; }
.wizard-actions { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 32px; }
.wizard-actions .container-narrow { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 20px; border-radius: 24px; border: 2px dashed var(--accent-line); background: #F5F8FF; color: var(--accent-hover); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: var(--accent-soft); border-color: var(--accent); }
.dropzone strong { font-size: 18px; color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--gray); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cover-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.photo .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.photo .tools button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.photo .tools button:hover { background: #fff; color: var(--danger); }
.photo.is-uploading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.photo .progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.8); overflow: hidden; z-index: 2; }
.photo .progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.photo.is-error { outline: 2px solid var(--danger); }
.photo[draggable=true] { cursor: grab; }
.photo.is-dragging { opacity: .4; }
.shot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shot-list span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--gray); font-size: 13px; color: var(--ink-3); }
.ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(0deg, #F5F8FF, #F5F8FF); border: 1px solid var(--accent-line); }
.ai-bar .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.flash-field { animation: flashField 1.6s ease-out; }
@keyframes flashField { 0% { box-shadow: 0 0 0 4px rgba(255,176,32,.6); } 100% { box-shadow: 0 0 0 0 rgba(255,176,32,0); } }
.card-box { border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.fieldset-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Poruke ---------- */
.inbox { max-width: 860px; }
.thread-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--gray); color: var(--ink); position: relative; }
.thread-item:hover { background: var(--soft); color: var(--ink); }
.thread-item .ph { position: relative; flex: 0 0 auto; width: 72px; height: 56px; border-radius: 12px; background: var(--gray); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A1A1AA; }
.thread-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.thread-item .unread-dot { position: absolute; top: 16px; left: 8px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.thread-item.is-unread strong { font-weight: 700; }
.thread-item .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tabs a.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.chat { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); max-width: 860px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-listing { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-listing:hover { color: var(--ink); background: #EEF2F8; }
.chat-listing .ph { width: 56px; height: 42px; border-radius: 10px; background: #fff; overflow: hidden; flex-shrink: 0; }
.chat-listing .ph img { width: 100%; height: 100%; object-fit: cover; }
.chat-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--gray); border-bottom-left-radius: 4px; }
.bubble-warn { align-self: flex-start; max-width: min(82%, 540px); }
.offer-card { width: min(82%, 380px); display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; }
.offer-card.me { align-self: flex-end; border: 1px solid var(--accent-line); background: #F5F8FF; }
.offer-card.them { align-self: flex-start; border: 1px solid #FCD9A0; background: #FFFAF0; }
.offer-card .k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-hover); }
.offer-card.them .k { color: #92400E; }
.offer-card .amt { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.offer-card .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.system-msg { align-self: center; max-width: 90%; text-align: center; font-size: 13px; color: var(--muted); padding: 6px 12px; }
.deal-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: #F0FDF4; border: 1px solid #BBF7D0; }
.deal-card ul { padding-left: 18px; font-size: 14px; color: var(--ink-3); }
.chat-sys { align-self: center; display: inline-flex; align-items: flex-start; gap: 8px; padding: 8px 14px; border-radius: 16px; background: var(--soft); color: var(--ink-3); font-size: 13px; text-align: center; }
.chat-sys.good { background: #F0FDF4; color: var(--good-fg); }
.chat-sys .i { flex-shrink: 0; margin-top: 1px; }
.chat-sys span { text-align: left; }
.offer-card details summary, .offer-inline summary { cursor: pointer; color: var(--accent-hover); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.offer-card details summary::-webkit-details-marker, .offer-inline summary::-webkit-details-marker { display: none; }
.offer-inline { padding: 0 4px; }
.offer-inline .input { flex: 1; }
.counter .input { flex: 1; min-width: 0; }
body.is-chat .site-footer { display: none; }
.chat-compose { border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: #fff; }
.chat-compose form { display: flex; align-items: flex-end; gap: 8px; }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line-2); background: #F9FAFB; font-size: 15px; resize: none; outline: none; line-height: 1.45; }
.chat-compose textarea:focus { border-color: var(--accent); background: #fff; }
.quick-replies { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies button { flex: 0 0 auto; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; }

/* ---------- Račun ---------- */
.page-pad { padding-top: 28px; padding-bottom: 72px; }
.page-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.045em; }
.account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink-3); font-weight: 500; white-space: nowrap; background: var(--gray); }
.account-nav a:hover { color: var(--ink); background: #E9E9EC; }
.account-nav a.is-on { background: var(--ink); color: #fff; }
.stat-link { color: inherit; transition: background .15s; }
.stat-link:hover { background: var(--accent-soft); color: inherit; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { color: #B91C1C; }
.h-sec { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.saved-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.saved-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.saved-item:last-child { border-bottom: 0; }
.saved-item .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.saved-item a.grow { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.saved-item a.grow strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px; border-radius: 24px; background: var(--soft); text-align: center; }
.avatar-xl { width: 84px; height: 84px; font-size: 28px; }
.profile-toc { display: flex; flex-direction: column; width: 100%; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-toc a { padding: 8px 10px; border-radius: 10px; color: var(--ink-3); text-align: left; font-size: 14px; }
.profile-toc a:hover { background: #fff; color: var(--ink); }
.card-box[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.danger-box { border-color: #FECACA; }
@media (max-width: 860px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-card { position: static; }
  .profile-toc { display: none; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 20px; background: var(--soft); }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 2px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.my-item { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px; border-radius: 22px; border: 1px solid var(--line); }
.my-item .ph { flex: 0 0 160px; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--gray); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A1A1AA; }
.my-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.my-item .info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.my-item .metrics { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.my-item .metrics span { display: inline-flex; align-items: center; gap: 4px; }
.my-item .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 760px; }

/* ---------- Plac ---------- */
.dealer-cover { position: relative; height: 180px; border-radius: 28px; background: var(--accent); overflow: hidden; }
.dealer-cover span { position: absolute; left: -10%; right: -10%; }
.dealer-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-top: -48px; padding: 0 24px; position: relative; }
.dealer-logo { width: 112px; height: 112px; border-radius: 28px; border: 5px solid #fff; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; letter-spacing: -0.05em; overflow: hidden; }
.dealer-logo img { width: 100%; height: 100%; object-fit: cover; }
.dealer-cover .lane { background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 56px, transparent 56px 140px); }
.dealer-cover .lane.amber { background-image: repeating-linear-gradient(to bottom, rgba(255,176,32,.85) 0 56px, transparent 56px 140px); }
.dealer-head .dealer-title { padding-top: 60px; }
.dealer-head > dl { padding-top: 60px; }
.dealer-head.no-cover { margin-top: 0; padding: 0; }
.dealer-head.no-cover .dealer-title, .dealer-head.no-cover > dl { padding-top: 0; }
@media (max-width: 860px) { .dealer-head > dl { padding-top: 0; } .dealer-head .dealer-title { padding-top: 0; } }
.dealer-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 32px; padding: 20px 24px; border-radius: 22px; background: var(--soft); }
.prose-sm { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 860px) { .dealer-info { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.dealer-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); color: var(--ink); }
.dealer-card:hover { color: var(--ink); border-color: var(--accent-line); box-shadow: var(--shadow); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .lane { background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 56px, transparent 56px 140px); }
.auth-side .lane.amber { background-image: repeating-linear-gradient(to bottom, rgba(255,176,32,.6) 0 56px, transparent 56px 140px); }
.auth-side > * { position: relative; }
.auth-side > .hero-lanes { position: absolute; }
.auth-side h2 { font-size: 44px; line-height: 1.02; letter-spacing: -0.05em; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.045em; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.oauth-btn:hover { background: var(--gray); color: var(--ink); }
.auth-card .flashes { position: static; transform: none; width: 100%; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 500; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .i { color: var(--amber); }
.auth-alt { text-align: center; font-size: 15px; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pw-wrap button:hover { background: var(--gray); color: var(--ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Statične stranice ---------- */
.prose { max-width: 72ch; color: var(--ink-3); line-height: 1.65; }
.error-page { max-width: 560px; margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.error-code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; letter-spacing: -0.07em; line-height: 1; color: var(--accent); }
.error-code::after { content: '.'; color: var(--amber); }
.error-search { width: 100%; margin: 8px 0; text-align: left; }
.static-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.static-nav { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.static-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-3); font-weight: 500; }
.static-nav a:hover { background: var(--gray); color: var(--ink); }
.static-nav a.is-on { background: var(--accent-soft); color: var(--accent-hover); }
.faq { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); padding: 0 18px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; }
.contact-card { display: inline-flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 20px; background: var(--soft); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.prose .btn { color: #fff; text-decoration: none; }
@media (max-width: 860px) {
  .static-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .static-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .static-nav a { white-space: nowrap; background: var(--gray); border-radius: 999px; }
}
.prose h2 { font-size: 24px; color: var(--ink); margin: 32px 0 10px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- Podnožje ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { color: var(--ink-3); padding: 8px 0; }
.site-footer nav a:hover { color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 500; }
.pagination .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { background: var(--gray); color: var(--ink); }

.system-box { border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.system-box summary { cursor: pointer; padding: 14px 0; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.system-box summary::-webkit-details-marker { display: none; }
.system-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 20px; padding-bottom: 16px; font-size: 14px; }
.system-list li { display: flex; gap: 8px; align-items: flex-start; }
.system-list li.ok .i { color: var(--good-fg); margin-top: 2px; }
.system-list li.bad .i { color: var(--danger); margin-top: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; padding: 4px 12px; }

/* ---------- Mobitel ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --bottom-nav-h: 72px; }
  .container, .container-narrow { padding: 0 16px; }
  .site-header .container { gap: 10px; }
  .header-search { display: none; }
  .header-actions .hide-mobile, .hide-mobile { display: none !important; }
  .logo { font-size: 22px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 500; position: relative; }
  .bottom-nav a.is-on { color: var(--accent); font-weight: 600; }
  .bottom-nav .post span { width: 52px; height: 44px; border-radius: 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
  .bottom-nav .badge-n { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .no-bottom-nav { --bottom-nav-h: 0px; }
  .no-bottom-nav .bottom-nav { display: none; }
  .section { padding-top: 40px; }
  .section-title { font-size: 26px; }
  .hero .container { padding-top: 28px; padding-bottom: 32px; gap: 24px; }
  .hero-card { display: none; }
  .hero-lead { font-size: 16px; }
  .big-search .btn { width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .lcard .ph { border-radius: 16px; }
  .lcard .title { font-size: 14px; }
  .lcard .spec { font-size: 12px; }
  .lcard .price { font-size: 17px; }
  .lcard .city, .lcard .seller { font-size: 12px; }
  .lcard .ph .tl .badge { height: 22px; font-size: 10px; padding: 0 7px; }
  .fav-btn { width: 36px; height: 36px; top: 6px; right: 6px; }
  .fav-btn svg { width: 18px; height: 18px; }
  .lrow { padding: 10px; gap: 12px; flex-wrap: nowrap; border-radius: 18px; }
  .lrow .ph { flex: 0 0 120px; aspect-ratio: auto; height: 96px; border-radius: 12px; }
  .lrow .title { font-size: 15px; }
  .lrow .specs { display: none; }
  .lrow .info .spec-line { display: block; }
  .lrow .side { display: none; }
  .lrow .info .price-mobile { display: block; }
  .search-layout { margin-top: 12px; }
  .filters { position: fixed; inset: 0; z-index: 80; max-width: none; border-radius: 0; border: 0; overflow-y: auto; padding: 0 16px 96px; display: none; }
  .filters.is-open { display: flex; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 2; height: 60px; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 8px 0 4px; }
  .drawer-apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .filters-mobile-bar { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .filters-mobile-bar::-webkit-scrollbar { display: none; }
  .filters-mobile-bar .chip { flex: 0 0 auto; }
  .price-stats { padding: 14px; gap: 12px; }
  .price-stats .big { font-size: 20px; }
  .histo { height: 40px; }
  .listing-layout { gap: 20px; margin-top: 0; }
  .gallery-main { border-radius: 0; margin: 0 -16px; aspect-ratio: 4 / 3; }
  .gallery-main .nav { display: none; }
  .thumbs { display: none; }
  .buy-box { padding: 0; border: 0; box-shadow: none; }
  .buy-box h1 { font-size: 23px; }
  .big-price { font-size: 32px; }
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; height: 52px; }
  .has-mobile-cta { --bottom-nav-h: 80px; }
  .has-mobile-cta .bottom-nav { display: none; }
  .desktop-only { display: none !important; }
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .spec-grid div { padding: 10px 12px; }
  .spec-grid dd { font-size: 15px; }
  .wizard-title { font-size: 26px; }
  .wizard-body { padding-top: 20px; }
  .steps { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { border: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 20px 20px 28px; min-height: 0; }
  .auth-side h2 { font-size: 28px; }
  .auth-side .hide-mobile { display: none; }
  .auth-main { align-items: flex-start; padding: 28px 16px; }
  .dealer-head { padding: 0 8px; }
  .dealer-cover { height: 120px; border-radius: 20px; }
  .dealer-logo { width: 88px; height: 88px; font-size: 26px; border-radius: 22px; }
  .my-item .ph { flex: 0 0 110px; }
  .flashes { top: 72px; }
  .site-footer { margin-top: 48px; }
}
@media (min-width: 861px) {
  .mobile-only { display: none !important; }
  .lrow .info .price-mobile, .lrow .info .spec-line { display: none; }
}
@media (max-width: 420px) {
  .grid-2.stack-mobile { grid-template-columns: minmax(0, 1fr); }
}
