:root {
    --ink: #e8e4df;
    --paper: #181614;
    --paper-soft: #221f1c;
    --muted: #9a9590;
    --border: #2e2a27;
    --dark: #121110;
    --dark-2: #1e1c1a;
    --dark-3: #282522;
    --dark-border: #342f2b;
    --dark-4: #3e3935;
    --dark-5: #6b6560;
    --dark-soft: #c8c3be;
    --dark-muted: #a39e99;
    --dark-faint: #7a7570;
    --accent: #14b8a6;
    --accent-2: #0d9488;
    --accent-soft: #2dd4bf;
    --accent-soft-2: #5eead4;
    --danger: #f87171;
    --danger-soft: #fca5a5;
    --success: #4ade80;
    --success-soft: #86efac;
    --success-soft-2: #bbf7d0;
    --warn: #facc15;
    --warn-soft: #fde68a;
    --orange: #fb923c;
    --red: #f87171;
    --red-2: #fca5a5;
    --dark-6: #1a1816;
    --accent-soft-3: #0d3d38;
    --accent-3: #2dd4bf;
    --border-soft: #2a2623;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--ink);
}

.container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 88px;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
    color: var(--ink);
}

h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

section[id] {
    scroll-margin-top: 88px;
}

.hl {
    background-image: linear-gradient(180deg, transparent 62%, rgba(20, 184, 166, 0.28) 62%);
    border-radius: 4px;
    padding-inline: 3px;
}

.dark .hl {
    background-image: linear-gradient(180deg, transparent 62%, rgba(20, 184, 166, 0.32) 62%);
}

.sec-head {
    max-width: 600px;
    margin-bottom: 48px;
}

.sec-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.6;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(24, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.03em;
    margin-right: auto;
    color: var(--ink);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--ink);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.25s;
}

.menu-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
    opacity: 0;
}

.menu-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-nav-login:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(20, 184, 166, 0.06);
}

.btn-premium,
.btn-premium-white {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 0;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-premium {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.32);
}

.btn-premium:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

.btn-premium-white {
    color: var(--ink);
    background: var(--paper-soft);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-premium-white:hover {
    background: var(--dark-3);
    border-color: var(--dark-4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-premium svg,
.btn-premium-white svg {
    transition: transform 0.2s;
}

.btn-premium:hover svg,
.btn-premium-white:hover svg {
    transform: translateX(2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    padding: 10px 4px;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.btn-premium:disabled,
.btn-premium-white:disabled,
.btn-premium:disabled:hover,
.btn-premium-white:disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Blokace nácviku při vyčerpaných trénincích (šedé + popup) */
.btn-premium.locked,
.btn-premium-white.locked,
.btn-ghost.locked,
a.locked {
    opacity: 0.55;
    filter: grayscale(1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Popup "Nemáš dostatek tréninků" ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(4px);
}

.modal-box {
    width: 100%;
    max-width: 400px;
    padding: 26px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.modal-box h3 {
    margin: 0 0 8px;
}

.modal-box p {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.55;
}

.modal-box p a {
    color: var(--accent);
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Popup s mikrofonem před nahráváním ===== */
.mic-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(6px);
}

.mic-modal[hidden] {
    display: none;
}

.mic-modal-box {
    width: 100%;
    max-width: 400px;
    padding: 36px 28px 28px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.mic-modal-box h3 {
    margin: 6px 0 10px;
    font-size: 22px;
}

.mic-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--accent);
    background: linear-gradient(140deg, rgba(20, 184, 166, 0.2), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.08), 0 0 40px rgba(20, 184, 166, 0.25);
    animation: mic-pulse 2.4s ease-in-out infinite;
}

@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.07), 0 0 32px rgba(20, 184, 166, 0.2); }
    50% { box-shadow: 0 0 0 16px rgba(20, 184, 166, 0.12), 0 0 48px rgba(20, 184, 166, 0.32); }
}

.mic-modal-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 6px;
}

.mic-modal-note {
    color: var(--dark-faint);
    font-size: 12.5px;
    margin: 0 0 22px;
}

.mic-modal-box .modal-actions {
    margin-top: 4px;
}

.mic-modal-box .modal-actions .btn-premium-white,
.mic-modal-box .modal-actions .btn-ghost {
    min-width: 150px;
}

.mic-modal-box .btn-premium-white:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ===== Eyebrow / kicker ===== */
.kicker {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20, 184, 166, 0.35);
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== Onboarding po registraci (3 kroky) ===== */
.onb-modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, 0.78);
    backdrop-filter: blur(6px);
}

.onb-modal[hidden] {
    display: none;
}

.onb-modal-box {
    width: 100%;
    max-width: 440px;
    padding: 32px 30px 26px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.onb-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.onb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s ease;
}

.onb-dot.active {
    background: var(--accent);
    width: 22px;
    border-radius: 8px;
}

.onb-step {
    display: none;
}

.onb-step.active {
    display: block;
}

.onb-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--accent);
    background: linear-gradient(140deg, rgba(20, 184, 166, 0.2), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.08);
}

.onb-modal-box h3 {
    margin: 4px 0 10px;
    font-size: 21px;
}

.onb-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.onb-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 12px;
}

.onb-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.onb-list p {
    margin: 3px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
}

.onb-list .rec-idx {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    padding: 0;
    border-radius: 50%;
    color: #061318;
    background: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.onb-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.onb-actions .btn-premium-white,
.onb-actions .btn-ghost {
    min-width: 150px;
}

/* ===== Taby hodnocení (Prezentace / Projev / Dohromady) ===== */
.eval-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    width: 100%;
}

.eval-tab {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.eval-tab:hover {
    color: var(--ink);
}

.eval-tab.active {
    color: #061318;
    background: var(--accent);
}

.eval-panel {
    display: none;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.eval-panel.active {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 96px;
    background: var(--paper);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(20, 184, 166, 0.1), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 780px;
    margin-inline: auto;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.05;
    color: var(--ink);
}

.rotator {
    display: inline-block;
    height: 1.15em;
    overflow: hidden;
    vertical-align: text-bottom;
}

.rotator-list {
    display: block;
    animation: rotate-words 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rotator-list span {
    display: block;
    height: 1.15em;
    font-weight: 700;
    color: var(--accent);
}

@keyframes rotate-words {
    0%, 12.5% {
        transform: translateY(0);
    }
    20%, 33.3% {
        transform: translateY(-1.15em);
    }
    40.8%, 54.2% {
        transform: translateY(-2.3em);
    }
    60.8%, 100% {
        transform: translateY(-3.45em);
    }
}

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 32px;
    margin-inline: auto;
    text-wrap: balance;
}

.hero-sub strong {
    font-weight: 600;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.deck-window {
    position: relative;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: rotateY(-3deg) rotateX(1deg);
    transform-origin: center;
    min-width: 0;
    will-change: transform;
}

.deck-window::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 20%;
    right: 20%;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.22), transparent 70%);
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
}

.deck-wrap {
    will-change: transform;
    animation: deck-float 5.5s ease-in-out infinite alternate;
}

