:root {
  --ink: #1f3a3d;
  --ink-soft: #3d5457;
  --accent: #c17a2e;
  --accent-soft: #f1ddc0;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #eee9dd;
  --line: #ddd5c2;
  --text: #2a2721;
  --text-mute: #5c5749;
  --good: #2f6b49;
  --good-bg: #e3efe6;
  --warn: #9c4a1f;
  --warn-bg: #f7e6da;
  --focus: #2f6b6e;
  --font-scale: 1;
}

* { box-sizing: border-box; }

html {
  font-size: calc(18px * var(--font-scale));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
  margin: 0 0 .6em;
}

h1 { font-size: 2rem; line-height: 1.25; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; font-size: 1rem; }

a { color: var(--focus); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button, .btn {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  padding: .9rem 1.6rem;
  transition: transform .06s ease, box-shadow .15s ease;
}
button:active, .btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink-soft); }

.btn-block { width: 100%; display: block; text-align: center; }

input, select {
  font-family: inherit;
  font-size: 1.1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
  font-size: 1.02rem;
}

.field { margin-bottom: 1.4rem; }
.hint { color: var(--text-mute); font-size: .92rem; margin-top: .4rem; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(31,58,61,.05), 0 8px 24px rgba(31,58,61,.05);
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; color: var(--accent); flex: none; }

.text-tools {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.text-tools button {
  padding: .5rem .8rem;
  font-size: 1rem;
  background: var(--surface-2);
  color: var(--ink);
}

.help-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--ink);
  color: #fff;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  font-weight: 700;
  z-index: 20;
}
.help-fab svg { width: 20px; height: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.info { background: var(--accent-soft); color: var(--accent, #c17a2e); }

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* Responzivita pre tablet a mobil */
@media (max-width: 720px) {
  .container { padding: 0 1.1rem; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .card { padding: 1.2rem; }
  button, .btn { padding: .8rem 1.2rem; font-size: 1rem; }
  .help-fab {
    right: .8rem; bottom: .8rem; padding: .8rem 1rem; font-size: .9rem;
  }
  table { font-size: .85rem; }
}

@media (max-width: 480px) {
  html { font-size: calc(16.5px * var(--font-scale)); }
  .topbar .container { gap: .6rem; }
  .brand { font-size: 1rem; }
}

/* ============================================================
   Interaktívny kurz "Ako sa nenechať oklamať" — prémiová verzia
   ============================================================ */

:root {
  --course-shadow-card: 0 2px 4px rgba(31,58,61,.07), 0 1px 1px rgba(31,58,61,.05), 0 28px 55px -24px rgba(31,58,61,.35);
  --course-shadow-soft: 0 1px 2px rgba(31,58,61,.05), 0 12px 28px -14px rgba(31,58,61,.22);
  --course-ink-deep: #0d1e21;
  --course-good-deep: #1c4a30;
  --course-warn-deep: #73340f;
  --course-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
}

.course-wrap { display: flex; flex-direction: column; gap: 1.2rem; }

@keyframes course-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .course-wrap * { animation: none !important; transition: none !important; } }

/* kapitolový banner pri vstupe do novej časti */
.course-part-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 2.1rem 2.2rem;
  background: linear-gradient(155deg, var(--ink), var(--course-ink-deep)); color: #f3efe4;
  box-shadow: var(--course-shadow-card); animation: course-rise .4s ease;
}
.course-part-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--course-noise); mix-blend-mode: overlay; pointer-events: none; }
.course-part-eyebrow { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #d9c49a; margin-bottom: .6rem; }
.course-part-hero h2 { color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; margin: 0 0 .5rem; }
.course-part-hero p { color: #cfd8d3; max-width: 46ch; margin: 0; font-size: .96rem; }
.course-part-icon {
  position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%); width: 84px; height: 84px;
  border-radius: 24px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
}
.course-part-icon svg { width: 44px; height: 44px; color: #e3a35f; }
.course-part-hero.has-image { padding-right: 8.5rem; }
.course-part-text { position: relative; z-index: 1; }
.course-part-image {
  position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); width: 110px; height: 110px;
  border-radius: 20px; object-fit: cover; box-shadow: 0 10px 26px -10px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.12);
}

/* skutočný úvodný obrázok kurzu */
.course-intro-photo {
  width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; margin: .2rem 0 1rem;
  box-shadow: var(--course-shadow-soft);
}

/* skutočné príklady (screenshoty podvodných správ, reálne fotky) */
.course-evidence {
  margin: 1.2rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
}
.course-evidence img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.course-evidence figcaption { padding: .7rem .9rem; font-size: .85rem; color: var(--text-mute); }
.course-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.course-gallery .course-evidence { margin-top: 0; }

.course-guess-photo-img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; background: var(--surface-2); display: block; margin-bottom: .8rem; }

.course-zoomable { cursor: zoom-in; }
.course-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(13,20,20,.88);
  display: none; align-items: center; justify-content: center; padding: 3rem 1.2rem;
}
.course-lightbox.show { display: flex; }
.course-lightbox-img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-out; }
.course-lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.course-lightbox-close svg { width: 22px; height: 22px; }
.course-lightbox-close:hover { background: rgba(255,255,255,.22); }

