/* ============================================================
   Alfred — sdílený design systém (aplikace + společné komponenty)
   Podle Alfred Brand Manual v1.0 (11/2026):
   jen černá, bílá a šedé; Inter; karty 14 px, tlačítka 10 px;
   žádné glow, stíny-efekty ani gradienty; stav nikdy jen barvou.
   ============================================================ */

:root {
  --alfred-black: #080808;
  --alfred-white: #ffffff;
  --alfred-text: #171717;
  --alfred-muted: #686868;
  --alfred-surface: #f4f4f4;
  --alfred-border: #dedede;
  --radius-card: 14px;
  --radius-button: 10px;
  --space-base: 8px;
  --font-sans: 'Inter', Arial, sans-serif;

  /* Odvozené role (přebarvují se v tmavých plochách) */
  --bg: var(--alfred-white);
  --bg-soft: var(--alfred-surface);
  --surface: var(--alfred-white);
  --surface-2: var(--alfred-surface);
  --ink: var(--alfred-text);
  --muted: var(--alfred-muted);
  --faint: #8c8c8c;
  --line: var(--alfred-border);
  --line-soft: #ececec;
  --primary: var(--alfred-black);
  --on-primary: var(--alfred-white);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; letter-spacing: -0.025em; color: var(--ink); }
