/* Jedna stranica, jedan stylesheet, bez frameworka.
   Tamna podloga s ljubičastim odsjajem, Outfit, pilule umjesto kutija, tanke
   linije umjesto kartica. */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050308;
  --ink: #ffffff;
  --dim: #8f8b9c;
  --faint: #6e6a7c;
  --line: rgba(255, 255, 255, 0.09);
  --violet: #7c3aed;
  --violet-lit: #a78bfa;
  --gutter: clamp(22px, 6vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* `display: flex` na .field nadjačava hidden atribut, a uspješna prijava
   postavlja upravo taj atribut. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sitna mreža tačaka koja se gasi prije nego stigne do dna. Jeftinije od
   slike, a ravnoj podlozi daje mjerilo; treba da se čita kao tekstura, nikad
   kao šara. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(115% 85% at 22% 0%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(115% 85% at 22% 0%, #000 0%, transparent 68%);
}

/* Radijalni gradijent, ne zamućena ploha: ista slika, bez blur sloja koji se
   preračunava na svaki frame skrola. */
.glow {
  position: fixed;
  z-index: 0;
  left: 24%;
  top: -34vh;
  width: min(1150px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(124, 58, 237, 0.32) 0%,
    rgba(109, 40, 217, 0.14) 42%,
    rgba(88, 28, 190, 0.05) 62%,
    transparent 76%
  );
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  /* minmax(0, 1fr), ne 1fr: grid stavka se po defaultu ne smije stisnuti ispod
     min-content svog sadržaja, pa je široka tabela u .compare razvlačila
     zaglavlje, main i podnožje preko širine telefona — cijela stranica se
     onda vukla lijevo-desno umjesto da se skrola samo tabela. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.column {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- zaglavlje ---------- */

header.column {
  padding-block: clamp(20px, 3vh, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Znak je crn na prozirnoj podlozi; invert ga pretvara u bijeli, a prozirno
   ostaje prozirno — bez druge verzije fajla. */
.brand__mark {
  width: auto;
  height: 30px;
  filter: invert(1);
}

.brand__name {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Minus zaglavlje i podnožje: prva slika ekrana je hero i ništa drugo. */
  min-height: calc(100svh - clamp(140px, 20vh, 200px));
  padding-block: clamp(20px, 3vh, 48px);
}

.eyebrow {
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet-lit);
}

/* `balance` umjesto tvrdog <br>: prelom se pomjera s veličinom slova umjesto
   da ostavi jednu riječ samu. */
.headline {
  margin: 0;
  max-width: 20ch;
  /* 7vw se ispod ~630px zaglavi na 44px i ostane isto velik i na 320px;
     5vw + 1.25rem se spušta dalje, a na desktopu daje istu mjeru kao prije. */
  font-size: clamp(2.25rem, 5vw + 1.25rem, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- prijava ---------- */

.signup {
  margin: clamp(30px, 4.5vh, 52px) 0 0;
  max-width: 520px;
  scroll-margin-top: 24px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.field:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Prsten je na omotaču jer input nema svoj okvir — bez ovoga cijela kontrola
   ne bi imala nikakvu povratnu informaciju na fokus. */
.field:focus-within {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.08);
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field input::placeholder {
  color: var(--faint);
}

.field input:focus {
  outline: none;
}

.field button,
.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0c;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.field button:hover,
.btn:hover {
  background: #e7e2f5;
}

.field button svg,
.btn svg {
  width: 1em;
  height: 1em;
}

.field button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.terms {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dim);
}

.status {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.status:not(:empty) {
  margin-top: 14px;
}

.status[data-state="ok"] {
  color: #b9a4ff;
}

.status[data-state="error"] {
  color: #fb7185;
}

.decoy {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- sekcije ispod ---------- */

.band {
  padding-block: clamp(72px, 13vh, 148px);
}

/* Jedna oznaka sekcije za cijelu stranicu, ista kao nadnaslov u herou. */
.label {
  margin: 0 0 clamp(24px, 3.5vh, 40px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet-lit);
}

/* Poredni prikaz kao tabela, ne kao kartice — čita se kao podatak, ne kao
   reklamni blok. Vodoravni scroll na uskom ekranu umjesto sažimanja kolona. */
.compare {
  margin-top: clamp(28px, 4vh, 40px);
  overflow-x: auto;
}

.compare table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 14px 20px 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.compare thead th {
  padding-top: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.compare th[scope="row"] {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  white-space: normal;
}

.compare__us {
  color: var(--violet-lit);
}

.compare td.good {
  color: var(--violet-lit);
  font-weight: 600;
}

.compare td.bad {
  color: var(--faint);
}

/* Kvačica u krugu, ista bedž-boja kao features__icon. */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vh, 28px) clamp(24px, 3vw, 56px);
  margin: clamp(32px, 5vh, 56px) 0 0;
  padding: 0;
  max-width: 900px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: var(--violet-lit);
  box-sizing: content-box;
}

.checklist span {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* Features: ista bedž-boja kao checklist svg, drugačiji oblik (kvadrat sa
   zaobljenim uglovima) da se čita kao "šta jeste", ne "šta se radi kojim
   redom". */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vh, 44px) clamp(24px, 3vw, 56px);
  margin: clamp(32px, 5vh, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--violet-lit);
}

.features__icon svg {
  width: 22px;
  height: 22px;
}

.features h3 {
  margin: 16px 0 0;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.features p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 42ch;
}

.section-lede {
  margin: 0 0 clamp(28px, 4vh, 40px);
  max-width: 46ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--dim);
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 60px) clamp(32px, 4vw, 76px);
  margin: 0;
}

.faq dt {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq dd {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--dim);
}

/* ---------- dno ---------- */

.end {
  border-top: 1px solid var(--line);
}

.end__line {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.end__body {
  margin: clamp(14px, 2vh, 20px) 0 clamp(26px, 3.5vh, 36px);
  max-width: 44ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--dim);
}

/* ---------- podnožje ---------- */

footer.column {
  padding-block: clamp(20px, 3vh, 38px);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
}

/* ---------- serverske poruke ---------- */

body.is-message main.column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}

.message__title {
  margin: 28px 0 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.message__body {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--dim);
}

.message__body a {
  color: var(--violet-lit);
}

/* ---------- pokret ---------- */

/* Jedan ulazak, 420ms, 8px. Dovoljno da stranica stigne umjesto da bljesne;
   dovoljno kratko da drugi dolazak ne izgleda kao čekanje. Redoslijed se
   postavlja ovdje, a ne u style atributu: stranica ima CSP bez
   'unsafe-inline', a inline stil je inline stil. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}

.rise {
  animation: rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.hero__copy > :nth-child(2) { --i: 1; }
.hero__copy > :nth-child(3) { --i: 2; }
.hero__copy > :nth-child(4) { --i: 3; }
.stage { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    animation: none;
  }
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--violet-lit);
  outline-offset: 3px;
}

::selection {
  background: rgba(124, 58, 237, 0.45);
}

/* ---------- uski ekrani ---------- */

@media (max-width: 860px) {
  .checklist,
  .features,
  .faq {
    grid-template-columns: 1fr;
  }

  .faq {
    gap: 22px;
  }

  .headline,
  .end__line {
    max-width: none;
  }

  /* Na telefonu hero ne drži pun ekran: centriran u 100svh ostavlja praznu
     trećinu iznad naslova, a polje odgurne ispod pregiba. Kreće od vrha,
     staje kad stane. */
  .hero {
    justify-content: flex-start;
    min-height: 0;
    padding-block: clamp(6px, 1.5vh, 20px) clamp(28px, 5vh, 64px);
  }

  .band {
    padding-block: clamp(56px, 9vh, 148px);
  }

  .lede,
  .section-lede,
  .end__body {
    max-width: 38ch;
  }
}

/* Tabela ostaje tabela i na telefonu — skrola se vodoravno, ali naziv reda
   stoji na mjestu. Široka prva kolona je namjerna: nazivi se lome u dva reda
   umjesto u četiri, pa je cijela sekcija upola kraća. */
@media (max-width: 640px) {
  .compare {
    overscroll-behavior-x: contain;
  }

  .compare table {
    min-width: 470px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
  }

  .compare th,
  .compare td {
    padding: 10px 10px 10px 0;
  }

  .compare th[scope="row"],
  .compare thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 198px;
    padding-right: 12px;
    background: var(--bg);
    box-shadow: 12px 0 14px -12px rgba(0, 0, 0, 0.95);
  }
}

@media (max-width: 540px) {
  .field {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
  }

  .field input {
    padding-inline: 6px;
    font-size: 16px; /* ispod 16px iOS zumira stranicu na fokus */
  }

  .field button {
    justify-content: center;
    padding-block: 14px;
  }
}

/* ---------- 3D scena u herou ----------
   Mala radnja u prostoru: kursor klikne "Plati", stigne potvrda o uplati.
   Ista priča koju hero piše u tri rečenice. Sve je CSS — nema slike, nema
   biblioteke, nema inline stila (CSP). Ispod 1040px je nema — na telefonu bi
   od nje ostala sličica, a hero i bez nje stoji. */

.stage {
  display: none;
}

@media (min-width: 1040px) {
  /* Samo ovdje: kartice scene vire par piksela van panela. Na telefonu clip
     ostaje isključen — tamo bi prekrio prelivanje umjesto da ga pokaže. */
  html {
    overflow-x: clip;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4.5vw, 64px);
  }

  .hero__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .stage {
    display: block;
    flex: none;
    perspective: 1250px;
  }
}

/* Sve mjere unutra su fiksne: kursor putuje u pikselima do dugmeta, pa se ne
   smije razmicati s veličinom prozora. */
.stage__scene {
  position: relative;
  width: 420px;
  transform-style: preserve-3d;
  animation: stage-float 13s ease-in-out infinite alternate;
}

@keyframes stage-float {
  from {
    transform: rotateX(7deg) rotateY(-18deg) translate3d(0, 8px, 0);
  }
  to {
    transform: rotateX(3deg) rotateY(-10deg) translate3d(0, -12px, 0);
  }
}

/* Odsjaj iza panela, guran nazad po Z da izgleda kao svjetlo u prostoru, a ne
   kao obrub. */
.stage__scene::before {
  content: "";
  position: absolute;
  inset: -14%;
  transform: translateZ(-160px);
  background: radial-gradient(
    closest-side,
    rgba(124, 58, 237, 0.4) 0%,
    rgba(109, 40, 217, 0.16) 48%,
    transparent 74%
  );
}

.shop {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(34, 24, 56, 0.94), rgba(9, 6, 18, 0.96));
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.shop__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  margin-bottom: 10px;
}

.shop__dots {
  display: inline-flex;
  gap: 5px;
}

.shop__dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.shop__url {
  flex: 1;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--faint);
}

