/* Kormilo Saloni — izgled. Paleta usklađena sa plavim logom Kormilo (predlog, čeka odobrenje). */
:root {
  --primary: #0B3D6E;        /* duboka plava: zaglavlja, glavni tekstovi brenda */
  --primary-dark: #082B4D;
  --brand: #0A72F0;          /* plava iz loga: znak, oznake, aktivno */
  --primary-light: #E6F0FB;  /* svetla plava: istaknute kockice, kartice */
  --accent: #E8873A;         /* topla narandžasta: samo glavna akcija */
  --accent-dark: #C96F24;
  --text: #16212E;
  --text-2: #5A6576;
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --line: #DCE3EC;
  --ok: #1F8A5B;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 61, 110, .06), 0 4px 14px rgba(11, 61, 110, .07);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }

#app { min-height: 100%; max-width: 560px; margin: 0 auto; }
.screen { min-height: 100vh; min-height: 100dvh; padding: calc(16px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; }
.screen.with-nav { padding-bottom: calc(96px + var(--safe-bottom)); }

/* ------- dugmad */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 20px; border-radius: 16px; font-size: 18px; font-weight: 650; transition: transform .08s ease, background .15s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(232, 135, 58, .35); }
.btn-accent:active { background: var(--accent-dark); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary); border: 1.5px solid var(--line); }
.btn-link { display: block; width: 100%; text-align: center; color: var(--brand); font-weight: 600; padding: 12px; min-height: 48px; }
.btn[disabled] { opacity: .55; }

