/* Tripaton: web sučelje. Teme odgovaraju Android aplikaciji. */

/* Boje, fontovi, razmaci i radijusi: tokens.css (generira se iz design/tokens.json naredbom
   node tools/design/tokens.mjs). Ovdje nema ručno upisanih boja. */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: 1.45rem; font-weight: 650; }
h2 { font-size: 1.1rem; font-weight: 620; }
h3 { font-size: .95rem; font-weight: 620; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* --- raspored --- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.shell > div { min-width: 0; }
.side {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 12px; position: sticky; top: 0; z-index: 45; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 650; }
.brand img { width: 30px; height: 30px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--primary-soft); color: var(--primary); }
/* Podstavke izbornika: sekcije trenutne stranice, otvaraju se klikom na stavku, strelica ih zatvara */
.nav-item { position: relative; }
.nav-toggle { position: absolute; right: 4px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.nav-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; transform: rotate(-90deg); }
.nav-item.open .nav-toggle svg { transform: none; }
.nav-sub { list-style: none; margin: 2px 0 6px 22px; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: flex; flex-direction: column; }
.nav-sub button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; padding: 5px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-sub button:hover { background: var(--surface-2); color: var(--text); }
@keyframes sec-flash { from { box-shadow: 0 0 0 3px var(--primary); } to { box-shadow: 0 0 0 0 transparent; } }
.card.flash { animation: sec-flash 1.2s ease-out; }
.mnav .nav-item { display: contents; }
.side .spacer { flex: 1; }
.side .who { padding: 10px 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.main { padding: 24px 28px 64px; min-width: 0; max-width: 1280px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { flex: 1; min-width: 200px; }
.topbar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
  }
  .topbar .brand { padding: 0; flex: 1; }
  .mnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; overflow-x: auto;
    background: var(--surface); border-top: 1px solid var(--border); padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  }
  .mnav a { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; color: var(--muted); font-size: .72rem; }
  .mnav a.on { color: var(--primary); }
  .main { padding: 16px 16px 96px; }
}
@media (min-width: 861px) { .mnav { display: none; } }

/* --- elementi --- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
/* Jednak razmak između blokova sadržaja (kartice, mreže, tablice) i kad roditelj nema gap; unutar
   mreža i stogova razmak daje gap. Niska specifičnost: posebna pravila stranica i dalje vrijede. */
:where(.card, .grid, .stats, .hero-card, .metric-hero, .table-wrap, .kpis, .place-filters, .filters, .trip-route, .vehicle-stats, .vehicle-fuel, .vehicle-readings) + :where(.card, .grid, .stats, .hero-card, .metric-hero, .table-wrap, .kpis, .place-filters, .filters, .trip-route, .vehicle-stats, .vehicle-fuel, .vehicle-readings) { margin-top: 16px; }
:is(.stack, .grid, .row, .kpis, .fuel-page, .trip-route, .col-main, .col-side) > :where(.card, .grid, .stats, .hero-card, .metric-hero, .table-wrap, .kpis, .place-filters, .filters) { margin-top: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; min-width: 0; }
.card > .card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card > .card-head h2 { flex: 1; }
.stat .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.6rem; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn.primary.danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.icon { padding: 7px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn { transition: background-color .15s, color .15s, transform .12s cubic-bezier(.2,0,0,1), box-shadow .15s, filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn svg, .nav svg, .mnav svg { width: 20px; height: 20px; flex: none; }

/* Polja: blaga podloga bez okvira, samo crta ispod koja se pri fokusu razvuče iz sredine (stil 2),
   a u formi je naslov unutar polja (stil 4). Greška vrijedi samo dok je polje prazno (Field u ui.js). */
:root { --field-bg: color-mix(in srgb, var(--surface-2) 75%, var(--surface)); --field-line: var(--border); --danger-soft: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); min-width: 0; }
label.field .hint { font-size: .76rem; padding: 0 12px; }
label.field .err { font-size: .76rem; color: var(--danger); padding: 0 12px; animation: err-in .18s ease-out; }
@keyframes err-in { from { opacity: 0; transform: translateY(-3px); } }
input, select, textarea {
  font: inherit; color: var(--text); width: 100%; min-width: 0;
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 10px 10px 0 0; padding: 8px 12px;
  background: linear-gradient(var(--primary), var(--primary)) center bottom / 0% 2px no-repeat border-box, var(--field-bg);
  transition: background-size .2s cubic-bezier(.2,0,0,1), background-color .15s, border-color .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:hover, select:hover, textarea:hover { background-color: color-mix(in srgb, var(--surface-2) 100%, var(--text) 3%); }
input:focus, select:focus, textarea:focus { outline: none; background-size: 100% 2px, auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[aria-invalid="true"], label.field.bad input, label.field.bad select, label.field.bad textarea {
  background-image: linear-gradient(var(--danger), var(--danger)); background-size: 100% 2px, auto; background-color: var(--danger-soft);
}
label.field.bad > span:first-child { color: var(--danger); }
/* Naslov unutar polja: naslov i polje dijele isto mjesto u mreži. */
label.field:has(> input:not([type=checkbox]):not([type=radio]):not([type=file]), > select, > textarea, > .cat-select) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px 0; align-content: start; align-self: start;
}
label.field:has(> input:not([type=checkbox]):not([type=radio]):not([type=file]), > select, > textarea, > .cat-select) > span:first-child {
  grid-area: 1 / 1; z-index: 1; align-self: start; padding: 6px 12px 0; font-size: .72rem; font-weight: 500; line-height: 1.2;
  pointer-events: none; transition: color .15s;
}
label.field:has(> input, > select, > textarea, > .cat-select) > :is(input, select, textarea) { grid-area: 1 / 1; padding-top: 22px; padding-bottom: 6px; }
label.field:focus-within > span:first-child { color: var(--primary); }
label.field.bad:focus-within > span:first-child { color: var(--danger); }
/* Oko za prikaz lozinke: u istoj ćeliji mreže kao polje, desno. */
label.field > input.pw { padding-right: 44px; }
label.field > .pw-eye { grid-area: 1 / 1; justify-self: end; align-self: center; z-index: 1; display: grid; place-items: center;
  width: 36px; height: 36px; margin-right: 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
label.field > .pw-eye:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
label.field > .pw-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
label.field > .pw-eye svg { width: 20px; height: 20px; }
input[type=checkbox], input[type=radio] { background: none; border: 0; padding: 0; width: auto; }
input[type=file] { background: none; border: 0; padding: 4px 0; }
input[type=date], input[type=datetime-local], input[type=month] { min-height: 0; }
/* Prekidač: uključen u aktivnoj boji, isključen neutralan. */
.check { display: flex; align-items: center; gap: 12px; color: var(--text); cursor: pointer; position: relative; min-height: 28px; }
.switch input { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 46px; height: 26px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { flex: none; position: relative; width: 46px; height: 26px; border-radius: 99px; background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--muted) 70%, transparent); transition: background-color .2s, border-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 50%; left: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted); translate: 0 -50%; transition: left .2s cubic-bezier(.2,0,0,1), width .2s, height .2s, background-color .2s; }
.switch input:checked + .track { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .track::after { left: 22px; width: 18px; height: 18px; background: var(--on-primary); }
.switch input:active + .track::after { width: 22px; }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch input:disabled, .switch.off { cursor: default; }
.switch.off .track { opacity: .45; }
.switch .lbl { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } }

/* Ikone šifrarnika: krug u boji skupine. */
.mi { width: 1em; height: 1em; fill: currentColor; display: block; }
.cat-ico { --cc: var(--muted); flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 20px; color: var(--cc); background: color-mix(in srgb, var(--cc) 15%, transparent); }
.cat-ico.sm { width: 26px; height: 26px; font-size: 16px; }
.cat-ico.lg { width: 44px; height: 44px; font-size: 26px; }
.cat-ico.blank { background: none; }
.cat-ico.g-transport { --cc: var(--category-transport); } .cat-ico.g-vehicle { --cc: var(--category-vehicle); } .cat-ico.g-money { --cc: var(--category-money); }
.cat-ico.g-stay { --cc: var(--category-stay); } .cat-ico.g-work { --cc: var(--category-work); } .cat-ico.g-other { --cc: var(--category-other); }
.cat-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }
.cat-name > span:last-child { min-width: 0; }
.cat-select { position: relative; min-width: 0; }
label.field > .cat-select { grid-area: 1 / 1; }
.cat-select-btn { font: inherit; color: var(--text); width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--field-line); border-radius: 10px 10px 0 0; padding: 8px 10px 8px 12px; min-height: 42px;
  background: linear-gradient(var(--primary), var(--primary)) center bottom / 0% 2px no-repeat border-box, var(--field-bg); transition: background-size .2s; }
