/* Pametna korpa – izgled. Boje su tokeni; tamna tema ih samo redefiniše. */
:root {
  --bg: #f5f7f6; --card: #ffffff; --text: #111c19; --muted: #5f6f6a; --line: #e3e9e7; --line-strong: #cfd9d6;
  --brand: #0f766e; --brand-d: #0a5a54; --brand-soft: #e2f3f0; --on-brand: #ffffff; --accent: #f59e0b;
  --ok: #15803d; --ok-soft: #e5f6eb; --warn: #b45309; --warn-soft: #fdf2df; --err: #b91c1c; --err-soft: #fdeaea; --info: #1d4ed8; --info-soft: #e8f0fd;
  --r: 16px; --r-s: 10px; --btn-r: 11px; --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand-rgb: 15, 118, 110; --hdr-bg: color-mix(in srgb, var(--card) 86%, transparent); --hdr-text: var(--text); --grad: linear-gradient(135deg, var(--brand), var(--brand-d));
  --shadow: 0 1px 2px rgba(17, 28, 25, .05), 0 6px 20px rgba(17, 28, 25, .06);
  --shadow-l: 0 2px 6px rgba(17, 28, 25, .06), 0 22px 48px rgba(17, 28, 25, .13);
  --hero-grad: radial-gradient(1200px 420px at 85% -10%, #d6f0eb 0%, transparent 60%), radial-gradient(700px 300px at 0% 0%, #fdf0d6 0%, transparent 55%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]), :root[data-theme="teal"] { --bg: #0c1311; --card: #151f1c; --text: #e9f0ee; --muted: #93a5a0; --line: #24322e; --line-strong: #33453f;
    --brand: #2dd4bf; --brand-d: #5eead4; --brand-soft: #11312d; --on-brand: #04211d;
    --ok: #4ade80; --ok-soft: #122f1d; --warn: #fbbf24; --warn-soft: #33270f; --err: #f87171; --err-soft: #3a1717; --info: #93c5fd; --info-soft: #14233d;
    --shadow: none; --shadow-l: 0 20px 50px rgba(0, 0, 0, .5);
    --hero-grad: radial-gradient(1000px 400px at 85% -10%, #12332f 0%, transparent 60%); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: .2em 0 .6em; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.2rem; margin: 1.8em 0 .7em; letter-spacing: -.01em; }
h2.sec { font-size: 1.45rem; margin-top: 2.2em; }
h3 { font-size: 1.02rem; margin: 0 0 .5em; display: flex; align-items: center; gap: .45em; }
h3.country { margin: 1.2em 0 .5em; }
h1.tight { margin: 0 0 .15em; }
code { background: var(--line); padding: .1em .38em; border-radius: 6px; font-size: .88em; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 22px; padding-bottom: 72px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; color: inherit; } .grow:hover { text-decoration: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; } .row.end { justify-content: flex-end; }
.row > label { flex: 1; min-width: 150px; }
.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.between.pad { padding: 14px 18px; }

/* zaglavlje */
.top { background: var(--hdr-bg); color: var(--hdr-text); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.top-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.1rem; color: var(--hdr-text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; } .brand img { height: 32px; width: auto; display: block; }
.top-nav { display: flex; gap: 2px; flex: 1; }
.top-nav a { padding: 8px 13px; border-radius: 10px; color: var(--hdr-text); opacity: .72; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s; }
.top-nav a:hover { background: color-mix(in srgb, var(--hdr-text) 8%, transparent); opacity: 1; text-decoration: none; } .top-nav a.on { color: var(--brand); background: var(--brand-soft); opacity: 1; }
.top-user { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.menu { position: relative; } .menu summary { list-style: none; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.menu-box { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); padding: 8px; z-index: 50; }
.menu-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.menu-box > a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--text); font-weight: 550; }
.menu-box a:hover { background: var(--bg); text-decoration: none; } .menu-box a.on { background: var(--brand-soft); color: var(--brand); }
.menu-cur { display: flex; gap: 4px; padding: 2px 6px 6px; flex-wrap: wrap; } .menu-cur a { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; }

/* podnožje */
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 30px 0 26px; margin-top: 24px; }
.foot-in { display: flex; gap: 20px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; gap: 12px; align-items: center; } .foot-brand img { border-radius: 9px; }
.foot-nav, .foot-lang { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .93rem; } .foot-nav a { color: var(--text); font-weight: 550; }
.foot-lang a { color: var(--muted); } .foot-lang a.on { color: var(--brand); font-weight: 700; }
.foot-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tabbar { display: none; }

/* dugmad i polja */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: var(--btn-r); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { text-decoration: none; border-color: var(--muted); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(var(--brand-rgb), .25), 0 6px 16px rgba(var(--brand-rgb), .22); }
.btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.ghost { background: transparent; border-color: var(--line); } .btn.ghost:hover { background: var(--bg); }
.btn.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); box-shadow: none; }
.btn.danger { color: var(--err); border-color: transparent; background: var(--err-soft); }
.btn.small { padding: 7px 11px; font-size: .88rem; border-radius: calc(var(--btn-r) - 2px); box-shadow: none; } .btn.big { padding: 14px 22px; font-size: 1.05rem; border-radius: calc(var(--btn-r) + 2px); }
.btn.block { width: 100%; margin-top: 10px; } .btn:disabled { opacity: .6; }
.btn.google b { color: #4285f4; font-size: 1.1em; }
label { display: block; font-size: .86rem; font-weight: 650; color: var(--muted); margin: 12px 0; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; } label.inline select { width: auto; margin: 0; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--text); font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--btn-r); padding: 11px 13px; margin-top: 5px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); box-shadow: none; flex: none; }
input:disabled { opacity: .65; }
.hp { position: absolute; left: -9999px; }

