/* SalonPay — iOS Liquid Glass (zadání 7).
 *
 * Cíl: působit jako systémová aplikace iOS, ne jako admin dashboard.
 * Vrstvené průsvitné sklo nad měkkým barevným pozadím, přesná typografie,
 * jedna zapamatovatelná animace (PaidOverlay).
 *
 * Žádný build step — jeden soubor, vlastní properties místo preprocesoru.
 */

/* ========================================================================
   1. Tokeny (7.1)
   ======================================================================== */

:root {
  --bg-a: #f6ede4;          /* champagne */
  --bg-b: #eed9d3;          /* rose */
  --bg-c: #dde4ec;          /* mist */

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.85);

  --ink: #1c1c1e;
  --ink-2: #6e6e73;

  --accent: #c2996b;        /* champagne gold — brand */
  --accent-deep: #a87f52;
  --success: #30d158;
  --warn: #ffd60a;
  --danger: #ff453a;

  --radius-card: 28px;
  --radius-btn: 20px;
  --radius-key: 18px;

  --blur: blur(28px) saturate(160%);
  --shadow-card: 0 18px 50px rgba(25, 20, 40, 0.16);
  --shadow-key: 0 2px 8px rgba(25, 20, 40, 0.08);

  --font: -apple-system, "SF Pro Text", system-ui, sans-serif;

  /* Pružina pro stisk kláves — 120 ms podle 7.2. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-a: #0d0f14;
    --bg-b: #151823;
    --bg-c: #1b1420;

    --glass: rgba(30, 32, 42, 0.55);
    --glass-strong: rgba(38, 40, 52, 0.75);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.22);

    --ink: #f5f5f7;
    --ink-2: #98989d;

    --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-key: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

/* ========================================================================
   2. Základ
   ======================================================================== */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg-a);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* Aplikace se ovládá tapy, ne výběrem textu — výběr při držení ruší. */
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Viditelný fokus jen pro klávesnici — u dotyku by překážel. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.noscript {
  padding: 24px;
  text-align: center;
}

/* ========================================================================
   3. Pozadí — pomalu plynoucí mesh (7.1)
   ======================================================================== */

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-a);
}

.mesh__blob {
  position: absolute;
  display: block;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}

.mesh__blob--a {
  top: -35vmax;
  left: -25vmax;
  background: radial-gradient(circle at 50% 50%, var(--bg-b), transparent 65%);
  animation: drift-a 40s ease-in-out infinite;
}

.mesh__blob--b {
  top: 10vmax;
  right: -40vmax;
  background: radial-gradient(circle at 50% 50%, var(--bg-c), transparent 65%);
  animation: drift-b 40s ease-in-out infinite;
}

.mesh__blob--c {
  bottom: -45vmax;
  left: 10vmax;
  background: radial-gradient(circle at 50% 50%, var(--bg-b), transparent 60%);
  animation: drift-c 40s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-7vmax, 6vmax, 0) scale(1); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4vmax, -5vmax, 0) scale(1.1); }
}

/* ========================================================================
   4. Sklo
   ======================================================================== */

.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

/* 1px světlá horní hrana — specular, který dělá ze čtverce sklo. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding-top: 1px;
  background: linear-gradient(to bottom, var(--glass-highlight), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========================================================================
   5. Rozvržení obrazovky
   ======================================================================== */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding:
    calc(env(safe-area-inset-top) + 8px)
    calc(env(safe-area-inset-right) + 16px)
    calc(env(safe-area-inset-bottom) + 12px)
    calc(env(safe-area-inset-left) + 16px);
  max-width: 560px;
  margin: 0 auto;
}

.screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  animation: screen-in 0.28s var(--ease-out-quint) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.header__title {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Kruhové skleněné tlačítko v hlavičce (zvuk, historie, zpět). */
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  transition: transform 0.12s var(--spring), background 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: var(--glass-strong);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn[aria-pressed="true"] {
  color: var(--accent-deep);
}

/* ========================================================================
   6. AmountPad (7.2)
   ======================================================================== */

.amount-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px 24px;
  min-height: 116px;
}