label.field > .cat-select .cat-select-btn { padding-top: 22px; padding-bottom: 6px; }
.cat-select-btn:hover { background-color: color-mix(in srgb, var(--surface-2) 100%, var(--text) 3%); }
.cat-select.open .cat-select-btn, .cat-select-btn:focus-visible { outline: none; background-size: 100% 2px, auto; }
.cat-select-btn .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-select-btn .chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: rotate .15s; }
.cat-select.open .chev { rotate: 180deg; }
label.field.bad .cat-select-btn { background-image: linear-gradient(var(--danger), var(--danger)); background-size: 100% 2px, auto; background-color: var(--danger-soft); }
.cat-pop { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); min-width: 220px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px color-mix(in srgb, var(--shadow) 18%, transparent); padding: 6px; animation: pop-in .12s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.cat-pop .cat-q { margin-bottom: 6px; border-radius: 8px; }
.cat-pop ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.cat-pop li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.cat-pop li.hi { background: var(--surface-2); }
.cat-pop li[aria-selected=true] { font-weight: 600; color: var(--primary); }
.cat-pop.up { top: auto; bottom: calc(100% + 4px); }
.cat-pop.end { left: auto; }
.icon-menu .cat-pop { min-width: 180px; }
.icon-menu .cat-pop li { padding: 0; }
.icon-menu .cat-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.icon-menu .cat-pop a:hover, .icon-menu .cat-pop a:focus-visible { background: var(--surface-2); outline: none; }
.icon-menu .cat-pop svg { width: 18px; height: 18px; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 4px; }
/* Otvoreni izbornik ne reže se u tablici ni na kartici karte. */
.table-wrap:has(.cat-select.open), .map-card:has(.cat-select.open) { overflow: visible; }
.cat-select-btn:disabled { cursor: default; opacity: .6; }
.cat-select-btn:disabled:hover { background-color: var(--field-bg); }
.cat-select-btn .brand-tile, .cat-pop .brand-tile { flex: none; border-radius: 8px; }
/* Lokacije u izborniku: ikona vrste u krugu boje vrste. */
.cat-ico.pk { --cc: var(--kind, var(--muted)); }
.cat-ico.pk.new { --cc: var(--primary); }
.cat-ico.pk svg { width: 16px; height: 16px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin: 6px 0 12px; }
.icon-opt { display: grid; place-items: center; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: none; cursor: pointer; }
.icon-opt:hover { background: var(--surface-2); }
.icon-opt.on { border-color: var(--primary); }
.icon-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters label.field { width: 180px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: var(--surface-2); }
tfoot td { font-weight: 650; border-bottom: none; }
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.on { background: var(--primary-soft); color: var(--primary); }
.badge.warn { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.badge.bad { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.error-box { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-radius: 10px; padding: 10px 14px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-back { position: fixed; inset: 0; background: color-mix(in srgb, var(--scrim) 45%, transparent); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal header { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal header h2 { flex: 1; }
.modal .body { padding: 18px; overflow-y: auto; }
.modal footer { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.toast { position: fixed; right: 20px; bottom: 20px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 360px; }
@media (max-width: 860px) { .toast { bottom: 84px; left: 16px; right: 16px; } }

/* Leaflet slojevi imaju z-index 400-1000; vlastiti stacking context ih drži ispod dijaloga. */
.map { position: relative; z-index: 0; isolation: isolate; height: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.chart { position: relative; height: 280px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a { display: block; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 14px; font: inherit; cursor: pointer; }
.tabs button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 2px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; background: var(--surface); color: var(--text); font: inherit; text-align: left; }
.swatch.on { border-color: var(--primary); }
.swatch .dots { display: flex; gap: 4px; margin-bottom: 6px; }
.swatch .dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--shadow) 15%, transparent); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 10px; border-radius: 8px; overflow-wrap: anywhere; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(400px, 100%); padding: 28px; }
.login .brand { justify-content: center; padding: 0 0 18px; font-size: 1.2rem; }
.login .card p { margin: 0; }

.doc { max-width: 1000px; }
.rep-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--border); break-inside: avoid; }
.rep-foot .brand { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.rep-foot .brand img { flex: none; border-radius: 8px; }
.rep-foot .brand b { color: var(--text); font-weight: 650; }
.rep-foot .rep-odo { flex: none; margin: 0 -4px -6px 0; }

/* --- ispis (izvještaji, "Spremi kao PDF") --- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  :root, [data-theme] { --bg: var(--print-paper); --surface: var(--print-paper); --surface-2: var(--print-paper-alt); --border: var(--print-rule); --text: var(--print-ink); --muted: var(--print-ink-muted); --primary: var(--print-ink); }
  body { font-size: 11pt; }
  .side, .topbar, .mnav, .no-print, .toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card { border: none !important; padding: 0; box-shadow: none !important; }
  .print-only { display: block; }
  table { font-size: 9.5pt; }
  th, td { padding: 4px 6px; }
  tr { break-inside: avoid; }
}

/* ===== Material 3 dorada: elevacija, oblici, pokret, pristupačnost ===== */
:root {
  --radius: 16px;
  --shadow-1: 0 1px 2px color-mix(in srgb, var(--shadow) 6%, transparent), 0 1px 3px color-mix(in srgb, var(--shadow) 8%, transparent);
  --shadow-2: 0 2px 6px color-mix(in srgb, var(--shadow) 8%, transparent), 0 8px 24px color-mix(in srgb, var(--shadow) 8%, transparent);
  --ease: cubic-bezier(.2, 0, 0, 1);
}
.card { border-radius: var(--radius); box-shadow: var(--shadow-1); }
.btn { border-radius: 99px; padding: 9px 18px; min-height: 40px; transition: background-color .15s, filter .15s, box-shadow .15s, transform .1s; }
.btn.icon { border-radius: 12px; min-height: 0; }
.btn.primary { box-shadow: var(--shadow-1); }
.btn.big { padding: 12px 22px; font-size: 1rem; justify-content: center; }
.nav a { border-radius: 99px; transition: background-color .15s; }
.badge { padding: 2px 10px; }
.stat .value { letter-spacing: -.01em; }
.modal { border-radius: 24px; box-shadow: var(--shadow-2); }
.tabs button { transition: background-color .15s, color .15s; }

/* Fokus samo s tipkovnicom, uvijek dobro vidljiv. */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible, .nav a:focus-visible, .mnav a:focus-visible, .tabs button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }

/* Prazna stanja s ilustracijom */
.empty.illustrated { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; }
.empty.illustrated img { width: min(200px, 60%); height: auto; }

/* Pokret: samo ako korisnik nije isključio animacije u sustavu. */
@media (prefers-reduced-motion: no-preference) {
  /* Samo pretapanje: transform na omotaču stranice postaje okvir za position:fixed, pa bi se prozori
     (Modal) tijekom animacije centrirali po visini cijele stranice umjesto ekrana. */
  .page-in { animation: page-fade .24s ease-out backwards; }
  .modal { animation: modal-in .22s var(--ease) both; }
  .modal-back { animation: fade-in .18s ease-out both; }
  .card { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
  a.card:hover, .card.link:hover, .feat:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
  .btn:active:not(:disabled) { transform: scale(.97); }
  tbody tr.link { transition: background-color .12s; }
  .toast { animation: toast-in .25s var(--ease) both; }
  .landing .hero-text > *, .landing .hero-art { animation: page-in .5s var(--ease) both; }
  .landing .hero-text > *:nth-child(2) { animation-delay: .05s; }
  .landing .hero-text > *:nth-child(3) { animation-delay: .1s; }
  .landing .hero-text > *:nth-child(4) { animation-delay: .15s; }
  .landing .hero-art { animation-delay: .1s; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ===== Početna stranica (prije prijave) ===== */
.landing { min-height: 100vh; background:
  radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
  radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bg); }
.land-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 18px 24px; }
.land-head .brand { padding: 0; font-size: 1.1rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 24px 24px 48px; }
.eyebrow { color: color-mix(in srgb, var(--primary) 72%, var(--text)); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 750; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 16px 0 24px; max-width: 34em; }
.login-card { max-width: 420px; padding: 24px; box-shadow: var(--shadow-2); }
.login-card h2 { font-size: 1.15rem; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--shadow) 8%, transparent)); }
.section-title { font-size: 1.5rem; margin-bottom: 18px; letter-spacing: -.01em; }
.features, .steps { max-width: 1200px; margin: 0 auto; padding: 24px 24px 40px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.feat p { margin: 0; color: var(--muted); }
.feat-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feat-icon svg { width: 24px; height: 24px; }
.steps ol { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; color: var(--muted); }
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; }
.land-foot { text-align: center; padding: 24px 16px 40px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .hero-art { order: -1; max-width: 520px; }
  .feat-grid, .steps ol { grid-template-columns: 1fr; }
  .login-card { max-width: none; }
}

/* Jezik */
.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; }

/* ===== Paketi ===== */
.plan-free { --plan: var(--plan-free); } .plan-personal { --plan: var(--plan-personal); } .plan-pro { --plan: var(--plan-pro); } .plan-fleet { --plan: var(--plan-fleet); }
.pricing { max-width: 1200px; margin: 0 auto; padding: 24px 24px 40px; }
.billing-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 4px; margin: 0 0 18px; }
.billing-toggle button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 18px; border-radius: 99px; cursor: pointer; }
.billing-toggle button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--plan); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.plan-card.popular { border-color: var(--plan); box-shadow: 0 0 0 1px var(--plan), var(--shadow-2); }
.plan-card.mine { background: color-mix(in srgb, var(--plan) 6%, var(--surface)); }
.plan-card header { display: flex; gap: 12px; align-items: center; }
.plan-card header img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.plan-card h3 { font-size: 1.2rem; margin: 0; }
.plan-card header p { margin: 2px 0 0; }
.ribbon { position: absolute; top: 0; right: 16px; background: var(--plan); color: var(--neutral-white); font-size: .7rem; font-weight: 700; padding: 3px 10px 4px; border-radius: 0 0 10px 10px; letter-spacing: .04em; text-transform: uppercase; }
.plan-card.popular header { padding-top: 10px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price strong { font-size: 2rem; letter-spacing: -.02em; color: var(--plan); }
.price span { color: var(--muted); }
.price small { flex-basis: 100%; color: var(--muted); }
.price small.per-vehicle { color: var(--plan); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.plan-features li.no { color: var(--muted); opacity: .7; }
.plan-features .mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--surface-2); }
.plan-features li.yes .mark { background: color-mix(in srgb, var(--plan, var(--primary)) 18%, transparent); color: var(--plan, var(--primary)); }
.plan-features.compact { margin-top: 10px; }
.plan-cta { min-height: 40px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-cta .btn { width: 100%; justify-content: center; }
.plan-chip { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; color: var(--plan); background: color-mix(in srgb, var(--plan) 14%, transparent); }
.plan-chip:hover { text-decoration: none; filter: brightness(1.1); }
.plan-summary-head { display: flex; gap: 14px; align-items: center; }
.plan-summary-head img { border-radius: 18px; }
.plan-name { font-size: 1.35rem; font-weight: 700; color: var(--plan); display: flex; gap: 8px; align-items: center; }
.meter-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--plan, var(--primary)); }
.meter-bar i.full { background: var(--danger); }
.swatch { position: relative; }
.swatch .lock { position: absolute; top: 8px; right: 8px; color: var(--muted); }
.swatch .lock svg { width: 16px; height: 16px; }
.upgrade { display: flex; gap: 18px; align-items: center; }
.upgrade img { width: 140px; height: auto; flex: none; }
.upgrade-msg { font-size: 1.05rem; font-weight: 600; margin-top: 0; }
.upsell { display: flex; gap: 16px; align-items: center; padding: 16px 20px; margin-bottom: 16px; border-left: 4px solid var(--plan-pro); }
.upsell h2 { font-size: 1.05rem; margin: 0 0 4px; }
.upsell p { margin: 0; }
.upsell > div { flex: 1; }
.upsell img { border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .plan-card { animation: page-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
  .plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .meter-bar i { transition: width .6s var(--ease); }
}
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } .upgrade, .upsell { flex-direction: column; text-align: center; } .upgrade img { width: 110px; } }
.row.between { justify-content: space-between; }
.note { background: var(--primary-soft); color: var(--text); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.note.warn { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.plan-card.popular .btn.primary { background: var(--plan); color: var(--neutral-white); }

/* ===== Oglasi (paket Free) ===== */
.ad { position: relative; border: 1px dashed var(--border); border-radius: 14px; padding: 22px 14px 12px; background: var(--surface-2); }
.ad-label { position: absolute; top: 4px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad ins.adsbygoogle { min-height: 90px; }
.ad-row td { padding: 8px 0; background: transparent; }
.ad-row:hover td { background: transparent; }
.house-ad { display: flex; gap: 14px; align-items: center; }
.house-ad > div { flex: 1; }
.house-ad strong { display: block; }
.house-ad p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.house-ad img { border-radius: 14px; flex: none; }
.house-ad.big { flex-direction: column; text-align: center; padding: 10px 6px; }
.house-ad.big strong { font-size: 1.25rem; }
.house-ad.big p { font-size: 1rem; max-width: 30em; margin: 6px auto 0; }
.interstitial { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 70%, color-mix(in srgb, var(--scrim) 60%, transparent)); backdrop-filter: blur(6px); }
.interstitial-box { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-2); padding: 16px 18px 12px; display: grid; gap: 12px; }
.interstitial-box header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.interstitial-box .ad-interstitial ins.adsbygoogle { min-height: 250px; }
.interstitial-close { min-width: 120px; justify-content: center; }
.interstitial-progress { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.interstitial-progress i { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: left; animation: ad-progress linear both; }
.center { text-align: center; }
@keyframes ad-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .interstitial { animation: fade-in .2s ease-out both; }
  .interstitial-box { animation: modal-in .25s var(--ease) both; }
  .ad-row .ad { animation: page-in .35s var(--ease) both; }
}
@media (max-width: 640px) { .house-ad { flex-wrap: wrap; } .house-ad .btn { width: 100%; justify-content: center; } }

/* ===== Lokacije na karti ===== */
.kind-home, .pin-home, .zone-home { --kind: var(--place-home); }
.kind-work, .pin-work, .zone-work { --kind: var(--place-work); }
.kind-client, .pin-client, .zone-client { --kind: var(--place-client); }
.kind-fuel_station, .pin-fuel_station, .zone-fuel_station { --kind: var(--place-fuel-station); }
.kind-service, .pin-service, .zone-service { --kind: var(--place-service); }
.kind-parking, .pin-parking, .zone-parking { --kind: var(--place-parking); }
.kind-other, .pin-other, .zone-other { --kind: var(--place-other); }
.map-pin { background: none; border: 0; }
.map-pin .pin-body { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--kind); border: 2px solid var(--neutral-white); box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow) 30%, transparent); display: grid; place-items: center; }
.map-pin .pin-body svg { width: 18px; height: 18px; color: var(--neutral-white); transform: rotate(45deg); }
.map-pin .pin-badge { position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--neutral-white); color: var(--kind); font: 700 11px/20px var(--font-text); text-align: center; box-shadow: 0 1px 4px color-mix(in srgb, var(--shadow) 30%, transparent); }
.map-pin:hover .pin-body, .map-pin:focus .pin-body { filter: brightness(1.12); }
path.zone { stroke: var(--kind); fill: var(--kind); fill-opacity: .12; stroke-opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .map-pin .pin-body { animation: pin-drop .45s var(--ease) both; }
}
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
.map-card { padding: 8px; overflow: hidden; }
.map-card .map { border-radius: 12px; }
.map-hint { margin: 8px 8px 2px; }
.place-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 0 14px; min-height: 40px; flex: 0 1 280px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; background: none; padding: 8px 0; min-height: 0; box-shadow: none; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 12px 4px 4px; font: inherit; font-size: .88rem; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip .chip-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--kind) 16%, transparent); color: var(--kind); }
.chip .chip-dot svg { width: 15px; height: 15px; }
.chip.on { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 12%, var(--surface)); }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.place-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.place-row:hover { background: var(--surface-2); text-decoration: none; }
.place-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--kind) 15%, transparent); color: var(--kind); }
.place-ico svg { width: 22px; height: 22px; }
.place-ico.big { width: 48px; height: 48px; border-radius: 14px; }
.place-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.place-title { display: flex; align-items: center; gap: 12px; }
.place-sub { display: block; font-weight: 400; font-size: .85rem; }
.stats-row { margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .place-list li { animation: page-in .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
}
@media (max-width: 640px) { .place-meta { display: none; } .search { flex-basis: 100%; } }

/* ===== Cijene goriva na karti ===== */
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 10px; }
.fuel-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fuel-toggle { --kind: var(--fuel-price-cheap); }
.pin-fuelprice { --kind: var(--fuel-price-mid); }
.pin-fuelprice.cheap { --kind: var(--fuel-price-cheap); }
.pin-fuelprice.high { --kind: var(--fuel-price-high); }
.map-pin.wide .pin-badge { top: -10px; right: auto; left: 24px; font-size: 11.5px; padding: 0 7px; background: var(--kind); color: var(--neutral-white); border: 1.5px solid var(--neutral-white); white-space: nowrap; }
.map-pin.pin-fuelprice .pin-body { width: 30px; height: 30px; left: 3px; top: 6px; }
.map-pin.pin-fuelprice .pin-body svg { width: 15px; height: 15px; }
.map-pin.pin-fuelprice.stale .pin-badge { background: var(--surface); color: var(--kind); border: 1.5px dashed var(--kind); }
.map-pin.pin-fuelprice.stale .pin-body { opacity: .75; }
.fuel-stale-legend { font-weight: 600; }
.fuel-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 8px 0; }
.fuel-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.fuel-legend .dot.cheap { background: var(--fuel-price-cheap); } .fuel-legend .dot.mid { background: var(--fuel-price-mid); } .fuel-legend .dot.high { background: var(--fuel-price-high); }
.station-prices { width: 100%; }
.station-prices tr.on td { background: var(--primary-soft); font-weight: 600; }
.station-prices td { padding: 8px 10px; }

