:root {
  /* Neutrali (Untitled-UI inspirirana skala) */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --ink: #101828;
  --text: #1d2939;
  --text-soft: #475467;
  --text-faint: #667085;
  --text-dim: #98a2b3;

  /* Brend — duboka, suzdržana plava */
  --primary: #1b4b8a;
  --primary-hover: #163d70;
  --primary-soft: #eef3fb;
  --primary-ink: #0e2747;

  /* Status */
  --success: #067647;  --success-soft: #ecfdf3;
  --warning: #b54708;  --warning-soft: #fef6ee;
  --danger:  #b42318;  --danger-soft:  #fef3f2;
  --indigo:  #3538cd;  --indigo-soft:  #eef2fb;

  --radius:    10px;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px -1px rgba(16,24,40,.04);
  --shadow-md: 0 4px 14px -4px rgba(16,24,40,.12), 0 2px 6px -3px rgba(16,24,40,.08);
  --shadow-lg: 0 16px 40px -12px rgba(16,24,40,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--text); }
a { color: inherit; }

/* ---------- Ikone ---------- */
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-md { width: 18px; height: 18px; }
.ic-lg { width: 22px; height: 22px; }
.ic-xl { width: 26px; height: 26px; }

/* tonirani kvadrati za ikone */
.tile { display: inline-grid; place-items: center; border-radius: var(--radius-sm); }
.tint-blue   { background: var(--primary-soft); color: var(--primary); }
.tint-green  { background: var(--success-soft); color: var(--success); }
.tint-amber  { background: var(--warning-soft); color: var(--warning); }
.tint-red    { background: var(--danger-soft);  color: var(--danger); }
.tint-gray   { background: var(--surface-3);    color: var(--text-soft); }
.tint-indigo { background: var(--indigo-soft);  color: var(--indigo); }

/* ---------- Layout ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 60px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 40;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.logo-mark .ic { width: 17px; height: 17px; }
.logo-word { font-weight: 700; font-size: 16.5px; letter-spacing: -.3px; color: var(--ink); }
.logo-word span { color: var(--primary); }
.topbar-spacer { flex: 1; }
.topbar-link { font-size: 13.5px; font-weight: 500; color: var(--text-soft); padding: 7px 12px; border-radius: var(--radius-sm); }
.topbar-link:hover { background: var(--surface-3); color: var(--text); }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 8px 5px 6px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.topbar-user:hover { background: var(--surface-2); border-color: var(--border); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; letter-spacing: .3px; }
.topbar-user .u-name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.topbar-user .u-sub { font-size: 11.5px; color: var(--text-dim); }

/* notifikacijsko zvonce */
.topbar-bell { position: relative; width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-soft); cursor: pointer; border: 1px solid transparent; }
.topbar-bell:hover { background: var(--surface-3); color: var(--text); }
.topbar-bell .ic { width: 20px; height: 20px; }
.bell-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.bell-badge.hidden { display: none; }