/* kartice, liste */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
details.card summary { cursor: pointer; font-weight: 650; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-size: .95rem; background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.alert.err { background: var(--err-soft); color: var(--err); } .alert.info { background: var(--info-soft); color: var(--info); } .alert a { color: inherit; text-decoration: underline; }
.badge { display: inline-block; font-size: .7rem; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; transition: background .12s; }
.list-row:first-child { border-top: 0; } a.list-row:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); text-decoration: none; }
.list-row > div:first-child { min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .tbl tfoot td { background: var(--bg); }
.big-num { font-size: 1.8rem; font-weight: 780; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .grid3 .card, .grid2 .card { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* početna */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 46px 34px; margin: 4px 0 18px; border-radius: 26px; background: var(--hero-grad), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; margin: .45em 0 .4em; letter-spacing: -.035em; font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin: 0 0 8px; }
.ticks { display: flex; gap: 8px 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 0; font-size: .92rem; font-weight: 600; color: var(--muted); } .ticks .ic { color: var(--ok); }
.hero-art { position: relative; min-height: 460px; }
.mock-receipt { position: absolute; left: 4%; top: 0; width: 58%; background: #fffdf7; color: #2a2a26; border-radius: 6px 6px 0 0; padding: 18px 16px 26px; font: 600 12px/1.5 ui-monospace, Consolas, monospace; box-shadow: var(--shadow-l); transform: rotate(-4deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x; }
.mr-head { text-align: center; border-bottom: 1px dashed #b9b6a8; padding-bottom: 8px; margin-bottom: 8px; } .mr-head b { display: block; font-size: 14px; letter-spacing: .12em; } .mr-head span { opacity: .6; font-weight: 500; }
.mr-line, .mr-total { display: flex; justify-content: space-between; gap: 8px; } .mr-total { border-top: 1px dashed #b9b6a8; margin-top: 8px; padding-top: 8px; font-size: 15px; font-weight: 800; }
.mr-scan { position: absolute; left: 0; right: 0; height: 34px; top: 20%; background: linear-gradient(to bottom, transparent, rgba(var(--brand-rgb), .22), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12%; } 50% { top: 70%; } }
.mock-card { position: absolute; right: 0; bottom: 0; width: 62%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-l); }
.mc-title { display: flex; gap: 8px; align-items: center; font-weight: 750; margin-bottom: 10px; } .mc-title .ic { color: var(--brand); }
.mc-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); margin-top: 6px; font-weight: 600; }
.mc-row small { display: block; color: var(--muted); font-weight: 500; } .mc-row.best { border-color: var(--brand); background: var(--brand-soft); }
.mc-save { margin-top: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .85rem; border-radius: 9px; padding: 6px 10px; text-align: center; }
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.band div { background: var(--card); padding: 18px; text-align: center; } .band b { display: block; font-size: 1.7rem; letter-spacing: -.02em; color: var(--brand); } .band span { color: var(--muted); font-size: .88rem; }
.step { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; } .step .ic { width: 24px; height: 24px; }
.steps .card { transition: transform .15s, box-shadow .15s; } .steps .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.feat { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.feat > .ic { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; } .feat h3 { margin-bottom: .25em; } .feat p { margin: 0; font-size: .95rem; }
.cta { display: flex; align-items: center; gap: 16px; background: var(--grad); color: var(--on-brand); border-radius: 20px; padding: 22px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(var(--brand-rgb), .28); transition: transform .12s; }
.cta:hover { text-decoration: none; transform: translateY(-2px); } .cta .ic { width: 38px; height: 38px; } .cta b { display: block; font-size: 1.2rem; } .cta span { opacity: .88; font-size: .92rem; }
.stat { display: flex; flex-direction: column; color: inherit; gap: 2px; transition: border-color .15s, transform .12s; } .stat:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.stat b { font-size: 1.5rem; letter-spacing: -.02em; } .stat b.sm { font-size: 1rem; }

/* prijava */
.auth-wrap { display: grid; place-items: start center; padding: 28px 0; } .auth-card { width: 100%; max-width: 420px; padding: 26px; }
.auth-card h1 { margin-top: 0; }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px 0 4px; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); } .or span { background: var(--card); padding: 0 10px; position: relative; }

/* slikanje */
.upload { text-align: center; border-style: dashed; border-width: 2px; border-color: var(--line-strong); } .upload-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 30px 0; }
.previews { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.preview { position: relative; width: 116px; height: 168px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.preview img { width: 100%; height: 100%; object-fit: cover; } .preview span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; padding: 0 8px; font-size: .8rem; }
.preview button { position: absolute; right: 5px; top: 5px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.upload-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.busy { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 0; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .mr-scan, .pulse { animation: none; } html { scroll-behavior: auto; } }
.tips ul { margin: 0; padding-left: 20px; } .tips li { margin: 5px 0; }
.receipt-imgs { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .receipt-imgs img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* ispravka računa */
.edit-row { display: grid; grid-template-columns: 1fr 74px 96px 44px; gap: 6px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.edit-row input { margin: 0; padding: 9px 10px; } .edit-row .e-qty, .edit-row .e-price { text-align: right; }
.e-del { margin: 0; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--err); cursor: pointer; } .e-raw { grid-column: 1 / -1; }
.edit-row.deleted input:not([type=checkbox]) { opacity: .4; text-decoration: line-through; }
.sum-line { align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* pretraga */
.search { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; } .search input[type=search] { flex: 1; min-width: 180px; margin: 0; } .search select { width: auto; margin: 0; } .search .check { width: 100%; font-size: .9rem; }

/* korpa */
.add-item { display: flex; gap: 8px; margin: 14px 0; } .ac { position: relative; flex: 1; } .ac input { margin: 0; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); z-index: 15; overflow: hidden; max-height: 320px; overflow-y: auto; }
.ac-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 15px; font: inherit; color: var(--text); cursor: pointer; }
.ac-item:first-child { border-top: 0; } .ac-item:hover, .ac-item:focus { background: var(--bg); }
.b-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); } .b-row:first-child { border-top: 0; }
.b-row.done b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.chk { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-strong); background: var(--card); color: #fff; cursor: pointer; font-weight: 800; display: grid; place-items: center; padding: 0; }
.b-row.done .chk { background: var(--ok); border-color: var(--ok); }
.qty { display: flex; align-items: center; gap: 5px; } .qty input { width: 60px; text-align: right; margin: 0; padding: 7px 8px; }
.x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px; } .x:hover { color: var(--err); }
.loc { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; } .loc .row { margin: 0; }
.plan { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .plan h3 { margin: 8px 0 0; font-size: 1.12rem; } .plan .btn { margin-top: 8px; }
.cover { font-size: .88rem; font-weight: 650; color: var(--warn); } .cover.full { color: var(--ok); }
.save { background: var(--ok-soft); color: var(--ok); font-weight: 700; border-radius: 9px; padding: 4px 10px; font-size: .9rem; }

/* grafikoni */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; overflow-x: auto; padding-top: 18px; }
.bar { flex: 1; min-width: 38px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; color: var(--muted); font-size: .72rem; }
.bar:hover { text-decoration: none; } .bar-fill { width: 100%; max-width: 46px; background: var(--brand-soft); border-radius: 7px 7px 2px 2px; border-bottom: 3px solid var(--brand); transition: background .15s; }
.bar.on .bar-fill, .bar:hover .bar-fill { background: var(--brand); } .bar-val { font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: minmax(80px, 150px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .93rem; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar-track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; } .hbar-track span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.map { height: 320px; border-radius: 14px; border: 1px solid var(--line); margin: 10px 0 14px; z-index: 1; }

/* administracija */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; } .admin-nav a { padding: 8px 13px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.admin-nav a.on { background: var(--brand-soft); color: var(--brand); } .admin-nav a:hover { background: var(--card); text-decoration: none; }
.scroll-x { overflow-x: auto; } .tbl form { display: inline; } .tbl input, .tbl select { margin: 0; padding: 6px 8px; min-width: 90px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; padding: 6px 16px 14px; } legend { font-weight: 700; padding: 0 6px; }

/* statistika posjeta */
.pad { padding: 14px 18px 4px; } .pad h3 { margin: 0; }
.live { display: flex; align-items: center; gap: 14px 34px; flex-wrap: wrap; } .live .row { margin: 0 0 0 auto; }
.live-num { display: flex; align-items: center; gap: 10px; line-height: 1.25; font-size: .92rem; } .live-num b { font-size: 2.1rem; letter-spacing: -.02em; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.grid3.four { grid-template-columns: repeat(4, 1fr); margin: 12px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; } .hero-art { min-height: 390px; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; } .main { padding-bottom: 104px; }
  .top-in { height: 58px; gap: 10px; } .top-nav { display: none; } .hide-s { display: none; } .brand img { height: 28px; }
  .grid3, .grid2 { grid-template-columns: 1fr; } .grid3.tight { grid-template-columns: 1fr 1fr; } .grid3.tight .card:last-child { grid-column: 1 / -1; }
  .grid3.four { grid-template-columns: 1fr 1fr; } .band { grid-template-columns: 1fr 1fr; }
  .wrap-s > label { min-width: 100%; }
  .foot { padding-bottom: 96px; } .foot-in { flex-direction: column; align-items: flex-start; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; font-size: .68rem; font-weight: 650; color: var(--muted); border-radius: 10px; }
  .tabbar a:hover { text-decoration: none; } .tabbar a.on { color: var(--brand); } .tabbar .ic { width: 23px; height: 23px; }
  .tabbar a.fab .ic { background: var(--grad); color: var(--on-brand); border-radius: 50%; width: 48px; height: 48px; padding: 12px; margin-top: -22px; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .45); }
  .tbl th, .tbl td { padding: 10px 12px; }
  .edit-row { grid-template-columns: 1fr 1fr 44px; } .edit-row .e-name { grid-column: 1 / -1; }
  .add-item .btn { padding: 10px 13px; } .list-row { padding: 13px 14px; }
}

