/* EasyPrint Varaždin – vizualni identitet tiskare: CMYK, papir, registracijske oznake */
:root {
  --paper: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #141416;
  --ink-2: #4b4a50;
  --muted: #8d8a90;
  --line: #e5e0d5;
  --line-2: #d3cdc0;
  --c: #00a0dc;
  --m: #e6007e;
  --y: #ffd400;
  --k: #141416;
  --accent: var(--m);
  --accent-ink: #a6005b;
  --accent-soft: #fde8f2;
  --mark: #ffe45c;
  --ok: #0a8a58;
  --ok-soft: #e3f5ec;
  --warn: #a95500;
  --warn-soft: #fff3dc;
  --err: #d42a1e;
  --err-soft: #fdeceb;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(20, 20, 22, .04), 0 14px 32px -22px rgba(20, 20, 22, .35);
  --shadow-lg: 0 30px 60px -30px rgba(20, 20, 22, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Bricolage Grotesque", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
body.theme-3d {
  --accent: #0094cc;
  --accent-ink: #006589;
  --accent-soft: #e1f3fa;
  --mark: #a6e6ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 20, 22, .075) 1px, transparent 1.3px);
  background-size: 22px 22px;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
body.theme-3d {
  background-image: linear-gradient(rgba(0, 148, 204, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 148, 204, .07) 1px, transparent 1px);
  background-size: 26px 26px;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.text-2 { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.mono-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
main { flex: 1; padding-bottom: 70px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 90%, transparent 90%); color: inherit; padding: 0 .06em; }
.cmyk-strip { height: 5px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75% 100%); }

/* ---------------------------------------------------------------- zaglavlje */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; position: relative; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.035em; }
.brand-sep { width: 1.5px; height: 22px; background: var(--line-2); }
.brand-city { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tabs { margin: 0 auto; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.tab { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .8); }
.tab.active { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(20, 20, 22, .7); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m); }
.tab .dot.c { background: var(--c); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--ink); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: 14px; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--paper); text-decoration: none; }
.dropdown .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown .who b { display: block; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 48px 0 34px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 17.5px; color: var(--ink-2); max-width: 560px; }
.hero p.lead b { color: var(--ink); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); }
.fact .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.fact b { font-weight: 650; }
.fact.live { border-color: color-mix(in srgb, var(--ok) 35%, white); }
.fact.live .ic { background: var(--ok-soft); color: var(--ok); }
.fact .countdown { font-family: var(--mono); font-weight: 700; color: var(--ok); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(10, 138, 88, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(10, 138, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 138, 88, 0); } }

