/* Diskont Planinić app prototype, design v2 (research/design-v2.md).
   Brand book: blue Pantone 2925 #2C93D0, lime Pantone 382 #CAD12A.
   Rules: blue band = brand hero; lime = value only; Neutraface = titles + numbers; tilt only on the lime sticker / lockup. */
@font-face { font-family: 'Neutraface'; src: url('../fonts/Neutraface2Display-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-ext.woff2') format('woff2'); font-weight: 300 900; font-display: swap;
  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: 'Figtree'; src: url('../fonts/figtree-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap;
  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; }

:root {
  --blue: #2C93D0; --blue-d: #17689B; --blue-l: #E6F2FA; --sky: #D9ECF8;
  --lime: #CAD12A; --lime-d: #9DA313; --lime-l: #F2F4C9;
  --ink: #0F2A3F; --muted: #5B6E7F; --line: #E1E8EE; --surface: #F1F5F8;
  --red: #EB1C24; --red-l: #FDEDEE;
  --display: 'Neutraface', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tilt: -3deg;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --seal: polygon(50.0% 0.0%, 57.8% 5.7%, 67.1% 3.0%, 72.5% 11.0%, 82.1% 11.7%, 84.5% 21.1%, 93.3% 25.0%, 92.3% 34.6%, 99.2% 41.3%, 95.0% 50.0%, 99.2% 58.7%, 92.3% 65.4%, 93.3% 75.0%, 84.5% 78.9%, 82.1% 88.3%, 72.5% 89.0%, 67.1% 97.0%, 57.8% 94.3%, 50.0% 100.0%, 42.2% 94.3%, 32.9% 97.0%, 27.5% 89.0%, 17.9% 88.3%, 15.5% 78.9%, 6.7% 75.0%, 7.7% 65.4%, 0.8% 58.7%, 5.0% 50.0%, 0.8% 41.3%, 7.7% 34.6%, 6.7% 25.0%, 15.5% 21.1%, 17.9% 11.7%, 27.5% 11.0%, 32.9% 3.0%, 42.2% 5.7%);
  --ppat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23ffffff' fill-opacity='.07' transform='rotate(-6 32 32)'%3E%3Cpath d='M18 14h18a9 9 0 0 1 0 18h-9v8h-9V14zm9 7v4h8a2 2 0 0 0 0-4z'/%3E%3Ccircle cx='21' cy='47' r='3.2'/%3E%3Ccircle cx='33' cy='47' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior: none; }
button, a, [data-tick], [data-zone] { touch-action: manipulation; -webkit-touch-callout: none; }
button { -webkit-user-select: none; user-select: none; }
body { font-family: var(--body); color: var(--ink); background: #E4EBF0; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
s { color: var(--muted); font-weight: 500; }
.ic { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ---------- stage / phone ---------- */
.stage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.phone { position: relative; width: 390px; height: 844px; border-radius: 48px; border: 10px solid #0B1D2B; background: #fff; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(15, 42, 63, .25); }
.caption { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px), (max-height: 700px) and (max-width: 900px), (display-mode: standalone) {
  body { background: #fff; }
  .stage { padding: 0; min-height: 100dvh; }
  .phone { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .caption { display: none; }
}
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; background: #fff; padding-top: env(safe-area-inset-top); }
.r-recept, .r-kartica, .r-racun, .r-godina { padding-top: 0; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.full { height: 100%; display: flex; flex-direction: column; }
.pad { padding-left: 18px; padding-right: 18px; }
.endpad { height: 32px; }

/* ---------- type ---------- */
.lead { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.06; letter-spacing: -.005em; max-width: 330px; }
.h2, .sec-h h2, .panel-h h2, .r-body h2, .panel > h2 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.sec { margin-top: 28px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 18px; margin-bottom: 4px; }
.sec-h.flush { padding: 0; }
.sec-h a, .link { color: var(--blue-d); font-size: 14.5px; font-weight: 700; border: 0; background: none; padding: 13px 0; margin: -13px 0; }
.sec-s { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 6px 18px 14px; }
.pad .sec-s, .panel .sec-s { margin-left: 0; margin-right: 0; }
.unit { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.unit .ic { width: 16px; height: 16px; }

/* money: Neutraface numbers, small cents, small unit */
.amt { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.amt-c { font-size: .62em; vertical-align: .42em; margin-left: 1px; }
.amt-u { font-family: var(--body); font-weight: 800; font-size: 12px; margin-left: 4px; letter-spacing: .02em; }
.amt.md { font-size: 30px; } .amt.lg { font-size: 42px; } .amt.xl { font-size: 54px; }
.amt.md .amt-u, .amt.lg .amt-u, .amt.xl .amt-u { font-size: 14px; }

/* value chip: lime means money saved, always */
.save { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 2px 7px 1px; border-radius: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the sticker: the logo's lime tagline strip, the only tilted element in the UI */
.sticker { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 15px;
  padding: 8px 13px 7px; border-radius: 3px; transform: rotate(var(--tilt)); box-shadow: 0 6px 16px rgba(15, 42, 63, .16); white-space: nowrap; }
.sticker .ic { width: 17px; height: 17px; }
.sticker.ink { background: var(--ink); color: var(--lime); }

/* ---------- header ---------- */
.hdr { flex: none; position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; min-height: 64px; padding: 10px 8px 10px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px rgba(15, 42, 63, .04); }
.hdr .back { margin-left: -10px; }
.hdr-t { flex: 1; min-width: 0; }
.hdr h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; }
.hdr-t p { font-size: 13px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-a { display: flex; }
.home-hdr { border-bottom: 0; justify-content: space-between; padding-top: 8px; padding-bottom: 6px; }
.home-hdr .logo { height: 40px; width: auto; margin-left: -4px; }
.hdr.clear { background: transparent; border: 0; color: #fff; padding-left: 8px; }
.hdr.clear h1 { color: #fff; font-size: 22px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: inherit; }
.iconbtn:active { background: rgba(15, 42, 63, .07); }
.iconbtn.float { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; background: #fff; box-shadow: 0 4px 14px rgba(15, 42, 63, .2); color: var(--ink); }

/* ---------- the blue band (brand hero) ---------- */
.band { position: relative; background: var(--blue) var(--ppat); color: #fff; padding: 22px 18px 30px; display: flex; flex-direction: column; overflow: hidden; }
.band-store { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; background: rgba(11, 29, 43, .3); padding: 5px 11px 5px 9px; border-radius: 999px; }
.band-store i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.band-hi { font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1.05; margin-top: 10px; }
.band-save { display: block; margin-top: 20px; }
.band-k { display: block; font-size: 19px; font-weight: 700; }
.band-n { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: .86; margin-top: 8px; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.band-n small { font-size: 28px; margin-left: 6px; letter-spacing: 0; }
.band-c { font-size: .42em; vertical-align: .95em; margin-left: 2px; letter-spacing: 0; }
.band .sticker { margin-top: 18px; }

/* ---------- product tiles (flat: well + text) ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.tile { position: relative; width: 148px; cursor: pointer; }
.tile-img { position: relative; }
.well { aspect-ratio: 1; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.well img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; }
.well.mi { background: var(--red); color: #fff; font-family: var(--display); font-size: 16px; line-height: 1; text-align: center; }
.well.sm { width: 60px; flex: none; border-radius: 12px; } .well.sm.mi { font-size: 11px; }
.well.xs { width: 42px; flex: none; border-radius: 10px; } .well.xs.mi { font-size: 8px; }
.seal { position: absolute; top: 6px; left: 6px; width: 50px; height: 50px; background: var(--blue); color: #fff; clip-path: var(--seal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-8deg); }
.seal b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.seal sup { font-size: 12px; vertical-align: 7px; }
.seal small { font-size: 10px; font-weight: 800; margin-top: 1px; }
.seal.big { width: 104px; height: 104px; } .seal.big b { font-size: 38px; } .seal.big sup { font-size: 18px; vertical-align: 14px; } .seal.big small { font-size: 13px; }
.add { position: absolute; right: 6px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--blue); color: #fff; display: grid; place-items: center; }
.add .ic { width: 19px; height: 19px; }
.add.on { background: var(--blue-l); color: var(--blue-d); }
.why { font-size: 12px; font-weight: 700; color: var(--blue-d); margin-top: 9px; }
.tile h3 { text-wrap: balance; font-size: 14.5px; font-weight: 650; line-height: 1.25; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.why + h3 { margin-top: 2px; }
.tile .unit { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile-p { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; min-height: 22px; }

/* ---------- panels, rows, buttons ---------- */
.panel { display: block; background: var(--surface); border-radius: 20px; padding: 18px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-s { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.listpanel .budget { margin-top: 16px; }
.budget-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.budget-of { font-size: 14px; color: var(--muted); font-weight: 600; }
.bar { height: 10px; border-radius: 6px; background: rgba(15, 42, 63, .09); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; transition: width .6s var(--ease); }
.bar.value i { background: var(--lime); }
.budget.over .bar i { background: #D9483B; }
.budget-l { font-size: 13.5px; font-weight: 700; color: var(--blue-d); margin-top: 8px; }
.budget.over .budget-l { color: #B83227; }
.saveline { font-size: 14.5px; margin: 16px 0 10px; color: var(--ink); }
.listpanel + .rows, .sec + .rows { margin-top: 8px; }
/* Moj izbor suggestion: a full-width card under the row, so the name never squeezes */
.rows .row.has-swap { flex-wrap: wrap; }
.mi-card { flex: 1 0 100%; margin-top: 6px; background: var(--red-l); border-radius: 16px; padding: 12px 12px 14px; }
.mi-head { font-size: 13px; font-weight: 700; color: #A3141A; }
.mi-body { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mi-body .well.xs { width: 52px; border-radius: 12px; box-shadow: none; } .mi-body .well.xs.mi { font-size: 10px; }
.mi-m { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mi-m b { font-size: 14.5px; font-weight: 650; line-height: 1.25; color: var(--ink); }
.mi-m small { font-size: 13px; color: var(--muted); }
.mi-m .save { margin-top: 4px; }
.mi-btn { flex: none; background: #fff; color: #B3161C; border: 0; box-shadow: inset 0 0 0 2px var(--red); gap: 6px; padding: 0 14px; font-weight: 750; }
.mi-btn .ic { width: 16px; height: 16px; }
.mi-btn:active { transform: scale(.97); }

.btn { height: 52px; border-radius: 14px; border: 0; padding: 0 20px; font-size: 16px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: var(--blue-d); color: #fff; }
.btn.primary:active { background: #12557F; }
.btn.ghost { background: #fff; color: var(--blue-d); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.white { background: #fff; color: var(--blue-d); }
.btn.clear { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn.done { background: var(--blue-l); color: var(--blue-d); }
.btn.tonal { background: var(--blue-l); color: var(--blue-d); }
.btn.sm { height: 44px; font-size: 14px; border-radius: 22px; padding: 0 16px; }
.btn.sm .ic { width: 16px; height: 16px; }
.btn.wide { width: 100%; margin-top: 12px; }

.rowlink { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.xbig { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 24px; display: grid; place-items: center; flex: none; }
.rowlink-t { flex: 1; }
.rowlink-t b { display: block; font-size: 16px; }
.rowlink-t small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 14px 0; }
.note .ic { width: 16px; height: 16px; color: var(--blue); margin-top: 1px; }

.dock { flex: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.dock .btn.wide { margin: 0; }
.dock.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dock-n { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dock-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
@media (max-width: 360px) { .dock.split { flex-wrap: wrap; } .dock.split .btn { flex: 1; } }

/* ---------- home / recipes ---------- */
.listpanel .panel-h .ic { color: var(--muted); }
.pricepill { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.rcard { display: block; }
.rcard-img { position: relative; border-radius: 18px; overflow: hidden; margin-top: 8px; }
.rcard-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rcard h3 { font-family: var(--display); font-weight: 700; font-size: 21px; margin-top: 12px; }
.recipes { display: grid; gap: 26px; }

/* ---------- akcije ---------- */
.foryou { background: var(--blue-l); padding: 24px 0 20px; }
.foryou .well, .surface .well { box-shadow: none; }
.promos li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.promos li:last-child { border-bottom: 0; }
.promo-t { flex: 1; min-width: 0; }
.promo-t b { display: block; font-size: 16px; }
.promo-t small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xbadge { background: var(--ink); color: #fff; font-family: var(--display); font-size: 16px; padding: 4px 8px 3px; border-radius: 7px; flex: none; }
.promo .btn { flex: none; min-width: 104px; }
.surface { background: var(--surface); padding: 24px 0 28px; }
.surface .sec-h { margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.grid .tile { width: auto; }

/* ---------- recipe detail ---------- */
.r-hero { position: relative; }
.r-hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.r-body { position: relative; margin-top: -26px; background: #fff; border-radius: 26px 26px 0 0; padding-top: 24px; padding-bottom: 12px; }
.r-title { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.02; }
.r-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 20px; }
.r-for { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 6px; }

.stepper-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.stepper-row > span { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; color: var(--blue-d); display: grid; place-items: center; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper button .ic { width: 18px; height: 18px; }
.stepper b { font-family: var(--display); font-size: 24px; min-width: 18px; text-align: center; }
.r-body h2 { margin: 4px 0 8px; }
.ings li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ing-t { flex: 1; min-width: 0; }
.ing-t b { display: block; font-size: 14.5px; font-weight: 650; }
.ing-t small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.onsale { color: var(--blue-d); background: var(--blue-l); font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.ing-p { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ing-s { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue-d); display: grid; place-items: center; flex: none; position: relative; }
.ing-s::after { content: ''; position: absolute; inset: -4px; }
.ing-s.on { background: var(--blue-d); box-shadow: none; color: #fff; }
.ing-s .ic { width: 16px; height: 16px; }
.steps { counter-reset: s; margin-top: 6px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 40px; font-size: 15.5px; line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-l); font-family: var(--display); font-size: 15px; display: grid; place-items: center; color: var(--blue-d); }

/* ---------- lista ---------- */
.rows .row { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rows .row:first-child { border-top: 1px solid var(--line); }
.row-m { flex: 1; min-width: 0; }
.row-m > b { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; }
.row-m small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-p { font-family: var(--display); font-size: 18px; margin-top: 6px; }
.row-p s { font-family: var(--body); font-size: 12.5px; margin-left: 4px; }
.swap { margin-top: 9px; display: flex; align-items: center; gap: 8px; text-align: left; font-size: 12.5px; color: var(--ink); background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; padding: 8px 10px; line-height: 1.3; min-height: 44px; }
.swap .ic { width: 16px; height: 16px; flex: none; color: var(--blue-d); }
.mi-tag { flex: none; background: #D9181F; color: #fff; font-family: var(--display); font-size: 11px; line-height: 1; padding: 4px 6px 3px; border-radius: 4px; }
.qty { display: flex; align-items: center; border: 2px solid var(--blue); border-radius: 999px; height: 44px; margin-top: 2px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: var(--blue-d); display: grid; place-items: center; }
.qty .ic { width: 16px; height: 16px; }
.qty b { min-width: 14px; text-align: center; font-family: var(--display); font-size: 17px; }
.empty .lead { margin-bottom: 4px; }

/* ---------- u trgovini: interactive floor plan ---------- */
.mapwrap { margin: 14px 14px 0; background: var(--surface); border-radius: 22px; padding: 10px 10px 8px; }
.plan { width: 100%; display: block; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan .zone rect { fill: #DDE6ED; transition: fill .3s; }
.plan .zone.has rect { fill: #C9E1F2; }
.plan .zone.zdone rect { fill: #EDF1F4; }
.plan .zone.zdone .zl { fill: #8A9BA9; }
.plan .zone.is-next rect { fill: var(--blue); }
.plan .zl { font: 800 10.5px var(--body); fill: #2E4558; text-anchor: middle; pointer-events: none; }
.plan .zone.is-next .zl { fill: #fff; }
.plan .zone.has { cursor: pointer; }
.plan .till rect { fill: #C2CDD6; }
.plan .tiny { font: 800 7.5px var(--body); fill: #6E7F8E; letter-spacing: .08em; }
.plan .route { fill: none; stroke: #9BB1C2; stroke-width: 2.5; stroke-dasharray: 2 5; stroke-linecap: round; stroke-linejoin: round; }
.plan .route.walked { stroke: var(--blue); stroke-width: 4; stroke-dasharray: none; }
.plan .you { fill: #fff; stroke: var(--blue); stroke-width: 3.5; }
.plan .pin { cursor: pointer; }
.plan .pin circle { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.plan .pin text { font: 900 12px var(--body); fill: var(--blue-d); text-anchor: middle; pointer-events: none; }
.plan .pin.next circle { fill: var(--blue); }
.plan .pin.next text { fill: #fff; }
.plan .pin.next .pulse { fill: var(--blue); stroke: none; opacity: .35; animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.plan .pin.done circle { fill: var(--ink); stroke: var(--ink); }
.plan .pin.done path { stroke: #fff; }
.plan .pin .hit { fill: transparent; stroke: none; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(2.3); opacity: 0; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 6px 6px 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; }
.legend i.n { background: var(--blue); } .legend i.d { background: var(--ink); border-color: var(--ink); }
.nextstop { position: sticky; top: 6px; z-index: 3; box-shadow: 0 10px 18px rgba(15, 42, 63, .16); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 16px 13px; margin: 10px 18px 4px; }
.nextstop span { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: #9FD3F2; }
.nextstop b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.05; }
.nextstop em { font-style: normal; font-size: 13px; color: #B9C8D4; white-space: nowrap; }
.nextstop.fin { background: var(--blue-d); }
.nextstop.fin span, .nextstop.fin em { color: #fff; }
.zgroup { margin: 14px 18px 0; border-radius: 14px; transition: background .4s; }
.zgroup.flash { background: var(--blue-l); }
.zgroup h2 { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 8px 0 4px; }
.zdot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--blue); background: #fff; }
.znext .zdot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.zdone h2 { color: var(--muted); }
.zdone .zdot { background: var(--ink); border-color: var(--ink); }
.tick { display: flex; align-items: center; gap: 11px; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tick .box { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #8197A8; display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.tick .box .ic { width: 17px; height: 17px; }
.tick.on .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-n { flex: 1; font-size: 15px; min-width: 0; }
.t-p { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tick.on .t-n { text-decoration: line-through; color: var(--muted); }
.tick.on .well { opacity: .45; }

/* ---------- kartica (blue screen) ---------- */
.blue-screen { background: var(--blue) var(--ppat); color: #fff; padding-top: env(safe-area-inset-top); }
.cardwrap { padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; flex: 1; overflow-y: auto; }
.loycard { background: #fff; color: var(--ink); border-radius: 24px; padding: 20px 20px 18px; box-shadow: 0 18px 40px rgba(11, 29, 43, .28); }
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.lc-top img { width: 150px; }
.lc-top span { font-weight: 800; font-size: 15px; }
.barcode { width: 100%; height: 96px; fill: var(--ink); display: block; }
.lc-num { font-family: var(--display); font-size: 21px; letter-spacing: .14em; text-align: center; margin-top: 10px; }
.lc-info { font-size: 15.5px; line-height: 1.5; }
.blue-screen .note { color: rgba(255, 255, 255, .85); margin: 0; }
.blue-screen .note .ic { color: var(--lime); }
.cardwrap > .demo-link { margin-top: auto; }
.lc-bright { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.lc-bright .ic { width: 18px; height: 18px; flex: none; }
.demo-link { align-self: center; border: 0; background: none; color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 14px 10px; }
.demo-link:disabled { opacity: .4; }
.cardwrap > .demo-tap { margin-top: auto; }
.demo-tap { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 14px 14px 16px; border: 0; border-radius: 20px; background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 12px 28px rgba(15, 42, 63, .28); }
.demo-tap:active { transform: scale(.98); }
.demo-tap:disabled { opacity: .6; }
.demo-tap > .ic { width: 22px; height: 22px; flex: none; color: var(--blue-d); }
.demo-tap-i { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.demo-tap-i .ic { width: 28px; height: 28px; }
.demo-tap-i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid var(--lime); animation: tapRing 1.6s ease-out infinite; }
@keyframes tapRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.demo-tap:disabled .demo-tap-i::after { animation: none; }
.demo-tap-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; }
.demo-tap-t small { font-size: 12px; font-weight: 750; color: var(--blue-d); background: var(--blue-l); border-radius: 999px; padding: 2px 9px; }
.demo-tap-t b { font-family: var(--display); font-size: 19px; line-height: 1.15; margin-top: 2px; }
.demo-tap-t span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .demo-tap-i::after { animation: none; } }
.loycard { position: relative; overflow: hidden; }
.loycard::after { content: ''; position: absolute; left: 14px; right: 14px; top: 76px; height: 2px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px 2px rgba(235, 28, 36, .55); opacity: 0; }
.loycard.scanned::after { animation: laser .6s ease-in-out 2 alternate; }
@keyframes laser { from { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(96px); } }
.scan-ok { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .95); opacity: 0; pointer-events: none; }
.scan-ok span { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-d); color: #fff; display: grid; place-items: center; }
.scan-ok .ic { width: 32px; height: 32px; }
.scan-ok b { font-family: var(--display); font-size: 22px; }
.loycard.scanned .scan-ok { animation: scanOk .35s 1.05s var(--ease) both; }
@keyframes scanOk { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- račun (END) ---------- */
.receipt { background: #fff; }
.band.end { padding: calc(58px + env(safe-area-inset-top)) 22px 40px; align-items: flex-start; }
.receipt { position: relative; }
.close-fixed { position: absolute; z-index: 5; top: calc(10px + env(safe-area-inset-top)); right: 10px; background: rgba(11, 29, 43, .28); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.band.end .band-hi { margin-top: 0; font-size: 26px; }
.band.end .band-k { margin-top: 26px; }
.band-n.huge { font-size: 104px; animation: popIn .8s .1s var(--ease) both; }
.band.end .sticker { animation: stickIn .5s 1s var(--ease) both; }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stickIn { from { transform: rotate(-14deg) translateY(16px); opacity: 0; } to { transform: rotate(var(--tilt)); opacity: 1; } }
.burst { position: absolute; left: 50%; top: 56%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 10px; height: 18px; border-radius: 2px; background: var(--lime); opacity: 0; animation: burst 1.2s .6s cubic-bezier(.15, .7, .3, 1) forwards; }
.burst i:nth-child(3n) { background: #fff; width: 8px; height: 8px; border-radius: 50%; }
.burst i:nth-child(4n) { background: var(--ink); height: 12px; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.kv { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv > div { flex: 1; }
.kv b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; }
.kv small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.kv-i { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; flex: none; }
.kv-i.pts { background: var(--lime); color: var(--ink); }
.kv.link > .ic { color: var(--muted); }
.kv-sub { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 8px 0 0 60px; }
.kv-sub b { color: var(--ink); font-weight: 800; }
.bill { border-bottom: 1px solid var(--line); }
.bill summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 700; list-style: none; }
.bill summary::-webkit-details-marker { display: none; }
.bill summary span::after { content: ''; display: inline-block; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); margin-left: 10px; transition: transform .2s; }
.bill[open] summary span::after { transform: rotate(-135deg); }
.bill li { display: flex; gap: 8px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.bill li span { flex: 1; }
.bill li em { font-style: normal; font-weight: 800; font-size: 11.5px; background: var(--lime); padding: 0 5px; border-radius: 4px; margin-left: 6px; }
.bill-sum { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.bill-sum:last-child { padding-bottom: 16px; }

/* ---------- kasica ---------- */
.months { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 18px; }
.months i { flex: 1; background: rgba(255, 255, 255, .5); border-radius: 4px 4px 0 0; }
.months i.now { background: var(--lime); }
.months-l { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-top: 8px; }
.equiv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.equiv div { background: var(--surface); border-radius: 18px; padding: 14px 12px; }
.equiv b { display: block; font-family: var(--display); font-size: 38px; line-height: 1; }
.equiv span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.wrapped { position: relative; display: flex; flex-direction: column; background: var(--ink) var(--ppat); color: #fff; border-radius: 24px; padding: 22px 20px; overflow: hidden; }
.wrapped-t { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; margin: 18px 0 16px; max-width: 260px; }
.wrapped-b { display: inline-flex; align-items: center; gap: 2px; font-weight: 750; color: var(--lime); }
.wrapped-b .ic { width: 18px; height: 18px; }

/* ---------- bottom nav ---------- */
.nav { flex: none; display: flex; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(15, 42, 63, .05); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; color: var(--muted); padding: 2px 0; }
.nav .ni { position: relative; width: 58px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s; }
.nav button.on { color: var(--ink); font-weight: 800; }
.nav button.on .ni { background: #D3E8F6; color: var(--blue-d); }
.nav .nb { position: absolute; top: -3px; right: 4px; background: var(--blue-d); color: #fff; font-size: 11.5px; font-weight: 800; min-width: 21px; height: 21px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }

/* ---------- toast + sheet ---------- */
.toast.has-undo { pointer-events: auto; }
.toast > span { flex: 1; display: flex; gap: 9px; align-items: center; }
.toast-undo { flex: none; border: 0; background: none; color: #9FD3F2; font-weight: 800; font-size: 14px; padding: 10px 6px; margin: -10px -4px -10px 0; }
.phone[data-route="lista"] .toast { bottom: 156px; }
.toast { position: absolute; left: 18px; right: 18px; bottom: 90px; z-index: 60; background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 15px; font-size: 14px; line-height: 1.35;
  display: flex; gap: 9px; align-items: center; opacity: 0; transform: translateY(12px); transition: all .25s var(--ease); pointer-events: none; }
.toast .ic { width: 18px; height: 18px; color: var(--lime); }
.toast.show { opacity: 1; transform: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(11, 29, 43, .45); z-index: 50; display: flex; align-items: flex-end; }
.sheet { background: #fff; width: 100%; border-radius: 24px 24px 0 0; padding: 24px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet b { font-family: var(--display); font-size: 24px; }
.sheet p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sheet .fine { font-size: 12.5px; margin-top: 12px; }
.sheet { animation: sheetUp .35s var(--ease) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet.install { text-align: left; }
.install-ic { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(15, 42, 63, .18); }
.howto { counter-reset: h; margin: 16px 0 4px; }
.howto li { counter-increment: h; position: relative; padding: 9px 0 9px 38px; font-size: 15px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.howto li::before { content: counter(h); position: absolute; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); font-family: var(--display); display: grid; place-items: center; }
.howto .ic { width: 20px; height: 20px; color: var(--blue-d); }

/* =========== Moja godina (PEAK): stories =========== */
.stories { position: relative; height: 100%; overflow: hidden; }
.st-blue { background: var(--blue) var(--ppat); color: #fff; }
.st-lime { background: var(--lime); color: var(--ink); }
.st-sky { background: var(--sky); color: var(--ink); }
.st-ink { background: var(--ink) var(--ppat); color: #fff; }
.st-bars { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 14px; right: 60px; display: flex; gap: 4px; z-index: 4; }
.st-bars i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: currentColor; opacity: .35; overflow: hidden; }
.st-bars i.done, .st-bars i.cur { opacity: 1; }
.st-bars i.cur { background: color-mix(in srgb, currentColor 28%, transparent); }
.st-bars i.cur::after { content: ''; position: absolute; inset: 0; background: currentColor; transform-origin: left; animation: bar var(--story-ms) linear forwards; }
.stories[data-story="7"] .st-bars i.cur::after { animation: none; transform: none; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.st-close { position: absolute; top: calc(2px + env(safe-area-inset-top)); right: 6px; z-index: 5; }
.st-prev, .st-next { position: absolute; top: 50px; bottom: 0; border: 0; background: transparent; z-index: 3; }
.st-prev { left: 0; width: 30%; } .st-next { right: 0; width: 70%; }
.st-prev.last { bottom: auto; height: 34%; }

/* three zones: kicker top, hero centred, payoff bottom, so no slide has a dead half */
.st { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(54px + env(safe-area-inset-top)) 26px calc(40px + env(safe-area-inset-bottom)); }
.st-top, .st-mid, .st-foot { position: relative; z-index: 1; }
.st-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.st-top > *, .st-mid > *, .st-foot > * { animation: rise .6s var(--ease) both; }
.st-top > * { animation-delay: .05s; } .st-mid > * { animation-delay: .2s; } .st-mid > * + * { animation-delay: .4s; } .st-mid > * + * + * { animation-delay: .55s; }
.st-foot > * { animation-delay: .7s; } .st-foot > * + * { animation-delay: .85s; } .st-foot > * + * + * { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.st-k { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; max-width: 300px; }
.st-s { font-size: 17px; line-height: 1.45; max-width: 310px; font-weight: 500; }
.st-s b { font-weight: 800; }
.st-big { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; }
.st-big + .st-s { margin-top: 10px; }
.st-huge { font-family: var(--display); font-weight: 700; font-size: 168px; line-height: .8; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.st-huge small { font-size: 36px; margin-left: 10px; letter-spacing: 0; }
.st-huge.ink { color: var(--ink); font-size: 136px; line-height: .84; }
.st-hint { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; margin-top: 18px; opacity: .85; }
.st-hint .ic { width: 16px; height: 16px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.st-mark { position: absolute; z-index: 0; top: 150px; right: -70px; width: 380px; height: 380px; fill: rgba(255, 255, 255, .09); pointer-events: none; animation: drift 7s ease-out both; }
@keyframes drift { from { transform: translateY(30px) rotate(6deg) scale(.95); } to { transform: none; } }
.st-logo { background: #fff; border-radius: 14px; padding: 10px 12px; align-self: flex-start; display: inline-block; box-shadow: 0 10px 24px rgba(11, 29, 43, .2); }
.st-logo img { width: 170px; }
.st-year { font-family: var(--display); font-weight: 700; font-size: 170px; line-height: .8; letter-spacing: -.03em; margin-top: 14px; }
.st-blue .st-mid .st-k { font-family: var(--body); font-size: 20px; }
.st-lime .st-mark { fill: rgba(15, 42, 63, .06); top: 70px; right: -110px; width: 460px; height: 460px; }
.st-sky .st-mark { fill: rgba(44, 147, 208, .12); top: auto; bottom: 120px; left: -120px; right: auto; }
.stories[data-story="6"] .st-mark { top: auto; bottom: -60px; right: -130px; }
.st-sign { font-size: 14px; font-weight: 600; margin-top: 10px; opacity: .8; }
.st-ink .st-s, .st-blue .st-s { opacity: .95; }

/* lockup: the logo's tilted blue banner + strip, carrying the number */
.lockup { position: relative; align-self: flex-start; margin: 10px 0 22px 4px; transform: rotate(-4deg); }
.st-mid > .lockup, .st-foot > .lockup { animation-name: riseTilt; }
@keyframes riseTilt { from { opacity: 0; transform: translateY(26px) rotate(-9deg) scale(.9); } to { opacity: 1; transform: rotate(-4deg); } }
.lk-b { display: flex; align-items: baseline; background: var(--blue); color: #fff; padding: 16px 22px 24px; border-radius: 4px; box-shadow: 0 18px 36px rgba(15, 42, 63, .25); }
.lk-n { font-family: var(--display); font-weight: 700; font-size: 120px; line-height: .8; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.lk-b small { font-family: var(--display); font-size: 34px; margin-left: 8px; }
.lk-s { position: absolute; left: 30px; bottom: -20px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 15px; padding: 8px 13px 7px; border-radius: 3px; white-space: nowrap; animation: strip .5s 1.1s var(--ease) both; }
@keyframes strip { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.lockup.hero .lk-n { font-size: 150px; }
.lockup.hero .lk-b { padding: 20px 24px 30px; }
.lockup.sm { margin: 12px 0 10px 2px; } .lockup.sm .lk-n { font-size: 72px; } .lockup.sm .lk-b small { font-size: 24px; } .lockup.sm .lk-b { padding: 12px 16px 16px; }
.lockup.card { margin: 14px 0 26px; } .lockup.card .lk-n { font-size: 92px; }
.lockup.card .lk-s { background: var(--lime); color: var(--ink); left: 18px; }
.burst.big { top: 50%; left: 46%; z-index: 0; }
.burst.big i { animation-delay: .95s; width: 12px; height: 22px; }
.st-lime .burst i:nth-child(odd) { background: var(--blue); }

/* visits: week grid fills in */
.weeks { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin-top: 30px; }
.weeks i { aspect-ratio: 1; border-radius: 4px; background: var(--blue); animation: pop .3s var(--d) var(--ease) both; }
.weeks i.miss { background: rgba(255, 255, 255, .14); }
.weeks i.fut { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
.weeks-l { display: flex; gap: 14px; font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.weeks-l span { display: inline-flex; align-items: center; gap: 6px; }
.weeks-l i { width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.weeks-l i.miss { background: rgba(255, 255, 255, .14); } .weeks-l i.fut { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.st-ink .st-huge { color: #fff; }

/* top 3: podium fills the middle */
.st-mid.podium { flex-direction: row; align-items: flex-end; justify-content: stretch; gap: 10px; padding-top: 30px; }
.pod { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.well.pod-img { width: 84%; align-self: center; background: #fff; border-radius: 18px; margin-bottom: -22px; position: relative; z-index: 1; box-shadow: 0 10px 22px rgba(11, 29, 43, .22); animation: rise .5s calc(var(--d) + .45s) var(--ease) both; }
.pod-bar { height: max(150px, calc(var(--h) - 150px)); background: var(--blue-d); border-radius: 16px 16px 0 0; padding: 34px 6px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; transform-origin: bottom; animation: grow .8s var(--d) var(--ease) both; }
.pod:nth-child(2) .pod-bar { background: var(--lime); color: var(--ink); }
.pod-r { font-family: var(--display); font-size: 30px; line-height: 1; opacity: .8; }
.pod-bar b { font-family: var(--display); font-size: 44px; line-height: 1; margin-top: auto; }
.pod-bar small { font-size: 13px; font-weight: 700; opacity: .9; margin-top: 2px; }
.pod-n { font-size: 13.5px; font-weight: 700; text-align: center; margin-top: 8px; animation: rise .4s calc(var(--d) + .7s) var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* smartest buy */
.smart { position: relative; align-self: center; }
.well.smart-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.well.smart-img { border: 8px solid #fff; width: 272px; background: #fff; border-radius: 50%; box-shadow: 0 18px 40px rgba(15, 42, 63, .18); }
.smart .seal { top: auto; bottom: 0; left: auto; right: -24px; animation: sealIn .5s .7s var(--ease) both; }
@keyframes sealIn { from { transform: rotate(-30deg) scale(.4); opacity: 0; } to { transform: rotate(-8deg); opacity: 1; } }

/* equivalents */
.eqs { gap: 26px; }
.eqrow p { font-size: 18px; font-weight: 600; }
.eqrow b { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--lime); margin-right: 6px; vertical-align: -8px; }
.plates { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 12px; max-width: 300px; }
.plates i { aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 4px #A7AD1A; animation: pop .25s var(--d) var(--ease) both; }
.bulbs { display: flex; gap: 8px; margin-top: 10px; color: var(--lime); }
.bulbs span { animation: pop .35s var(--d) var(--ease) both; }
.bulbs .ic { width: 38px; height: 38px; }
.sea { height: 16px; border-radius: 9px; background: rgba(255, 255, 255, .15); margin-top: 14px; overflow: hidden; }
.sea i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--blue), #67C6F2); border-radius: 9px; transform-origin: left; animation: grow-x 1.3s 1.2s var(--ease) both; }
.sea-l { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .75; margin-top: 6px; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }

/* percentile */
.pct { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 40px; align-items: end; height: 120px; }
.pct i { position: relative; height: var(--h); background: rgba(15, 42, 63, .16); border-radius: 6px 6px 2px 2px; animation: grow .45s var(--d) var(--ease) both; transform-origin: bottom; }
.pct i.you { background: var(--ink); }
.pct i.you span { position: absolute; top: -34px; left: 50%; transform: translateX(-50%) rotate(var(--tilt)); background: var(--ink); color: var(--lime); font-weight: 800; font-size: 14px; padding: 4px 9px; border-radius: 3px; }

/* share */
.sharecard { background: #fff; color: var(--ink); border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 22px 48px rgba(11, 29, 43, .32); animation-name: riseCard !important; }
@keyframes riseCard { from { opacity: 0; transform: translateY(30px) rotate(3deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
.sharecard { transform: rotate(-1.5deg); }
.sharecard img { width: 160px; }
.sharecard .sc-top { font-family: var(--display); font-size: 21px; line-height: 1.1; margin: 16px 0 0; }
.sharecard .sc-sub { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; }
.stories .btn.wide { margin-top: 10px; }
.stories.paused .st-bars i.cur::after, .stories.paused .st * { animation-play-state: paused !important; }
.btn.textw { background: transparent; color: #fff; height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- header card pill ---------- */
.cardpill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; margin: 2px 4px 0 0; border: 0; border-radius: 20px; background: var(--blue-l); color: var(--blue-d); font-weight: 800; font-size: 14px; }
.cardpill .ic { width: 20px; height: 20px; }

/* ---------- list search ---------- */
.search { margin-top: 14px; position: relative; z-index: 2; }
.search-f { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--surface); color: var(--muted); }
.search-f:focus-within { box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.search-f input { flex: 1; min-width: 0; border: 0; background: none; font: 500 16px var(--body); color: var(--ink); outline: none; }
.search-f input::placeholder { color: var(--muted); }
.qres:not(:empty) { margin-top: 6px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(15, 42, 63, .16), inset 0 0 0 1px var(--line); padding: 4px 12px; }
.qhit { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); min-height: 56px; }
.qres li:last-child .qhit { border-bottom: 0; }
.qhit > span:nth-child(2) { flex: 1; min-width: 0; }
.qhit b { display: block; font-size: 14.5px; font-weight: 650; }
.qhit small { display: block; font-size: 12.5px; color: var(--muted); }
.qhit-p { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.qhit > .ic { width: 22px; height: 22px; color: var(--blue-d); }
.qhit em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.qnone { padding: 14px 0; font-size: 14px; color: var(--muted); }
.row-u { display: block; font-family: var(--body); font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ---------- product sheet ---------- */
.psheet { position: relative; max-height: 88%; overflow-y: auto; padding-top: 12px; }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #D3DCE3; margin: 0 auto 14px; }
.ps-img { position: relative; width: 176px; margin: 0 auto 16px; }
.ps-img .seal { width: 60px; height: 60px; top: -4px; left: -14px; }
.psheet .ps-t { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.08; }
.psheet .ps-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; }
.psheet .ps-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.psheet .ps-pts, .psheet .ps-mi { color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.ps-act { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.ps-act .btn { flex: 1; }
.qty.big { height: 52px; } .qty.big button { width: 48px; height: 48px; } .psheet .qty.big b { min-width: 26px; font-size: 20px; }
.psheet .btn.wide { margin-top: 18px; }

.stories[data-story="3"] .st-foot { margin-top: 22px; }
