/* UŽIVO+: ulaz sa zvukom i brojač sa stubovima. Brend: #8B5CF6 na #0B0614. */

/* ---------- Ulaz sa zvukom: ekran je UVIJEK tu, i bez JS animacije ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; overflow: hidden; display: grid; place-items: center; background: var(--noc); transition: opacity .5s; }
.preloader.ide { opacity: 0; pointer-events: none; }
.preloader[hidden] { display: none; }
html.ulaz-zakljucan { overflow: hidden; }
.pre-ulaz { animation: preUlazIn .5s .05s cubic-bezier(.2, .7, .3, 1) both; }
.pre-ulaz[hidden] { display: flex; }
@keyframes preUlazIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pre-count, .pre-bar { animation: preSkrij .4s .5s forwards; }
@keyframes preSkrij { to { opacity: 0; } }
.preloader .pre-plus { color: #8B5CF6; }
.pre-napomena { color: var(--magla); font-size: 14px; text-align: center; }
.pre-opet { color: var(--lila); font-weight: 700; font-size: 15px; text-align: center; }
.pre-tiho, .pre-eq { display: none !important; }
@media (prefers-reduced-motion: reduce) { .pre-ulaz { animation: none; } .pre-count, .pre-bar { animation: none; opacity: 0; } }

/* ---------- Hero 3D (planeta + telefon + ikonice); DOM telefon ostaje kao rezerva ---------- */
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.hero.s3d #hero3d { opacity: 1; }
.hero.s3d .hero-stars, .hero.s3d .planet, .hero.s3d .planet-photo, .hero.s3d .beams, .hero.s3d .halo, .hero.s3d .hero-stage .glass { display: none !important; }
.hero.s3d [data-hero-phone] { visibility: hidden !important; }
.hero.s3d { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hero.s3d.s3d-nad { cursor: grab; }
.hero.s3d.s3d-vuce, .hero.s3d.s3d-vuce * { cursor: grabbing !important; }
.h3d-savjet { position: absolute; left: 50%; top: -6px; transform: translate(-50%, 6px); margin: 0; z-index: 4; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #C4B5FD; background: rgba(11, 6, 20, .62); border: 1px solid rgba(196, 181, 253, .28); opacity: 0; pointer-events: none; transition: opacity .6s, transform .6s; }
.h3d-savjet.vidi { opacity: 1; transform: translate(-50%, 0); }
.h3d-prst { display: none; }
@media (pointer: coarse) { .h3d-mis { display: none; } .h3d-prst { display: inline; } }
/* manje svjetlucanja: globalno nebo je tiše, bez zrna */
.sky #stars { opacity: .42; }
.sky .grain { display: none; }

/* ---------- Brojač gledatelja sa stubovima i stvarnom cijenom (zlatna #F5C451 samo za cijenu) ---------- */
.brojac { padding-top: 72px; }
.br-wrap { display: grid; gap: 28px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .br-wrap { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; } }
.br-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border: 1px solid var(--linija-2); border-radius: var(--r-lg); background: var(--povrsina); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(196, 181, 253, .16), 0 24px 70px -30px rgba(139, 92, 246, .5); }
.br-oznaka { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--magla); }
.br-brojac { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 15vw, 88px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 35%, #C4B5FD 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .55)); }
.br-sati { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--linija-2); border-radius: 999px; background: rgba(12, 7, 22, .6); }
.br-sati button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--magla); font: 700 15px var(--body); cursor: pointer; transition: background .25s, color .25s; }
.br-sati button[aria-checked="true"] { background: linear-gradient(135deg, #6D3FE0, #8B5CF6); color: #fff; box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .4), 0 6px 22px rgba(139, 92, 246, .45); }
.br-sati button:focus-visible, .br-stub:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.br-ukupno { margin-top: 6px; }
.br-iznos, .br-zlato, .br-cijena { color: #F5C451; font-variant-numeric: tabular-nums; }
.br-iznos { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 11vw, 60px); line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 28px rgba(245, 196, 81, .28); }
.br-izbor { font-weight: 700; color: var(--mjesecina); font-size: 17px; }
.br-stopa { color: var(--magla); font-size: 15px; line-height: 1.5; }
.br-zlato { font-weight: 800; }
.br-napomena { color: var(--sjena); font-size: 13px; line-height: 1.5; }
.br-grafik { display: grid; position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 16px); align-items: end; min-height: 340px; padding: 8px 0 0; }
.br-stub { --maxh: clamp(170px, 46vw, 300px); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; gap: 8px; height: clamp(250px, 62vw, 380px); padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.br-cijena { font-size: clamp(11px, 2.9vw, 15px); font-weight: 800; opacity: calc(.8 * var(--s, 1)); transition: opacity .25s, transform .25s; }
.br-tijelo { position: relative; width: 100%; height: calc(var(--h) * var(--maxh) * var(--s, 1)); min-height: 10px; display: block; }
.br-fill { display: block; width: 100%; height: 100%; border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, rgba(196, 181, 253, .95) 0%, #8B5CF6 38%, rgba(109, 63, 224, .85) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(196, 181, 253, .35), 0 0 26px -4px rgba(139, 92, 246, .55);
  opacity: .62; transition: opacity .3s, box-shadow .3s; }
.br-stub:hover .br-fill { opacity: .8; }
.br-stub[aria-checked="true"] .br-fill { opacity: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(224, 214, 255, .7), 0 0 44px 2px rgba(167, 139, 250, .85); }
.br-stub[aria-checked="true"] .br-cijena { opacity: var(--s, 1); }
.br-broj { font-weight: 800; font-size: clamp(12px, 3.2vw, 16px); color: var(--magla); font-variant-numeric: tabular-nums; }
.br-stub[aria-checked="true"] .br-broj { color: #fff; }
@media (max-width: 899px) { .br-panel { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .br-fill, .br-cijena { transition: none; } }

.brojac::before { content: ''; position: absolute; inset: 8% 0 0; z-index: -1; background: radial-gradient(50% 48% at 68% 62%, rgba(124, 58, 237, .26), transparent 70%); pointer-events: none; }
.br-stub:hover .br-cijena { opacity: var(--s, 1); }

@media (max-width: 899px) {
  .br-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 12px; align-items: end; }
  .br-panel > * { grid-column: 1 / -1; }
  .br-oznaka { order: 0; } .br-brojac { order: 1; grid-column: 1; font-size: clamp(44px, 13vw, 64px); } .br-ukupno { order: 2; grid-column: 2; margin: 0 0 4px; text-align: right; }
  .br-iznos { font-size: clamp(30px, 9vw, 42px); }
  .br-sati { order: 3; justify-self: start; } .br-izbor { order: 4; } .br-stopa { order: 5; } .br-panel .btn { order: 6; justify-self: start; } .br-napomena { order: 7; }
  .br-grafik { min-height: 0; }
}

/* ---------- UŽIVO+ H: desktop = dvije kolone, telefon cijel na prvom ekranu ---------- */
@media (min-width: 900px) and (min-height: 520px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: 24px; min-height: 100vh; min-height: 100svh; padding: 84px max(48px, calc((100% - 1360px) / 2 + 48px)) 20px; text-align: left; }
  .hero-copy { grid-column: 1; align-items: flex-start; text-align: left; }
  .hero-title { font-size: clamp(36px, 4.3vw, 58px); }
  .hero-cta { justify-content: flex-start; }
  .hero-stage { grid-column: 2; margin-top: 0; height: min(680px, calc(100svh - 120px)); }
  .hero-stage .phone { width: calc((min(680px, 100svh - 120px) - 90px) / 2.1667); }
  .hc-stats { right: 4%; top: 12%; }
  .hc-order { left: 2%; bottom: 14%; }
}
/* mobitel: hint ispod telefona nije preko kartice "Gledatelji uživo" */
@media (max-width: 899px) { .h3d-savjet { top: -4px; font-size: 12px; padding: 6px 12px; } .hero-stage { margin-top: 44px; } .hc-stats { top: 9%; } }

/* ---------- UŽIVO+ I: logo B (oko) u headeru ---------- */
.logo img { display: block; height: 30px; width: auto; }
.logo { gap: 0; }

/* UŽIVO+ K: kartice se sklone kad je telefon okrenut leđima (--bk iz hero3d.js); filter/translate ne diraju GSAP transform/opacity */
.hero.s3d .hc-stats, .hero.s3d .hc-order { filter: opacity(var(--bk, 1)); translate: 0 calc((1 - var(--bk, 1)) * 18px); }
/* mobitel: telefon veći dio hero-a vidljiv odmah, viši i manji da leđa/logo ne sjedaju na rub ekrana */
@media (max-width: 899px) {
  .hero-stage { margin-top: 0; height: 500px; align-content: start; }
  .hero-stage .phone-wrap { margin-top: 38px; }
  .hero-stage .phone { width: 206px; }
  .hc-stats { top: 7%; }
}

/* ---------- UĐI: stakleni 3D objekat (ljubičasti #8B5CF6) s dubinom, pulsom, sjajem koji prati prst/miš/žiroskop i prelazom kroz dugme ---------- */
.u-scena { position: relative; display: grid; place-items: center; width: min(92vw, 380px); height: 190px; perspective: 900px; perspective-origin: 50% 40%; --sx: 32%; --sy: 18%; }
.u-scena::before { content: ''; position: absolute; left: 50%; top: 50%; width: 420px; height: 240px; margin: -120px 0 0 -210px; background: radial-gradient(closest-side, rgba(139, 92, 246, .5), rgba(124, 58, 237, .16) 60%, transparent); animation: uAura 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes uAura { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.preloader .pre-udji { display: block; position: relative; width: 252px; height: 86px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: none; box-shadow: none; font: inherit; color: #fff; cursor: pointer; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; animation: uPuls 2.4s ease-in-out infinite; transition: none; }
.preloader .pre-udji:hover, .preloader .pre-udji:active { transform: none; }
@keyframes uPuls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.u-nagib, .u-plutaj { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
.u-nagib { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; }
.u-plutaj { animation: uPlutaj 6s ease-in-out infinite; }
@keyframes uPlutaj { 0%, 100% { transform: translateY(0) rotateY(-9deg) rotateX(4deg); } 50% { transform: translateY(-7px) rotateY(9deg) rotateX(-4deg); } }
.u-dubina i { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(180deg, #4a28b8, #1d0c45); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.u-dubina i:nth-child(1) { transform: translateZ(-2px); } .u-dubina i:nth-child(2) { transform: translateZ(-4px); } .u-dubina i:nth-child(3) { transform: translateZ(-6px); }
.u-dubina i:nth-child(4) { transform: translateZ(-8px); } .u-dubina i:nth-child(5) { transform: translateZ(-10px); } .u-dubina i:nth-child(6) { transform: translateZ(-12px); }
.u-dubina i:nth-child(7) { transform: translateZ(-14px); } .u-dubina i:nth-child(8) { transform: translateZ(-16px); background: #0f0526; box-shadow: 0 30px 60px -6px rgba(124, 58, 237, .85), 0 0 0 1px rgba(139, 92, 246, .35); }
.u-lice { position: absolute; inset: 0; overflow: hidden; border-radius: 999px; transform: translateZ(0); background:
  radial-gradient(120% 150% at var(--sx) var(--sy), rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 40%),
  linear-gradient(160deg, rgba(196, 181, 253, .85) 0%, rgba(139, 92, 246, .92) 40%, rgba(88, 48, 200, .97) 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 -12px 20px rgba(40, 10, 110, .55), inset 0 0 0 1px rgba(224, 214, 255, .4), 0 0 38px 2px rgba(139, 92, 246, .75); }
.u-lice::before { content: ''; position: absolute; left: 7%; right: 7%; top: 6%; height: 44%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
.u-sjaj { position: absolute; inset: 0; background: radial-gradient(55% 95% at var(--sx) var(--sy), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%); mix-blend-mode: screen; }
.u-sjaj::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 22%; left: -30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: uPrelijev 3.4s ease-in-out infinite 1s; }
@keyframes uPrelijev { 0% { transform: translateX(0) skewX(-18deg); } 45%, 100% { transform: translateX(750%) skewX(-18deg); } }
.u-rub { position: absolute; inset: 0; border-radius: 999px; padding: 2px; background: conic-gradient(from var(--kut, 0deg), rgba(255, 255, 255, .95), rgba(196, 181, 253, .1) 25%, rgba(139, 92, 246, .55) 50%, rgba(196, 181, 253, .1) 75%, rgba(255, 255, 255, .95)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: uKut 4.5s linear infinite; }
@property --kut { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes uKut { to { --kut: 360deg; } }
.u-natpis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .07em; transform: translateZ(30px); text-shadow: 0 2px 0 rgba(60, 20, 140, .7), 0 0 20px rgba(255, 255, 255, .6); pointer-events: none; }
.u-zv { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7)); animation: uZv 1.2s ease-in-out infinite; }
@keyframes uZv { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.u-prsten { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(74deg); pointer-events: none; }
.u-prsten i { position: absolute; border-radius: 50%; border: 1.5px solid rgba(196, 181, 253, .42); box-shadow: 0 0 18px rgba(139, 92, 246, .35); animation: uKrug 7s linear infinite; }
.u-prsten i:nth-child(1) { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
.u-prsten i:nth-child(2) { width: 280px; height: 280px; margin: -140px 0 0 -140px; border-style: dashed; border-color: rgba(167, 139, 250, .3); animation-duration: 11s; animation-direction: reverse; }
.u-prsten i::after { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #EDE9FE; box-shadow: 0 0 14px 4px #A78BFA; }
@keyframes uKrug { to { transform: rotate(360deg); } }
.preloader .pre-ulaz { gap: 4px; }
.pre-napomena { margin-top: 2px; }
@media (max-width: 480px) { .preloader .pre-udji { width: 232px; height: 80px; } .u-natpis { font-size: 28px; } .u-prsten i:nth-child(1) { width: 300px; height: 300px; margin: -150px 0 0 -150px; } .u-prsten i:nth-child(2) { width: 256px; height: 256px; margin: -128px 0 0 -128px; } }
/* prelaz: pritisak, val svjetla, udarni prsten, zum KROZ dugme u sajt (0,5 s) */
.u-val, .u-udar { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; opacity: 0; }
.u-val { width: 260px; height: 260px; margin: -130px 0 0 -130px; background: radial-gradient(closest-side, #fff 0, rgba(237, 233, 254, .95) 25%, rgba(167, 139, 250, .65) 55%, rgba(139, 92, 246, 0) 100%); }
.u-udar { width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 3px solid rgba(237, 233, 254, .95); box-shadow: 0 0 30px 6px rgba(167, 139, 250, .8), inset 0 0 24px rgba(167, 139, 250, .6); }
.preloader.prelaz { pointer-events: none; animation: uPozadina .5s cubic-bezier(.4, 0, .6, 1) forwards; }
.preloader.prelaz .u-scena { animation: uZum .5s cubic-bezier(.55, 0, .25, 1) forwards; }
.preloader.prelaz .u-scena::before { animation: none; opacity: .0; }
.preloader.prelaz .pre-udji, .preloader.prelaz .u-plutaj, .preloader.prelaz .u-prsten i, .preloader.prelaz .u-rub, .preloader.prelaz .u-sjaj::after, .preloader.prelaz .u-zv { animation-play-state: paused; }
.preloader.prelaz .u-val { animation: uVal .5s cubic-bezier(.2, .6, .2, 1) forwards; }
.preloader.prelaz .u-udar { animation: uUdar .46s cubic-bezier(.15, .7, .2, 1) forwards; }
.preloader.prelaz .pre-logo, .preloader.prelaz .pre-napomena { animation: uBlijedi .22s ease-in forwards; }
@keyframes uZum { 0% { transform: scale(1); opacity: 1; } 14% { transform: scale(.9); opacity: 1; } 38% { transform: scale(2.6); opacity: .95; } 58% { transform: scale(6); opacity: 0; } 100% { transform: scale(6); opacity: 0; } }
@keyframes uVal { 0% { transform: scale(.2); opacity: 0; } 20% { opacity: .85; } 60% { opacity: .7; } 100% { transform: scale(9); opacity: 0; } }
@keyframes uUdar { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(15); opacity: 0; } }
@keyframes uPozadina { 0%, 35% { background-color: #0B0614; } 100% { background-color: rgba(11, 6, 20, 0); } }
@keyframes uBlijedi { to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .u-scena::before, .u-plutaj, .u-prsten i, .u-rub, .u-sjaj::after, .u-zv, .preloader .pre-udji { animation: none; }
  .u-nagib { transform: none; transition: none; }
  .preloader.prelaz { animation: uFade .3s ease forwards; }
  .preloader.prelaz .u-scena, .preloader.prelaz .u-val, .preloader.prelaz .u-udar { animation: none; }
  @keyframes uFade { to { opacity: 0; } }
}
.h3d-savjet { display: inline-flex; align-items: center; gap: 8px; text-transform: lowercase; letter-spacing: .02em; }
.h3d-strelice { animation: uStrelice 1.1s ease-in-out infinite; flex: none; }
@keyframes uStrelice { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .h3d-strelice { animation: none; } }
@media (min-width: 900px) {
  .u-scena { height: 250px; width: 440px; }
  .preloader .pre-udji { width: 330px; height: 108px; }
  .u-natpis { font-size: 40px; gap: 16px; }
  .u-zv { width: 34px; height: 34px; }
  .u-prsten i:nth-child(1) { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
  .u-prsten i:nth-child(2) { width: 370px; height: 370px; margin: -185px 0 0 -185px; }
  .u-scena::before { width: 560px; height: 300px; margin: -150px 0 0 -280px; }
}

/* ---------- "Naruči" na telefonu (< 900 px): JEDNO malo dugme u gornjoj traci menija, nikad preko sadržaja (korisnik 2026-10-18: plutajuće
   "preko cijelog ekrana i slike i svega" IZBAČENO). Skriva se dok je na ekranu neko drugo dugme Naruči ili sama forma (brojac.js), pa nikad nije duplo. ---------- */
.nav-naruci { display: none; }
@media (max-width: 899px) {
  .nav-naruci { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; font: 800 14px var(--display); letter-spacing: .01em; background: linear-gradient(160deg, #A78BFA 0%, #8B5CF6 42%, #5B34C8 100%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 6px 18px -8px rgba(139, 92, 246, .9); text-shadow: 0 1px 0 rgba(60, 20, 140, .5); transition: opacity .25s, transform .25s, visibility .25s; -webkit-tap-highlight-color: transparent; }
  .nav-naruci:active { transform: scale(.97); }
  .nav-naruci.nn-skriven { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); }
  .footer { padding-bottom: 96px; } /* razmak ispod: WhatsApp krug dolje desno nikad ne ostane preko napomene u podnožju */
}
@media (max-width: 379px) { .nav .logo img { height: 26px; } .nav-naruci { padding: 0 13px; font-size: 13px; } } /* uska traka (360 px): logo, Naruči i Prijava stanu bez sudara */
/* QA 2.11.: gost na telefonu ima "Prijava" u traci na mjestu dugmeta Naruči dok je Naruči sakriven (npr. na vrhu, gdje je dugme u heroju) */
.nav-prijava { display: none; }
@media (max-width: 899px) {
  .nav-naruci.nn-skriven { display: none; }
  .nav-naruci.nn-skriven + .nav-prijava { display: inline-flex; align-items: center; margin-left: auto; min-height: 40px; padding: 0 12px; border-radius: 999px; color: #E9DDFF; text-decoration: none; white-space: nowrap; font: 700 14px var(--display); }
  .nav-naruci.nn-skriven + .nav-prijava:active { background: rgba(255, 255, 255, .06); }
}
/* telefon: brojač i stubovi stanu zajedno na jedan ekran (CTA je suvišan: "Naruči" je uvijek u gornjoj traci, a vodič sam vodi do forme) */
@media (max-width: 899px) { .br-panel > .btn { display: none; } .br-panel { padding-bottom: 18px; } .br-grafik { margin-top: -6px; } .br-stub { height: clamp(210px, 52vw, 300px); } }
@media (max-width: 899px) {
  .br-izbor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* ostaje za čitače ekrana */
  .br-stub { --maxh: clamp(100px, 22svh, 230px); height: clamp(150px, 34svh, 290px); }
  .br-wrap { gap: 14px; }
  .br-panel { gap: 10px; padding: 18px 20px; }
}

/* ---------- Zavjesa kao ponuda (24.10): logo, red o poklonu, dugme UĐI ---------- */
.pre-poklon { width: min(320px, 86vw); margin: 10px 0 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; color: #EDE9FE; text-wrap: balance; }
.pre-poklon b { display: block; color: #fff; font-size: 26px; line-height: 1.15; margin-bottom: 4px; background: linear-gradient(100deg, #fff 10%, #C4B5FD 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.preloader.prelaz .pre-poklon { animation: uBlijedi .22s ease-in forwards; }
.preloader .pre-ulaz { align-items: center; }
/* Gost vs prijavljen (klasa dolazi iz ulaz.js / app.js) */
html.je-prijavljen [data-gost] { display: none !important; }
html:not(.je-prijavljen) [data-prijavljen] { display: none !important; }
.hero-poklon { margin: 0; font-size: 17px; line-height: 1.35; color: #DDD6FE; max-width: 420px; text-wrap: balance; }
.hero-poklon b { color: #fff; font-family: var(--display); font-weight: 700; }
@media (max-width: 899px) { .hero-poklon { text-align: center; margin-inline: auto; } .hero-copy { gap: 14px; } }
@media (min-width: 900px) and (min-height: 520px) { .hero-poklon { font-size: 20px; max-width: 480px; } }
/* Nav na telefonu: "Uzmi poklon" je kratko, Naruči se sakriva dok je drugi CTA vidljiv */
@media (max-width: 480px) { .balance { padding: 0 13px; gap: 6px; font-size: 13.5px; } }
.balance { white-space: nowrap; }
@media (max-width: 480px) { html:not(.je-prijavljen) .balance svg { display: none; } }

/* Zavjesa-ponuda: sve u koloni, u sredini ekrana (logo, ponuda, dugme) */
html.has-motion .preloader, .preloader { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preloader[hidden] { display: none; }
.preloader .pre-ulaz { position: static; bottom: auto; margin-top: -8px; }
.preloader .u-scena { margin-block: -20px; }
/* Na telefonu nikad plutajuće dugme preko sadržaja: WhatsApp je u kontaktu i podnožju */
@media (max-width: 899px) { .wa-float { display: none !important; } }

/* ---------- PREPRAVKA 4c: prekidač "Prazan live / Pun live" ispod telefona + kartica broja ---------- */
.hc-red { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.hc-red .hc-num { margin-top: 0; }
.hc-uz { max-width: 6.2em; color: #E9DDFF; font-size: 11px; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hc-trend { color: #86EFAC; }
.hero[data-live="prazan"] .hc-trend { visibility: hidden; }
.hero[data-live="prazan"] .hc-num { color: #FCA5A5; }
.hero[data-live="prazan"] .viewers { background: rgba(80, 10, 24, .72); color: #FCA5A5; }
html:not(.has-motion) .hero[data-live="prazan"] .hc-order { visibility: hidden; }
.live-prekidac { position: absolute; left: 50%; bottom: 4px; z-index: 7; display: inline-flex; gap: 3px; padding: 3px; transform: translateX(-50%); border-radius: 999px; background: rgba(20, 11, 38, .78); border: 1px solid var(--linija-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9), 0 0 30px -12px rgba(139, 92, 246, .45); }
html.has-motion .live-prekidac { visibility: hidden; }
.lp-dugme { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--magla); font: 800 13px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
.lp-dugme:hover { color: #FFFFFF; }
.lp-dugme:focus-visible { outline: 2px solid var(--lila); outline-offset: 2px; border-radius: 999px; }
.lp-pun[aria-pressed="true"] { background: linear-gradient(135deg, #7C3AED, #C026D3); color: #FFFFFF; box-shadow: 0 0 18px -2px rgba(192, 38, 211, .55); }
.lp-prazan[aria-pressed="true"] { background: linear-gradient(135deg, #9F1239, #E11D48); color: #FFFFFF; box-shadow: 0 0 18px -2px rgba(225, 29, 72, .5); }
@media (max-width: 767px), (pointer: coarse) { .live-prekidac { background: rgba(20, 11, 38, .96); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .lp-dugme { transition: none; } }
/* telefon: hero se odmah na skrol "uranja" u telefon, pa prekidač stoji gore lijevo iznad telefona (ne preko ekrana), savjet "okreni" desno;
   "Narudžba poslana" iznad komentara na ekranu telefona */
@media (max-width: 899px) {
  .live-prekidac { left: 10px; top: 0; bottom: auto; transform: none; }
  .lp-dugme { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .h3d-savjet { left: auto; right: 10px; transform: translate(0, 6px); }
  .h3d-savjet.vidi { transform: translate(0, 0); }
  .hc-order { top: 192px; bottom: auto; }
}
/* računar: telefon 22 px više (mjesto za prekidač ispod njega), "Narudžba poslana" iznad komentara na ekranu */
@media (min-width: 900px) and (min-height: 520px) {
  .hero-stage .phone-wrap { margin-bottom: 44px; }
  .hc-order { top: 33%; bottom: auto; }
}
/* ---------- PREPRAVKA 4d (telefon ≤ 899): prekidač 12 px ispod dugmadi i 8+ px iznad telefona (telefon 24 px niže),
   dodir 44 px nevidljivim rubom, savjet "okreni" desno u istom redu, "Narudžba poslana" napola van telefona lijevo,
   između oznake UŽIVO i lica (ispod lica nema mjesta: kod nekih klipova brada je 30 px iznad komentara) ---------- */
@media (max-width: 899px) {
  .live-prekidac { top: 12px; }
  .lp-dugme { position: relative; }
  .lp-dugme::before { content: ""; position: absolute; inset: -5px 0; }
  .hero-stage .phone-wrap { margin-top: 64px; }
  .hc-stats { top: calc(7% + 24px); }
  .h3d-savjet { top: 16px; right: 10px; }
  .hc-order { top: 120px; left: -5px; }
}
/* ---------- PREPRAVKA 9 (telefon ≤ 899): ništa preko ekrana telefona. Kartice "Narudžba poslana" i broj gledatelja
   su kompaktan red između prekidača i telefona (telefon 48 px niže); grafikon se na telefonu ne prikazuje ---------- */
@media (max-width: 899px) {
  .hero-stage .phone-wrap { margin-top: 112px; }
  .hc-order, .hc-stats { top: 58px; bottom: auto; width: calc(50% - 14px); min-height: 44px; padding: 6px 10px; border-radius: 14px; }
  .hc-order { left: 10px; right: auto; gap: 8px; }
  .hc-stats { right: 10px; left: auto; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 4px; }
  .hc-check { width: 24px; height: 24px; }
  .hc-check svg { width: 13px; height: 13px; }
  .hc-title { font-size: 12px; line-height: 1.2; white-space: nowrap; }
  .hc-sub { font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .hc-spark { display: none; }
  .hc-trend { gap: 4px; font-size: 10px; white-space: nowrap; }
  .hc-red { margin-top: 0; gap: 6px; }
  .hc-red .hc-num { font-size: 20px; }
  .hc-uz { font-size: 10.5px; max-width: 5.6em; }
}
/* korak 9b: na užim telefonima sadržaj kartice broja gledatelja ne smije izaći iz kartice ("+ raste" se skriva), razmak među karticama ≥ 8 px */
@media (max-width: 389px) { .hc-trend { display: none; } .hc-title { font-size: 11.5px; } .hc-sub { font-size: 10.5px; } }
@media (max-width: 359px) { .hc-sub { font-size: 10px; } .hc-title { font-size: 11px; } .hc-trend { display: none; } }
/* ---------- PREPRAVKA 9: "Za svaku prodaju uživo" = lepeza od 7 kartica (po uzoru landonorris.com "What's up on socials").
   Zakačena sekcija; JS (app.js initLepeza) vozi skrol. Bez JS-a ili sa smanjenim pokretom lepeza je već otvorena (CSS ispod). ---------- */
.lepeza-sec { position: relative; overflow: clip; background: #0B0614; }
.lep-pin { position: relative; overflow: clip; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.4vh, 26px); min-height: 100svh; padding: clamp(84px, 11vh, 120px) 20px clamp(28px, 5vh, 56px); text-align: center; }
.lep-naslov { display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 7.4vw, 74px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.lep-maska { display: block; overflow: hidden; padding: .06em .04em .1em; }
.lep-red { display: block; }
.lep-maska + .lep-maska .lep-red { color: #C4B5FD; }
.lep-scena { --kw: min(44vw, 24svh); position: relative; width: 100%; height: calc(var(--kw) * 16 / 9 + 6svh); perspective: 1600px; }
.lep-sjaj { position: absolute; left: 50%; bottom: -8%; width: min(120vw, 1100px); height: 70%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 60%, rgba(124, 58, 237, .55), rgba(124, 58, 237, .16) 45%, transparent 72%); filter: blur(10px); pointer-events: none; }
.lep { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.lk { --o: calc(var(--i) - 3); position: absolute; left: 50%; top: 0; width: var(--kw); aspect-ratio: 9 / 16; margin-left: calc(var(--kw) / -2); transform-origin: 50% 165%;
  transform: translateX(calc(var(--o) * 4px)) rotate(calc(var(--o) * 7deg)); z-index: calc(10 - max(var(--o), -1 * var(--o))); }
.lki { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(16px, 2.2vw, 26px); background: #1A1030; border: 1px solid rgba(196, 181, 253, .32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 36px -14px rgba(139, 92, 246, .6); }
.lki img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: opacity .25s; }
.lki img.lk-novo { z-index: 1; box-shadow: 0 -18px 40px rgba(0, 0, 0, .6); }
.lki::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 6, 20, .35) 0%, transparent 22%, transparent 62%, rgba(11, 6, 20, .88) 100%); pointer-events: none; }
.lki .use-badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 10px; }
.lk-gl { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #FFFFFF; font-weight: 800; font-size: 10px; font-variant-numeric: tabular-nums; }
.lk-nat { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; color: #FFFFFF; font-family: var(--display); font-weight: 700; font-size: clamp(12px, 3.2vw, 17px); line-height: 1.15; text-align: left; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.lep-tekst { max-width: 520px; margin: 0; color: var(--magla); font-size: clamp(15px, 1.4vw, 18px); }
.lep-rijeci { margin: 0; color: #E9DDFF; font-family: var(--display); font-weight: 700; font-size: clamp(11px, 1.15vw, 15px); letter-spacing: .14em; }
.lep-rijeci { text-wrap: balance; }
.lep-rijeci .lr { white-space: nowrap; }
.lep-rijeci i { font-style: normal; color: #8B5CF6; padding: 0 .3em; }
.lep-tekst { text-wrap: balance; }
@media (min-width: 900px) {
  .lep-scena { --kw: min(260px, 30vh); }
  .lk { transform: translateX(calc(var(--o) * 90px)) rotate(calc(var(--o) * 10.5deg)); }
  .lki .use-badge, .lk-gl { top: 14px; font-size: 11px; }
  .lki .use-badge { left: 14px; } .lk-gl { right: 14px; }
  .lk-nat { left: 16px; bottom: 16px; }
  /* korak 9b: susjedna kartica prekriva unutarnju stranu, pa natpis stoji uz vanjski rub i uvijek je cijeli vidljiv */
  .lk:not(:nth-child(4)) .lk-nat { max-width: 84px; font-size: 12px; overflow-wrap: anywhere; }
  .lk:nth-child(n+5) .lk-nat { left: auto; right: 12px; text-align: right; }
  .lk:nth-child(-n+3) .lk-nat { left: 12px; right: auto; }
}
/* korak 9b: na telefonu natpis ima samo srednja kartica (bočne su odsječene ekranom) */
@media (max-width: 899px) { .lk:not(:nth-child(4)) .lk-nat { display: none; } }
@media (hover: hover) and (pointer: fine) { .lk:focus-within .lki { outline: 2px solid var(--lila); } }
html.has-motion .lep-red { transform: translateY(110%); }
/* korak 9: naslov heroja je LCP i vidi se od prvog prikaza (bez zavjese); samo kratko CSS uvođenje (od .01 da ga preglednik broji odmah) */
@keyframes hNaslov { from { opacity: .01; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.has-motion .hero-title .line { animation: hNaslov .9s cubic-bezier(.2, .7, .2, 1) both; }
html.has-motion .hero-title .line-mask + .line-mask .line { animation-delay: .12s; }
html.naslov-gotov .hero-title .line { animation: none !important; } /* QA 2.11.: vidi app.js initHeroScroll */