@keyframes deck-float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-12px);
    }
}

.hero-visual {
    min-width: 0;
    perspective: 1600px;
    position: relative;
    z-index: 0;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 8% 4% -12% 4%;
    background: radial-gradient(ellipse at 50% 38%, rgba(20, 184, 166, 0.14), rgba(0, 0, 0, 0.35) 72%);
    filter: blur(26px);
    z-index: -1;
    pointer-events: none;
}

.win-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--paper-soft);
    border-bottom: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
}

.win-dots {
    display: flex;
    gap: 7px;
}

.win-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.win-dots span:nth-child(1) {
    background: #ff5f56;
}

.win-dots span:nth-child(2) {
    background: #ffbd2e;
}

.win-dots span:nth-child(3) {
    background: #27c93f;
}

.win-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.win-file svg {
    color: var(--accent);
}

.win-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.4;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-body {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--paper-soft);
}

.live-transcript {
    position: relative;
    flex: 1;
    min-height: 240px;
    padding: 18px 18px 18px 46px;
    background:
        linear-gradient(90deg, transparent 40px, rgba(20, 184, 166, 0.14) 40px, rgba(20, 184, 166, 0.14) 41px, transparent 41px),
        repeating-linear-gradient(180deg, transparent 0px, transparent 27px, rgba(232, 228, 223, 0.06) 27px, rgba(232, 228, 223, 0.06) 28px),
        var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.t-line {
    margin: 0;
    line-height: 28px;
    min-height: 28px;
}

#t-line .t-line + .t-line {
    margin-top: 0;
}

.t-w {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.t-w.in {
    opacity: 1;
}

.t-w.f {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-radius: 4px;
    padding: 1px 4px;
    animation: fill-flash 0.5s ease;
}

@keyframes fill-flash {
    0% {
        background: rgba(220, 38, 38, 0.25);
    }
    100% {
        background: rgba(220, 38, 38, 0.1);
    }
}

.t-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.t-done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--success);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s, transform 0.4s;
}

.t-done svg {
    color: var(--success);
    flex-shrink: 0;
}

.t-done.show {
    opacity: 1;
    transform: none;
}

.live-side {
    width: 170px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.live-ring svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 4;
}

.ring-fg {
    fill: none;
    stroke: url(#live-ring-grad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 119.38;
    stroke-dashoffset: 119.38;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.live-metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lm {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 8px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.lm span {
    white-space: nowrap;
}

.lm b {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    margin-left: auto;
}

.lm em {
    font-style: normal;
    font-size: 10px;
    color: var(--dark-5);
}

.lm-warn b {
    color: var(--danger);
}

/* zvukový vizualizér (hero — fáze nahrávání) */
.live-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 52px;
    padding: 0 10px;
}

.live-eq.hide {
    display: none;
}

.live-eq span {
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    animation: eq-bounce 0.9s ease-in-out infinite alternate;
}

.live-eq span:nth-child(1) {
    height: 40%;
    animation-delay: -0.5s;
}

.live-eq span:nth-child(2) {
    height: 75%;
    animation-delay: -0.2s;
}

.live-eq span:nth-child(3) {
    height: 55%;
    animation-delay: -0.7s;
}

.live-eq span:nth-child(4) {
    height: 85%;
    animation-delay: -0.35s;
}

.live-eq span:nth-child(5) {
    height: 45%;
    animation-delay: -0.6s;
}

@keyframes eq-bounce {
    from {
        transform: scaleY(0.55);
        opacity: 0.7;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.live-metrics.hide {
    display: none;
}

/* ============================================================
   Launch Countdown & Gate (jen login)
   ============================================================ */

.launch-inner {
    max-width: 580px;
    margin: 0 auto;
}

.launch-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: var(--accent);
    margin-bottom: 16px;
}

.launch-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.launch-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 28px;
}

.launch-sub strong {
    color: var(--ink);
}

.countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 14px 10px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cd-val {
    display: inline-block;
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.cd-label {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark-5);
}

.cd-sep {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-5);
    line-height: 1;
    padding-bottom: 0;
}

.launch-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 12px;
}

.launch-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    font-size: 13px;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s;
}

.launch-form input:focus {
    border-color: var(--accent);
}

.launch-form input::placeholder {
    color: var(--dark-5);
}

.launch-note {
    font-size: 11px;
    color: var(--dark-5);
}

/* Gate screen na login.html */
.launch-gate-screen {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.launch-gate-screen .btn-ghost {
    color: var(--dark-muted);
    border-bottom-color: transparent;
}

.launch-gate-screen .btn-ghost:hover {
    color: #fff;
    border-bottom-color: var(--border-soft);
}

.launch-gate-screen .launch-title {
    font-size: 2.2rem;
}

@media (max-width: 600px) {
    .cd-block {
        min-width: 56px;
        padding: 12px 8px;
    }

    .cd-val {
        font-size: 26px;
    }

    .cd-sep {
        font-size: 22px;
    }

    .launch-form {
        flex-direction: column;
    }
}

.features {
    background: var(--paper);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.18);
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips li {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper);
    letter-spacing: 0.02em;
}

.card:hover .card-icon {
    background: rgba(20, 184, 166, 0.16);
}

.process {
    background: var(--paper-soft);
    color: var(--ink);
}

.process .sec-sub {
    color: var(--muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    border: 1px solid var(--border);
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 26px 24px 24px;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.step::after {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    top: -18px;
    right: -14px;
    font-family: var(--mono);
    font-size: 92px;
    font-weight: 700;
    line-height: 1;
    color: var(--paper);
    -webkit-text-stroke: 1px var(--border);
    pointer-events: none;
    user-select: none;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 18px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.step h3 {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.step p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.preview {
    background: var(--paper);
    color: var(--ink);
    padding-top: 0;
}

.preview .sec-sub {
    color: var(--muted);
}

.panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--paper-soft);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 56px;
}

.panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 0 18px;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.panel-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--success);
}

.panel-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.panel-body {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 36px;
    padding: 32px;
}

.score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

@property --p {
    syntax: "<number>";
    initial-value: 0;
    inherits: false;
}

.ring {
    --p: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2) calc(var(--p) * 1%), var(--border) 0);
    transition: --p 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring.in {
    --p: var(--target);
}

.ring-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--paper-soft);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding-top: 30px;
}

.ring-inner strong {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.ring-inner span {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}

.score-note {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.metrics-col {
    display: grid;
    align-content: center;
    gap: 18px;
}

.metric-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.metric-head b {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
}

.bar {
    height: 6px;
    border-radius: 999px;
    background: var(--paper-soft);
    overflow: hidden;
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar.in i {
    width: var(--val);
}

.bar-warn i {
    background: linear-gradient(90deg, var(--orange), #ea580c);
}

/* ---------- Widget limitů (dashboard, nastavení) ---------- */

.limits-card {
    display: grid;
    gap: 16px;
}

.limits-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(13, 148, 136, 0.04);
}

.limits-hero-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-5);
}

.limits-hero-num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.limits-hero-num small {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.limits-hero-note {
    font-size: 12px;
    color: var(--dark-5);
    line-height: 1.5;
}

.limits-hero--pro {
    background: rgba(13, 148, 136, 0.06);
    border-color: rgba(13, 148, 136, 0.25);
}

.limits-hero--pro .limits-hero-num {
    color: var(--accent);
}

.limits-hero--empty .limits-hero-num {
    color: var(--danger);
}

.limits-sub {
    display: grid;
    gap: 14px;
    margin-top: 2px;
}

.limit-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.limit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.limit-head span {
    font-size: 13px;
    color: var(--muted);
}

.limit-head b {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    white-space: nowrap;
}

.limit-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--paper-soft);
    overflow: hidden;
}