/* ===== početna, 2. verzija: sekcije ===== */
.sec { margin-top: 64px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 28px; } .sec-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); line-height: 1.15; letter-spacing: -.025em; margin: .5em 0 0; font-weight: 780; }
.sec-head.left { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: none; text-align: left; margin-bottom: 16px; } .sec-head.left h2 { margin: 0; font-size: 1.35rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin: .5em 0 1.2em; }
.band { margin-top: 18px; }

/* koraci s linijom koja ih povezuje */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; counter-reset: none; }
.flow::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 50px; border-top: 2px dashed var(--line-strong); z-index: 0; }
.flow li { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); text-align: center; transition: transform .15s, box-shadow .15s; }
.flow li:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.flow-n { position: absolute; top: 14px; left: 16px; font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.flow-ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); box-shadow: 0 8px 20px rgba(var(--brand-rgb), .28); }
.flow-ic .ic { width: 28px; height: 28px; } .flow h3 { justify-content: center; font-size: 1.1rem; } .flow p { margin: 0; color: var(--muted); font-size: .96rem; }

/* dvije kolone: tekst + primjer */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 40px; box-shadow: var(--shadow); }
.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.025em; margin: .5em 0 0; font-weight: 780; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; } .checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-top: 1px; } .checks b { display: block; } .checks span { color: var(--muted); font-size: .94rem; }
.split-art { display: grid; gap: 14px; }
.demo-plan { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; } .demo-plan.hi { background: var(--card); border-color: var(--brand); box-shadow: var(--shadow-l); }
.dp-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; } .dp-row span { color: var(--muted); font-size: .88rem; }
.dp-sum { font-size: 1.7rem; font-weight: 780; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { transition: transform .15s, border-color .15s; } .feat:hover { transform: translateY(-2px); border-color: var(--brand); }
.feat > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: var(--brand-soft); margin: 0; }