/* ------- probni prikaz */
.demo-bar { background: #FFF4E8; color: #8A4B14; border: 1px solid #F3D3B3; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-bar button { color: #8A4B14; text-decoration: underline; font-size: 14px; white-space: nowrap; }

/* ------- intro */
.intro { justify-content: space-between; background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 46%); }
.intro-top { text-align: center; padding-top: 18px; }
.intro-logo { width: 84px; height: 84px; display: block; margin: 0 auto 6px; }
.brandline { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.brandline span { color: var(--text-2); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.date { color: var(--text-2); font-size: 17px; text-transform: none; }
.count { margin: 22px auto 0; display: inline-flex; align-items: baseline; gap: 8px; background: var(--surface); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow); }
.count b { font-size: 26px; color: var(--brand); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card + .card { margin-top: 12px; }
.card-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.first { display: flex; gap: 14px; align-items: center; }
.time { font-size: 26px; font-weight: 750; color: var(--primary); min-width: 78px; }
.who { font-weight: 650; font-size: 18px; }
.what { color: var(--text-2); font-size: 15px; }
.tip { border-left: 4px solid var(--brand); }
.tip .card-label { color: var(--brand); }
.tip p { margin: 0; font-size: 16px; }
.intro-bottom { margin-top: 18px; }

/* ------- početna */
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.top h1 { font-size: 24px; margin: 0; color: var(--primary-dark); line-height: 1.2; }
.top .date { font-size: 15px; }
.top img { width: 44px; height: 44px; }
.next { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.next .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.next .time { color: #fff; font-size: 22px; min-width: 64px; }
.next .who { font-size: 17px; }
.next .what { color: rgba(255, 255, 255, .8); }
.next .chev { margin-left: auto; font-size: 22px; opacity: .8; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 112px; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.tile:active { transform: scale(.98); }
.tile svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .name { font-size: 17px; font-weight: 650; line-height: 1.2; }
.tile .sub { font-size: 13px; color: var(--text-2); }
.tile.hl-primary { background: var(--primary); color: #fff; }
.tile.hl-primary svg { stroke: #fff; }
.tile.hl-primary .sub { color: rgba(255, 255, 255, .8); }
.tile.hl-accent { background: var(--accent); color: #fff; }
.tile.hl-accent svg { stroke: #fff; }
.tile.hl-accent .sub { color: rgba(255, 255, 255, .85); }
.badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent-dark); background: #FFF1E4; border-radius: 999px; padding: 3px 8px; }
.trial { margin-top: 16px; font-size: 14px; color: var(--text-2); text-align: center; }

/* ------- donja navigacija */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); z-index: 5; }
.nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: 12px; color: var(--text-2); min-height: 60px; }
.nav button svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav button.on { color: var(--brand); font-weight: 650; }

/* ------- forme i ulaz */
.welcome { justify-content: center; text-align: center; }
.welcome .intro-logo { width: 110px; height: 110px; }
.welcome h1 { font-size: 30px; margin: 14px 0 4px; color: var(--primary-dark); }
.welcome p { color: var(--text-2); margin: 0 0 30px; }
.stack > * + * { margin-top: 12px; }
.form h2 { font-size: 24px; margin: 8px 0 4px; color: var(--primary-dark); }
.form .lead { color: var(--text-2); margin: 0 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 18px; }
.field input:focus { outline: none; border-color: var(--brand); }
.field small { color: var(--text-2); font-size: 13px; }
.err { color: #B3261E; font-size: 15px; min-height: 22px; margin: 4px 0 10px; }
.back { align-self: flex-start; color: var(--brand); font-weight: 600; padding: 8px 0; margin-bottom: 6px; }

/* ------- uputstvo za instalaciju */
.install h2 { font-size: 24px; color: var(--primary-dark); margin: 10px 0 6px; text-align: center; }
.install .lead { text-align: center; color: var(--text-2); margin: 0 0 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 22px; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 14px 14px 58px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 750; display: grid; place-items: center; }
.steps .k { font-weight: 700; color: var(--primary); }
.ios-share { display: inline-block; vertical-align: -4px; width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------- poruke */
#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-bottom)); transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .2s; max-width: 88vw; text-align: center; z-index: 10; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.offline { background: #EEF1F5; color: var(--text-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; text-align: center; }
.loading { flex: 1; display: grid; place-items: center; }
.loading img { width: 72px; height: 72px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading img { animation: none; } }

/* Pozadina iza sata i baterije: sadržaj koji se pomera naviše klizi ispod nje, ne preko sata. */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-top); background: var(--bg); z-index: 20; pointer-events: none; }
body.is-greet::before { background: var(--primary-light); }
body.is-splash::before { background: #000; }

/* ------- uvod od 4 sekunde: kormilo pola okreta u smeru kazaljke, pa ime i slogan */
.splash { justify-content: center; align-items: center; text-align: center; background: #000; color: #fff; position: relative; overflow: hidden; cursor: pointer; }
.splash-logo { width: 140px; height: 140px; opacity: 0; animation: fadeIn .5s ease forwards, helmSpin 4s linear infinite; }
@keyframes helmSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 1.05em; background: #0A72F0; margin-left: 3px; vertical-align: -3px; opacity: 0; animation: blink .8s steps(1) 1.15s 4; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
.tapstart { justify-content: center; }
.tap-logo { width: 120px; height: 120px; }
.splash .tap-name { opacity: 1; animation: none; }
.tap-btn { margin-top: 44px; color: #fff; font-size: 18px; font-weight: 650; padding: 16px 30px; border: 1.5px solid #0A72F0; border-radius: 999px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,114,240,.55); } 50% { box-shadow: 0 0 0 14px rgba(10,114,240,0); } }
.splash-name { font-size: 34px; font-weight: 750; letter-spacing: .02em; margin-top: 24px; opacity: 0; animation: up .6s ease .5s forwards; }
.splash-line { font-size: 21px; margin-top: 10px; color: #6FB0FF; min-height: 1.4em; }
.splash-sub { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #7E8A99; margin-top: 28px; opacity: 0; animation: up .6s ease 2.8s forwards; }
.splash-skip { position: absolute; right: 18px; bottom: calc(18px + var(--safe-bottom)); color: rgba(255,255,255,.7); font-size: 15px; padding: 10px 12px; }
.splash::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.splash.out::after { animation: fadeOut .3s ease forwards; } /* pretapanje kreće tek posle sekunde tišine */
@keyframes helmTurn { 0% { opacity: 0; transform: scale(.55) rotate(-180deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes wheelIn { from { opacity: 0; transform: scale(.4) rotate(-200deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 1; } }

/* ------- pozdrav jednom dnevno */
.greet { justify-content: center; align-items: center; text-align: center; background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 70%); cursor: pointer; }
.greet-logo { width: 96px; height: 96px; margin: 0 auto 26px; display: block; animation: wheelIn 1s cubic-bezier(.2,.8,.2,1) both; }
.greet-hello { font-size: 34px; font-weight: 750; color: var(--primary-dark); animation: up .6s ease .35s both; }
.greet-salon { font-size: 22px; font-weight: 600; color: var(--brand); margin-top: 6px; animation: up .6s ease .6s both; }
.greet-date { color: var(--text-2); font-size: 17px; font-weight: 400; margin-top: 14px; animation: up .6s ease .85s both; }

/* ------- forma */
.form-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.form-head img { width: 56px; height: 56px; }
.form-head h2 { margin: 0; }
.form-head .lead { margin: 2px 0 0; }
.pw { position: relative; }
.pw input { padding-right: 56px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; }
.eye svg { width: 24px; height: 24px; stroke: var(--text-2); fill: none; stroke-width: 1.8; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 12px; font-size: 15px; line-height: 1.4; }
.check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--primary); }
.check a, .muted a { color: var(--brand); }
.muted { color: var(--text-2); font-size: 14px; text-align: center; margin: 10px 0 0; }
.center { justify-content: center; text-align: center; }

/* ------- traka za instalaciju i uputstvo */
.inst-bar { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--primary-light); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.inst-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
.inst-main img { width: 40px; height: 40px; border-radius: 10px; }
.inst-main b { display: block; color: var(--primary); font-size: 16px; }
.inst-main small { color: var(--brand); font-size: 14px; font-weight: 600; }
.inst-x { width: 48px; height: 56px; font-size: 26px; color: var(--text-2); }
.sheet-wrap { position: fixed; inset: 0; background: rgba(8, 43, 77, .45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-bottom)); max-height: 92vh; overflow: auto; animation: sheetUp .25s ease; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { font-size: 22px; color: var(--primary-dark); margin: 6px 0 4px; }
.sheet .lead { color: var(--text-2); margin: 0 0 14px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.next-empty { margin-bottom: 16px; color: var(--text-2); }
.tiles + .tip { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .tap-btn { animation: none; } .splash-logo, .greet-logo { animation: none; opacity: 1; } .splash-name, .splash-sub, .splash-line, .greet-hello, .greet-salon, .greet-date { animation: none; opacity: 1; } }

/* ------- pravni tekstovi */
.legal { display: block; padding-bottom: 48px; }
.legal h1 { font-size: 28px; color: var(--primary-dark); margin: 8px 0 12px; }
.legal h2 { font-size: 19px; color: var(--primary); margin: 26px 0 6px; }
.legal p { margin: 0 0 10px; font-size: 16px; }
.legal a { color: var(--brand); }
.legal .back { display: inline-block; text-decoration: none; }
.draft { background: #FFF4E8; color: #8A4B14; border: 1px solid #F3D3B3; border-radius: 12px; padding: 10px 14px; font-size: 14px !important; }

/* ------- uvod (verzija 8): samo kormilo i tekst */
.splash .splash-line { font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 27px; font-weight: 600; color: #0A72F0; margin-top: 40px; min-height: 1.3em; letter-spacing: .01em; }
.splash-salon { font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 20px; font-weight: 600; color: #0A72F0; margin-top: 12px; opacity: 0; }
.splash .splash-logo { width: 200px; height: 200px; }
/* znak u uvodu iz dva dela: kolovrat u smeru kazaljke, kormilo istom brzinom u suprotnom smeru */
.splash-helm { position: relative; width: 200px; height: 200px; flex: none; opacity: 0; animation: fadeIn .5s ease forwards; }
.splash-helm img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-helm .helm-core { animation: helmSpin 6s linear infinite; }
.splash-helm .helm-ring { animation: helmSpinBack 6s linear infinite; }
@keyframes helmSpinBack { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .splash-helm, .splash-helm img { animation: none; opacity: 1; } }

/* ------- instalacija: izbor uređaja */
.install h2 { margin-top: 4px; }
.dev-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dev-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; background: var(--surface); border: 2px solid transparent; border-radius: 18px; box-shadow: var(--shadow); min-height: 112px; }
.dev-tile svg { width: 36px; height: 36px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dev-tile span { font-weight: 700; color: var(--primary-dark); font-size: 16px; }
.dev-tile small { font-size: 11px; font-weight: 700; color: var(--accent-dark); background: #FFF1E4; border-radius: 999px; padding: 2px 8px; }
.dev-tile.on { border-color: var(--brand); background: var(--primary-light); }
.os-tabs { display: flex; gap: 6px; background: #E4EAF2; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.os-tab { flex: 1; padding: 10px 6px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.os-tab.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(11,61,110,.12); }
.dev-panel { margin-bottom: 16px; }
.dev-panel .btn { margin-bottom: 8px; }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.set-row span svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.set-row b { display: block; color: var(--primary-dark); }
.set-row small { color: var(--text-2); }
.set-row i { margin-left: auto; font-style: normal; font-size: 24px; color: var(--text-2); }

/* ------- uvod (verzija 10): moderan font i tekst koji dolazi iz dubine */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.splash { perspective: 900px; }
.splash .depth { opacity: 0; animation: fromDepth 2.6s cubic-bezier(.16,.84,.3,1) .9s forwards; }
.splash .depth2 { opacity: 0; animation: fromDepth 2.1s cubic-bezier(.16,.84,.3,1) 1.4s forwards; }
@keyframes fromDepth {
  0% { opacity: 0; transform: translateZ(-2200px); filter: blur(12px); }
  35% { opacity: .85; }
  100% { opacity: 1; transform: translateZ(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) { .splash .depth, .splash .depth2 { animation: none; opacity: 1; } }

/* =================== verzija 17: kalendar, slobodno danas, klijentela, brendovi, podešavanje =================== */
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 72px; }
.btn + .btn, .btn + .btn-link { margin-top: 10px; }
a.btn { text-decoration: none; }
.danger { color: #B3261E !important; }
.btn-ghost.danger { border-color: #F1C9C6; }
.note { color: var(--text-2); font-size: 15px; padding: 14px 4px; text-align: center; }
.note-card { color: var(--text-2); text-align: center; margin-bottom: 12px; }
.loading-line { color: var(--text-2); font-size: 15px; padding: 18px 4px; text-align: center; }
.lead-s { color: var(--text-2); margin: -4px 0 14px; font-size: 15px; }
.fl { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 18px 0 8px; }
.sub-l { font-size: 14px; color: var(--text-2); margin: 2px 0 8px; }
.pill { font-size: 14px; font-weight: 650; color: var(--brand); background: var(--primary-light); border-radius: 999px; padding: 6px 14px; }
.field textarea, .field select { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 17px; }
.field input[type=date], .field input[type=search] { -webkit-appearance: none; appearance: none; }
.search { margin-bottom: 10px; }

/* banner probe / pauze */
.banner { display: block; width: 100%; text-align: left; background: #FFF4E8; border: 1.5px solid #F3D3B3; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; color: #6E3A0C; }
.banner b { display: block; font-size: 16px; }
.banner span { font-size: 14px; }
.banner-stop { background: #FDECEA; border-color: #F1C9C6; color: #7A1E17; }

/* kalendar */
.seg { display: flex; background: #E4EAF2; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(11,61,110,.12); }
.week { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.arrow { width: 34px; height: 58px; font-size: 26px; color: var(--brand); flex: none; }
.wds { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; padding: 7px 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.wd small { font-size: 11px; color: var(--text-2); }
.wd b { font-size: 18px; color: var(--primary-dark); }
.wd.now b { color: var(--brand); }
.wd.closed { opacity: .5; }
.wd.on { background: var(--primary); }
.wd.on small, .wd.on b { color: #fff; }
.day-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; font-size: 17px; color: var(--primary-dark); }
.day-list { margin-top: 14px; }
.staff-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-dark); margin: 14px 0 8px; }
.staff-h i { width: 12px; height: 12px; border-radius: 50%; }
.staff-h small { margin-left: auto; font-weight: 500; color: var(--text-2); }
.appt { display: flex; gap: 14px; width: 100%; text-align: left; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--brand); padding: 12px 14px; margin-bottom: 8px; }
.appt-t { display: flex; flex-direction: column; min-width: 54px; }
.appt-t b { font-size: 18px; color: var(--primary-dark); }
.appt-t small { font-size: 13px; color: var(--text-2); }
.appt .who { font-size: 17px; }
.appt em { font-style: normal; color: #B3261E; }
.appt.off { opacity: .55; }
.appt.off .who { text-decoration: line-through; }
.free { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed #9CC3F5; background: #F4F9FF; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; color: var(--primary); }
.free span { font-weight: 650; }
.free small { color: var(--text-2); }
.free b { margin-left: auto; color: var(--brand); font-size: 15px; white-space: nowrap; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 18px; color: var(--primary-dark); }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.mgrid span { font-size: 12px; color: var(--text-2); padding: 4px 0; }
.md { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); }
.md b { font-size: 16px; color: var(--primary-dark); }
.md small { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; min-width: 20px; padding: 0 6px; margin-top: 2px; }
.md.now { outline: 2px solid var(--brand); }
.md.closed { opacity: .45; }

/* forma termina */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: 16px; color: var(--primary-dark); min-height: 46px; }
.chip small { font-weight: 500; color: var(--text-2); font-size: 13px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on small { color: rgba(255,255,255,.8); }
.chip.t { min-width: 76px; justify-content: center; font-size: 17px; }
.svc-chips .chip { flex-direction: column; align-items: flex-start; gap: 0; }
.time-chips { margin-bottom: 8px; }
.picked { display: flex; align-items: center; justify-content: space-between; background: var(--primary-light); border-radius: 14px; padding: 12px 16px; }
.picked b { display: block; color: var(--primary-dark); }
.picked small { color: var(--text-2); }
.picked button { color: var(--brand); font-weight: 650; }
.suggest { margin: -6px 0 10px; }
.sug { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sug:first-child { border-radius: 12px 12px 0 0; } .sug:last-child { border-radius: 0 0 12px 12px; border-bottom: 0; } .sug:only-child { border-radius: 12px; }
.sug small { color: var(--text-2); }
.manual { margin: 6px 0 14px; }
.manual summary { color: var(--brand); font-weight: 600; padding: 6px 0; }
.manual input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); margin-top: 6px; }

/* detalj termina */
.appt-detail { border-left: 6px solid var(--brand); margin: 4px 0 14px; }
.ad-time { font-size: 30px; font-weight: 750; color: var(--primary-dark); }
.ad-date { color: var(--text-2); }
.ad-who { font-size: 22px; font-weight: 700; margin-top: 12px; }
.ad-what { color: var(--text-2); }
.ad-note { margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.ad-st { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--primary-light); color: var(--primary); }
.ad-st.st-otkazan, .ad-st.st-nije_dosao { background: #FDECEA; color: #B3261E; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.act-grid:empty { display: none; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); color: var(--primary); font-weight: 650; font-size: 15px; text-decoration: none; }
.act svg, .cbtn svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* slobodno danas */
.win { margin-bottom: 10px; }
.win-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.win-h b { font-size: 18px; color: var(--primary-dark); }
.win-h small { color: var(--ok); font-weight: 650; }
.free-list .btn { margin-top: 6px; }

/* klijentela */
.clist { margin-top: 12px; }
.crow, .brow, .hrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 8px; }
.crow b, .brow b { display: block; color: var(--primary-dark); }
.crow small, .brow small { color: var(--text-2); font-size: 14px; }
.crow i, .brow i { margin-left: auto; font-style: normal; font-size: 22px; color: var(--text-2); }
.av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 750; display: grid; place-items: center; }
.av.big { width: 64px; height: 64px; font-size: 26px; margin: 0 auto 8px; }
.client-card { text-align: center; margin-bottom: 14px; }
.client-card h2 { margin: 0; color: var(--primary-dark); font-size: 24px; }
.cc-phone { color: var(--text-2); font-size: 17px; }
.cc-note { text-align: left; margin-top: 12px; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.cc-note small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.hrow { gap: 10px; font-size: 15px; }
.hrow b { min-width: 112px; color: var(--primary-dark); }
.hrow span { color: var(--text-2); flex: 1; }
.hrow em { font-style: normal; font-size: 13px; color: #B3261E; }
.hrow em.fut { color: var(--brand); }

/* brendovi */
.bmark { width: 46px; height: 46px; flex: none; border-radius: 12px; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; display: grid; place-items: center; }
.brand-card { text-align: center; margin-bottom: 14px; }
.brand-card .bmark { width: 72px; height: 72px; font-size: 34px; margin: 0 auto 10px; border-radius: 18px; }
.brand-card h2 { margin: 0; color: var(--primary-dark); }
.brand-card p { color: var(--text-2); margin: 4px 0 0; }
.rep { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rep small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.rep b { display: block; font-size: 18px; }
.rep span { color: var(--text-2); font-size: 14px; }
.cbtn { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 8px; text-decoration: none; color: var(--primary-dark); }
.cbtn b { display: block; }
.cbtn small { color: var(--text-2); }
.cbtn.off { opacity: .5; box-shadow: none; border: 1px dashed var(--line); }

/* podešavanje: radno vreme i usluge */
.step-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.step-dots i { width: 34px; height: 5px; border-radius: 3px; background: var(--line); }
.step-dots i.on { background: var(--brand); }
.hours { margin-bottom: 16px; }
.hours-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 8px; min-height: 60px; }
.hours-row b { width: 92px; font-size: 16px; color: var(--primary-dark); }
.hours-t { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hours-t input { width: 96px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 6px; font-size: 16px; text-align: center; background: var(--surface); }
.hours-t i { font-style: normal; color: var(--text-2); }
.hours-row .closed { display: none; margin-left: auto; color: var(--text-2); }
.hours-row.off .hours-t { display: none; }
.hours-row.off .closed { display: block; }
.hours-row.off b { color: var(--text-2); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #C9D3DF; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.svc-list { margin-bottom: 4px; }
.svc-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 10px; margin-bottom: 8px; }
.svc-row input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--primary); }
.svc-row .svc-name { flex: 1; min-width: 0; border: 0; font-size: 16px; padding: 8px 4px; background: none; }
.svc-row .dur { flex: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 6px; font-size: 16px; background: var(--surface); max-width: 104px; }
.svc-row .svc-price { width: 78px; flex: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 6px; font-size: 16px; }
.x { width: 36px; height: 36px; flex: none; font-size: 22px; color: var(--text-2); }
.staff-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 12px; margin-bottom: 8px; }
.staff-row .dot { width: 28px; height: 28px; border-radius: 50%; flex: none; cursor: pointer; }
.staff-row input { flex: 1; min-width: 0; border: 0; font-size: 17px; padding: 10px 4px; background: none; }
.staff-row select.buf { flex: none; max-width: 46%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 6px; font: inherit; font-size: 16px; color: var(--primary-dark); background: var(--surface); }
/* trajanje u terminu */
.dur-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.dur-row:empty { display: none; }
.dur-row span { color: var(--text-2); font-size: 15px; }
.dur-row b { font-size: 18px; color: var(--primary-dark); min-width: 92px; }
.dur-b { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 24px; font-weight: 600; color: var(--primary); line-height: 1; }
.dur-b:active { background: var(--primary-light); }
/* nedelja */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 6px; align-items: start; }
.wk > .loading-line, .wk > .note { grid-column: 1 / -1; }
.wk-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-h { display: flex; flex-direction: column; align-items: center; padding: 7px 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.wk-h small { font-size: 11px; color: var(--text-2); }
.wk-h b { font-size: 18px; color: var(--primary-dark); }
.wk-col.now .wk-h { background: var(--primary); }
.wk-col.now .wk-h small, .wk-col.now .wk-h b { color: #fff; }
.wk-col.closed .wk-h { opacity: .5; }
.wk-a { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; text-align: left; background: var(--surface); border-radius: 8px; border-left: 3px solid var(--brand); padding: 5px 4px 5px 5px; box-shadow: var(--shadow); }
.wk-a b { font-size: 12px; color: var(--primary-dark); }
.wk-a span { font-size: 11px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-a.off { opacity: .5; }
.wk-a.off span { text-decoration: line-through; }
.wk-staff { margin-bottom: 8px; }
/* naplaćeno */
.paid { margin-bottom: 14px; }
.paid .field { margin-bottom: 10px; }
.set-list .set-row { margin-bottom: 10px; }

/* pretplata */
.sub-state { margin: 6px 0 16px; }
.plan { position: relative; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 10px; border: 2px solid transparent; }
.plan b { font-size: 20px; color: var(--primary-dark); }
.plan p { margin: 2px 0 0; color: var(--text-2); }
.plan.best { border-color: var(--accent); }
.plan-tag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: #FFF1E4; border-radius: 999px; padding: 3px 10px; }
.tsel { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 6px; font-size: 16px; background: var(--surface); color: var(--text); }
.tsel[disabled] { opacity: .5; }
.hours-t .tsel { width: 84px; }
.hours-row b { width: 86px; }
.manual .tsel, .manual input[type=date] { width: 100%; min-height: 50px; margin-top: 6px; }
.free div { display: flex; flex-direction: column; }
.free div span { white-space: nowrap; }
.date-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.date-chips::-webkit-scrollbar { display: none; }
.chip.dch { flex-direction: column; gap: 0; min-width: 66px; flex: none; justify-content: center; }
.chip.dch b { font-size: 15px; }
.chip.dch.closed { opacity: .5; }
.times { margin-top: 10px; }

/* ------- uvod: znak podignut iznad sredine ekrana */
.screen.splash { padding-bottom: calc(16vh + var(--safe-bottom)); }

/* iPhone uveličava ekran kad se dodirne polje sa slovima manjim od 16 px i ne vraća ga, pa se strana iseče levo i desno.
   Zato su sva polja za upis i izbor najmanje 16 px. */
input, select, textarea { font-size: max(16px, 1em); }
/* Uski telefoni (širina ispod 360 px): vremena radnog dana prelaze u drugi red, da ništa ne izlazi van ekrana. */
@media (max-width: 359px) { .hours-row { flex-wrap: wrap; } .hours-row .hours-t { width: 100%; justify-content: flex-end; } }

/* Boje kockica na početnoj: Kalendar duboka plava, Slobodno danas zelena, Klijentela plava iz loga, Brendovi narandžasta, Salon svetloplava. */
.tile.hl-blue { background: #0A72F0; color: #fff; }
.tile.hl-green { background: #1E9E63; color: #fff; }
.tile.hl-blue svg, .tile.hl-green svg { stroke: #fff; }
.tile.hl-blue .sub, .tile.hl-green .sub { color: rgba(255, 255, 255, .88); }
.tile.hl-light { background: #E6F0FB; color: var(--primary-dark); box-shadow: none; border: 1.5px solid #CFE0F5; }
.tile.hl-light svg { stroke: var(--primary); }
.tile.hl-light .sub { color: #3F5878; }

/* Brzo pomeranje termina u detalju i poruka sa dugmetom „Vrati” */
.move { margin-bottom: 14px; }
.move-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.move .time-chips { margin-bottom: 6px; }
.move small { display: block; font-size: 13px; }
#toast.act { pointer-events: auto; display: flex; flex-direction: row; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; }
#toast.act button { color: #8EC5FF; font-weight: 700; font-size: 15px; padding: 4px 2px; }

/* Traka posle promene termina: ostaje dok frizer ne izađe iz termina */
.undo-bar { display: flex; align-items: center; gap: 12px; background: #FFF4E5; border: 1.5px solid #F3C98B; border-radius: 14px; padding: 10px 12px 10px 14px; margin: 4px 0 12px; color: #6B4A12; font-weight: 600; font-size: 15px; }
.undo-bar span { flex: 1; }
.undo-bar button { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 10px 18px; border-radius: 10px; }

/* ------- Zalihe i izveštaji */
.tile.hl-teal { background: #12827A; color: #fff; }
.tile.hl-purple { background: #6A4FC8; color: #fff; }
.tile.hl-teal svg, .tile.hl-purple svg { stroke: #fff; }
.tile.hl-teal .sub, .tile.hl-purple .sub { color: rgba(255, 255, 255, .88); }
.banner-check { background: #E7F6F4; border-color: #9ED8CF; }
.banner-check b { color: #0E6B64; }
.stock-acts { margin-bottom: 10px; }
.stock-acts .btn { margin-bottom: 10px; }
.stock-acts2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sbtn { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--primary); font-weight: 650; font-size: 15px; padding: 6px 8px; line-height: 1.15; }
.sbtn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sbtn .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; margin-left: 4px; }
.pgrp { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 16px 0 8px; }
.pkind { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin: 18px 0 2px; }
.prow { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 10px 10px 14px; margin-bottom: 8px; border-left: 4px solid transparent; }
.prow.low { border-left-color: var(--accent); }
.pinfo { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.pinfo b { font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.pinfo small { font-size: 13px; color: var(--text-2); }
.pinfo em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-dark); margin-top: 2px; }
.pqty { display: flex; align-items: center; gap: 4px; flex: none; }
.pqty button { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 600; color: var(--primary); line-height: 1; }
.pqty b { min-width: 30px; text-align: center; font-size: 18px; color: var(--primary-dark); }
.pqty input { width: 52px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); text-align: center; font-size: 17px; }
.psell { flex: none; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.pdel { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #F1C9C6; color: #B3261E; font-weight: 700; background: var(--surface); }
.steppers { display: grid; gap: 10px; margin: 6px 0 14px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper span { flex: 1; font-size: 15px; font-weight: 600; }
.stepper button { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 600; color: var(--primary); }
.stepper input { width: 70px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; font-size: 18px; }
.sale-card { margin: 4px 0 12px; } .sale-card b { display: block; font-size: 17px; } .sale-card small { color: var(--text-2); }
.sale-total { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin: 4px 0 12px; }
.chip.pchip { flex-direction: column; align-items: flex-start; gap: 0; }
.ord-card { margin-bottom: 14px; } .ord-h { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.ord-card .prow { box-shadow: none; background: var(--bg); }
.ord-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 6px 0 8px; }
.rcard { margin-bottom: 12px; } .rh { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.rbig { font-size: 26px; font-weight: 750; color: var(--primary-dark); margin-bottom: 6px; }
.rline { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rline:last-of-type { border-bottom: 0; } .rline b { white-space: nowrap; }
.rcard .btn { margin-top: 10px; }

/* Sakriveni elementi ostaju sakriveni i kad imaju svoj display (npr. .field). */
[hidden] { display: none !important; }

/* Katalog brenda (verzija 32): slika proizvoda u spisku i oznaka da je proizvod već na stanju. */
.pthumb { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.pinfo em.has { color: var(--green, #1E9E63); }
.bmark.manual { background: #E4EAF2; color: var(--primary); }
.cat-row .pinfo small { line-height: 1.35; }
.prow.two { flex-wrap: wrap; row-gap: 6px; }
.prow.two .pinfo { flex: 1 1 calc(100% - 60px); }
.prow.two .pctl { flex: 1 1 100%; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cat-row .pinfo .prices span { white-space: nowrap; }
.pinfo em.has { white-space: nowrap; }

/* Verzija 33: profil salona, lokacija, link i QR kod, pretplata. */
.set-row em.miss { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.photo-box { position: relative; border-radius: 18px; overflow: hidden; background: #E4EAF2; aspect-ratio: 16 / 10; margin-bottom: 10px; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-box.busy::after { content: 'Čuvam…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); font-weight: 700; color: var(--primary); }
.photo-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); }
.photo-empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.loc-card { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.loc-card > svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--primary); stroke-width: 1.8; }
.loc-card.warn > svg { stroke: var(--accent-dark); }
.loc-card div { flex: 1; min-width: 0; }
.loc-card b { display: block; color: var(--primary-dark); }
.loc-card small { color: var(--text-2); font-size: 13px; }
.chip-s { font-size: 14px; padding: 7px 12px; margin: -4px 0 10px; }
.field small.muted { display: block; margin-top: 4px; font-size: 13px; }
.map { height: 58vh; min-height: 300px; border-radius: 16px; overflow: hidden; margin-bottom: 10px; background: #E4EAF2; }
.map-screen .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; }
.link-card small { display: block; color: var(--text-2); }
.link-card b { display: block; font-size: 16px; color: var(--primary-dark); word-break: break-all; margin: 2px 0 6px; }
.qr-card { text-align: center; padding: 18px; margin-top: 14px; }
.qr-card canvas { width: 220px; height: 220px; image-rendering: pixelated; display: block; margin: 0 auto 8px; }
.qr-card b { display: block; color: var(--primary-dark); font-size: 17px; }
.qr-card small { color: var(--text-2); }
.plan-price { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; color: var(--text-2); font-size: 15px; }
.plan-price em { font-style: normal; font-weight: 700; font-size: 18px; color: var(--primary-dark); }
.plan-price i { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.plan small.muted { font-size: 13px; }
.inv-state b { display: block; color: var(--primary-dark); }
.inv-state small { color: var(--text-2); font-size: 14px; }
.inv-sum { margin-top: 12px; }
.inv-sum .rline.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.inv-sum .rline.total b { font-size: 18px; color: var(--primary-dark); }

/* Verzija 34: nalozi zaposlenih. */
.staff-row { flex-wrap: wrap; }
.staff-row .x-ph { width: 36px; flex: none; }
.staff-row .acct { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.staff-row .acct small { color: var(--text-2); font-size: 13px; }
.staff-row .acct-aktivan small, .staff-row .acct-vlasnik small { color: #1E9E63; font-weight: 600; }
.staff-row .acct-pozvan small { color: var(--accent-dark); font-weight: 600; }
.staff-row .acct-iskljucen small { color: #B23A31; font-weight: 600; }
.staff-row .acct .sbtn { flex: none; padding: 8px 12px; }
.staff-row .acct .invite-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.inv-msg { font-size: 15px; line-height: 1.5; color: var(--text); word-break: break-word; }
.ro-note { text-align: left; background: #EEF3FA; border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; font-size: 14px; }
.pqty.ro { gap: 4px; padding: 0 6px; }
.pqty.ro small { color: var(--text-2); font-size: 13px; }

/* Verzija 35: zarada po osobi i lični izveštaj. */
.pay-line small { color: var(--text-2) !important; font-weight: 500 !important; }
.per-chips { margin-bottom: 4px; }
.pcard .pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pcard .pc-head b { font-size: 19px; color: var(--primary-dark); }
.pcard .pc-head span { font-size: 22px; font-weight: 700; color: #1E9E63; white-space: nowrap; }
.pcard .rh { margin-top: 14px; }
.pcard .rline.item span { font-size: 14px; }
.pcard .rline.item small { display: block; color: var(--text-2); font-size: 12.5px; }
.pcard .rline.sum span, .pcard .rline.sum b { font-weight: 700; color: var(--primary-dark); }
.pcard .rline.total { border-top: 2px solid var(--line); border-bottom: 0; margin-top: 6px; padding-top: 10px; }
.pcard .rline.total b { font-size: 19px; color: #1E9E63; }
.pcard .rline.bon { align-items: center; }
.pcard .bx { width: 30px; height: 30px; flex: none; margin-left: 6px; border-radius: 8px; color: var(--text-2); font-size: 18px; }
.rcard .rline.total b { color: #1E9E63; }

/* Verzija 36: traka o vezi, termini koji čekaju internet. */
#netbar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding: calc(env(safe-area-inset-top) + 6px) 16px 7px; background: #5B6B80; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; border: 0; width: 100%; }
#netbar.busy { background: var(--primary); }
#netbar.bad { background: #B23A31; }
#netbar[hidden] { display: none; }
body.has-netbar .screen { padding-top: calc(44px + var(--safe-top)); }
.appt.pending { border-style: dashed; border-left-style: solid; opacity: .85; }
.appt.pending em { color: #8A6A2E; }
.fail-card { color: #7A1E17; background: #FDECEA; }
.staff-row .acct .acct-btns { display: flex; gap: 6px; flex: none; }

/* Verzija 38: obaveštenja i mesečni izveštaj. */
.seg.four button { font-size: 14px; padding: 9px 2px; }
.notif-state .ns-msg b { display: block; color: var(--primary-dark); } .notif-state .ns-msg b.ok { color: #1E9E63; }
.notif-state .ns-msg small { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; }
.notif-state .ns-btns .btn { margin-top: 12px; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tgl:last-child { border-bottom: 0; }
.tgl b { display: block; color: var(--primary-dark); font-size: 15.5px; } .tgl small { color: var(--text-2); font-size: 13px; }
.tgl input { width: 46px; height: 28px; flex: none; accent-color: var(--primary); }
.rbig.neg { color: #B23A31; }
.cmp { display: block; font-size: 13px; font-weight: 600; margin: 2px 0 6px; } .cmp.up { color: #1E9E63; } .cmp.down { color: #B23A31; }
.rh.sub { margin-top: 12px; }
.rcard .rline span small { color: var(--text-2); font-size: 12.5px; font-weight: 400; }
.rcard small.muted { display: block; margin-top: 2px; }
.rcard.cost .rline.total b { color: var(--primary-dark); }

/* Kormilo · Pronađi salon u blizini (verzija 39) */
.form-head h2 { line-height: 1.2; }
.center { text-align: center; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.top h1 { margin: 0; font-size: 24px; color: var(--primary-dark); } .top img { width: 36px; height: 36px; }
.soon b { display: block; color: var(--primary-dark); font-size: 17px; margin-bottom: 6px; } .soon p { margin: 0; color: var(--text-2); }
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-bottom)); z-index: 20; }
nav.bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); padding: 4px 0; }
nav.bottom button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
nav.bottom button.on { color: var(--primary); font-weight: 700; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tgl b { display: block; color: var(--primary-dark); } .tgl small { color: var(--text-2); font-size: 13px; } .tgl input { width: 46px; height: 28px; flex: none; accent-color: var(--primary); }
details.danger { margin-top: 18px; } details.danger summary { color: #B23A31; font-weight: 600; padding: 10px 0; cursor: pointer; }
.btn-danger { background: #B23A31; color: #fff; }