.limit-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.limit-fill.in {
    width: var(--w);
}

.limit-fill.warn {
    background: linear-gradient(90deg, var(--orange), #ea580c);
}

.limit-fill.over {
    background: linear-gradient(90deg, var(--red), #dc2626);
}

.metric-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.rec-col {
    border-left: 1px solid var(--border);
    padding-left: 36px;
}

.rec-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-family: var(--mono);
    margin-bottom: 16px;
}

.rec-list {
    display: grid;
    gap: 18px;
}

.rec-list li {
    display: flex;
    gap: 12px;
}

.rec-idx {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    padding-top: 2px;
    flex-shrink: 0;
}

.rec-list p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.rec-list strong {
    color: var(--ink);
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--paper-soft);
    transition: border-color 0.25s, transform 0.25s;
}

.stat:hover {
    border-color: var(--accent-soft-3);
    transform: translateY(-2px);
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}















































.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}









.dark {
    background: var(--paper-soft);
    color: var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.contact .sec-sub {
    color: var(--muted);
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.contact-mail {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}

.contact-mail:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--paper-soft);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--ink);
}

.contact-form .contact-optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-5);
}

.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--dark-5);
}

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input::placeholder {
    color: var(--dark-5);
}

.form-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-note {
    font-size: 12px;
    color: var(--dark-5);
    margin-top: 12px;
}

.footer {
    background: var(--paper);
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 44px 0 36px;
}

.logo--footer {
    margin: 0;
    color: var(--ink);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a {
    color: var(--muted);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Legal stránky: karty se odhalují přes animations.js (jako .reveal) */
@media (prefers-reduced-motion: no-preference) {
    .legal-page .legal-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .legal-page .legal-card.in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Výsledky ─────────────────────────────────────────────── */

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chips button {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-chips button.active {
    color: var(--accent);
    border-color: rgba(13, 148, 136, 0.3);
    background: rgba(13, 148, 136, 0.06);
}

.res-grid {
    display: grid;
}

.res-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 13px 6px;
    border-top: 1px solid var(--border);
}

.res-row:first-child {
    border-top: 0;
}

.res-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dark-5);
    white-space: nowrap;
}

.res-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.res-name {
    font-size: 15px;
    font-weight: 500;
}

.res-dur {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dark-5);
}

.res-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.res-score {
    font-family: var(--mono);
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}

.res-delta {
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

.res-delta.up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.res-delta.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.res-delta.first {
    color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
}

.mini-chart .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.mini-chart .bar2 {
    width: 100%;
    max-width: 42px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--accent-3), var(--accent-2));
    min-height: 6px;
    transition: background 0.2s;
}

.mini-chart .col:hover .bar2 {
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

.mini-chart .col.high .bar2 {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.mini-chart span {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dark-5);
    white-space: nowrap;
}

.mini-chart .col span:last-child {
    color: var(--ink);
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-legend {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
}

.chart-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 0;
}

/* ── Prezentace ───────────────────────────────────────────── */

.prez-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.prez-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, transform 0.25s;
}

.prez-card:hover {
    border-color: var(--dark-4);
    transform: translateY(-2px);
}

.prez-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.prez-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.prez-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.prez-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.prez-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prez-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 9999px;
}

.prez-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    flex-wrap: wrap;
}

.prez-score {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
}

.prez-score small {
    color: var(--dark-5);
}

.prez-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 1.5px dashed var(--dark-4);
    border-radius: 16px;
    min-height: 180px;
    color: var(--dark-5);
    text-align: center;
    padding: 20px;
    font: inherit;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.prez-add:hover {
    border-color: var(--accent);
    color: var(--ink);
    background: rgba(13, 148, 136, 0.03);
}

.prez-plus {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--dark-4);
}

.prez-add span {
    font-size: 12px;
    max-width: 180px;
    line-height: 1.5;
}

.prez-add.busy {
    opacity: 0.6;
    pointer-events: none;
}

.prez-grid.drag {
    outline: 2px dashed var(--accent);
    outline-offset: 6px;
    border-radius: 16px;
}

/* Skrytý kontejner pro parsování PPTX (pptx2html potřebuje živý DOM). */
#pptx-host {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 960px;
    height: 540px;
    visibility: hidden;
    pointer-events: none;
}

/* ── Nastavení ────────────────────────────────────────────── */