.notif-panel { position: fixed; top: 56px; right: 24px; width: 366px; max-width: calc(100vw - 28px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 55; overflow: hidden; animation: pop .16s ease; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-head h4 { font-size: 14px; font-weight: 700; color: var(--ink); }
.notif-head .clear { font-size: 12px; font-weight: 600; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.notif-head .clear:hover { text-decoration: underline; }
.notif-head .clear.disabled { color: var(--text-dim); pointer-events: none; }
.notif-list { max-height: 384px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.notif:last-child { border-bottom: none; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--primary-soft); }
.notif.unread:hover { background: #e1ecfa; }
.notif .tile { width: 34px; height: 34px; flex-shrink: 0; }
.notif .tile .ic { width: 17px; height: 17px; }
.notif .nbody { flex: 1; min-width: 0; padding-right: 12px; }
.notif .nt { font-size: 13px; font-weight: 650; color: var(--ink); }
.notif .nx { font-size: 12px; color: var(--text-soft); margin-top: 1px; line-height: 1.4; }
.notif .ntime { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.notif .udot { position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif-empty { padding: 34px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.notif-foot { padding: 11px 16px; border-top: 1px solid var(--border); text-align: center; background: var(--surface-2); }
.notif-foot a { font-size: 12.5px; font-weight: 600; color: var(--primary); cursor: pointer; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 24px 72px; flex: 1; }
.container-narrow { max-width: 720px; }

/* ---------- Tipografija ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.page-sub { color: var(--text-faint); font-size: 14px; margin-top: 4px; }
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--text-dim); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px;
  transition: background .14s, border-color .14s, box-shadow .14s, color .14s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); border-color: #b9c0cc; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #e1ecfa; }
.btn-subtle { background: transparent; color: var(--text-soft); }
.btn-subtle:hover { background: var(--surface-3); color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-sm .ic { width: 15px; height: 15px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--success-soft); color: var(--success); border-color: #abefc6; }
.badge-amber { background: var(--warning-soft); color: var(--warning); border-color: #f9dbaf; }
.badge-red   { background: var(--danger-soft);  color: var(--danger);  border-color: #fecdca; }
.badge-gray  { background: var(--surface-3);    color: var(--text-soft); border-color: var(--border-strong); }
.badge-blue  { background: var(--primary-soft); color: var(--primary); border-color: #c5d8f2; }

/* ---------- Dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stat .tile { width: 34px; height: 34px; }
.stat .tile .ic { width: 18px; height: 18px; }
.stat .lbl { font-size: 12.5px; color: var(--text-faint); font-weight: 500; }
.stat .num { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--ink); line-height: 1; }

/* dashboard kontrole: tabovi + filtri */
.dash-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-3); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.tab { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.tab span { color: var(--text-dim); font-weight: 500; }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.tab.on span { color: var(--primary); }
.filters { display: flex; gap: 8px; }
.select-sm { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.select-sm:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .16s, border-color .16s, transform .16s; }
.case-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-actions { display: flex; align-items: center; gap: 8px; }
.cc-archive { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--text-dim); border: 1px solid transparent; }
.cc-archive:hover { background: var(--surface-3); color: var(--primary); }
.cc-amount { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--ink); }
.cc-type { display: flex; align-items: center; gap: 12px; }
.cc-type .tile { width: 40px; height: 40px; }
.cc-type .tile .ic { width: 20px; height: 20px; }
.cc-title { font-weight: 650; font-size: 15px; color: var(--ink); letter-spacing: -.2px; }
.cc-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.cc-vehicle { display: flex; align-items: center; gap: 9px; margin: 16px 0 14px; font-size: 13px; color: var(--text-soft); }
.cc-vehicle .ic { width: 16px; height: 16px; color: var(--text-dim); }
.plate {
  font-weight: 700; letter-spacing: .6px; background: #fff; color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: 4px; padding: 2px 7px; font-size: 11.5px;
  box-shadow: inset 2px 0 0 var(--primary);
}

.mini-prog { display: flex; gap: 4px; margin-top: 2px; }
.mini-seg { height: 5px; flex: 1; border-radius: 3px; background: var(--surface-3); }
.mini-seg.done { background: var(--success); }
.mini-seg.active { background: var(--warning); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.cc-foot .more { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; }
.cc-foot .more .ic { width: 14px; height: 14px; }

/* ---------- Case detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 332px; gap: 24px; align-items: start; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 13.5px; font-weight: 500; margin-bottom: 18px; cursor: pointer; }
.back-link .ic { width: 16px; height: 16px; }
.back-link:hover { color: var(--primary); }

.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-head .tile { width: 46px; height: 46px; }
.detail-head .tile .ic { width: 23px; height: 23px; }

.vehicle-box { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.vehicle-box .tile { width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); }
.vehicle-box .vmeta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.vehicle-box .vmeta .ic { width: 14px; height: 14px; }
.case-desc { font-size: 14px; color: var(--text-soft); padding: 16px 2px 18px; line-height: 1.6; }

/* vodič „što očekivati" */
.guide { border: 1px solid #c5d8f2; background: var(--primary-soft); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 22px; }
.guide-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary-ink); margin-bottom: 7px; }
.guide-h .ic { width: 16px; height: 16px; color: var(--primary); }
.guide p { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.guide-docs { margin-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.guide-docs .gd-t { font-size: 12px; font-weight: 600; color: var(--text-faint); margin-right: 2px; }
.gd-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #c5d8f2; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 500; color: var(--primary); }
.gd-chip .ic { width: 13px; height: 13px; }

/* napomena o ishodu */
.oc-note { display: flex; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; }
.oc-note .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.oc-note.red { background: var(--danger-soft); color: #7a271a; } .oc-note.red .ic { color: var(--danger); }
.oc-note.blue { background: var(--primary-soft); color: var(--primary-ink); } .oc-note.blue .ic { color: var(--primary); }
.oc-note b { font-weight: 700; }

/* Tracks */
.track { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); }
.track.open { box-shadow: var(--shadow-sm); }
.track-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; transition: background .12s; }
.track-head:hover { background: var(--surface-2); }
.track-ic { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0; }
.track-ic .ic { width: 20px; height: 20px; }
.track-info { flex: 1; min-width: 0; }
.track-name { font-weight: 650; font-size: 14.5px; color: var(--ink); letter-spacing: -.1px; }
.track-status-txt { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-chevron { color: var(--text-dim); transition: transform .2s; }
.track-chevron .ic { width: 18px; height: 18px; }
.track.open .track-chevron { transform: rotate(90deg); }
.track-body { padding: 0 18px 0 72px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.track.open .track-body { max-height: 1000px; padding: 4px 18px 18px 72px; }

/* timeline */
.tl { list-style: none; border-left: 2px solid var(--border); padding-left: 18px; margin: 2px 0 14px; }
.tl li { position: relative; padding-bottom: 16px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -25px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.tl li.done::before { background: var(--success); border-color: var(--success); }
.tl li.active::before { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.tl .tl-when { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tl .tl-what { font-size: 13.5px; font-weight: 600; margin-top: 1px; color: var(--text); }
.tl .tl-note { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.5; }

.contact-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-soft); padding: 6px 0; }
.contact-line .ic { width: 15px; height: 15px; color: var(--text-dim); flex-shrink: 0; }
.contact-line b { color: var(--text); font-weight: 600; }
.track-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Sidebar */
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px; }
.side-card .eyebrow { margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.kv .k .ic { width: 15px; height: 15px; color: var(--text-dim); }
.kv .v { font-weight: 600; text-align: right; color: var(--text); }

/* pravna podrška (plaćeni partner) */
.legal-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px; border-left: 3px solid var(--primary); }
.legal-card .lc-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.legal-card .lc-ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.legal-card .lc-ic .ic { width: 19px; height: 19px; }
.legal-card .lc-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.legal-card .lc-tag { display: inline-block; font-size: 10px; font-weight: 600; color: var(--text-faint); background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-top: 3px; }
.legal-card p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; margin-bottom: 12px; }
.legal-card .lc-firm { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text); padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; }
.legal-card .lc-firm .ic { color: var(--text-dim); }
.legal-card .lc-note { font-size: 10.5px; color: var(--text-dim); margin-top: 10px; line-height: 1.45; }

.right-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.right-item:last-child { border-bottom: none; padding-bottom: 0; }
.right-item .tile { width: 32px; height: 32px; flex-shrink: 0; }
.right-item .tile .ic { width: 17px; height: 17px; }
.right-item .ri-t { font-size: 13px; font-weight: 650; color: var(--ink); }
.right-item .ri-d { font-size: 12px; color: var(--text-soft); margin-top: 2px; line-height: 1.45; }

.doc-item { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.doc-item .tile { width: 32px; height: 32px; }
.doc-item .tile .ic { width: 16px; height: 16px; }
.doc-item .dn { flex: 1; font-weight: 600; font-size: 12.5px; color: var(--text); }
.doc-item .ds { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.doc-item .dl { color: var(--text-dim); cursor: pointer; padding: 4px; border-radius: 5px; }
.doc-item .dl:hover { background: var(--surface-3); color: var(--primary); }

.op-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.op-label b { font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: -.4px; }
.op-bar { height: 8px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.op-fill { height: 100%; background: var(--primary); border-radius: 5px; transition: width .4s; }

/* dark help card */
.assist { background: var(--primary-ink); color: #fff; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.assist::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.05); }
.assist .a-ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 12px; }
.assist .a-ic .ic { width: 19px; height: 19px; }
.assist h4 { font-size: 14.5px; margin-bottom: 5px; font-weight: 650; }
.assist p { font-size: 12.5px; color: rgba(255,255,255,.72); margin-bottom: 14px; line-height: 1.55; }
.assist .btn { background: #fff; color: var(--primary-ink); }
.assist .btn:hover { background: #eef3fb; }

/* priloženi dokumenti po strani (track) */
.track-docs { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 12px; }
.tdoc { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.tdoc .tile { width: 26px; height: 26px; }
.tdoc .tile .ic { width: 14px; height: 14px; }
.tdoc .tn { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdoc .tsz { font-size: 11px; color: var(--text-dim); }
.tdoc .tx { color: var(--text-dim); cursor: pointer; padding: 3px; border-radius: 5px; display: grid; place-items: center; }
.tdoc .tx:hover { color: var(--danger); background: var(--danger-soft); }

/* AI chat panel */
.chat-panel { position: fixed; bottom: 20px; right: 20px; width: 384px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 96px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 65; display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--primary-ink); color: #fff; }
.chat-head .ava { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.chat-head .ava .ic { width: 19px; height: 19px; }
.chat-head .ct { font-size: 14px; font-weight: 700; }
.chat-head .cs { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 1px; }
.chat-head .x-btn { margin-left: auto; color: rgba(255,255,255,.8); }
.chat-head .x-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 13px; font-size: 13px; line-height: 1.5; }
.msg.bot { background: var(--surface); border: 1px solid var(--border); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.bot b { color: var(--ink); }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; background: var(--surface-2); }
.chat-chip { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border: 1px solid #c5d8f2; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.chat-chip:hover { background: #e1ecfa; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input input { flex: 1; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 13px; }
.chat-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat-send { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-send:hover { background: var(--primary-hover); }
.chat-send .ic { width: 18px; height: 18px; }
@media (max-width: 480px) { .chat-panel { right: 8px; bottom: 8px; height: calc(100vh - 80px); } }

/* ---------- Wizard ---------- */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; }
.step-pill { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); }
.step-pill.active { background: var(--primary-soft); color: var(--primary); border-color: #c5d8f2; }
.step-pill.done { color: var(--success); border-color: #abefc6; background: var(--success-soft); }
.step-pill .sn { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 10.5px; }
.step-pill .sn .ic { width: 12px; height: 12px; }
.step-pill.active .sn { background: var(--primary); color: #fff; }
.step-pill.done .sn { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 1.5px; background: var(--border); min-width: 10px; }

/* Moji podaci — forme */
.form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-head .tile { width: 40px; height: 40px; }
.form-head .tile .ic { width: 20px; height: 20px; }
.form-head .fh-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.form-head .fh-s { font-size: 12.5px; color: var(--text-faint); margin-top: 1px; }
.iddoc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.iddoc-row .tile { width: 36px; height: 36px; }
.iddoc-row .tile .ic { width: 18px; height: 18px; }
.idd-info { flex: 1; min-width: 0; }
.idd-label { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.idd-status { font-size: 12px; color: var(--text-faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.privacy { display: flex; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; color: var(--text-soft); line-height: 1.5; margin-top: 6px; }
.privacy .ic { color: var(--text-dim); flex-shrink: 0; margin-top: 1px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .14s, box-shadow .14s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-opt { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s; background: var(--surface); }
.type-opt:hover { border-color: #b9c0cc; }
.type-opt.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.type-opt .tile { width: 40px; height: 40px; }
.type-opt .ton { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.type-opt .tod { font-size: 12px; color: var(--text-dim); margin-top: 1px; }

.upload-zone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--text-faint); cursor: pointer; transition: border-color .14s, background .14s, color .14s; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upload-zone .uz-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 12px; color: var(--text-soft); }
.upload-zone:hover .uz-ic { background: #fff; color: var(--primary); }
.upload-zone .uz-ic .ic { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 9px; font-size: 12.5px; }
.chip .ic { width: 14px; height: 14px; color: var(--text-dim); }
.chip .cx { color: var(--text-dim); cursor: pointer; display: inline-flex; }
.chip .cx:hover { color: var(--danger); }

.callout { display: flex; gap: 11px; background: var(--primary-soft); border: 1px solid #c5d8f2; color: var(--primary-ink); padding: 13px 15px; border-radius: var(--radius); font-size: 12.5px; line-height: 1.55; margin-top: 16px; }
.callout .ic { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.summary-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-hero { background: var(--primary-ink); color: #fff; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 22px 22px; }
.login-hero > * { position: relative; }
.login-hero .logo-word { color: #fff; }
.login-hero .logo-word span { color: #7fa9e6; }
.login-hero .logo-mark { background: rgba(255,255,255,.14); }
.login-hero h1 { font-size: 32px; line-height: 1.18; font-weight: 700; letter-spacing: -.8px; margin-bottom: 14px; }
.login-hero .sub { font-size: 15px; color: rgba(255,255,255,.72); max-width: 400px; line-height: 1.55; }
.hero-feats { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.hero-feat { display: flex; align-items: center; gap: 13px; font-size: 14px; color: rgba(255,255,255,.92); }
.hero-feat .hf-ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.hero-feat .hf-ic .ic { width: 18px; height: 18px; }
.hero-foot { font-size: 12.5px; color: rgba(255,255,255,.5); }

.login-form-side { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 23px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.login-card .ls { color: var(--text-faint); font-size: 14px; margin: 5px 0 28px; }
.login-divider { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; margin: 18px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-note { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 18px; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 60; display: grid; place-items: center; padding: 20px; }
.overlay.hidden { display: none; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.97) translateY(4px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; font-weight: 650; color: var(--ink); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.x-btn { width: 30px; height: 30px; border-radius: var(--radius-xs); display: grid; place-items: center; color: var(--text-dim); }
.x-btn .ic { width: 18px; height: 18px; }
.x-btn:hover { background: var(--surface-3); color: var(--text); }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 64px 20px; color: var(--text-dim); }
.empty .e-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-faint); }
.empty .e-ic .ic { width: 26px; height: 26px; }
.empty .e-title { font-weight: 600; color: var(--text); font-size: 15px; }
.hidden { display: none !important; }
.flex { display: flex; } .center { align-items: center; } .gap12 { gap: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 80;
  display: flex; align-items: center; gap: 9px; animation: pop .18s ease;
}
.toast .ic { width: 16px; height: 16px; color: #75e0a7; }

@media (max-width: 920px) {
  .detail-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 560px) {
  .field-row, .type-grid { grid-template-columns: 1fr; }
  .container { padding: 24px 16px 56px; }
}