.course-map { margin-bottom: .2rem; }
.course-map-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.course-map-seg {
  flex: 1 1 0; min-width: 90px; display: flex; flex-direction: column; align-items: center;
  gap: .35rem; padding: .55rem .3rem; border-radius: 12px; background: var(--surface-2);
  border: 1.5px solid transparent; opacity: .6; transition: transform .18s ease, opacity .18s ease;
}
.course-map-seg.done { opacity: 1; border-color: var(--good); }
.course-map-seg.active { opacity: 1; border-color: var(--ink); background: var(--surface); transform: translateY(-2px); box-shadow: var(--course-shadow-soft); }
.course-map-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.course-map-dot.earned { background: var(--accent, #c17a2e); box-shadow: 0 0 0 3px var(--accent-soft); }
.course-map-seg-label { font-size: .74rem; text-align: center; color: var(--text-mute); font-weight: 700; line-height: 1.2; }
.course-progress-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.course-progress-track { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.course-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep, #8f5a1e), var(--accent, #c17a2e)); border-radius: 999px; transition: width .3s ease; }
.course-map-count { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: .78rem; color: var(--text-mute); flex: none; }

.course-stage { min-height: 200px; }
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 2rem; box-shadow: var(--course-shadow-card); animation: course-rise .35s ease;
}
.course-kicker {
  display: flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-deep, #8f5a1e); text-transform: uppercase; margin: 0 0 .6rem; font-family: "IBM Plex Mono", "Courier New", monospace;
}
.course-kicker svg { width: 16px; height: 16px; flex: none; }
.course-card h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.45rem; }
.course-lead { color: var(--ink-soft); font-size: 1.03rem; margin-top: .5rem; }
.course-hint { color: var(--text-mute); font-size: .92rem; font-weight: 700; margin-top: .8rem; }
.course-note { margin-top: 1.2rem; background: var(--surface-2); border-radius: 14px; padding: .95rem 1.2rem; font-size: .95rem; }
.course-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-deep, #8f5a1e); font-weight: 700; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .6rem; }

/* štítok média — e-mail / sms / telefonát / sociálna sieť */
.course-medium-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: .4rem .9rem; border-radius: 99px; margin: .6rem 0 0;
}
.course-medium-badge svg { width: 16px; height: 16px; }
.course-medium-badge.email { background: #e7edf3; color: #2c5578; }
.course-medium-badge.sms { background: #e9f0e5; color: #3d6b2f; }
.course-medium-badge.call { background: #f3e9e3; color: #8a4b26; }
.course-medium-badge.social { background: #efe3f0; color: #6e3a72; }

.course-nav { display: flex; justify-content: space-between; gap: 1rem; }
.course-nav button { border-radius: 14px !important; }

/* intro */
.course-intro-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; margin-top: 1.3rem; }
.course-intro-part { background: var(--surface-2); border-radius: 14px; padding: 1.1rem; font-weight: 700; font-size: .92rem; text-align: center; transition: transform .18s ease; }
.course-intro-part:hover { transform: translateY(-3px); }
.course-intro-part span {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 auto .5rem;
  border-radius: 50%; background: linear-gradient(160deg, var(--accent, #c17a2e), var(--accent-deep, #8f5a1e));
  color: #fff; font-size: .95rem; box-shadow: 0 6px 14px -6px rgba(193,122,46,.6);
}

/* tiles */
.course-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.course-tile { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 1.2rem; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.course-tile:hover { border-color: var(--ink-soft); transform: translateY(-3px); box-shadow: var(--course-shadow-soft); }
.course-tile.open { border-color: var(--good); background: var(--good-bg); cursor: default; transform: none; }
.course-tile h3 { font-size: 1.02rem; margin: 0; }
.course-tile p { margin: .55rem 0 0; font-size: .9rem; color: var(--text-mute); }

/* flip cards */
.course-flip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 1.1rem; perspective: 1300px; }
.course-flip { flex: 0 1 220px; min-height: 195px; cursor: pointer; }
.course-flip-inner {
  display: grid; width: 100%; height: 100%; min-height: inherit;
  transition: transform .55s cubic-bezier(.2,.8,.3,1); transform-style: preserve-3d;
}
.course-flip.flipped .course-flip-inner { transform: rotateY(180deg); }
.course-flip-face { position: relative; grid-area: 1 / 1; backface-visibility: hidden; border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.course-flip-front { background: linear-gradient(160deg, var(--ink), var(--course-ink-deep)); color: #fff; text-align: center; box-shadow: 0 16px 32px -16px rgba(13,30,33,.6); }
.course-flip-front::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background-image: var(--course-noise); mix-blend-mode: overlay; }
.course-flip-front h3 { color: #fff; font-size: 1.06rem; position: relative; }
.course-flip-hint { font-size: .74rem; opacity: .7; margin-top: .5rem; display: block; position: relative; }
.course-flip-back { background: var(--surface); border: 2px solid var(--accent, #c17a2e); transform: rotateY(180deg); }
.course-flip-back p { margin: 0; font-size: .92rem; }

/* tip / vysvetľujúce okienko */
.course-tip {
  display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0 0; padding: .8rem 1.05rem;
  background: rgba(47,107,110,.08); border: 1px solid rgba(47,107,110,.25); border-radius: 12px;
  font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.course-tip svg { width: 20px; height: 20px; flex: none; margin-top: .1rem; color: var(--focus); }
.course-tip p { margin: 0; }

/* dvojstĺpcový layout s bočným panelom "Zapamätajte si" */
.course-sort-layout.has-side { display: grid; grid-template-columns: 1fr 260px; gap: 1.4rem; align-items: start; margin-top: .2rem; }
.course-sort-main { min-width: 0; }
.course-sidenote {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem;
  box-shadow: var(--course-shadow-soft);
}
.course-sidenote h3 { margin: 0 0 .8rem; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; }
.course-sidenote-list { display: flex; flex-direction: column; gap: .8rem; }
.course-sidenote-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.45; }
.course-sidenote-item svg { width: 20px; height: 20px; flex: none; margin-top: .05rem; }
.course-sidenote-item.good svg { color: var(--good); }
.course-sidenote-item.warn svg { color: var(--warn); }
.course-sidenote-item.info svg { color: var(--focus); }

/* sort / drag & drop */
.course-pool { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.1rem; min-height: 50px; }
.course-item {
  display: flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: .65rem .95rem; font-size: .92rem; cursor: grab; user-select: none; touch-action: none;
  box-shadow: var(--course-shadow-soft);
}
.course-item-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text-mute);
  font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.course-item.selected { border-color: var(--focus); background: var(--surface-2); }
.course-item.dragging { cursor: grabbing; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.course-item.shake { animation: course-shake .4s; }
.course-item.placed-ok { border-color: var(--good); background: var(--good-bg); cursor: default; }
.course-item.placed-bad { border-color: var(--warn); background: var(--warn-bg); cursor: default; }
.course-baskets { display: grid; gap: 1.1rem; margin-top: 1.1rem; }
.course-baskets-2 { grid-template-columns: 1fr 1fr; }
.course-basket { border-radius: 16px; padding: 1.1rem; min-height: 120px; border: 2px dashed var(--line); background: var(--surface-2); }
.course-basket-label {
  display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .9rem; text-align: left; color: var(--ink-soft);
}
.course-basket-icon-wrap {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.course-basket-icon { width: 20px; height: 20px; color: var(--accent, #c17a2e); }
.course-basket-text { display: flex; flex-direction: column; gap: .2rem; padding-top: .1rem; }
.course-basket-title { font-weight: 700; }
.course-basket-desc { font-size: .82rem; color: var(--text-mute); font-weight: 400; line-height: 1.4; }
/* Umiestnené kartičky idú pod seba (nie vedľa seba) — inak sa dlhší
   text v úzkom stĺpci zalamuje na drobné, neprehľadné kúsky. */
.course-basket-drop { display: flex; flex-direction: column; gap: .5rem; min-height: 60px; }
.course-basket-drop .course-item { width: 100%; }

.course-basket.tone-danger { border: 2px solid var(--warn); background: var(--warn-bg); }
.course-basket.tone-danger .course-basket-icon-wrap { background: var(--warn); }
.course-basket.tone-danger .course-basket-icon { color: #fff; }
.course-basket.tone-danger .course-basket-title { color: var(--course-warn-deep); }
.course-basket.tone-safe { border: 2px solid var(--good); background: var(--good-bg); }
.course-basket.tone-safe .course-basket-icon-wrap { background: var(--good); }
.course-basket.tone-safe .course-basket-icon { color: #fff; }
.course-basket.tone-safe .course-basket-title { color: var(--course-good-deep); }

.course-hint-pill {
  display: inline-flex; background: var(--surface-2); padding: .4rem .85rem; border-radius: 999px;
  font-weight: 400; color: var(--text-mute);
}
.course-hint-pill strong { color: var(--ink); font-weight: 700; }

/* match (spájanie dvojíc) */
.course-match { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.1rem; }
.course-match-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.course-match-thread { fill: none; stroke: var(--accent, #c17a2e); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .85; }
.course-match-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .6rem; }
/* Farebný prúžok na kartičkách — nech je na prvý pohľad jasné, že ľavý
   a pravý stĺpec sú dve odlišné skupiny (kartičky, ktoré k sebe treba
   priradiť, nie dva rovnaké zoznamy). */
.course-match-item {
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: .75rem .95rem .75rem 1.1rem; font-size: .92rem; cursor: pointer; transition: border-color .15s ease, transform .15s ease;
  box-shadow: var(--course-shadow-soft); border-left-width: 5px;
}
.course-match-col.side-left .course-match-item { border-left-color: var(--ink-soft, #3d5a5e); }
.course-match-col.side-right .course-match-item { border-left-color: var(--accent, #c17a2e); }
.course-match-item:hover { transform: translateY(-2px); }
.course-match-item.selected { border-color: var(--focus); border-left-color: var(--focus); background: var(--surface-2); }
.course-match-item.solved { border-color: var(--good); border-left-color: var(--good); background: var(--good-bg); cursor: default; transform: none; }
.course-match-item.shake { animation: course-shake .4s; }

/* sequence */
.course-sequence { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.1rem; }
.course-seq-item {
  display: flex; align-items: center; gap: .7rem;
  text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: .85rem 1.05rem; font: inherit; font-size: .95rem; cursor: pointer; font-weight: 400;
  box-shadow: var(--course-shadow-soft);
}
.course-seq-item.done { border-color: var(--good); background: var(--good-bg); cursor: default; }
.course-seq-item.shake { animation: course-shake .4s; }
.course-seq-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid var(--line); color: var(--text-mute); font-weight: 700; font-size: .82rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.course-seq-item.done .course-seq-num { background: var(--good); border-color: var(--good); color: #fff; }

/* hotspot */
.course-hotspot-screen { position: relative; background: var(--surface-2); border-radius: 18px; padding: 1rem; min-height: 260px; margin-top: 1.1rem; }
.course-hotspot-mock { position: absolute; inset: 1rem; display: grid; grid-template-columns: 90px 1fr; grid-template-rows: 1fr 60px; gap: .5rem; }
.chp-side { grid-row: 1 / 3; background: var(--surface); border-radius: 10px; }
.chp-main { background: var(--surface); border-radius: 10px; padding: .8rem; }
.chp-bubble { width: 70%; height: 14px; background: var(--line); border-radius: 999px; margin-bottom: .5rem; }
.chp-bubble.short { width: 45%; }
.chp-input { grid-column: 1 / 3; background: var(--surface); border-radius: 10px; }
.course-hotspot-dot {
  position: absolute; width: 40px; height: 40px; padding: 0; margin: 0; min-width: 0; min-height: 0;
  border-radius: 50%; background: linear-gradient(160deg, var(--accent, #c17a2e), var(--accent-deep, #8f5a1e)); box-sizing: border-box;
  color: #fff; border: none; font-size: 1.2rem; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(193,122,46,.22); z-index: 2;
}
.course-hotspot-dot.found { background: var(--good); box-shadow: none; }
.course-hotspot-info { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.1rem; }
.course-hotspot-card { background: var(--surface-2); border-radius: 12px; padding: .85rem 1.05rem; }
.course-hotspot-card h4 { margin: 0 0 .3rem; font-size: .98rem; }
.course-hotspot-card p { margin: 0; font-size: .9rem; }

.course-hotspot-screen.has-photo {
  padding: 0; background: var(--surface); min-height: 0; overflow: hidden; border-radius: 18px;
  border: 2px solid var(--line); box-shadow: var(--course-shadow-soft, 0 6px 18px rgba(0,0,0,.1));
}
.course-hotspot-photo { display: block; width: 100%; }
/* Malý pruh ako v okne aplikácie nad screenshotom (napr. ChatGPT) —
   jasne označí, čo účastník na obrázku vidí. */
.course-hotspot-titlebar {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.course-hotspot-dots { display: flex; gap: .3rem; flex: none; }
.course-hotspot-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.course-hotspot-titlebar-label { font-size: .82rem; font-weight: 700; color: var(--text-mute); }
.course-hotspot-legend { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.course-hotspot-legend-item {
  display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1.05rem;
  background: var(--surface-2); border-radius: 12px; border: 2px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.course-hotspot-legend-item.found { border-color: var(--good); background: var(--good-bg); }
.course-hotspot-legend-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent, #c17a2e); color: #fff; font-weight: 700; font-size: .82rem;
}
.course-hotspot-legend-item.found .course-hotspot-legend-num { background: var(--good); }
.course-hotspot-legend-text h4 { margin: 0 0 .25rem; font-size: .96rem; }
.course-hotspot-legend-text p { margin: 0; font-size: .88rem; color: var(--text-mute); }

/* choice / belief / quickfire */
.course-choice-round, .course-belief-item {
  margin-top: 1.1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.course-choice-round:first-of-type, .course-belief-item:first-of-type { margin-top: 1.1rem; }
.course-choice-num {
  display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--accent-deep, #8f5a1e); font-size: .85rem; margin: 0 0 .8rem;
}
.course-choice-num svg { width: 18px; height: 18px; flex: none; }
.course-belief-text { font-size: 1.02rem; margin: 0 0 .9rem; }
.course-choice-opts { display: flex; flex-direction: column; gap: .6rem; }
.course-choice-opts-row { flex-direction: row; }
.course-choice-opt {
  display: flex; align-items: center; gap: .7rem;
  text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: .85rem 1.05rem; font: inherit; font-size: .95rem; cursor: pointer; font-weight: 400;
  transition: transform .12s ease;
}
.course-choice-opt:hover:not(:disabled) { transform: translateY(-2px); }
.course-choice-opt:disabled { cursor: default; }
.course-choice-opt-icon:empty { display: none; }
.course-choice-opt-icon { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.course-choice-opt-icon svg { width: 20px; height: 20px; }
.course-choice-opt.correct { border-color: var(--good); background: var(--good-bg); color: var(--course-good-deep); }
.course-choice-opt.correct .course-choice-opt-icon { color: var(--good); }
.course-choice-opt.incorrect { border-color: var(--warn); background: var(--warn-bg); color: var(--course-warn-deep); }
.course-choice-opt.incorrect .course-choice-opt-icon { color: var(--warn); }
.course-choice-result { margin-top: .75rem; font-size: .92rem; display: none; background: var(--surface-2); border-radius: 12px; padding: .85rem 1.05rem; }
.course-choice-result.show { display: block; animation: course-rise .3s ease; }
.course-choice-result.ok { color: var(--course-good-deep); }
.course-choice-result.warn { color: var(--course-warn-deep); }
.course-ai-answer { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: .7rem .9rem; font-style: italic; margin-top: .6rem; }

/* reveal / keys */
.course-reveal { display: grid; gap: .9rem; margin-top: 1.1rem; }
.course-reveal-keys { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.course-reveal-single { grid-template-columns: 1fr; }
.course-reveal-cell { text-align: center; }
.course-reveal-btn {
  width: 100%; background: linear-gradient(160deg, var(--ink), var(--course-ink-deep)); color: #fff; border: none; border-radius: 14px;
  padding: 1.2rem; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: var(--course-shadow-soft);
}
.course-reveal-cell.open .course-reveal-btn { display: none; }
.course-reveal-content { display: none; background: var(--surface-2); border-radius: 14px; padding: 1.05rem; text-align: left; }
.course-reveal-cell.open .course-reveal-content { display: block; animation: course-rise .3s ease; }
.course-reveal-content h4 { margin: 0 0 .4rem; font-size: 1rem; }
.course-reveal-content p { margin: 0; font-size: .92rem; }

/* reveal grid (7 znakov) */
.course-revealgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.course-revealgrid-cell { background: var(--surface-2); border-radius: 14px; padding: 1rem; cursor: pointer; min-height: 90px; transition: box-shadow .18s ease; }
.course-revealgrid-cell:hover { box-shadow: var(--course-shadow-soft); }
.course-revealgrid-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, var(--accent, #c17a2e), var(--accent-deep, #8f5a1e)); color: #fff; font-weight: 700; font-size: .85rem; }
.course-revealgrid-content { display: none; margin-top: .5rem; }
.course-revealgrid-cell.open .course-revealgrid-content { display: block; }
.course-revealgrid-content h4 { margin: 0 0 .3rem; font-size: .95rem; }
.course-revealgrid-content p { margin: 0; font-size: .88rem; }
.course-revealgrid-cell:not(.open)::after { content: "Kliknite pre odkrytie"; display: block; margin-top: .5rem; font-size: .82rem; color: var(--text-mute); font-weight: 700; }

/* ---- makety telefónu (spot / sms) ---- */
.phone-mock { max-width: 380px; margin: 1.1rem auto 0; }
.phone-shell { background: var(--course-ink-deep); border-radius: 34px; padding: 10px; box-shadow: var(--course-shadow-card); }
.phone-statusbar { display: flex; justify-content: space-between; padding: .5rem 1.1rem .2rem; color: #fff; font-size: .72rem; font-weight: 700; font-family: "IBM Plex Mono", "Courier New", monospace; }
.phone-inner { background: #fff; border-radius: 24px; overflow: hidden; }
.mail-app-head, .social-post-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.05rem; border-bottom: 1px solid var(--line); }
.mail-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #dfe6ea; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #5c7080; flex: none; font-size: .8rem;
}
.mail-app-head .who, .social-post-head .who { font-size: .85rem; line-height: 1.3; }
.mail-app-head .who b, .social-post-head .who b { display: block; color: var(--ink); word-break: break-all; }
.mail-app-head .who span, .social-post-head .who span { color: var(--text-mute); font-size: .78rem; }
.mail-body-new, .social-post-body { padding: .7rem 1.05rem 1.2rem; font-size: .96rem; line-height: 1.85; }
.course-clue { background: var(--warn-bg); color: var(--course-warn-deep); border-radius: 5px; padding: .05rem .3rem; cursor: pointer; font-weight: 700; border-bottom: 2px dotted var(--warn); }
.course-clue.found { background: transparent; border-bottom: none; text-decoration: line-through; color: var(--text-mute); font-weight: 400; }
.course-clue-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.2rem; }
.clue-list-item { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .85rem; border-radius: 12px; background: var(--surface-2); opacity: .4; font-size: .9rem; transition: opacity .2s ease, background .2s ease; }
.clue-list-item svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--course-warn-deep); }
.clue-list-item.revealed { opacity: 1; background: var(--warn-bg); }

/* SMS vlákno */
.sms-thread { padding: 1rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; min-height: 160px; }
.sms-bubble { max-width: 82%; padding: .65rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.sms-bubble.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.sms-bubble.out { align-self: flex-end; background: var(--focus); color: #fff; border-bottom-right-radius: 4px; }
.sms-sender { display: block; font-size: .72rem; font-weight: 700; color: var(--text-mute); margin-bottom: .2rem; }
.course-story-result { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; font-size: .96rem; }
.course-story-result.good { background: var(--good-bg); color: var(--course-good-deep); }
.course-story-result.warn { background: var(--warn-bg); color: var(--course-warn-deep); }

/* dvojstĺpcový layout: médium vľavo, rozhodovanie vpravo */
.course-story-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 1.3rem; align-items: start; margin-top: 1.1rem; }
.course-story-media { min-width: 0; }
.course-story-panel-col { min-width: 0; }
.course-story-bubble { background: var(--surface-2); border-radius: 14px; padding: 1rem 1.2rem; font-size: .95rem; line-height: 1.55; }

.course-story-decision {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem;
  box-shadow: var(--course-shadow-soft);
}
.course-story-decision-eyebrow {
  display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; color: var(--ink-soft); margin: 0 0 .9rem;
}
.course-story-decision-eyebrow svg { width: 20px; height: 20px; color: var(--accent, #c17a2e); flex: none; }
.course-story-options { display: flex; flex-direction: column; gap: .7rem; }
.course-story-option {
  display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%;
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
  font: inherit; font-size: .93rem; cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.course-story-option:hover { transform: translateY(-1px); }
.course-story-option.good:hover { border-color: var(--good); }
.course-story-option.bad:hover { border-color: var(--warn); }
.course-story-option-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
}
.course-story-option.good .course-story-option-icon { background: var(--good); }
.course-story-option.bad .course-story-option-icon { background: var(--warn); }
.course-story-option-icon svg { width: 18px; height: 18px; }
.course-story-option-text { flex: 1; }
.course-story-option-arrow { flex: none; width: 18px; height: 18px; color: var(--text-mute); }

.course-story-safe-tip {
  display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .9rem 1.05rem;
  background: var(--accent-soft); border-radius: 14px; font-size: .9rem; color: var(--accent-deep, #8f5a1e); line-height: 1.5;
}
.course-story-safe-tip svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.course-story-safe-tip strong { color: inherit; }

.course-story-hint-box {
  display: flex; gap: .7rem; align-items: flex-start; background: var(--surface-2); border-radius: 14px;
  padding: .9rem 1.05rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.course-story-hint-box svg { width: 22px; height: 22px; flex: none; color: var(--accent, #c17a2e); margin-top: .1rem; }
.course-story-hint-box p { margin: 0; }

.course-story-flags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; }
.course-story-flags-label { font-size: .85rem; font-weight: 700; color: var(--text-mute); margin-right: .2rem; }
.course-story-flag-chip {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--warn-bg); color: var(--course-warn-deep);
  padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.course-story-flag-chip svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .course-story-grid { grid-template-columns: 1fr; }
  .phone-mock, .call-shell { margin-left: auto; margin-right: auto; }
}

/* prichádzajúci hovor */
.call-shell { background: linear-gradient(180deg, #24444a, var(--course-ink-deep)); border-radius: 34px; padding: 10px; box-shadow: var(--course-shadow-card); max-width: 380px; margin: 1.1rem auto 0; }
.call-inner { border-radius: 24px; padding: 2rem 1.3rem 1.5rem; text-align: center; color: #fff; }
.call-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.12); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.call-avatar svg { width: 36px; height: 36px; color: #fff; opacity: .85; }
.call-inner .caller { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.call-inner .sub { font-size: .8rem; opacity: .7; margin-bottom: 1.6rem; }
.call-actions { display: flex; justify-content: center; gap: 2rem; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .72rem; color: #fff; opacity: .9; background: none; border: none; cursor: pointer; }
.call-btn .circle { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.call-btn.decline .circle { background: #c0392b; }
.call-btn.accept .circle { background: var(--good); }
.call-btn svg { width: 22px; height: 22px; color: #fff; }
.call-transcript { margin-top: 1.5rem; background: rgba(255,255,255,.1); border-radius: 14px; padding: 1rem 1.1rem; text-align: left; font-size: .92rem; line-height: 1.6; }

/* slider (investícia) */
.course-quote { border-left: 4px solid var(--accent, #c17a2e); padding-left: 1rem; font-style: italic; color: var(--ink-soft); margin: 1.1rem 0; font-family: "Fraunces", Georgia, serif; font-size: 1.08rem; }
.course-slider { margin: 1.1rem 0; }
.course-slider-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--good) 0%, var(--warn) 100%); margin-bottom: .4rem; }
.course-slider-fill { display: none; }
.course-slider-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-mute); font-weight: 700; }
.course-slider-input { width: 100%; margin-top: .5rem; }
.course-checklist { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.course-checklist-row { display: flex; align-items: center; gap: .6rem; font-weight: 400; font-size: .95rem; cursor: pointer; }
.course-checklist-row input { width: auto; }

/* guess (fotka) */
.course-guess-photo {
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-radius: 16px; padding: 2.2rem 1.3rem; text-align: center;
  font-size: .95rem; color: var(--text-mute); margin-bottom: 1.1rem; border: 2px dashed var(--line);
}

/* rewrite */
/* záverečná bleskovka (quickfire) */
.course-quickfire-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.2rem; margin-top: 1.1rem; align-items: start; }
.course-quickfire-sidebar { display: flex; flex-direction: column; gap: .55rem; }
.course-quickfire-main { min-width: 0; }
.course-guess-round { min-width: 0; }
.course-seq-text { flex: 1; }
.course-quickfire-side-item {
  display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface); font-size: .85rem; color: var(--text-mute);
  transition: border-color .15s ease, background .15s ease;
}
.course-quickfire-side-item.current { border-color: var(--good); background: var(--good-bg); color: var(--ink); font-weight: 700; }
.course-quickfire-side-item.done:not(.current) { opacity: .75; }
.course-quickfire-side-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; color: var(--text-mute);
}
.course-quickfire-side-num svg { width: 14px; height: 14px; }
.course-quickfire-side-item.current .course-quickfire-side-num { border-color: var(--good); background: var(--good); color: #fff; }
.course-quickfire-side-item.correct .course-quickfire-side-num { border-color: var(--good); background: var(--good); color: #fff; }
.course-quickfire-side-item.incorrect .course-quickfire-side-num { border-color: var(--warn); background: var(--warn); color: #fff; }

.course-quickfire-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; box-shadow: var(--course-shadow-soft); }
.course-quickfire-eyebrow { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--accent-deep, #8f5a1e); margin: 0 0 .9rem; }
.course-quickfire-eyebrow svg { width: 18px; height: 18px; }
.course-quickfire-question { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.course-quickfire-bolt {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep, #8f5a1e);
  display: flex; align-items: center; justify-content: center;
}
.course-quickfire-bolt svg { width: 22px; height: 22px; }
.course-quickfire-question > span:last-child { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.course-quickfire-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .9rem; }
.course-quickfire-opt {
  padding: 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; cursor: pointer;
}
.course-quickfire-opt:hover:not(:disabled) { border-color: var(--ink-soft); }
.course-quickfire-opt.correct { border-color: var(--good); background: var(--good-bg); color: var(--course-good-deep); }
.course-quickfire-opt.incorrect { border-color: var(--warn); background: var(--warn-bg); color: var(--course-warn-deep); }
.course-quickfire-hint { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-mute); margin: 0; }
.course-quickfire-hint svg { width: 16px; height: 16px; color: var(--good); flex: none; }
.course-quickfire-explain { padding: .9rem 1.05rem; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.course-quickfire-explain.good { background: var(--good-bg); color: var(--course-good-deep); }
.course-quickfire-explain.warn { background: var(--warn-bg); color: var(--course-warn-deep); }
.course-quickfire-summary { text-align: center; padding: 2.2rem 1.5rem; }
.course-quickfire-summary h3 { font-family: "Fraunces", Georgia, serif; margin: 0 0 .5rem; }
.course-quickfire-tips {
  display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--good-bg); border-radius: 14px;
}
.course-quickfire-tips-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; }
.course-quickfire-tips-icon svg { width: 18px; height: 18px; }
.course-quickfire-tips-title { margin: 0 0 .3rem; font-weight: 700; color: var(--course-good-deep); }
.course-quickfire-tips ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--course-good-deep); line-height: 1.6; }

.course-rewrite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.1rem; align-items: start; }
.course-rewrite-panel { border-radius: 18px; padding: 1.2rem; border: 2px solid var(--line); background: var(--surface); }
.course-rewrite-panel.unsafe { border-color: var(--warn); background: var(--warn-bg); }
.course-rewrite-panel.safe { border-color: var(--line); background: var(--surface-2); transition: border-color .2s ease, background .2s ease; }
.course-rewrite-panel.safe.revealed { border-color: var(--good); background: var(--good-bg); }
.course-rewrite-panel-label {
  display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; margin: 0 0 .8rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.course-rewrite-panel-label svg { width: 18px; height: 18px; }
.course-rewrite-panel.unsafe .course-rewrite-panel-label { color: var(--course-warn-deep); }
.course-rewrite-panel.safe .course-rewrite-panel-label { color: var(--text-mute); }
.course-rewrite-panel.safe.revealed .course-rewrite-panel-label { color: var(--course-good-deep); }
.course-rewrite-sentence { font-size: 1.05rem; line-height: 2.2; margin: 0; }
.course-rewrite-word.sensitive { background: rgba(255,255,255,.6); border-bottom: 2px dashed var(--warn); cursor: pointer; padding: .1rem .35rem; border-radius: 6px; }
.course-rewrite-word.removed { text-decoration: line-through; opacity: .5; cursor: default; }
.course-rewrite-reasons { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.course-rewrite-reason { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; color: var(--course-warn-deep); line-height: 1.45; }
.course-rewrite-reason svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; }
.course-rewrite-safe-body { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text-mute); }
.course-rewrite-panel.safe.revealed .course-rewrite-safe-body { color: var(--course-good-deep); font-weight: 600; }
.course-feedback { margin-top: 1.1rem; padding: 1rem 1.15rem; border-radius: 14px; font-size: .95rem; }
.course-feedback.ok { background: var(--good-bg); color: var(--course-good-deep); }

/* printcard */
.course-paper { background: var(--surface-2); border: 2px dashed var(--line); border-radius: 16px; padding: 1.5rem; margin-top: 1.1rem; }
.course-paper-list { margin: 0; padding-left: 1.3rem; }
.course-paper-list li { margin-bottom: .6rem; font-size: .98rem; }

/* diplom */
.course-diploma-badge {
  width: 84px; height: 84px; margin: 0 auto .8rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ecb877, var(--accent-deep, #8f5a1e) 75%);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(143,90,30,.6); color: #fff;
}
.course-diploma-title { font-family: "Fraunces", Georgia, serif; font-size: 1.7rem; margin-bottom: .5rem; text-align: center; }

@keyframes course-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}


/* ============================================================
   Zadanie úlohy, živá spätná väzba a postup v cvičení
   ============================================================ */

/* „Vaša úloha" — vždy na rovnakom mieste, hneď pod nadpisom. */
.course-task {
  display: flex; gap: .8rem; align-items: flex-start; margin: 1rem 0 0;
  padding: .95rem 1.15rem; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(193,122,46,.35);
}
.course-task-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--accent, #c17a2e); color: #fff;
}
.course-task-icon svg { width: 19px; height: 19px; }
.course-task-label {
  display: block; font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep, #8f5a1e); font-weight: 700; margin-bottom: .25rem;
}
.course-task p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink); }
.course-task strong { color: var(--accent-deep, #8f5a1e); }

/* Živá spätná väzba — reaguje na každú odpoveď. */
.course-live-feedback { margin-top: 1rem; }
.course-live-feedback:not(.show) { display: none; }
.course-live-feedback-inner {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.15rem; border-radius: 14px; border: 2px solid transparent;
  animation: course-rise .25s ease;
}
.course-live-feedback-inner.ok { background: var(--good-bg); border-color: var(--good); color: var(--course-good-deep); }
.course-live-feedback-inner.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--course-warn-deep); }
.course-live-feedback-inner.info { background: var(--surface-2); border-color: var(--line); color: var(--ink-soft); }
.course-live-feedback-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-live-feedback-inner.ok .course-live-feedback-icon { background: var(--good); }
.course-live-feedback-inner.warn .course-live-feedback-icon { background: var(--warn); }
.course-live-feedback-inner.info .course-live-feedback-icon { background: var(--focus); }
.course-live-feedback-icon svg { width: 16px; height: 16px; }
.course-live-feedback-inner strong { display: block; font-size: .96rem; line-height: 1.4; }
.course-live-feedback-inner p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.55; opacity: .92; }

/* Postup v rámci jedného cvičenia. */
.course-exercise-progress { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; flex-wrap: wrap; }
.course-exercise-progress-label { font-size: .88rem; color: var(--text-mute); font-weight: 400; }
.course-exercise-progress-label strong { color: var(--ink); font-weight: 700; }
.course-exercise-progress-bar {
  flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
}
.course-exercise-progress-fill {
  height: 100%; width: 0; border-radius: 999px; transition: width .3s ease;
  background: linear-gradient(90deg, var(--accent-deep, #8f5a1e), var(--accent, #c17a2e));
}
.course-exercise-progress.complete .course-exercise-progress-fill { background: var(--good); }
.course-exercise-progress.complete .course-exercise-progress-label { color: var(--course-good-deep); font-weight: 700; }

/* Zoznam varovných znakov v spot cvičeniach. */
.course-clue-list-title {
  font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin: 1.2rem 0 .6rem;
}
.clue-list-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-mute); font-size: .74rem; font-weight: 700; margin-top: .05rem;
}
.clue-list-num svg { width: 14px; height: 14px; }
.clue-list-item.revealed .clue-list-num { background: var(--good); color: #fff; }

/* ============================================================
   Posúdenie rizika (investičná ponuka)
   ============================================================ */
.course-scam-ad {
  margin-top: 1.1rem; padding: 1.1rem 1.25rem; border-radius: 16px;
  background: var(--warn-bg); border: 2px solid var(--warn);
}
.course-scam-ad-label {
  display: flex; align-items: center; gap: .5rem; font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--course-warn-deep); margin-bottom: .6rem;
}
.course-scam-ad-label svg { width: 16px; height: 16px; }
.course-scam-ad-text {
  margin: 0; padding: 0; border: none; font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.12rem; line-height: 1.5; color: var(--course-warn-deep); font-style: normal;
}
.course-risk-question { font-weight: 700; font-size: 1.02rem; margin: 1.3rem 0 .8rem; }
.course-risk-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.course-risk-opt {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .8rem;
  border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, border-color .15s ease;
}
.course-risk-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink-soft); }
.course-risk-opt:disabled { cursor: default; opacity: .55; }
.course-risk-opt-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.course-risk-opt.tone-safe .course-risk-opt-dot { background: var(--good); }
.course-risk-opt.tone-mid .course-risk-opt-dot { background: #d8a12f; }
.course-risk-opt.tone-danger .course-risk-opt-dot { background: var(--warn); }
.course-risk-opt-label { text-align: center; line-height: 1.3; }
.course-risk-opt.chosen { opacity: 1; }
.course-risk-opt.correct { border-color: var(--good); background: var(--good-bg); color: var(--course-good-deep); opacity: 1; }
.course-risk-opt.incorrect { border-color: var(--warn); background: var(--warn-bg); color: var(--course-warn-deep); opacity: 1; }
.course-risk-opt.is-answer { box-shadow: 0 0 0 3px rgba(47,107,73,.18); }

.course-checklist-wrap {
  margin-top: 1.3rem; padding: 1.15rem 1.3rem; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.course-checklist-wrap:not(.show) { display: none; }
.course-checklist-title {
  display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .98rem;
  margin: 0 0 .8rem; color: var(--ink);
}
.course-checklist-title svg { width: 20px; height: 20px; flex: none; color: var(--accent, #c17a2e); }
.course-checklist-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--text-mute);
  font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.course-checklist-note { margin: .8rem 0 0; font-size: .86rem; color: var(--text-mute); line-height: 1.5; }

@media (max-width: 720px) {
  .course-match { grid-template-columns: 1fr; }
  .course-baskets-2 { grid-template-columns: 1fr; }
  .course-sort-layout.has-side { grid-template-columns: 1fr; }
  .course-rewrite-grid { grid-template-columns: 1fr; }
  .course-quickfire-layout { grid-template-columns: 1fr; }
  .course-quickfire-opts { grid-template-columns: 1fr; }
  .course-map-seg-label { display: none; }
  .course-card { padding: 1.3rem; }
  .course-part-hero { padding: 1.6rem 1.4rem; }
  .course-part-hero.has-image { padding-right: 1.4rem; }
  .course-part-icon, .course-part-image { display: none; }
  .course-choice-opts-row { flex-direction: column; }
}

/* ============================================================
   Brožúrka — listovanie ako v skutočnej knihe
   ============================================================ */

.flipbook { margin-top: 1.2rem; }

.flipbook-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 3rem 1rem; text-align: center; color: var(--text-mute);
}
.flipbook-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--surface-2); border-top-color: var(--accent, #c17a2e);
  animation: flipbook-spin 1s linear infinite;
}
@keyframes flipbook-spin { to { transform: rotate(360deg); } }

/* Plocha, na ktorej kniha leží */
.flipbook-stage {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), #e6e0d1);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.2rem; overflow: hidden;
  perspective: 2200px;
  touch-action: pan-y;
}
.flipbook-pages { position: relative; display: flex; justify-content: center; min-height: 240px; }

.flipbook-sheet { display: flex; justify-content: center; gap: 0; max-width: 100%; }
.flipbook-page {
  background: #fff; overflow: hidden; max-width: 100%;
  box-shadow: 0 2px 6px rgba(31,58,61,.12), 0 18px 40px -18px rgba(31,58,61,.45);
  border-radius: 6px;
}
.flipbook-page-img { display: block; width: 100%; height: auto; cursor: zoom-in; user-select: none; }

/* Dve strany vedľa seba — zaoblenie len na vonkajších okrajoch,
   v strede jemný tieň, ktorý pripomína chrbát knihy. */
.flipbook-sheet.spread .flipbook-page { flex: 1 1 0; min-width: 0; max-width: 50%; }
.flipbook-sheet.spread .flipbook-page.left {
  border-radius: 8px 2px 2px 8px;
  box-shadow: inset -14px 0 22px -18px rgba(31,58,61,.55), 0 2px 6px rgba(31,58,61,.12), 0 18px 40px -18px rgba(31,58,61,.45);
}
.flipbook-sheet.spread .flipbook-page.right {
  border-radius: 2px 8px 8px 2px;
  box-shadow: inset 14px 0 22px -18px rgba(31,58,61,.55), 0 2px 6px rgba(31,58,61,.12), 0 18px 40px -18px rgba(31,58,61,.45);
}
.flipbook-page.blank { background: var(--surface-2); min-height: 200px; }

/* Obracanie strany */
.flipbook-sheet.turn-in-next, .flipbook-sheet.turn-in-prev,
.flipbook-sheet.turn-out-next, .flipbook-sheet.turn-out-prev {
  position: absolute; top: 0; left: 50%; transform-origin: center center;
  will-change: transform, opacity;
}
.flipbook-sheet.turn-in-next { animation: flip-in-next .42s cubic-bezier(.25,.8,.35,1) both; }
.flipbook-sheet.turn-in-prev { animation: flip-in-prev .42s cubic-bezier(.25,.8,.35,1) both; }
.flipbook-sheet.turn-out-next { animation: flip-out-next .42s cubic-bezier(.25,.8,.35,1) both; }
.flipbook-sheet.turn-out-prev { animation: flip-out-prev .42s cubic-bezier(.25,.8,.35,1) both; }

@keyframes flip-in-next {
  from { transform: translateX(-50%) rotateY(28deg) scale(.94); opacity: 0; }
  to   { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes flip-out-next {
  from { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
  to   { transform: translateX(-50%) rotateY(-30deg) scale(.92); opacity: 0; }
}
@keyframes flip-in-prev {
  from { transform: translateX(-50%) rotateY(-28deg) scale(.94); opacity: 0; }
  to   { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes flip-out-prev {
  from { transform: translateX(-50%) rotateY(0deg) scale(1); opacity: 1; }
  to   { transform: translateX(-50%) rotateY(30deg) scale(.92); opacity: 0; }
}

/* Ovládanie */
.flipbook-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; flex-wrap: wrap;
}
.flipbook-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: .85rem 1.4rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  min-height: 52px;
}
.flipbook-btn svg { width: 20px; height: 20px; }
.flipbook-btn:hover:not(:disabled) { background: var(--ink-soft); }
.flipbook-btn:disabled { background: var(--surface-2); color: var(--text-mute); cursor: default; }
.flipbook-indicator {
  flex: 1; text-align: center; font-size: .98rem; color: var(--text-mute); min-width: 140px;
}
.flipbook-indicator strong { color: var(--ink); font-size: 1.08rem; }

.flipbook-jump { margin-top: 1rem; }
.flipbook-jump-label {
  display: block; font-size: .85rem; color: var(--text-mute); font-weight: 700; margin-bottom: .3rem;
}
.flipbook-slider { width: 100%; padding: 0; height: 32px; accent-color: var(--accent, #c17a2e); cursor: pointer; }

.flipbook-hint {
  display: flex; gap: .55rem; align-items: flex-start;
  margin: .9rem 0 0; font-size: .88rem; color: var(--text-mute); line-height: 1.5;
}
.flipbook-hint svg { width: 20px; height: 20px; flex: none; color: var(--accent, #c17a2e); margin-top: .1rem; }

/* Zväčšená strana */
.flipbook-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(13,20,20,.9);
  display: none; align-items: center; justify-content: center;
  /* Po stranách necháme miesto na šípky, dole na lištu s číslom strany. */
  padding: 3rem 5.5rem 4.8rem;
  overflow: auto;
}
.flipbook-lightbox.show { display: flex; }
.flipbook-lightbox-img {
  max-width: 100%; max-height: 100%; border-radius: 8px; cursor: zoom-out;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  user-select: none; -webkit-user-drag: none;
}

/* Listovanie priamo v zväčšenom zobrazení */
.flipbook-lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.flipbook-lb-nav svg { width: 26px; height: 26px; }
.flipbook-lb-nav:hover:not(:disabled) { background: rgba(255,255,255,.3); }
.flipbook-lb-nav:disabled { opacity: .25; cursor: default; }
.flipbook-lb-nav.prev { left: 1.2rem; }
.flipbook-lb-nav.next { right: 1.2rem; }

.flipbook-lb-bar {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; padding: .55rem 1.1rem; border-radius: 999px;
  font-size: .9rem; max-width: calc(100% - 2rem); text-align: center;
}
.flipbook-lb-count strong { font-size: 1.05rem; }
.flipbook-lb-hint { opacity: .75; font-size: .82rem; }

@media (max-width: 720px) {
  .flipbook-lightbox { padding: 3.5rem .6rem 4.6rem; }
  .flipbook-lb-nav { width: 48px; height: 48px; }
  .flipbook-lb-nav.prev { left: .4rem; }
  .flipbook-lb-nav.next { right: .4rem; }
  .flipbook-lb-hint { display: none; }
}
.flipbook-lightbox-close {
  position: fixed; top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.flipbook-lightbox-close svg { width: 24px; height: 24px; }
.flipbook-lightbox-close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 720px) {
  .flipbook-stage { padding: 1rem .8rem; border-radius: 14px; }
  .flipbook-nav { gap: .6rem; }
  .flipbook-btn { padding: .75rem 1rem; font-size: .95rem; flex: 1; justify-content: center; }
  .flipbook-indicator { order: -1; flex-basis: 100%; }
}

/* Načítavanie strany pri skoku na miesto, ktoré ešte nie je pripravené */
.flipbook-stage.loading::after {
  content: ""; position: absolute; inset: 0; background: rgba(246,243,236,.72);
  backdrop-filter: blur(1px); z-index: 3;
}
.flipbook-stage.loading::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 4;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 4px solid rgba(31,58,61,.15); border-top-color: var(--accent, #c17a2e);
  animation: flipbook-spin .9s linear infinite;
}

/* ============================================================
   Praktické cvičenia (krok 4)
   ============================================================ */

.ex-overview-head h2 { margin: 0 0 .4rem; }
.ex-overview-lead { color: var(--text-mute); margin: 0 0 1.2rem; }

.ex-progress { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.ex-progress-bar { flex: 1; min-width: 140px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ex-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep, #8f5a1e), var(--accent, #c17a2e)); transition: width .3s ease; }
.ex-progress-label { font-size: .9rem; color: var(--text-mute); }
.ex-progress-label strong { color: var(--ink); }

.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.ex-tile {
  display: flex; flex-direction: column; gap: .55rem; text-align: left;
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px;
  padding: 1.2rem; font: inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ex-tile:hover { transform: translateY(-3px); border-color: var(--ink-soft); box-shadow: var(--course-shadow-soft); }
.ex-tile.is-done { border-color: var(--good); background: var(--good-bg); }
.ex-tile-top { display: flex; align-items: center; gap: .6rem; }
.ex-tile-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep, #8f5a1e);
}
.ex-tile-icon svg { width: 22px; height: 22px; }
.ex-tile.is-done .ex-tile-icon { background: var(--good); color: #fff; }
.ex-tile-num { font-family: "IBM Plex Mono", "Courier New", monospace; font-size: .78rem; font-weight: 700; color: var(--text-mute); }
.ex-tile-check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; }
.ex-tile-check svg { width: 14px; height: 14px; }
.ex-tile-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.ex-tile-short { font-size: .9rem; color: var(--text-mute); line-height: 1.5; flex: 1; }
.ex-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.ex-tile-time { font-size: .8rem; color: var(--text-mute); }
.ex-tile-go { font-size: .88rem; font-weight: 700; color: var(--accent-deep, #8f5a1e); }

.ex-back { background: none; border: none; color: var(--focus); font: inherit; font-weight: 700; padding: .4rem 0; margin-bottom: .6rem; cursor: pointer; }
.ex-back:hover { text-decoration: underline; }
.ex-detail-kicker {
  display: flex; align-items: center; gap: .5rem; font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-deep, #8f5a1e); margin: 0 0 .5rem;
}
.ex-detail-kicker-icon { width: 16px; height: 16px; }
.ex-detail-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.45rem; margin: 0 0 .5rem; }
.ex-detail-intro { color: var(--ink-soft); margin: 0 0 .4rem; }
.ex-body { margin-top: 1.2rem; }

.ex-foot { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.ex-pdf-btn { display: inline-flex; align-items: center; gap: .5rem; }
.ex-pdf-btn svg { width: 18px; height: 18px; }
.ex-all-done { color: var(--course-good-deep); font-weight: 700; }

.ex-hint-pill { display: inline-block; background: var(--surface-2); padding: .4rem .85rem; border-radius: 999px; font-size: .88rem; color: var(--text-mute); margin-top: 1rem; }
.ex-hint-pill strong { color: var(--ink); }

.ex-money-group { margin-bottom: 1.3rem; }
.ex-money-title { font-size: 1rem; margin: 0 0 .6rem; color: var(--accent-deep, #8f5a1e); }
.ex-money-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; margin-bottom: .45rem; background: var(--surface-2); border-radius: 10px; font-weight: 400; }
.ex-money-label { flex: 1; font-size: .93rem; }
.ex-money-input { width: 110px; flex: none; padding: .5rem .6rem; font-size: 1rem; text-align: right; }
.ex-money-unit { font-weight: 700; color: var(--text-mute); }

.ex-budget-result { display: none; }
.ex-budget-result.show { display: block; border-radius: 14px; padding: 1rem 1.2rem; margin-top: .4rem; }
.ex-budget-result.ok { background: var(--good-bg); }
.ex-budget-result.warn { background: var(--warn-bg); }
.ex-budget-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; }
.ex-budget-row.total { border-top: 1px solid rgba(0,0,0,.12); margin-top: .3rem; padding-top: .6rem; font-size: 1.05rem; }
.ex-budget-note { margin: .7rem 0 0; font-size: .9rem; }
.ex-budget-result.ok .ex-budget-note, .ex-budget-result.ok .ex-budget-row.total strong { color: var(--course-good-deep); }
.ex-budget-result.warn .ex-budget-note, .ex-budget-result.warn .ex-budget-row.total strong { color: var(--course-warn-deep); }

.ex-prompt-box { margin-top: 1.2rem; }
.ex-prompt { background: var(--accent-soft); border-radius: 16px; padding: 1.1rem 1.25rem; }
.ex-prompt-label { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem; color: var(--accent-deep, #8f5a1e); margin: 0 0 .6rem; }
.ex-prompt-label svg { width: 18px; height: 18px; }
.ex-prompt-text { background: var(--surface); border-radius: 12px; padding: .9rem 1.05rem; margin: 0 0 .8rem; font-size: .98rem; line-height: 1.6; color: var(--ink); }
.ex-copy-btn { padding: .6rem 1.1rem; font-size: .92rem; }
.ex-prompt-note { margin: .7rem 0 0; font-size: .85rem; color: var(--accent-deep, #8f5a1e); }

.ex-msg { background: var(--surface-2); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.ex-msg-label { font-weight: 700; font-size: .85rem; color: var(--accent-deep, #8f5a1e); margin: 0 0 .5rem; }
.ex-msg-text { margin: 0 0 .9rem; padding: .85rem 1rem; background: var(--surface); border-radius: 12px; border-left: 4px solid var(--line); font-style: italic; font-size: .95rem; line-height: 1.6; }
.ex-msg-opts { display: flex; gap: .7rem; flex-wrap: wrap; }
.ex-msg-opt {
  display: inline-flex; align-items: center; gap: .5rem; flex: 1; min-width: 150px; justify-content: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: .75rem 1rem; font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer;
}
.ex-msg-opt:hover:not(:disabled) { border-color: var(--ink-soft); }
.ex-msg-opt:disabled { cursor: default; opacity: .6; }
.ex-msg-opt.correct { border-color: var(--good); background: var(--good-bg); color: var(--course-good-deep); opacity: 1; }
.ex-msg-opt.incorrect { border-color: var(--warn); background: var(--warn-bg); color: var(--course-warn-deep); opacity: 1; }
.ex-msg-opt-icon { width: 18px; height: 18px; display: inline-flex; }
.ex-msg-opt-icon svg { width: 18px; height: 18px; }
.ex-msg-result { display: none; margin-top: .8rem; padding: .85rem 1.05rem; border-radius: 12px; font-size: .92rem; line-height: 1.55; }
.ex-msg-result.show { display: block; animation: course-rise .25s ease; }
.ex-msg-result.ok { background: var(--good-bg); color: var(--course-good-deep); }
.ex-msg-result.warn { background: var(--warn-bg); color: var(--course-warn-deep); }

.ex-situations { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.ex-situation { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; font: inherit; font-size: .92rem; cursor: pointer; }
.ex-situation:hover { border-color: var(--ink-soft); }
.ex-situation.active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }

.ex-fields { display: flex; flex-direction: column; gap: .9rem; }
.ex-field-label { display: block; font-size: .92rem; margin-bottom: .3rem; }
.ex-field-input { width: 100%; }

.ex-check-row {
  display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.05rem; margin-bottom: .6rem;
  background: var(--surface-2); border: 2px solid transparent; border-radius: 14px;
  font-weight: 400; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.ex-check-row.checked { border-color: var(--good); background: var(--good-bg); }
.ex-check-box { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: var(--good); }
.ex-check-text { display: flex; flex-direction: column; gap: .25rem; }
.ex-check-main { font-size: .96rem; line-height: 1.5; }
.ex-check-why { font-size: .85rem; color: var(--text-mute); line-height: 1.5; }
.ex-check-row.checked .ex-check-why { color: var(--course-good-deep); }

.ex-card-preview { margin-top: 1.4rem; }
.ex-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--course-shadow-soft); }
.ex-card-head { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; padding: .8rem 1.1rem; font-weight: 700; font-size: .98rem; }
.ex-card-head svg { width: 20px; height: 20px; }
.ex-card-rows { padding: .4rem 1.1rem; }
.ex-card-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.ex-card-row:last-child { border-bottom: none; }
.ex-card-row strong { font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.ex-card-row.fixed span { color: var(--text-mute); }
.ex-card-blank { color: var(--text-mute); font-style: italic; }
.ex-card-steps { margin: 0; padding: .8rem 1.1rem .8rem 2.4rem; background: var(--surface-2); font-size: .92rem; line-height: 1.6; }
.ex-card-steps li { margin-bottom: .3rem; }

/* ---------- Simulátor ChatGPT ---------- */
.chatsim { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--course-shadow-soft); }
.chatsim-bar { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #f4f4f5; border-bottom: 1px solid var(--line); }
.chatsim-dots { display: flex; gap: .35rem; }
.chatsim-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; display: block; }
.chatsim-dots i:first-child { background: #f87171; }
.chatsim-dots i:nth-child(2) { background: #fbbf24; }
.chatsim-dots i:last-child { background: #4ade80; }
.chatsim-title { font-weight: 700; font-size: .95rem; color: #27272a; }
.chatsim-badge { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-deep, #8f5a1e); padding: .2rem .6rem; border-radius: 999px; }
.chatsim-thread { padding: 1.1rem; display: flex; flex-direction: column; gap: 1.1rem; max-height: 460px; overflow-y: auto; background: var(--surface); }
.chatsim-msg { display: flex; gap: .8rem; align-items: flex-start; }
.chatsim-avatar { flex: none; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.chatsim-avatar svg { width: 20px; height: 20px; }
.chatsim-msg.ai .chatsim-avatar { background: #0d1e21; color: #fff; }
.chatsim-msg.me .chatsim-avatar { background: var(--accent-soft); color: var(--accent-deep, #8f5a1e); }
.chatsim-text { font-size: .96rem; line-height: 1.65; color: var(--text); min-width: 0; }
.chatsim-text p { margin: 0 0 .6rem; }
.chatsim-text p:last-child { margin-bottom: 0; }
.chatsim-msg.me .chatsim-text { background: var(--surface-2); border-radius: 12px; padding: .7rem .95rem; }
.chatsim-li { display: block; padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.chatsim-li::before { content: "\2022"; position: absolute; left: 0; color: var(--accent, #c17a2e); font-weight: 700; }
.chatsim-li.num { padding-left: 0; }
.chatsim-li.num::before { content: none; }
.chatsim-typing { display: inline-flex; gap: .25rem; padding: .4rem 0; }
.chatsim-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; animation: chatsim-blink 1.2s infinite; }
.chatsim-typing i:nth-child(2) { animation-delay: .2s; }
.chatsim-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chatsim-blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

.chatsim-input { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: #fafafa; }
.chatsim-field { flex: 1; border-radius: 999px; padding: .75rem 1.1rem; font-size: 1rem; }
.chatsim-send { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.chatsim-send svg { width: 20px; height: 20px; }
.chatsim-send:hover { background: var(--ink-soft); }

.chatsim-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chatsim-chips-label { flex-basis: 100%; font-size: .88rem; color: var(--text-mute); font-weight: 700; }
.chatsim-chip { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font: inherit; font-size: .88rem; cursor: pointer; text-align: left; }
.chatsim-chip:hover { border-color: var(--accent, #c17a2e); }

@media (max-width: 720px) {
  .ex-grid { grid-template-columns: 1fr; }
  .ex-money-row { flex-wrap: wrap; }
  .ex-money-input { width: 100%; text-align: left; }
  .ex-msg-opt { min-width: 0; }
  .chatsim-thread { max-height: 380px; }
}

/* ---------- Prezentácia: snímky sa posúvajú vľavo/vpravo ---------- */
.flipbook-stage.is-slides {
  background: linear-gradient(180deg, #1a2f32, var(--course-ink-deep));
  padding: 1.6rem 1.4rem;
  perspective: none;
}
.flipbook.is-slides .flipbook-page {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 26px 60px -24px rgba(0,0,0,.6);
}
.flipbook.is-slides .flipbook-page-img { cursor: zoom-in; }
.flipbook-stage.is-slides .flipbook-pages { min-height: 180px; }

/* Prechod medzi snímkami — posun do strany namiesto obracania strany */
.flipbook.is-slides .flipbook-sheet.turn-in-next { animation: slide-in-next .38s cubic-bezier(.3,.8,.35,1) both; }
.flipbook.is-slides .flipbook-sheet.turn-out-next { animation: slide-out-next .38s cubic-bezier(.3,.8,.35,1) both; }
.flipbook.is-slides .flipbook-sheet.turn-in-prev { animation: slide-in-prev .38s cubic-bezier(.3,.8,.35,1) both; }
.flipbook.is-slides .flipbook-sheet.turn-out-prev { animation: slide-out-prev .38s cubic-bezier(.3,.8,.35,1) both; }

@keyframes slide-in-next {
  from { transform: translateX(calc(-50% + 46px)); opacity: 0; }
  to   { transform: translateX(-50%); opacity: 1; }
}
@keyframes slide-out-next {
  from { transform: translateX(-50%); opacity: 1; }
  to   { transform: translateX(calc(-50% - 46px)); opacity: 0; }
}
@keyframes slide-in-prev {
  from { transform: translateX(calc(-50% - 46px)); opacity: 0; }
  to   { transform: translateX(-50%); opacity: 1; }
}
@keyframes slide-out-prev {
  from { transform: translateX(-50%); opacity: 1; }
  to   { transform: translateX(calc(-50% + 46px)); opacity: 0; }
}

/* Vysvetlenie, prečo certifikát ešte nie je dostupný */
.cert-missing {
  margin-top: 1.2rem; padding: 1.1rem 1.25rem; border-radius: 14px;
  background: var(--warn-bg); border: 1px solid var(--warn);
}
.cert-missing-title { margin: 0 0 .6rem; font-weight: 700; color: var(--course-warn-deep); }
.cert-missing-list { margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--course-warn-deep); }
.cert-missing-list li { margin-bottom: .25rem; }
.cert-missing-hint { margin: 0 0 .9rem; font-size: .9rem; color: var(--course-warn-deep); }
.cert-missing-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cert-missing-actions .btn { padding: .6rem 1.1rem; font-size: .92rem; }

/* ============================================================
   Výber spôsobu platby
   ============================================================ */
.pay-methods { display: flex; flex-direction: column; gap: .8rem; }
.pay-method {
  display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-weight: 400;
  padding: 1rem 1.15rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
}
.pay-method:hover { border-color: var(--ink-soft); }
.pay-method.is-selected { border-color: var(--focus); background: var(--surface-2); }
.pay-method input[type="radio"] { width: auto; flex: none; margin-top: .25rem; accent-color: var(--focus); }
.pay-method-body { display: flex; flex-direction: column; gap: .25rem; }
.pay-method-title { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.pay-method-desc { font-size: .9rem; color: var(--text-mute); line-height: 1.5; }

.pay-cancelled {
  display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.2rem;
  padding: 1rem 1.15rem; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn);
  color: var(--course-warn-deep);
}
.pay-cancelled svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.pay-cancelled p { margin: 0; font-size: .94rem; line-height: 1.55; }