/* ===== Početna stranica v2 ===== */
.landing { background: var(--bg); overflow-x: clip; }
.land-head { position: sticky; top: 0; z-index: 40; max-width: none; padding: 0; transition: background-color .2s, box-shadow .2s, backdrop-filter .2s; }
.land-head.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--border); }
.land-head-in { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.land-head .brand { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.land-head .brand:hover { text-decoration: none; }
.land-nav { display: flex; gap: 4px; margin: 0 auto; }
.land-nav a { color: var(--muted); font-weight: 550; padding: 8px 12px; border-radius: 99px; transition: color .15s, background-color .15s; }
.land-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.land-actions { flex-wrap: nowrap; }
.hero { position: relative; isolation: isolate; padding-top: 32px; padding-bottom: 56px; }
.hero-bg { position: absolute; inset: -80px -20vw 0; z-index: -1; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(var(--neutral-black) 65%, transparent); mask-image: linear-gradient(var(--neutral-black) 65%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; right: 8%; top: -60px; background: color-mix(in srgb, var(--primary) 38%, transparent); }
.blob.b2 { width: 420px; height: 420px; left: 12%; top: 260px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.blob.b3 { width: 360px; height: 360px; right: 30%; bottom: -120px; background: color-mix(in srgb, var(--landing-blob) 22%, transparent); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero h1 { background: linear-gradient(100deg, var(--text) 30%, var(--primary) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ctas { margin: 4px 0 18px; }
.hero-ctas .btn.big { padding: 13px 26px; }
.trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); }
.hero-art { position: relative; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-2); white-space: nowrap; }
.float-chip svg { width: 18px; height: 18px; color: var(--primary); }
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.float-chip.c1 { left: 2%; top: 46%; }
.float-chip.c2 { right: 0; top: 8%; }
.float-chip.c3 { right: 6%; bottom: 6%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 99px; padding: 4px; }
.auth-tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 8px; border-radius: 99px; cursor: pointer; }
.auth-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.stats-band { max-width: 1200px; margin: 0 auto 24px; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-item strong { font-size: 1.7rem; letter-spacing: -.02em; color: var(--primary); }
.stat-item span { color: var(--muted); font-size: .92rem; }
.eyebrow.center, .section-title.center, .center { text-align: center; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; }
.section-lead { max-width: 40em; margin: -6px auto 24px; }
.features { padding-top: 48px; }
.feat { text-align: left; padding: 22px; margin: 0; }
.feat-img { width: 120px; height: 120px; object-fit: contain; display: block; margin: -6px 0 4px -8px; }
.how { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.how-art img { width: 100%; height: auto; display: block; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; padding: 16px 18px 16px 66px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); }
.steps-list li strong { color: var(--text); display: block; margin-bottom: 2px; }
.steps-list li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; }
.pricing { padding-top: 40px; }
.pricing .billing-toggle { display: flex; width: max-content; margin: 0 auto 22px; }
.faq { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.faq-list { display: grid; gap: 10px; }
/* Česta pitanja na početnoj: pitanje lijevo, znak +/- uvijek uz desni rub. */
.faq .faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq .faq-item:hover, .faq .faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.faq .faq-item[open] { box-shadow: var(--shadow-1); }
.faq .faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; }
.faq .faq-item summary::-webkit-details-marker { display: none; }
.faq .faq-item summary::marker { content: ''; }
.faq .faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.faq .faq-item p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; animation: fade-in .2s ease; }
.faq-mark { flex: none; width: 22px; height: 22px; position: relative; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .25s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0); }
.cta-band { position: relative; max-width: 1200px; margin: 24px auto 0; border-radius: 28px; overflow: hidden; min-height: 340px; display: flex; align-items: center; color: var(--landing-ink); }
.cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--landing-cream) 92%, transparent) 0%, color-mix(in srgb, var(--landing-cream) 65%, transparent) 45%, transparent 75%); z-index: 1; }
.cta-in { position: relative; z-index: 2; padding: 40px; max-width: 520px; }
.cta-in h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 8px; }
.cta-in p { margin: 0 0 20px; color: var(--landing-ink-muted); font-size: 1.05rem; }
.land-foot { max-width: 1200px; margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; text-align: left; }
.land-foot .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.land-foot nav { gap: 16px; }
.land-foot p { flex-basis: 100%; margin: 0; }
/* Pokret */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .reveal.in { opacity: 1; transform: none; }
  .blob.b1 { animation: drift1 18s ease-in-out infinite alternate; }
  .blob.b2 { animation: drift2 22s ease-in-out infinite alternate; }
  .blob.b3 { animation: drift1 26s ease-in-out infinite alternate-reverse; }
  .float-chip { animation: floaty 6s ease-in-out infinite, page-in .6s var(--ease) both; }
  .float-chip.c2 { animation-delay: -2s, .3s; }
  .float-chip.c3 { animation-delay: -4s, .5s; }
  .hero-art img { animation: page-in .8s var(--ease) both .1s; }
  .feat:hover .feat-img { transform: translateY(-4px) scale(1.04); }
  .feat-img { transition: transform .3s var(--ease); }
  .stat-item { transition: transform .2s var(--ease); }
  .stat-item:hover { transform: translateY(-3px); }
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -30px) scale(.92); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 980px) {
  .land-nav { display: none; }
  .land-actions { margin-left: auto; }
  .how { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .land-head-in { padding: 10px 16px; gap: 8px; }
  .land-head .brand { font-size: 0; gap: 0; }
  .float-chip { display: none; }
  .stats-band, .features, .how, .pricing, .faq { padding-left: 16px; padding-right: 16px; }
  .stat-item strong { font-size: 1.35rem; }
  .cta-band { border-radius: 0; min-height: 300px; }
  .cta-band::before { background: linear-gradient(180deg, color-mix(in srgb, var(--landing-cream) 92%, transparent) 0%, color-mix(in srgb, var(--landing-cream) 75%, transparent) 60%, color-mix(in srgb, var(--landing-cream) 30%, transparent) 100%); }
  .cta-in { padding: 28px 20px; }
}

/* ===== Aplikacija: pozdrav, skeleton ===== */
.welcome { position: relative; overflow: hidden; border-radius: 24px; margin-bottom: 16px; min-height: 170px; display: flex; align-items: center;
  background: url('img/banner_road.webp') right 0 top 78% / cover no-repeat, var(--landing-welcome); color: var(--landing-ink); }
.welcome::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--landing-cream) 95%, transparent) 0%, color-mix(in srgb, var(--landing-cream) 70%, transparent) 45%, transparent 75%); }
.welcome-text { position: relative; padding: 22px 26px; max-width: 560px; }
.welcome h2 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -.01em; }
.welcome p { margin: 0 0 14px; color: var(--landing-ink-muted); }
.welcome .btn:not(.primary) { background: color-mix(in srgb, var(--neutral-white) 80%, transparent); color: var(--landing-ink); border-color: transparent; }
.skeleton { display: grid; gap: 12px; padding: 8px 0; }
.skeleton i { display: block; height: 14px; width: var(--w, 80%); border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton i { animation: shimmer 1.3s ease-in-out infinite; }
  .welcome { animation: page-in .5s var(--ease) both; }
  .grid > .stat { animation: page-in .45s var(--ease) both; }
  .grid > .stat:nth-child(2) { animation-delay: .06s; } .grid > .stat:nth-child(3) { animation-delay: .12s; } .grid > .stat:nth-child(4) { animation-delay: .18s; }
  .nav a svg { transition: transform .2s var(--ease); }
  .nav a:hover svg { transform: translateX(2px); }
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 640px) {
  .welcome { background-position: 75% center; }
  .welcome::before { background: linear-gradient(180deg, color-mix(in srgb, var(--landing-cream) 94%, transparent) 0%, color-mix(in srgb, var(--landing-cream) 70%, transparent) 70%, color-mix(in srgb, var(--landing-cream) 40%, transparent) 100%); }
}