.set-grid {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.set-row {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.set-row label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.set-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.set-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.set-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.set-hint {
    font-size: 11px;
    color: var(--dark-5);
    margin-top: 4px;
}

.set-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

















.user-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.avatar--lg {
    width: 50px;
    height: 50px;
    font-size: 18px;
    flex-shrink: 0;
}

.user-line strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
}

.user-line span {
    font-size: 12px;
    color: var(--muted);
}

.saved-note {
    display: none;
    font-size: 12px;
    color: var(--success);
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
}

.saved-note.show {
    display: block;
}





@media (max-width: 960px) {
    .prez-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .prez-grid {
        grid-template-columns: 1fr;
    }

    .res-row {
        grid-template-columns: 72px 1fr auto;
        gap: 10px;
    }

    .res-delta {
        display: none;
    }

    .mini-chart {
        height: 120px;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .badge {
        margin-bottom: 24px;
    }

    .hero-sub {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .deck-window {
        max-width: 640px;
        margin-inline: auto;
        transform: none;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .panel-body {
        grid-template-columns: 1fr 1fr;
    }

    .score-col {
        grid-column: 1 / -1;
        padding-bottom: 8px;
    }

    .rec-col {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--dark-border);
        padding-left: 0;
        padding-top: 34px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 960px) {
    .site-nav .nav-links,
    .site-nav .nav-cta {
        display: none;
    }

    .site-nav .burger {
        display: flex;
    }

    .menu-open .site-nav .nav-links,
    .menu-open .site-nav .nav-cta {
        display: flex;
    }

    .menu-open .site-nav .nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding-block: 10px 16px;
    }

    .menu-open .site-nav .nav-links {
        order: 3;
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--border);
        margin-top: 10px;
        padding-top: 4px;
    }

    .menu-open .site-nav .nav-links a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .menu-open .site-nav .nav-cta {
        order: 4;
        display: flex;
        gap: 12px;
        width: 100%;
        padding-top: 14px;
    }

    .menu-open .site-nav .nav-cta a {
        flex: 1;
    }
}

@media (max-width: 1080px) and (min-width: 961px) {
    .site-nav .nav-inner {
        gap: 16px;
    }

    .site-nav .nav-links {
        gap: 20px;
    }

    .site-nav .btn-nav-login {
        padding: 8px 16px;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 84px 0 64px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 8.5vw, 2.9rem);
        margin-bottom: 16px;
    }

    .hero-sub {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-premium,
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .sec-head h2 {
        font-size: clamp(1.7rem, 6.5vw, 2.2rem);
    }

    .card {
        padding: 24px 22px;
    }

    .card h3 {
        font-size: 17.5px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat {
        padding: 22px;
    }

    .panel-body {
        padding: 22px;
        gap: 26px;
    }

    .rec-list li {
        gap: 14px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 24px;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .menu-open .nav-links,
    .menu-open .nav-cta {
        display: flex;
    }

    .menu-open .nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding-block: 10px 16px;
    }

    .menu-open .nav-links {
        order: 3;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--border);
        margin-top: 10px;
        padding-top: 4px;
    }

    .menu-open .nav-links a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .menu-open .nav-cta {
        order: 4;
        display: flex;
        gap: 12px;
        width: 100%;
        padding-top: 14px;
    }

    .menu-open .nav-cta a {
        flex: 1;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    

    

    

    

    

    

    .stats {
        grid-template-columns: 1fr;
    }

    .panel-body {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 32px;
    }

    .score-col {
        grid-column: 1;
    }

    .live-body {
        flex-direction: column;
    }

    .live-transcript {
        min-height: 190px;
    }

    .live-side {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .live-metrics {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lm {
        flex: 1 1 45%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .btn-premium-white {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rotator-list,
    .deck-wrap {
        animation: none;
    }

    .ring,
    .bar i,
    .limit-fill {
        transition: none;
    }

    .rotator-list span {
        display: inline;
    }

    .rotator-list span:last-child {
        display: none;
    }

    .t-w {
        opacity: 1;
        animation: none;
    }

    .t-caret {
        animation: none;
        visibility: hidden;
    }

    .ring-fg {
        transition: none;
        stroke-dashoffset: 0;
    }

    .t-done {
        opacity: 1;
        transform: none;
    }

    

    .ring {
        --p: var(--target);
        transition: none;
    }

    .bar i {
        width: var(--val);
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.app-page {
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

.app-page .logo {
    color: var(--ink);
}

.logo--app {
    margin: 0;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: var(--paper-soft);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 18px 12px 12px;
    z-index: 40;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.side-nav-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-5);
    margin: 22px 12px 6px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}

.side-nav a svg {
    flex-shrink: 0;
    color: var(--dark-5);
    transition: color 0.2s;
}

.side-nav a:hover {
    background: var(--paper-soft);
    color: var(--ink);
}

.side-nav a:hover svg {
    color: var(--muted);
}

.side-nav a.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.side-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
}

.side-nav a.active svg {
    color: var(--accent);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper);
    transition: border-color 0.2s;
}

.sidebar-user:hover {
    border-color: var(--dark-4);
}

.sidebar-user .avatar {
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.side-user-meta {
    min-width: 0;
    flex: 1;
}

.sidebar-user strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}

.sidebar-user div span {
    font-size: 11px;
    color: var(--dark-5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.avatar--sm {
    width: 38px;
    height: 38px;
    font-size: 15px;
    flex-shrink: 0;
}

.side-user-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.side-icon-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--dark-5);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.side-icon-btn:hover {
    color: var(--ink);
    background: var(--paper-soft);
}

.side-icon-btn.logout:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.06);
}

.app-main {
    margin-left: 264px;
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: rgba(24, 22, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.app-topbar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.topbar-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trainings-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    white-space: nowrap;
}

.trainings-left::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.trainings-left.over {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.25);
}

.trainings-left.over::before {
    background: var(--danger);
}

.trainings-left.pro {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.trainings-left.pro::before {
    content: "✦";
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    font-size: 10px;
}

.burger--dark span {
    background: var(--ink);
}

.app-content {
    padding: 28px 32px 48px;
    display: grid;
    gap: 20px;
}

.app-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.app-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
}

.app-card h3 span {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-5);
    margin-left: 6px;
}

/* ---------- Karta tarifu a limitů ---------- */

.limits-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.limits-card-head h3 {
    margin-bottom: 0;
}

.limit-plan {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.limits-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    padding: 5px 10px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s;
}

.buy-link:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.4);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.25s, transform 0.25s;
}

.stat-card:hover {
    border-color: var(--accent-soft-3);
    transform: translateY(-2px);
}

.stat-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-head .card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0;
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent);
}

.stat-card strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
}

.stat-card-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 10px;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.ring--sm {
    width: 104px;
    height: 104px;
}

.ring--sm .ring-inner {
    width: 80px;
    height: 80px;
    padding-top: 22px;
}

.ring--sm .ring-inner strong {
    font-size: 28px;
}

.ring--sm .ring-inner span {
    font-size: 12px;
}

.dash-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.hist-grid {
    display: grid;
}

.hist-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    border-top: 1px solid var(--border);
    transition: background 0.2s;
}

.hist-row:first-child {
    border-top: 0;
}

.hist-row:hover {
    background: var(--paper-soft);
    border-radius: 10px;
}

.hist-row--link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hist-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dark-5);
    white-space: nowrap;
}

.hist-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ink);
}

.hist-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--paper-soft);
    overflow: hidden;
    max-width: 200px;
}

.hist-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hist-score {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.hist-score small {
    color: var(--muted);
}













.train-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.stage {
    text-align: center;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 520px;
}









.duration-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.duration-chips button {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.duration-chips button.selected {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.06);
}

.duration-chips button.locked {
    color: var(--dark-5);
    border-color: var(--border);
    background: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}

.duration-range.locked input[type="range"] {
    background: var(--border);
    cursor: not-allowed;
}

.duration-range.locked input[type="range"]::-webkit-slider-thumb {
    background: var(--dark-5);
    box-shadow: none;
}

.duration-range.locked input[type="range"]::-moz-range-thumb {
    background: var(--dark-5);
    box-shadow: none;
}

.duration-range.locked b {
    color: var(--muted);
}

.duration-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.duration-range input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.duration-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    cursor: pointer;
}

.duration-range input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    cursor: pointer;
}

.duration-range b {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    min-width: 48px;
    text-align: right;
}













.stage-hint {
    font-size: 14px;
    color: var(--muted);
}

.stage-hint strong {
    color: var(--ink);
    font-weight: 600;
}



.stage.setup .stage-setup {
    display: block;
}

.stage.deck .stage-deck {
    display: flex;
}



.stage.done .stage-done {
    display: flex;
}

.stage.proc .stage-proc {
    display: flex;
}

.stage.err .stage-error {
    display: flex;
}

.stage.review .stage-review {
    display: flex;
}

.stage-setup,
.stage-deck,
.stage-proc,
.stage-review,
.stage-error,
.stage-done {
    display: none;
}

.stage-done {
    flex-direction: column;
    text-align: left;
    width: 100%;
    gap: 22px;
}