.shop__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shop__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--violet-lit), var(--violet));
  color: #100a20;
  font-size: 14px;
  font-weight: 600;
}

.shop__brand {
  flex: 1;
  display: grid;
  gap: 6px;
}

.shop__brand i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.shop__brand i:first-child { width: 82px; }
.shop__brand i:last-child { width: 46px; background: rgba(255, 255, 255, 0.09); }

.shop__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
  color: var(--violet-lit);
  font-size: 11px;
  font-weight: 600;
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.item__img {
  display: block;
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.4), rgba(124, 58, 237, 0.12));
}

.item:nth-child(2) .item__img {
  background: linear-gradient(150deg, rgba(244, 114, 182, 0.32), rgba(124, 58, 237, 0.14));
}
.item:nth-child(3) .item__img {
  background: linear-gradient(150deg, rgba(94, 234, 212, 0.28), rgba(59, 40, 150, 0.16));
}
.item:nth-child(4) .item__img {
  background: linear-gradient(150deg, rgba(253, 224, 71, 0.26), rgba(124, 58, 237, 0.14));
}

.item__t,
.item__p {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.item__t {
  width: 74%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.item__p {
  width: 38%;
  margin-top: 6px;
  background: rgba(167, 139, 250, 0.55);
}

.shop__pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0c;
  font-size: 13.5px;
  font-weight: 600;
  animation: pay-press 7s ease-in-out infinite;
}

.shop__amount {
  font-weight: 400;
  color: rgba(10, 10, 12, 0.55);
}

/* Dugme se stisne tačno kad kursor stigne — bez toga klik izgleda kao da je
   promašio. */
@keyframes pay-press {
  0%, 42% { transform: scale(1); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
  47% { transform: scale(0.975); box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.55); }
  62%, 100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(167, 139, 250, 0); }
}