/* ===== Ruta i brzina ===== */
.trip-route { display: grid; gap: 16px; margin-bottom: 16px; }
.route-card .map { border-radius: 12px; }
.speed-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.speed-legend i { display: inline-block; width: 18px; height: 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.speed-stats .value small { font-size: .55em; color: var(--muted); font-weight: 500; }
.stat.warn .value { color: var(--danger); }
.pin-expense { --kind: var(--place-expense); }
.pin-income { --kind: var(--place-income); }
.trip-route .upsell { margin-bottom: 0; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; font-weight: 700; color: var(--neutral-white);
  background: hsl(var(--hue, 180) 45% 42%); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-row { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.name-cell { display: inline-flex; gap: 10px; align-items: center; }
.avatar-row { display: flex; gap: 12px; align-items: center; }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g12 { grid-template-columns: 1fr; } }

/* Administracija */
.admin .admin-body { animation: fade-in .2s ease; }
.admin table tr.click { cursor: pointer; }
.admin table tr.click:hover td { background: var(--surface-2); }
.admin tr.muted td { opacity: .6; }
.admin .small.bad { color: var(--danger); }
.admin .note .btn { margin-left: 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.modal footer .spacer { flex: 1; }
.impersonation { position: sticky; top: 0; z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px 16px; background: var(--accent); color: var(--on-achievement); font-weight: 600; }
.impersonation .btn { background: var(--neutral-white); color: var(--neutral-ink); border-color: var(--neutral-white); }

/* Listanje po stranicama */
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.pager .pg { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.pager .pg:hover:not(:disabled):not(.on) { background: var(--surface-2); }
.pager .pg:active:not(:disabled) { transform: scale(.94); }
.pager .pg.on { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.pager .pg:disabled { opacity: .35; cursor: default; }
.pager .pg.nav { font-size: 1.2rem; }
.pager .pg.gap { display: inline-flex; align-items: center; justify-content: center; cursor: default; color: var(--muted); }
.pager .pg:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pg-jump label { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--muted); font-size: .85rem; }
.pg-jump input { width: 52px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; text-align: center; }
.pg-jump input:focus { outline: 2px solid var(--primary); }

/* Redovi tablica ulaze jedan za drugim (najviše prvih 12), kartice i statistika blago se izdignu. */
@media (prefers-reduced-motion: no-preference) {
  tbody tr { animation: row-in .22s cubic-bezier(.2,0,0,1) both; }
  tbody tr:nth-child(2) { animation-delay: 25ms; } tbody tr:nth-child(3) { animation-delay: 50ms; }
  tbody tr:nth-child(4) { animation-delay: 75ms; } tbody tr:nth-child(5) { animation-delay: 100ms; }
  tbody tr:nth-child(6) { animation-delay: 125ms; } tbody tr:nth-child(7) { animation-delay: 150ms; }
  tbody tr:nth-child(8) { animation-delay: 175ms; } tbody tr:nth-child(9) { animation-delay: 200ms; }
  tbody tr:nth-child(10) { animation-delay: 225ms; } tbody tr:nth-child(11) { animation-delay: 250ms; }
  tbody tr:nth-child(n+12) { animation-delay: 275ms; }
  .toast:not([hidden]) { animation: toast-in .32s cubic-bezier(.34,1.4,.64,1) both; }
  a.card, .stat { transition: transform .18s cubic-bezier(.2,0,0,1), box-shadow .18s; }
  a.card:hover, .stat:hover { transform: translateY(-2px); }
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* Okrugli izbornici (jezik, gorivo) i pretraga zadržavaju svoj oblik bez crte ispod. */
.lang-pick .cat-select-btn, .fuel-pick .cat-select-btn { border: 1px solid var(--border); border-radius: 99px; background-image: none; }
.lang-pick .cat-select-btn { background-color: var(--surface); min-height: 40px; padding: 6px 10px 6px 14px; }
.fuel-pick .cat-select-btn { min-height: 36px; padding: 4px 8px 4px 12px; }
@media (max-width: 640px) { .lang-pick .cat-select-btn { padding: 6px 8px 6px 10px; } }
.search input { background-image: none; border-radius: 0; }
.search input:focus { background-color: transparent; }

/* Dnevnica u obrascu putovanja */
.per-diem { border-top: 1px dashed var(--border); padding-top: 10px; }
.per-diem-est { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; margin-top: 8px; color: var(--text); }
@media (max-width: 700px) { .per-diem-est { grid-template-columns: 1fr; } }
button.linkish { border: 0; background: none; color: var(--primary); font: inherit; cursor: pointer; padding: 0; text-decoration: underline dotted; }

/* Pomoć: upitnik uz polje i oblačić s objašnjenjem */
.help-tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 5px; pointer-events: auto; }
.help-tip > button { width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; font: 700 .62rem/16px inherit;
  background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); transition: background-color .15s, transform .15s; }
.help-tip > button:hover, .help-tip.open > button { background: var(--primary); color: var(--on-primary); transform: scale(1.08); }
.help-bubble { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 50; width: max-content; max-width: min(280px, 80vw);
  padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: .78rem; font-weight: 400; line-height: 1.4;
  white-space: normal; text-transform: none; letter-spacing: 0; box-shadow: 0 6px 20px color-mix(in srgb, var(--shadow) 18%, transparent);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.help-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--text); }
.help-tip:hover .help-bubble, .help-tip:focus-within .help-bubble, .help-tip.open .help-bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.help-link { display: flex; width: fit-content; align-items: center; gap: 6px; color: var(--muted); margin: 6px 0 8px; }
.help-link svg { width: 16px; height: 16px; }
/* Pomoć: pitanja u kartici (samo .help-page, da ne mijenja česta pitanja na početnoj stranici). */
.help-page .faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.help-page .faq-item:last-child { border-bottom: 0; }
.help-page .faq-item summary { cursor: pointer; padding: 10px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help-page .faq-item summary::-webkit-details-marker { display: none; }
.help-page .faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.help-page .faq-item[open] summary::after { transform: rotate(45deg); }
.help-page .faq-item p { margin: 0 0 12px; color: var(--muted); animation: fade-in .2s ease; }
.deleted-places { margin-top: 12px; }
.deleted-places .card { margin-top: 8px; }

/* Kupnja paketa (Revolut Pay, Google Pay) */
.checkout { display: flex; flex-direction: column; gap: 14px; min-width: min(420px, 100%); }
.checkout-head { display: flex; gap: 12px; align-items: center; }
.checkout .billing-toggle { margin: 0; align-self: flex-start; }
.checkout-sum { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 52px; }
.checkout-sum strong { font-size: 1.25rem; }
.pay-buttons { display: flex; flex-direction: column; gap: 10px; }
.pay-buttons .btn { width: 100%; justify-content: center; min-height: 48px; }
.pay-widget:empty { display: none; }
.pay-wait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.pay-result { display: flex; gap: 14px; align-items: center; }
.pay-result p { margin: 4px 0 0; }
.plan-summary .table-wrap { margin-top: 14px; }

/* Odo, los putnik (maskota) i logo s kometom kroz rogove */
.odo { display: block; overflow: visible; }
.odo .odo-bob { transform-box: view-box; transform-origin: 120px 284px; animation: odo-bob 3.2s ease-in-out infinite; }
.odo .odo-head { transform-box: view-box; transform-origin: 120px 160px; animation: odo-tilt 6.4s ease-in-out infinite; }
.odo .odo-armR { transform-box: view-box; transform-origin: 156px 178px; }
.odo .odo-eyeL, .odo .odo-eyeR { transform-box: fill-box; transform-origin: 50% 70%; }
.odo .odo-wink, .odo .odo-spark, .odo .odo-route, .odo .odo-route-base, .odo .odo-pin { opacity: 0; }
.odo .odo-spark { transform-box: fill-box; transform-origin: center; }
.odo .odo-pin { transform-box: fill-box; transform-origin: center; }
.odo .odo-route { stroke-dasharray: 26 200; stroke-dashoffset: 26; }
@keyframes odo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes odo-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2deg); } 70% { transform: rotate(2deg); } }
.odo.is-blink .odo-eyeL, .odo.is-blink .odo-eyeR { animation: odo-blink .3s ease-in-out; }
@keyframes odo-blink { 50% { transform: scaleY(.15); } }
.odo.is-wink .odo-eyeR { animation: odo-hide 1.4s ease-in-out; }
.odo.is-wink .odo-wink { animation: odo-show 1.4s ease-in-out; }
.odo.is-wink .odo-spark { animation: odo-spark 1.4s ease-out; }
@keyframes odo-hide { 10%, 75% { opacity: 0; } }
@keyframes odo-show { 10%, 75% { opacity: 1; } }
@keyframes odo-spark { 0% { opacity: 0; transform: scale(.2) rotate(0); } 25% { opacity: 1; transform: scale(1.2) rotate(45deg); } 70% { opacity: 1; transform: scale(1) rotate(90deg); } 100% { opacity: 0; transform: scale(.4) rotate(120deg); } }
.odo.is-waving .odo-armR { animation: odo-wave 2.2s ease-in-out; }
@keyframes odo-wave {
  0% { transform: rotate(0); } 18% { transform: rotate(-145deg); } 30% { transform: rotate(-120deg); } 42% { transform: rotate(-150deg); }
  54% { transform: rotate(-120deg); } 66% { transform: rotate(-150deg); } 82% { transform: rotate(-140deg); } 100% { transform: rotate(0); }
}
.odo.is-comet .odo-route { animation: odo-comet 2.8s cubic-bezier(.45, 0, .3, 1); }
.odo.is-comet .odo-route-base { animation: odo-trail 2.8s ease-out; }
.odo.is-comet .odo-pin { animation: odo-pin 2.8s ease-out; }
.odo.is-comet .odo-pin.b { animation-name: odo-pin-b; }
@keyframes odo-comet { 0% { opacity: 1; stroke-dashoffset: 26; } 60% { opacity: 1; stroke-dashoffset: -100; } 61%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes odo-trail { 0%, 55% { opacity: 0; } 65% { opacity: 1; stroke: var(--odo-pin); } 100% { opacity: 0; } }
@keyframes odo-pin { 0% { opacity: 0; transform: scale(.3); } 10% { opacity: 1; transform: scale(1.3); } 20%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes odo-pin-b { 0%, 55% { opacity: 0; transform: scale(.3); } 63% { opacity: 1; transform: scale(1.4); } 72%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.brand-icon { position: relative; display: inline-block; flex: none; }
.brand-icon img, .brand-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-icon svg { overflow: visible; pointer-events: none; }
.brand-icon .bi-trail, .brand-icon .bi-head { opacity: 0; }
.brand-icon .bi-head { stroke-dasharray: 14 200; stroke-dashoffset: 14; }
.brand-icon.is-comet .bi-head { animation: bi-head 2.8s cubic-bezier(.45, 0, .3, 1); }
.brand-icon.is-comet .bi-trail { animation: bi-trail 2.8s ease-out; }
@keyframes bi-head { 0% { opacity: 1; stroke-dashoffset: 14; } 62% { opacity: 1; stroke-dashoffset: -100; } 63%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes bi-trail { 0% { opacity: 0; stroke-dasharray: 0 200; } 62% { opacity: .95; stroke-dasharray: 100 200; } 80% { opacity: .95; stroke-dasharray: 100 200; } 100% { opacity: 0; stroke-dasharray: 100 200; } }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.wordmark { font-weight: 800; letter-spacing: -.02em; }
.wordmark b { color: var(--odo-amber); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .odo .odo-bob, .odo .odo-head { animation: none; } }

/* Trip-a-ton: tone kilometara na Pregledu */
.welcome { position: relative; }
.welcome .odo-corner { position: absolute; right: 18px; bottom: 0; }
.tons { display: flex; gap: 14px; align-items: center; }
.tons .odo { flex: none; }
.tons strong { font-size: 1.6rem; }
.tons-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.tons-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--achievement-gradient-end), var(--achievement-gradient-start)); border-radius: 99px; }
.ton-party { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--scrim) 45%, transparent); animation: fade-in .2s ease-out; }
.ton-party .card { text-align: center; max-width: 360px; padding: 22px 26px; }
.ton-party img { width: 200px; height: auto; animation: ton-jump 1.2s ease-in-out infinite; }
@keyframes ton-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-art .odo-hero { position: absolute; left: -10px; bottom: -6px; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--shadow) 18%, transparent)); }
@media (max-width: 720px) { .hero-art .odo-hero { width: 96px; height: 120px; left: 0; } .welcome .odo-corner { display: none; } }
.pay-result .odo-celebrate { width: 96px; height: auto; }
.ton-card { margin-bottom: 16px; }
.hero .tagline { font-weight: 700; color: var(--landing-tagline); margin: -6px 0 16px; }

.small-title { font-size: .95rem; margin: 0 0 2px; color: var(--muted); font-weight: 700; }
/* Račun: profil i lozinka u jednoj kartici, stupci odvojeni crtom (na mobitelu vodoravnom) */
.acc-split > .stack + .stack { border-left: 1px solid var(--border); padding-left: 16px; }
@media (max-width: 640px) { .acc-split > .stack + .stack { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; } }
th.sortable { padding: 0; }
.sort-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; cursor: pointer; font: inherit; font-weight: 700; color: inherit; }
.sort-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.sort-ind { font-size: .7em; opacity: .45; }
th[aria-sort="ascending"] .sort-ind, th[aria-sort="descending"] .sort-ind { opacity: 1; color: var(--primary); }
th.right .sort-btn { justify-content: flex-end; }
/* Dionice putovanja */
.legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legs li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.legs .leg-ico { font-size: 1.4rem; width: 32px; text-align: center; }
.legs .leg-main { flex: 1; min-width: 0; }

