/* Plynulý přechod mezi stránkami, hlavně z ověření do Railu */
@view-transition { navigation: auto; }

/* TheFakto: styly registrace, přihlášení a ověření */

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #dcdce0;
  --field: #ffffff;
  --focus: #1d1d1f;
  --btn-dark: #1d1d1f;
  --btn-dark-hover: #000000;
  --panel: #151517;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #f2f2f3;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- levá strana: jemná bílo-šedá ---------- */

.side-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f5f5f6 45%, #e6e6e8 100%);
}

.logo {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.form-wrap {
  width: 100%;
  max-width: 400px;
  animation: rise 0.6s ease-out both;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- tlačítka Google / Apple ---------- */

.social {
  display: grid;
  gap: 12px;
}

.social.two { grid-template-columns: 1fr 1fr; }

.btn-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font: 500 0.95rem var(--font);
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-soft:hover {
  border-color: #c4c4c9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.btn-soft svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- oddělovač NEBO ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #9a9aa0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- políčka ---------- */

.field { margin-bottom: 18px; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-wrap { position: relative; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 1rem var(--font);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.08);
}

.input-wrap input { padding-right: 48px; }

.eye {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.eye:hover { color: var(--text); background: #f2f2f3; }
.eye svg { width: 20px; height: 20px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn-dark); }

/* ---------- hlavní tlačítko ---------- */

.btn-main {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  font: 600 1rem var(--font);
  color: #ffffff;
  background: var(--btn-dark);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-main:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-main:active { transform: translateY(0); }

/* ---------- odkazy pod formulářem ---------- */

.switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.switch a, .small a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.switch a:hover, .small a:hover { text-decoration: underline; }

/* tišší odkaz pod hlavním (např. obnova účtu pod zapomenutým heslem) */
.switch.quiet { margin-top: 10px; font-size: 0.88rem; }
.switch.quiet a { font-weight: 400; color: var(--muted); text-decoration: underline; }
.switch.quiet a:hover { color: var(--text); }

.small {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.small a { font-weight: 400; text-decoration: underline; text-decoration-color: #c4c4c9; }

/* ---------- pravá strana: panel značky ---------- */

.side-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 7vw, 110px);
  color: #ffffff;
  background: var(--panel);
}

/* jemná tečkovaná síť, jako tisíce skutečných lidí */
.side-brand::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 70% 45%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 70% 45%, #000 0%, transparent 60%);
  animation: drift 40s linear infinite;
}

.side-brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
}

.side-brand > * { position: relative; z-index: 1; }

.top-action {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  font: 500 0.9rem var(--font);
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }

.kicker {
  margin: 0 0 16px;
  font: 500 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  animation: rise 0.8s 0.15s ease-out both;
}

/* štítek nahoře na tmavé straně, na stejné čáře jako tlačítka vpravo */
.side-brand .kicker {
  position: absolute;
  top: 24px;
  left: clamp(32px, 7vw, 110px);
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
}
[dir="rtl"] .side-brand .kicker { left: auto; right: clamp(32px, 7vw, 110px); }

.side-brand h2 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: rise 0.8s 0.25s ease-out both;
}

.side-brand p.sub {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  animation: rise 0.8s 0.35s ease-out both;
}

/* ---------- registrace: vše na středu ---------- */

.center-page {
  min-height: 100vh;
  padding: 0 24px 64px;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f5f5f6 45%, #e6e6e8 100%);
  background-attachment: fixed;
}

.center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 8px;
}

.logo-inline {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.pill-line {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pill-line:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }

.signup-wrap {
  width: 100%;
  max-width: 440px;
  margin: 24px auto 0;
  animation: rise 0.6s ease-out both;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #9a9aa0;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 0;
  background: var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.steps li.active { color: var(--text); font-weight: 500; }
.steps li.active span { color: #ffffff; background: var(--btn-dark); border-color: var(--btn-dark); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.row-2 .field { margin-bottom: 0; }

.hint {
  margin: 8px 0 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.prefix .at {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.prefix input { padding-left: 32px; padding-right: 14px; }

/* síla hesla */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.strength i {
  height: 4px;
  border-radius: 4px;
  background: #dedee2;
  transition: background 0.3s;
}

.strength[data-level="1"] i:nth-child(-n+1) { background: #d9534f; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #e0a030; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #8bbf3f; }
.strength[data-level="4"] i { background: #2e9e5b; }

.rules {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

.rules li {
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
  transition: color 0.2s;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #c4c4c9;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}

.rules li.ok { color: var(--text); }
.rules li.ok::before { background: #2e9e5b; border-color: #2e9e5b; }

/* souhlasy */
.agree {
  margin: 22px 0 18px;
  padding: 16px 16px 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agree .check { align-items: flex-start; margin: 0 0 12px; line-height: 1.4; }
.agree .check input { margin-top: 1px; flex-shrink: 0; }
.agree .check a { color: var(--text); font-weight: 600; text-decoration: none; }
.agree .check a:hover { text-decoration: underline; }
.agree .optional { color: var(--muted); }

.next-note {
  margin: 18px 0 0;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.next-note svg { width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }

@media (max-width: 480px) {
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .row-2 .field { margin-bottom: 18px; }
  .hint-top { margin-top: -8px; }
  .steps { font-size: 0.72rem; gap: 6px; }
  .steps li + li::before { width: 14px; }
}

/* ---------- hláška nad formulářem, načítání ---------- */

a.btn-soft { text-decoration: none; }

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: var(--radius);
  animation: rise 0.3s ease-out both;
}

.alert[data-type="error"] { color: #a1261c; background: #fdecea; border: 1px solid #f5c2bd; }
.alert[data-type="info"] { color: var(--text); background: #ffffff; border: 1px solid var(--line); }
.alert[data-type="success"] { color: #16663a; background: #e8f6ee; border: 1px solid #b9e3c8; }

.ts-box:empty { display: none; }
.ts-box { margin-top: 12px; display: flex; justify-content: center; }

.btn-main.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-main.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ---------- malé stránky: zapomenuté heslo, e-mail ---------- */

.signup-wrap.narrow { max-width: 400px; margin-top: 48px; text-align: left; }

.icon-hero {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.icon-hero svg { width: 28px; height: 28px; }
.mail-anim svg { animation: float 3s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.tips { margin-top: 8px; font-size: 0.9rem; }
.tips p { margin: 0 0 8px; }
.tips ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }

/* ---------- dotaz při nečinnosti ---------- */

.idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 21, 23, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease-out both;
}

.idle-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 24px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: rise 0.4s ease-out both;
}

.idle-ring { position: relative; width: 76px; height: 76px; margin: 0 auto 18px; }
.idle-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.idle-ring circle { fill: none; stroke-width: 3; }
.idle-track { stroke: #ececef; }
.idle-progress { stroke: #1d1d1f; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.idle-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; }

.idle-card h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.idle-card p { margin: 0 0 22px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.idle-card p b { color: var(--text); }

.idle-actions { display: grid; gap: 10px; }
.idle-actions .btn-main { margin: 0; }

.idle-logout {
  height: 44px;
  font: 500 0.95rem var(--font);
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.idle-logout:hover { color: var(--text); background: #f2f2f3; }

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

/* ---------- přepínač jazyka: globus + zkratka, bublina ---------- */

.top-right { position: relative; display: flex; align-items: center; gap: 8px; }

/* bublina se zarovná k pravému okraji celé skupiny (globus + tlačítko), aby na mobilu nevyjela z obrazovky */
.lang-menu { position: static; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  font: 600 0.82rem var(--font);
  letter-spacing: 0.04em;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lang-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.lang-btn svg { width: 16px; height: 16px; color: var(--muted); }
.lang-menu.open .lang-btn { border-color: #c4c4c9; }

/* v tmavém panelu (přihlášení na počítači) bez rámečku, jako bílá pilulka */
.on-dark-menu .lang-btn { border-color: transparent; }

.lang-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 260px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  transform-origin: top right;
  animation: pop-in 0.18s ease-out both;
}

.lang-title {
  margin: 0 -8px 6px;
  padding: 4px 16px 10px;
  border-bottom: 1px solid var(--line);
  font: 600 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9aa0;
}

.lang-list { max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  font: 400 0.92rem var(--font);
  color: var(--text);
  text-align: start;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.lang-opt:hover { background: #f2f2f3; }
.lang-code { font: 600 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #9a9aa0; }
.lang-opt.active { font-weight: 600; background: #f6f6f7; }
.lang-opt.active .lang-code { color: var(--text); }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* přihlášení na mobilu: tmavý panel je schovaný, proto nahoře vpravo ve formuláři */
.mobile-top { display: none; }

@media (max-width: 900px) {
  .mobile-top {
    position: absolute;
    top: 18px;
    right: 16px;
    display: flex;
    gap: 8px;
  }
}

/* coming soon: vpravo nahoře */
.cs-top {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 20px;
  z-index: 5;
}

@media (max-width: 480px) {
  .lang-pop { width: min(260px, calc(100vw - 32px)); }
}

.legal-note {
  margin: -8px 0 20px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #f6f6f7;
  border-radius: 10px;
}

/* ---------- jazyky psané zprava doleva (arabština) ---------- */

[dir="rtl"] .logo { left: auto; right: 32px; }
[dir="rtl"] .eye { right: auto; left: 8px; }
[dir="rtl"] .input-wrap input { padding-right: 14px; padding-left: 48px; }
[dir="rtl"] .prefix .at { left: auto; right: 14px; }
[dir="rtl"] .prefix input { padding-left: 14px; padding-right: 32px; }
[dir="rtl"] .rules li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .rules li::before { left: auto; right: 2px; }
[dir="rtl"] .top-action { right: auto; left: 28px; }
[dir="rtl"] .lang-pop { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .mobile-top { right: auto; left: 16px; }
[dir="rtl"] .cs-top { right: auto; left: 20px; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .legal h1 { text-align: right; }

/* ---------- logo: otisk prstu + TheFakto ---------- */

.logo, .logo-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.mark-bg { fill: #1d1d1f; }
.mark-fp { color: #ffffff; }

.logo:hover .mark, .logo-inline:hover .mark { transform: rotate(-8deg) scale(1.06); }

/* na tmavém pozadí se logo obrátí, aby nezmizelo */
.on-dark .mark-bg { fill: #ffffff; }
.on-dark .mark-fp { color: #1d1d1f; }

/* ---------- chyby a potvrzení ---------- */

:root { --red: #d93025; --green: #1e8e4e; }

.msg {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.45;
  transition: max-height 0.25s ease, margin 0.25s ease;
}

.field.error .msg, .field.success .msg, .agree.error .msg { max-height: 80px; margin-top: 8px; }
.field.error .msg, .agree.error .msg { color: var(--red); }
.field.success .msg { color: var(--green); }

.field.error input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.08); }
.field.success input { border-color: var(--green); }
.field.error label { color: var(--red); }

.agree.error { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.06); }
.agree .msg { margin-bottom: 0; }
.agree.error .msg { margin: 0 0 12px; }

.rules li.bad { color: var(--red); }
.rules li.bad::before { border-color: var(--red); }

.age {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.age svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }

form.shake { animation: shake 0.4s ease; }

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

/* ---------- krok 2: ověření ---------- */

.steps li.done { color: var(--text); }
.steps li.done span {
  font-size: 0;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  border-color: var(--green);
}

.card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.04);
}

.card + .card, .card + .or-mobile, .or-mobile + .card { margin-top: 14px; }

.card h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.needs {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.needs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.needs .ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #f2f2f3;
}

.needs .ic svg { width: 18px; height: 18px; }
.needs small { display: block; color: var(--muted); font-size: 0.8rem; }

.qr-box {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
}

.qr-box img {
  width: 132px;
  height: 132px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qr-box p { margin: 0 0 6px; font-size: 0.92rem; }
.qr-box small { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.or-mobile { display: none; }

.privacy-box {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.privacy-box svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); margin-top: 1px; }
.privacy-box b { color: var(--text); font-weight: 600; }

.places {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.places .bar {
  flex: 1;
  height: 4px;
  margin: 0 12px;
  border-radius: 4px;
  background: #dedee2;
  overflow: hidden;
}

.places .bar i { display: block; height: 100%; width: 76%; background: var(--text); border-radius: 4px; }

@media (max-width: 640px) {
  .qr-desktop { display: none; }
  .or-mobile { display: block; }
}

/* ---------- animace ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(18px, 18px); }
}

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

/* ---------- mobil: jen formulář ---------- */

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .side-brand { display: none; }
  .side-form { min-height: 100vh; padding-top: 88px; }
  .logo { left: 20px; top: 22px; }
}

@media (max-width: 420px) {
  .social.two { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}

/* ---------- podmínky registrace: čtyři body pod nadpisem ---------- */

.reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.reqs button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  font: 400 0.86rem var(--font);
  color: var(--muted);
  text-align: start;
  background: none;
  border: 0;
  cursor: pointer;
}

.reqs button:hover { color: var(--text); }
.reqs .ic { display: inline-flex; flex: 0 0 auto; }
.reqs .ic svg { width: 16px; height: 16px; }
.reqs .tx { border-bottom: 1px dashed #c9c9ce; }
.reqs button[aria-expanded="true"] { color: var(--text); }
.reqs button[aria-expanded="true"] .tx { border-bottom-color: transparent; }

.reqs small {
  display: block;
  margin: 0 0 8px 24px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  animation: fade-in 0.2s ease-out both;
}

@media (max-width: 560px) {
  .reqs { grid-template-columns: 1fr; gap: 0; }
}

/* chyba u platby */
.pay-err { margin: 8px 0 0; color: #d7443e; font-size: 0.84rem; }


/* ---------- našeptávač měst ----------
   Město se vybírá, nepíše. Nabídka visí pod políčkem a nepostrkuje
   nic pod sebou, proto stojí mimo tok stránky. */

.pl-wrap { position: relative; }

.pl-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  animation: plIn 0.16s ease-out both;
}

@keyframes plIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.pl-one {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: 500 0.92rem var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s;
}

.pl-one i { color: var(--muted); font-style: normal; font-size: 0.82rem; }
.pl-one:hover, .pl-one.on { background: #f4f4f6; }

/* odvolání proti zákazu na přihlášení */
.appeal-box { display: grid; gap: 10px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.appeal-box b { font-size: 15px; }
.appeal-box textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field, #f5f5f7); font: inherit; font-size: 14.5px; line-height: 1.5; resize: vertical; }
.appeal-box textarea:focus { outline: none; border-color: var(--text); }