/* pločice sa zadnjim cijenama */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: inherit; box-shadow: var(--shadow); transition: transform .12s, border-color .15s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.tile-name { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tile-price { font-size: 1.25rem; font-weight: 780; letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; } .tile-price .muted { font-weight: 500; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); } .faq p { margin: 0 0 16px; color: var(--muted); }

.cta-band { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 38px 40px; border-radius: 26px; color: var(--on-brand);
  background: radial-gradient(600px 240px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), var(--grad); box-shadow: 0 18px 44px rgba(var(--brand-rgb), .3); }
.cta-band h2 { margin: 0 0 .25em; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; } .cta-band p { margin: 0; opacity: .9; }
.btn.light { background: #fff; color: var(--brand-d); border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); } .btn.light:hover { background: #f1fbf9; border-color: #f1fbf9; }
.hello h1 { margin: 0 0 .5em; }

/* ===== mobilni prikaz, 2. verzija ===== */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.5rem; } .wrap { padding: 0 14px; } .main { padding-top: 14px; }
  .top-in { height: 56px; } .top-user .btn.primary { padding: 8px 12px; } .menu-box { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; }
  .card, .list, .feat, .tile, .flow li { border-radius: 18px; }
  .hero { padding: 26px 20px 22px; border-radius: 22px; gap: 18px; margin-top: 0; }
  .hero h1 { font-size: 2.05rem; } .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; } .hero-cta .btn { width: 100%; }
  .ticks { gap: 6px 14px; font-size: .86rem; }
  /* na mobitelu ilustracija je jedna kartica u toku stranice (bez preklapanja i fiksne visine) */
  .hero-art { min-height: 0; max-width: none; } .mock-receipt { display: none; } .mock-card { position: static; width: 100%; box-shadow: var(--shadow); }
  .band b { font-size: 1.4rem; } .band div { padding: 14px 8px; }
  .sec { margin-top: 44px; } .sec-head { margin-bottom: 20px; } .sec-head h2 { font-size: 1.45rem; }
  .flow { grid-template-columns: 1fr; gap: 12px; } .flow::before { display: none; }
  .flow li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: left; padding: 16px; align-items: start; }
  .flow-ic { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; border-radius: 16px; } .flow-n { left: auto; right: 14px; top: 12px; }
  .flow h3 { justify-content: flex-start; margin: 2px 0 2px; } .flow p { grid-column: 2; font-size: .93rem; }
  .split { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; border-radius: 22px; }
  .feats { grid-template-columns: 1fr; gap: 10px; } .feat { padding: 15px; }
  /* zadnje cijene: vodoravno klizanje s "hvatanjem" kartica */
  .tiles { display: flex; overflow-x: auto; gap: 10px; margin: 0 -14px; padding: 4px 14px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; } .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 72%; scroll-snap-align: start; }
  .cta-band { margin-top: 44px; padding: 26px 22px; border-radius: 22px; flex-direction: column; align-items: stretch; text-align: center; } .cta-band .btn { width: 100%; }
  .btn { min-height: 44px; } .btn.small { min-height: 36px; }
  .list-row { min-height: 60px; } .search input[type=search], .search select, .search .btn { flex: 1 1 100%; width: 100%; }
  .between > .right { text-align: left; } .big-num { font-size: 1.55rem; }
  .plan { padding: 16px; } .auth-wrap { padding: 12px 0; } .auth-card { padding: 22px 18px; }
  .foot { margin-top: 36px; }
  .tabbar { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(17, 28, 25, .08); }
  .tabbar a { border-radius: 14px; padding: 7px 2px 5px; transition: color .15s, background .15s; } .tabbar a.on:not(.fab) { background: var(--brand-soft); }
}
@media (max-width: 400px) { .hero h1 { font-size: 1.8rem; } .grid3.tight { grid-template-columns: 1fr; } .tile { flex-basis: 82%; } }