/* Logo marke vozila: box lijevo, podaci desno. */
.brand-tile { --bc: var(--muted); flex: none; display: inline-grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--bc) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bc) 22%, var(--border)); }
.brand-tile svg { width: 62%; height: 62%; display: block; }
.brand-tile.mono { color: var(--bc); font-weight: 800; letter-spacing: .02em; }
.brand-tile.none { color: var(--muted); }
.brand-tile.none svg path { fill: currentColor; }
.veh-head { display: flex; gap: 14px; align-items: center; }
.veh-head-text { flex: 1; min-width: 0; }
.veh-head-text h2 { margin: 0; }
.veh-data { display: flex; gap: 18px; align-items: flex-start; }
.veh-data > .kv { flex: 1; min-width: 0; margin: 0; }
@media (max-width: 480px) { .veh-data { gap: 12px; } .veh-data > .brand-tile { width: 52px !important; height: 52px !important; } }

/* Dnevnica u putnom nalogu: stavka u tri kratka retka, ne širi stupac. */
.pd-rows { white-space: normal; line-height: 1.35; margin-top: 4px; min-width: 9em; max-width: 15em; margin-left: auto; }
.pd-rows + .pd-rows { margin-top: 6px; }

/* Gorivo */
.fuel-page { display: flex; flex-direction: column; gap: 16px; }
.fuel-page > .grid { margin: 0; }
.fd-hero { display: flex; align-items: center; gap: 22px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primary) 16%, var(--surface)) 0%, var(--surface) 60%); }
.fd-hero img { width: 150px; height: auto; flex: none; animation: fd-float 5s ease-in-out infinite; }
.fd-hero-main { flex: 1; min-width: 0; }
.fd-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fd-verdict { margin: 8px 0 0; font-weight: 600; color: var(--primary); }
@keyframes fd-float { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.fd-stat { position: relative; overflow: hidden; }
.fd-stat-ico { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.fd-stat-ico svg { width: 18px; height: 18px; }
.fd-market { display: flex; flex-direction: column; gap: 12px; }
.fd-market-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fd-vs { text-align: right; display: flex; flex-direction: column; align-items: flex-end; padding: 8px 12px; border-radius: 12px; }
.fd-vs strong { font-size: 1.35rem; }
.fd-vs.good { background: color-mix(in srgb, var(--positive) 14%, transparent); color: var(--positive); }
.fd-vs.bad { background: color-mix(in srgb, var(--negative) 14%, transparent); color: var(--negative); }
.fd-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fd-record { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2);
  animation: fd-pop .45s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 70ms); }
.fd-record b { font-size: 1.1rem; }
.fd-record-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--on-primary); background: var(--primary); }
.fd-record-ico svg { width: 20px; height: 20px; }
.fd-record-ico.r-cheapest, .fd-record-ico.r-best_consumption { background: var(--category-money); color: var(--neutral-white); }
.fd-record-ico.r-priciest, .fd-record-ico.r-worst_consumption { background: var(--category-vehicle); color: var(--neutral-white); }
.fd-record-ico.r-longest_range { background: var(--category-transport); color: var(--neutral-white); }
@keyframes fd-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.fd-vehicles { display: flex; flex-direction: column; gap: 6px; }
.fd-vehicle { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.fd-vehicle:hover { background: var(--surface-2); }
.fd-vehicle-text { flex: 1; min-width: 0; }
.fd-empty { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.fd-empty img { width: 200px; height: auto; }
@media (max-width: 600px) { .fd-hero { flex-direction: column; text-align: center; } .fd-hero img { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .fd-hero img, .fd-record { animation: none; } }

/* ---- Doživljaj: konfeti, Odove poruke, trofeji, Tvoja godina ---- */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10000; }
body.no-scroll { overflow: hidden; }
.insight { margin: 4px 0 12px; font-weight: 600; color: var(--primary); }
.joy-toasts { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.joy-toast { display: flex; align-items: flex-end; gap: 6px; animation: joy-in .5s cubic-bezier(.2,1.3,.4,1) both; }
.joy-toast .odo { flex: none; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--shadow) 18%, transparent)); }
.joy-toast p { margin: 0 0 18px; max-width: 300px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 10px 28px color-mix(in srgb, var(--shadow) 16%, transparent); font-weight: 600; }
@keyframes joy-in { from { opacity: 0; transform: translate(-30px, 20px) scale(.9); } }
@media (max-width: 760px) { .joy-toasts { bottom: 78px; left: 8px; } }

.medal { --s: 64px; position: relative; width: var(--s); height: var(--s); border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: none; flex: none; }
.medal-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--primary) var(--deg), color-mix(in srgb, var(--muted) 22%, transparent) 0); }
.medal-face { position: absolute; inset: 5px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: calc(var(--s) * .42); }
.medal-face .mi { width: 1em; height: 1em; }
.medal.on .medal-ring { background: conic-gradient(from 200deg, var(--medal-gold), var(--medal-amber), var(--medal-orange), var(--medal-gold)); animation: medal-spin 6s linear infinite; }
.medal.on .medal-face { background: radial-gradient(circle at 35% 30%, var(--medal-light), var(--medal-face) 45%, var(--medal-amber)); color: var(--medal-ink);
  box-shadow: inset 0 -4px 10px color-mix(in srgb, var(--medal-shadow) 25%, transparent), 0 4px 14px color-mix(in srgb, var(--medal-amber) 35%, transparent); }
.medal.on::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, var(--neutral-white) 60%, transparent) 50%, transparent 65%);
  background-size: 250% 100%; animation: medal-shine 3.5s ease-in-out infinite; pointer-events: none; }
.medal:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@keyframes medal-spin { to { filter: hue-rotate(20deg); transform: rotate(360deg); } }
@keyframes medal-shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.trophy-card .card-head { flex-wrap: wrap; gap: 10px; }
.year-btn { background: linear-gradient(90deg, var(--brand-orange-deep), var(--medal-amber), var(--story-accent)); border: 0; color: var(--brand-on-orange); font-weight: 700; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-orange-deep) 35%, transparent); }
.year-btn:hover { filter: brightness(1.05); }
.next-goal { margin: 0 0 14px; }
.goal-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--achievement)); animation: grow-x 1s cubic-bezier(.2,0,0,1) both; transform-origin: left; }
@keyframes grow-x { from { transform: scaleX(0); } }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 8px; }
.medal-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: fd-pop .5s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 40ms); }
.medal-cell .small { line-height: 1.2; }
.trophy-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--scrim) 55%, transparent); backdrop-filter: blur(3px); animation: fade-in .2s ease-out; }
.trophy-pop .card { max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: pop-big .55s cubic-bezier(.2,1.4,.4,1) both; }
.trophy-pop h2 { margin: 4px 0 0; }
.trophy-pop p { margin: 0; }
.trophy-pop img { width: 130px; height: auto; }
.trophy-burst { padding: 14px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--medal-gold) 55%, transparent), transparent 70%); animation: burst 1.6s ease-out infinite; }
@keyframes pop-big { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
@keyframes burst { 50% { box-shadow: 0 0 0 18px transparent, 0 0 40px 10px color-mix(in srgb, var(--medal-glow) 35%, transparent); } }
@keyframes fade-in { from { opacity: 0; } }

/* Tvoja godina (priča) */
.story { position: fixed; inset: 0; z-index: 1100; color: var(--story-on-story); display: flex; flex-direction: column; overflow: hidden; transition: background .6s; }
.story.b1 { background: radial-gradient(120% 90% at 20% 10%, var(--story-b1-light) 0%, var(--story-b1-mid) 55%, var(--story-b1-dark) 100%); }
.story.b2 { background: radial-gradient(120% 90% at 80% 10%, var(--story-b2-light) 0%, var(--story-b2-mid) 45%, var(--story-b2-dark) 100%); }
.story.b3 { background: radial-gradient(120% 90% at 10% 90%, var(--story-b3-light) 0%, var(--story-b3-mid) 60%, var(--story-b3-dark) 100%); }
.story.b4 { background: radial-gradient(120% 90% at 50% 0%, var(--story-b4-light) 0%, var(--story-b4-mid) 55%, var(--story-b4-dark) 100%); }
.story.b5 { background: radial-gradient(120% 90% at 90% 80%, var(--story-b5-light) 0%, var(--story-b5-mid) 55%, var(--story-b5-dark) 100%); }
.story.b6 { background: radial-gradient(120% 90% at 20% 20%, var(--story-b6-light) 0%, var(--story-b6-mid) 55%, var(--story-b6-dark) 100%); }
.story.b7 { background: radial-gradient(120% 90% at 80% 30%, var(--story-b7-light) 0%, var(--story-b7-mid) 55%, var(--story-b7-dark) 100%); }
.story.b8 { background: radial-gradient(120% 90% at 50% 50%, var(--story-b8-light) 0%, var(--story-b8-mid) 45%, var(--story-b8-dark) 100%); }
.story-bars { display: flex; gap: 4px; padding: 12px 14px 0; }
.story-bars span { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--neutral-white) 28%, transparent); overflow: hidden; }
.story-bars span i { display: block; height: 100%; width: 0; background: var(--story-on-story); }
.story-bars span.done i { width: 100%; }
.story-bars span.now i { animation: bar var(--dur) linear forwards; }
.story-bars span.now.paused i { animation-play-state: paused; }
@keyframes bar { to { width: 100%; } }
.story-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.story-brand { font-weight: 800; letter-spacing: .02em; opacity: .9; }
.story-brand b { color: var(--story-accent); }
.story-x { background: color-mix(in srgb, var(--neutral-white) 15%, transparent); border: 0; color: var(--story-on-story); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.story-stage { flex: 1; display: grid; place-items: center; padding: 16px 20px 40px; cursor: pointer; user-select: none; }
.story-slide { max-width: 560px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: slide-in .6s cubic-bezier(.2,.9,.2,1) both; }
.story-slide > * { animation: slide-in .7s cubic-bezier(.2,.9,.2,1) both; }
.story-slide > *:nth-child(2) { animation-delay: .12s; } .story-slide > *:nth-child(3) { animation-delay: .24s; }
.story-slide > *:nth-child(4) { animation-delay: .36s; } .story-slide > *:nth-child(5) { animation-delay: .48s; }
@keyframes slide-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.story h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; line-height: 1.15; }
.story .big { font-size: clamp(3.4rem, 13vw, 6.5rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--story-on-story), var(--story-big-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story .lead { font-size: 1.3rem; font-weight: 600; margin: 0; }
.story .kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .8; margin: 0; }
.story p, .story .lead, .story h2, .story li { margin: 0; color: color-mix(in srgb, var(--story-on-story) 95%, transparent); }
.story img { max-width: 60vw; height: auto; filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--shadow) 35%, transparent)); }
.story .facts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 1.1rem; }
.story .facts li { background: color-mix(in srgb, var(--neutral-white) 10%, transparent); border-radius: 14px; padding: 8px 14px; }
.podium { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.podium li { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--neutral-white) 12%, transparent); border-radius: 16px; padding: 10px 14px; font-size: 1.15rem;
  animation: slide-in .6s both; animation-delay: calc(.2s + var(--i) * .15s); }
.podium li span { font-size: 1.8rem; } .podium li b { flex: 1; text-align: left; } .podium li em { font-style: normal; opacity: .8; }
.flags { font-size: 2.4rem; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.story-medals { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.story-medals > div { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; animation: pop-big .6s both; animation-delay: calc(.2s + var(--i) * .12s); }
.story .btn { color: inherit; }
.story .btn.primary { background: var(--story-on-story); color: var(--story-ink); border-color: var(--story-on-story); }
.story .btn:not(.primary) { background: color-mix(in srgb, var(--neutral-white) 14%, transparent); border-color: transparent; color: var(--story-on-story); }
@media (prefers-reduced-motion: reduce) {
  .medal.on .medal-ring, .medal.on::after, .trophy-burst, .story-slide, .story-slide > *, .podium li, .story-medals > div, .medal-cell, .joy-toast { animation: none; }
}

/* Postignuća po razinama */
.ladders-title { margin: 20px 0 10px; font-size: 1.05rem; }
.ladders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ladder { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2);
  animation: fd-pop .45s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 60ms); }
