/* Vernostná aplikácia – základný vzhľad. Mobile-first, bez frameworku.
 * Farby, písmo a logo firmy sa NEMENIA tu, ale v public/brand/<firma>/theme.css. */

:root {
  /* predvolené (neutrálne) farby – firma ich prepíše vo svojom theme.css */
  --primary: #1f5f8b;     /* hlavná farba firmy */
  --primary-d: #164766;   /* tmavší odtieň (hover, prechod na karte) */
  --primary-2: #2a7cb3;   /* svetlejší odtieň (prechod na karte) */
  --primary-l: #e7f0f6;   /* veľmi svetlé pozadie ikon */
  --ink: #13283a;         /* text */
  --accent: #f2b705;      /* doplnková farba (dekor na karte, focus) */
  --paper: #f3f5f7;
  --line: #dde3e8;
  --muted: #5d6b77;
  --err: #c62f1d;
  --warn: #8a5a00;
  --radius: 14px;
  --brand-font: "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 16px/1.5 var(--body-font); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--brand-font); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sheet > .center { margin: 16px 0 0; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.link { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.link .ic { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Neprihlásený: zelený pás + biely list ---------- */
.is-guest { background: var(--primary) linear-gradient(170deg, var(--primary-2) 0%, var(--primary) 38%, var(--primary-d) 100%) no-repeat; background-size: 100% 300px; background-color: var(--paper); }
.guest { max-width: 460px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 16px 24px; }
.brandhead { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 26px; color: #fff; }
.brandhead img { max-height: 40px; width: auto; }
.brandhead__name { font: 700 1.9rem/1 var(--brand-font); letter-spacing: -.02em; position: relative; text-align: center; }
.sheet { background: #fff; border-radius: 22px; padding: 26px 20px 22px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.sheet--center { text-align: center; }
.sheet > h1 { font-size: 1.5rem; margin-bottom: .2em; }
.sheet > .muted { margin-bottom: 1.3em; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 4px 0 calc(20px + var(--safe-b)); }
.bigicon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-l); color: var(--primary); display: grid; place-items: center; margin: 4px auto 16px; }
.bigicon .ic { width: 30px; height: 30px; }

/* ---------- Formuláre ---------- */
.form { display: grid; gap: 14px; margin: 0; }
.form--inline { margin-top: 12px; }
.field { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; }
.field em, .check em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search] {
  width: 100%; height: 50px; padding: 0 14px; font: 400 16px var(--body-font); color: var(--ink);
  background: #f7faf7; border: 1.5px solid var(--line); border-radius: 12px; appearance: none;
  transition: border-color .15s, background .15s;
}
input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-l); }
.field--err input { border-color: var(--err); background: #fff6f5; }
.field__err { color: var(--err); font-weight: 500; font-size: .82rem; }
.pw { position: relative; display: block; }
.pw input { padding-right: 50px; }
.pw__toggle { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pw__toggle.on { color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.check.field--err span { color: var(--err); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cols--3-1 { grid-template-columns: 1fr 92px; }
.cols--1-2 { grid-template-columns: 110px 1fr; }
.group { border: 0; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.group legend { font: 700 1.02rem var(--brand-font); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.hint { margin: 0; font-size: .88rem; color: var(--muted); background: var(--primary-l); padding: 10px 12px; border-radius: 10px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: #edf2ee; border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 9px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--body-font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); }
.btn--outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: .92rem; font-weight: 500; border-left: 4px solid; }
.alert--ok { background: #e7f5ee; border-color: var(--primary); color: var(--primary-d); }
.alert--error { background: #fdecea; border-color: var(--err); color: #8f2112; }
.alert--warn { background: #fff7d6; border-color: var(--accent); color: var(--warn); }
.guest > .alert { margin: 0 0 14px; }

/* ---------- Prihlásený: horná lišta + spodná navigácia ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--primary); color: #fff;
}
.topbar__logo img { height: 26px; width: auto; }
.topbar__title { font: 700 1rem var(--brand-font); opacity: .85; flex: 1; }
.topbar__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.app { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(96px + var(--safe-b)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b));
}
.tabbar a {
  flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 600; border-radius: 12px;
}
.tabbar a.on { color: var(--primary); }
.tabbar a.on .ic { background: var(--primary-l); border-radius: 999px; padding: 3px 14px; width: 54px; height: 30px; }
.tabbar .ic { width: 24px; height: 30px; padding: 3px 0; }

.hello { margin: 2px 0 14px; }
.hello__hi { font: 700 1.45rem/1.2 var(--brand-font); margin: 0; }
.h1 { font-size: 1.45rem; margin: 0; }

/* ---------- Vernostná karta (hlavný prvok) ---------- */
.cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.cards__item { flex: 0 0 100%; scroll-snap-align: center; }
.cards__item:only-child { flex-basis: 100%; }
.lcard {
  position: relative; overflow: hidden; aspect-ratio: 1.586; border-radius: 20px; color: #fff; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 140% at 0% 0%, var(--primary-2) 0%, var(--primary) 45%, var(--primary-d) 100%);
  box-shadow: 0 22px 34px -18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.lcard__deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lcard__top, .lcard__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lcard__brand { font: 700 1.35rem/1 var(--brand-font); }
.lcard__brand em { font-style: normal; font-weight: 400; opacity: .85; }
.lcard__top img { height: 22px; width: auto; }
.lcard__deco .a { stroke: var(--accent); }
.lcard__deco .w { stroke: #fff; }
.lcard__pts { position: relative; }
.lcard__num { display: block; font: 700 clamp(2.6rem, 13vw, 3.4rem)/1 var(--brand-font); letter-spacing: -.03em; }
.lcard__lbl { font-size: .9rem; opacity: .85; }
/* spodok karty: názov nad číslom, číslo čitateľné na celú šírku */
.lcard__bottom { display: grid; gap: 1px; justify-content: stretch; }
.lcard__name { font-size: .78rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__no {
  font-size: clamp(.98rem, 4.6vw, 1.18rem); font-weight: 600; letter-spacing: .09em; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.codebox {
  display: block; margin-top: 12px; background: #fff; border-radius: 16px; padding: 14px 16px 10px;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line);
}
.codebox .barcode { width: 100%; height: 60px; }
.codebox__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--primary); }
.codebox__hint .ic { width: 18px; height: 18px; }

.overlay { position: fixed; inset: 0; z-index: 50; background: #fff; display: none; flex-direction: column; justify-content: center; padding: 24px 20px calc(24px + var(--safe-b)); }
.overlay:target { display: flex; }
.overlay__close { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--ink); }
.overlay__body { text-align: center; max-width: 640px; width: 100%; margin: 0 auto; }
.overlay__title { font: 700 1.1rem var(--brand-font); color: var(--primary); }
.overlay .barcode { width: 100%; height: 140px; }
.overlay__num { font-size: 1.35rem; font-weight: 700; margin: 14px 0 6px; }
@media (orientation: landscape) and (max-height: 500px) { .overlay .barcode { height: 45vh; } }

.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.dots i.on { width: 20px; background: var(--primary); }

/* ---------- Graf (tmavý panel vo farbe značky) ---------- */
.chartbox {
  margin-top: 22px; border-radius: 20px; padding: 16px 14px 12px; color: #fff; overflow: hidden;
  background: radial-gradient(130% 120% at 100% 0%, var(--primary) 0%, var(--primary-d) 55%, #0b1410 120%);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.chartbox__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.chartbox h2 { font-size: .95rem; opacity: .85; margin: 0 0 2px; }
.chartbox__switches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chartbox__empty { margin: 18px 4px 8px; font-size: .9rem; opacity: .85; }
.chartbox__empty a { color: #fff; font-weight: 700; }

/* prepínač obdobia */
.pswitch { display: inline-flex; padding: 3px; border-radius: 999px; background: #e8eeea; flex: none; }
.pswitch a { padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--muted); white-space: nowrap; }
.pswitch a.on { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.pswitch--dark { background: rgba(255, 255, 255, .12); }
.pswitch--dark a { color: rgba(255, 255, 255, .78); }
.pswitch--dark a.on { background: #fff; color: var(--primary-d); }
.chartbox__sum { font: 700 1.6rem/1.15 var(--brand-font); margin: 0; font-variant-numeric: tabular-nums; }
.chartbox__trend { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.chartbox__trend.up { color: #fff; }
.chartbox__trend.down { color: #ffd9d4; }
.chart { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.chart__grid { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.chart__ylab, .chart__xlab { fill: rgba(255, 255, 255, .62); font: 500 9px var(--body-font); }
.chart__stop1 { stop-color: #fff; stop-opacity: .34; }
.chart__stop2 { stop-color: #fff; stop-opacity: 0; }
.chart__area { fill: url(#chartFill); }
.chart__glow { fill: none; stroke: #fff; stroke-width: 6; opacity: .16; stroke-linecap: round; }
.chart__line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart__cmp { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .9; }
.chart__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart__hit { fill: transparent; }
.chartbox__legend { display: flex; gap: 16px; font-size: .75rem; opacity: .8; margin-top: 2px; padding-left: 4px; }
.lg::before { content: ""; display: inline-block; width: 16px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2px solid #fff; }
.lg--cmp::before { border-top: 2px dashed var(--accent); }

/* ---------- Bloky, nákupy ---------- */
.block { margin-top: 26px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; }
.block h2 small { font: 400 .85rem var(--body-font); }
.txlist { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.tx { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-l); color: var(--primary); display: grid; place-items: center; flex: none; }
.tx__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx__main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__main small { color: var(--muted); font-size: .82rem; }
.tx__items { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.tx__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.tx__sum { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.pts { font-size: .76rem; font-weight: 700; color: var(--primary); background: var(--primary-l); padding: 2px 8px; border-radius: 99px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pts--minus { color: var(--err); background: #fdecea; }
.month { font: 700 .95rem var(--brand-font); color: var(--muted); margin: 22px 4px 8px; position: sticky; top: 60px; background: var(--paper); padding: 6px 0; z-index: 2; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--3 .stat__v { font-size: 1.1rem; }
.stat__v { display: block; font: 700 1.35rem var(--brand-font); color: var(--primary); font-variant-numeric: tabular-nums; }
.stat__l { font-size: .82rem; color: var(--muted); }

.search { display: flex; align-items: center; gap: 8px; position: relative; }
.search .ic { position: absolute; left: 14px; color: var(--muted); width: 20px; height: 20px; }
.search input { padding-left: 44px; background: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty { text-align: center; padding: 40px 10px; }
.news { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; margin-bottom: 10px; font-size: .95rem; }
.news p:last-child { margin: 0; }

/* ---------- Profil ---------- */
.profilehead { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--brand-font); flex: none; box-shadow: inset 0 0 0 3px var(--accent); }
.profilehead p { margin: 0; word-break: break-all; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; margin-bottom: 14px; }
.logout { margin: 18px 0 10px; }

/* ---------- Väčšie displeje ---------- */
@media (min-width: 600px) {
  .sheet { padding: 32px 30px 26px; }
  .app { padding-top: 26px; }
  .cards__item { flex-basis: 88%; }
  .cards__item:only-child { flex-basis: 100%; }
}
@media (min-width: 900px) {
  .is-guest { background-size: 100% 360px; }
  .guest { padding-top: 60px; }
  .tabbar { top: auto; }
}
@media (max-width: 360px) {
  .cols { grid-template-columns: 1fr; }
  .lcard { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Načítavanie: animované logo firmy v grafe ---------- */
.chartbox { position: relative; }
.loader {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .62));
  backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2);
  border-radius: inherit; animation: ldIn .18s ease-out both;
}
.loader__ring {                  /* kruh s otáčajúcim sa prstencom okolo loga */
  position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 40px rgba(255, 255, 255, .15);
}
.loader__ring::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 4px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent)); animation: spin .9s linear infinite;
}
.loader__logo { position: relative; overflow: hidden; padding: 4px 6px; animation: ldPulse 1.2s ease-in-out infinite; }
.loader__logo img { height: 46px; width: auto; max-width: 104px; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.loader__logo::after {           /* lesklý odlesk, ktorý prechádza cez logo */
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: skewX(-18deg); animation: ldShine 1.2s ease-in-out infinite;
}
.loader__txt { font: 700 .95rem var(--brand-font); color: #fff; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.loader__dots { display: flex; gap: 5px; }
.loader__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ldDot 1s ease-in-out infinite; }
.loader__dots i:nth-child(2) { animation-delay: .15s; }
.loader__dots i:nth-child(3) { animation-delay: .3s; }
.chartbox.is-loading .chart, .chartbox.is-loading .chartbox__sum { filter: blur(2px); opacity: .5; transition: opacity .2s, filter .2s; }
.chartbox.is-fresh .chart, .chartbox.is-fresh .chartbox__sum { animation: ldFresh .5s ease-out both; }
/* zvyšok obrazovky počas načítania stmavne */
main.is-swapping > :not(.chartbox) { opacity: .35; filter: grayscale(.4); transition: opacity .25s, filter .25s; pointer-events: none; }
main.is-swapping .chartbox { box-shadow: 0 0 0 3px var(--accent), 0 24px 40px -20px rgba(0, 0, 0, .6); transition: box-shadow .25s; }
@keyframes ldIn { from { opacity: 0; } }
@keyframes ldPulse { 50% { transform: scale(1.08); } }
@keyframes ldShine { to { left: 140%; } }
@keyframes ldDot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes ldFresh { from { opacity: 0; transform: translateY(8px); } }

/* tenký pásik pri prechode medzi záložkami */
body.navigating::after {
  content: ""; position: fixed; z-index: 2000; top: 0; left: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: navBar 1s linear infinite;
}
@keyframes navBar { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- Stanice ---------- */
.mapbox { position: relative; z-index: 0; isolation: isolate; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .45); background: #e9eee9; }
#map { height: 46vh; min-height: 260px; max-height: 460px; }
.leaflet-container { font: inherit; }
.mpin span {
  display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--primary); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.mpin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); }
.mpin--off span { background: #7c8a82; }
.mme { fill: #2b7cff; fill-opacity: .9; stroke: #fff; stroke-width: 3; }
.mpop { font-weight: 700; color: var(--primary); text-decoration: none; }

.st-tools { margin: 14px 0 10px; }
.btn--sm { min-height: 50px; padding: 0 16px; font-size: .9rem; }
.btn--sm .ic { width: 20px; height: 20px; }
.btn.is-busy .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips--filter { margin-bottom: 12px; }
button.chip { font: 600 .9rem var(--body-font); color: var(--ink); cursor: pointer; }
button.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip--primary { display: inline-flex; align-items: center; gap: 6px; background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.chip--primary .ic { width: 18px; height: 18px; }
.chip--primary.is-busy .ic { animation: spin 1s linear infinite; }

.stlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; scroll-margin-top: 80px; transition: box-shadow .3s, border-color .3s; }
.st--hl, .st:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.st__name { font-size: 1.05rem; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st__dist { font: 600 .78rem var(--body-font); color: var(--primary); background: var(--primary-l); padding: 2px 8px; border-radius: 99px; vertical-align: 2px; }
.st__addr { margin: 0; font-size: .88rem; color: var(--muted); }
.st__open { margin: 6px 0 0; font-size: .84rem; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st__open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.st__open.on { color: #0b7a43; }
.st__open.off { color: #8a8f8c; }
.st__open .st__hours { font-weight: 500; color: var(--muted); }
.st__prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; margin: 12px 0 10px; }
.price { display: flex; flex-direction: column; gap: 1px; background: var(--paper); border-radius: 10px; padding: 7px 10px; }
.price__n { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.price__v { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st__svc { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.st__svc .ic { width: 20px; height: 20px; }
.st__hours { color: var(--muted); font-size: .85rem; }
.st__actions { display: flex; gap: 6px; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }

/* štyri záložky v spodnej navigácii */
.tabbar a { max-width: 130px; }
@media (prefers-reduced-motion: reduce) {
  .loader__logo, .loader__logo::after, .loader__dots i, body.navigating::after { animation: none; }
  .loader__ring::before { animation-duration: 2.5s; }
}


/* =====================================================================
   Animácie pri otvorení (iba ak používateľ nemá zapnuté „obmedziť pohyb“)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* plynulý prechod medzi stránkami (Chrome, Edge, Safari 18+); lišty ostávajú na mieste */
  @view-transition { navigation: auto; }   /* animácie prechodu sú v night.css (zákaznícka časť) */
  .topbar { view-transition-name: topbar; }
  .tabbar { view-transition-name: tabbar; }

  /* sekcie postupne nabehnú zdola */
  main.app > *, .guest > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  main.app > :nth-child(2), .guest > :nth-child(2) { animation-delay: .06s; }
  main.app > :nth-child(3), .guest > :nth-child(3) { animation-delay: .12s; }
  main.app > :nth-child(4) { animation-delay: .18s; }
  main.app > :nth-child(5) { animation-delay: .24s; }
  main.app > :nth-child(6) { animation-delay: .3s; }
  main.app > :nth-child(n+7) { animation-delay: .36s; }
  .alert { animation: drop .45s cubic-bezier(.2, .8, .2, 1) both; }

  /* vernostná karta priletí s 3D náklonom a prebehne po nej odlesk */
  .cards { animation: none !important; }
  .lcard { animation: cardIn .85s cubic-bezier(.2, .9, .25, 1.05) .05s both; transform-origin: 50% 100%; }
  .lcard::after {
    content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: cardShine 1.1s ease-in-out .75s both;
  }
  .codebox { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .28s both; }

  /* riadky zoznamov postupne */
  .tx, .st, .stat, .news, .price, .panel {
    animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
  }
  .tx:nth-child(1), .st:nth-child(1), .stat:nth-child(1), .price:nth-child(1) { animation-delay: .15s; }
  .tx:nth-child(2), .st:nth-child(2), .stat:nth-child(2), .price:nth-child(2) { animation-delay: .21s; }
  .tx:nth-child(3), .st:nth-child(3), .stat:nth-child(3), .price:nth-child(3) { animation-delay: .27s; }
  .tx:nth-child(4), .st:nth-child(4), .price:nth-child(4) { animation-delay: .33s; }
  .tx:nth-child(5), .st:nth-child(5), .price:nth-child(5) { animation-delay: .39s; }
  .tx:nth-child(6), .st:nth-child(6), .price:nth-child(6) { animation-delay: .45s; }
  .tx:nth-child(n+7), .st:nth-child(n+7), .price:nth-child(n+7) { animation-delay: .5s; }
  .pts { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) .55s both; }

  /* graf: čiara sa nakreslí, plocha sa dofarbí, koncový bod pukne */
  .chart__line, .chart__glow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.15s cubic-bezier(.45, 0, .2, 1) .35s forwards; }
  .chart__area { animation: fade .8s ease .95s both; }
  .chart__cmp { animation: fade .7s ease 1.05s both; }
  .chart__dot { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3, 1.8, .5, 1) 1.4s both; }
  .chartbox__trend { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) .7s both; }

  /* spodná navigácia: aktívna ikona jemne „poskočí“ */
  .tabbar a.on .ic { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
  .tabbar a:active .ic { transform: scale(.9); }

  /* mapa: špendlíky popadajú */
  .mpin span { animation: pinDrop .55s cubic-bezier(.3, 1.4, .5, 1) both; }
  .leaflet-marker-pane > :nth-child(3n+1) span { animation-delay: .25s; }
  .leaflet-marker-pane > :nth-child(3n+2) span { animation-delay: .4s; }
  .leaflet-marker-pane > :nth-child(3n) span { animation-delay: .55s; }

  /* prihlásenie / registrácia */
  .brandhead { animation: drop .6s cubic-bezier(.2, .8, .2, 1) both; }
  .sheet { animation: sheetUp .7s cubic-bezier(.2, .9, .25, 1) .08s both; }
  .bigicon { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes cardIn { from { opacity: 0; transform: perspective(900px) rotateX(24deg) translateY(34px) scale(.93); } }
@keyframes cardShine { from { transform: translateX(-140%) skewX(-18deg); } to { transform: translateX(330%) skewX(-18deg); } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes pinDrop { from { opacity: 0; transform: rotate(-45deg) translate(22px, -22px); } }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Mapa: vzhľad podkladu a zdroj ---------- */
.map--clean .leaflet-tile-pane { filter: grayscale(.92) brightness(1.06) contrast(.92); }
.map--soft .leaflet-tile-pane { filter: saturate(.55) brightness(1.04) contrast(.95); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .18) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; font-weight: 600; }
.mattr { display: flex; align-items: center; flex-direction: row-reverse; gap: 4px; margin: 0 8px 8px 0 !important; }
.mattr__btn {
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .88); color: var(--muted); font: 700 13px/24px var(--body-font);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.mattr__txt {
  display: none; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 3px 10px;
  font-size: 11px; color: var(--muted); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); white-space: nowrap;
}
.mattr__txt a { color: inherit; }
.mattr.open .mattr__txt { display: block; }

/* ---------- Pridať na plochu ---------- */
.a2hs {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 10px 12px 12px; margin: 0 0 14px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .5);
}
.a2hs[hidden], .a2hs-row[hidden] { display: none; }
.a2hs__icon { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.a2hs__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.a2hs__txt strong { font: 700 .95rem var(--brand-font); }
.a2hs__txt span { font-size: .82rem; color: var(--muted); }
.a2hs__btn { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.a2hs__x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.a2hs__x .ic { width: 18px; height: 18px; }
.a2hs-row__in { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.a2hs-row__in img { border-radius: 12px; }
.a2hs-row h2 { margin: 0; }
.a2hs-row p { margin: 0; }

/* návod (spodný panel) */
body.modal-open { overflow: hidden; }
.sheet-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; justify-content: center; }
.sheet-modal[hidden] { display: none; }
.sheet-modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .2s both; }
.sheet-modal__box {
  position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(22px + var(--safe-b)); text-align: center; animation: sheetUp .35s cubic-bezier(.2, .9, .25, 1) both;
}
.sheet-modal__box .a2hs__x { position: absolute; top: 12px; right: 12px; }
.sheet-modal__icon { margin: 0 auto 10px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.steps { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; display: grid; gap: 10px; counter-reset: st; }
.steps[hidden] { display: none; }
.steps li { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: .92rem; }
.steps__ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #fff; color: #0a84ff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.steps__ic .ic { width: 22px; height: 22px; }
.sheet-modal__arrow { position: absolute; bottom: 6px; left: 50%; width: 0; height: 0; transform: translateX(-50%);
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid #fff; display: none; }
@media (prefers-reduced-motion: no-preference) {
  .a2hs:not([hidden]) { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .5s both; }
}

/* ---------- Výrobca aplikácie ---------- */
.vendor a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 1px dotted currentColor; }
.foot__vendor { display: block; margin-top: 4px; font-size: .75rem; opacity: .85; }
.about { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px 0 6px; font-size: .78rem; color: var(--muted); opacity: .8; }
.logout-all { text-align: center; margin: -4px 0 8px; }
.linkbtn { background: none; border: 0; padding: 6px; font: 600 .85rem var(--body-font); color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ---------- Položky nákupu: názov tovaru + množstvo ako štítok ---------- */
.tx__items { flex-direction: column; gap: 4px; margin-top: 6px; }
.it { display: flex; align-items: center; gap: 8px; min-width: 0; }
.it { max-width: 100%; }
.it__n { color: var(--ink); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.it__q { flex: none; white-space: nowrap; }   /* množstvo sa nikdy neskracuje – skráti sa iba názov */
.it__q {
  flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; line-height: 1.6;
}
.it__q--fuel { color: #3b6f9e; background: #eef4fa; border-color: #d6e4f1; }   /* litre paliva modrastým tónom */

/* ---------- Úvodná animácia pri spustení z plochy ----------
   Naviaže na systémovú úvodnú obrazovku (rovnaká zelená), logo v kruhu so žltým prstencom, potom sa rozplynie. */
.boot {
  position: fixed; inset: 0; z-index: 5000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(120% 90% at 50% 40%, var(--primary-2) 0%, var(--primary) 45%, var(--primary-d) 100%);
  animation: bootOut .5s cubic-bezier(.4, 0, .2, 1) 1.15s forwards;
}
.boot__mark { animation: bootIn .6s cubic-bezier(.2, .9, .25, 1.15) both; }
.boot .loader__ring { width: 150px; height: 150px; }
.boot .loader__logo img { height: 52px; max-width: 120px; }
.boot__name { color: #fff; font: 700 1.05rem var(--brand-font); letter-spacing: .04em; opacity: .9; animation: rise .5s ease .35s both; }
.boot.is-done { animation: bootOut .4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes bootIn { from { opacity: 0; transform: scale(.6); } }
@keyframes bootOut { to { opacity: 0; transform: scale(1.08); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .boot, .boot.is-done { animation: bootOut .2s linear .4s forwards; }
  .boot__mark, .boot__name { animation: none; }
}
/* počas úvodnej animácie obsah čaká, potom nabehne */
.is-booting main, .is-booting main *, .is-booting .tabbar * { animation-play-state: paused !important; }

/* ---------- Načítanie na pozadí: skeleton ---------- */
.lazy { margin-top: 22px; }
.lazy.is-in > :first-child { margin-top: 0; }
.skel { border-radius: 20px; overflow: hidden; position: relative; }
.skel--chart { height: 300px; background: linear-gradient(160deg, var(--primary), var(--primary-d)); opacity: .85; padding: 18px 16px; display: grid; gap: 10px; align-content: start; }
.skel--chart i { display: block; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .18); }
.skel--chart i:nth-child(1) { width: 35%; } .skel--chart i:nth-child(2) { width: 55%; height: 26px; } .skel--chart i:nth-child(3) { width: 70%; margin-top: 140px; height: 2px; }
.skel-head { margin: 26px 0 10px; } .skel-head i { display: block; width: 40%; height: 18px; border-radius: 9px; background: var(--line); }
.skel--list { background: #fff; border: 1px solid var(--line); display: grid; }
.skel--list i { display: block; height: 64px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent 0 62px, var(--paper) 62px 70%, transparent 70%) no-repeat center / calc(100% - 28px) 14px; }
.skel--list i:first-child { border-top: 0; }
.skel::after {                       /* prebiehajúci lesk */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: skel 1.2s ease-in-out infinite;
}
@keyframes skel { to { transform: translateX(100%); } }

/* ---------- Nákup ako odkaz na detail ---------- */
.tx { padding: 0; display: block; }
.tx__a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: inherit; text-decoration: none; border-radius: var(--radius); transition: background .15s; }
.tx__a:active, .tx__a:hover { background: var(--paper); }

/* ---------- Detail nákupu (bloček) ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; color: var(--primary); font-weight: 700; text-decoration: none; }
.back .ic { width: 18px; height: 18px; transform: rotate(180deg); }
.receipt { background: #fff; border-radius: 6px 6px 0 0; overflow: hidden; }
.receipt__head {
  text-align: center; color: #fff; padding: 22px 18px 24px; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, var(--primary-2), var(--primary) 50%, var(--primary-d));
}
.receipt__head::after {              /* zúbkovaný okraj bločku */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background: radial-gradient(circle at 8px 10px, #fff 6px, transparent 6.5px) repeat-x; background-size: 16px 10px;
}
.receipt__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: rgba(255, 255, 255, .16); }
.receipt__ic .ic { width: 26px; height: 26px; }
.receipt__thanks { margin: 0; font: 700 1.15rem var(--brand-font); opacity: .95; }
.receipt__sum { margin: 4px 0 0; font: 700 2.3rem/1.1 var(--brand-font); font-variant-numeric: tabular-nums; }
.receipt__pts { margin: 8px 0 0; }
.receipt__pts .pts { background: var(--accent); color: var(--ink); font-size: .9rem; padding: 4px 12px; }
.receipt__items { list-style: none; margin: 0; padding: 14px 18px 6px; }
.receipt__items li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ri__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ri__name { font-weight: 600; }
.ri__total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ri__sub { margin-top: 4px; font-size: .82rem; color: var(--muted); }
.receipt__total, .receipt__info { margin: 0; padding: 6px 18px 10px; }
.receipt__total div, .receipt__info div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.receipt__total dt { font-weight: 700; } .receipt__total div:first-child dt, .receipt__total div:first-child dd { font: 700 1.1rem var(--brand-font); }
.receipt__total dd, .receipt__info dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.receipt__total .green { color: var(--primary); font-weight: 700; }
.receipt__info { background: var(--paper); border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.receipt__info dt { color: var(--muted); font-size: .88rem; }
.receipt__info dd { font-weight: 600; font-size: .92rem; }
@media (prefers-reduced-motion: no-preference) {
  /* bloček vychádza z tlačiarne (viď „Tlačiareň“ nižšie); riadky naskočia až po vytlačení */
  .receipt__items li { animation: rise .45s cubic-bezier(.2, .8, .2, 1) 1.05s both; }
  .receipt__items li:nth-child(2) { animation-delay: 1.13s; } .receipt__items li:nth-child(3) { animation-delay: 1.21s; } .receipt__items li:nth-child(n+4) { animation-delay: 1.27s; }
  .lazy.is-in > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
}

/* ---------- Debug: čas dotazov ---------- */
.qlog { margin: 20px 0 90px; font: 11px/1.4 ui-monospace, monospace; background: #111; color: #9f9; border-radius: 10px; padding: 10px; overflow-x: auto; }
.qlog b { color: #ff0; }

/* ---------- Upozornenia ---------- */
.a2hs__bell { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-l); color: var(--primary); }
.a2hs__bell .ic { width: 26px; height: 26px; }
.a2hs--push { grid-template-columns: auto 1fr auto auto; }
.pushbox .btn + .btn { margin-top: 8px; }
.pushbox__note { margin: 10px 0 0; }
[data-push][hidden], [data-push-banner][hidden] { display: none; }

/* =====================================================================
   Administrácia
   ===================================================================== */
.is-admin { background: var(--paper); }
.adm-top { position: sticky; }
.adm-top form { margin: 0; }
.adm-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 60px; z-index: 15; scrollbar-width: none; }
.adm-tabs a { flex: none; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--muted); }
.adm-tabs a.on { background: var(--primary-l); color: var(--primary); }
.admin { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.adm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.adm-head h1 { margin: 0; font-size: 1.5rem; }
.adm-login { max-width: 420px; margin: 40px auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.kpi__v { font: 700 1.6rem/1.1 var(--brand-font); color: var(--primary); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.kpi__l { font-size: .85rem; font-weight: 600; margin-top: 4px; }
.kpi__s { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.kpi--live { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.live { width: 10px; height: 10px; border-radius: 50%; background: #1fbf5f; box-shadow: 0 0 0 0 rgba(31, 191, 95, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(31, 191, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 191, 95, 0); } }
.adm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin-bottom: 14px; align-items: start; }
.adm-grid .chartbox { margin-top: 0; }
.adm-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.adm-grid--push { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .adm-grid--push { grid-template-columns: 1fr; } }
.admin .panel h2 { font-size: 1.05rem; }
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--paper); white-space: nowrap; }
.tag--all { background: #e6f2ec; color: #0b7a43; } .tag--target { background: #eef4fa; color: #3b6f9e; }
.tag--auto { background: #fff7d6; color: #8a5a00; } .tag--test { background: #f1f1f1; color: #666; }
textarea, select {
  width: 100%; padding: 12px 14px; font: 400 16px var(--body-font); color: var(--ink);
  background: #f7faf7; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical;
}
select { height: 50px; padding: 0 12px; appearance: auto; }
textarea:focus, select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-l); }
.target { display: grid; gap: 12px; }
.target[hidden], [data-kind][hidden] { display: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.btnrow .btn { flex: 1 1 auto; }
.preview { display: flex; gap: 12px; align-items: center; background: #1e1f22; color: #fff; border-radius: 16px; padding: 12px 14px; }
.preview__ic img { width: 38px; height: 38px; border-radius: 9px; display: block; }
.preview strong { display: block; font-size: .92rem; }
.preview span { font-size: .82rem; opacity: .8; }
.help ul { padding-left: 20px; margin: 0 0 10px; }
.help li { margin: 4px 0; }
.help pre { background: #111; color: #9f9; padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
.admin .chart { max-height: 320px; }
.adm-setup { max-width: 640px; margin: 10px auto; display: grid; gap: 14px; }
.setup { padding-left: 20px; margin: 8px 0 0; } .setup li { margin: 6px 0; }
.copybox { display: flex; gap: 8px; align-items: center; background: #111; border-radius: 12px; padding: 10px 10px 10px 14px; margin: 10px 0; }
.copybox code { flex: 1; color: #9f9; font-size: .8rem; word-break: break-all; }
.admin code { font-size: .88em; background: var(--paper); padding: 1px 5px; border-radius: 5px; }
.copybox code { background: none; padding: 0; }
/* prepínač (switch) */
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; cursor: pointer; }
.switch[hidden] { display: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; width: 46px; height: 28px; border-radius: 99px; background: #cfd8d2; position: relative; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--primary); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch strong { display: block; font-size: .92rem; }
.switch small { display: block; font-size: .78rem; color: var(--muted); }
/* admin – používateľ a odhlásenie v hornej lište */
.adm-user { display: flex; align-items: center; gap: 10px; }
.adm-user form { margin: 0; }
.adm-user__name { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .9rem; opacity: .95; }
.adm-user__av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 700 .85rem var(--brand-font); }
.adm-logout {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); font: 700 .88rem var(--body-font);
  transition: background .15s, border-color .15s, transform .1s;
}
.adm-logout .ic { width: 18px; height: 18px; }
.adm-logout:hover { background: #fff; color: var(--primary-d); border-color: #fff; }
.adm-logout:active { transform: scale(.96); }
@media (max-width: 520px) {
  .adm-user__name { display: none; }                 /* na mobile iba tlačidlo */
  .adm-logout { padding: 0 12px; }
}

/* ---------- Potvrdzovacie okno ---------- */
.cmodal { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 20px; }
.cmodal__bg { position: absolute; inset: 0; background: rgba(10, 20, 15, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .18s both; }
.cmodal__box {
  position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 26px 22px 20px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); animation: cmIn .28s cubic-bezier(.2, .9, .25, 1.2) both;
}
.cmodal.is-out .cmodal__box { animation: cmOut .16s ease-in both; }
.cmodal.is-out .cmodal__bg { animation: cmFade .16s ease-in both; }
.cmodal__ic { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; }
.cmodal__ic .ic { width: 28px; height: 28px; }
.cmodal__ic--danger { background: #fdecea; color: var(--err); }
.cmodal__ic--primary { background: var(--primary-l); color: var(--primary); }
.cmodal__t { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.cmodal__s { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.cmodal__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cmodal__s + .cmodal__btns { margin-top: 0; }
@keyframes cmIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }
@keyframes cmOut { to { opacity: 0; transform: scale(.95); } }
@keyframes cmFade { to { opacity: 0; } }
.btn--danger { background: var(--err); color: #fff; }
.btn--danger:hover { background: #a3271a; }
.btn--danger[disabled] { opacity: .45; }

/* ---------- História: označovanie a mazanie ---------- */
.hist-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.hist-head h2 { margin: 0; }
.hist-head .btn--sm { min-height: 40px; }
.tbl--hist td, .tbl--hist th { vertical-align: middle; }
.tbl .chk { width: 34px; padding-right: 0; }
.tbl tr.is-sel td { background: #fff8f6; }
.cb { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; cursor: pointer; }
.cb input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cb span { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); background: #fff; transition: background .15s, border-color .15s; }
.cb input:checked + span { background: var(--err); border-color: var(--err); box-shadow: inset 0 0 0 3px #fff; }
.cb input:indeterminate + span { background: linear-gradient(var(--err), var(--err)) center / 10px 2px no-repeat #fff; border-color: var(--err); }
.cb input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.iconbtn--del { width: 36px; height: 36px; border-color: transparent; color: var(--muted); background: transparent; }
.iconbtn--del:hover { background: #fdecea; color: var(--err); }

/* ---------- Pozdrav podľa dennej doby ---------- */
.greet { display: flex; align-items: center; gap: 10px; }
.greet__ic { width: 44px; height: 44px; flex: none; overflow: visible; color: var(--primary); }
.greet__ic * { stroke-linecap: round; }
.g-sun { fill: #ffc83d; }                              /* skutočné farby slnka a mesiaca – nezávisle od farieb z adminu */
.g-rays line { stroke: #ffb020; stroke-width: 2.2; }
.g-hor, .g-hor2 { stroke: currentColor; }
.g-hor2 { opacity: .5; }
.g--evening .g-sun { fill: #ff8a3d; }
.g-moon { fill: #ffe27a; stroke: #e8c34a; stroke-width: 1; }
.g-star { fill: #fff1b0; }
.g-rays, .g-sun { transform-box: view-box; transform-origin: 16px 16px; }
@media (prefers-reduced-motion: no-preference) {
  .g--day .g-rays { animation: gSpin 14s linear infinite; }
  .g--day .g-sun { animation: gPulse 3s ease-in-out infinite; }
  .g--morning .g-rise { animation: gRise 1.6s cubic-bezier(.2, .8, .2, 1) .3s both; }
  .g--morning .g-rays { animation: gSpin 18s linear infinite; }
  .g--evening .g-set { animation: gSet 2s cubic-bezier(.2, .8, .2, 1) .3s both; }
  .g--night .g-moon { transform-origin: 18px 16px; animation: gSway 5s ease-in-out infinite; }
  .g-star { transform-box: fill-box; transform-origin: center; animation: gTwinkle 2.4s ease-in-out infinite; }
  .g-star.s2 { animation-delay: .8s; } .g-star.s3 { animation-delay: 1.6s; }
}
@keyframes gSpin { to { transform: rotate(360deg); } }
@keyframes gPulse { 50% { transform: scale(1.12); } }
@keyframes gRise { from { transform: translateY(9px); opacity: .3; } }
@keyframes gSet { from { transform: translateY(-7px); } }
@keyframes gSway { 50% { transform: rotate(-8deg); } }
@keyframes gTwinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }

/* ---------- Pravidelný odlesk karty ---------- */
.lcard::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: 0; width: 28%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, .08) 70%, transparent 100%);
  transform: translateX(-160%) skewX(-16deg); opacity: 0;
}
.lcard > * { position: relative; z-index: 2; }
.lcard__deco { z-index: 0 !important; position: absolute !important; }
@media (prefers-reduced-motion: no-preference) {
  .lcard::before { animation: cardGleam 7s cubic-bezier(.45, .05, .25, 1) 2.2s infinite; }
  body:has(.overlay:target) .lcard::before { animation-play-state: paused; }   /* pri zväčšenom kóde netreba */
}
@keyframes cardGleam {
  0% { transform: translateX(-160%) skewX(-16deg); opacity: 0; }
  4% { opacity: 1; }
  22% { transform: translateX(420%) skewX(-16deg); opacity: 1; }
  23%, 100% { transform: translateX(420%) skewX(-16deg); opacity: 0; }
}


/* ---------- Tlačiareň: bloček sa „vytlačí“ ---------- */
.printer { position: relative; margin: 0 -2px; }
.printer__slot {
  position: relative; z-index: 3; height: 26px; margin: 0 -8px; border-radius: 14px;
  background: linear-gradient(#3a4740, #1d2622); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.printer__slot span { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 4px; background: #0b100e; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.printer__led { position: absolute; right: 16px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #39d67a; box-shadow: 0 0 6px #39d67a; }
.printer__mouth {                  /* papier vychádza spod štrbiny */
  position: relative; z-index: 2; margin: -10px 6px 0; overflow: hidden; padding: 0 4px 22px;
}
.printer.is-printed .printer__mouth { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .16)); }   /* tieň až po vytlačení (lacnejšie pre mobil) */
.receipt { box-shadow: inset 0 0 0 1px var(--line); will-change: transform; }
.receipt {                          /* zúbkovaný (odtrhnutý) spodný okraj */
  --z: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x,
                linear-gradient(#000 0 0) top / 100% calc(100% - var(--z) + 1px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x,
                linear-gradient(#000 0 0) top / 100% calc(100% - var(--z) + 1px) no-repeat;
  padding-bottom: 6px;
}
.receipt__info { background: #fafbfa; }
@media (prefers-reduced-motion: no-preference) {
  .receipt { animation: printOut 1.25s cubic-bezier(.22, .75, .25, 1) .15s both; }
  .printer__led { animation: ledBlink .5s ease-in-out .15s 2 both; }
}
@keyframes printOut {                /* plynulé vysunutie s jemným dobehnutím */
  0% { transform: translate3d(0, -100%, 0); }
  86% { transform: translate3d(0, 1.2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes ledBlink { 50% { background: #ffb020; box-shadow: 0 0 8px #ffb020; } }

/* ---------- Tankovanie: nádrž sa naplní ---------- */
.fuel { display: flex; align-items: center; gap: 16px; padding: 16px 18px 4px; }
.fuel__viz { position: relative; width: 74px; height: 96px; flex: none; }
.fuel__nozzle { position: absolute; top: -2px; left: 14px; width: 38px; height: 28px; z-index: 2; }
.fuel__nozzle path { fill: var(--ink); }
.fuel__nozzle .fuel__hose { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fuel__drop { position: absolute; left: 47px; top: 20px; width: 6px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #f2a900; opacity: 0; z-index: 1; }
.fuel__tank {
  position: absolute; left: 6px; right: 6px; bottom: 0; height: 62px; border-radius: 10px 10px 12px 12px; overflow: hidden;
  background: #eef1ef; border: 2.5px solid var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
}
.fuel__liq { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffd23f, #f2a900); will-change: transform; }
.fuel__wave { position: absolute; left: 0; top: -9px; width: 200%; max-width: none; height: 10px; will-change: transform; }
.fuel__wave path { fill: #ffd23f; }
.fuel__bub { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); opacity: 0; }
.fuel__bub.b1 { left: 22%; } .fuel__bub.b2 { left: 55%; width: 4px; height: 4px; } .fuel__bub.b3 { left: 75%; }
.fuel__marks { position: absolute; right: 5px; top: 8px; bottom: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.fuel__marks i { width: 8px; height: 2px; background: rgba(0, 0, 0, .25); border-radius: 2px; }
.fuel__txt { display: flex; flex-direction: column; min-width: 0; }
.fuel__lbl { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fuel__l { font: 700 1.9rem/1.1 var(--brand-font); font-variant-numeric: tabular-nums; }
.fuel__sub { font-size: .84rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .fuel__liq { animation: tankFill 1.9s cubic-bezier(.33, .1, .25, 1) 1.3s both; }
  .fuel__wave { animation: wave 1.6s linear infinite; }
  .fuel__drop { animation: drip 1.9s ease-in 1.3s 1 both; }
  .fuel__drop.d2 { animation-delay: 1.75s; } .fuel__drop.d3 { animation-delay: 2.2s; }
  .fuel__bub { animation: bubble 2.4s ease-in 2.4s infinite; }
  .fuel__bub.b2 { animation-delay: 3.1s; } .fuel__bub.b3 { animation-delay: 3.7s; }
}
@keyframes tankFill { from { transform: translate3d(0, calc(100% + 12px), 0); } }   /* hladina vystúpi zdola */
@keyframes wave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(0) scale(.6); } 10% { opacity: 1; } 45% { opacity: 1; transform: translateY(46px) scale(1); } 50%, 100% { opacity: 0; transform: translateY(50px); } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .8; } 100% { opacity: 0; transform: translateY(-34px); } }
.fuel__liq.lvl-1 { height: 5%; }
.fuel__liq.lvl-2 { height: 10%; }
.fuel__liq.lvl-3 { height: 15%; }
.fuel__liq.lvl-4 { height: 20%; }
.fuel__liq.lvl-5 { height: 25%; }
.fuel__liq.lvl-6 { height: 30%; }
.fuel__liq.lvl-7 { height: 35%; }
.fuel__liq.lvl-8 { height: 40%; }
.fuel__liq.lvl-9 { height: 45%; }
.fuel__liq.lvl-10 { height: 50%; }
.fuel__liq.lvl-11 { height: 55%; }
.fuel__liq.lvl-12 { height: 60%; }
.fuel__liq.lvl-13 { height: 65%; }
.fuel__liq.lvl-14 { height: 70%; }
.fuel__liq.lvl-15 { height: 75%; }
.fuel__liq.lvl-16 { height: 80%; }
.fuel__liq.lvl-17 { height: 85%; }
.fuel__liq.lvl-18 { height: 90%; }
.fuel__liq.lvl-19 { height: 95%; }
.fuel__liq.lvl-20 { height: 92%; }

/* tankovacia pištoľ */
.fuel__nozzle .fuel__grip, .fuel__nozzle .fuel__trig { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fuel__nozzle .fuel__trig { stroke-width: 1.8; opacity: .7; }
.fuel__drop { left: 49px; top: 21px; }

/* ---------- „Laserový“ pruh cez čiarový kód ----------
   Prebehne raz za ~6 s a zmizne (aby nerušil skener pri pokladni); vo zväčšenom kóde sa nezobrazuje. */
.codebox__code { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.laser {
  position: absolute; left: -4%; right: -4%; top: 0; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff2d2d 12%, #ff5a5a 50%, #ff2d2d 88%, transparent);
  box-shadow: 0 0 6px 1px rgba(255, 45, 45, .75), 0 0 16px 4px rgba(255, 45, 45, .25);
}
.laser::after {                     /* jemný „svit“ za čiarou */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 2px; height: 14px;
  background: linear-gradient(to top, rgba(255, 45, 45, .18), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .laser { animation: laser 6s ease-in-out 1.8s infinite; }
  body:has(.overlay:target) .laser { animation: none; opacity: 0; }
}
@keyframes laser {
  0% { top: 0; opacity: 0; }
  3% { opacity: 1; }
  14% { top: calc(100% - 2px); opacity: 1; }
  25% { top: 0; opacity: 1; }
  28%, 100% { top: 0; opacity: 0; }
}
.a2hs__legal { display: block; font-size: .7rem; color: var(--muted); opacity: .85; margin-top: 2px; line-height: 1.3; }
.pushbox__legal { margin: 8px 0 0; font-size: .78rem; }
.pushbox__legal[hidden] { display: none; }

/* ---------- Detail nákupu: potiahnutie medzi nákupmi ---------- */
html:has([data-swipe]) { overscroll-behavior-y: contain; }      /* potiahnutie dole nespustí obnovenie stránky v Chrome */
[data-swipe] { touch-action: pan-y; }
[data-swipe] .printer__mouth { transform-origin: 50% 90%; will-change: transform; }
.printer.will-close .printer__mouth { filter: brightness(.97); }
.txnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; }
.txnav__a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .88rem; color: var(--primary); text-decoration: none; }
.txnav__a .ic { width: 16px; height: 16px; }
.txnav__a:not(.txnav__a--next) .ic { transform: rotate(180deg); }
.txnav__a.is-off { color: var(--muted); opacity: .45; }
.txnav__hint { font-size: .78rem; color: var(--muted); text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 3500; transform: translate(-50%, 20px); opacity: 0;
  background: rgba(20, 30, 25, .92); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: .88rem; font-weight: 600;
  pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .9, .3, 1.2); white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) {
  /* príchod potiahnutím: bloček priletí zo strany (bez tlače), obsah naskočí rýchlo */
  .printer.enter-from-right .receipt { animation: enterR .38s cubic-bezier(.2, .85, .25, 1) both; }
  .printer.enter-from-left .receipt { animation: enterL .38s cubic-bezier(.2, .85, .25, 1) both; }
  .printer[class*="enter-from"] .printer__led { animation: none; }
  .printer[class*="enter-from"] .receipt__items li { animation-delay: .12s; }
  .printer[class*="enter-from"] .fuel__liq { animation-delay: .3s; }
  .printer[class*="enter-from"] .fuel__drop { animation-delay: .3s; } .printer[class*="enter-from"] .fuel__drop.d2 { animation-delay: .6s; }
  .printer[class*="enter-from"] .fuel__drop.d3 { animation-delay: .9s; }
  /* nápoveda: bloček sa jemne „pohne“ doľava a doprava */
  .printer.show-hint .printer__mouth { animation: swipeHint 1.4s ease-in-out 1.9s 1; }
  .printer.show-hint ~ .txnav .txnav__hint { animation: hintPulse 1.4s ease-in-out 1.9s 1; }
}
@keyframes enterR { from { transform: translate3d(70%, 0, 0) rotate(4deg); opacity: 0; } }
@keyframes enterL { from { transform: translate3d(-70%, 0, 0) rotate(-4deg); opacity: 0; } }
@keyframes swipeHint { 25% { transform: translate3d(-22px, 0, 0) rotate(-1deg); } 60% { transform: translate3d(14px, 0, 0) rotate(.6deg); } }
@keyframes hintPulse { 50% { color: var(--primary); } }
.txnav.is-loading .txnav__a { opacity: .35; pointer-events: none; }
.a2hs__btn.is-busy, [data-a2hs-go].is-busy { opacity: .75; position: relative; padding-right: 34px; }
.a2hs__btn.is-busy::after, [data-a2hs-go].is-busy::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

/* ---------- Viac: menu ---------- */
.menu { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.menu__i { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; text-decoration: none; color: inherit; transition: background .15s; }
.menu__i + .menu__i { border-top: 1px solid var(--line); }
.menu__i:active, .menu__i:hover { background: var(--paper); }
.menu__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-l); color: var(--primary); display: grid; place-items: center; flex: none; }
.menu__t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu__t strong { font-weight: 700; }
.menu__t small { color: var(--muted); font-size: .82rem; }
.menu__i > .ic:last-child { color: var(--muted); width: 18px; height: 18px; }
/* päť položiek v spodnej navigácii */
.tabbar a { font-size: .7rem; }


/* ---------- Odmeny za body ---------- */
.rw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 2px 0 14px; }
.rw-head p { margin: 2px 0 0; }
.rw-bal { flex: none; text-align: right; background: linear-gradient(135deg, var(--primary-2), var(--primary-d)); color: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .6); }
.rw-bal__v { display: block; font: 700 1.5rem/1 var(--brand-font); font-variant-numeric: tabular-nums; }
.rw-bal__l { font-size: .72rem; opacity: .85; }
.rw-how { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; margin-bottom: 12px; }
.rw-how summary { cursor: pointer; padding: 12px 0; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--primary); list-style: none; }
.rw-how summary::-webkit-details-marker { display: none; }
.rw-how summary .ic { width: 20px; height: 20px; }
.rw-how ol { margin: 0 0 12px; padding-left: 20px; font-size: .9rem; } .rw-how li { margin: 4px 0; }
.rw-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.rw-tools .chips { margin-bottom: 0; }
.rw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rw { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.rw[hidden] { display: none; }
.rw--can { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: 0 0 0 2px var(--primary-l); }
.rw__img { position: relative; aspect-ratio: 1; background: linear-gradient(145deg, var(--primary-l), #fff); display: grid; place-items: center; }
.rw__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.rw__ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); }
.rw__ph .ic { width: 28px; height: 28px; }
.rw__ok { position: absolute; left: 8px; top: 8px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.rw__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rw__group { font-size: .7rem; color: var(--muted); text-transform: none; }
.rw__name { font-size: .92rem; line-height: 1.25; }
.rw__price { margin-top: auto; padding-top: 6px; font: 700 1.05rem var(--brand-font); color: var(--primary); }
.rw--can .rw__price { color: var(--ink); }
.rw__bar { display: block; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: 6px; }
.rw__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.rw__miss { font-size: .74rem; color: var(--muted); margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .rw { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
  .rw:nth-child(2) { animation-delay: .05s; } .rw:nth-child(3) { animation-delay: .1s; } .rw:nth-child(4) { animation-delay: .15s; }
  .rw:nth-child(5) { animation-delay: .2s; } .rw:nth-child(6) { animation-delay: .25s; } .rw:nth-child(n+7) { animation-delay: .3s; }
  .rw__bar i { animation: barFill 1.1s cubic-bezier(.3, .1, .2, 1) .5s both; }
  .rw__ok { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) .45s both; }
}
@keyframes barFill { from { width: 0; } }
.rw__bar i.pc-0 { width: 3%; }
.rw__bar i.pc-5 { width: 5%; }
.rw__bar i.pc-10 { width: 10%; }
.rw__bar i.pc-15 { width: 15%; }
.rw__bar i.pc-20 { width: 20%; }
.rw__bar i.pc-25 { width: 25%; }
.rw__bar i.pc-30 { width: 30%; }
.rw__bar i.pc-35 { width: 35%; }
.rw__bar i.pc-40 { width: 40%; }
.rw__bar i.pc-45 { width: 45%; }
.rw__bar i.pc-50 { width: 50%; }
.rw__bar i.pc-55 { width: 55%; }
.rw__bar i.pc-60 { width: 60%; }
.rw__bar i.pc-65 { width: 65%; }
.rw__bar i.pc-70 { width: 70%; }
.rw__bar i.pc-75 { width: 75%; }
.rw__bar i.pc-80 { width: 80%; }
.rw__bar i.pc-85 { width: 85%; }
.rw__bar i.pc-90 { width: 90%; }
.rw__bar i.pc-95 { width: 95%; }
.rw__bar i.pc-100 { width: 100%; }

/* ---------- Admin: odmeny ---------- */
.rw-adm { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.rwa { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; align-items: center; }
.rwa.is-hidden { opacity: .6; }
.rwa__img { width: 84px; height: 84px; border-radius: 12px; background: linear-gradient(145deg, var(--primary-l), #fff); display: grid; place-items: center; overflow: hidden; }
.rwa__img img { width: 100%; height: 100%; object-fit: contain; }
.rwa__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rwa__info strong { line-height: 1.25; }
.rwa__info .rw__price { padding-top: 2px; margin-top: 0; }
.rwa__info .tag { align-self: flex-start; margin-top: 4px; }
.rwa__act { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rwa__act form { margin: 0; }
.rwa__btns { display: flex; gap: 6px; align-items: center; }
.filebtn { position: relative; overflow: hidden; cursor: pointer; min-height: 40px; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Admin: vzhľad ---------- */
.colorrow { display: grid; gap: 10px; }
.colorpick { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.colorpick input { width: 56px; height: 56px; border: 0; padding: 0; border-radius: 14px; background: none; cursor: pointer; flex: none; }
.colorpick input::-webkit-color-swatch-wrapper { padding: 0; } .colorpick input::-webkit-color-swatch { border: 0; border-radius: 14px; }
.colorpick input::-moz-color-swatch { border: 0; border-radius: 14px; }
.colorpick span { display: flex; flex-direction: column; } .colorpick small { color: var(--muted); font-size: .8rem; }
.colorpick code { font-size: .8rem; margin-top: 2px; align-self: flex-start; }
.lp-phone { max-width: 300px; margin: 0 auto; border-radius: 26px; overflow: hidden; border: 6px solid #1d2622; background: var(--paper); box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); }
.lp-top { background: var(--primary); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: 700 .85rem var(--brand-font); }
.lp-top img { height: 18px; width: auto; }
.lp-body { padding: 12px; display: grid; gap: 10px; }
.lp-card { aspect-ratio: 1.7; padding: 12px 14px; border-radius: 14px; }
.lp-card .lcard__brand { font-size: 1rem; } .lp-card .lcard__num { font-size: 2rem; }
.lp-stripe { position: absolute; right: -10px; top: -10px; width: 70px; height: 10px; background: var(--accent); transform: rotate(38deg); }
.lp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lp-row .chip { padding: 5px 12px; font-size: .8rem; }
.lp-acc { background: var(--accent); color: var(--ink); }
.lp-tab { display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 8px 4px; }
.lp-tab span { display: flex; flex-direction: column; align-items: center; font-size: .65rem; font-weight: 600; color: var(--muted); }
.lp-tab span.on { color: var(--primary); }
.lp-tab .ic { width: 20px; height: 20px; }
.rwa__desc { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin: 0; }
.rwa__desc textarea { min-height: 50px; font-size: .88rem; padding: 8px 10px; }

/* ---------- Karta odmeny (vysúvací panel) ---------- */
.rw[data-rw-open] { cursor: pointer; transition: transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.rw[data-rw-open]:active { transform: scale(.97); }
.rw[data-rw-open]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rsheet { position: fixed; inset: 0; z-index: 3200; display: flex; align-items: flex-end; justify-content: center; }
.rsheet[hidden] { display: none; }
.rsheet__bg { position: absolute; inset: 0; background: rgba(10, 20, 15, .5); opacity: 0; transition: opacity .28s; }
.rsheet.is-open .rsheet__bg { opacity: 1; }
.rsheet__panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-b));
  transform: translate3d(0, 105%, 0); transition: transform .42s cubic-bezier(.2, .9, .25, 1.08);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .4);
}
.rsheet.is-open .rsheet__panel { transform: none; }   /* „none“ – inak by zväčšený kód (position: fixed) ostal v paneli */
.rsheet.is-closing .rsheet__panel { transition: transform .26s cubic-bezier(.4, 0, 1, 1); }
.rsheet__grab { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 6px; }
.rsheet__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.rsheet__img {
  width: 62%; max-width: 230px; aspect-ratio: 1; margin: 6px auto 8px; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary-l), #fff); will-change: transform;
}
.rsheet__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rsheet__img .rw__ph { width: 72px; height: 72px; } .rsheet__img .rw__ph .ic { width: 36px; height: 36px; }
.rsheet__body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.rsheet__name { font-size: 1.35rem; margin: 0; }
.rsheet__desc { margin: 0; color: var(--muted); font-size: .92rem; }
.rsheet__price { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 4px; }
.rsheet__pts { font: 700 1.6rem/1 var(--brand-font); color: var(--primary); background: var(--primary-l); padding: 8px 18px; border-radius: 99px; }
.rsheet__state { font-size: .86rem; font-weight: 700; }
.rsheet__state.ok { color: #0b7a43; } .rsheet__state.miss { color: var(--err); }
.rsheet__steps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 8px; text-align: left; }
.rsheet__steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: .9rem; }
.rsheet__steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--brand-font); }
.rsheet--miss .rsheet__steps { opacity: .55; }
.rsheet__code { display: block; width: 100%; margin: 8px 0 4px; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: zoom-in; font: inherit; color: inherit; }
.rsheet__code .barcode { width: 100%; height: 80px; }
.rsheet__num { display: block; margin-top: 6px; font-weight: 700; letter-spacing: .08em; }
.rsheet__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .78rem; color: var(--primary); font-weight: 600; }
.rsheet__hint .ic { width: 16px; height: 16px; }
/* zväčšený kód pre pokladňu – samostatná vrstva (vytvára ju app.js) */
.rs-big { position: fixed; inset: 0; z-index: 4500; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 18px calc(24px + var(--safe-b)); cursor: zoom-out; animation: fade .18s both; }
.rs-big.is-out { animation: cmFade .16s ease-in both; }
.rs-big svg { width: 100%; max-width: 640px; height: 150px; }
.rs-big__name { font: 700 1.05rem var(--brand-font); color: var(--primary); margin: 0 0 16px; text-align: center; }
.rs-big__num { font-size: 1.35rem; font-weight: 700; margin: 14px 0 6px; }
.rs-big__hint { color: var(--muted); font-size: .85rem; margin: 0; }
@media (min-width: 700px) {                     /* počítač: okno v strede */
  .rsheet { align-items: center; }
  .rsheet__panel { border-radius: 26px; max-height: 88vh; transform: translate3d(0, 30px, 0) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .25, 1.05), opacity .25s; }
  .rsheet.is-open .rsheet__panel { transform: none; opacity: 1; }
  .rsheet__grab { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .rsheet.is-open .rs-in { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
  .rsheet.is-open .rs-in:nth-child(1) { animation-delay: .12s; } .rsheet.is-open .rs-in:nth-child(2) { animation-delay: .16s; }
  .rsheet.is-open .rs-in:nth-child(3) { animation-delay: .2s; } .rsheet.is-open .rs-in:nth-child(4) { animation-delay: .25s; }
  .rsheet.is-open .rs-in:nth-child(5) { animation-delay: .32s; } .rsheet.is-open .rs-in:nth-child(6) { animation-delay: .38s; }
  .rsheet.is-open .rsheet__pts { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
  .rsheet.is-open .rsheet__code .barcode { animation: codeDraw .8s cubic-bezier(.4, 0, .2, 1) .5s both; }
  .rsheet.is-open .rsheet__steps li { animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
  .rsheet.is-open .rsheet__steps li:nth-child(1) { animation-delay: .3s; } .rsheet.is-open .rsheet__steps li:nth-child(2) { animation-delay: .37s; }
  .rsheet.is-open .rsheet__steps li:nth-child(3) { animation-delay: .44s; }
}
@keyframes codeDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* zväčšený kód na Karte: ťuknutím kamkoľvek zavrieť (rovnako ako pri odmene) */
.overlay { cursor: zoom-out; }
.overlay__tap { position: absolute; inset: 0; z-index: 1; }
.overlay__body { position: relative; z-index: 0; pointer-events: none; }
.overlay .rs-big__hint { margin-top: 8px; }
.overlay__close { display: none; }
/* laser aj na kóde v karte odmeny (vypína sa so zväčšeným kódom – ten je samostatná vrstva bez lasera) */
.rsheet__code .codebox__code { border-radius: 4px; }
.rsheet__code .barcode { display: block; }

/* ---------- Karta bez signálu ---------- */
.offcard { margin: 6px 0 14px; text-align: left; }
.offcard .lcard { margin-bottom: 10px; }
.offcard__code { cursor: default; }
.offcard__code .barcode { width: 100%; height: 90px; }

/* ---------- Oslava nových bodov ---------- */
.cards__item { position: relative; }
.newpts {
  position: absolute; left: 50%; top: 38%; z-index: 6; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  background: var(--accent); color: var(--ink); border-radius: 18px; padding: 10px 18px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  animation: newIn .55s cubic-bezier(.3, 1.6, .5, 1) both;
}
.newpts strong { display: block; font: 700 1.6rem/1.1 var(--brand-font); }
.newpts span { font-size: .8rem; font-weight: 600; }
.newpts.is-out { animation: newOut .35s ease-in both; }
.confetti { position: absolute; left: 50%; top: 40%; z-index: 5; pointer-events: none; }
.confetti i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--accent); opacity: 0;
  animation: confetti 1.5s cubic-bezier(.2, .7, .3, 1) var(--d) forwards;
}
.confetti i:nth-child(3n) { background: var(--primary); } .confetti i:nth-child(3n+1) { background: #fff; width: 6px; height: 6px; border-radius: 50%; }
@keyframes newIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes newOut { to { opacity: 0; transform: translate(-50%, -70%) scale(.9); } }
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 120px)) rotate(var(--r)); }
}

/* ---------- Hodnotenie stanice ---------- */
.rate { margin-top: 4px; text-align: center; scroll-margin-top: 80px; }
.rate h2 { font-size: 1.05rem; margin-bottom: 8px; }
.rate__form { text-align: left; }
.rate__form h2 { text-align: center; }
.rate__form[hidden], .rate__done[hidden] { display: none; }
.starpick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { cursor: pointer; padding: 2px; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.starpick svg { display: block; fill: #e3e8e4; stroke: #c9d2cc; stroke-width: 1; transition: fill .15s, transform .2s; }
.starpick label:hover svg, .starpick label:hover ~ label svg,
.starpick input:checked ~ label svg { fill: var(--accent); stroke: color-mix(in srgb, var(--accent) 70%, #000); }
.starpick input:checked + label svg { animation: starPop .4s cubic-bezier(.3, 1.8, .5, 1); }
.starpick input:focus-visible + label { outline: 3px solid var(--primary); }
.starpick__lbl { text-align: center; min-height: 1.4em; margin: 0; font-weight: 600; transition: color .2s; }
.starpick__lbl.on { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 18px; height: 18px; background: #dfe5e1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars i.on { background: var(--accent); }
.stars i.half { background: linear-gradient(90deg, var(--accent) 50%, #dfe5e1 50%); }
.rate__done .stars i { width: 28px; height: 28px; }
.rate__text { margin: 8px 0 4px; color: var(--muted); font-style: italic; }
@keyframes starPop { 50% { transform: scale(1.3) rotate(-8deg); } }

/* ---------- Bannery na Karte ---------- */
.banners { margin: 18px 0 0; }
.banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; scrollbar-width: none; gap: 0;
  box-shadow: 0 14px 26px -20px rgba(0, 0, 0, .55); }
.banners__track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 12 / 5; background: var(--primary-l); display: block; color: #fff; text-decoration: none; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); display: flex; flex-direction: column; }
.banner__txt strong { font: 700 1.05rem var(--brand-font); }
.banner__txt span { font-size: .82rem; opacity: .9; }
.banners__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banners__dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
.banners__dots i.on { width: 18px; background: var(--primary); }
.news__img { width: calc(100% + 32px); max-width: none; margin: -16px -16px 12px; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px 16px 0 0; display: block; }
.news .link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.news .link .ic { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) { .banners { animation: rise .55s cubic-bezier(.2, .8, .2, 1) .35s both; } }
.rsheet__same { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 2px 0 6px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 18%, #fff); font-size: .85rem; }
.rsheet__same .ic { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }

/* ---------- Admin: export, novinky, hodnotenia, zabezpečenie, plánovanie ---------- */
.export { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.export h2 { display: flex; align-items: center; gap: 8px; }
.export p { margin: 4px 0 0; max-width: 720px; }
.newslist { display: grid; gap: 8px; }
.nl { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.nl.on, .nl:hover { border-color: var(--primary); background: var(--primary-l); }
.nl__img { width: 76px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--paper); display: grid; place-items: center; flex: none; color: var(--muted); }
.nl__img img { width: 100%; height: 100%; object-fit: cover; }
.nl__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nl__t .tag { align-self: flex-start; }
.nl__t small { color: var(--muted); font-size: .76rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nl-prev { max-width: 100%; max-height: 160px; border-radius: 12px; margin: 4px 0 8px; display: block; }
.check--mid { align-self: end; padding-bottom: 12px; }
input[type="date"], input[type="datetime-local"] { width: 100%; height: 50px; padding: 0 12px; font: 400 16px var(--body-font); background: #f7faf7; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); }
.when { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px; border: 1px dashed var(--line); border-radius: 14px; }
.when__l { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; }
.when__l .ic { width: 18px; height: 18px; color: var(--primary); }
.tbl tr.is-plan td { background: #f2f7fc; }
.tag .ic { width: 12px; height: 12px; vertical-align: -1px; }
.inl { display: inline; margin: 0; }
.kpi--dist { gap: 3px; }
.dist { display: grid; grid-template-columns: 26px 1fr 30px; gap: 6px; align-items: center; font-size: .76rem; }
.dist__bar { height: 6px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.dist small { color: var(--muted); text-align: right; }
.rv { padding: 10px 0; border-top: 1px solid var(--line); }
.rv:first-of-type { border-top: 0; }
.rv--bad { background: linear-gradient(90deg, #fdecea, transparent 60%); margin: 0 -10px; padding: 10px; border-radius: 10px; }
.rv__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rv__h small { color: var(--muted); margin-left: auto; }
.rv p { margin: 6px 0 2px; } .tbl td.bad { color: var(--err); font-weight: 700; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0 14px; }
.codes code { font-size: 1rem; text-align: center; padding: 8px; background: var(--paper); border-radius: 8px; letter-spacing: .06em; }
.qrbox { display: grid; place-items: center; margin: 8px 0; }
.qrbox img { width: 200px; height: 200px; image-rendering: pixelated; border: 8px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.secret { font-size: .95rem; letter-spacing: .05em; word-break: break-all; }
.codeinput { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.dist__bar i.pc-0 { width: 0 !important; }
.dist__bar i.pc-5 { width: 5%; }
.dist__bar i.pc-10 { width: 10%; }
.dist__bar i.pc-15 { width: 15%; }
.dist__bar i.pc-20 { width: 20%; }
.dist__bar i.pc-25 { width: 25%; }
.dist__bar i.pc-30 { width: 30%; }
.dist__bar i.pc-35 { width: 35%; }
.dist__bar i.pc-40 { width: 40%; }
.dist__bar i.pc-45 { width: 45%; }
.dist__bar i.pc-50 { width: 50%; }
.dist__bar i.pc-55 { width: 55%; }
.dist__bar i.pc-60 { width: 60%; }
.dist__bar i.pc-65 { width: 65%; }
.dist__bar i.pc-70 { width: 70%; }
.dist__bar i.pc-75 { width: 75%; }
.dist__bar i.pc-80 { width: 80%; }
.dist__bar i.pc-85 { width: 85%; }
.dist__bar i.pc-90 { width: 90%; }
.dist__bar i.pc-95 { width: 95%; }
.dist__bar i.pc-100 { width: 100%; }

/* ---------- Prepínač jazyka ---------- */
.langs { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.langs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; text-decoration: none; color: var(--muted); font-size: .8rem; border: 1px solid transparent; }
.langs a b { font: 700 .75rem var(--brand-font); }
.langs a span { display: none; }
.langs a.on { color: var(--primary); border-color: var(--line); background: #fff; }
.langs--big { justify-content: stretch; }
.langs--big a { flex: 1; justify-content: center; flex-direction: column; gap: 2px; padding: 10px 6px; border-color: var(--line); background: #fff; }
.langs--big a span { display: block; font-size: .78rem; }
.langs--big a b { font-size: 1rem; }
.langs--big a.on { background: var(--primary-l); border-color: var(--primary); }
.langpanel h2 { margin-bottom: 10px; }
.doc__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.doc__head h2 { margin: 0 0 4px; }
.doc__where { font-size: .9rem; margin: 6px 0; }
.doclink { margin: -4px 0 6px 34px; }

/* ---------- Admin → Novinky: náhľad ---------- */
.adm-grid--news { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 330px; }
@media (max-width: 1100px) { .adm-grid--news { grid-template-columns: 1fr 1fr; } .newsprev { grid-column: 1 / -1; } }
@media (max-width: 760px) { .adm-grid--news { grid-template-columns: 1fr; } }
.newsprev { position: sticky; top: 120px; }
.np-phone { max-width: 300px; }
.np-body { padding: 10px; display: grid; gap: 8px; background: var(--paper); min-height: 420px; align-content: start; }
.np-fake { border-radius: 12px; background: linear-gradient(135deg, var(--primary-2), var(--primary-d)); opacity: .35; }
.np-fake--card { height: 96px; } .np-fake--code { height: 36px; background: #fff; opacity: 1; border: 1px solid var(--line); }
.np-fake--chart { height: 60px; opacity: .2; }
.np-banner .banner { border-radius: 14px; aspect-ratio: 12 / 5; }
.np-banner .banner__txt { padding: 18px 10px 8px; }
.np-banner .banner__txt strong { font-size: .85rem; } .np-banner .banner__txt span { font-size: .7rem; }
.np-noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted); background: repeating-linear-gradient(45deg, #fff 0 10px, var(--paper) 10px 20px); }
.np-noimg small { font-size: .7rem; }
.np-news { margin: 0; } .np-news h2 { font-size: .95rem; margin: 4px 0 6px; }
.np-news .news { font-size: .8rem; padding: 12px; } .np-news .news h3 { font-size: .9rem; }
.np-news .news__img { width: calc(100% + 24px); margin: -12px -12px 8px; }
.btnrow--del { margin-top: 10px; }

/* ---------- Spolu ---------- */
.lcard__shared { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .18); padding: 3px 10px 3px 8px; border-radius: 99px; }
.lcard__shared .ic { width: 15px; height: 15px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--brand-font); color: #fff; background: #7a8c83;
  border: 2.5px solid #fff; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .3); }
.av .ic { width: 18px; height: 18px; }
.av--own { background: var(--primary); } .av--1 { background: #e08a3c; } .av--2 { background: #3b82c4; } .av--3 { background: #9b59b6; } .av--4 { background: #16a085; }
.av--inv { background: var(--paper); color: var(--muted); border-style: dashed; border-color: var(--line); }
.gintro { text-align: center; }
.gintro__art { position: relative; height: 110px; margin: 4px 0 10px; }
.gintro__art .av { position: absolute; top: 34px; width: 52px; height: 52px; }
.gintro__art .av--1 { left: calc(50% - 86px); } .gintro__art .av--2 { left: calc(50% - 26px); top: 18px; width: 58px; height: 58px; background: var(--primary); } .gintro__art .av--3 { left: calc(50% + 34px); }
.gintro__card { position: absolute; left: calc(50% - 30px); top: 74px; width: 60px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink);
  background: var(--accent); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .4); }
.gintro .form { text-align: left; }
.gout { text-align: center; }
.gout .btn + .btn, .gout form + .btn { margin-top: 8px; }
.gstat { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 10px; }
.gstat__ring { position: relative; flex: none; width: 132px; height: 132px; }
.gstat__ring svg { transform: rotate(-90deg); }
.ring__bg, .ring__fg { fill: none; stroke-width: 11; }
.ring__bg { stroke: var(--primary-l); }
.ring__fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 314.16; transition: stroke-dashoffset 1s; }
.gstat__now { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gstat__now strong { font: 700 1.6rem/1 var(--brand-font); } .gstat__now span { font-size: .72rem; color: var(--muted); }
.gstat__txt p { margin: 6px 0 0; }
.avs { display: flex; }
.avs .av + .av { margin-left: -10px; }
.kpis--g { grid-template-columns: 1fr 1fr; }
.kpi__v--sp { color: #c0392b; }
.gchart { margin-top: 0; }
.gm { list-style: none; margin: 0 0 10px; padding: 0; }
.gm__i { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.gm__i:first-child { border-top: 0; }
.gm__i form { margin: 0 0 0 auto; }
.gm__t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .gm__t small { color: var(--muted); font-size: .78rem; }
.gm__act { display: flex; gap: 6px; }
.gm__i--req { background: #fff8e6; margin: 0 -10px; padding: 8px 10px; border-radius: 12px; border-top: 0; }
.gh3 { font-size: .9rem; margin: 12px 0 4px; color: var(--muted); }
.ginvite { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.join__who { display: flex; gap: 12px; align-items: center; text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .ring__fg { animation: ringIn 1.3s cubic-bezier(.3, .1, .2, 1) .3s both; }
  .gintro__art .av, .avs .av { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  .gintro__art .av--2, .avs .av:nth-child(2) { animation-delay: .1s; } .gintro__art .av--3, .avs .av:nth-child(3) { animation-delay: .2s; }
  .avs .av:nth-child(4) { animation-delay: .3s; } .avs .av:nth-child(n+5) { animation-delay: .4s; }
  .gintro__card { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .35s both; }
}
@keyframes ringIn { from { stroke-dashoffset: 314.16; } }
.ring__fg.pc-0 { stroke-dashoffset: 314.16; }
.ring__fg.pc-5 { stroke-dashoffset: 298.45; }
.ring__fg.pc-10 { stroke-dashoffset: 282.74; }
.ring__fg.pc-15 { stroke-dashoffset: 267.04; }
.ring__fg.pc-20 { stroke-dashoffset: 251.33; }
.ring__fg.pc-25 { stroke-dashoffset: 235.62; }
.ring__fg.pc-30 { stroke-dashoffset: 219.91; }
.ring__fg.pc-35 { stroke-dashoffset: 204.20; }
.ring__fg.pc-40 { stroke-dashoffset: 188.50; }
.ring__fg.pc-45 { stroke-dashoffset: 172.79; }
.ring__fg.pc-50 { stroke-dashoffset: 157.08; }
.ring__fg.pc-55 { stroke-dashoffset: 141.37; }
.ring__fg.pc-60 { stroke-dashoffset: 125.66; }
.ring__fg.pc-65 { stroke-dashoffset: 109.96; }
.ring__fg.pc-70 { stroke-dashoffset: 94.25; }
.ring__fg.pc-75 { stroke-dashoffset: 78.54; }
.ring__fg.pc-80 { stroke-dashoffset: 62.83; }
.ring__fg.pc-85 { stroke-dashoffset: 47.12; }
.ring__fg.pc-90 { stroke-dashoffset: 31.42; }
.ring__fg.pc-95 { stroke-dashoffset: 15.71; }
.ring__fg.pc-100 { stroke-dashoffset: 0.00; }
/* Spolu: kto nakupoval */
.av--xs { width: 24px; height: 24px; font-size: .62rem; border-width: 2px; }
.av--fb { background: #c4cec8 !important; color: #fff; }
.tx__who { width: 40px; height: 40px; font-size: .8rem; }
.whos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -2px 0 12px; font-size: .8rem; color: var(--muted); }
.whos__l { font-weight: 600; } .whos__i { display: inline-flex; align-items: center; gap: 5px; }
.whodd { display: flex; flex-direction: column; align-items: flex-end; } .whodd .av { margin-bottom: 2px; }
.contrib h2 { margin-bottom: 10px; }
.ctr { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.ctr__b { flex: 1; min-width: 0; }
.ctr__h { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; } .ctr__h span { font-weight: 700; font-variant-numeric: tabular-nums; }
.ctr__bar { display: block; height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin: 5px 0 3px; }
.ctr__bar i { display: block; height: 100%; border-radius: inherit; border: 0; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .ctr__bar i { animation: barFill 1.1s cubic-bezier(.3, .1, .2, 1) .4s both; } }
.ctr__bar i.pc-0 { width: 3%; }
.ctr__bar i.pc-5 { width: 5%; }
.ctr__bar i.pc-10 { width: 10%; }
.ctr__bar i.pc-15 { width: 15%; }
.ctr__bar i.pc-20 { width: 20%; }
.ctr__bar i.pc-25 { width: 25%; }
.ctr__bar i.pc-30 { width: 30%; }
.ctr__bar i.pc-35 { width: 35%; }
.ctr__bar i.pc-40 { width: 40%; }
.ctr__bar i.pc-45 { width: 45%; }
.ctr__bar i.pc-50 { width: 50%; }
.ctr__bar i.pc-55 { width: 55%; }
.ctr__bar i.pc-60 { width: 60%; }
.ctr__bar i.pc-65 { width: 65%; }
.ctr__bar i.pc-70 { width: 70%; }
.ctr__bar i.pc-75 { width: 75%; }
.ctr__bar i.pc-80 { width: 80%; }
.ctr__bar i.pc-85 { width: 85%; }
.ctr__bar i.pc-90 { width: 90%; }
.ctr__bar i.pc-95 { width: 95%; }
.ctr__bar i.pc-100 { width: 100%; }

/* ---------- Detail nákupu: mapa stanice ---------- */
.txmap { margin-top: 4px; }
.txmap h2 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin-bottom: 10px; }
.txmap h2 .ic { width: 18px; height: 18px; color: var(--primary); }
.mapbox--sm #map { height: 210px; min-height: 0; }
.mapbox--sm { margin: 0 -4px; }
.txmap__st { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.txmap__st > div { display: flex; flex-direction: column; min-width: 0; }
.txmap__st small { font-size: .8rem; } .txmap__st .open { color: #0b7a43; font-weight: 600; } .txmap__st .closed { color: var(--err); font-weight: 600; }
.txmap__st .btn { flex: none; }
@media (prefers-reduced-motion: no-preference) { .txmap { animation: rise .55s cubic-bezier(.2, .8, .2, 1) 1.2s both; } }
@media (prefers-reduced-motion: no-preference) { .printer[class*="enter-from"] ~ .txmap { animation-delay: .2s; } }