.stage-review {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.review-head {
    text-align: center;
}

.review-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.review-meta {
    color: var(--dark-5);
    font-size: 13px;
    text-align: center;
}

.review-textarea {
    width: 100%;
    resize: vertical;
    min-height: 160px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.review-status {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.review-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.stage-deck {
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ===== Onboarding ===== */

.stage-setup {
    width: 100%;
}

.setup-head {
    text-align: center;
    margin-bottom: 22px;
}

.setup-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--ink);
}

.setup-sub {
    font-size: 13px;
    color: var(--muted);
    max-width: 400px;
    margin-inline: auto;
}

.setup-block {
    margin-bottom: 16px;
}

.setup-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.setup-label span {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--dark-5);
}

.setup-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.setup-row .setup-block {
    margin-bottom: 0;
}

.stage-setup input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stage-setup input[type="text"]::placeholder {
    color: var(--dark-5);
}

.stage-setup input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.deck-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.deck-empty-note {
    grid-column: 1 / -1;
}

.deck-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: inherit;
    font-family: var(--sans);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.deck-tile:hover {
    border-color: var(--dark-4);
    transform: translateY(-1px);
}

.deck-tile.selected {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.04);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.deck-tile-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.08));
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    padding-inline: 6px;
    text-overflow: ellipsis;
}

.deck-tile-thumb--plus {
    background: transparent;
    border: 1.5px dashed var(--dark-4);
    color: var(--dark-5);
}

.deck-tile-thumb--plus span {
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.deck-tile.selected .deck-tile-thumb--plus {
    border-color: var(--accent);
    color: var(--accent);
}

.deck-tile-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.deck-tile-meta {
    font-size: 11px;
    color: var(--dark-5);
}

.setup-error {
    margin-top: 10px;
    font-size: 12px;
    color: var(--danger);
    line-height: 1.5;
}

.setup-start {
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
}

.setup-note {
    text-align: center;
    font-size: 11px;
    color: var(--dark-5);
    margin-top: 10px;
    line-height: 1.6;
}

/* ===== Deck (prezentace při nácviku) ===== */

.deck-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    padding: 16px;
}

.deck-slide {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.deck-empty {
    color: var(--dark-5);
    font-size: 13px;
    text-align: center;
    max-width: 320px;
    line-height: 1.6;
}



















.slide-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}



.pptx-host {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: relative;
}

.pptx-host > * {
    max-width: 100%;
    max-height: 100%;
}

.deck-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(24, 22, 20, 0.92);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.deck-arrow:hover:not(:disabled) {
    background: var(--paper-soft);
    border-color: var(--dark-4);
}

.deck-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.deck-arrow--prev {
    left: 12px;
}

.deck-arrow--next {
    right: 12px;
}

.deck-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    background: rgba(24, 22, 20, 0.92);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ===== Dock ===== */

.dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dock-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dock .timer {
    font-size: 24px;
    color: var(--ink);
    font-weight: 600;
}

.dock-rec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
}

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

@keyframes rec-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0);
    }
}

.dock-actions {
    display: flex;
    gap: 10px;
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--muted);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dock-btn--pause:hover {
    border-color: var(--dark-4);
    background: var(--paper-soft);
}

.dock-btn--pause.active {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.dock-btn--stop {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

.dock-btn--stop:hover {
    background: rgba(220, 38, 38, 0.1);
}

.dock-btn--caps.active,
.dock-btn--fs.active {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.dock-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ===== Živý přepis (caption bar nad dockem) ===== */

.live-captions {
    position: absolute;
    left: 12px;
    right: 80px;
    bottom: 10px;
    z-index: 5;
    max-height: 40%;
    overflow-y: auto;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(24, 22, 20, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
}

.live-captions-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    white-space: pre-wrap;
}

.live-captions-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    font-style: italic;
}

/* ===== Prezentace na celou obrazovku ===== */

body.present-mode {
    overflow: hidden;
}

.stage-deck.present {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #000;
}

.stage-deck.present .deck-viewport {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
}

.stage-deck.present .live-captions {
    right: 14px;
    bottom: 12px;
    max-height: 26%;
}

.stage-deck:fullscreen {
    width: 100vw;
    height: 100vh;
}

/* ===== Animace náhledů ===== */

.stage-error {
    gap: 14px;
}

.stage-error p {
    color: var(--danger-soft);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 440px;
}

.proc-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(20, 184, 166, 0.15);
    border-top-color: var(--accent-soft);
    animation: spin 0.9s linear infinite;
}

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

.metrics-list {
    display: grid;
    gap: 10px;
}

.rec-player {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper-soft);
}

.waveform {
    width: 100%;
    border-radius: 10px;
    background: var(--paper-soft);
    padding: 6px;
}

.rec-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.player-time {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dark-5);
}

.rec-summary p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.rec-transcript {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper-soft);
}

.transcript-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--dark-5);
    margin-bottom: 10px;
}

.filler-pill {
    width: 11px;
    height: 11px;
    border-radius: 4px;
    background: rgba(250, 204, 21, 0.35);
    border: 1px solid rgba(250, 204, 21, 0.5);
}

.transcript-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--dark-soft);
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
    white-space: pre-wrap;
}

.transcript-text mark.filler {
    background: rgba(250, 204, 21, 0.3);
    color: var(--warn-soft);
    border-radius: 4px;
    padding: 0 3px;
}

.done-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
}





.timer {
    font-family: var(--mono);
    font-size: 46px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
}









.rec-results {
    text-align: left;
}

.rec-results h3 {
    margin-bottom: 16px;
}

.rec-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.side-col {
    display: grid;
    gap: 16px;
}

.tip-card {
    border-left: 3px solid var(--accent);
}

.tip-card h3 {
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.tip-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dark-5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(20, 184, 166, 0.1), transparent);
    pointer-events: none;
}

.auth-base {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 18px;
}