.ladder-text { flex: 1; min-width: 0; }
.ladder-text .goal-bar { margin: 6px 0 2px; }
.ladder-medal { --s: 56px; --tc: var(--muted); position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 30%;
  display: grid; place-items: center; font-size: calc(var(--s) * .46); color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, var(--surface)); transform: rotate(45deg); }
.ladder-medal > .mi { transform: rotate(-45deg); }
.ladder-medal.on { color: var(--neutral-white); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tc) 55%, var(--neutral-white)), var(--tc) 60%, color-mix(in srgb, var(--tc) 70%, var(--neutral-black)));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tc) 45%, transparent), inset 0 -3px 8px color-mix(in srgb, var(--shadow) 20%, transparent); }
.ladder-medal b { position: absolute; right: -6px; bottom: -6px; transform: rotate(-45deg); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px;
  font-size: 12px; line-height: 22px; text-align: center; background: var(--surface); color: var(--text); border: 2px solid var(--tc); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ladder { animation: none; } }
.route-speed { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.quick-business { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.quick-business p { margin: 4px 0 0 58px; }
.mail-transport { margin-top: 6px; }
.mail-transport .ok-text { color: var(--positive); }
.mail-transport .err-text { color: var(--error); }

/* ===== Početna: snimke ekrana ===== */
.screens { max-width: 1200px; margin: 0 auto; padding: 56px 24px 24px; }
.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 18px; }
.shot-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.shot-tabs button:hover { border-color: var(--primary); }
.shot-tabs button.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.browser { margin: 0 auto; max-width: 1080px; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--shadow) 35%, transparent); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2, color-mix(in srgb, var(--text) 6%, var(--surface))); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--chrome-dot-red); }
.browser-bar i:nth-child(2) { background: var(--chrome-dot-yellow); }
.browser-bar i:nth-child(3) { background: var(--chrome-dot-green); }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 320px; padding: 3px 12px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.shot-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-zoom img { display: block; width: 100%; height: auto; }
.browser .shot-zoom img { aspect-ratio: 1600 / 1012; animation: fade-in .25s ease; }
.browser figcaption, .phone figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: .9rem; text-align: center; }
.shots-app-title { margin: 44px 0 18px; font-size: 1.25rem; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 1080px; margin: 0 auto 14px; }
.phone { margin: 0; }
.phone .shot-zoom { border-radius: 30px; overflow: hidden; border: 8px solid var(--chrome-phone); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--shadow) 45%, transparent); background: var(--chrome-phone); }
.phone .shot-zoom img { border-radius: 22px; }
.phone figcaption { padding: 10px 4px 0; }
.shot-light { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--scrim) 82%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; cursor: zoom-out; animation: fade-in .15s ease; }
.shot-light img { max-width: min(1600px, 100%); max-height: calc(100vh - 90px); border-radius: 12px; box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 50%, transparent); }
.shot-light img.tall { border-radius: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .phone .shot-zoom { transition: transform .25s var(--ease); }
  .phone .shot-zoom:hover { transform: translateY(-6px); }
}
@media (max-width: 900px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .screens { padding: 40px 16px 16px; } .shot-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .shot-tabs button { flex: none; } .phone .shot-zoom { border-width: 6px; border-radius: 24px; } }

