:root {
  --bg: #f3f5f8; --surface: #fff; --ink: #1c2430; --ink-2: #5b6b7f; --ink-3: #8492a6;
  --line: #e2e7ee; --accent: #1f6feb; --accent-2: #e8f0fe;
  --good: #1a7f37; --good-bg: #e7f6ec; --bad: #c62828; --bad-bg: #fdecec; --warn: #9a6700; --warn-bg: #fff6dd;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.topbar { background: #0f1b2d; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px; flex-wrap: wrap; }
.topbar .brand { color: #fff; text-decoration: none; font-size: 17px; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topbar nav a, .topbar nav button { color: #cfd8e3; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.topbar nav a:hover, .topbar nav button:hover, .topbar nav a.on { background: rgba(255,255,255,.1); color: #fff; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 20px 48px; }
.foot { text-align: center; color: var(--ink-3); font-size: 13px; padding: 16px; border-top: 1px solid var(--line); background: var(--surface); }
.loading { color: var(--ink-2); padding: 40px; text-align: center; }
h1 { font-size: 26px; margin: 0 0 6px; } h2 { font-size: 20px; margin: 28px 0 12px; } h3 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 6px 12px; font-size: 14px; font-weight: 500; }
.btn.danger { background: var(--bad); }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
label { display: block; font-size: 14px; color: var(--ink-2); margin: 12px 0 4px; }
.auth { max-width: 420px; margin: 40px auto; }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--accent-2); color: var(--accent); font-weight: 600; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.gray { background: #eef1f5; color: var(--ink-2); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, #0f1b2d, #1f3a66); color: #fff; border-radius: var(--radius); padding: 26px; }
.hero .muted { color: #b8c4d6; } .hero .big { font-size: 34px; font-weight: 700; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } }
.lesson-card { display: flex; flex-direction: column; gap: 8px; }
.lesson-card .ico { font-size: 30px; }
.lesson-card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.bar { height: 10px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.catrow { display: grid; grid-template-columns: 1fr 120px 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0f1b2d; color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow); z-index: 99; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.months i { height: 16px; border-radius: 3px; background: #eef1f5; display: block; }
.months i.y { background: var(--good); }
.vbars { display: flex; gap: 6px; align-items: flex-end; height: 140px; padding-top: 10px; }
.vbars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--ink-2); }
.vbars .col b { width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }

/* ---------- Kvíz ---------- */
.quiz { max-width: 760px; margin: 0 auto; }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qtext { font-size: 19px; font-weight: 600; margin: 6px 0 16px; }
.opt { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; font: inherit; cursor: pointer; transition: transform .1s, border-color .15s; color: var(--ink); }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); animation: shake .35s; }
.opt.right { border-color: var(--good); background: var(--good-bg); animation: pop .35s; }
.opt:disabled { cursor: default; }
.opt .why { display: block; font-size: 14px; margin-top: 6px; color: var(--ink-2); }
.opt.wrong .why::before { content: "✗ "; color: var(--bad); font-weight: 700; }
.opt.right .why::before { content: "✓ "; color: var(--good); font-weight: 700; }
.explain { background: var(--accent-2); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin-top: 8px; }
.progress { height: 6px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.result { text-align: center; padding: 30px; } .result .emoji { font-size: 64px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Prehrávač lekcie ---------- */
.player { background: #0f1b2d; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stage { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 20%, #23406e, #0f1b2d 70%); color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 4% 5% 15%; }
@media (max-width: 700px) { .stage { aspect-ratio: auto; min-height: 420px; padding: 20px 16px 150px; } }
.subs { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6%; background: linear-gradient(transparent, rgba(0,0,0,.75) 35%); font-size: clamp(14px, 1.9vw, 19px); text-align: center; min-height: 22%; display: flex; align-items: flex-end; justify-content: center; text-shadow: 0 1px 2px #000; }
.subs.off { display: none; }
.controls { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #0b1422; color: #cfd8e3; flex-wrap: wrap; }
.controls button { background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.controls button:hover { background: rgba(255,255,255,.16); }
.controls select { width: auto; padding: 5px 8px; background: #16243a; color: #fff; border-color: #2a3b55; font-size: 14px; }
.dots { display: flex; gap: 5px; margin-left: auto; }
.dots i { width: 22px; height: 6px; border-radius: 3px; background: #2a3b55; display: block; cursor: pointer; }
.dots i.done { background: #4b8ef5; } .dots i.cur { background: #fff; }
.voice-note { font-size: 13px; color: var(--warn); background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; margin: 10px 0; }

.scene { width: 100%; max-width: 900px; animation: sceneIn .5s ease; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.rv.in { opacity: 1; transform: none; }
.sc-title { text-align: center; }
.sc-title .em { font-size: clamp(60px, 11vw, 120px); display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.sc-title h2 { font-size: clamp(24px, 4vw, 42px); margin: 10px 0 4px; }
.sc-title p { color: #b8c4d6; font-size: clamp(14px, 2vw, 20px); margin: 0; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.sc-stat { text-align: center; }
.sc-stat .v { font-size: clamp(56px, 10vw, 110px); font-weight: 800; color: #ffcf5c; line-height: 1; }
.sc-stat .l { font-size: clamp(16px, 2.4vw, 24px); max-width: 640px; margin: 14px auto 0; }
.sc-list h3, .sc-compare h3, .sc-browser h3 { font-size: clamp(18px, 2.8vw, 28px); margin: 0 0 14px; text-align: center; }
.sc-list ul { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; }
.sc-list li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 14px; margin: 8px 0; font-size: clamp(14px, 1.9vw, 19px); }
.sc-list li .i { font-size: 1.5em; }
.sc-compare .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sc-compare .col { border-radius: 12px; padding: 14px 16px; }
.sc-compare .bad { background: rgba(198,40,40,.25); border: 1px solid rgba(255,120,120,.4); }
.sc-compare .good { background: rgba(26,127,55,.28); border: 1px solid rgba(120,220,150,.4); }
.sc-compare h4 { margin: 0 0 8px; font-size: clamp(15px, 2vw, 20px); }
.sc-compare li { margin: 6px 0; font-size: clamp(13px, 1.7vw, 17px); }
.mail { background: #fff; color: var(--ink); border-radius: 10px; max-width: 680px; margin: 0 auto; overflow: visible; font-size: clamp(12px, 1.6vw, 15px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mail .hd { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7f9fc; border-radius: 10px 10px 0 0; }
.mail .hd div { margin: 2px 0; }
.mail .bd { padding: 12px 14px; }
.mail .bd p { margin: 6px 0; }
.mail .lnk { display: inline-block; background: #1f6feb; color: #fff; padding: 6px 14px; border-radius: 6px; margin-top: 4px; }
.mail .att { display: inline-block; background: #eef1f5; padding: 5px 10px; border-radius: 6px; margin-top: 6px; }
.flag { position: relative; border-radius: 4px; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .4s, background .4s; }
div.flag { display: block; }
.flag.hot { outline-color: #ff4d4d; background: rgba(255,77,77,.08); }
.flag > .fn { position: absolute; top: -10px; right: -12px; opacity: 0; transform: scale(.3); transition: all .35s cubic-bezier(.3,1.6,.5,1); }
.flag.hot > .fn { opacity: 1; transform: scale(1); }
.fn { display: inline-flex; width: 20px; height: 20px; border-radius: 99px; background: #ff4d4d; color: #fff; font-size: 12px; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.mail .url-hint { font-family: Consolas, monospace; color: #c62828; }
.flagnotes { max-width: 680px; margin: 12px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.flagnotes div { display: flex; gap: 8px; align-items: center; background: rgba(255,77,77,.18); border: 1px solid rgba(255,120,120,.4); border-radius: 8px; padding: 6px 10px; font-size: clamp(12px, 1.5vw, 14px); opacity: 0; transform: translateY(6px); transition: all .4s; }
.flagnotes div.hot { opacity: 1; transform: none; }
@media (max-width: 700px) { .flagnotes { grid-template-columns: 1fr; } }
.chat { max-width: 420px; margin: 0 auto; background: #111c2e; border-radius: 22px; border: 6px solid #2a3b55; padding: 12px; }
.chat .ct { text-align: center; font-size: 13px; color: #b8c4d6; padding-bottom: 8px; border-bottom: 1px solid #2a3b55; margin-bottom: 8px; }
.chat .m { max-width: 85%; padding: 8px 12px; border-radius: 14px; margin: 6px 0; font-size: clamp(13px, 1.6vw, 15px); }
.chat .m.them { background: #2a3b55; } .chat .m.me { background: #1f6feb; margin-left: auto; }
.call { max-width: 560px; margin: 0 auto; }
.call .who { text-align: center; margin-bottom: 10px; }
.call .who .ph { font-size: 48px; display: inline-block; animation: ring 1s ease-in-out infinite; }
.call .who b { display: block; font-size: 20px; } .call .who span { color: #b8c4d6; font-size: 13px; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } }
.call .ln { padding: 8px 12px; border-radius: 12px; margin: 6px 0; font-size: clamp(13px, 1.7vw, 16px); }
.call .ln.them { background: rgba(255,255,255,.1); } .call .ln.me { background: rgba(26,127,55,.45); text-align: right; }
.dialog { display: grid; grid-template-columns: 90px 1fr 90px; gap: 10px; align-items: start; max-width: 820px; margin: 0 auto; }
.dialog .ch { text-align: center; font-size: 13px; color: #b8c4d6; }
.dialog .ch .e { font-size: 54px; display: block; animation: bob 3s ease-in-out infinite; }
.dialog .ch.r .e { animation-delay: -1.5s; }
.dialog .lines .ln { padding: 9px 13px; border-radius: 14px; margin: 7px 0; max-width: 88%; font-size: clamp(13px, 1.7vw, 16px); }
.dialog .lines .ln.left { background: #2f5ea8; border-bottom-left-radius: 3px; }
.dialog .lines .ln.right { background: #6b3a8c; margin-left: auto; border-bottom-right-radius: 3px; }
@media (max-width: 600px) { .dialog { grid-template-columns: 54px 1fr 54px; } .dialog .ch .e { font-size: 34px; } }
.browser { background: #fff; color: var(--ink); border-radius: 10px; max-width: 700px; margin: 0 auto; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.browser .url { background: #eef1f5; padding: 8px 12px; font-family: Consolas, monospace; font-size: clamp(11px, 1.5vw, 14px); display: flex; gap: 8px; align-items: center; word-break: break-all; }
.browser .url.danger { background: #fdecec; color: var(--bad); }
.browser .content { padding: 16px; font-size: clamp(13px, 1.7vw, 16px); }
.browser .content h4 { margin: 0 0 8px; font-size: clamp(15px, 2.1vw, 20px); }
.browser .box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 10px; background: #f7f9fc; }
.browser .box .chk { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 6px; }
.browser .box .chk i { width: 22px; height: 22px; border: 2px solid #999; border-radius: 4px; display: inline-block; }
.browser .box ol { margin: 6px 0 0; padding-left: 4px; list-style: none; }
.browser .box li { font-family: Consolas, monospace; margin: 4px 0; }
.mfa { text-align: center; position: relative; min-height: 260px; }
.mfa .phone { display: inline-block; width: 220px; min-height: 260px; background: #111c2e; border: 6px solid #2a3b55; border-radius: 26px; padding: 14px 10px; position: relative; }
.mfa .pr { background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 6px 0; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.mfa .pr b { display: block; }
.mfa .pr .bt { display: flex; gap: 6px; margin-top: 5px; } .mfa .pr .bt span { flex: 1; text-align: center; font-size: 12px; padding: 3px; border-radius: 5px; background: #eef1f5; }
.mfa .pr .bt span.no { background: var(--bad); color: #fff; }
.mfa .cnt { position: absolute; top: -12px; right: -12px; background: var(--bad); border-radius: 99px; padding: 2px 9px; font-weight: 700; }
.pw .row { display: grid; grid-template-columns: 1fr 130px 32px; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 14px; margin: 8px auto; max-width: 640px; font-size: clamp(14px, 1.9vw, 18px); }
.pw .row code { font-family: Consolas, monospace; }
.pw .meter { height: 10px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.pw .meter span { display: block; height: 100%; width: 0; transition: width 1.2s ease; }
.pw .row.in .meter span { width: var(--w); }
.pw .t { font-size: 12px; color: #b8c4d6; text-align: right; grid-column: 2; margin-top: -6px; }
.qrsc { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.qrsc .sign { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px; text-align: center; width: 220px; position: relative; }
.qrsc .qr { width: 140px; height: 140px; margin: 8px auto; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0/20px 20px; border: 6px solid #fff; outline: 2px solid #000; }
.qrsc .sticker { position: absolute; left: 34px; top: 42px; width: 152px; height: 152px; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 5px 5px/14px 14px; border: 6px solid #fff; transform: rotate(-4deg) scale(0); transition: transform .6s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.qrsc .sticker.in { transform: rotate(-4deg) scale(1); }
.qrsc .urls div { font-family: Consolas, monospace; padding: 8px 12px; border-radius: 8px; margin: 8px 0; font-size: clamp(12px, 1.6vw, 15px); }
.qrsc .urls .ok { background: rgba(26,127,55,.35); } .qrsc .urls .bad { background: rgba(198,40,40,.4); }
.yt { margin-top: 18px; } .yt iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.takeaways li { margin: 6px 0; }

.profchecks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.profchecks label { display: flex; gap: 5px; align-items: center; margin: 0; font-size: 13px; color: var(--ink); white-space: nowrap; }
.profchecks input { width: auto; }