/* ilustracija: listovi papira s pečatom */
.hero-art { position: relative; height: 330px; }
.hero-art .crop { position: absolute; inset: 14px 40px 10px 60px; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 18px / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 18px 0 / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 18px / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) calc(100% - 18px) 0 / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 18px) / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 18px 100% / 1px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% calc(100% - 18px) / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) calc(100% - 18px) 100% / 1px 14px no-repeat; }
.sheet { position: absolute; width: 200px; height: 270px; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 22px 40px -22px rgba(20, 20, 22, .5); }
.sheet.s3 { left: 46%; top: 40px; transform: rotate(9deg); background: #fbfaf7; }
.sheet.s2 { left: 38%; top: 30px; transform: rotate(3deg); background: #fdfcfa; }
.sheet.s1 { left: 27%; top: 24px; transform: rotate(-4deg); padding: 22px 20px; display: flex; flex-direction: column; gap: 9px; }
.sheet .t1 { height: 13px; width: 70%; background: var(--ink); border-radius: 2px; }
.sheet .t2 { height: 7px; width: 45%; background: var(--accent); border-radius: 2px; margin-bottom: 6px; }
.sheet .ln { height: 5px; background: #dedad2; border-radius: 2px; }
.sheet .ln.s { width: 72%; }
.sheet .pic { height: 62px; border-radius: 3px; margin: 4px 0; background: linear-gradient(135deg, var(--c), var(--m) 55%, var(--y)); opacity: .85; }
.sheet .bar { display: flex; margin-top: auto; height: 10px; }
.sheet .bar i { flex: 1; }
.sheet .bar i:nth-child(1) { background: var(--c); } .sheet .bar i:nth-child(2) { background: var(--m); }
.sheet .bar i:nth-child(3) { background: var(--y); } .sheet .bar i:nth-child(4) { background: var(--k); }
.stamp { position: absolute; right: 6%; bottom: 26px; width: 142px; height: 142px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center;
  color: var(--m); border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -11px; transform: rotate(-14deg);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; line-height: 1.25; background: rgba(255, 255, 255, .6); }
.stamp b { display: block; font-family: var(--font-head); font-size: 30px; letter-spacing: -.02em; text-transform: none; line-height: 1; margin: 3px 0; }
.stamp.c { color: var(--c); }
.reg { position: absolute; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; opacity: .55; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: 50%; top: -7px; bottom: -7px; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: -7px; right: -7px; height: 1.5px; transform: translateY(-50%); }
.hero-art .reg.r1 { left: 12%; top: 6px; } .hero-art .reg.r2 { right: 2%; top: 30px; }
.hero-art svg.printer3d { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- raspored narudžbe */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.step { position: relative; padding: 26px 26px 22px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.step-num { flex: none; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); position: relative; }
.step-num::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.step-head h2 { margin: 2px 0 4px; font-size: 23px; }
.step-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; }
.step.done .step-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done .step-num::after { background: var(--ok-soft); }
.step .lock-msg { display: none; }
.step.locked > :not(.step-head):not(.lock-msg) { opacity: .32; pointer-events: none; filter: grayscale(.7); user-select: none; }
.step.locked .lock-msg { display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 11px 14px; border-radius: 10px; background: repeating-linear-gradient(-45deg, var(--surface-2) 0 10px, #f1eee7 10px 20px); color: var(--ink-2); font-size: 14px; border: 1px dashed var(--line-2); }

/* ---------------------------------------------------------------- forme */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; min-width: 0; }
.field > label, .label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); font-family: var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.field > label .muted, .label .muted { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; outline: none; appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; min-height: 86px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23141416' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
input.valid { border-color: var(--ok); }
input[readonly] { background: var(--surface-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.check input { margin-top: 2px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .15s; min-height: 42px; justify-content: center; }
.chip > span small { font-weight: 500; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.chip:hover > span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--ink); background: var(--accent-soft); color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.chip input:checked + span small { color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips.big .chip > span { padding: 12px 16px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.swatch i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .14); }
.swatch input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--accent); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 18px; color: var(--ink-2); cursor: pointer; }
.stepper button:hover { background: var(--paper); color: var(--ink); }
.stepper input { width: 58px; border: 0 !important; box-shadow: none !important; text-align: center; padding: 8px 0; border-radius: 0; font-weight: 700; font-family: var(--mono); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); transition: transform .12s, box-shadow .12s, background .15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent); }
.btn-primary:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.btn-primary:disabled { box-shadow: none; background: #6d6c72; border-color: #6d6c72; opacity: .6; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper); }
.btn-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, white); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-sm.btn-primary { box-shadow: 3px 3px 0 var(--accent); }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--err-soft); color: var(--err); }