.auth-back {
    font-size: 13px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.auth-back:hover {
    color: var(--ink);
}

.auth-main {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
    padding: 40px 24px 80px;
}

.auth-copy {
    max-width: 440px;
    justify-self: end;
}

.auth-copy h2 {
    margin-bottom: 14px;
}

.auth-copy .sec-sub {
    margin-bottom: 28px;
    max-width: 400px;
}

.auth-checks {
    display: grid;
    gap: 12px;
}

.auth-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.auth-checks svg {
    color: var(--success);
    flex-shrink: 0;
}

.auth-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-btn:hover {
    border-color: var(--dark-4);
    background: var(--paper-soft);
    transform: translateY(-1px);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.social-btn.busy span::after {
    content: "…";
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--dark-5);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.auth-msg {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 16px;
    color: var(--success);
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.auth-msg--error {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tabs button {
    padding: 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auth-tabs button.active {
    background: var(--paper-soft);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
}

#auth-form {
    min-height: 360px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.field label a {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
}

.field label a:hover {
    color: var(--accent-2);
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
    color: var(--dark-5);
}

.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.field.has-error input {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field.has-error input:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-msg {
    margin: 6px 2px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--danger);
}

.input-wrap input[type="password"] {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--dark-5);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.eye-btn:hover {
    color: var(--ink);
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-note {
    text-align: center;
    font-size: 12px;
    color: var(--dark-5);
    margin-top: 14px;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .auth-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .auth-copy {
        max-width: 560px;
        justify-self: start;
    }

    .auth-card {
        max-width: 480px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: none;
        z-index: 70;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    }

    .app-topbar {
        z-index: 60;
    }

    .app-topbar .burger {
        display: flex;
    }

    .app-main {
        margin-left: 0;
    }

    .app-topbar {
        padding: 16px 20px;
    }

    .app-content {
        padding: 24px 20px 48px;
    }

    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-cols {
        grid-template-columns: 1fr;
    }

    .train-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .done-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stage {
        padding: 32px 20px;
        min-height: 480px;
    }

    .app-card {
        padding: 22px;
    }

    .auth-card {
        padding: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 20px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 56px 0 52px;
    }

    .hero-inner {
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11vw, 2.65rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-actions .btn-premium,
    .hero-actions .btn-ghost {
        width: 100%;
    }

    .win-file {
        display: none;
    }

    .win-tools {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .live-transcript {
        min-height: 150px;
        font-size: 14px;
    }

    .live-side {
        gap: 10px;
    }

    

    .contact-form {
        padding: 24px 20px;
    }

    .contact-links {
        gap: 14px;
    }

    .auth-main {
        padding: 20px 20px 56px;
        gap: 40px;
    }

    .auth-card {
        padding: 24px 20px;
    }

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

    .app-topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .app-topbar h1 {
        font-size: 19px;
    }

    .topbar-sub {
        display: none;
    }

    .topbar-actions .btn-premium,
    .topbar-actions .btn-premium-white {
        padding: 9px 16px;
        font-size: 13.5px;
    }

    .trainings-left {
        padding: 7px 11px;
        font-size: 12.5px;
    }

    .app-content {
        padding: 20px 16px 44px;
        gap: 18px;
    }

    .stat-card {
        padding: 20px;
    }

    .app-card {
        padding: 22px 18px;
    }

    .hist-row {
        gap: 12px;
    }

    .stage {
        padding: 28px 16px;
        min-height: 440px;
    }

    .stage-done {
        gap: 22px;
    }

    .done-grid {
        justify-items: center;
    }

    .timer {
        font-size: 40px;
    }

    .rec-actions {
        flex-direction: column;
    }

    .rec-actions .btn-premium-white,
    .rec-actions .btn-ghost {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot::after {
        animation: none;
    }
}



.setup-block--picker {
    position: relative;
}

.setup-hint {
    font-size: 12.5px;
    color: var(--dark-5);
    margin-top: 10px;
    line-height: 1.65;
}

.deck-picker-label {
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-faint);
    margin: 10px 2px 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deck-picker-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.deck-tile.busy {
    opacity: 0.5;
    pointer-events: none;
}

.deck-tile--uploaded {
    cursor: pointer;
}

.deck-tile-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.deck-tile:hover .deck-tile-remove,
.deck-tile-remove:focus-visible {
    opacity: 1;
}

.deck-tile-remove:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.08);
}

.deck-tile-thumb--file {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(13, 148, 136, 0.3));
    color: var(--accent-soft-3);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.deck-tile-thumb--img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.86);
    border: 2px dashed var(--accent-soft);
    color: #dbeafe;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.drop-overlay[hidden] {
    display: none;
}

.drop-overlay p {
    font-size: 14px;
    line-height: 1.6;
}

.drop-overlay strong {
    font-weight: 600;
}

.setup-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.setup-preview-view {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    background: radial-gradient(ellipse at 50% 0%, #1a1d27, #0b0d12 75%);
    display: grid;
    place-items: center;
}

















.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent-soft-2);
}

.preview-file span {
    font-size: 12px;
    color: var(--dark-faint);
}

.setup-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 36px;
}

.setup-preview-meta strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setup-preview-meta span {
    font-size: 12.5px;
    color: var(--dark-faint);
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}

@media (max-width: 900px) {
    

    .setup-preview {
        order: -1;
    }
}

/* ── Prezentace: sekce nahraných souborů ── */

.prez-sec-label {
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-faint);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.prez-sec-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.prez-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prez-del {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--dark-5);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.prez-del:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

.save-status {
    font-size: 12.5px;
    color: var(--success-soft);
    text-align: center;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--dark-muted);
}

.empty-state strong {
    display: block;
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto 20px;
}

.res-empty {
    padding: 28px 12px;
    text-align: center;
    font-size: 13.5px;
    color: var(--dark-faint);
}

.res-play {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(13, 148, 136, 0.06);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.res-play:hover {
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(20, 184, 166, 0.45);
    transform: scale(1.06);
}

/* ── Dashboard: prázdný stav a CTA karta ── */

.cta-card .card-icon {
    margin-bottom: 14px;
}

.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 72px 24px;
    border: 1px dashed var(--dark-4);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    max-width: 620px;
    margin-inline: auto;
}

.dash-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: var(--accent-soft-2);
    background: rgba(20, 184, 166, 0.12);
    margin-bottom: 6px;
}

.dash-empty strong {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
}

.dash-empty p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--dark-muted);
    max-width: 400px;
    margin-bottom: 6px;
}

.dash-empty-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
}

.dash-empty-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 5px 12px;
    background: var(--paper-soft);
}

.dash-empty-steps b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
}

/* ── Trénink: onboarding s minimálním frictionem ── */

.onb-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -8px 0 26px;
}

.onb-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--dark-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.onb-steps span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.onb-steps i {
    width: 30px;
    height: 1px;
    background: var(--border);
}

.setup-collapse {
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper-soft);
    padding: 0 16px;
    text-align: left;
}

.setup-collapse summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 14px 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    user-select: none;
}

.setup-collapse summary::-webkit-details-marker {
    display: none;
}

.setup-collapse summary::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--dark-faint);
    border-bottom: 2px solid var(--dark-faint);
    transform: rotate(-45deg);
    transition: transform 0.2s;
    margin-right: 4px;
}

.setup-collapse[open] summary::before {
    transform: rotate(45deg);
}

.setup-collapse summary span {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-faint);
}

.setup-collapse .setup-block {
    padding-bottom: 4px;
}

.setup-collapse .setup-hint {
    margin-bottom: 14px;
}

.setup-collapse[open] {
    padding-bottom: 14px;
}

.deck-empty-note {
    padding: 40px 20px;
    text-align: center;
    color: var(--dark-5);
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.deck-empty-note strong {
    display: block;
    font-size: 16px;
    color: var(--dark-muted);
    margin-bottom: 6px;
}

/* ── Výsledky: reálné insights ── */

#insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#insights-list li.insight-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#insights-list .insight-name {
    font-weight: 600;
    color: var(--border-soft);
    margin: 0;
}

#insights-list .insight-val {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dark-muted);
    white-space: nowrap;
}

.insight-chip {
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--dark-muted);
    background: rgba(255, 255, 255, 0.05);
}

.insight-chip.up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.insight-chip.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
   Právní stránky (Obchodní podmínky, Ochrana údajů, Cookies)
   ============================================================ */

