/* Sve Za Majstore — klub · boje sajta: navy #324366, narandžasta #f75239, tekst #222529 */
:root {
  --navy: #324366; --navy-2: #26344f; --orange: #f75239; --orange-2: #d9422c;
  --txt: #222529; --muted: #6b7280; --line: #e5e7eb; --bg: #f4f5f7; --card: #ffffff;
  --ok: #1a8a4a; --warn: #b45309; --err: #b91c1c;
  --silver: #7d8aa3; --gold: #c9961a;
  --r: 14px; --nav-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
[v-cloak] { display: none; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; } .right { text-align: right; } .nowrap { white-space: nowrap; }

/* ---------- okvir ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line);
  padding: calc(8px + var(--sat)) 16px 8px; display: flex; align-items: center; gap: 10px; min-height: 52px; }
.top img.logo { height: 26px; width: auto; }
.top .title { font-weight: 700; color: var(--navy); font-size: 17px; flex: 1; }
.top .back { background: none; border: 0; padding: 6px 8px 6px 0; color: var(--navy); font-weight: 600; font-size: 15px; }
.page { padding: 16px 16px calc(var(--nav-h) + var(--sab) + 16px); max-width: 560px; margin: 0 auto; }
.page.noline { padding-bottom: 24px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 2px rgba(20,30,50,.06); margin-bottom: 12px; }
.card.tight { padding: 12px 14px; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--card); border-top: 1px solid var(--line);
  display: flex; height: calc(var(--nav-h) + var(--sab)); padding-bottom: var(--sab); }
nav.tabs button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 6px 0; }
nav.tabs button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
nav.tabs button.on { color: var(--orange); }

/* ---------- forme ---------- */
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
.in { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 12px; background: #fff; font-size: 16px; outline: none; }
.in:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50,67,102,.15); }
.in.big { font-size: 24px; letter-spacing: 6px; text-align: center; font-weight: 700; }
select.in { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px;
  font-weight: 700; font-size: 16px; background: var(--orange); color: #fff; cursor: pointer; }
.btn:active { background: var(--orange-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: #eef0f4; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid #d1d5db; }
.btn.danger { background: #fff; color: var(--err); border: 1px solid #fecaca; }
.btn.sm { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--orange); }
.seg { display: flex; background: #eef0f4; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px 4px; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.msg.err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.msg.ok { background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0; }
.msg.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 30px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- kartica ---------- */
.kartica { background: #fff; border-radius: 18px; padding: 18px 14px 14px; text-align: center; box-shadow: 0 6px 24px rgba(20,30,50,.12); position: relative; overflow: hidden; }
.kartica::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--orange), var(--navy)); }
.kartica .ime { font-weight: 700; font-size: 18px; color: var(--navy); margin-top: 6px; }
.kartica svg.bc { width: 100%; max-width: 420px; height: auto; display: block; margin: 8px auto 0; }
.kartica .sifra { font-size: 34px; font-weight: 800; letter-spacing: 4px; color: var(--txt); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kartica .qr { width: 132px; height: 132px; margin: 8px auto 0; }
.kartica .qr svg { width: 100%; height: 100%; display: block; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px; background: var(--navy); }
.badge.SILVER { background: var(--silver); } .badge.GOLD { background: var(--gold); }
.fs { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.fs svg.bc { width: 100%; max-width: 640px; height: auto; }
.fs .sifra { font-size: 44px; font-weight: 800; letter-spacing: 6px; }
.fs .zatvori { position: absolute; top: calc(12px + var(--sat)); right: 12px; }

/* ---------- nivo ---------- */
.bar { height: 12px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb199); border-radius: 6px; }
.nivoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.nivoi div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.nivoi div.on { border-color: var(--orange); background: #fff7f5; }
.nivoi b { display: block; font-size: 20px; }
.nivoi .small { display: block; }

/* ---------- liste ---------- */
.lista .st { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lista .st:last-child { border-bottom: 0; }
.lista .st .l { flex: 1; min-width: 0; }
.lista .st .naslov { font-weight: 600; }
.lista .st .iznos { font-weight: 700; white-space: nowrap; }
.stavke { margin: 6px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); font-size: 14px; }
.stavke div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.link { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); color: var(--txt); text-decoration: none; width: 100%; border: 0; text-align: left; font-size: 16px; }
.link:first-child { border-radius: var(--r) var(--r) 0 0; } .link:last-child { border-radius: 0 0 var(--r) var(--r); border-bottom: 0; }
.link .chev { margin-left: auto; color: #9ca3af; }
.grupa { border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(20,30,50,.06); margin-bottom: 12px; }
.pravni h2 { margin-top: 18px; font-size: 17px; }
.pravni ol { padding-left: 20px; } .pravni li { margin-bottom: 8px; } .pravni p { margin-bottom: 10px; }
.spin { width: 22px; height: 22px; border: 3px solid #e5e7eb; border-top-color: var(--orange); border-radius: 50%; animation: sp .8s linear infinite; margin: 20px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 18px; padding: 22px 18px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 24px; } .hero p { color: #d7dcea; margin: 0; }
.hero .logo { height: 34px; background: #fff; border-radius: 8px; padding: 5px 8px; margin-bottom: 14px; }
.offline { background: #fff7ed; color: var(--warn); font-size: 13px; text-align: center; padding: 6px; }
