/* =========================================================================
   site.css — sajt za klijente (crna tema kao logo)
   ========================================================================= */
:root {
  --bg: #000;
  --fg: #fff;
  --mut: #9b9b9b;
  --line: #2b2b2b;
  --kartica: #0e0e0e;
  --kartica2: #181818;
  --crvena: #ff4d4f;
  --zelena: #3ddc84;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-nasl: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #0b0b0b;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-nasl); margin: 0; }
[hidden] { display: none !important; }
svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- okvir aplikacije (na telefonu preko celog ekrana, na računaru uska kolona) ---------- */
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.app {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  align-self: center;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px #1c1c1c;
}
.app::before { /* blagi vodeni žig logoa */
  content: "";
  position: absolute;
  inset: 0;
  background: url(../slike/logo.png) center 62% / 92% auto no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.app:has(.home)::before, .app:has(.auth)::before, .app:has(.gotovo)::before { display: none; }
.logo { mix-blend-mode: screen; }
.demo-traka {
  flex: none; z-index: 90;
  background: #f5c400; color: #000; font-size: 12px; font-weight: 700; text-align: center; padding: 4px 8px;
}

.page { position: relative; display: flex; flex-direction: column; height: 100%; }
.scroll { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- zaglavlje ---------- */
.top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px 12px 8px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.top h1 { text-align: center; font-size: 17px; font-weight: 700; }
.ib {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
}
.ib:active { background: #1e1e1e; }
.steps { position: relative; height: 2px; background: var(--line); margin: 0 0 6px; }
.steps i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; transition: width .3s; }
.steps b {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); transition: left .3s;
}

/* ---------- dugmad ---------- */
.dugme {
  appearance: none; border: 0; background: #fff; color: #000; font-weight: 700; font-size: 16px;
  height: 52px; padding: 0 28px; border-radius: 999px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.dugme:active { transform: scale(.985); }
.dugme:disabled { background: #6c6c6c; color: #151515; cursor: not-allowed; transform: none; }
.dugme-obris {
  appearance: none; background: transparent; color: #fff; border: 1.5px solid #fff; border-radius: 999px;
  height: 46px; padding: 0 22px; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.dugme-obris:disabled { opacity: .5; }
.dugme-crveno {
  appearance: none; border: 0; background: var(--crvena); color: #fff; font-weight: 700; border-radius: 999px;
  height: 40px; padding: 0 20px; font-size: 14px;
}
.link { appearance: none; border: 0; background: none; padding: 0; color: #fff; font-weight: 700; font-size: 14px; }

/* ---------- donja traka ---------- */
.dno {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #fff; background: var(--bg); position: relative; z-index: 2;
}
.dno .zbir { display: flex; flex-direction: column; line-height: 1.15; }
.dno .zbir:empty { display: none; }
.dno .zbir strong { font-size: 20px; font-family: var(--font-nasl); white-space: nowrap; }
.dno .zbir span { font-size: 12.5px; color: #8ab6ff; margin-top: 2px; white-space: nowrap; }
.dno .dugme { flex: 1; }

/* ---------- početna ---------- */
.home { padding: 0 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.profil-link {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; margin-top: calc(12px + env(safe-area-inset-top));
  font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.5);
}
.home-gore { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 0; padding: 8px 0; }
.home-gore .logo { width: min(78%, 330px); margin: 0 auto 18px; }
.home h1 { font-size: 26px; line-height: 1.2; }
.lead { color: #d0d0d0; font-size: 15.5px; margin: 10px auto 0; max-width: 360px; }
.prednosti { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 16px 0 0; color: var(--mut); font-size: 13px; font-weight: 600; }
.prednosti li::before { content: "✓ "; color: #fff; }
.home-akcije { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; min-height: 34%; justify-content: flex-end; }
.velika {
  appearance: none; width: 100%; text-align: left; display: flex; align-items: center; gap: 14px;
  background: rgba(14,14,14,.92); border: 1.5px solid #fff; border-radius: 20px; padding: 18px 18px; min-height: 84px;
}
.velika > svg:first-child { font-size: 26px; }
.velika span { flex: 1; display: flex; flex-direction: column; }
.velika b { font-family: var(--font-nasl); font-size: 20px; }
.velika small { color: var(--mut); font-size: 13px; margin-top: 2px; }
.velika:active { background: #1a1a1a; }

/* ---------- prijava / registracija ---------- */
.auth .scroll { padding: 0 22px 28px; }
.auth .logo { width: min(64%, 260px); margin: calc(18px + env(safe-area-inset-top)) auto 14px; }
.tabovi { display: grid; grid-template-columns: 1fr 1fr; background: var(--kartica2); border-radius: 999px; padding: 4px; margin: 6px 0 18px; }
.tabovi button { border: 0; background: none; height: 40px; border-radius: 999px; font-weight: 700; color: var(--mut); }
.tabovi button.aktivan { background: #fff; color: #000; }
.polje { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.polje label { font-size: 13px; font-weight: 600; color: #cfcfcf; }
.polje .ulaz { position: relative; }
.polje input {
  width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid #3a3a3a; background: var(--kartica); color: #fff;
  font: inherit; font-size: 16px; padding: 0 16px;
}
.polje input:focus { outline: none; border-color: #fff; }
.polje input.greska { border-color: var(--crvena); }
.polje .oko { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--mut); display: grid; place-items: center; }
.greska-poruka { color: var(--crvena); font-size: 14px; min-height: 20px; margin: 0 0 10px; font-weight: 600; }
.sitno { color: var(--mut); font-size: 12.5px; text-align: center; margin: 14px 0 0; }

/* ---------- izbor frizera ---------- */
.frizeri { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; }
.frizer {
  position: relative; border: 1.5px solid #3a3a3a; background: var(--kartica); border-radius: 18px;
  padding: 22px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.frizer img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #222; }
.frizer b { font-family: var(--font-nasl); font-size: 17px; }
.frizer .kruzic { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #8a8a8a; display: grid; place-items: center; }
.frizer .kruzic svg { width: 12px; height: 12px; stroke-width: 3.2; opacity: 0; }
.frizer.izabran { border-color: #fff; background: #1a1a1a; }
.frizer.izabran .kruzic { background: #fff; border-color: #fff; color: #000; }
.frizer.izabran .kruzic svg { opacity: 1; }

/* ---------- usluge ---------- */
.kat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.kat-nav::-webkit-scrollbar { display: none; }
.kat-nav button {
  flex: none; border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 13.5px; height: 34px;
  padding: 0 16px; border-radius: 999px; white-space: nowrap;
}
.kat-nav button.aktivan { background: #fff; color: #000; }
.sekcija h2 { font-size: 24px; padding: 18px 16px 8px; }
.usl { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.usl img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: #1b1b1b; flex: none; }
.usl-tx { flex: 1; min-width: 0; align-self: center; }
.usl h3 { font-size: 16px; font-weight: 600; font-family: var(--font); line-height: 1.25; }
.usl .meta { margin: 4px 0 2px; font-size: 13.5px; font-weight: 700; }
.usl .opis { margin: 4px 0 2px; font-size: 13px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.usl.otvoreno .opis { display: block; -webkit-line-clamp: unset; }
.usl .detalj { margin: 6px 0 2px; font-size: 13px; color: var(--mut); }
.usl .plus {
  flex: none; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #8a8a8a; background: transparent;
  display: grid; place-items: center; transition: all .15s;
}
.usl .plus svg { width: 20px; height: 20px; transition: transform .15s; }
.usl.izabrana .plus { background: #fff; color: #000; border-color: #fff; }
.usl.izabrana .plus svg { transform: rotate(0); }
.usl.izabrana { background: linear-gradient(90deg, rgba(255,255,255,.06), transparent); }

/* ---------- termini ---------- */
.termin-gore { padding: 4px 16px 0; }
.frizer-cip {
  display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #fff; border-radius: 999px; padding: 4px 16px 4px 4px; font-weight: 700; font-size: 14px;
}
.frizer-cip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mesec-red { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.mesec-red .mesec { border: 0; background: none; font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.mesec-red .nav { display: inline-flex; align-items: center; gap: 2px; }
.mesec-red .nav .ib { width: 36px; height: 36px; font-size: 17px; }
.mesec-red .nav button:disabled { opacity: .3; }
.danas-dugme { border: 0; background: none; font-weight: 700; font-size: 15px; padding: 6px 8px; }
.danas-dugme:disabled { opacity: .35; }
.nedelja { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 8px 8px; }
.dan { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; padding: 4px 0; }
.dan span { font-size: 11.5px; letter-spacing: .03em; }
.dan b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.dan.aktivan b { background: #fff; color: #000; }
.dan:disabled { opacity: .3; cursor: default; }
.sati { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); justify-content: center; gap: 12px; padding: 18px 16px 26px; }
.sat {
  height: 46px; border-radius: 12px; border: 1px solid #5a5a5a; background: rgba(0,0,0,.55); font-weight: 600; font-size: 15.5px;
}
.sat:active { background: #222; }
.sat.izabran { background: #fff; color: #000; border-color: #fff; font-weight: 800; }
.nema { text-align: center; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nema p { margin: 0; font-size: 16px; font-weight: 600; color: #e0e0e0; }
.ucitava { text-align: center; color: var(--mut); padding: 40px 16px; }

.mesec-pop {
  position: absolute; z-index: 20; left: 12px; right: 12px; top: 138px; background: #111; border: 1px solid #444; border-radius: 18px;
  padding: 12px 12px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.7);
}
.mesec-pop .glava { display: flex; align-items: center; justify-content: space-between; font-weight: 700; padding: 0 4px 8px; }
.mesec-pop .mreza { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mesec-pop .mreza small { color: var(--mut); font-size: 11px; font-weight: 700; padding: 6px 0; }
.mesec-pop .mreza button { height: 38px; border: 0; background: none; border-radius: 50%; font-weight: 600; font-size: 14.5px; }
.mesec-pop .mreza button:disabled { opacity: .25; }
.mesec-pop .mreza button.aktivan { background: #fff; color: #000; }
.mesec-pop .mreza button.danas { box-shadow: inset 0 0 0 1.5px #666; }

/* ---------- modal / donji panel ---------- */
.modal-pozadina {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); display: flex; align-items: flex-end; justify-content: center;
  animation: bled .18s ease-out;
}
@keyframes bled { from { opacity: 0; } to { opacity: 1; } }
@keyframes izlazi { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal {
  width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: #101010; border: 1px solid #333; border-bottom: 0;
  border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: izlazi .22s ease-out;
}
.modal.sredina { border-radius: 24px; border-bottom: 1px solid #333; margin: auto 16px; width: auto; }
.modal-pozadina.sredina { align-items: center; }
.modal h2 { font-size: 21px; margin-bottom: 14px; }
.red-info { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #222; font-size: 15px; }
.red-info svg { color: var(--mut); font-size: 20px; }
.red-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.red-info .gr { color: var(--mut); font-size: 13px; }
.stavke { padding: 10px 0 4px; font-size: 14.5px; }
.stavke div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.stavke div span:last-child { white-space: nowrap; font-weight: 600; }
.stavke .popust { color: var(--zelena); }
.stavke .ukupno { border-top: 1px solid #2c2c2c; margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 800; font-family: var(--font-nasl); }
.promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid #3a3a3a; background: #0a0a0a; color: #fff; padding: 0 14px; font: inherit; text-transform: uppercase; }
.promo input:focus { outline: none; border-color: #fff; }
.promo .dugme-obris { height: 46px; padding: 0 18px; }
.promo-poruka { font-size: 13px; min-height: 18px; margin: 4px 0 0; font-weight: 600; }
.promo-poruka.ok { color: var(--zelena); }
.promo-poruka.ne { color: var(--crvena); }
.napomena { font-size: 13.5px; color: #cfcfcf; background: #1a1a1a; border-radius: 12px; padding: 12px 14px; margin: 14px 0 16px; display: flex; gap: 10px; }
.napomena svg { color: #8ab6ff; margin-top: 1px; }
.modal .dugme + .dugme-obris { margin-top: 10px; width: 100%; }
.dva-dugmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dva-dugmeta .dugme, .dva-dugmeta .dugme-obris, .dva-dugmeta .dugme-crveno { width: 100%; height: 48px; padding: 0 8px; }

/* ---------- moji termini ---------- */
.profil .scroll { padding: 4px 16px 24px; }
.ja { display: flex; align-items: center; gap: 14px; padding: 8px 0 16px; }
.ja .avatar { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-family: var(--font-nasl); font-weight: 800; font-size: 20px; }
.ja b { display: block; font-size: 17px; font-family: var(--font-nasl); }
.ja span { color: var(--mut); font-size: 14px; }
.naslov-sek { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin: 20px 0 10px; font-family: var(--font); font-weight: 700; }
.rez { background: var(--kartica); border: 1px solid #2e2e2e; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.rez.otkazana { opacity: .6; }
.rez .gore { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rez .datum { font-family: var(--font-nasl); font-weight: 700; font-size: 16px; }
.rez .vreme { color: #cfcfcf; font-size: 14px; margin-top: 2px; }
.rez .kod { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mut); margin-top: 10px; }
.rez .kod img { width: 22px; height: 22px; border-radius: 50%; }
.rez .us { font-size: 14px; margin: 8px 0 0; color: #e6e6e6; }
.rez .dole { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.rez .cena { font-weight: 800; font-family: var(--font-nasl); }
.znacka { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #222; color: #cfcfcf; white-space: nowrap; }
.znacka.otk { background: #3a1517; color: #ff8a8c; }
.znacka.ok { background: #12301f; color: #62e29a; }
.prazno { color: var(--mut); text-align: center; padding: 22px 8px; font-size: 14.5px; }
.profil .odjava { margin-top: 26px; }

/* ---------- gotovo ---------- */
.gotovo .scroll { padding: 0 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.krug-ok { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; margin: 10px auto 18px; animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.krug-ok svg { width: 44px; height: 44px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.gotovo h1 { font-size: 26px; }
.gotovo .kartica { text-align: left; width: 100%; margin: 20px 0; background: var(--kartica); border: 1px solid #2e2e2e; border-radius: 18px; padding: 6px 16px; }
.gotovo .donja { padding: 0 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }

/* ---------- obaveštenje ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 200;
  background: #fff; color: #000; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px; max-width: min(92vw, 440px);
  text-align: center; opacity: 0; pointer-events: none; transition: all .22s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #333; border-top-color: #fff; animation: vrti .8s linear infinite; margin: 40vh auto 0; }
@keyframes vrti { to { transform: rotate(360deg); } }

/* =========================================================================
   ANIMACIJE
   ========================================================================= */
@keyframes strana-ulaz { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes red-ulaz { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes iz-leva { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes skala-ulaz { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes lebdi { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pop-izbor { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes sjaj { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
@keyframes crtaj-ok { to { stroke-dashoffset: 0; } }
@keyframes raste { from { width: 0; } }
@keyframes klizi { from { left: 0; } }
@keyframes pop-gore { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

/* kašnjenje po redu (--i se upisuje u svaki element liste), najviše ~0,6 s */
.usl, .frizer, .rez, .velika, .sati.ulaz .sat, .nedelja.ulaz .dan {
  animation: red-ulaz .5s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: min(calc(var(--i, 0) * 45ms), 600ms);
}
.nedelja.ulaz .dan { animation-name: skala-ulaz; animation-duration: .35s; animation-delay: min(calc(var(--i, 0) * 35ms), 300ms); }

.page { animation: strana-ulaz .4s cubic-bezier(.2, .8, .2, 1) both; }
.top h1 { animation: skala-ulaz .45s .05s both; }
.steps i { animation: raste .7s cubic-bezier(.2, .8, .2, 1); }
.steps b { animation: klizi .7s cubic-bezier(.2, .8, .2, 1); }
.kat-nav { animation: iz-leva .45s .1s both; }
.dno { animation: strana-ulaz .45s .15s both; }

/* početna */
.home-gore .logo { animation: skala-ulaz .8s cubic-bezier(.2, .8, .2, 1) both, lebdi 5s 1s ease-in-out infinite; }
.home h1 { animation: strana-ulaz .6s .25s both; }
.home .lead { animation: strana-ulaz .6s .38s both; }
.home .prednosti li { animation: strana-ulaz .5s both; }
.home .prednosti li:nth-child(1) { animation-delay: .5s; }
.home .prednosti li:nth-child(2) { animation-delay: .6s; }
.home .prednosti li:nth-child(3) { animation-delay: .7s; }
.profil-link { animation: iz-leva .5s .1s both; }
.home-akcije .velika { animation-delay: calc(.55s + var(--i, 0) * 120ms); }
.auth .logo { animation: skala-ulaz .7s cubic-bezier(.2, .8, .2, 1) both; }
.auth .tabovi, .auth form, .auth .sitno { animation: strana-ulaz .55s .15s both; }

/* dodir i prelazi */
.dugme, .dugme-obris, .dugme-crveno, .velika, .frizer, .sat, .dan b, .plus, .ib, .cip, .tabovi button {
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.dugme-obris:active, .dugme-crveno:active, .velika:active, .frizer:active, .sat:active { transform: scale(.96); }
.velika:hover, .frizer:hover { border-color: #fff; }
.sat:hover { border-color: #fff; }
.dugme:not(:disabled):hover { box-shadow: 0 0 0 4px rgba(255,255,255,.14); }
.frizer.izabran { animation: red-ulaz .5s cubic-bezier(.2, .8, .2, 1) both, sjaj .6s ease-out; animation-delay: min(calc(var(--i, 0) * 45ms), 600ms), 0s; }
.frizer.izabran .kruzic { animation: pop-izbor .35s ease-out; }
.frizer img { transition: transform .3s ease; }
.frizer.izabran img { transform: scale(1.06); }
.usl.izabrana .plus { animation: pop-izbor .35s ease-out; }
.usl { transition: background .3s ease; }
.usl img { transition: transform .3s ease; }
.usl.izabrana img { transform: scale(1.04); }
.sat.izabran { animation: pop-izbor .3s ease-out; }
.sati.ulaz .sat.izabran { animation: red-ulaz .5s cubic-bezier(.2, .8, .2, 1) both, pop-izbor .3s ease-out; animation-delay: min(calc(var(--i, 0) * 45ms), 600ms), 0s; }
.dan.aktivan b { animation: pop-izbor .3s ease-out; }
.kat-nav button { transition: background-color .25s ease, color .25s ease; }
.mesec-pop { animation: pop-gore .22s ease-out both; transform-origin: top center; }
.nema.ulaz { animation: strana-ulaz .45s both; }
.dno .zbir strong { transition: color .2s; }
.usl .opis { transition: all .2s; }

/* potvrda i gotovo */
.modal-pozadina { animation: bled .2s ease-out both; }
.modal.sredina { animation: skala-ulaz .25s cubic-bezier(.2, .9, .3, 1.2) both; }
.red-info, .stavke > div, .promo, .napomena { animation: strana-ulaz .4s both; }
.red-info:nth-of-type(1) { animation-delay: .05s; }
.red-info:nth-of-type(2) { animation-delay: .1s; }
.red-info:nth-of-type(3) { animation-delay: .15s; }
.krug-ok svg path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: crtaj-ok .5s .35s ease-out forwards; }
.krug-ok { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both, sjaj 1.2s .5s ease-out; }
.gotovo h1 { animation: strana-ulaz .5s .3s both; }
.gotovo .lead { animation: strana-ulaz .5s .4s both; }
.gotovo .kartica { animation: strana-ulaz .55s .5s both; }
.gotovo .donja > * { animation: strana-ulaz .5s .65s both; }
.ja { animation: iz-leva .5s both; }

/* ---- nestajanje, pojavljivanje i prelazi ---- */
@keyframes strana-izlaz { to { opacity: 0; transform: translateY(-10px); } }
@keyframes stavka-izlaz { from { max-height: var(--h, 160px); opacity: 1; } to { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-width: 0; transform: translateX(36px); } }
@keyframes bled-iz { to { opacity: 0; } }
@keyframes modal-iz { to { opacity: 0; transform: translateY(40px); } }
@keyframes modal-iz-sredina { to { opacity: 0; transform: scale(.92); } }
@keyframes iskoci { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes tresi { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes nova-ulaz { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.page.izlaz { animation: strana-izlaz .15s ease-in forwards !important; pointer-events: none; }
.izlazi-stavka { overflow: hidden; animation: stavka-izlaz .3s cubic-bezier(.4, 0, .2, 1) forwards !important; }
.nova-stavka { animation: nova-ulaz .5s cubic-bezier(.2, .8, .2, 1) both !important; }
.mirno .rez { animation: none; }
.modal-pozadina.izlaz { animation: bled-iz .2s ease-in forwards !important; }
.modal-pozadina.izlaz .modal { animation: modal-iz .2s ease-in forwards !important; }
.modal-pozadina.izlaz .modal.sredina { animation: modal-iz-sredina .2s ease-in forwards !important; }
.mesec-pop.izlaz { animation: bled-iz .16s ease-in forwards !important; }
.mesec-pop.bez-ulaza { animation: none; }
.dno .zbir.bump strong { display: inline-block; animation: iskoci .35s ease-out; transform-origin: left center; }
.dno .zbir.bump span { animation: strana-ulaz .3s both; }
.tab-promena, .tab-promena .logo, .tab-promena .tabovi, .tab-promena .sitno { animation: none !important; }
.tab-promena form { animation: strana-ulaz .3s both; }
.polje input.greska { animation: tresi .35s; }
.greska-poruka:not(:empty) { animation: strana-ulaz .3s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- računar: šira kolona preko cele visine, sa pozadinom ---------- */
@media (min-width: 760px) {
  body {
    background: radial-gradient(1100px 700px at 50% -10%, #1d1d1d, #0a0a0a 62%);
  }
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: url(../slike/logo.png) center 55% / min(72vw, 1000px) auto no-repeat; opacity: .03;
  }
  .app { max-width: 640px; box-shadow: 0 0 0 1px #262626, 0 0 120px rgba(0, 0, 0, .9); }
  .top h1 { font-size: 19px; }
  .home { padding: 0 44px calc(32px + env(safe-area-inset-bottom)); }
  .home-gore .logo { width: min(70%, 400px); }
  .home h1 { font-size: 32px; }
  .lead { font-size: 17px; max-width: 480px; }
  .prednosti { font-size: 14px; }
  .velika { min-height: 92px; padding: 20px 24px; }
  .velika b { font-size: 22px; }
  .auth .scroll { padding: 0 60px 30px; }
  .frizeri { gap: 18px; padding: 24px 28px; }
  .frizer { padding: 30px 12px 22px; }
  .frizer img { width: 120px; height: 120px; }
  .frizer b { font-size: 19px; }
  .sekcija h2 { padding: 22px 28px 10px; font-size: 26px; }
  .usl { padding: 16px 28px; gap: 18px; }
  .usl img { width: 100px; height: 100px; }
  .usl h3 { font-size: 17.5px; }
  .usl .meta { font-size: 14.5px; }
  .kat-nav { padding: 6px 28px 12px; }
  .termin-gore { padding: 6px 28px 0; }
  .mesec-red { padding: 18px 28px 8px; }
  .nedelja { padding: 8px 20px 10px; }
  .dan b { width: 46px; height: 46px; font-size: 18px; }
  .sati { grid-template-columns: repeat(2, minmax(0, 170px)); gap: 14px; }
  .sat { height: 50px; font-size: 16.5px; }
  .dno { padding: 18px 28px; }
  .profil .scroll { padding: 6px 28px 28px; }
  .gotovo .scroll { padding: 0 50px 20px; }
  .modal-pozadina { align-items: center; }
  .modal { max-width: 520px; border-radius: 26px; border-bottom: 1px solid #333; margin: 0 16px; }
  .mesec-pop { left: 28px; right: 28px; }
}