.legal-page {
    background: #090a0d;
    color: var(--border-soft);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(9, 10, 13, 0.85);
    border-bottom: 1px solid var(--dark-border);
}

.legal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

.legal-nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--dark-muted);
    transition: color 0.2s, transform 0.2s;
}

.legal-back-link:hover {
    color: #fff;
    transform: translateX(-2px);
}

.legal-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-tab {
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-muted);
    transition: color 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.legal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.legal-tab.active {
    color: var(--accent-soft);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.3);
}

.legal-hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.12), transparent 70%);
}

.legal-hero-inner {
    max-width: 860px;
}

.legal-kicker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--accent-soft-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dark-faint);
}

.legal-hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.legal-hero p.legal-lead {
    font-size: clamp(15px, 1.4vw, 17.5px);
    line-height: 1.65;
    color: var(--dark-muted);
    max-width: 760px;
}

.legal-container {
    padding-top: 48px;
    padding-bottom: 96px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-toc-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.legal-toc-title {
    font-size: 11px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark-5);
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-nav a {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    transition: color 0.15s, background 0.15s, transform 0.15s;
    border-left: 2px solid transparent;
}

.legal-toc-nav a:hover {
    color: var(--ink);
    background: var(--paper-soft);
}

.legal-toc-nav a.active {
    color: var(--accent);
    background: rgba(13, 148, 136, 0.06);
    border-left-color: var(--accent);
    font-weight: 500;
}

.legal-meta-box {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    font-size: 11px;
    color: var(--dark-5);
    display: grid;
    gap: 6px;
}

.legal-meta-box strong {
    color: var(--ink);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.legal-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    scroll-margin-top: 90px;
    transition: border-color 0.2s;
}

.legal-card:target {
    border-color: rgba(13, 148, 136, 0.35);
}

.legal-card-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.legal-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    flex-shrink: 0;
}

.legal-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

.legal-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 18px 0 8px;
}

.legal-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: var(--ink);
    font-weight: 600;
}

.legal-card ul,
.legal-card ol {
    margin: 10px 0 14px;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.legal-card ul li {
    list-style: disc;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}

.legal-card ol li {
    list-style: decimal;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
}

.legal-callout {
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
}

.legal-callout p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.legal-callout strong {
    color: var(--ink);
}

.legal-callout--warn {
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.2);
    border-left-color: var(--orange);
}

.legal-callout--warn p {
    color: var(--ink);
}

.legal-table-wrap {
    margin: 16px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--paper-soft);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.legal-table th,
.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    background: var(--paper-soft);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:hover td {
    background: var(--paper-soft);
}

.legal-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 9999px;
    font-family: var(--mono);
    font-size: 10px;
    background: var(--paper-soft);
    color: var(--muted);
    border: 1px solid var(--border);
}

.legal-pill--blue {
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent);
    border-color: rgba(13, 148, 136, 0.2);
}

.legal-pill--green {
    background: rgba(22, 163, 74, 0.08);
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.2);
}

/* Interaktivní cookie / storage správce pro cookies.html */
.storage-manager {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.storage-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.storage-manager-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.storage-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.storage-status-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.storage-status-label {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--dark-5);
    text-transform: uppercase;
}

.storage-status-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--mono);
}

.storage-status-desc {
    font-size: 11px;
    color: var(--muted);
}

.storage-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.storage-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--paper-soft);
    color: var(--ink);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.storage-btn:hover {
    background: var(--paper-soft);
    color: var(--ink);
    border-color: var(--dark-4);
}

.storage-btn--danger {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--danger);
}

.storage-btn--danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--danger);
}

.storage-notice {
    font-size: 11px;
    color: var(--dark-5);
    margin-top: 8px;
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-nav-tabs {
        display: none;
    }

    .legal-card {
        padding: 24px 20px;
    }

    .legal-hero {
        padding: 40px 0 28px;
    }
}

@media (max-width: 720px) {
    .menu-open .legal-header-inner {
        height: auto;
        flex-wrap: wrap;
        padding-block: 8px 16px;
    }

    .menu-open .legal-nav-tabs {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        border-top: 1px solid var(--border);
        margin-top: 12px;
        padding-top: 10px;
    }

    .menu-open .legal-tab {
        text-align: left;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .menu-open .legal-header .nav-cta {
        order: 4;
        width: 100%;
        padding-top: 14px;
    }
}

/* ============================================================
   Ring s hvězdičkami — overrides (musí být na konci kvůli kaskádě)
   ============================================================ */

.ring-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 0;
}

.ring-inner strong {
    font-size: 22px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1.1;
}

.ring-inner .stars-label {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--warn);
    line-height: 1;
}

.ring--sm .ring-inner strong {
    font-size: 17px;
}

.ring--sm .stars-label {
    font-size: 10px;
}

/* ============================================================
   Hvězdičky — zlatá (generuje scoreToStarsHTML → .stars)
   ============================================================ */