/* Typografická škála z manuálu: H1 64/72, H2 40/48, H3 24/32, body 16/24, label 12/18 */
h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.125; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 800; }
h3 { font-size: 1.5rem; line-height: 1.33; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.center { text-align: center; }
.label, .eyebrow { font-size: .75rem; line-height: 1.5; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-block; margin-bottom: 12px; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo-sm img { height: 26px; }
.mark img { height: 32px; width: auto; }

/* ---------- Tlačítka: primární černá výplň, sekundární světlá plocha + rámeček ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-button); border: 1px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #262626; border-color: #262626; color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-danger { background: var(--alfred-white); color: var(--ink); border-color: var(--ink); }
.btn-danger:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Stavy / badge: nikdy jen barva – vždy text + symbol ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; line-height: 1.5; font-weight: 600; white-space: nowrap; background: var(--alfred-surface); color: var(--ink);
  border: 1px solid transparent; align-self: flex-start;
}
.badge svg { flex-shrink: 0; }
.badge-ok { background: var(--alfred-surface); color: var(--ink); }          /* V pořádku */
.badge-check { background: #e2e2e2; color: var(--ink); }                      /* Prověřit */
.badge-nodata { background: var(--ink); color: #fff; }                        /* Chybí data */
.badge-outline { background: transparent; border-color: var(--line); color: var(--muted); }
.badge-dark { background: var(--ink); color: #fff; }

/* ---------- Karty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.card-soft { background: var(--alfred-surface); border-color: transparent; }
.card-dark { background: var(--alfred-black); border-color: var(--alfred-black); color: #fff; }
.card-dark h3, .card-dark h2 { color: #fff; }
.card h3 { margin-bottom: 8px; }
.stack { display: grid; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-3, .cols { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Karta zjištění: šedá plocha s černou linkou vlevo (manuál str. 8) */
.finding {
  display: block; position: relative; padding: 18px 20px 18px 26px; background: var(--alfred-surface);
  border-radius: var(--radius-card); text-decoration: none; color: var(--ink); border: 1px solid transparent;
}
.finding::before { content: ""; position: absolute; left: 12px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--ink); }
.finding.is-hypothesis::before { background: #9a9a9a; }
.finding.is-nodata::before { background: repeating-linear-gradient(var(--ink) 0 4px, transparent 4px 7px); }
a.finding:hover { border-color: var(--line); background: #efefef; }
.finding .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.finding strong { font-size: 1.05rem; }
.finding .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.finding p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E");
}
.checklist li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.checklist.no li::before { background: transparent; border: 1.5px solid var(--ink); }
.checklist.no li::after { left: 5px; top: 11px; width: 8px; height: 0; border-left: 0; border-bottom: 2px solid var(--ink); transform: none; }

/* ---------- Formuláře ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-button); font: inherit;
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { resize: vertical; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error, .error, .errorlist { color: var(--ink); font-weight: 600; font-size: .85rem; margin: 6px 0 0; padding: 0; list-style: none; }
.field .error::before, p.error::before { content: "! "; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--alfred-black); flex-shrink: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-button); font: inherit; min-width: 0; }

/* ---------- Zprávy ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.messages li { padding: 12px 16px; border-radius: var(--radius-button); background: var(--alfred-surface); font-size: .92rem; border-left: 3px solid var(--ink); }
.messages .error { background: var(--ink); color: #fff; }
.messages .error a { color: #fff; }

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Odpovědi a čísla ---------- */
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .answers { grid-template-columns: 1fr; } }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.answer .q { font-weight: 700; font-size: 1.05rem; }
.answer p { margin: 0; color: var(--muted); font-size: .95rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stat-row, .stat-row.three { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 20px 18px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-soft); }
@media (max-width: 760px) { .stat:nth-child(odd) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); } }
.stat .l { font-size: .8rem; color: var(--muted); }
.stat .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .c { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.next-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--alfred-black); color: #fff; border-radius: var(--radius-button); padding: 16px 20px; font-weight: 600; text-decoration: none; }
.next-bar span.k { color: rgba(255,255,255,.6); font-weight: 500; }
a.next-bar:hover { background: #1e1e1e; }

.evidence { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 20px; font-size: .92rem; margin: 0; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.confidence { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.confidence .bar { width: 64px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.confidence .bar i { display: block; height: 100%; background: var(--ink); }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.steps span { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.steps span.done { background: var(--alfred-surface); border-color: transparent; color: var(--ink); }
.steps span.done::before { content: "✓ "; }
.steps span.now { background: var(--ink); border-color: var(--ink); color: #fff; }

.progress { display: flex; align-items: center; gap: 14px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.danger-zone { border: 1px solid var(--ink); border-radius: var(--radius-card); padding: 22px; background: var(--surface); }
.empty { text-align: center; padding: 48px 20px; }
.notice { border: 1px dashed var(--line); background: var(--alfred-surface); border-radius: var(--radius-button); padding: 12px 16px; font-size: .9rem; color: var(--muted); }

/* ---------- Auth (společné) ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px; background: var(--alfred-surface); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; }
@media (max-width: 480px) { .auth-card { padding: 24px 18px; } }

/* ---------- Prose (právní stránky) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: #333; }

/* ============================================================
   APLIKACE – černý boční panel + světlá plocha (manuál str. 11)
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--alfred-surface); }
.app-side { background: var(--alfred-black); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.app-side .logo { padding: 4px 8px 20px; border-bottom: 1px solid #262626; }
.app-side nav { display: grid; gap: 4px; }
.app-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-button); color: rgba(255,255,255,.72); text-decoration: none; font-size: .95rem; }
.app-side nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.app-side nav a:hover { color: #fff; background: #151515; }
.app-side nav a.active { background: #262626; color: #fff; }
.app-side nav a.active::before { background: #fff; border-color: #fff; }
.app-side .side-foot { margin-top: auto; font-size: .82rem; color: rgba(255,255,255,.55); display: grid; gap: 10px; padding: 0 8px; }
.app-side .side-foot strong { color: #fff; font-weight: 600; display: block; }
.app-side .side-foot button { background: none; border: 1px solid #333; color: rgba(255,255,255,.8); border-radius: var(--radius-button); padding: 8px 12px; font: inherit; cursor: pointer; text-align: left; }
.app-side .side-foot button:hover { border-color: #666; color: #fff; }
.app-main { padding: 40px 0 80px; min-width: 0; }
.app-main > .container { max-width: 1080px; }
.app-top { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; padding: 0; gap: 0; }
  .app-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
  .app-side > .logo { display: none; }
  .app-side nav, .app-side .side-foot { display: none; padding: 0 12px 16px; }
  .app-side.open nav, .app-side.open .side-foot { display: grid; }
  .app-top button { background: none; border: 1px solid #333; color: #fff; border-radius: var(--radius-button); padding: 6px 12px; font: inherit; }
  .app-main { padding-top: 24px; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; line-height: 1.2; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; }
.verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 28px; }
.verdict h2 { font-size: 1.5rem; line-height: 1.33; margin: 10px 0 6px; }
.verdict p { color: var(--muted); margin: 0; }
.section-title { font-size: 1.25rem; margin: 40px 0 14px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .spinner { animation: none; } }
/* Starší názvy stavů → šedá škála (stav se vždy doplňuje textem) */
.badge-bad, .badge-warn { background: #e2e2e2; color: var(--alfred-text); }
.badge-unknown { background: var(--alfred-text); color: #fff; }

/* ---------- Opravy (navržené a provedené změny) ---------- */
.change { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px; display: grid; gap: 10px; }
.change.is-applied { border-left: 3px solid var(--ink); }
.change.is-failed { border-style: dashed; }
.change-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.change-meta { font-size: .8rem; color: var(--muted); }
.change strong { font-size: 1.05rem; line-height: 1.35; }
.change p { margin: 0; color: var(--muted); font-size: .92rem; }
.change-diff { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: var(--alfred-surface); border-radius: var(--radius-button); padding: 12px 14px; font-size: .9rem; }
.change-diff .from { color: var(--muted); text-decoration: line-through; }
.change-diff .to { font-weight: 700; }
.change-diff .to::before { content: "→ "; font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .change-diff { grid-template-columns: 1fr 1fr; } .change-diff > span:first-child { grid-column: 1 / -1; } }
.change-error { color: var(--ink) !important; font-weight: 600; }
.change-error::before { content: "! "; }
.change .btn-row form { margin: 0; }
.app-side nav a .nav-count { margin-left: auto; background: #fff; color: #080808; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 8px; }
.org-switch { display: grid; gap: 6px; }
.org-switch button { width: 100%; }
.org-switch { display: grid; gap: 6px; }
.org-switch button { width: 100%; }
.lang-app { display: flex; gap: 4px; }
.lang-app a { flex: 1; text-align: center; padding: 6px 0; border: 1px solid #333; border-radius: 8px; color: rgba(255,255,255,.6); text-decoration: none; font-size: .78rem; font-weight: 600; }
.lang-app a[aria-current] { background: #fff; color: #080808; border-color: #fff; }

/* ---------- Plány (Předplatné) ---------- */
.plan-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.plan-toggle a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.plan-toggle a[aria-current] { background: var(--alfred-black); color: #fff; }
.plan-toggle .save { font-size: .75rem; font-weight: 700; margin-left: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 22px; display: flex; flex-direction: column; }
.plan-card.is-popular { border: 2px solid var(--alfred-black); }
.plan-card.is-current { background: var(--alfred-surface); }
.plan-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan-flag { position: absolute; top: -11px; left: 20px; background: var(--alfred-black); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: .9rem; }
.plan-list li { padding-left: 22px; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.plan-card .btn, .plan-card form { margin-top: auto; }
.plan-card form .btn { width: 100%; }
.btn.full { width: 100%; }
.btn-locked::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 2px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
.change .lock-note { font-size: .78rem; color: var(--muted); }

/* ---------- Pocit předplatného (štítek plánu, pruh, uvítání) ---------- */
.plan-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); background: transparent; white-space: nowrap; }
.plan-badge img { height: 12px; width: auto; }
.plan-badge.plan-starter { border-color: var(--ink); color: var(--ink); }
.plan-badge.plan-premium, .plan-badge.plan-elite, .plan-badge.plan-ultra { background: var(--alfred-black); border-color: var(--alfred-black); color: #fff; }
.plan-badge.plan-elite img, .plan-badge.plan-ultra img { filter: invert(1); }
.plan-badge.plan-ultra { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--alfred-black); }
/* v černém bočním panelu obrácené barvy */
.app-side .plan-badge { border-color: #444; color: #a3a3a3; }
.app-side .plan-badge.plan-starter { border-color: #fff; color: #fff; }
.app-side .plan-badge.plan-premium, .app-side .plan-badge.plan-elite, .app-side .plan-badge.plan-ultra { background: #fff; border-color: #fff; color: #080808; }
.app-side .plan-badge.plan-elite img, .app-side .plan-badge.plan-ultra img { filter: none; }
.app-side .plan-badge.plan-ultra { box-shadow: 0 0 0 2px #080808, 0 0 0 3px #fff; }
.side-plan { text-decoration: none; display: inline-block; }
.plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 12px 0 14px; margin: -8px 0 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.plan-strip-main { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.plan-strip-main > a { text-decoration: none; }
.plan-strip-perks { color: var(--ink); font-weight: 500; }
.plan-strip-locked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.plan-strip-locked:hover { color: var(--ink); }
.plan-strip-facts { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--muted); }
.welcome-card { margin-bottom: 20px; }
.welcome-card h2 { color: #fff; font-size: 1.5rem; margin: 12px 0 6px; }
.welcome-card p { color: #a3a3a3; margin: 0; }
.welcome-card .plan-badge { background: #fff; color: #080808; border-color: #fff; }
.welcome-card .plan-badge img { filter: none; }
.welcome-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #fff; font-size: .92rem; }
.welcome-list li::before { content: "✓ "; font-weight: 700; }
.welcome-card .btn { background: #fff; color: #080808; border-color: #fff; }
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 18px; }
.account-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.account-tabs a[aria-current] { background: var(--alfred-black); border-color: var(--alfred-black); color: #fff; }
.plan-strip { padding: 0 0 14px; margin: -10px 0 18px; }
.plan-strip-up { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.plan-strip-up:hover { color: var(--ink); }
.finding-money { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink); font-size: .9rem; margin: 6px 0 0; }
.stake-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; background: var(--surface, #fff); }
.stake-card .stake-amount { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 8px; }
.stake-card p { margin: 0 0 14px; color: var(--muted); }
.agency-email { width: 100%; font: inherit; font-size: .9rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); resize: vertical; }
.plan-more { margin-top: 18px; }
.plan-more summary { cursor: pointer; font-weight: 600; }
.founding { border: 1px solid var(--ink); border-radius: 14px; padding: 16px 20px; margin: 0 0 20px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.founding strong { font-size: 1.05rem; }
.why-watch { border-top: 1px solid var(--line); padding-top: 14px; margin: 4px 0 16px; }
.why-watch ul { margin: 8px 0 8px; padding-left: 18px; color: var(--muted); }
.why-watch li { margin: 3px 0; }
.callback-row { display: flex; gap: 10px; flex-wrap: wrap; }
.callback-row input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
/* Předplatné: plány přes celou šířku, další plány jako řádky, spodek ve dvou sloupcích */
.plan-grid.plan-grid-main { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-more { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 14px 20px; }
.plan-more[open] { padding-bottom: 6px; }
.plan-rows { margin-top: 10px; }
.plan-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr auto auto; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-row-name { display: grid; gap: 2px; }
.plan-row-perks { color: var(--muted); }
.plan-row-price { white-space: nowrap; font-size: 1.05rem; }
@media (max-width: 860px) { .plan-row { grid-template-columns: 1fr auto; } .plan-row-perks { grid-column: 1 / -1; order: 3; } }
.sub-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 28px; }
.sub-bottom .stack > p { margin: 0; }
@media (max-width: 900px) { .sub-bottom { grid-template-columns: 1fr; } }
.billing-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.sub-cancel { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-cancel form { margin: 0; }

.finding-more { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--alfred-text); }
a.finding:hover .finding-more { text-decoration: underline; }