.amount-display__value {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.amount-display__value--placeholder {
  color: var(--ink-2);
  opacity: 0.35;
}

.amount-display__currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-2);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.key {
  height: 62px;
  border-radius: var(--radius-key);
  font-size: 26px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-key);
  transition: transform 0.12s var(--spring), background 0.12s ease;
}

.key:active,
.key.is-pressed {
  transform: scale(0.96);
  background: var(--glass-strong);
}

.key--action {
  font-size: 22px;
  color: var(--ink-2);
}

/* Hlavní CTA — pill z akcentního skla přes celou šířku. */
.cta {
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px rgba(162, 122, 74, 0.35);
  transition: transform 0.12s var(--spring), opacity 0.15s ease;
}

.cta:active {
  transform: scale(0.98);
}

.cta:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.cta--quiet {
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-key);
}

.cta--danger {
  color: var(--danger);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-color: var(--glass-border);
  box-shadow: none;
}

/* ========================================================================
   7. QRCard (7.2)
   ======================================================================== */

.screen--centered {
  justify-content: center;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 20px 22px;
  border-radius: var(--radius-card);
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.qr-card__code {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 20px;
  /* QR musí být na bílé i v tmavém režimu, jinak ho čtečky nepřečtou. */
  background: #fff;
}

.qr-card__code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-card__amount {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.qr-card__meta {
  margin: -10px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* --- StatusPill se shimmerem --- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.pill--waiting::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    var(--glass-highlight) 50%,
    transparent 80%
  );
  animation: shimmer 1.9s linear infinite;
}

@keyframes shimmer {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(100%, 0, 0); }
}

/* Po 90 s pill jemně zežloutne (7.3). */
.pill--slow {
  color: #8a6d00;
  background: rgba(255, 214, 10, 0.18);
  border-color: rgba(255, 214, 10, 0.45);
}

@media (prefers-color-scheme: dark) {
  .pill--slow {
    color: var(--warn);
  }
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%      { opacity: 0.9; transform: scale(1); }
}

.qr-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.qr-card__actions .cta {
  margin-top: 0;
  min-height: 50px;
  font-size: 16px;
}

/* ========================================================================
   8. CustomerView — zákaznický pohled (7.2)
   ======================================================================== */

.customer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 32px;
  background: linear-gradient(160deg, var(--bg-a), var(--bg-b) 60%, var(--bg-c));
  animation: screen-in 0.3s var(--ease-out-quint) both;
}