/* ===== Javne stranice (privatnost, uvjeti, vodiči) ===== */
.doc-page { background: var(--bg); color: var(--text); }
.doc-head { max-width: 860px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.doc-brand img { border-radius: 9px; }
.doc-brand b { color: var(--brand-orange); font-weight: 750; }
.doc { max-width: 860px; margin: 0 auto; padding: 8px 20px 40px; line-height: 1.65; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 12px 0 6px; }
.doc h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }
.doc a { color: var(--primary); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .93rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.doc th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc .note { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-radius: 12px; padding: 12px 16px; }
.doc-cta { display: flex; gap: 18px; align-items: center; margin: 36px 0 0; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.doc-cta p { margin: 4px 0 12px; color: var(--muted); }
.doc-foot { max-width: 860px; margin: 0 auto; padding: 20px 20px 40px; border-top: 1px solid var(--border); }
.doc-foot a { color: var(--muted); }
@media (max-width: 560px) { .doc-cta { flex-direction: column; text-align: center; } }
.land-foot .legal-links { gap: 16px; } .land-foot .legal-links a { color: var(--muted); }

/* ===== Početna: kalkulator i usporedba ===== */
.calc, .compare { max-width: 1000px; margin: 0 auto; padding: 48px 24px 16px; }
.calc-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 24px; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.calc-in .field input { width: 100%; font: inherit; font-size: 1.15rem; font-weight: 650; }
.calc-out { display: grid; gap: 12px; align-content: start; }
.calc-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.calc-out strong { font-size: 1.25rem; }
.calc-out .calc-total { flex-wrap: wrap; border: 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.calc-out .calc-total strong { font-size: 1.9rem; color: var(--primary); }
.calc-out .calc-total span:last-child { flex-basis: 100%; color: var(--muted); }
.cmp-table { padding: 6px 0; overflow-x: auto; }
.cmp-table table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-table tbody th { font-weight: 650; width: 24%; }
.cmp-table td { color: var(--muted); width: 38%; }
.cmp-table td.cmp-new { color: var(--text); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.cmp-table thead th.cmp-new { color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.cmp-x, .cmp-ok { display: inline-block; width: 1.4em; font-weight: 800; }
.cmp-x { color: var(--error); } .cmp-ok { color: var(--primary); }
.land-foot .guide-links span { margin-right: -6px; }
@media (max-width: 760px) { .calc-box { grid-template-columns: 1fr; } .cmp-table tbody th { width: auto; } .cmp-table th, .cmp-table td { padding: 12px; } }
@media (max-width: 420px) { .calc-in { grid-template-columns: 1fr; } }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light)); color: var(--brand-on-orange); font-weight: 600; }
.demo-bar .btn { background: var(--brand-on-orange); color: var(--neutral-white); border-color: var(--brand-on-orange); }
.hero .demo-note { margin: 6px 0 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 12%, transparent); }
.drivvo-steps { padding-left: 20px; line-height: 1.7; }
.drivvo-steps code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ===== Sigurnost prijave: nova lozinka, potvrda e-maila, 2FA, Google ===== */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.forgot-link { align-self: flex-end; font-size: .85rem; margin-top: -6px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 4px 0 10px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-login .gsi { display: flex; justify-content: center; min-height: 44px; }
.auth-done h2 { margin: 0; }
.otp-input { font-variant-numeric: tabular-nums; letter-spacing: .25em; font-size: 1.25rem; text-align: center; }
.verify-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--primary-soft); color: var(--text); font-size: .9rem; border-bottom: 1px solid var(--border); }
.verify-bar .btn { padding: 5px 14px; min-height: 0; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.sec-row:first-child { border-top: 0; padding-top: 0; }
.sec-row:last-of-type { padding-bottom: 0; }
.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.qr-box .qr { border-radius: 10px; flex: none; background: var(--neutral-white); }
.secret-code { display: inline-block; margin-top: 4px; font: 600 .95rem/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-all; }
.steps-2fa { margin: 0; padding-left: 1.2em; }
.steps-2fa li + li { margin-top: 4px; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding: 14px 14px 14px 2.2em; border-radius: 14px; background: var(--surface-2); }
.recovery code { font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }

/* ===== Web kao aplikacija (PWA) ===== */
.install-hint { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-2); animation: hint-in .35s var(--ease) both; }
.install-hint img { border-radius: 10px; flex: none; }
.install-hint > div { flex: 1; min-width: 0; line-height: 1.4; }
.install-hint .ios-share { width: 16px; height: 16px; vertical-align: -3px; color: var(--primary); }
@media (min-width: 900px) { .install-hint { bottom: 20px; right: 20px; left: auto; } }
@keyframes hint-in { from { opacity: 0; transform: translateY(12px); } }
.ios-install { display: flex; gap: 16px; align-items: center; max-width: 620px; margin: 26px auto 10px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.ios-install img { border-radius: 13px; flex: none; }
.ios-install h3 { margin: 0 0 4px; font-size: 1.02rem; }
.ios-install p { margin: 0; }
@media print { .install-hint { display: none !important; } }

/* ===== Dnevnik grešaka (administracija) ===== */
.err-msg { display: block; overflow-wrap: anywhere; }
.err-detail { max-height: 280px; overflow: auto; padding: 10px; border-radius: 10px; background: var(--surface-2); font: .78rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== Obavijesti (zvonce) ===== */
.side-head { display: flex; align-items: flex-start; justify-content: space-between; }
.side-head .brand { flex: 1; }
.bell { position: relative; }
.bell-btn { position: relative; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: var(--on-error); font: 700 .68rem/18px var(--font-text); text-align: center; }
.bell-panel { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-2); animation: hint-in .18s var(--ease) both; }
.topbar .bell-panel { left: auto; right: -40px; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; position: sticky; top: 0; background: var(--surface); }
.bell-empty { padding: 4px 14px 16px; margin: 0; }
.bell-list { list-style: none; margin: 0; padding: 0 6px 6px; }
.bell-list button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 10px 10px 22px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer; position: relative; }
.bell-list button:hover { background: var(--surface-2); }
.bell-list button.unread::before { content: ""; position: absolute; left: 9px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.bell-list button.unread .bell-title { font-weight: 650; }
.bell-body { font-size: .86rem; color: var(--muted); }
.bell-time { font-size: .74rem; color: var(--muted); }

/* ===== Što je novo ===== */
.wn { display: flex; gap: 16px; align-items: flex-start; }
.wn .odo { flex: none; }
.wn-entry ul { margin: 6px 0 0; padding-left: 1.2em; }
.wn-entry li + li { margin-top: 4px; }
.wn-entry + .wn-entry { border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 520px) { .wn { flex-direction: column; align-items: center; } }

/* Hero kartica i KPI kutije (zajednički uzorak svih stranica) */
.hero-card { display: flex; align-items: center; gap: 22px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primary) 16%, var(--surface)) 0%, var(--surface) 60%); }
.hc-art { flex: none; width: 150px; display: grid; place-items: center; position: relative; }
.mascot { display: inline-block; vertical-align: middle; line-height: 0; width: var(--ms, 150px); max-width: 100%; }
.mascot img { width: 100%; height: auto; display: block; }
.hc-art .mascot { width: 150px; }
.welcome .odo-corner.mascot { width: 150px; bottom: 6px; }
.fd-empty .mascot { width: 200px; flex: none; }
.hc-art.road { padding-bottom: 10px; }
.hc-art.road::after { content: ''; position: absolute; left: -14px; right: -14px; bottom: 6px; height: 4px; border-radius: 2px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--muted) 0 18px, transparent 18px 34px); animation: hero-road .55s linear 7; }
@keyframes hero-road { to { background-position: -34px 0; } }
.hc-main { flex: 1; min-width: 0; }
.hero-kicker { color: var(--muted); font-size: .9rem; }
.hero-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-line { color: var(--muted); margin-top: 2px; }
.hc-main .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hc-main .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .85rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text); }
.stat.kpi { position: relative; overflow: hidden; padding-right: 54px; }
.kpi-ico { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.kpi-ico svg { width: 18px; height: 18px; }
.stat .value-sm { font-size: 1.25rem; }
.stat .value small { font-size: .7em; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) {
  .hero-card { flex-direction: column; text-align: center; }
  .hc-art, .hc-art .mascot { width: 120px; }
  .hc-main .chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hc-art.road::after { animation: none; } }
@media (max-width: 640px) { .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpis .stat .value { font-size: 1.25rem; } .stat.kpi { padding-right: 16px; } .kpis .kpi-ico { display: none; } }

/* Podijeljeni izvještaj (#/r/token): traka s ispisom i izvozom, dokument u sredini */
.shared-report { max-width: 1040px; margin: 0 auto; padding: 16px; }
.shared-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.shared-bar .brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
@media print { .shared-report { padding: 0; max-width: none; } }

/* Ovlasti u timu: ovlast po retku, uloge u stupcima; promijenjeno u odnosu na zadano je označeno */
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table .center { text-align: center; width: 84px; }
.perm-table .check.switch { justify-content: center; }
.perm-table td.changed { background: color-mix(in srgb, var(--accent, var(--primary)) 10%, transparent); }

/* Obavijesti i podsjetnici: vrsta po retku, e-mail i aplikacija u stupcima */
.nset td, .nset th { vertical-align: middle; }
.nset .center { text-align: center; width: 90px; }
.nset .check.switch { justify-content: center; }

/* Novi izvještaj: odabir putovanja kvačicom; putovanja na drugom izvještaju su zasivljena */
.trip-pick { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.trip-pick li + li { border-top: 1px solid var(--border); }
.trip-pick label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; cursor: pointer; }
.trip-pick input { margin-top: 3px; flex: none; }
.trip-pick .tp-date { display: flex; flex-direction: column; min-width: 92px; flex: none; }
.trip-pick .tp-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.trip-pick .tp-km { flex: none; white-space: nowrap; padding-top: 2px; }
.trip-pick li.on { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.trip-pick li.taken { opacity: .5; }
.trip-pick li.taken label { cursor: not-allowed; }

/* Izvještaj: jedna vožnja u jednom retku (sitniji font), razrada dnevnica po službenom putu, trošak */
.doc .rep-trips, .doc .rep-exp { table-layout: auto; width: 100%; display: table; font-size: .84rem; line-height: 1.4; margin: 6px 0; }
.doc .rep-trips th, .doc .rep-exp th { font-size: .68rem; padding: 6px 6px; white-space: nowrap; }
.doc .rep-trips td, .doc .rep-exp td { padding: 6px 6px; vertical-align: top; }
.doc .rep-trips .small, .doc .rep-exp .small { font-size: .74rem; line-height: 1.35; }
.rep-trips th.rb, .rep-trips td.rb, .rep-exp th.rb, .rep-exp td.rb { width: 2.2em; color: var(--muted); padding-right: 0; }
.rep-trips .rt-date, .rep-trips tbody td:nth-child(2) { white-space: nowrap; }
.rep-trips .rt-odo, .rep-trips tbody td:nth-child(4) { white-space: nowrap; }
.rep-trips .rt-km, .rep-trips .rt-amt, .rep-trips tbody td:nth-child(5), .rep-trips tbody td:nth-child(6) { white-space: nowrap; width: 1%; }
.rep-trips .rt-mode { font-weight: 650; }
.rep-trips tr.same-journey td { border-bottom-style: dashed; }
.rep-trips tfoot td { font-weight: 650; }
.rep-trips tr, .rep-exp tr { break-inside: avoid; page-break-inside: avoid; }
.rep-trips tr.link:hover td, .rep-exp tr.link:hover td { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.rep-exp .exp-kind { font-weight: 600; }
.pd-breakdown { margin: 18px 0 4px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.pd-trip { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 8px 0; break-inside: avoid; page-break-inside: avoid; }
.pd-trip ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-trip li { display: flex; justify-content: space-between; gap: 16px; }
.pd-trip li::before { content: '•'; color: var(--muted); margin-right: 8px; }
.pd-trip li > span:first-child { flex: 1; }
.pd-trip li.sub { padding-left: 22px; color: var(--muted); }
.pd-trip li.sub::before { content: '↳'; }
.pd-total { display: flex; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 6px; }
@media print {
  .rep-trips tr.link:hover td, .rep-exp tr.link:hover td { background: none; }
  .doc { line-height: 1.4; }
  .doc .rep-trips, .doc .rep-exp { font-size: 8.5pt; }
  .doc .rep-trips th, .doc .rep-exp th { font-size: 7pt; padding: 3px 4px; }
  .doc .rep-trips td, .doc .rep-exp td { padding: 3px 4px; }
  .doc .rep-trips .small, .doc .rep-exp .small { font-size: 7.5pt; }
  .pd-breakdown { font-size: 9pt; }
}

/* ===== Redizajn: zajedničke komponente (iste kao na Androidu). Boje, razmaci i fontovi iz tokens.css. ===== */
.num, .mh-num, .ss-value, .sr-value, .tx-value, .ac-value { font-variant-numeric: tabular-nums; }

/* Zaglavlje stranice: oznaka iznad, naslov i razdoblje */
.screen-head { display: flex; align-items: flex-end; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.screen-head > div:first-child { flex: 1; min-width: 200px; }
.screen-head .overline { color: var(--on-surface-variant); font: var(--type-label-large); }
.screen-head h1 { font: var(--type-headline-medium); }

/* MetricHero: velika brojka bez kartice, Odo izlazi iz gornjeg desnog kuta */
.metric-hero { position: relative; padding: var(--space-sm) 0 var(--space-md); min-width: 0; overflow-x: clip; overflow-y: visible; }
.metric-hero .mh-glow { position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--hero-gradient-start), transparent 70%); }
.metric-hero .mh-odo { position: absolute; top: -10px; right: 0; }
.metric-hero .mh-label { position: relative; color: var(--on-surface-variant); font: var(--type-label-large); padding-right: 110px; }
.metric-hero .mh-value { position: relative; display: flex; align-items: baseline; gap: 2px; padding-right: 70px; min-width: 0; }
.metric-hero .mh-num { font: var(--type-metric-hero); letter-spacing: var(--tracking-metric-hero); font-size: clamp(32px, 9vw, 56px); white-space: nowrap; }
.metric-hero .mh-unit { font: var(--type-metric-unit); color: var(--on-surface-variant); }
.metric-hero .mh-meta { position: relative; color: var(--on-surface-variant); margin-top: var(--space-xxs); padding-right: 96px; }
.metric-hero > :not(.mh-odo):not(.mh-glow) { position: relative; z-index: 1; }
.metric-hero .mh-odo { z-index: 0; }
@media (max-width: 480px) { .metric-hero .mh-odo { width: 104px; } }

/* Podijeljena traka poslovno / privatno */
.split-bar { position: relative; margin-top: var(--space-sm); }
.split-bar .sb-bar { display: flex; gap: 2px; height: 8px; border-radius: var(--radius-full); overflow: hidden; }
.split-bar .sb-bar i { display: block; background: var(--surface-container-highest); }
.split-bar .sb-legend { display: flex; flex-wrap: wrap; gap: var(--space-xxs) var(--space-md); margin-top: var(--space-xs); font-size: .85rem; color: var(--on-surface-variant); }
.split-bar .sb-legend b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.split-bar .sb-legend strong { color: var(--on-surface); font-weight: 500; }

/* StatList: metrike u jednoj kartici */
.stat-list { background: var(--surface-container-low); border-radius: var(--radius-lg); padding: var(--space-xxs) 0; border: 1px solid var(--outline-variant); }
.stat-row { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 56px; padding: var(--space-sm) var(--space-md);
  background: none; border: 0; font: inherit; color: var(--on-surface); text-align: left; text-decoration: none; }
.stat-row + .stat-row { border-top: 1px solid var(--outline-variant); }
a.stat-row, button.stat-row { cursor: pointer; }
a.stat-row:hover, button.stat-row:hover { background: color-mix(in srgb, var(--on-surface) 4%, transparent); text-decoration: none; }
.sr-ico, .tx-ico { --tint: var(--primary); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent); }
.sr-ico svg { width: 20px; height: 20px; }
.sr-text, .tx-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-label { font-weight: 500; }
.sr-sub, .tx-meta { color: var(--on-surface-variant); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.sr-value { font-weight: 600; white-space: nowrap; }
.sr-go, .ac-go { color: var(--outline); display: grid; }
.sr-go svg, .ac-go svg { width: 18px; height: 18px; }

/* StatStrip: tri kolone s razdjelnicima */
.stat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface-container-low);
  border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: var(--space-sm) 0; }
.ss-item { padding: 0 var(--space-sm); min-width: 0; }
.ss-item + .ss-item { border-left: 1px solid var(--outline-variant); }
.ss-label { color: var(--on-surface-variant); font: var(--type-label-medium); }
.ss-value { font: var(--type-stat-value); font-size: clamp(13px, 3.6vw, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-sub { color: var(--on-surface-variant); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ActionBanner: akcija (teal) ili nešto što čeka (zlatno) */
.action-banner { display: flex; align-items: center; gap: var(--space-sm); width: 100%; padding: var(--space-md); border-radius: var(--radius-lg);
  border: 0; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.action-banner:hover { text-decoration: none; filter: brightness(1.03); }
.action-banner--action { background: var(--action-container); color: var(--on-action-container); --accent-bar: var(--action); }
.action-banner--pending { background: var(--achievement-container); color: var(--on-achievement-container); --accent-bar: var(--achievement); }
.ab-accent { flex: none; width: 4px; align-self: stretch; min-height: 40px; border-radius: 2px; background: var(--accent-bar); }
.ab-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ab-title { font: var(--type-overline); letter-spacing: var(--tracking-overline); text-transform: uppercase; }
.ab-body { font-weight: 600; font-size: 1.02rem; }
.ab-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: .9rem; }
.ab-cta svg { width: 16px; height: 16px; }

/* AchievementCard: zlatni prijelaz (Trip-a-ton) */
.achievement-card { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-xl); text-decoration: none;
  color: var(--on-achievement-gradient); background: linear-gradient(135deg, var(--achievement-gradient-start), var(--achievement-gradient-end)); }
.achievement-card:hover { text-decoration: none; filter: brightness(1.03); }
.ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-title { font: var(--type-label-large); }
.ac-value { font: var(--type-headline-small); }
.ac-bar { display: block; height: 6px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--on-achievement-gradient) 18%, transparent); overflow: hidden; margin: 4px 0; }
.ac-bar i { display: block; height: 100%; background: var(--on-achievement-gradient); border-radius: inherit; }
.ac-caption { font-size: .85rem; }
.achievement-card .ac-go { color: inherit; }

/* Naslov odjeljka */
.section-header { display: flex; align-items: center; gap: var(--space-sm); min-height: 48px; }
.section-header h2 { flex: 1; font: var(--type-title-medium); font-family: var(--font-text); font-weight: 600; }

/* TxItem: jedan oblik retka */
.tx-list { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); overflow: hidden; }
.tx-item { display: flex; align-items: center; gap: var(--space-sm); width: 100%; min-height: 64px; padding: var(--space-sm) var(--space-md);
  background: none; border: 0; font: inherit; color: var(--on-surface); text-align: left; text-decoration: none; }
.tx-item + .tx-item { border-top: 1px solid var(--outline-variant); }
a.tx-item, button.tx-item { cursor: pointer; }
a.tx-item:hover, button.tx-item:hover { background: color-mix(in srgb, var(--on-surface) 4%, transparent); text-decoration: none; }
.tx-ico { width: 38px; height: 38px; }
.tx-ico svg, .tx-ico .mi { width: 22px; height: 22px; fill: currentColor; }
.tx-ico .cat-ico { background: none; width: auto; height: auto; }
.tx-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { white-space: nowrap; }
.tx-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.tx-value { font: var(--type-amount); white-space: nowrap; }
.tx-value.pos { color: var(--positive); }
.tx-sub { color: var(--on-surface-variant); font-size: .8rem; white-space: nowrap; }

/* Skupina dana s ljepljivim zaglavljem */
.day-group + .day-group { margin-top: var(--space-xs); }
.dg-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) var(--space-xxs);
  background: var(--background); color: var(--on-surface-variant); font: var(--type-label-large); }
.dg-rows { background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 860px) { .dg-head { top: 56px; } }

/* Prazno stanje s Odom */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-xl) var(--space-xxl); text-align: center; }
.empty-state h2 { font: var(--type-title-large); }
.empty-state p { margin: 0; color: var(--on-surface-variant); max-width: 46ch; }

/* Aktivni filtar */
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 8px 4px 12px; border-radius: var(--radius-sm);
  border: 0; background: var(--secondary-container); color: var(--on-secondary-container); font: inherit; font-size: .88rem; cursor: pointer; }
.filter-chip svg { width: 16px; height: 16px; }