/* ---------------------------------------------------------------- dostava i karta */
.delivery-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.delivery-grid.with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.map-panel { display: none; flex-direction: column; gap: 8px; }
.delivery-grid.with-map .map-panel { display: flex; animation: fadeIn .35s ease; }
#map { height: 100%; min-height: 340px; border-radius: 12px; border: 1.5px solid var(--ink); z-index: 1; }
.map-hint { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.map-hint svg { margin-top: 1px; }
.map-hint.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, white); }
.map-hint.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, white); font-weight: 600; }
.leaflet-control-layers { border-radius: 10px !important; border: 1.5px solid var(--ink) !important; box-shadow: none !important; font-family: var(--font); font-size: 13px; }
.leaflet-control-layers-expanded { padding: 6px 10px !important; }
.pc-status { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 12px; border-radius: 10px; margin-top: -4px; margin-bottom: 15px; }
.pc-status.ok { background: var(--ok-soft); color: var(--ok); }
.pc-status.bad { background: var(--err-soft); color: var(--err); }
.pc-wrap { position: relative; }
.pc-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; z-index: 30; padding: 4px; }
.pc-suggest button { display: flex; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: var(--ink); }
.pc-suggest button:hover, .pc-suggest button.active { background: var(--accent-soft); }
.pc-suggest b { font-family: var(--mono); color: var(--accent-ink); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- upload */
.dropzone { position: relative; border: 2px dashed var(--line-2); border-radius: 14px; padding: 30px 20px 26px; text-align: center; cursor: pointer; background: var(--surface-2); transition: all .18s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--accent-soft); }
.dz-icon { position: relative; width: 64px; height: 64px; margin-bottom: 8px; }
.dz-icon::before, .dz-icon::after { content: ""; position: absolute; width: 40px; height: 52px; border-radius: 3px; background: #fff; border: 1.5px solid var(--ink); transition: transform .25s; }
.dz-icon::before { left: 6px; top: 8px; transform: rotate(-8deg); }
.dz-icon::after { left: 16px; top: 4px; transform: rotate(5deg); background: linear-gradient(#fff 0 22%, var(--accent) 22% 28%, #fff 28% 40%, #e3dfd6 40% 46%, #fff 46% 56%, #e3dfd6 56% 62%, #fff 62%); }
.dz-icon svg { position: absolute; z-index: 2; right: -6px; bottom: -2px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ink); color: #fff; }
.dropzone:hover .dz-icon::after { transform: rotate(5deg) translateY(-6px); }
.dropzone b { font-family: var(--font-head); font-size: 19px; letter-spacing: -.02em; }
.formats { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }
.formats span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }

.items { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.item-card { border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; animation: fadeIn .3s ease; }
.item-card.has-error { border-color: color-mix(in srgb, var(--err) 55%, white); }
.item-head { display: flex; align-items: center; gap: 13px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.file-badge { position: relative; width: 38px; height: 46px; flex: none; border-radius: 4px 12px 4px 4px; display: grid; place-items: end center; padding-bottom: 7px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: #fff; background: var(--ink); text-transform: uppercase; overflow: hidden; }
.file-badge::before { content: ""; position: absolute; right: 0; top: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--surface-2) 50%, rgba(255, 255, 255, .45) 50%); }
.file-badge.pdf { background: #d92d20; }
.file-badge.doc, .file-badge.docx, .file-badge.odt, .file-badge.rtf { background: #1f5fd1; }
.file-badge.txt, .file-badge.md { background: #55525c; }
.file-badge.jpg, .file-badge.jpeg, .file-badge.png { background: #0a8a58; }
.file-badge.stl, .file-badge.obj, .file-badge.ply { background: #0094cc; }
.file-badge.step, .file-badge.stp { background: #6b3fd4; }
.item-title { flex: 1; min-width: 0; }
.item-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.item-title span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.item-price { text-align: right; font-weight: 800; font-family: var(--font-head); font-size: 20px; white-space: nowrap; letter-spacing: -.02em; }
.item-price small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0; }
.item-body { min-width: 0; }
.item-body .opt-group { margin-bottom: 16px; }
.item-body .opt-group > .label { display: block; margin-bottom: 8px; }
.item-error { margin: 0 16px 14px; padding: 9px 12px; border-radius: 10px; background: var(--err-soft); color: var(--err); font-size: 13.5px; }
.item-warn { display: flex; gap: 8px; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.uploading { padding: 16px; display: flex; gap: 14px; align-items: center; }
.uploading .grow { flex: 1; min-width: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--m), var(--y)); transition: width .2s; }
.progress.indeterminate > i { width: 35% !important; animation: indet 1.1s infinite ease-in-out; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.upload-error { padding: 14px 16px; display: flex; gap: 12px; align-items: center; color: var(--err); background: var(--err-soft); }
.upload-error .grow { flex: 1; font-size: 14px; }
.sel-row { grid-template-columns: 96px minmax(0, 1fr); }
.pv[data-binding=spiral] .pv-holes { display: none; }
.doc-layout, .model-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; padding: 16px; }

/* ---------------------------------------------------------------- pregled dokumenta */
.pv { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pv-stage { position: relative; height: 400px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background-color: #ece8df;
  background-image: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 68%), radial-gradient(rgba(20, 20, 22, .09) 1px, transparent 1.3px);
  background-size: auto, 16px 16px; }
.pv-tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 9; pointer-events: none; }
.pv-tags span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); color: var(--ink-2); }
.pv-tags .pv-copies { background: var(--ink); color: #fff; border-color: var(--ink); }
.pv-doc { position: relative; width: 200px; height: 283px; margin-top: 22px; transition: width .3s ease, height .3s ease; }
.pv-page { position: absolute; inset: 0; z-index: 3; background: #fff; overflow: hidden; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 18px 30px -16px rgba(0, 0, 0, .45); }
.pv-page img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; user-select: none; }
.pv[data-color=bw] .pv-page img { filter: grayscale(1) contrast(1.05); }
.pv-blank { display: none; position: absolute; inset: 0; padding: 18px; flex-direction: column; justify-content: center; gap: 8px; text-align: center; font-size: 11px; color: var(--muted); background: repeating-linear-gradient(#fff 0 14px, #f0ede6 14px 15px); }
.pv-blank b { color: var(--ink); font-size: 12px; word-break: break-all; }
.pv.no-preview .pv-blank { display: flex; }
.pv.no-preview .pv-page img { display: none; }
.pv-sheets { position: absolute; inset: 0; z-index: 2; background: #fff; }
.pv[data-stack="2"] .pv-sheets { box-shadow: 3px 3px 0 -1px #fff, 3px 3px 0 0 #cbc5b8; }
.pv[data-stack="3"] .pv-sheets { box-shadow: 3px 3px 0 -1px #fff, 3px 3px 0 0 #cbc5b8, 6px 6px 0 -1px #fff, 6px 6px 0 0 #c2bcaf; }
.pv[data-stack="4"] .pv-sheets { box-shadow: 3px 3px 0 -1px #fff, 3px 3px 0 0 #cbc5b8, 6px 6px 0 -1px #fff, 6px 6px 0 0 #c2bcaf, 9px 9px 0 -1px #fff, 9px 9px 0 0 #b9b3a5; }
.pv-back, .pv-spine, .pv-staple, .pv-gloss, .pv-holes { display: none; position: absolute; }
.pv-coil-wrap { position: absolute; left: -12px; top: 0; bottom: 0; width: 24px; z-index: 7; }
.pv-coil { display: block; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .35)); }
/* spiralni uvez: crni karton straga, prozirna folija naprijed, spirala */
.pv[data-binding=spiral] .pv-back { display: block; z-index: 1; inset: 0 -7px -7px 0; background: linear-gradient(135deg, #2a2a2e, #141416); border-radius: 2px; }
/* termo (meki) uvez: omot i hrbat */
.pv[data-binding=thermal] .pv-back { display: block; z-index: 1; inset: -3px -5px -5px -3px; background: linear-gradient(135deg, #34507a, #22385a); border-radius: 2px 5px 5px 2px; }
.pv[data-binding=thermal] .pv-spine { display: block; z-index: 4; left: -3px; top: -3px; bottom: -5px; width: 10px; background: linear-gradient(90deg, #172840, #3c5a86 55%, #1d3150); border-radius: 2px 0 0 2px; box-shadow: 1px 0 2px rgba(0, 0, 0, .3); }
/* tvrdi uvez: tvrde korice i hrbat s pozlatom */
.pv[data-binding=hard] .pv-back { display: block; z-index: 1; inset: -9px -10px -10px -4px; border-radius: 3px 6px 6px 3px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px), linear-gradient(135deg, #24324f, #121b2e); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .6); }
.pv[data-binding=hard] .pv-spine { display: block; z-index: 2; left: -20px; top: -9px; bottom: -10px; width: 18px; border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, #0d1424, #2b3b5e 50%, #121b2e);
  box-shadow: inset 0 22px 0 -19px #d4b25a, inset 0 28px 0 -25px #d4b25a, inset 0 -22px 0 -19px #d4b25a, inset 0 -28px 0 -25px #d4b25a; }
/* klamanje */
.pv[data-binding=staple] .pv-staple { display: block; z-index: 8; top: 11px; left: 5px; width: 26px; height: 4px; border-radius: 2px; transform: rotate(-45deg);
  background: linear-gradient(#ffffff, #b5bac3 55%, #7c828d); box-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
/* bušenje rupa za registrator */
.pv[data-punch] .pv-holes { display: block; z-index: 4; inset: 0 auto 0 0; width: 26px; }
.pv-holes i { position: absolute; left: 9px; width: 11px; height: 11px; border-radius: 50%; background: #e4e0d7; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.pv-holes i:first-child { top: calc(50% - 46px); }
.pv-holes i:last-child { top: calc(50% + 35px); }
/* folija i foto papir – sjaj */
.pv[data-film] .pv-gloss, .pv[data-paper=photo] .pv-gloss { display: block; z-index: 5; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .25) 78%, rgba(255, 255, 255, 0) 84%); }
.pv[data-film] .pv-gloss { background-color: rgba(190, 220, 240, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
/* stranica izvan odabranog raspona */
.pv-skip { display: none; position: absolute; inset: 0; z-index: 4; place-items: center; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .78) 0 10px, rgba(240, 236, 228, .86) 10px 20px); }
.pv-skip span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; transform: rotate(-12deg); }
.pv.excluded .pv-skip { display: grid; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 9; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-nav:disabled { opacity: .25; cursor: default; }
.pv.single .pv-nav { display: none; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pv-pos { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.pv-all { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; white-space: nowrap; }
.pv-all:hover { background: var(--paper); }
.pv-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 20, 22, .62); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.pv-modal-panel { width: min(1000px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 16px; border: 1.5px solid var(--ink); }
.pv-modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pv-close { border: 0; background: var(--paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; padding: 18px; background: #ece8df; }
.pv-thumb { position: relative; padding: 0; border: 0; background: #fff; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); border-radius: 2px; }
.pv-thumb img { width: 100%; display: block; border-radius: 2px; }
.pv-thumb span { position: absolute; right: 6px; bottom: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--ink); color: #fff; }
.pv-thumb.off { opacity: .35; }
.pv-thumb.current { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 3D pregled */
.viewer { position: relative; height: 320px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #ffffff, #e2eef4); border: 1px solid var(--line); cursor: grab; touch-action: none; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer .v-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.viewer .v-dims { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: var(--ink-2); border: 1px solid var(--line); }
.viewer .v-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.viewer .v-tools button { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.model-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.model-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.model-stats span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.model-stats b { font-size: 14px; font-family: var(--mono); }

/* ---------------------------------------------------------------- proizvodi */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.product { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; background: var(--surface); }
.product.selected { border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.product-img { height: 128px; border-radius: 10px; display: grid; place-items: center; background-color: var(--paper); background-image: radial-gradient(rgba(20, 20, 22, .08) 1px, transparent 1.3px); background-size: 12px 12px; color: var(--ink); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img svg { width: 42px; height: 42px; stroke-width: 1.5; }
.product b { font-size: 14.5px; line-height: 1.3; }
.product p { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.4; }
.product .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product .price { font-weight: 700; font-family: var(--mono); font-size: 14px; }
.product .stepper button { width: 30px; height: 34px; font-size: 16px; }
.product .stepper input { width: 34px; padding: 6px 0; font-size: 14px; }

/* ---------------------------------------------------------------- sažetak: nalog za ispis */
.summary { position: sticky; top: 92px; }
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 22px 22px 18px; filter: drop-shadow(0 18px 22px rgba(20, 20, 22, .13)); }
.ticket::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -11px; height: 12px;
  background: linear-gradient(135deg, var(--surface) 6px, transparent 0) 0 0 / 12px 12px repeat-x, linear-gradient(-135deg, var(--surface) 6px, transparent 0) 0 0 / 12px 12px repeat-x; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticket-head h3 { font-size: 24px; margin: 4px 0 0; }
.ticket-count { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; white-space: nowrap; }
.barcode { height: 30px; margin: 14px 0 4px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.barcode-no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--muted); display: flex; justify-content: space-between; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--line-2); margin: 16px -22px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.perf::before { left: -10px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -10px; clip-path: inset(0 50% 0 0); }
.sum-lines { display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow: auto; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-line .n { min-width: 0; }
.sum-line .n b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-line .n small { color: var(--muted); display: block; font-size: 11px; line-height: 1.4; font-family: var(--mono); }
.sum-line .v { font-weight: 700; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.sum-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 12px 0; font-family: var(--mono); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-family: var(--mono); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; }
.sum-total span { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sum-total b { font-size: 34px; font-family: var(--font-head); letter-spacing: -.03em; }
.free-hint { font-size: 12.5px; color: var(--ok); background: var(--ok-soft); padding: 7px 10px; border-radius: 8px; margin: 8px 0; }
.eta { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--ink); margin: 16px 0; }
.eta .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.eta small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.eta b { font-size: 15.5px; }
.sum-errors { margin: 10px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sum-errors li { font-size: 13px; color: var(--err); background: var(--err-soft); padding: 8px 10px; border-radius: 8px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.mobile-bar { display: none; }

/* ---------------------------------------------------------------- poruke */
.flashes { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; border: 1.5px solid; animation: fadeIn .3s; background: var(--surface); }
.flash.success { color: var(--ok); border-color: var(--ok); box-shadow: 3px 3px 0 var(--ok-soft); }
.flash.error { color: var(--err); border-color: var(--err); box-shadow: 3px 3px 0 var(--err-soft); }
.flash.info { color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent-soft); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.login-gate { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.login-gate b { display: block; font-size: 18px; font-family: var(--font-head); }

/* ---------------------------------------------------------------- auth / stranice */
.auth-wrap { min-height: calc(100vh - 280px); display: grid; place-items: center; padding: 44px 20px; }
.auth-card { width: 100%; max-width: 450px; padding: 34px; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75%); }
.auth-card h1 { font-size: 34px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.page-head { padding: 36px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; margin: 0; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 16px 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.order-row:hover { text-decoration: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); transform: translate(-1px, -1px); }
.order-row > div > b { font-family: var(--mono); }
.type-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #fde8f2; color: #a6005b; }
.type-ic.t3d { background: #e1f3fa; color: #006589; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-zaprimljena { background: #eef3ff; color: #1d4ed8; }
.s-potvrdena { background: #e1f3fa; color: #00688f; }
.s-u_izradi { background: #fff3dc; color: #a95500; }
.s-na_dostavi { background: #fde8f2; color: #a6005b; }
.s-dostavljena { background: var(--ok-soft); color: var(--ok); }
.s-otkazana { background: #efede8; color: #6b6970; }
.badge.plain::before { display: none; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.empty { text-align: center; padding: 60px 20px; }
.empty .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--accent-soft); color: var(--accent-ink); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.line-item { padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.line-item:last-child { border-bottom: 0; }
.line-item .top { display: flex; justify-content: space-between; gap: 14px; }
.line-item .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.line-item .opts span { font-size: 12.5px; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.line-item .opts span i { font-style: normal; color: var(--muted); }
.line-preview { max-width: 400px; margin-top: 14px; }
.timeline { display: flex; gap: 6px; margin: 16px 0 6px; }
.timeline div { flex: 1; height: 7px; border-radius: 99px; background: var(--line); }
.timeline div.on { background: var(--ink); }
.timeline-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.success-hero { text-align: center; padding: 38px 24px; position: relative; overflow: hidden; }
.success-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--k) 75%); }
.success-hero .ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--accent); }
.success-hero .ic svg { width: 34px; height: 34px; }
.prose { font-size: 15px; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.4em; font-size: 20px; }

/* ---------------------------------------------------------------- podnožje */
footer.site { background: var(--ink); color: #b9b7bd; font-size: 13.5px; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
footer.site a { color: #fff; }
footer.site .f-brand { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
footer.site .f-brand span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #b9b7bd; margin-left: 8px; text-transform: uppercase; }

/* ---------------------------------------------------------------- admin */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--ink) 250px, transparent 250px); }
.admin-side { background: var(--ink); color: #c4c2c8; padding: 0 14px 22px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.admin-side .cmyk-strip { margin: 0 -14px 20px; flex: none; }
.admin-side .brand { color: #fff; margin: 0 6px 22px; }
.admin-side .brand-mark { background: #fff; color: var(--ink); }
.admin-side .brand-mark::after { border-color: var(--ink); }
.admin-side .brand-name { font-size: 19px; }
.admin-side .brand-city { color: #9d9ba2; font-size: 10.5px; }
.admin-side .brand-sep { background: #3a393f; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #c4c2c8; font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent; }
.admin-side a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin-side a.active { background: rgba(255, 255, 255, .08); color: #fff; border-left-color: var(--m); }
.admin-side .count { margin-left: auto; background: var(--m); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.admin-side .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 6px; }
.admin-side .grow { flex: 1; }
.admin-side form button { width: 100%; text-align: left; display: flex; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #c4c2c8; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14.5px; }
.admin-side form button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-main h1 { font-size: 34px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; }
.stat span { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stat b { display: block; font-size: 32px; font-family: var(--font-head); letter-spacing: -.03em; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table input[type=text], .table input[type=number] { padding: 7px 9px; font-size: 14px; border-radius: 8px; min-width: 70px; }
.table td.num input { max-width: 100px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .chip > span { min-height: 36px; padding: 7px 12px; font-size: 13.5px; }
.filters form { margin-left: auto; display: flex; gap: 8px; }
.filters input[type=search] { padding: 8px 12px; min-width: 240px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
#admin-map { height: 300px; border-radius: 12px; border: 1.5px solid var(--ink); margin-top: 12px; }
.admin-viewer { height: 240px; }
.confirm-card { border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.confirm-card h3 { display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- responzivno */
@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .delivery-grid.with-map { grid-template-columns: minmax(0, 1fr); }
  #map { min-height: 300px; height: 300px; }
  .doc-layout, .model-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 0 12px 12px; }
  .admin-side .cmyk-strip { width: calc(100% + 24px); margin: 0 -12px 12px; }
  .admin-side .brand { width: 100%; margin-bottom: 8px; }
  .admin-side .sep, .admin-side .grow { display: none; }
  .admin-main { padding: 20px 16px 60px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; row-gap: 10px; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 9px 10px; }
  .nav-right { margin-left: auto; }
  .nav-link .lbl { display: none; }
  .brand-name { font-size: 19px; }
  .hero { padding: 28px 0 18px; }
  .step, .card-pad { padding: 18px; }
  .step-num { min-width: 40px; height: 40px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .order-row { grid-template-columns: auto 1fr; }
  .order-row > :nth-child(3), .order-row > :nth-child(4) { grid-column: 2; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .pv-stage { height: 360px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1.5px solid var(--ink); }
  .mobile-bar b { font-size: 22px; font-family: var(--font-head); }
  .mobile-bar small { display: block; color: var(--muted); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
  main.has-mobile-bar { padding-bottom: 110px; }
  .filters form { margin-left: 0; width: 100%; }
  .filters input[type=search] { min-width: 0; flex: 1; }
}

/* ---------------------------------------------------------------- online plaćanje */
.pay-online { border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; background: var(--surface); box-shadow: 4px 4px 0 var(--accent); display: flex; flex-direction: column; gap: 12px; }
.pay-online-top { display: flex; gap: 12px; align-items: flex-start; }
.pay-online-top b { display: block; font-size: 15px; }
.pay-online-top small { color: var(--ink-2); font-size: 13px; }
.pay-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.paylogos { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl { height: 26px; min-width: 40px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink); }
.pl.visa { color: #1a1f71; font-style: italic; font-weight: 900; letter-spacing: .02em; font-family: Arial, sans-serif; }
.pl.mc i, .pl.maestro i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.pl.mc i:first-child { background: #eb001b; } .pl.mc i:last-child { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.pl.maestro i:first-child { background: #0099df; } .pl.maestro i:last-child { background: #eb001b; margin-left: -6px; mix-blend-mode: multiply; }
.pl.apple svg { width: 13px; height: 13px; }
.pl.apple, .pl.gpay { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 600; }
.pay-box { border: 1.5px solid var(--ink); border-radius: 14px; padding: 18px; background: var(--surface); box-shadow: 5px 5px 0 var(--accent); }
.pay-box.paid { box-shadow: 5px 5px 0 var(--ok-soft); border-color: var(--ok); }
.pay-box h3 { display: flex; gap: 8px; align-items: center; }
.demo-banner { background: repeating-linear-gradient(-45deg, var(--y) 0 14px, #ffe766 14px 28px); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 8px; border-radius: 10px; margin-bottom: 16px; }
.fake-card { border-radius: 14px; padding: 18px; color: #fff; background: linear-gradient(135deg, #1d1d22, #3a2c52 60%, #e6007e); font-family: var(--mono); margin-bottom: 16px; box-shadow: var(--shadow-lg); }
.fake-card .num { font-size: 18px; letter-spacing: .12em; margin: 22px 0 10px; }