/* ===== početna, 3. verzija: telefon-ilustracija, kontrolna ploča, mapa ===== */
.phone { width: 300px; margin: 0 auto; background: #0f1a17; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(17, 28, 25, .3), inset 0 0 0 2px #2c3a36; transform: rotate(-3deg); }
.phone-top { height: 22px; display: grid; place-items: center; } .phone-top span { width: 90px; height: 7px; border-radius: 99px; background: #2c3a36; }
.phone-screen { background: var(--bg); border-radius: 28px; padding: 14px; display: grid; gap: 8px; }
.ps-head { display: flex; align-items: center; gap: 8px; font-size: .95rem; padding: 2px 4px 6px; } .ps-head .ic { color: var(--brand); }
.phone .mock-receipt { position: relative; left: 0; width: 100%; transform: none; padding: 12px 12px 18px; font-size: 11px; margin-bottom: 2px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .dash-head h1 { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; max-width: 100%; }
.chip:hover { text-decoration: none; border-color: var(--brand); } .chip .ic { color: var(--brand); }
.scan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.scan-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; padding: 0; }
.scan-main { display: flex; align-items: center; gap: 16px; text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--on-brand); padding: 18px 20px; border-radius: 16px;
  background: var(--grad); box-shadow: 0 10px 28px rgba(var(--brand-rgb), .3); transition: transform .12s, box-shadow .15s; }
.scan-main:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--brand-rgb), .36); } .scan-main:active { transform: translateY(0); }
.scan-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; } .scan-ic .ic { width: 28px; height: 28px; }
.scan-main b { display: block; font-size: 1.25rem; letter-spacing: -.01em; } .scan-main small { opacity: .88; font-size: .9rem; }
.scan .previews { margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: inherit; box-shadow: var(--shadow); position: relative; transition: transform .12s, border-color .15s; }
.kpi:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); } .kpi b { font-size: 1.55rem; letter-spacing: -.02em; }
.kpi-ic { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; } .kpi-ic .ic { width: 18px; height: 18px; }
.warn-text { color: var(--warn); font-weight: 650; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: .88rem; }
.quick a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); } .quick .ic { width: 24px; height: 24px; color: var(--brand); }
.sec.tight-top { margin-top: 36px; }
.card.first { display: flex; gap: 14px; align-items: center; } .card.first .step { margin: 0; flex: none; }
.page-head { align-items: center; } .page-head h1 { margin: 0; } .search.compact { margin: 0; } .search.compact select { min-width: 200px; }
.map-card { margin-bottom: 14px; } .map.big { height: 420px; margin: 0; border: 0; border-radius: 0; } .map-card .map { margin: 0; border: 0; border-radius: 0; }
.map-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 10px 16px; font-size: .84rem; border-top: 1px solid var(--line); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; } .map-legend .muted { margin-left: auto; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.dot.precise { background: var(--brand); } .dot.approx { background: #f59e0b; } .dot.me { background: #1d4ed8; }
.pin-wrap { background: none; border: 0; } .leaflet-popup-content { font: 14px/1.45 var(--font); margin: 12px 14px; } .leaflet-popup-content-wrapper { border-radius: 12px; }
@media (max-width: 860px) { .phone { width: 260px; } }
@media (max-width: 760px) {
  .hero-art { display: block; min-height: 0; } .phone { width: min(280px, 82%); transform: none; margin-top: 4px; } .phone .mock-receipt { display: block; }
  .scan-btns { grid-template-columns: 1fr; } .scan-main { padding: 16px; } .scan-main b { font-size: 1.12rem; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:first-child { grid-column: 1 / -1; } .kpi b { font-size: 1.35rem; }
  .quick { gap: 8px; } .quick a { padding: 12px 4px; font-size: .8rem; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-head { flex-direction: column; align-items: stretch; } .search.compact select { width: 100%; }
  .map.big { height: 300px; } .map-legend { padding: 8px 12px; gap: 6px 12px; font-size: .78rem; } .map-legend .muted { margin-left: 0; width: 100%; }
}
.gm-pop { font: 14px/1.45 var(--font); color: #111c19; padding: 4px 2px; } .gm-pop .muted { color: #5f6f6a; }

.search-row { margin: 4px 0 0; } .search-row input { flex: 1; margin: 0; } .search-row .btn { flex: none; }

/* skener barkoda i proizvod */
.scanner { text-align: center; } .center-row { justify-content: center; }
.scan-view { position: relative; max-width: 480px; margin: 0 auto 12px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 12%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: scanline 1.6s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 20%; } 50% { top: 80%; } }
.compact-search { max-width: 480px; margin: 12px auto 0; } .compact-search input { flex: 1; }
.product { display: flex; gap: 18px; align-items: flex-start; } .product-img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.product-main { min-width: 0; flex: 1; } .product h2.tight { margin: 0 0 .2em; font-size: 1.35rem; } .badges { margin: 8px 0 6px; }
.score { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 750; background: var(--line); }
.ns-a { background: #038141; color: #fff; } .ns-b { background: #85bb2f; color: #fff; } .ns-c { background: #fecb02; color: #222; } .ns-d { background: #ee8100; color: #fff; } .ns-e { background: #e63e11; color: #fff; }
.nova { background: var(--brand-soft); color: var(--brand); } .eco { background: var(--ok-soft); color: var(--ok); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
@media (max-width: 760px) { .product { flex-direction: column; } .product-img { width: 100%; height: 180px; } .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }
/* ilustrovane akcije: račun + barkod */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.act { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.act:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-l); }
.act-text { min-width: 0; flex: 1; } .act-text h3 { font-size: 1.2rem; margin: 0 0 .3em; } .act-text p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; } .act-text .btn { pointer-events: none; }
.ill { position: relative; flex: none; width: 150px; height: 150px; border-radius: 18px; background: var(--brand-soft); overflow: hidden; display: grid; place-items: center; }
.ill-cam { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(var(--brand-rgb), .35); } .ill-cam .ic { width: 18px; height: 18px; }
.ir { width: 96px; background: #fffdf7; color: #2a2a26; border-radius: 4px 4px 0 0; padding: 9px 8px 12px; font: 600 7px/1.45 ui-monospace, Consolas, monospace; box-shadow: 0 10px 24px rgba(17, 28, 25, .18); transform: rotate(-6deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x; }
.ir-head { text-align: center; border-bottom: 1px dashed #b9b6a8; padding-bottom: 4px; margin-bottom: 4px; } .ir-head b { display: block; font-size: 8px; letter-spacing: .1em; } .ir-head span { opacity: .6; font-weight: 500; }
.ir-line, .ir-total { display: flex; justify-content: space-between; } .ir-total { border-top: 1px dashed #b9b6a8; margin-top: 4px; padding-top: 4px; font-size: 8px; font-weight: 800; }
.ill-scan { position: absolute; left: 12px; right: 12px; height: 22px; top: 20%; background: linear-gradient(to bottom, transparent, rgba(var(--brand-rgb), .3), transparent); animation: scan 3s ease-in-out infinite; }
.ib { width: 104px; background: #fff; border-radius: 8px; padding: 12px 10px 8px; box-shadow: 0 10px 24px rgba(17, 28, 25, .18); transform: rotate(4deg); }
.ib-bars { height: 46px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px, #111 13px 14px, transparent 14px 17px); }
.ib-num { font: 600 8px/1 ui-monospace, Consolas, monospace; color: #222; text-align: center; margin-top: 5px; letter-spacing: .04em; }
.ill-laser { position: absolute; left: 18px; right: 18px; height: 2px; top: 50%; background: #ef4444; box-shadow: 0 0 10px 2px rgba(239, 68, 68, .7); animation: laser 1.6s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 34%; } 50% { top: 66%; } }
.dash-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; } .dash-actions .scan { margin: 0; }
.act.small { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; gap: 10px; } .act.small .ill { width: 100%; height: 120px; } .act.small .act-text p { margin: 0; font-size: .86rem; }
@media (prefers-reduced-motion: reduce) { .ill-scan, .ill-laser { animation: none; } }
@media (max-width: 760px) {
  .actions { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; } .act { padding: 14px; gap: 14px; } .ill { width: 110px; height: 110px; border-radius: 14px; } .ir { width: 72px; font-size: 5.5px; } .ib { width: 78px; } .ib-bars { height: 34px; } .ill-cam { width: 30px; height: 30px; right: 6px; bottom: 6px; }
  .act-text h3 { font-size: 1.05rem; } .act-text p { font-size: .85rem; margin-bottom: 8px; } .act-text .btn { padding: 8px 12px; font-size: .88rem; }
  .dash-actions { grid-template-columns: 1fr; } .act.small { flex-direction: row; text-align: left; align-items: center; } .act.small .ill { width: 96px; height: 96px; }
}/* akcije odmah ispod zaglavlja (gost): bez gornjeg razmaka, uvod ide ispod */
.actions.first { margin-top: 0; } .actions.first + .hero { margin-top: 18px; }

.origin { display: flex; gap: 16px; align-items: center; border-left: 4px solid var(--brand); }
.origin-flag { font-size: 44px; line-height: 1; flex: none; width: 56px; text-align: center; } .origin-name { font-size: 1.25rem; display: block; margin: 2px 0; }
.origin-flag img { width: 80px; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: block; } .origin-flag { width: 80px; }

.city-pick { position: relative; display: grid; gap: 8px; } .city-pick input { margin-top: 0; }
.city-list { position: absolute; z-index: 30; top: calc(100% - 30px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--btn-r); box-shadow: 0 12px 32px rgba(0,0,0,.14); overflow: hidden; max-height: 300px; overflow-y: auto; }
.city-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--line); } .city-list button:hover, .city-list button:focus { background: rgba(var(--brand-rgb), .08); outline: none; }
.city-list button span { display: grid; } .city-list button small { color: var(--muted); font-size: .8rem; } .city-list button .flag { flex: none; }
.city-att, .city-none { padding: 6px 12px; font-size: .75rem; color: var(--muted); }
.city-pick .city-info { margin-top: -2px; }
.nick-row { display: flex; gap: 8px; align-items: stretch; } .nick-row input { margin: 0; flex: 1; } .hp { position: absolute; left: -9999px; }
.city-info { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); min-height: 22px; } .city-info:empty { display: none; } .flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -3px; }
.loc-chip { gap: 8px; } .loc-chip .muted { font-weight: 500; }

.brand .logo-img { height: 36px; width: auto; max-width: min(56vw, 260px); object-fit: contain; }
@media (max-width: 720px) { .brand .logo-img { height: 30px; } }
.logo-box { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; } .logo-box .sample { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px; background: var(--hdr-bg); color: var(--hdr-text); min-height: 60px; } .logo-box .sample img, .logo-box .sample .logo { height: 36px; width: auto; }

.user-menu .menu-box { width: 250px; }
.menu-who { display: grid; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .menu-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-box > a { gap: 10px; justify-content: flex-start; } .menu-box > a .ic { width: 18px; height: 18px; color: var(--muted); } .menu-box > a.on .ic { color: var(--brand); }
.menu-out { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .menu-out button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; font-weight: 550; color: var(--err); border-radius: 9px; cursor: pointer; } .menu-out button:hover { background: var(--bg); } .menu-out .ic { width: 18px; height: 18px; }
.menu-note { padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 6px; line-height: 1.4; }
.install { display: grid; gap: 16px; } .install-hero { display: flex; gap: 18px; align-items: flex-start; } .install-hero h1 { margin: 0 0 6px; font-size: 1.5rem; } .install-icon { border-radius: 18px; flex: none; box-shadow: var(--shadow-l); }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .install-grid h3 { display: flex; align-items: center; gap: 10px; }
.os-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 700; }
.steps { margin: 8px 0 8px; padding-left: 22px; display: grid; gap: 8px; } .steps li::marker { color: var(--brand); font-weight: 700; }
@media (max-width: 720px) { .install-grid { grid-template-columns: 1fr; } .install-hero { flex-direction: column; align-items: center; text-align: center; } }

.inst-banner { position: fixed; left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.22); transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.inst-banner.show { transform: none; opacity: 1; } .inst-banner img { border-radius: 12px; flex: none; }
.inst-txt { display: grid; gap: 2px; flex: 1; min-width: 0; } .inst-txt b { font-size: .95rem; } .inst-txt span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.inst-go { flex: none; } .inst-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; } .inst-x:hover { background: var(--bg); }
body:not(:has(.tabbar)) .inst-banner, .inst-banner.no-tab { bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .inst-banner { left: auto; right: 16px; bottom: 16px; max-width: 420px; } }

.ad { position: relative; margin: 14px 0; text-align: center; } .ad-tag { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.ad img { max-width: 100%; height: auto; border-radius: 12px; display: inline-block; } .ad ins.adsbygoogle { display: block; }
.ad-top { margin-top: 0; } .ad-list { margin: 6px 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ad-bottom { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 29; margin: 0; padding: 4px 36px 6px 8px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.ad-bottom img { max-height: 90px; border-radius: 8px; } .ad-bottom .ad-tag { position: absolute; left: 8px; top: 3px; margin: 0; }
.ad-bottom .ad-x { position: absolute; right: 2px; top: 2px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; } .ad-bottom .ad-x:hover { background: var(--bg); }
body.has-adbottom .main { padding-bottom: 120px; } body.has-adbottom .inst-banner { bottom: calc(180px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .ad-bottom { bottom: 0; } }

.ad-card { --adc: #0f766e; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--adc) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--adc) 30%, transparent); color: var(--text); text-decoration: none; }
a.ad-card:hover { text-decoration: none; border-color: var(--adc); } .ad-card-img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.ad-card-txt { display: grid; gap: 2px; flex: 1; min-width: 0; } .ad-card-txt b { font-size: .98rem; line-height: 1.25; } .ad-card-txt small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.ad-card-btn { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--adc); color: #fff; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ad-bottom .ad-card { padding: 8px 10px; } .ad-bottom .ad-card-btn { padding: 6px 12px; }
.ad-wait { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 480px) { .ad-card { flex-wrap: wrap; } .ad-card-btn { margin-left: auto; } }

.need { margin-bottom: 12px; } .need h3 { margin: 0; display: flex; align-items: center; gap: 8px; } .need .add-item { margin: 12px 0 6px; } .need p { margin: 0; }
.ac-item.sel { background: var(--brand-soft); } .ac-own { border-top: 1px dashed var(--line) !important; color: var(--brand); }