.stars {
    display: inline-block;
    font-family: var(--sans);
    font-size: 1em;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stars .stars-on {
    color: var(--warn);
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.5), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.stars .stars-half {
    background: linear-gradient(90deg, var(--warn) 50%, rgba(250, 204, 21, 0.35) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

.stars .stars-off {
    color: rgba(250, 204, 21, 0.35);
}



/* ============================================================
   Ceník (pricing.html)
   ============================================================ */

.nav-active {
    color: var(--ink);
}

.pricing-hero {
    padding: 72px 0 24px;
}

.price-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-top: 8px;
}

.price-toggle button {
    border: 0;
    background: transparent;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.price-toggle button.active {
    background: var(--paper-soft);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-grid--pro {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
    box-shadow: var(--shadow-card);
}

.price-card--featured {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

.price-card--pro {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.price-count {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.price-amount {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-amount small {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.price-note {
    font-size: 14px;
    color: var(--muted);
}

.price-features {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 8px 0 6px;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.price-features svg {
    flex: none;
    margin-top: 2px;
    color: var(--success);
}

.price-card .btn-premium {
    margin-top: auto;
    width: 100%;
}

.pricing-error {
    margin-top: 24px;
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

.pricing-success {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 16px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
}

.pricing-success.is-warn {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
    color: #b45309;
}

.pricing-footnote {
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---------- záložky aplikace (dashboard.html) ---------- */

.app-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 24px;
}

.app-tab {
    border: 0;
    background: transparent;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.app-tab.active {
    background: var(--paper-soft);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ceník uvnitř aplikace (cenik.html) — světlá varianta */
.tab-cenik .pricing-grid {
    margin-top: 24px;
}

.tab-cenik .price-card {
    background: var(--paper-soft);
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.tab-cenik .price-card--featured,
.tab-cenik .price-card--pro {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.tab-cenik .price-count,
.tab-cenik .price-note,
.tab-cenik .price-amount small {
    color: var(--muted);
}

.tab-cenik .price-features li {
    color: var(--muted);
}

.tab-cenik .pricing-footnote {
    color: var(--muted);
}

/* přepínač balíčky / předplatné */
.tab-cenik .price-toggle {
    background: var(--paper-soft);
    border-color: var(--border);
}

.tab-cenik .price-toggle button {
    color: var(--muted);
}

.tab-cenik .price-toggle button.active {
    background: var(--paper-soft);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* uživatel s PRO — zpráva místo tlačítka "Koupit tréninky" */
.tab-cenik .price-has-pro {
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: var(--success);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

/* srovnání balíčky vs. předplatné Pro */
.tab-cenik .price-compare {
    margin: 48px auto 0;
    max-width: 760px;
}

.tab-cenik .price-compare-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.tab-cenik .price-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.tab-cenik .price-compare th,
.tab-cenik .price-compare td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tab-cenik .price-compare thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark-5);
    background: var(--paper-soft);
}

.tab-cenik .price-compare thead th:last-child {
    color: var(--accent);
}

.tab-cenik .price-compare tbody tr:last-child th,
.tab-cenik .price-compare tbody tr:last-child td {
    border-bottom: 0;
}

.tab-cenik .price-compare tbody th {
    font-weight: 500;
    color: var(--ink);
}

.tab-cenik .price-compare tbody td {
    color: var(--muted);
}

.tab-cenik .price-compare tbody td:last-child {
    color: var(--accent);
    font-weight: 600;
}

.tab-cenik .price-compare td.yes {
    color: var(--success);
    font-weight: 700;
}

.tab-cenik .price-compare td.no {
    color: var(--dark-5);
    font-weight: 400;
}

/* ---------- výzva k dokoupení (trenink.html) ---------- */

.setup-note--buy {
    color: var(--danger-soft);
    font-weight: 500;
}

.setup-note--buy a {
    color: var(--accent-soft-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stage-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 860px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 36px;
    }
}

/* ============================================================
   Mobilní doladění — dotykové cíle a karty recenzí
   ============================================================ */

/* Na dotykových zařízeních není hover → tlačítko smazání musí být vždy vidět */
@media (hover: none) {
    .deck-tile .deck-tile-remove {
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .deck-tile-remove {
        width: 36px;
        height: 36px;
    }

    .side-icon-btn {
        width: 40px;
        height: 40px;
    }

    .prez-del {
        width: 40px;
        height: 40px;
    }

    .app-topbar .burger {
        padding: 10px;
    }

    

    
}

/* ---------- pojistka skrytí (hidden musí vždy vyhrát nad display v CSS) ---------- */

[hidden] {
    display: none !important;
}

/* ---------- FAQ sekce (AEO: nadpisy jako otázky, přímé odpovědi) ---------- */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: var(--accent-soft-3);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.06);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 22px;
    max-width: 720px;
}

.faq-answer p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .faq-item {
        padding: 0 18px;
    }
    .faq-item summary {
        font-size: 15.5px;
    }
}

/* ============================================================
   Gauge (půlkruhový senzor) — nový systém hodnocení v2
   ============================================================ */

.results-top {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gauge {
    position: relative;
    width: 200px;
    height: 130px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 14;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: url(#gauge-grad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-center {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-center strong {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.gauge-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

/* ============================================================
   Radar chart wrapper
   ============================================================ */

.radar-wrap {
    flex-shrink: 0;
}

.radar-wrap canvas {
    display: block;
}

/* ============================================================
   Emoji hodnocení (smajlíky 1-5)
   ============================================================ */

.emoji-section {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: var(--paper-soft);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.emoji-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.emoji-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.emoji-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--paper);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
    line-height: 1;
}

.emoji-btn:hover {
    transform: scale(1.15);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.emoji-btn.active {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.emoji-rating {
    font-size: 20px;
    line-height: 1;
}

.emoji-rating.emoji-empty {
    opacity: 0.3;
}

/* ============================================================
   Metric karty (nový design metrik)
   ============================================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.metric-card {
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.metric-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.metric-card-name {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.metric-card-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--mono);
}

.bar-metric {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}

.bar-metric i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--bar-color, var(--accent));
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-metric.in i {
    width: var(--val);
}

.bar-metric.bar-warn i {
    background: var(--danger);
}

/* ============================================================
   Nové skóre (v2) — pomocné třídy napříč stránkami
   ============================================================ */

.stat-score {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 6px;
}

.dash-score {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.res-score-num {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--mono);
}

.chart-score {
    font-weight: 700;
    font-size: 13px;
}

/* ============================================================
   Landing page — demo zpětné vazby (nový systém v2)
   ============================================================ */

.panel-body--demo {
    grid-template-columns: auto auto 1fr;
    gap: 28px;
    align-items: start;
}

.demo-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.gauge--demo {
    width: 200px;
    height: 130px;
}

.gauge--demo .gauge-fill {
    stroke: url(#fp-gauge-grad);
}

.demo-emoji {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
}

.demo-emoji-icon {
    font-size: 28px;
    line-height: 1;
}

.demo-emoji-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.demo-radar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.demo-radar canvas {
    display: block;
    width: 300px;
    height: 300px;
}

.metrics-demo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    align-content: start;
}

.metric-card--demo {
    padding: 11px 14px;
}

@media (max-width: 940px) {
    .panel-body--demo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .demo-left {
        justify-content: center;
    }
    .demo-radar {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .panel-body--demo {
        padding: 18px;
    }
    .demo-radar canvas {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================================
   Detail tréninku (detail.html) — zpětný pohled na hodnocení
   ============================================================ */

.detail-stack {
    display: grid;
    gap: 20px;
}

.detail-stack .results-top {
    margin-bottom: 0;
}

.detail-stack .emoji-section {
    margin-bottom: 0;
}

.detail-eval p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--dark-soft);
    white-space: pre-wrap;
}

.detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-nav:only-child {
    grid-template-columns: 1fr;
}

.detail-nav-link {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.detail-nav-link:hover {
    border-color: rgba(20, 184, 166, 0.35);
    background: rgba(20, 184, 166, 0.06);
    transform: translateY(-1px);
}

.detail-nav-link--next {
    text-align: right;
}

.detail-nav-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dark-5);
}

.detail-nav-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* Řádky historie, které otevírají detail tréninku */

.res-row--link {
    cursor: pointer;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    transition: background 0.2s;
}

.res-row--link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.res-row--link:hover .res-name {
    color: var(--accent-soft);
}

.res-name--link {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.res-name--link:hover,
.res-name--link:focus-visible {
    color: var(--accent-soft);
    border-bottom-color: rgba(45, 212, 191, 0.4);
}

.res-row .res-chevron {
    color: var(--dark-5);
    display: grid;
    place-items: center;
}

.res-row--link:hover .res-chevron {
    color: var(--accent-soft);
}

.hist-row--link {
    cursor: pointer;
}

.hist-name--link {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.hist-name--link:hover,
.hist-name--link:focus-visible {
    color: var(--accent-soft);
    border-bottom-color: rgba(45, 212, 191, 0.4);
}

.detail-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-soft);
    text-decoration: none;
}

.detail-inline-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .detail-nav {
        grid-template-columns: 1fr;
    }

    .detail-nav-link--next {
        text-align: left;
    }
}