/* Kursor kreće s drugog proizvoda i slijeće na "Plati". */
.cursor {
  position: absolute;
  left: 302px;
  top: 155px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(8, 5, 16, 0.75),
    0 0 0 7px rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.6);
  transform: translateZ(60px);
  animation: cursor-run 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cursor-run {
  0% { opacity: 0; translate: 0 0; scale: 1; }
  6% { opacity: 1; translate: 0 0; }
  40% { translate: -100px 217px; scale: 1; }
  47% { translate: -100px 217px; scale: 0.55; }
  54% { translate: -100px 217px; scale: 1; }
  86% { opacity: 1; translate: -100px 217px; }
  96%, 100% { opacity: 0; translate: -100px 217px; }
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(38, 28, 62, 0.96), rgba(12, 8, 24, 0.96));
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

.chip__text {
  display: grid;
  gap: 2px;
}

.chip__text b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chip__text i {
  font-size: 11.5px;
  font-style: normal;
  color: var(--dim);
}

.chip--stat {
  top: -34px;
  right: -22px;
  transform: translateZ(70px);
  animation: chip-drift 9s ease-in-out infinite alternate;
}

.chip__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.18);
}

.chip__bars i {
  width: 4px;
  border-radius: 2px;
  background: var(--violet-lit);
}

.chip__bars i:nth-child(1) { height: 40%; }
.chip__bars i:nth-child(2) { height: 65%; }
.chip__bars i:nth-child(3) { height: 50%; }
.chip__bars i:nth-child(4) { height: 100%; }

@keyframes chip-drift {
  from { transform: translateZ(70px) translateY(0); }
  to { transform: translateZ(70px) translateY(-10px); }
}

/* Potvrda dolazi tek poslije klika, drži se, pa ode. */
.chip--paid {
  left: 84px;
  bottom: -34px;
  transform: translateZ(120px);
  animation: chip-arrive 7s ease-out infinite;
}

.chip--paid .chip__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
  color: var(--violet-lit);
}

.chip--paid .chip__check svg {
  width: 16px;
  height: 16px;
}

@keyframes chip-arrive {
  0%, 47% { opacity: 0; transform: translateZ(120px) translateY(16px) scale(0.94); }
  55% { opacity: 1; transform: translateZ(120px) translateY(0) scale(1); }
  86% { opacity: 1; transform: translateZ(120px) translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateZ(120px) translateY(-10px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .stage__scene,
  .shop__pay,
  .cursor,
  .chip--stat,
  .chip--paid {
    animation: none;
  }

  .stage__scene {
    transform: rotateX(5deg) rotateY(-14deg);
  }

  .cursor {
    translate: -100px 217px;
  }
}
