/* CheckPass.cz – CRM portál */

:root {
  --bg: #090e1c;
  --panel: #121a2e;
  --panel-2: #18223b;
  --panel-3: #1f2a47;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f3f6ff;
  --muted: #a9b5cf;
  --dim: #7c89a6;
  --accent: #6d8bff;
  --accent-soft: rgba(109, 139, 255, .14);
  --grad: linear-gradient(110deg, #547cff, #765cf1);
  --ok: #3dd9a4;
  --ok-soft: rgba(61, 217, 164, .13);
  --warn: #f7c04a;
  --warn-soft: rgba(247, 192, 74, .13);
  --err: #ff7d8c;
  --err-soft: rgba(255, 125, 140, .13);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 900px 520px at 12% 0%, rgba(47, 66, 140, .45), transparent 70%),
    radial-gradient(ellipse 800px 500px at 95% 100%, rgba(23, 85, 104, .28), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.inline-form { display: inline; margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }

/* ---------- Značka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand small { color: var(--dim); font-size: inherit; font-weight: 500; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--grad); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .15s, background-color .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #9db2ff; outline-offset: 3px; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); filter: none; }
.btn-danger { background: #7a2e40; }
.btn-ok { background: #1c7a5e; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Horní lišta (veřejné stránky) ---------- */
.site-top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(9, 14, 28, .72); border-bottom: 1px solid var(--line); }
.site-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.site-nav > a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* ---------- Úvodní stránka ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 84px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #c3d0ff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(109, 139, 255, .25); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -.055em; line-height: 1.04; margin: 22px 0 20px; }
.hero h1 span { background: linear-gradient(100deg, #8fa8ff, #b69cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* Ilustrace vstupenky */
.ticket-visual { position: relative; padding: 18px 0 42px; }
.ticket-visual::before { content: ""; position: absolute; inset: 8% 6% 18% 10%; background: radial-gradient(closest-side, rgba(110, 120, 255, .38), transparent); filter: blur(30px); z-index: -1; }
.ticket {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  background: linear-gradient(160deg, #1d2748, #151d35);
  border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  overflow: hidden;
}
.ticket-main { padding: 26px 26px 24px; }
.ticket-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9db2ff; }
.ticket-main strong { display: block; font-size: 23px; letter-spacing: -.03em; margin: 8px 0 20px; line-height: 1.2; }
.ticket-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 18px; margin: 0; justify-content: start; }
.ticket-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; }
.ticket-meta dd { margin: 0; font-weight: 700; font-size: 15px; grid-row: 2; }
.ticket-stub { position: relative; padding: 22px; border-left: 2px dashed rgba(255, 255, 255, .18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .03); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-stub::before { top: -12px; }
.ticket-stub::after { bottom: -12px; }
.qr { width: 104px; height: 104px; background: #fff; border-radius: 10px; padding: 7px; display: block; }
.ticket-no { font-size: 12px; color: var(--dim); font-weight: 700; letter-spacing: .08em; }
.scan-toast {
  position: absolute; right: 4%; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 14px;
  background: #0f2a26; border: 1px solid rgba(61, 217, 164, .35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  font-weight: 700; font-size: 14px;
}
.scan-toast .check { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #06231b; display: grid; place-items: center; font-weight: 900; }
.scan-toast small { display: block; color: #8fdcc2; font-weight: 600; font-size: 12px; }

.section { padding-block: 72px; }
/* Nejbližší koncerty na úvodní stránce */
.events-section { padding-top: 24px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.event-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: linear-gradient(170deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.event-date { flex: none; width: 64px; padding: 9px 0 10px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(109, 139, 255, .25); display: flex; flex-direction: column; align-items: center; color: #c3d0ff; }
.event-date span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.event-date b { font-size: 28px; line-height: 1.1; color: var(--text); letter-spacing: -.03em; }
.event-body { min-width: 0; }
.event-body h3 { font-size: 18px; margin-bottom: 6px; overflow-wrap: anywhere; }
.event-when { font-size: 14px; font-weight: 600; }
.event-where { font-size: 14px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.event-org { font-size: 13px; color: var(--dim); margin-top: 8px; overflow-wrap: anywhere; }
.event-flag { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; }
/* koncert s vlastními stránkami: celá kartička je odkaz (CheckPass 2.3.2) */
.event-link { position: relative; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, background-color .15s; }
.event-link:hover, .event-link:focus-visible { border-color: rgba(109, 139, 255, .55); transform: translateY(-2px); }
.event-link:hover .event-body h3 { text-decoration: underline; text-underline-offset: 3px; }
.event-link-note { margin-top: 8px; font-size: 13px; font-weight: 700; color: #9db2ff; }
.event-go { position: absolute; top: 12px; right: 14px; font-size: 15px; color: #9db2ff; }
@media (prefers-reduced-motion: reduce) { .event-link:hover, .event-link:focus-visible { transform: none; } }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker { color: #9db2ff; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.04em; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative; padding: 32px; border-radius: 24px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 139, 255, .22), transparent); }
.feature.alt::after { background: radial-gradient(closest-side, rgba(61, 217, 164, .18), transparent); }
.icon-box { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: #aebfff; }
.feature.alt .icon-box { background: var(--ok-soft); color: var(--ok); }
.icon-box svg { width: 26px; height: 26px; }
.feature h3 { font-size: 24px; margin: 22px 0 10px; }
.feature > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--accent-soft); color: #aebfff; }
.feature.alt .checklist li::before { background: var(--ok-soft); color: var(--ok); }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.benefit { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.benefit b { display: block; margin-bottom: 6px; font-size: 16px; }
.benefit p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }

.cta-band {
  margin-block: 24px 80px; padding: 48px; border-radius: 28px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(109, 139, 255, .28), transparent 70%), var(--panel-2);
  border: 1px solid var(--line-2);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.04em; }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 520px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Přihlášení / registrace ---------- */
.auth-main { padding-block: 56px 72px; }
.auth-card { max-width: 520px; margin: 0 auto; padding: 34px; border-radius: 24px; background: rgba(18, 26, 46, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.04em; }
.auth-card > p.muted { margin-top: 8px; }
.auth-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.auth-foot a { color: #b8c6ff; font-weight: 700; }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { color: var(--text); }

/* ---------- Formuláře ---------- */
form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: block; margin-top: 18px; }
.field > span { display: block; margin-bottom: 7px; color: #c7d1e8; font-weight: 650; font-size: 14px; }
.field > span em { font-style: normal; color: var(--dim); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], select, textarea {
  display: block; width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid #36425f; background: #0b1224; color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f6c89; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #7c95ff; box-shadow: 0 0 0 3px rgba(109, 139, 255, .25); }
[aria-invalid=true] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: 13px; margin-top: 6px; font-weight: 600; }
.hint { color: var(--dim); font-size: 13px; margin-top: 6px; }
.checkbox { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.checkbox input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: #6d8bff; flex: none; }
.checkbox span { color: #c7d1e8; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.form-actions.between { justify-content: space-between; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Zprávy ---------- */
.flashes { display: grid; gap: 10px; margin-bottom: 22px; }
.v-landing .flashes { max-width: 1140px; margin: 20px auto 0; padding-inline: 20px; }
.auth-main .flashes { max-width: 520px; margin-inline: auto; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 600; font-size: 14px; }
.alert-ok { background: var(--ok-soft); border-color: rgba(61, 217, 164, .35); color: #b9f3de; }
.alert-error { background: var(--err-soft); border-color: rgba(255, 125, 140, .38); color: #ffd0d6; }
.alert-info { background: var(--accent-soft); border-color: rgba(109, 139, 255, .35); color: #d3dcff; }

/* ---------- CRM rozvržení ---------- */
.crm-top { position: sticky; top: 0; z-index: 20; background: rgba(9, 14, 28, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.crm-top-inner { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.crm-brand { display: flex; align-items: center; gap: 10px; }
.crm-brand .brand { font-size: 19px; }
.crm-brand .brand-mark { width: 34px; height: 34px; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 7px; background: var(--accent-soft); color: #b8c6ff; }
.crm-nav { display: flex; gap: 4px; flex: 1; }
.crm-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: 14px; white-space: nowrap; }
.crm-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.crm-nav a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.crm-nav .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #2b1d00; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.crm-user { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.crm-user .who { text-align: right; line-height: 1.25; max-width: 220px; }
.crm-user .who strong, .crm-user .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-user .who strong { font-size: 14px; }
.crm-user .who span { font-size: 12px; color: var(--dim); }
.crm-main { padding-block: 36px 64px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.page-head p { color: var(--muted); margin-top: 6px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumb { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.crumb:hover { color: var(--text); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; min-width: 0; }

.card { padding: 26px; border-radius: var(--radius); background: rgba(18, 26, 46, .9); border: 1px solid var(--line); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.card h2 { font-size: 19px; letter-spacing: -.02em; }
.card h2 + p { margin-top: 6px; }
.card.danger { border-color: rgba(255, 125, 140, .28); }

/* Stavové karty */
.status-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); border: 1px solid; }
.status-card.pending { background: var(--warn-soft); border-color: rgba(247, 192, 74, .35); }
.status-card.info { background: var(--accent-soft); border-color: rgba(109, 139, 255, .35); }
.status-card .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(0, 0, 0, .2); }
.status-card h2 { font-size: 19px; margin-bottom: 6px; }
.status-card p { color: #dfe5f4; }

/* Nástroje */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(165deg, #202c4d, #161f38);
  border: 1px solid var(--line-2);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  min-height: 210px;
}
a.tool:hover { transform: translateY(-3px); border-color: rgba(157, 178, 255, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.tool .icon-box { margin-bottom: 8px; }
.tool.scan .icon-box { background: var(--ok-soft); color: var(--ok); }
.tool b { font-size: 21px; letter-spacing: -.02em; }
.tool p { color: var(--muted); }
.tool .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: #b8c6ff; }
.tool.scan .go { color: #8fe9c9; }
.tool.disabled { opacity: .6; border-style: dashed; }
.tool.disabled .go { color: var(--dim); }

/* Definiční seznam */
.dl { display: grid; gap: 0; margin: 14px 0 0; }
.dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.dl > div:first-child { border-top: 0; }
.dl dt { color: var(--dim); font-size: 14px; }
.dl dd { margin: 0; text-align: right; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

/* Štítky */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--warn-soft); color: var(--warn); border-color: rgba(247, 192, 74, .3); }
.badge-active { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 217, 164, .3); }
.badge-blocked { background: var(--err-soft); color: var(--err); border-color: rgba(255, 125, 140, .3); }
.badge-role { background: var(--accent-soft); color: #b8c6ff; border-color: rgba(109, 139, 255, .3); }
.badge-role::before { display: none; }

/* Statistiky */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { display: block; padding: 18px 20px; border-radius: var(--radius); background: rgba(18, 26, 46, .9); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.stat:hover { border-color: var(--line-2); }
.stat.current { border-color: rgba(109, 139, 255, .6); box-shadow: inset 0 0 0 1px rgba(109, 139, 255, .3); }
.stat span { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.03em; margin-top: 4px; }
.stat.pending strong { color: var(--warn); }
.stat.active strong { color: var(--ok); }
.stat.blocked strong { color: var(--err); }

/* Tabulka */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1 1 260px; }
.toolbar select { flex: 0 1 220px; width: auto; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(18, 26, 46, .9); }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 750; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.data .primary { font-weight: 700; text-decoration: none; font-size: 15px; }
table.data .primary:hover { color: #b8c6ff; text-decoration: underline; }
table.data .sub { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
.links-state { font-weight: 700; font-size: 13px; }
.links-state.ok { color: var(--ok); }
.links-state.part { color: var(--warn); }
.links-state.none { color: var(--dim); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.pagination { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Historie */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #54618a; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 2px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li.note::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(109, 139, 255, .2); }
.timeline .meta { font-size: 12.5px; color: var(--dim); }
.timeline .msg { margin-top: 3px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.timeline li.note .msg { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; margin-top: 6px; }

.link-preview { display: block; margin-top: 6px; font-size: 13px; color: #9db2ff; overflow-wrap: anywhere; }

/* Patička */
.site-foot { padding-block: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; text-align: center; }

/* ---------- Responzivita ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 48px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-visual { max-width: 520px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-top-inner { flex-wrap: wrap; row-gap: 8px; }
  .crm-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}
@media (max-width: 720px) {
  .event-grid { grid-template-columns: 1fr; }
  body { font-size: 15px; }
  .feature-grid, .steps, .tools { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .feature { padding: 24px; }
  .cta-band { padding: 32px 22px; margin-bottom: 56px; }
  .auth-card { padding: 24px 20px; }
  .auth-main { padding-block: 32px 48px; }
  .hide-sm { display: none; }
  .crm-user .who { display: none; }
  .card { padding: 20px; }
  .ticket-main { padding: 20px; }
  .ticket-main strong { font-size: 19px; }
  .qr { width: 84px; height: 84px; }
  .ticket-stub { padding: 16px; }
}
@media (max-width: 460px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-nav .btn-ghost + .btn { display: none; }
  .crm-brand .tag { display: none; }
  .ticket-visual { padding-bottom: 66px; }
  .benefits { grid-template-columns: 1fr; }
  .ticket-meta { grid-template-columns: repeat(2, auto); }
  .ticket-meta dd { grid-row: auto; }
  .scan-toast { right: 0; left: 0; margin-inline: auto; width: max-content; max-width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Pomocné odstupy */
.mt { margin-top: 14px; }
.mt-lg { margin-top: 26px; }
.mb { margin-bottom: 14px; }
.section-title { font-size: 19px; }
.pagination .form-actions { margin-top: 0; }
.status-card .ico svg { width: 24px; height: 24px; }
.status-card.pending .ico { color: var(--warn); }

/* ================================================================== */
/*  Generátor a čtečka v CRM (verze 2)                                */
/* ================================================================== */
.alert-warn { background: var(--warn-soft); border-color: rgba(247, 192, 74, .35); color: #ffe6ad; }
.copy-row, .field > span.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 0; }
.copy-row input { flex: 1; min-width: 0; font-size: 13.5px; color: #c9d4ff; }
.copy-row .btn { flex: none; }
/* QR kód s odkazem na čtečku (nástěnka, detail zákazníka) */
.qr-box { display: flex; gap: 18px; align-items: center; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025); }
.qr-box .qr-code { flex: none; display: block; width: 152px; height: 152px; border-radius: 10px; background: #fff; }
.qr-box p { margin: 4px 0 0; }
.qr-box .form-actions { margin-top: 12px; }
@media (max-width: 560px) {
  .qr-box { flex-direction: column; align-items: flex-start; }
  .qr-box .qr-code { width: 180px; height: 180px; }
}
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat strong small.of { font-size: 16px; color: var(--dim); font-weight: 600; letter-spacing: 0; }
table.data .num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.past td { color: var(--muted); }
table.data.compact { min-width: 560px; }
table.data.compact td, table.data.compact th { padding: 10px 12px; }
.table-wrap.flat { background: transparent; border-color: var(--line); margin-top: 12px; }
table.data tr.warn-row td { background: var(--warn-soft); font-size: 13px; color: #ffe6ad; }
.input-sm { padding: 8px 10px !important; font-size: 14px !important; min-width: 180px !important; }
.result-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.result-list a { font-weight: 700; }
.file-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.file-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.file-rows li:first-child { border-top: 0; }
.file-rows a { display: inline-flex; gap: 9px; align-items: center; font-weight: 650; text-decoration: none; color: #c9d4ff; overflow-wrap: anywhere; }
.file-rows a:hover { text-decoration: underline; }
.file-rows svg { width: 18px; height: 18px; flex: none; }
.file-rows small { color: var(--dim); }
.card-head .muted.small { overflow-wrap: anywhere; }
.mini-events { list-style: none; margin: 12px 0 0; padding: 0; }
.mini-events li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-events li:first-child { border-top: 0; }
.mini-events a { text-decoration: none; min-width: 0; }
.mini-events a b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-events a span { display: block; color: var(--dim); font-size: 13px; }
.mini-events a:hover b { color: #b8c6ff; }
.mini-num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-num small { display: block; font-size: 12px; font-weight: 600; color: var(--dim); }
input[type=date], input[type=time], input[type=number] {
  display: block; width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid #36425f; background: #0b1224; color: var(--text);
  font: inherit; font-size: 15px; color-scheme: dark;
}
input[type=date][disabled], input[type=time][disabled] { opacity: .55; }

/* ================================================================== */
/*  Úvodní stránka: animace čtečky                                    */
/* ================================================================== */
.demo { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.demo::before { content: ""; position: absolute; inset: 6% 8% 12%; background: radial-gradient(closest-side, rgba(110, 120, 255, .38), transparent); filter: blur(34px); z-index: -1; }
.demo-phone {
  --cycle: 12s;
  position: relative; width: 272px; aspect-ratio: 272 / 540; flex: none;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a3456, #10162a);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .04);
}
.demo-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #151431; display: flex; flex-direction: column; }
.demo-notch { position: absolute; top: 8px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0a0d1a; z-index: 5; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 40px 14px 10px; }
.demo-event { min-width: 0; }
.demo-event b { display: block; font-size: 13px; color: #f3f1ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-event span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #b9b5e2; margin-top: 2px; }
.demo-event span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 2px rgba(95, 224, 160, .25); }
.demo-stub { position: relative; flex: none; padding: 4px 12px; border-radius: 6px; background: #f4eedd; color: #201c3a; text-align: center; line-height: 1.05; }
.demo-stub .cnt { position: relative; display: inline-block; width: 2.1ch; height: 1.1em; font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; vertical-align: bottom; }
.demo-stub .cnt i { position: absolute; inset: 0; font-style: normal; opacity: 0; }
.demo-stub .of { font-size: 10px; font-weight: 700; color: #625d80; }
.demo-stub small { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #625d80; margin-top: 1px; }
.demo-view { position: relative; flex: 1; margin: 0 10px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #3a3f52, #1b1d29 70%); }
.demo-corners i { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .85); z-index: 3; }
.demo-corners i:nth-child(1) { top: 22%; left: 16%; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.demo-corners i:nth-child(2) { top: 22%; right: 16%; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.demo-corners i:nth-child(3) { bottom: 26%; left: 16%; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.demo-corners i:nth-child(4) { bottom: 26%; right: 16%; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.demo-line { position: absolute; left: 14%; right: 14%; top: 24%; height: 2px; background: #ff5c6a; box-shadow: 0 0 12px 2px rgba(255, 92, 106, .7); z-index: 4; opacity: 0; }
.demo-ticket {
  position: absolute; left: 50%; top: 50%; width: 148px; margin-left: -74px; margin-top: -80px;
  padding: 10px 10px 8px; border-radius: 10px; background: #fbf8f0; color: #201c3a; z-index: 2;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(160%) rotate(-4deg);
}
.demo-ticket .qr { width: 100%; height: auto; padding: 0; border-radius: 0; background: transparent; }
.demo-ticket .no { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.demo-ticket .no span { color: #625d80; font-weight: 700; }
.demo-hint { text-align: center; font-size: 11px; color: #b9b5e2; padding: 10px 12px 18px; }
.demo-res {
  position: absolute; left: 0; right: 0; top: 78px; bottom: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px;
  opacity: 0; transform: scale(.96);
}
.demo-res.ok { background: #12925a; color: #fff; }
.demo-res.dup { background: #ffa726; color: #2a1800; }
.demo-res.bad { background: #d92d3a; color: #fff; }
/* bezpečnostní kontrola v Nastavení */
.dl dd.bad, .sec-bad { color: #ff8a8a; font-weight: 700; }
.sec-ok { color: var(--ok, #48d18a); font-weight: 700; }
.demo-res .ico { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); margin-bottom: 6px; }
.demo-res.dup .ico { background: rgba(0, 0, 0, .12); }
.demo-res .ico svg { width: 46px; height: 46px; }
.demo-res b { font-size: 25px; font-weight: 900; letter-spacing: .03em; }
.demo-res span { font-size: 13px; font-weight: 700; opacity: .92; }
.demo-res small { font-size: 12px; font-weight: 600; opacity: .85; margin-top: 4px; }

/* Časování: 4 fáze po 3 s (platný, platný, duplikát, neplatný). Každý prvek má stejnou animaci posunutou o 3 s. */
.demo-phone .demo-ticket { animation: demo-ticket var(--cycle) infinite both; }
.demo-phone .demo-res { animation: demo-res var(--cycle) infinite both; }
.demo-phone .demo-line { animation: demo-line 3s infinite both; }
.demo-phone .demo-corners i { animation: demo-corners 3s infinite both; }
.demo-phone .p2 { animation-delay: 3s; }
.demo-phone .p3 { animation-delay: 6s; }
.demo-phone .p4 { animation-delay: 9s; }
.demo-phone .cnt i:nth-child(1) { animation: demo-c1 var(--cycle) infinite both; }
.demo-phone .cnt i:nth-child(2) { animation: demo-c2 var(--cycle) infinite both; }
.demo-phone .cnt i:nth-child(3) { animation: demo-c3 var(--cycle) infinite both; }
.demo-phone.paused *, .demo-phone.paused { animation-play-state: paused !important; }

@keyframes demo-ticket {
  0% { opacity: 0; transform: translateY(160%) rotate(-4deg); }
  4% { opacity: 1; transform: translateY(0) rotate(-2deg); }
  20% { opacity: 1; transform: translateY(0) rotate(-2deg); }
  24% { opacity: 0; transform: translateY(-40%) rotate(2deg); }
  25%, 100% { opacity: 0; transform: translateY(160%) rotate(-4deg); }
}
@keyframes demo-res {
  0%, 9% { opacity: 0; transform: scale(.96); }
  10.5% { opacity: 1; transform: scale(1); }
  21% { opacity: 1; transform: scale(1); }
  23.5%, 100% { opacity: 0; transform: scale(.96); }
}
@keyframes demo-line {
  0%, 12% { opacity: 0; top: 24%; }
  16% { opacity: 1; top: 24%; }
  30% { opacity: 1; top: 72%; }
  38% { opacity: 1; top: 30%; }
  40%, 100% { opacity: 0; top: 30%; }
}
@keyframes demo-corners {
  0%, 30% { border-color: rgba(255, 255, 255, .85); }
  36%, 40% { border-color: #5fe0a0; }
  46%, 100% { border-color: rgba(255, 255, 255, .85); }
}
@keyframes demo-c1 { 0%, 9.9% { opacity: 1; } 10%, 99.9% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-c2 { 0%, 9.9% { opacity: 0; } 10%, 34.9% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes demo-c3 { 0%, 34.9% { opacity: 0; } 35%, 99.9% { opacity: 1; } 100% { opacity: 0; } }

/* Omezený pohyb: místo animace tři statické stavy vedle sebe */
.demo-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .demo-phone { display: none; }
  .demo-static { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 480px; }
  .demo-static .demo-res { padding: 14px 8px; }
  .demo-static .demo-res small { display: none; }
  .demo-static .demo-res { position: static; opacity: 1; transform: none; border-radius: 18px; min-height: 190px; animation: none; }
  .demo-static .demo-res .ico { width: 54px; height: 54px; }
  .demo-static .demo-res .ico svg { width: 32px; height: 32px; }
  .demo-static .demo-res b { font-size: 15px; letter-spacing: 0; }
}

/* ================================================================== */
/*  Úvodní stránka: ceník a kalkulačka                                */
/* ================================================================== */
.pricing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 34px; border-radius: 26px; background: linear-gradient(165deg, #202c4d, #141c33); border: 1px solid var(--line-2); overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 139, 255, .3), transparent); }
.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main strong { font-size: clamp(48px, 7vw, 72px); letter-spacing: -.05em; line-height: 1; background: linear-gradient(100deg, #8fa8ff, #b69cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-main span { font-size: 19px; font-weight: 700; color: var(--muted); }
.price-min { margin-top: 14px; font-size: 17px; }
.price-min b { color: var(--text); }
.price-card .checklist { margin-top: 26px; }
.price-examples { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.price-examples div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; }
.price-examples b { display: block; font-size: 17px; }
.price-examples span { font-size: 12.5px; color: var(--dim); }
.calc { padding: 30px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.calc h3 { font-size: 21px; }
.calc .field { margin-top: 18px; }
.calc input[type=number] { font-size: 22px; font-weight: 700; padding: 14px 16px; }
.calc-out { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--accent-soft); border: 1px solid rgba(109, 139, 255, .35); }
.calc-out span { display: block; color: #c3d0ff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.calc-out strong { display: block; font-size: 38px; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.calc-out p { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 1.4em; }
.calc .hero-actions { margin-top: auto; padding-top: 22px; }

@media (max-width: 980px) {
  .pricing { grid-template-columns: 1fr; }
  .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .price-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card, .calc { padding: 24px 20px; }
  .stats.three { grid-template-columns: 1fr; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .btn { width: 100%; }
}
@media (max-width: 460px) {
  .demo-phone { width: 236px; }
}