/* ChartCard i stupci po razdobljima (bez sivih tračnica) */
.chart-card .card-head h2 { font: var(--type-title-medium); font-family: var(--font-text); font-weight: 600; }
.period-bars { display: flex; gap: var(--space-xs); }
.pb-axis { display: flex; flex-direction: column; justify-content: space-between; height: var(--h); font-size: .72rem; color: var(--on-surface-variant); text-align: right; white-space: nowrap; }
.pb-plot { flex: 1; min-width: 0; }
.pb-grid { position: relative; height: var(--h); margin-bottom: calc(var(--h) * -1); pointer-events: none; }
.pb-grid i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--outline-variant); }
.pb-grid i:first-child { border-top-style: solid; }
.pb-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: var(--h); }
.pb-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: none; cursor: pointer; }
.pb-bar:disabled { cursor: default; }
.pb-bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--primary) 32%, transparent); transition: height .6s cubic-bezier(.2,0,0,1); }
.pb-bar.on i, .pb-bar:hover i { background: var(--primary); }
.pb-labels { display: flex; gap: 4px; margin-top: 4px; font-size: .72rem; color: var(--on-surface-variant); }
.pb-labels span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
.pb-labels span.on { color: var(--on-surface); font-weight: 600; }

/* DonutCard: prsten i legenda koja filtrira */
.dc-ring { position: relative; width: 180px; margin: 0 auto var(--space-sm); }
.dc-ring svg { display: block; width: 100%; }
.dc-ring circle { transition: opacity .2s, stroke-width .2s; }
.dc-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 36px; }
.dc-center strong { font: var(--type-headline-small); white-space: nowrap; }
.dc-center span { color: var(--on-surface-variant); font-size: .8rem; }
.dc-legend { display: flex; flex-direction: column; }
.dc-row { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-xs); border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; color: var(--on-surface); text-align: left; cursor: pointer; }
.dc-row:hover { background: color-mix(in srgb, var(--on-surface) 4%, transparent); }
.dc-row.on { background: var(--secondary-container); color: var(--on-secondary-container); }
.dc-row b { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* PeriodSelector: pill s padajućim izborom */
.period-pill { position: relative; }
.pp-btn { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 40px; padding: 6px 8px 6px 16px; border-radius: var(--radius-full);
  border: 0; background: var(--secondary-container); color: var(--on-secondary-container); font: inherit; font-weight: 500; cursor: pointer; }
.pp-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-btn svg { width: 20px; height: 20px; flex: none; }
.pp-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; padding: 6px; border-radius: var(--radius-md);
  background: var(--surface-container); border: 1px solid var(--outline-variant); box-shadow: var(--shadow-2); }
.pp-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--on-surface); font: inherit; text-align: left; cursor: pointer; }
.pp-menu > button:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.pp-menu > button svg { width: 18px; height: 18px; flex: none; }
.pp-menu hr { border: 0; border-top: 1px solid var(--outline-variant); margin: 4px 0; }
.pp-range { display: grid; gap: 6px; padding: 6px 4px 2px; }

/* Pregled i Troškovi: iznad 1024 px dvije kolone (lijevo glavno, desno grafovi i Trip-a-ton) */
.screen-cols { display: grid; gap: var(--space-md); }
.screen-cols > div { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.dash-actions .btn { justify-content: center; min-height: 44px; }
.btn.tonal { background: var(--secondary-container); border-color: transparent; color: var(--on-secondary-container); }
@media (min-width: 1025px) {
  .screen-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .screen-cols > .col-side { position: sticky; top: 16px; }
}
.stat-row.warn .sr-value { color: var(--error); }
/* Troškovi na užem ekranu: redoslijed kao na Androidu (glavna brojka, prsten, graf, pa lista). */
@media (max-width: 1024px) {
  .screen-cols.side-after-hero > div { display: contents; }
  .screen-cols.side-after-hero .metric-hero { order: 1; }
  .screen-cols.side-after-hero > .col-side > * { order: 2; }
  .screen-cols.side-after-hero > .col-main > :not(.metric-hero) { order: 3; }
}

/* Vrsta putovanja: poslovno (tirkizno) i privatno (jantarno) - traka uz lijevi rub retka, legenda i prekidač */
.tk-biz { --kind: var(--primary); --on-kind: var(--on-primary); }
.tk-priv { --kind: var(--achievement); --on-kind: var(--on-achievement); }
.tx-item.tk { box-shadow: inset 4px 0 0 var(--kind); }
tr.tk > td:first-child { box-shadow: inset 4px 0 0 var(--kind); }
.tk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 var(--space-sm); color: var(--on-surface-variant); }
.tk-legend .tk { display: inline-flex; align-items: center; gap: 6px; }
.tk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kind); }
.tk-toggle { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--surface-container-high, var(--surface-variant)); }
.tk-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; font: inherit; font-weight: 500; color: var(--on-surface-variant); cursor: pointer; }
.tk-toggle button svg { width: 18px; height: 18px; }
.tk-toggle button.on { background: var(--kind); color: var(--on-kind); }
.tk-toggle button:disabled { cursor: default; opacity: .6; }
.quick-business .tk-toggle { margin-bottom: 4px; }

/* Sklopiva skupina polja u obrascu */
.form-fold { border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 0 var(--space-md); }
.form-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; cursor: pointer; font-weight: 600; list-style: none; }
.form-fold > summary::-webkit-details-marker { display: none; }
.form-fold > summary::before { content: '+'; width: 1em; color: var(--primary); font-weight: 700; }
.form-fold[open] > summary::before { content: '-'; }
.form-fold[open] > .stack { padding-bottom: var(--space-md); }
.form-fold > summary .muted { font-weight: 400; }
.stack > .tk-toggle { align-self: flex-start; }

/* Automatsko razvrstavanje: dani u tjednu, pravila i prijedlozi */
.cls-days { display: flex; flex-wrap: wrap; gap: 6px; }
.cls-days button { min-width: 48px; min-height: 36px; padding: 0 12px; border: 1px solid var(--outline-variant); border-radius: 999px;
  background: var(--surface); color: var(--on-surface); font: inherit; cursor: pointer; text-transform: capitalize; }
.cls-days button.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cls-days button:disabled { opacity: .5; cursor: default; }
.cls-rules { list-style: none; margin: 0; padding: 0; }
.cls-rules li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--outline-variant); }
.cls-rules li.off { opacity: .55; }
.cls-rules li .grow, .cls-suggest .grow { flex: 1; min-width: 0; }
.cls-rules .tk-dot { flex: none; }
.cls-suggest { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--surface-container, var(--surface-variant)); }
.cls-suggest .row { align-items: center; padding: 4px 0; }
.kind-source .button, .kind-source button { font-size: .85rem; }

/* Pomoć: sve mogućnosti (članci) i rješavanje problema */
.help-search { position: relative; display: flex; align-items: center; margin: 0 0 12px; }
.help-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.help-search input { width: 100%; padding-left: 42px; min-height: 46px; border-radius: 14px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.help-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.help-toc a:hover { border-color: var(--primary); color: var(--primary); }
.help-toc svg { width: 16px; height: 16px; }
.help-h { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feat-group { margin: 0 0 22px; scroll-margin-top: 80px; }
.feat-group h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 1.05rem; }
.feat-group h3 svg { width: 20px; height: 20px; color: var(--primary); }
.feat-list { display: grid; gap: 8px; }
.feat-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 80px; }
.feat-item:hover, .feat-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.feat-item[open] { box-shadow: var(--shadow-1); }
.feat-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.feat-item summary::-webkit-details-marker { display: none; }
.feat-item summary::marker { content: ''; }
.feat-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 12px; }
.feat-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.feat-ico.warn { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.feat-ico svg { width: 20px; height: 20px; }
.feat-sum { flex: 1; min-width: 0; display: grid; gap: 2px; }
.feat-apps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.feat-body { padding: 0 16px 14px 64px; animation: fade-in .2s ease; }
.feat-how { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-bottom: 4px; }
.feat-steps, .trbl-causes { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }
.trbl-causes li strong { font-weight: 600; }
.public-help-main { max-width: 900px; margin: 0 auto; padding: 96px 16px 48px; }
@media (max-width: 640px) {
  .feat-item summary { flex-wrap: wrap; }
  .feat-apps { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .feat-body { padding: 0 14px 14px 14px; }
}
.public-help .land-actions { margin-left: auto; }

/* ===== Početna: 8 mogućnosti, pametno bilježenje, sve mogućnosti ===== */
@media (min-width: 1101px) { .feat-grid.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 1100px) { .feat-grid.eight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.smart { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.smart-art { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 18px 18px 22px; box-shadow: var(--shadow-1); }
.smart-mapbox { position: relative; }
.smart-map { width: 100%; height: auto; display: block; }
.smart-road { fill: none; stroke: color-mix(in srgb, var(--primary) 16%, var(--surface)); stroke-width: 14; stroke-linecap: round; }
.smart-trail { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 3; }
.smart-home { fill: var(--primary); }
.smart-stop circle { fill: var(--achievement); } .smart-end circle { fill: var(--primary); }
.smart-stop path, .smart-end path { fill: none; stroke: var(--on-achievement); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.smart-end path { stroke: var(--on-primary); }
.smart-car { fill: var(--surface); stroke: var(--primary); stroke-width: 4; }
.smart-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-1); }
.smart-tag svg { width: 16px; height: 16px; }
.smart-tag.t-stop { left: 36%; top: 62%; color: color-mix(in srgb, var(--achievement) 55%, var(--text)); }
.smart-tag.t-end { right: 2%; top: 2%; color: var(--primary); }
.smart-cards { display: grid; gap: 10px; margin-top: 6px; }
.smart-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 14px; padding: 10px 14px; }
.smart-card.priv { border-left-color: var(--achievement); }
.smart-card div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.smart-card div span { color: var(--muted); font-size: .85rem; }
.smart-card em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.smart-card.priv em { background: color-mix(in srgb, var(--achievement) 22%, var(--surface)); color: color-mix(in srgb, var(--achievement) 55%, var(--text)); }
.smart-card em svg { width: 15px; height: 15px; }
.sc-dot { display: none; }
.smart-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.smart-points li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.smart-points li .feat-icon { flex: none; }
.smart-points li div { display: flex; flex-direction: column; gap: 2px; }
.smart-points li span { color: var(--muted); }
.all-feats { max-width: 1200px; margin: 0 auto; padding: 48px 24px 24px; }
.all-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.all-group { margin: 0; padding: 20px 22px; }
.all-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 10px; }
.all-group h3 .feat-icon { width: 36px; height: 36px; border-radius: 12px; }
.all-group h3 .feat-icon svg { width: 20px; height: 20px; }
.all-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.all-group li { line-height: 1.35; }
.all-group a { color: var(--text); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent); }
.all-group a:hover { color: var(--primary); border-bottom-style: solid; }
.all-app { font-size: .72rem; font-weight: 650; color: var(--primary); background: var(--primary-soft); padding: 1px 7px; border-radius: 999px; }
.all-ctas { justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 980px) { .smart { grid-template-columns: 1fr; } .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .all-grid { grid-template-columns: 1fr; } .smart-tag { font-size: .74rem; padding: 4px 9px; } }
@media (prefers-reduced-motion: no-preference) {
  .smart-trail { stroke-dasharray: 100; stroke-dashoffset: 100; animation: smart-draw 7s linear infinite; }
  .smart-stop { animation: smart-pop 7s ease infinite; transform-box: fill-box; }
  .smart-tag { animation: smart-fade 7s ease infinite; }
  .smart-tag.t-end { animation-name: smart-fade-end; }
  .smart-card.biz { animation: smart-slide 7s var(--ease) infinite; }
}
@media (prefers-reduced-motion: reduce) { .smart-car { display: none; } }
@keyframes smart-draw { 0% { stroke-dashoffset: 100; } 35%, 50% { stroke-dashoffset: 55; } 85%, 100% { stroke-dashoffset: 0; } }
@keyframes smart-pop { 0%, 30% { opacity: .35; } 36%, 100% { opacity: 1; } }
@keyframes smart-fade { 0%, 33% { opacity: 0; translate: 0 6px; } 38%, 92% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes smart-fade-end { 0%, 83% { opacity: 0; translate: 0 6px; } 88%, 96% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes smart-slide { 0%, 84% { opacity: .3; transform: translateX(-14px); } 90%, 97% { opacity: 1; transform: none; } 100% { opacity: .3; } }