.customer__code {
  width: min(74vw, 60vh);
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.customer__code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.customer__amount {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.customer__salon {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.customer__hint {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  font-size: 13px;
  color: var(--ink-2);
  opacity: 0.65;
}

/* ========================================================================
   9. PaidOverlay — signature animace (7.2)
   ======================================================================== */

.paid {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  overflow: hidden;
}

/* Zelená skleněná vlna se zvedne z dolní hrany a zaplaví obrazovku. */
.paid__fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #1faa47, #148a37);
  transform: translate3d(0, 100%, 0);
  animation: liquid-rise 0.7s var(--ease-out-quint) forwards;
}

/* Vrchol vlny — jemná křivka, aby hladina nebyla rovná jako pravítko. */
.paid__crest {
  position: absolute;
  left: -25%;
  bottom: 100%;
  width: 150%;
  height: 18vh;
  background: radial-gradient(50% 100% at 50% 100%, #1faa47 60%, transparent 72%);
  animation: crest-settle 0.7s var(--ease-out-quint) forwards;
}

@keyframes liquid-rise {
  from { transform: translate3d(0, 100%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@keyframes crest-settle {
  from { opacity: 1; transform: scaleY(1); }
  to   { opacity: 0; transform: scaleY(0.2); }
}

.paid__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: paid-content-in 0.4s var(--ease-out-quint) 0.34s both;
}

@keyframes paid-content-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.paid__check {
  width: 96px;
  height: 96px;
}

.paid__check circle {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.paid__check path {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: check-draw 0.45s var(--ease-out-quint) 0.5s forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.paid__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.paid__amount {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.paid__note {
  max-width: 280px;
  font-size: 15px;
  text-align: center;
  opacity: 0.8;
}

.paid__hint {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + 28px);
  font-size: 14px;
  opacity: 0.7;
  animation: paid-content-in 0.4s var(--ease-out-quint) 0.9s both;
}

/* Varianta pro mismatch — žlutá místo zelené. */
.paid--mismatch .paid__fill {
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #d8a800, #b08a00);
}

.paid--mismatch .paid__crest {
  background: radial-gradient(50% 100% at 50% 100%, #d8a800 60%, transparent 72%);
}

/* ========================================================================
   10. PinPad (7.2)
   ======================================================================== */

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 34px 0 26px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
  transition: background 0.15s ease, transform 0.15s var(--spring);
}

.pin-dot--filled {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
}

.pin-pad.is-wrong .pin-dots {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100%   { transform: translate3d(0, 0, 0); }
  20%, 60%   { transform: translate3d(-9px, 0, 0); }
  40%, 80%   { transform: translate3d(9px, 0, 0); }
}

.pin-error {
  min-height: 22px;
  font-size: 15px;
  text-align: center;
  color: var(--danger);
}

/* ========================================================================
   11. HistoryList (7.2)
   ======================================================================== */

.history {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

.summary__total {
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary__count {
  font-size: 15px;
  color: var(--ink-2);
}

.section-title {
  margin: 0 4px -6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

.row__dot {
  flex: none;
  /* Zarovnat s prvním řádkem (částkou), ne s celou výškou řádku. */
  margin-top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-2);
}

.row__dot--paid { background: var(--success); }
.row__dot--pending { background: var(--ink-2); opacity: 0.5; }
.row__dot--mismatch { background: var(--warn); }
.row__dot--cancelled {
  background: none;
  border: 1.5px dotted var(--ink-2);
}

.row__main {
  flex: 1;
  min-width: 0;
}

.row__amount {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row__sub {
  font-size: 13px;
  color: var(--ink-2);
  /* Dva řádky místo oříznutí na jeden — jméno plátce se pak vejde celé.
     Delší text se teprve pak zkrátí třemi tečkami. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.row__sub--roomy {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.row__time {
  flex: none;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.row--mismatch {
  border-color: rgba(255, 214, 10, 0.6);
  background: rgba(255, 214, 10, 0.12);
}

/* Řádek s akcí (přijmout jinou částku, zrušit čekající platbu): tlačítko
   se zalomí pod údaje a je přes celou šířku, ať se do něj trefí palec. */
.row--actionable {
  flex-wrap: wrap;
}

.row--actionable .cta {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  font-size: 15px;
}

.empty {
  padding: 18px 4px;
  font-size: 15px;
  color: var(--ink-2);
}

/* --- Stav systému a bannery --- */

.status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--ink-2);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

.status__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status__value {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.status__warn {
  margin: 8px 0 0;
  color: var(--danger);
}

.banner {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  background: rgba(255, 214, 10, 0.16);
  border: 1px solid rgba(255, 214, 10, 0.5);
}

.banner--danger {
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.5);
}

/* ========================================================================
   12. Aktivace, chyby, načítání
   ======================================================================== */

.centered {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.centered h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.centered p {
  margin: 0;
  max-width: 320px;
  color: var(--ink-2);
}

.field {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-btn);
  font: inherit;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  -webkit-user-select: text;
  user-select: text;
}

.field::placeholder {
  color: var(--ink-2);
  opacity: 0.7;
}

/* Chybová hláška v patě obrazovky. */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  z-index: 80;
  max-width: min(90vw, 420px);
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 15px;
  text-align: center;
  color: #fff;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transform: translate3d(-50%, 0, 0);
  animation: toast-in 0.3s var(--ease-out-quint) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate3d(-50%, 16px, 0); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--glass-border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================================
   13. Omezený pohyb (7.1, 7.2)
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Pozadí zůstává statické. */
  .mesh__blob {
    animation: none;
  }

  .pill--waiting::after,
  .pill__dot {
    animation: none;
  }

  .screen,
  .customer,
  .toast,
  .paid__content,
  .paid__hint {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
  }

  /* Klidná verze signature animace: prostý prolnutí do zelené. */
  .paid__fill {
    transform: none;
    animation: fade-in 0.35s ease both;
  }

  .paid__crest {
    display: none;
  }

  .paid__check path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .spinner {
    animation-duration: 1.6s;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
