/* WebiXOne - Public Styles */

/* ============================================
   SHORTCODE FULLSCREEN MODE (global setting shortcode_fullscreen)
   ============================================
   Kdyz je v Nastaveni zaply toggle "Roztahnut shortcody pres celou obrazovku",
   wrapper kazdeho shortcode (.czw-shortcode-fs) se vykresli jako pevny overlay
   pres cely viewport (100vw x 100vh), takze bypassuje theme omezeni (max-width
   container, page builder row/column padding, Uncode/WPBakery/Elementor).
*/
html.czw-fs-active,
body.czw-fs-active {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.czw-shortcode-fs {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Room a replay maji vlastni vnitrni flex layout s scrollable panely (chat, Q&A,
   polls, attendees). Pro ne musi byt wrapper overflow:hidden, jinak by root
   scroll rozbil flex:1 + min-height:0 retezec a panely by nerolovaly samy.
   Scroll se deje uvnitr kazdeho panelu (czw-chat__messages, czw-qa__list,
   czw-polls__list, czw-attendees__list), ne na urovni wrapperu. */
.czw-room.czw-shortcode-fs,
.czw-replay.czw-shortcode-fs {
    overflow: hidden !important;
}

/* Kdyz je aktivni WP admin bar, posunout overlay o jeji vysku. Musi se prepsat
   i min-height a max-height, jinak by base rule (100vh) nutila element pretekat
   pod viewport edge a spodni obsah by byl pod hranou obrazovky nepristupny. */
body.admin-bar .czw-shortcode-fs {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
    min-height: calc(100vh - 32px) !important;
    max-height: calc(100vh - 32px) !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .czw-shortcode-fs {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
        min-height: calc(100vh - 46px) !important;
        max-height: calc(100vh - 46px) !important;
    }
}

:root {
    --czw-accent: #6366f1;
    --czw-secondary: #ec4899;
    --czw-bg: #0f172a;
    --czw-surface: #1e293b;
    --czw-surface-2: #334155;
    --czw-text: #ffffff;
    --czw-text-muted: #94a3b8;
    --czw-border: rgba(255,255,255,0.08);
    --czw-radius: 12px;
    --czw-radius-sm: 8px;
    --czw-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   REGISTRATION PAGE
   ============================================ */
.czw-registration-wrapper {
    background: var(--czw-bg);
    color: var(--czw-text);
    min-height: 100vh;
    padding: 20px 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
    /* Full-bleed: wrapper protáhne přes celou šířku viewportu, i když je vložený
       do theme containeru s omezenou šířkou. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;

    /* Mobile default: flex column, centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Fullscreen background extension — wrapper::before s position:fixed prekryje
   celou obrazovku (za theme header/footer) aby nevznikaly kontrastni pasy.
   Z-index -1 → nevadi clickability. */
.czw-registration-wrapper:not(.czw-registration-wrapper--inline)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: inherit;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* Inline varianta (background="0"): vypne fullscreen rozsireni a nechava
   wrapper v toku theme content zone. Nema full-bleed ani min-height. */
.czw-registration-wrapper--inline {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 0 !important;
}

/* DESKTOP 2-SLOUPCOVY LAYOUT (od 1024px):
   Levy sloupec = vsechny page-builder sekce (hero, image, speaker, FAQ...)
   Pravy sloupec = STICKY formular s countdownem nahore.
   Vyuzivame CSS grid s 3-sloupcovym rozdelenim (margin / content / form).
*/
@media (min-width: 1024px) {
    .czw-registration-wrapper {
        display: grid;
        align-items: start;
        gap: 0 48px;
        /* Top padding 14px (dříve 24) → countdown posunut o 10px výše. */
        padding: 14px clamp(24px, 5vw, 60px) 40px;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 720px)
            420px
            minmax(0, 1fr);
        /* Row 1 = min-content (jen countdown vyska).
           Row 2 = 1fr (zbytek; content spanuje oba rady, takze rozpina row 2
           dokud se nevejde content). Form je v row 2 s align-self:start,
           takze sedi hned pod countdownem, ne dole. */
        grid-template-rows: auto 1fr;
        grid-template-areas:
            ".  content  countdown  ."
            ".  content  form       .";
    }
    /* Content wrapper (pbContent) a default hero — v prostrednim sloupci,
       spanuji oba rady aby se form nepresunoval pod nej. */
    .czw-registration-wrapper > .czw-pb-content,
    .czw-registration-wrapper > .czw-reg-hero {
        grid-area: content;
        width: 100%;
        max-width: 720px;
    }
    /* Countdown v pravem sloupci, nad formularem.
       padding-bottom 20px → vizualne oddeluje countdown od formulare. */
    .czw-registration-wrapper > .czw-pb-section--countdown {
        grid-area: countdown;
        width: 100%;
        max-width: 420px;
        margin: 20px 0 0 0 !important; /* posun okna countdownu o 20px niz */
        padding-bottom: 20px;
        align-self: start;
    }
    /* Form wrapper — sticky v pravem sloupci pod countdownem */
    .czw-registration-wrapper > .czw-reg-form-wrapper {
        grid-area: form;
        position: sticky;
        top: 24px;
        width: 100% !important;
        max-width: 420px !important;
        align-self: start;
    }
}

/* Animovany radialni gradient efekt na pozadi byl odstranen v v1.0.7 na zadost uzivatele.
   Pseudo-element ::before se stale pouziva pro full-bleed fullscreen pozadi (viz pravidlo
   vyse pro .czw-registration-wrapper:not(--inline)::before), ale bez gradientove animace. */

/* Hero */
.czw-reg-hero {
    text-align: center;
    max-width: 700px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.czw-reg-hero__image {
    margin: 0 auto 24px;
    max-width: 640px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.czw-reg-hero__image img {
    display: block;
    width: 100%;
    height: auto;
}

.czw-reg-hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--czw-accent), var(--czw-secondary));
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.czw-reg-hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.czw-reg-hero__desc {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0 0 30px;
    text-align: center;
}
.czw-reg-hero__desc p { margin: 0 0 12px; }
.czw-reg-hero__desc p:last-child { margin-bottom: 0; }
.czw-reg-hero__desc ul,
.czw-reg-hero__desc ol {
    text-align: left;
    margin: 10px auto;
    max-width: 560px;
    padding-left: 24px;
}
.czw-reg-hero__desc li { margin: 4px 0; }
.czw-reg-hero__desc strong { color: #fff; }
.czw-reg-hero__desc a {
    color: var(--czw-accent);
    text-decoration: underline;
}

/* Countdown section wrapper — kompaktni karta v pravem sloupci */
.czw-countdown-section {
    text-align: center;
    margin: 0 auto 8px;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.08));
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    box-shadow: 0 14px 40px -16px rgba(99,102,241,0.4);
}
.czw-countdown-section > h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Countdown grid */
.czw-countdown {
    display: flex !important;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    flex-wrap: nowrap;
    max-width: 100%;
}

.czw-countdown__item {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 6px;
    min-width: 0;
    flex: 1;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.czw-countdown__item br { display: none; }

/* Po startu webinare — skryj digity a zobraz jen zpravu na celou sirku */
.czw-countdown.czw-countdown--live .czw-countdown__item { display: none !important; }
.czw-countdown.czw-countdown--live {
    flex-wrap: wrap;
    justify-content: center;
}
.czw-countdown__live-msg {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    padding: 12px 8px;
    line-height: 1.4;
}

.czw-countdown__value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--czw-accent);
    font-variant-numeric: tabular-nums;
}

/* Datum + cas webinare pod countdownem */
.czw-countdown-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
}
.czw-countdown-date svg {
    color: var(--czw-accent, #6366f1);
    flex-shrink: 0;
    opacity: 0.9;
}

.czw-countdown__label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 0;
}

/* ========================================
   DEKOVACI STRANKA ([cz_webinar_thankyou])
   Stejny full-bleed design jako registrace.
   ======================================== */
.czw-thankyou-wrapper {
    min-height: 100vh;
    padding: 60px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.czw-thankyou-card {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: czwThankCardIn 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes czwThankCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.czw-thankyou-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.35) 0%, rgba(16,185,129,0.05) 70%, transparent 100%);
    color: #10b981;
    animation: czwThankIconPop 0.7s cubic-bezier(0.2,0.8,0.4,1.3) 0.15s both;
}
@keyframes czwThankIconPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.czw-thankyou-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.czw-thankyou-subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: #fff !important;
    opacity: 1;
    margin: 0 0 28px;
}
.czw-thankyou-subtitle strong,
.czw-thankyou-subtitle b {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700;
}

.czw-thankyou-image {
    margin: 0 auto 28px;
    max-width: 480px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 36px -14px rgba(0,0,0,0.5);
}
.czw-thankyou-image img { display: block; width: 100%; height: auto; }

.czw-thankyou-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 auto 28px;
    max-width: 480px;
    text-align: left;
}
@media (min-width: 560px) {
    .czw-thankyou-details { grid-template-columns: repeat(2, 1fr); }
    .czw-thankyou-detail:nth-child(3) { grid-column: 1/-1; }
}
.czw-thankyou-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.czw-thankyou-detail svg {
    flex: none;
    color: var(--czw-accent);
}
.czw-thankyou-detail__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 2px;
}
.czw-thankyou-detail__value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

.czw-thankyou-message {
    margin: 0 0 28px;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(236,72,153,0.05));
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}
.czw-thankyou-message h1,
.czw-thankyou-message h2 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
.czw-thankyou-message h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 700;
}
.czw-thankyou-message p { margin: 0 0 10px; }
.czw-thankyou-message p:last-child { margin-bottom: 0; }
.czw-thankyou-message strong { color: #fff; }
.czw-thankyou-message ul,
.czw-thankyou-message ol {
    margin: 10px 0;
    padding-left: 22px;
}
.czw-thankyou-message li { margin: 4px 0; }
.czw-thankyou-message a {
    color: var(--czw-accent);
    text-decoration: underline;
    font-weight: 600;
}
.czw-thankyou-message a:hover { filter: brightness(1.15); }

.czw-thankyou-cta { margin-top: 8px; }
.czw-thankyou-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--czw-accent), var(--czw-secondary));
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 12px 28px -10px rgba(99,102,241,0.6);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.czw-thankyou-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 18px 36px -10px rgba(99,102,241,0.7);
}
.czw-thankyou-btn svg { transition: transform 0.25s; }
.czw-thankyou-btn:hover svg { transform: translateX(3px); }

.czw-thankyou-hint {
    margin: 14px 0 0;
    font-size: 13px;
    opacity: 0.65;
    line-height: 1.5;
}

/* Live-now indikator (alternativa countdownu kdyz webinar bezi) */
.czw-reg-hero__live-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    margin: 18px 0 10px;
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(244,63,94,0.18));
    border: 1px solid rgba(239,68,68,0.45);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.czw-reg-hero__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.55);
    animation: czwLiveDotPulse 1.6s ease-in-out infinite;
}
@keyframes czwLiveDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Countdown v "live" stavu (doběhl na 0) */
.czw-countdown--live {
    grid-template-columns: 1fr !important;
}

/* Registration Form */
.czw-reg-form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.czw-reg-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 60px -20px rgba(0,0,0,0.5),
                0 0 0 1px rgba(99,102,241,0.15) inset;
}

.czw-reg-form__title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    text-shadow: none;
}

.czw-registration-wrapper h1,
.czw-registration-wrapper h2,
.czw-registration-wrapper h3,
.czw-registration-wrapper h4,
.czw-registration-wrapper p,
.czw-registration-wrapper label,
.czw-registration-wrapper span:not(.czw-reg-hero__badge):not(.czw-form-icon) {
    color: var(--czw-text, #fff);
}

.czw-registration-wrapper a:not(.czw-link-btn):not(.czw-reg-btn) {
    color: var(--czw-accent, #6366f1);
}

.czw-form-group {
    position: relative;
    margin-bottom: 16px;
}

.czw-form-input {
    width: 100% !important;
    padding: 14px 16px 14px 46px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    font-size: 15px !important;
    line-height: 1.4 !important;
    transition: var(--czw-transition);
    outline: none;
    box-sizing: border-box !important;
    height: auto !important;
}

.czw-form-select {
    padding-left: 16px !important;
    /* Aby se dlouhy text nepreklikl pres sipku dropdown */
    padding-right: 40px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    height: 52px !important;
    line-height: 1.4 !important;
}

/* Pokud je v czw-form-group i ikona (vlevo), select dostane levy padding 46px
   aby text nezacal pod ikonou (stejne zarovnani jako text-input pole). */
.czw-form-group:has(.czw-form-icon) .czw-form-select {
    padding-left: 46px !important;
}

/* Question-select ma stejnou vysku jako text inputy, aby ikona byla presne
   vystredena (bez posunu vlivem vyssiho defaultniho vzrustu select elementu). */
.czw-form-group .czw-form-input {
    height: 52px;
    line-height: 1.4;
}

.czw-form-input:focus {
    border-color: var(--czw-accent) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
    background: rgba(255,255,255,0.15) !important;
}

.czw-form-input::placeholder { color: rgba(255,255,255,0.65) !important; opacity: 1; }
.czw-form-input::-webkit-input-placeholder { color: rgba(255,255,255,0.65) !important; }
.czw-form-input:-ms-input-placeholder { color: rgba(255,255,255,0.65) !important; }

/* iOS / Safari / Chrome autofill override — bez techto pravidel browser prepsal
   nase pozadi na bila / lutou pri vyplneni emailu, jmena, apod. z autofill/keychain. */
.czw-form-input:-webkit-autofill,
.czw-form-input:-webkit-autofill:hover,
.czw-form-input:-webkit-autofill:focus,
.czw-form-input:-webkit-autofill:active,
.czw-form-input:autofill,
input.czw-form-input:-internal-autofill-selected,
input.czw-form-input:-internal-autofill-previewed {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 33, 50, 0.98) inset !important;
    box-shadow: 0 0 0 1000px rgba(30, 33, 50, 0.98) inset !important;
    background-color: rgba(30, 33, 50, 0.98) !important;
    background-image: none !important;
    color: #fff !important;
    caret-color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s, -webkit-box-shadow 0s !important;
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
    filter: none !important;
}

/* iOS Safari dynamicka specificita — pokud je input filled, prepisuje pres attribute selector */
input.czw-form-input:not([value=""]),
input.czw-form-input[value]:not([value=""]) {
    background-color: rgba(255,255,255,0.1) !important;
}

/* Autofill — browsers force their own white background and dark text */
.czw-form-input:-webkit-autofill,
.czw-form-input:-webkit-autofill:hover,
.czw-form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset !important;
    caret-color: #fff;
    transition: background-color 9999s ease-out, color 9999s ease-out;
}

.czw-form-select {
    padding-left: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.czw-form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75) !important;
    opacity: 1;
    pointer-events: none;
}

.czw-form-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
}

.czw-reg-btn,
.czw-registration-wrapper button.czw-reg-btn,
button.czw-reg-btn[type="submit"] {
    width: 100%;
    padding: 16px !important;
    background: linear-gradient(135deg, var(--czw-accent), var(--czw-secondary)) !important;
    background-color: var(--czw-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: var(--czw-transition);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.czw-reg-btn__text,
.czw-reg-btn span {
    color: #fff !important;
}

.czw-reg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}

.czw-reg-btn:active { transform: translateY(0); }

.czw-reg-btn__loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: czw-spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

.czw-reg-form__footer {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 16px;
}

.czw-reg-form__gdpr {
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.55;
    margin-top: 8px;
    padding: 0 8px;
    color: inherit;
}
.czw-reg-form__gdpr a {
    color: var(--czw-accent);
    text-decoration: underline;
    opacity: 0.9;
}
.czw-reg-form__gdpr a:hover { opacity: 1; }
.czw-reg-form__gdpr strong { font-weight: 600; }

.czw-reg-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.czw-reg-message--success {
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.czw-reg-message--error {
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Prominent inline dekovacka (kdyz neni nastavena URL dekovaci stranky).
   Vetsi karta s gradient borderem, ikonou a plnym HTML formatovanim. */
.czw-reg-message--inline-html {
    display: block;
    font-size: 17px;
    line-height: 1.6;
    padding: 32px 28px;
    border-radius: 20px;
    margin-top: 24px;
    background: linear-gradient(180deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
    border: 1.5px solid rgba(16,185,129,0.45);
    box-shadow: 0 14px 40px -12px rgba(16,185,129,0.25),
                0 0 0 1px rgba(255,255,255,0.04) inset;
    color: #ecfdf5;
    animation: czwRegMsgIn 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes czwRegMsgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.czw-reg-message--inline-html::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(16,185,129,0.4) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") center/50% no-repeat;
    animation: czwRegMsgPop 0.6s cubic-bezier(0.2,0.8,0.4,1.3) 0.2s both;
}
@keyframes czwRegMsgPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.czw-reg-message--inline-html h1,
.czw-reg-message--inline-html h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.czw-reg-message--inline-html h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 700;
}
.czw-reg-message--inline-html p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.88);
}
.czw-reg-message--inline-html p:last-child { margin-bottom: 0; }
.czw-reg-message--inline-html strong { color: #fff; font-weight: 700; }
.czw-reg-message--inline-html ul,
.czw-reg-message--inline-html ol {
    text-align: left;
    margin: 12px auto;
    max-width: 520px;
    padding-left: 24px;
    color: rgba(255,255,255,0.88);
}
.czw-reg-message--inline-html li { margin: 4px 0; }
.czw-reg-message--inline-html a {
    color: var(--czw-accent);
    text-decoration: underline;
    font-weight: 600;
}
.czw-reg-message--inline-html a:hover { filter: brightness(1.2); }
/* Pripadny CTA button uvnitr zpravy */
.czw-reg-message--inline-html .button,
.czw-reg-message--inline-html .btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--czw-accent), var(--czw-secondary));
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 22px -8px rgba(99,102,241,0.6);
    transition: transform 0.2s, filter 0.2s;
}
.czw-reg-message--inline-html .button:hover,
.czw-reg-message--inline-html .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Webinar already ended — zobrazeno misto registracniho formulare */
.czw-reg-ended {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}
.czw-reg-ended__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;
    color: rgba(148, 163, 184, 0.95);
}
.czw-reg-ended__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: inherit;
}
.czw-reg-ended__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
}

/* Urgency Banner */
.czw-reg-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #fca5a5;
    animation: czw-msg-in 0.5s ease-out;
}

.czw-reg-urgency__pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: czw-pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Social Proof */
.czw-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    opacity: 0.7;
}

.czw-social-proof__avatars { display: flex; }

.czw-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-right: -8px;
    border: 2px solid var(--czw-bg);
}

.czw-social-proof__text {
    font-size: 13px;
    margin-left: 8px;
}

/* ============================================
   WEBINAR ROOM
   ============================================ */
.czw-room {
    background: var(--czw-bg);
    color: var(--czw-text);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.czw-room__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 24px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--czw-border);
    flex-shrink: 0;
    gap: 16px;
}

.czw-room__header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.czw-room__header-center {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    max-width: 100%;
}

.czw-room__logo {
    height: 29px;
    max-height: 29px;
    width: auto;
    max-width: 128px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
@media (max-width: 640px) {
    .czw-room__logo {
        height: 21px;
        max-height: 21px;
        max-width: 80px;
    }
}
.czw-room__header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; justify-self: end; }

.czw-room__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.czw-room__live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Před startem — ztlumeny sedy bez pulzu */
/* Před startem — decentní neon (cyan/indigo) s pomalým pulse glow */
.czw-room__live-badge--pending {
    color: #93c5fd;
    text-shadow: 0 0 8px rgba(147, 197, 253, 0.55), 0 0 18px rgba(99, 102, 241, 0.35);
    animation: czw-pending-neon-pulse 2.4s ease-in-out infinite;
}
.czw-room__live-badge--pending .czw-live-dot {
    background: #93c5fd;
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.85), 0 0 16px rgba(99, 102, 241, 0.55);
    animation: czw-pending-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes czw-pending-neon-pulse {
    0%, 100% {
        text-shadow: 0 0 6px rgba(147, 197, 253, 0.4), 0 0 14px rgba(99, 102, 241, 0.25);
        opacity: 0.85;
    }
    50% {
        text-shadow: 0 0 12px rgba(147, 197, 253, 0.85), 0 0 26px rgba(99, 102, 241, 0.6);
        opacity: 1;
    }
}
@keyframes czw-pending-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(147, 197, 253, 0.6), 0 0 12px rgba(99, 102, 241, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 14px rgba(147, 197, 253, 1), 0 0 24px rgba(99, 102, 241, 0.7);
        transform: scale(1.18);
    }
}

.czw-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: czw-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes czw-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.czw-live-time {
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
    font-weight: 500;
    margin-left: 2px;
}

/* Host-only countdown to webinar start — sedi vedle czw-room__live-badge */
.czw-host-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-left: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--czw-accent, #6366f1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.czw-host-countdown__label {
    opacity: 0.8;
    font-weight: 500;
}
.czw-host-countdown__value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.czw-host-countdown.czw-host-countdown--soon {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}
/* Po startu webinaru — zelene "Beží: HH:MM:SS" */
.czw-host-countdown.czw-host-countdown--running {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
    color: #22c55e;
}
/* Sledujici (non-admin) — vidi badge jen v elapsed rezimu, countdown skryty */
.czw-host-countdown--elapsed-only:not(.czw-host-countdown--running) {
    display: none !important;
}
.czw-host-countdown[hidden] { display: none !important; }

.czw-room__viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--czw-text-muted);
}

/* Main Layout */
.czw-room__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    /* Explicitni grid row 1fr + flex:1 1 0 + height:0 trik — bez toho by
       flex chain neresil vysku spravne a sidebar panely by nerolovaly. */
    grid-template-rows: 1fr;
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow: hidden;
}

/* Left Column: Content */
.czw-room__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
}

/* Video */
.czw-room__video {
    position: relative;
    background: transparent;
    flex-shrink: 0;
    /* misto pod video pro fs button (bottom:-46px). Velikost: 36px button + 10px gap */
    padding-bottom: 52px;
}

/* Fullscreen mode — fs button vrátit dovnitř obrazu (overlay v pravém dolním rohu) */
#czw-video-container:fullscreen #czw-fs-btn,
#czw-video-container:-webkit-full-screen #czw-fs-btn,
#czw-video-container.czw-pseudo-fs #czw-fs-btn {
    bottom: 60px !important;
    right: 12px !important;
}
#czw-video-container:fullscreen,
#czw-video-container:-webkit-full-screen,
#czw-video-container.czw-pseudo-fs {
    padding-bottom: 0 !important;
}
#czw-fs-btn:hover {
    background: rgba(99,102,241,0.8) !important;
    border-color: rgba(99,102,241,1) !important;
}

.czw-video-embed {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #000;
}

.czw-video-embed iframe,
.czw-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hide YouTube controls & title - black covers over top and bottom */
.czw-video-embed--yt-clean {
    overflow: visible;
}

/* Video Loading Overlay */
.czw-video-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 40%, #13132a 0%, #0a0a0f 70%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28%;
    z-index: 15;
    transition: opacity 1.5s ease;
}
.czw-video-loading[hidden] { display: none !important; }

/* Pre-start overlay — pred zacatkem webinaru. Prekryva video container.
   Hostu se da prepnout pres "Test" tlacitko v host paneli (jen u nej zmizi). */
.czw-pre-start-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #fff;
    text-align: center;
    padding: 24px;
}
.czw-pre-start-overlay[hidden] { display: none !important; }
.czw-pre-start-overlay__content { max-width: 440px; }
.czw-pre-start-overlay__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    color: #a5b4fc;
}
.czw-pre-start-overlay__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.85);
}
.czw-pre-start-overlay__countdown {
    margin: 0 0 16px;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.czw-pre-start-overlay__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}
.czw-pre-start-overlay__cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.czw-pre-start-overlay__cta:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.8);
    transform: translateY(-1px);
}
/* Landscape mobile / nizky viewport — jeste kompaktnejsi,
   aby se ikona+countdown+CTA veslo pri krajne nizkem viewportu. */
@media (max-height: 500px) {
    /* Zkratime "Powered by" pasek na uzkem viewportu (aby video melo vic mista) */
    .czw-room__powered-by { padding: 8px 16px 6px; font-size: 10px; }
    .czw-pre-start-overlay {
        padding: 6px;
        align-items: center;
    }
    .czw-pre-start-overlay__icon {
        width: 36px;
        height: 36px;
        margin: 0 auto 4px;
    }
    .czw-pre-start-overlay__icon svg {
        width: 20px;
        height: 20px;
    }
    .czw-pre-start-overlay__title {
        font-size: 13px;
        margin: 0 0 4px;
    }
    .czw-pre-start-overlay__countdown {
        font-size: 22px;
        margin: 0 0 4px;
    }
    .czw-pre-start-overlay__desc {
        font-size: 11px;
        line-height: 1.35;
    }
    .czw-pre-start-overlay__cta {
        margin-top: 6px;
        padding: 6px 10px;
        font-size: 11px;
        white-space: normal;
        line-height: 1.25;
    }
    .czw-pre-start-overlay__cta svg { display: none; }
}

/* Mobile optimizations — redukce velikosti elementu v pre-start overlayi,
   aby se vse veslo do video boxu a nepretekalo na sidebar. */
@media (max-width: 640px) {
    .czw-pre-start-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    .czw-pre-start-overlay__content {
        max-height: 100%;
        overflow-y: auto;
        padding: 10px 4px;
    }
    .czw-pre-start-overlay__icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 8px;
    }
    .czw-pre-start-overlay__icon svg {
        width: 28px;
        height: 28px;
    }
    .czw-pre-start-overlay__title {
        font-size: 15px;
        margin: 0 0 6px;
    }
    .czw-pre-start-overlay__countdown {
        font-size: 28px;
        margin: 0 0 8px;
    }
    .czw-pre-start-overlay__desc {
        font-size: 12px;
    }
    .czw-pre-start-overlay__cta {
        margin-top: 10px;
        padding: 8px 14px;
        font-size: 12px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    .czw-pre-start-overlay__cta svg { display: none; }
}
.czw-host-btn--test-active {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
}

.czw-video-loading__content {
    text-align: center;
    width: 320px;
}

.czw-video-loading__bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

.czw-video-loading__progress {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--czw-accent), var(--czw-secondary), transparent);
    border-radius: 3px;
    animation: czw-loading-slide 2s ease-in-out infinite;
    filter: blur(0.5px);
}

.czw-video-loading__bar::after {
    content: '';
    position: absolute;
    top: -2px; left: 0; right: 0; bottom: -2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.15), transparent);
    animation: czw-loading-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes czw-loading-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(350%); }
}

@keyframes czw-loading-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.czw-video-loading__text {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.czw-video-loading__dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.czw-video-loading__dots span {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: czw-dot-pulse 1.4s ease-in-out infinite;
}

.czw-video-loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.czw-video-loading__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes czw-dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* Video Ended Overlay */
.czw-video-ended {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 0;
    overflow: hidden;
}

.czw-video-ended__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 32px;
}

.czw-video-ended__content svg {
    color: #10b981;
    margin-bottom: 20px;
    opacity: 0.8;
}

.czw-video-ended__content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.czw-video-ended__content p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Zoom */
.czw-zoom-embed { background: var(--czw-surface); }

.czw-zoom-join {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
}

.czw-zoom-join h2 { margin: 16px 0 8px; font-size: 22px; }

.czw-zoom-id { color: var(--czw-text-muted); font-size: 14px; margin: 0 0 20px; }

.czw-zoom-btn {
    display: inline-block;
    background: #2D8CFF;
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--czw-transition);
}

.czw-zoom-btn:hover {
    background: #1a7ae8;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Video Waiting */
.czw-video-waiting { background: var(--czw-surface); }

.czw-waiting-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.czw-waiting-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--czw-accent);
    margin: 0 auto 16px;
    animation: czw-pulse 2s ease-in-out infinite;
    opacity: 0.6;
}

.czw-waiting-content p { color: var(--czw-text-muted); font-size: 15px; }

/* CTA Overlay */
/* CTA Frame (under video, always visible) */
.czw-cta-frame {
    width: 100%;
    min-height: 48px;
    padding: 6px 12px;
    background: var(--czw-bg);
    border-top: 1px solid var(--czw-border);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Banner */
.czw-cta-banner {
    --_cta: var(--czw-cta-color, #6366f1);
    display: block;
    max-width: 100%;
    padding: 12px 24px;
    background: var(--_cta);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.czw-cta-banner:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
}

/* CTA Color Styles — Neon */
.czw-cta-color--neon-indigo { background: #6366f1; box-shadow: 0 0 15px #6366f1, 0 0 30px rgba(99,102,241,0.4); }
.czw-cta-color--neon-pink { background: #ec4899; box-shadow: 0 0 15px #ec4899, 0 0 30px rgba(236,72,153,0.4); }
.czw-cta-color--neon-green { background: #22c55e; box-shadow: 0 0 15px #22c55e, 0 0 30px rgba(34,197,94,0.4); }
.czw-cta-color--neon-cyan { background: #06b6d4; box-shadow: 0 0 15px #06b6d4, 0 0 30px rgba(6,182,212,0.4); }
.czw-cta-color--neon-red { background: #ef4444; box-shadow: 0 0 15px #ef4444, 0 0 30px rgba(239,68,68,0.4); }

/* CTA Color Styles — Gradient */
.czw-cta-color--grad-indigo-pink { background: linear-gradient(135deg,#6366f1,#ec4899); }
.czw-cta-color--grad-orange-red { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.czw-cta-color--grad-green-cyan { background: linear-gradient(135deg,#22c55e,#06b6d4); }
.czw-cta-color--grad-purple-cyan { background: linear-gradient(135deg,#8b5cf6,#06b6d4); }
.czw-cta-color--grad-pink-orange { background: linear-gradient(135deg,#ec4899,#f59e0b); }
.czw-cta-color--grad-red-purple { background: linear-gradient(135deg,#ef4444,#8b5cf6); }
.czw-cta-color--grad-sky-indigo-pink { background: linear-gradient(135deg,#0ea5e9,#6366f1,#ec4899); }
.czw-cta-color--grad-gold-green-cyan { background: linear-gradient(135deg,#fbbf24,#22c55e,#06b6d4); }
.czw-cta-color--grad-sunset { background: linear-gradient(135deg,#f97316,#ef4444,#ec4899); }
.czw-cta-color--grad-ocean { background: linear-gradient(135deg,#0ea5e9,#06b6d4,#10b981); }

/* CTA Animations */
.czw-cta-banner--pulse { animation: czw-cta-pulse 2s ease-in-out infinite; }
.czw-cta-banner--glow { animation: czw-cta-glow 2s ease-in-out infinite; }
.czw-cta-banner--breathe { animation: czw-cta-breathe 3s ease-in-out infinite; }
.czw-cta-banner--gradient { background: linear-gradient(90deg, var(--_cta), var(--czw-secondary), var(--_cta)); background-size: 200% 100%; animation: czw-cta-gradient 3s ease infinite; }
.czw-cta-banner--fade { animation: czw-cta-fade 3s ease-in-out infinite; }
.czw-cta-banner--bounce { animation: czw-cta-bounce 2s ease-in-out infinite; }

/* Neon border — animated border that travels around the edge */
.czw-cta-banner--neon {
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 0;
}
.czw-cta-banner--neon::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: conic-gradient(from 0deg, var(--_cta), var(--czw-secondary), #06b6d4, var(--_cta));
    border-radius: 10px;
    z-index: -2;
    animation: czw-cta-neon-spin 3s linear infinite;
}
.czw-cta-banner--neon::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: var(--_cta);
    border-radius: 6px;
    z-index: -1;
}

@keyframes czw-cta-pulse {
    0%, 100% { border-color: var(--czw-border); }
    50% { border-color: var(--czw-accent); }
}

@keyframes czw-cta-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
    50% { box-shadow: 0 0 15px rgba(99,102,241,0.4), 0 0 30px rgba(99,102,241,0.15); }
}

@keyframes czw-cta-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}

@keyframes czw-cta-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes czw-cta-fade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes czw-cta-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-1px); }
}

@keyframes czw-cta-neon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer Bar (action buttons + chat input on same line) */
.czw-room__footer {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 16px 50px;
    background: var(--czw-surface);
    border-top: 1px solid var(--czw-border);
    flex-shrink: 0;
    gap: 16px;
}
/* Desktop: "Powered by" dole uprostřed footeru, absolutně pozicovano
   (neinterferuje s flex rozlozenim footer-left / footer-right). */
.czw-room__powered-by {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.4px;
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
}
.czw-room__powered-by span {
    color: var(--czw-accent, #6366f1);
    font-weight: 600;
}

.czw-room__footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.czw-room__footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.czw-room__footer-right .czw-chat__input {
    flex: 1;
    max-width: 400px;
    /* Chat input je contenteditable div — iOS/Android nerozpozna jako formularove pole
       a nenabizi autofill / klice / karty. */
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
    padding: 9px 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-wrap;
    cursor: text;
}
.czw-room__footer-right .czw-chat__input:focus {
    border-color: var(--czw-accent);
    background: rgba(255,255,255,0.12);
}
/* Placeholder pro contenteditable div — zobrazuje se kdyz je element prazdny */
.czw-room__footer-right .czw-chat__input:empty::before {
    content: attr(data-placeholder);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

.czw-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--czw-border);
    border-radius: var(--czw-radius-sm);
    color: var(--czw-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--czw-transition);
}

.czw-action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.czw-action-btn--active {
    background: rgba(99,102,241,0.15);
    border-color: var(--czw-accent);
    color: var(--czw-accent);
}

.czw-action-btn svg { flex-shrink: 0; }

/* Offer Timer */
.czw-offer-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--czw-radius-sm);
    font-size: 13px;
    color: #fca5a5;
}

.czw-offer-timer__time {
    font-weight: 700;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
}

/* Online Indicator */
.czw-room__online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 13px;
    color: var(--czw-text-muted);
}

.czw-online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Description */
/* Description Modal */
.czw-desc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: czw-fadeIn 0.2s ease;
}

@keyframes czw-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes czw-slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.czw-desc-modal {
    background: var(--czw-surface);
    border: 1px solid var(--czw-border);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: czw-slideUp 0.25s ease;
}

.czw-desc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--czw-border);
    flex-shrink: 0;
}

.czw-desc-modal__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.czw-desc-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: var(--czw-transition);
    flex-shrink: 0;
}

.czw-desc-modal__close:hover {
    background: rgba(239,68,68,0.7);
    border-color: rgba(239,68,68,0.8);
    color: #fff;
}

.czw-desc-modal__body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--czw-text-muted);
    overflow-y: auto;
}

/* ============================================
   SIDEBAR
   ============================================ */
.czw-room__sidebar {
    display: flex;
    flex-direction: column;
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--czw-border);
    min-height: 0;
    height: 100%;
    overflow: hidden;
    width: 380px;
    /* Nuclear: relative pozice pro absolute-positioned panely uvnitr */
    position: relative;
}

/* Sidebar Tabs — flex-wrap: tabs se zalamou na druhy radek kdyz se nevejdou.
   Kazdy tab ma flex: 1 1 auto, takze se rovnomerne rozloží na radku. */
.czw-sidebar__tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--czw-border);
    flex-shrink: 0;
    overflow: hidden;
}

.czw-sidebar__tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--czw-transition);
    white-space: nowrap;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

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

/* Active tab = hover-like underline glow per tab color */
.czw-sidebar__tab--active {
    border-bottom-color: transparent;
}

/* Chat — green */
.czw-sidebar__tab--active[data-panel="chat"] {
    color: #22c55e;
    background: rgba(34,197,94,0.1);
}
.czw-sidebar__tab[data-panel="chat"]:hover {
    background: rgba(34,197,94,0.1);
}

/* Q&A — amber/orange */
.czw-sidebar__tab--active[data-panel="qa"] {
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
}
.czw-sidebar__tab[data-panel="qa"]:hover {
    background: rgba(245,158,11,0.1);
}

/* Ankety — emerald/green (brighter for legibility on dark bg) */
.czw-sidebar__tab--active[data-panel="polls"] {
    color: #6ee7b7;
    background: rgba(16,185,129,0.18);
    text-shadow: 0 0 8px rgba(110,231,183,0.35);
}
.czw-sidebar__tab[data-panel="polls"]:hover {
    color: #6ee7b7;
    background: rgba(16,185,129,0.12);
}

/* Účastníci — cyan/blue */
.czw-sidebar__tab--active[data-panel="attendees"] {
    color: #06b6d4;
    background: rgba(6,182,212,0.1);
}
.czw-sidebar__tab[data-panel="attendees"]:hover {
    background: rgba(6,182,212,0.1);
}

.czw-sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    flex-shrink: 0;
    background: var(--czw-accent);
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}

.czw-sidebar__badge--pulse {
    animation: czw-badge-pulse 1.5s ease-in-out 3;
}

@keyframes czw-badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
    50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}

/* Sidebar Panels */
.czw-sidebar__panel {
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    /* Nuclear: absolute positioning pinuje panel na sidebar bez flex chain.
       Top offset 50px = vyska tabs (flex-shrink:0 nahore). */
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
}

.czw-sidebar__panel--active {
    display: flex;
}

/* Kdyz se tabs zalomou na 2 radky (vic nez 3 tabs = admin mode), posunout panel niz */
@supports (selector(.czw-sidebar__tabs:has(.czw-sidebar__tab:nth-child(4)))) {
    .czw-room__sidebar:has(.czw-sidebar__tab:nth-child(4)) .czw-sidebar__panel {
        top: 90px;
    }
}

/* Vnitrní scrollable listy — POUZE jeden primární scroll kontejner per panel.
   Chat / Polls / Attendees maji jen list (bez form). Q&A ma list + form
   (form flex-shrink:0 dole, list flex:1 nahore).

   BRUTE-FORCE max-height: ruzne theme/flex-chain anomalie rozbijely flex:1+min-height:0
   retezec na desktopu. Proto navic pinujeme max-height relativne k viewport,
   coz garantuje ze list nemuze byt vyssi nez viewport minus header/footer/tabs.
   Odhad: room header 60 + room footer 60 + sidebar tabs 50 = ~170px,
   plus 20px safety = 190px. Pro Q&A + form cca 250px.
*/
.czw-chat__messages,
.czw-qa__list,
.czw-polls__list,
.czw-attendees__list {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: calc(100vh - 190px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
.czw-qa__list {
    max-height: calc(100vh - 260px) !important; /* navic misto pro form pod listem */
}
/* Admin bar offset (WP bar nahore pidlaji +32px, 46px mobile) */
body.admin-bar .czw-chat__messages,
body.admin-bar .czw-polls__list,
body.admin-bar .czw-attendees__list {
    max-height: calc(100vh - 190px - 32px) !important;
}
body.admin-bar .czw-qa__list {
    max-height: calc(100vh - 260px - 32px) !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .czw-chat__messages,
    body.admin-bar .czw-polls__list,
    body.admin-bar .czw-attendees__list {
        max-height: calc(100vh - 190px - 46px) !important;
    }
    body.admin-bar .czw-qa__list {
        max-height: calc(100vh - 260px - 46px) !important;
    }
}

/* ============================================
   CHAT PANEL
   ============================================ */
.czw-chat__messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Zakazu scroll-anchoring — novy message vzdy posune scroll na spodek,
       takze divak vzdy vidi nejnovejsi zpravu. */
    overflow-anchor: none;
    scroll-behavior: smooth;
}

.czw-chat-msg {
    display: flex;
    gap: 8px;
    animation: czw-msg-in 0.3s ease-out;
    min-width: 0;
}

@keyframes czw-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.czw-chat-msg__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--czw-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.czw-chat-msg__bubble {
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 0 var(--czw-radius-sm) var(--czw-radius-sm) var(--czw-radius-sm);
    padding: 8px 12px;
    max-width: calc(100% - 42px);
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.czw-chat-msg--user .czw-chat-msg__bubble {
    background: rgba(99,102,241,0.15);
}

.czw-chat-msg__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--czw-accent);
    margin-bottom: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.czw-chat-msg--user .czw-chat-msg__name {
    color: #10b981;
}

.czw-chat-msg--admin .czw-chat-msg__bubble {
    background: rgba(236,72,153,0.12);
    border-left: 2px solid rgba(236,72,153,0.5);
}

.czw-chat-msg--admin .czw-chat-msg__name {
    color: #ec4899;
}

/* CTA Chat highlight — glowing border + pulse for 10s */
.czw-chat-msg--highlight .czw-chat-msg__bubble {
    background: rgba(99,102,241,0.15);
    border-left: 2px solid var(--czw-accent, #6366f1);
    box-shadow: 0 0 12px rgba(99,102,241,0.25), inset 0 0 8px rgba(99,102,241,0.08);
    animation: czw-chat-highlight 2s ease-in-out infinite;
}

.czw-chat-msg--highlight .czw-chat-msg__text {
    color: #fff;
    font-weight: 600;
}

@keyframes czw-chat-highlight {
    0%, 100% { box-shadow: 0 0 12px rgba(99,102,241,0.25), inset 0 0 8px rgba(99,102,241,0.08); }
    50% { box-shadow: 0 0 20px rgba(99,102,241,0.4), inset 0 0 12px rgba(99,102,241,0.12); }
}

.czw-chat-msg__badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(236,72,153,0.25);
    color: #ec4899;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.czw-chat-msg__delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.czw-chat-msg:hover .czw-chat-msg__delete {
    opacity: 1;
}

.czw-chat-msg__delete:hover {
    color: #ef4444;
}

.czw-chat-msg__text {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
}

/* === Chat reply (host moderator) === */
/* Pulse efekt na zpravu s odpovedi moderatora.
   Aplikuje se na vnejsi wrapper (ne bubble), aby nedoslo ke kolizi s
   --reply-to-me animaci. Pulzuje nekonecne, takze efekt zustava i po refresh. */
.czw-chat-msg--replied-pulse {
    animation: czw-chat-replied-pulse 1.5s ease-in-out 3 forwards;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}
@keyframes czw-chat-replied-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99,102,241,0.0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px 4px rgba(99,102,241,0.55);
        transform: scale(1.015);
    }
}

/* Reply tlacitko v hlavicce zpravy — vzdy viditelne v host modu */
.czw-chat-msg__reply-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    background: rgba(99,102,241,0.22);
    border: 1px solid rgba(99,102,241,0.6);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}
.czw-chat-msg__reply-btn:hover {
    background: var(--czw-accent, #6366f1);
    color: #fff;
    transform: translateY(-1px);
}
.czw-chat-msg__reply-btn::before {
    content: '↩';
    margin-right: 3px;
    font-size: 13px;
}

/* Reply context label uvnitr bubliny — "↳ Odpověď pro Jméno" */
.czw-chat-msg__reply-ctx {
    display: block;
    font-size: 11px;
    color: var(--czw-accent, #6366f1);
    font-weight: 600;
    margin: 2px 0 4px 0;
    padding-left: 6px;
    border-left: 2px solid var(--czw-accent, #6366f1);
    opacity: 0.9;
}

/* Bublina s reply: lehky accent border na vrchu */
.czw-chat-msg--reply .czw-chat-msg__bubble {
    background: rgba(99,102,241,0.10);
    border-left: 2px solid var(--czw-accent, #6366f1);
}

/* Reply primo na ME — silny zaře / pulse / odlisne pozadi */
.czw-chat-msg--reply-to-me .czw-chat-msg__bubble {
    background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(236,72,153,0.18));
    border-left: 3px solid #fbbf24;
    box-shadow: 0 0 16px rgba(251,191,36,0.45), inset 0 0 10px rgba(251,191,36,0.15);
    animation: czw-chat-reply-glow 1.5s ease-in-out 3 forwards;
}
.czw-chat-msg--reply-to-me .czw-chat-msg__text {
    color: #fff;
    font-weight: 600;
}
.czw-chat-msg--reply-to-me .czw-chat-msg__reply-ctx {
    color: #fde68a;
    border-left-color: #fbbf24;
}
@keyframes czw-chat-reply-glow {
    0%, 100% {
        box-shadow: 0 0 14px rgba(251,191,36,0.40), inset 0 0 8px rgba(251,191,36,0.12);
    }
    50% {
        box-shadow: 0 0 26px rgba(251,191,36,0.75), inset 0 0 14px rgba(251,191,36,0.25);
    }
}

/* Reply preview nad inputem (host moderator) */
.czw-chat__reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(99,102,241,0.15);
    border-left: 3px solid var(--czw-accent, #6366f1);
    border-radius: 6px 6px 0 0;
    margin: 0 8px;
    font-size: 12px;
    color: #c7d2fe;
}
.czw-chat__reply-preview-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.czw-chat__reply-preview-close {
    background: none;
    border: none;
    color: #c7d2fe;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}
.czw-chat__reply-preview-close:hover { color: #fff; }

/* Chat Input */
.czw-chat__input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--czw-border);
    flex-shrink: 0;
}

.czw-chat__input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--czw-radius-sm);
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: var(--czw-transition);
    box-sizing: border-box;
}

.czw-chat__input:focus {
    border-color: var(--czw-accent);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

.czw-chat__input::placeholder { color: rgba(255,255,255,0.4); }

.czw-chat__send {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    background: none;
    border: none;
    border-radius: var(--czw-radius-sm);
    color: var(--czw-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--czw-transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.czw-chat__send:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

/* ============================================
   Q&A PANEL
   ============================================ */
.czw-qa__list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.czw-qa__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--czw-text-muted);
    font-size: 14px;
}

.czw-qa__item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--czw-border);
    border-radius: var(--czw-radius-sm);
    padding: 12px;
    transition: var(--czw-transition);
}

.czw-qa__item--answered {
    border-color: rgba(34,197,94,0.2);
    background: rgba(34,197,94,0.04);
}

.czw-qa__question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.czw-qa__author {
    font-size: 12px;
    font-weight: 600;
    color: var(--czw-accent);
}

.czw-qa__time {
    font-size: 11px;
    color: var(--czw-text-muted);
}

.czw-qa__question-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.czw-qa__answer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--czw-border);
    font-size: 13px;
    line-height: 1.5;
    color: #86efac;
}

.czw-qa__answer-label {
    font-weight: 600;
    color: #22c55e;
}

.czw-qa__admin-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--czw-border);
}

/* Q&A Form */
.czw-qa__form {
    padding: 12px;
    border-top: 1px solid var(--czw-border);
    flex-shrink: 0;
}

.czw-qa__input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--czw-border);
    border-radius: var(--czw-radius-sm);
    color: #fff;
    font-size: 13px;
    resize: none;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    overflow-y: auto;
    max-height: 150px;
}

.czw-qa__input:focus {
    border-color: var(--czw-accent);
    background: rgba(255,255,255,0.1);
}

.czw-qa__input::placeholder { color: rgba(255,255,255,0.3); }

.czw-qa__send {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: var(--czw-accent);
    color: #fff;
    border: none;
    border-radius: var(--czw-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--czw-transition);
}

.czw-qa__send:hover { background: #4f46e5; }
.czw-qa__send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   POLLS PANEL
   ============================================ */
.czw-polls__list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.czw-polls__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--czw-text-muted);
    font-size: 14px;
}

.czw-poll-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--czw-border);
    border-radius: var(--czw-radius);
    overflow: visible;
}

.czw-poll-card--active {
    border-color: rgba(99,102,241,0.3);
}

.czw-poll-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--czw-border);
}

.czw-poll-card .czw-poll-card__question,
h1.czw-poll-card__question,
h2.czw-poll-card__question,
h3.czw-poll-card__question,
h4.czw-poll-card__question,
h5.czw-poll-card__question,
.czw-poll-card__question {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    text-shadow: none !important;
    opacity: 1 !important;
}

.czw-poll-card__badge {
    flex-shrink: 0;
    padding: 2px 8px;
    background: rgba(99,102,241,0.2);
    color: var(--czw-accent);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.czw-poll-card__options {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Poll Option (votable) */
.czw-poll-option {
    position: relative;
    padding: 10px 14px;
    border-radius: var(--czw-radius-sm);
    font-size: 13px;
    cursor: default;
    transition: var(--czw-transition);
    overflow: hidden;
}

button.czw-poll-vote-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--czw-border);
    color: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

button.czw-poll-vote-btn:hover {
    background: rgba(99,102,241,0.1);
    border-color: var(--czw-accent);
}

button.czw-poll-vote-btn:disabled { opacity: 0.6; cursor: wait; }

/* Klikatelne tlacitko s prubeznymi vysledky uvnitr (show_results=1 a jeste nehlasoval) */
button.czw-poll-vote-btn--with-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}

/* Poll Results */
.czw-poll-option--result {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--czw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.czw-poll-option__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(99,102,241,0.15);
    border-radius: var(--czw-radius-sm);
    transition: width 0.5s ease;
}

.czw-poll-option__text {
    position: relative;
    z-index: 1;
}

.czw-poll-option__pct {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--czw-accent);
    font-size: 12px;
}

.czw-poll-option--inactive {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--czw-border);
    color: var(--czw-text-muted);
}

.czw-poll-card__footer {
    padding: 8px 14px;
    border-top: 1px solid var(--czw-border);
    font-size: 12px;
    color: var(--czw-text-muted);
    text-align: center;
}
.czw-poll-card__thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 14px 4px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
}
.czw-poll-card__thanks svg {
    flex-shrink: 0;
}

.czw-poll-card__admin {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid var(--czw-border);
    background: rgba(0,0,0,0.2);
}

/* ============================================
   ATTENDEES PANEL
   ============================================ */
.czw-attendees__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--czw-border);
    font-size: 13px;
    color: var(--czw-text-muted);
    flex-shrink: 0;
}

.czw-attendees__list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 12px;
}

.czw-attendees__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--czw-text-muted);
    font-size: 14px;
}

.czw-attendee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--czw-border);
}

.czw-attendee:last-child { border-bottom: none; }

.czw-attendee__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--czw-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.czw-attendee__info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.czw-attendee__name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.czw-attendee__hand { font-size: 14px; }

.czw-attendee__status { flex-shrink: 0; }

/* ============================================
   SHARED SMALL BUTTONS
   ============================================ */
.czw-btn-xs {
    padding: 4px 10px;
    background: var(--czw-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--czw-transition);
}

.czw-btn-xs:hover { opacity: 0.85; }

.czw-btn-xs--ghost {
    background: transparent;
    border: 1px solid var(--czw-border);
    color: var(--czw-text-muted);
}

.czw-btn-xs--ghost:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

.czw-btn-xs--danger { background: #dc2626; }
.czw-btn-xs--danger:hover { background: #b91c1c; }

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
.czw-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.czw-exit-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.czw-exit-popup__content {
    position: relative;
    background: var(--czw-surface);
    border-radius: 20px;
    padding: 48px;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--czw-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: czw-popup-in 0.3s ease-out;
}

@keyframes czw-popup-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.czw-exit-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    transition: var(--czw-transition);
}

.czw-exit-popup__close:hover { color: #fff; }

.czw-exit-popup__content h2 {
    font-size: 22px;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* ============================================
   REPLAY PAGE
   ============================================ */
/* ===== Replay — fullscreen layout, stejny video player jako v webinar room ===== */
.czw-replay--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--czw-bg, #0f172a);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}
/* Kdyz je prihlaseny WP user, WP pridava body.admin-bar + #wpadminbar (32px).
   Odsunmeme replay container o tu vysku, aby topbar nebyl skryty. */
body.admin-bar .czw-replay--fullscreen {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
    body.admin-bar .czw-replay--fullscreen {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

.czw-replay__topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(0,0,0,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    z-index: 2;
}
.czw-replay__logo {
    height: 26px;
    max-height: 26px;
    width: auto;
    flex-shrink: 0;
    grid-column: 1;
    justify-self: start;
}
.czw-replay__title {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
}
.czw-replay__topbar-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
}
.czw-replay__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--czw-accent, #6366f1);
    flex-shrink: 0;
}
.czw-replay__urgency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 999px;
    color: #fca5a5;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.czw-replay__video {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: radial-gradient(ellipse at 50% 30%, #111826 0%, #05070d 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}
.czw-replay__video .czw-video-embed {
    width: 100%;
    height: auto;
    padding-top: 0;
    max-width: 1100px;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    margin: auto;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}
/* Scale + crop iframe v replay modu — skryje YT title band (nahore)
   a YT kontrol lištu (dole), pokud je briefing nebo pauza.
   Parent ma overflow:hidden, takže presah se orizne.
   Ve fullscreen NEkropovat — zachovat puvodni 16:9 ze zdrojoveho videa. */
.czw-replay__video .czw-video-embed iframe {
    transform: scale(1.18);
    transform-origin: center center;
}
/* Real Fullscreen API — zakaz scale, vrat 1:1 */
#czw-video-container:fullscreen .czw-video-embed iframe,
#czw-video-container:-webkit-full-screen .czw-video-embed iframe {
    transform: none !important;
}
/* Pseudo-fullscreen (iOS fallback) — stejne */
#czw-video-container.czw-pseudo-fs .czw-video-embed iframe {
    transform: none !important;
}
/* FS tlacitko uvnitr videa (v replay parent ma overflow:hidden → default
   bottom:-46px by se oriznul). Posuneme dovnitr. */
.czw-replay__video #czw-fs-btn {
    bottom: 12px !important;
    right: 12px !important;
}

/* Fullscreen replay — video vyplni cely viewport (bez max-width 1100px,
   bez border-radius, bez shadow). Parent "replay__video" padding 0. */
.czw-replay__video:fullscreen,
.czw-replay__video:-webkit-full-screen {
    padding: 0 !important;
    background: #000 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
}
.czw-replay__video:fullscreen .czw-video-embed,
.czw-replay__video:-webkit-full-screen .czw-video-embed {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.czw-replay__video:fullscreen .czw-video-embed iframe,
.czw-replay__video:-webkit-full-screen .czw-video-embed iframe {
    width: 100vw !important;
    height: 100vh !important;
}
/* Pseudo-fs fallback (iOS) */
.czw-replay__video.czw-pseudo-fs {
    padding: 0 !important;
}
.czw-replay__video.czw-pseudo-fs .czw-video-embed {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 640px) {
    .czw-replay__video { padding: 0; }
    .czw-replay__video .czw-video-embed {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}

.czw-replay__cta {
    padding: 16px 20px 20px;
    text-align: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.czw-replay__cta .czw-cta-banner {
    display: inline-block;
    max-width: 520px;
    width: auto;
}

@media (max-width: 640px) {
    .czw-replay__topbar {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .czw-replay__title { display: none !important; }
    /* Na mobilu 2-sloupcovy layout: logo vlevo, badge+countdown vpravo */
    .czw-replay__topbar { grid-template-columns: auto 1fr !important; }
    .czw-replay__logo { grid-column: 1 !important; }
    .czw-replay__topbar > .czw-replay__badge,
    .czw-replay__topbar > .czw-replay__urgency { grid-column: 2 !important; }
    .czw-replay__badge, .czw-replay__urgency {
        font-size: 10px;
        padding: 3px 8px;
    }
    .czw-replay__logo { height: 20px; }
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.czw-thankyou {
    background: var(--czw-bg);
    color: #fff;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.czw-thankyou__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
}

.czw-thankyou h1 {
    font-size: 32px;
    margin: 0 0 12px;
}

.czw-thankyou p {
    opacity: 0.8;
    font-size: 16px;
    max-width: 500px;
    line-height: 1.6;
}

.czw-thankyou__details {
    margin-top: 24px;
    padding: 20px 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid var(--czw-border);
}

/* ============================================
   PAGE BUILDER SECTIONS
   ============================================ */
.czw-pb-section {
    padding: 0;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

.czw-hero {
    text-align: left;
    padding: 0;
    margin: 0;
}
.czw-hero__title {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.czw-hero__subtitle {
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.8;
    margin: 0;
}

/* Page builder content wrapper — obaluje non-countdown sekce. */
.czw-pb-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.czw-pb-content > .czw-pb-section {
    width: 100%;
    margin: 0; /* wrapper handluje spacing pres gap */
}

/* Image sekce v page builderu — zmenseny rozmer, prirozeny pomer stran. */
.czw-image-section {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 480px;
    background: rgba(0,0,0,0.2);
}
.czw-image-section img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Desktop: centrovani textu na levem sloupci zrusit — vse left-aligned */
@media (min-width: 1024px) {
    .czw-reg-hero,
    .czw-hero {
        text-align: left;
    }
    .czw-reg-hero__title,
    .czw-hero__title {
        text-align: left;
    }
    .czw-reg-hero__desc {
        text-align: left;
    }
    /* Countdown v pravem sloupci — mensi kvuli omezene sirce */
    .czw-countdown-section {
        padding: 16px 16px 18px;
    }
}

.czw-video-thumbnail {
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    border-radius: var(--czw-radius);
    position: relative;
    cursor: pointer;
}

.czw-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    transition: var(--czw-transition);
}

.czw-video-thumbnail:hover .czw-play-overlay {
    background: var(--czw-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.czw-bullet-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0;
}

.czw-bullet-list li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 10px 0 10px 36px;
    margin: 0;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

.czw-bullet-list li::marker {
    content: '' !important;
    display: none;
}

.czw-bullet-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--czw-accent);
    font-weight: 700;
    font-size: 18px;
}

.czw-speaker__photo-frame {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--czw-accent);
    box-shadow: 0 6px 18px -8px rgba(0,0,0,0.4);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: #0f172a;
}
.czw-speaker__photo {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 50% 50%;
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 0 !important;
    border: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
}
/* Kompaktni speaker karta — stejna sirka jako image (480px) */
.czw-speaker {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
    max-width: 480px;
    margin: 0 !important;
    padding: 10px 14px 10px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-align: left;
    box-sizing: border-box;
}
/* Parent wrapper s type="speaker" — nech ho roztazit, ale speaker inside bude
   left-aligned (kvuli fit-content + align-items start). */
.czw-pb-section--speaker {
    display: flex;
    justify-content: flex-start;
}
.czw-speaker__info h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.czw-speaker__info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.72);
}

.czw-faq-item {
    border-bottom: 1px solid var(--czw-border);
    padding: 16px 0;
}

.czw-faq-question {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding-right: 30px;
    position: relative;
}

.czw-faq-answer {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
    line-height: 1.6;
}

/* ============================================
   WAITING ROOM
   ============================================ */
/* ===== Waiting Room — modernized ===== */
.czw-waiting-room {
    background: linear-gradient(135deg, #0a0a16 0%, #161628 50%, #0f0f1f 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    /* Full-bleed cez theme container (wp page content ma typicky max-width).
       Stejny pattern jako .czw-registration-wrapper. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}
/* Variant pro "replay vypršel" a podobné standalone stránky — prekryje
   celou obrazovku vč. theme headeru/footeru. */
.czw-waiting-room--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
}
body.admin-bar .czw-waiting-room--fullscreen {
    top: 32px !important;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
    body.admin-bar .czw-waiting-room--fullscreen {
        top: 46px !important;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

.czw-waiting-room__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(99,102,241,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(236,72,153,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.czw-waiting-room__content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 720px;
    padding: 56px 32px;
}

/* Icon s "ringom" pulzu */
.czw-waiting-room__icon {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(236,72,153,0.15));
    border: 1px solid rgba(99,102,241,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d2fe;
    box-shadow: 0 0 0 0 rgba(99,102,241,0.5), 0 10px 30px rgba(99,102,241,0.2);
}
.czw-waiting-room__icon-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(99,102,241,0.35);
    pointer-events: none;
}

/* Top status badge */
.czw-waiting-room__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a5b4fc;
    margin-bottom: 18px;
}
.czw-waiting-room__badge-dot {
    width: 7px;
    height: 7px;
    background: #a5b4fc;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(165, 180, 252, 0.7);
}

/* "Připravujeme vysílání" — v poslednich 5 minut: stejny decentni 3-vrstvy efekt
   jako footer pill (breath + dot pulse + shimmer). */
.czw-waiting-room__badge--soon {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: czw-footer-breathe 4s ease-in-out infinite;
}
.czw-waiting-room__badge--soon .czw-waiting-room__badge-dot {
    animation: czw-footer-dot-pulse 1.8s ease-in-out infinite;
}
.czw-waiting-room__badge--soon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.16) 50%,
        transparent 62%,
        transparent 100%);
    transform: translateX(-100%);
    animation: czw-footer-shimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.czw-waiting-room__title {
    font-size: clamp(30px, 4.8vw, 48px);
    font-weight: 800;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
    text-wrap: balance;
}

/* "Kdy" prominentni panel — datum + cas */
.czw-waiting-room__when {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    margin: 0 auto 32px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.czw-waiting-room__when-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(99,102,241,0.2);
    border-radius: 10px;
    color: #a5b4fc;
    flex-shrink: 0;
}
.czw-waiting-room__when-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.czw-waiting-room__when-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}
.czw-waiting-room__when-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.czw-waiting-room__when-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

.czw-waiting-room__subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
}

/* Countdown — vetsi, glassmorphism, gradient digity */
.czw-waiting-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.czw-waiting-countdown__item {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 22px 18px;
    min-width: 92px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
}

.czw-waiting-countdown__value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.czw-waiting-countdown__label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-top: 8px;
    font-weight: 700;
}

.czw-waiting-countdown__sep {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    padding-bottom: 18px;
}

/* Recnici wrapper — podpora pro vice recniku (kazdy speaker section v PB) */
.czw-waiting-room__speakers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 28px;
}
.czw-waiting-room__speakers--multi {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    max-width: 1100px;
}
.czw-waiting-room__speakers--multi .czw-waiting-room__speaker {
    margin: 0;
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 480px;
}
@media (max-width: 640px) {
    .czw-waiting-room__speakers--multi {
        flex-direction: column;
    }
    .czw-waiting-room__speakers--multi .czw-waiting-room__speaker {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Recnik — modern card s avatarem */
.czw-waiting-room__speaker {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px 16px 16px;
    margin: 0 auto 28px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    max-width: 520px;
    text-align: left;
}
.czw-waiting-room__speaker-photo-frame {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(99,102,241,0.5);
    flex-shrink: 0;
    background: #0f172a;
}
.czw-waiting-room__speaker-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.czw-waiting-room__speaker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.czw-waiting-room__speaker-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}
.czw-waiting-room__speaker-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.czw-waiting-room__speaker-bio {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* Description — citelnejsi, lepsi typografie */
.czw-waiting-room__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    max-width: 580px;
    margin: 8px auto 28px;
    text-align: left;
    padding: 22px 26px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    text-wrap: pretty;
}
.czw-waiting-room__desc p {
    margin: 0 0 12px;
}
.czw-waiting-room__desc p:last-child { margin-bottom: 0; }
.czw-waiting-room__desc strong {
    color: #fff;
    font-weight: 700;
}
.czw-waiting-room__desc em { color: rgba(255,255,255,0.85); }
.czw-waiting-room__desc a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.czw-waiting-room__desc a:hover { color: #c7d2fe; }
.czw-waiting-room__desc ul,
.czw-waiting-room__desc ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.czw-waiting-room__desc li { margin-bottom: 6px; }
.czw-waiting-room__desc h1,
.czw-waiting-room__desc h2,
.czw-waiting-room__desc h3,
.czw-waiting-room__desc h4 {
    margin: 18px 0 8px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}
.czw-waiting-room__desc h2 { font-size: 18px; }
.czw-waiting-room__desc h3 { font-size: 16px; }
.czw-waiting-room__desc h4 { font-size: 15px; }

/* Hlaska "Mistnost se otevira" — pulzujici stitek v poslednich 60s */
.czw-waiting-room__opening {
    margin: 24px auto 0;
    padding: 14px 20px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 12px;
    color: #4ade80;
    text-align: center;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.czw-waiting-room__opening[hidden] { display: none !important; }
.czw-waiting-room__opening strong {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
}
.czw-waiting-room__opening p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.czw-waiting-room__opening-pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: czw-pulse-dot 1.4s ease-in-out infinite;
    margin-bottom: 4px;
}

/* Manualni "Spustit webinář" tlacitko ve waiting roomu — zobrazi se az T-60s */
.czw-waiting-room__cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}
.czw-waiting-room__cta[hidden] { display: none !important; }
.czw-waiting-room__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--czw-accent, #6366f1);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.czw-waiting-room__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5);
}
.czw-waiting-room__btn svg { flex-shrink: 0; }

.czw-waiting-room__footer {
    margin-top: 24px;
}

.czw-waiting-room__footer p {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 10px 18px 10px 36px; /* misto pro animovany dot vlevo */
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    letter-spacing: 0.2px;
    overflow: hidden;
    isolation: isolate;
    animation: czw-footer-breathe 4s ease-in-out infinite;
}
/* Animovany dot vlevo — naznacuje "automaticka cinnost na pozadi" */
.czw-waiting-room__footer p::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background: #a5b4fc;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(165, 180, 252, 0.7);
    animation: czw-footer-dot-pulse 1.8s ease-in-out infinite;
}
/* Decentni shimmer — gradient projizdejici pres pill kazdych 5s */
.czw-waiting-room__footer p::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.16) 50%,
        transparent 62%,
        transparent 100%);
    transform: translateX(-100%);
    animation: czw-footer-shimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes czw-footer-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(165, 180, 252, 0.18);
        border-color: rgba(255, 255, 255, 0.18);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(165, 180, 252, 0);
        border-color: rgba(165, 180, 252, 0.32);
    }
}
@keyframes czw-footer-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(165, 180, 252, 0.5);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 14px rgba(165, 180, 252, 1);
        opacity: 1;
    }
}
@keyframes czw-footer-shimmer {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 640px) {
    .czw-waiting-room__content { padding: 40px 18px; }
    .czw-waiting-countdown { gap: 6px; }
    .czw-waiting-countdown__item {
        min-width: 64px;
        padding: 14px 10px;
        border-radius: 12px;
    }
    .czw-waiting-countdown__value { font-size: 30px; }
    .czw-waiting-countdown__sep { font-size: 24px; padding-bottom: 14px; }
    .czw-waiting-countdown__label { font-size: 9px; letter-spacing: 1.2px; }
    .czw-waiting-room__when {
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }
    .czw-waiting-room__when-divider { width: 100%; height: 1px; }
    .czw-waiting-room__when-text { text-align: center; align-items: center; }
    .czw-waiting-room__speaker {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }
    .czw-waiting-room__speaker-info { align-items: center; }
}

/* ============================================
   HOST CONTROL BAR
   ============================================ */
.czw-host-bar {
    position: fixed;
    bottom: 80px;
    left: 20px;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 9999;
    animation: czw-popup-in 0.3s ease-out;
}

.czw-host-bar--minimized {
    padding: 8px;
}

.czw-host-bar--minimized .czw-host-bar__actions,
.czw-host-bar--minimized .czw-host-bar__label {
    display: none;
}

.czw-host-bar__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--czw-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 12px;
    border-right: 1px solid var(--czw-border);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.czw-host-bar__dot {
    width: 6px;
    height: 6px;
    background: var(--czw-accent);
    border-radius: 50%;
    animation: czw-pulse-dot 1.5s ease-in-out infinite;
}

.czw-host-bar__actions {
    display: flex;
    gap: 6px;
}

/* =====================================================
   GENERICKY POPUP — sjednoceny vzhled vsech dialogu
   (host name, attendee name, Q&A answer, confirm, desc...)
   Vsechny dedi ze .czw-popup, prip. overrideuji varianty.
   ===================================================== */
.czw-popup,
.czw-host-name-popup,
.czw-attendee-name-popup,
.czw-qa-modal-overlay,
.czw-desc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.czw-popup__backdrop,
.czw-host-name-popup__backdrop,
.czw-attendee-name-popup__backdrop,
.czw-qa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.czw-popup__content,
.czw-host-name-popup__content,
.czw-attendee-name-popup__content,
.czw-qa-modal,
.czw-desc-modal {
    position: relative;
    background: rgba(15,23,42,0.98) !important;
    border: 1px solid rgba(99,102,241,0.35) !important;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: czw-popup-in 0.25s ease-out;
    color: #fff;
}
.czw-popup__close,
.czw-qa-modal__close,
.czw-desc-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}
.czw-popup__close:hover,
.czw-qa-modal__close:hover,
.czw-desc-modal__close:hover { color: #fff; }
.czw-popup__title,
.czw-qa-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.czw-popup__title svg,
.czw-qa-modal__title svg {
    color: var(--czw-accent, #6366f1);
    flex-shrink: 0;
}
.czw-popup__desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}
.czw-popup__actions,
.czw-qa-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.czw-popup__btn,
.czw-qa-modal__btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: inherit;
}
.czw-popup__btn--cancel,
.czw-qa-modal__btn--cancel {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
}
.czw-popup__btn--cancel:hover,
.czw-qa-modal__btn--cancel:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.czw-popup__btn--save,
.czw-qa-modal__btn--save {
    background: var(--czw-accent, #6366f1);
    border-color: var(--czw-accent, #6366f1);
    color: #fff;
}
.czw-popup__btn--save:hover,
.czw-qa-modal__btn--save:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
/* Danger varianta (pro ukonceni/smazani) */
.czw-popup__btn--danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}
.czw-popup__btn--danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

@keyframes czw-popup-in {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* === ORIGINAL HOST NAME POPUP (zachovano jen pro specificke overridy) === */
.czw-host-name-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.czw-host-name-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}
.czw-host-name-popup__content {
    position: relative;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: czw-popup-in 0.25s ease-out;
}
.czw-host-name-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--czw-transition);
}
.czw-host-name-popup__close:hover { color: #fff; }
.czw-host-name-popup__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.czw-host-name-popup__title svg { color: var(--czw-accent); flex-shrink: 0; }
.czw-host-name-popup__desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--czw-text-muted);
}
.czw-host-name-popup__input {
    width: 100%;
    padding: 12px 14px;
    background: #fff !important;
    border: 1px solid rgba(99,102,241,0.4) !important;
    border-radius: 10px;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: var(--czw-transition);
    -webkit-text-fill-color: #0f172a;
}
.czw-host-name-popup__input::placeholder {
    color: rgba(15,23,42,0.45) !important;
    -webkit-text-fill-color: rgba(15,23,42,0.45);
}
.czw-host-name-popup__input:focus {
    border-color: var(--czw-accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.czw-host-name-popup__input::selection {
    background: rgba(99,102,241,0.35);
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}
.czw-host-name-popup__input::-moz-selection {
    background: rgba(99,102,241,0.35);
    color: #0f172a;
}
.czw-host-name-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.czw-host-name-popup__btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--czw-transition);
    border: 1px solid var(--czw-border);
}
.czw-host-name-popup__btn--cancel {
    background: rgba(255,255,255,0.05);
    color: var(--czw-text-muted);
}
.czw-host-name-popup__btn--cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.czw-host-name-popup__btn--save {
    background: var(--czw-accent);
    border-color: var(--czw-accent);
    color: #fff;
}
.czw-host-name-popup__btn--save:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* === Attendee name button (left of chat input) === */
.czw-attendee-name-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--czw-transition);
    box-sizing: border-box;
    white-space: nowrap;
    max-width: 160px;
    flex-shrink: 0;
}
.czw-attendee-name-btn:hover {
    background: rgba(99,102,241,0.18);
    border-color: rgba(99,102,241,0.5);
    color: #fff;
}
.czw-attendee-name-btn svg {
    color: var(--czw-accent);
}
.czw-attendee-name-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

/* === Attendee name popup (same design as host popup) === */
.czw-attendee-name-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.czw-attendee-name-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}
.czw-attendee-name-popup__content {
    position: relative;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: czw-popup-in 0.25s ease-out;
}
.czw-attendee-name-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--czw-transition);
}
.czw-attendee-name-popup__close:hover { color: #fff; }
.czw-attendee-name-popup__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.czw-attendee-name-popup__title svg { color: var(--czw-accent); flex-shrink: 0; }
.czw-attendee-name-popup__desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--czw-text-muted);
}
.czw-attendee-name-popup__input {
    width: 100%;
    padding: 12px 14px;
    background: #fff !important;
    border: 1px solid rgba(99,102,241,0.4) !important;
    border-radius: 10px;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: var(--czw-transition);
    -webkit-text-fill-color: #0f172a;
}
.czw-attendee-name-popup__input::placeholder {
    color: rgba(15,23,42,0.45) !important;
    -webkit-text-fill-color: rgba(15,23,42,0.45);
}
.czw-attendee-name-popup__input:focus {
    border-color: var(--czw-accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.czw-attendee-name-popup__input::selection {
    background: rgba(99,102,241,0.35);
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}
.czw-attendee-name-popup__input::-moz-selection {
    background: rgba(99,102,241,0.35);
    color: #0f172a;
}
.czw-attendee-name-popup__error {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 500;
}
.czw-attendee-name-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.czw-attendee-name-popup__btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--czw-transition);
    border: 1px solid var(--czw-border);
}
.czw-attendee-name-popup__btn--cancel {
    background: rgba(255,255,255,0.05);
    color: var(--czw-text-muted);
}
.czw-attendee-name-popup__btn--cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.czw-attendee-name-popup__btn--save {
    background: var(--czw-accent);
    border-color: var(--czw-accent);
    color: #fff;
}
.czw-attendee-name-popup__btn--save:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.czw-attendee-name-popup__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Mobile: hide label to save space, keep icon button */
@media (max-width: 600px) {
    .czw-attendee-name-btn {
        padding: 0 10px;
        max-width: 40px;
    }
    .czw-attendee-name-btn__label {
        display: none;
    }
}

/* === Q&A answer modal (dark room design) === */
.czw-qa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* === QA Modal specific (common styles jsou sdilene s .czw-popup v sekci vyse) === */
.czw-qa-modal__input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: var(--czw-transition);
    font-family: inherit;
}
.czw-qa-modal__input::placeholder {
    color: rgba(255,255,255,0.35);
}
.czw-qa-modal__input:focus {
    border-color: var(--czw-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
    background: rgba(255,255,255,0.08);
}

.czw-host-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--czw-border);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--czw-transition);
    white-space: nowrap;
}

.czw-host-btn:hover {
    background: rgba(255,255,255,0.15);
}

.czw-host-btn--active {
    background: rgba(99,102,241,0.2);
    border-color: var(--czw-accent);
    color: var(--czw-accent);
}

.czw-host-btn--danger {
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}

.czw-host-btn--danger:hover {
    background: rgba(239,68,68,0.15);
}

/* Mistnost otevrena — cervene zvyrazneni jako signalizace "aktivni pristup" */
.czw-host-btn--room-open {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.5);
    color: #fca5a5;
}
.czw-host-btn--room-open:hover {
    background: rgba(239,68,68,0.25);
}

.czw-host-bar__minimize {
    background: none;
    border: none;
    color: var(--czw-text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
}

.czw-host-bar__minimize:hover { color: #fff; }

/* Custom tooltip pro tlacitka v host baru */
.czw-host-bar [data-tooltip] {
    position: relative;
}
.czw-host-bar [data-tooltip]::before,
.czw-host-bar [data-tooltip]::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform: translate(-50%, 4px);
    z-index: 10001;
}
.czw-host-bar [data-tooltip]::before {
    content: attr(data-tooltip);
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.czw-host-bar [data-tooltip]::after {
    content: '';
    width: 0;
    height: 0;
    bottom: calc(100% + 4px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(99,102,241,0.4);
}
.czw-host-bar [data-tooltip]:hover::before,
.czw-host-bar [data-tooltip]:hover::after,
.czw-host-bar [data-tooltip]:focus-visible::before,
.czw-host-bar [data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* Potlac na mobilu (tooltip je na dotykovych zarizenich matouci) */
@media (hover: none), (max-width: 640px) {
    .czw-host-bar [data-tooltip]::before,
    .czw-host-bar [data-tooltip]::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .czw-host-bar {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
.czw-chat__messages::-webkit-scrollbar,
.czw-qa__list::-webkit-scrollbar,
.czw-polls__list::-webkit-scrollbar,
.czw-attendees__list::-webkit-scrollbar {
    width: 4px;
}

.czw-chat__messages::-webkit-scrollbar-thumb,
.czw-qa__list::-webkit-scrollbar-thumb,
.czw-polls__list::-webkit-scrollbar-thumb,
.czw-attendees__list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.czw-chat__messages::-webkit-scrollbar-track,
.czw-qa__list::-webkit-scrollbar-track,
.czw-polls__list::-webkit-scrollbar-track,
.czw-attendees__list::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================================
   RESPONSIVE — viz konec souboru pro hlavni mobile overrides (v1.0.81)
   ============================================ */
@media (max-width: 640px) {
    .czw-speaker {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   SELECTION & FOCUS STATES
   ============================================ */
.czw-room *::selection {
    background: rgba(99,102,241,0.3);
    color: #fff;
}

.czw-registration-wrapper *::selection {
    background: rgba(99,102,241,0.3);
    color: #fff;
}

/* Smooth scroll for all scrollable panels */
.czw-chat__messages,
.czw-qa__list,
.czw-polls__list,
.czw-attendees__list,
.czw-room__content {
    scroll-behavior: smooth;
}

/* Focus visible outlines for accessibility */
.czw-action-btn:focus-visible,
.czw-sidebar__tab:focus-visible,
.czw-chat__send:focus-visible,
.czw-qa__send:focus-visible,
button.czw-poll-vote-btn:focus-visible {
    outline: 2px solid var(--czw-accent);
    outline-offset: 2px;
}

/* ============================================
   LOGIN / REJOIN FORM
   ============================================ */
.czw-login-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.czw-link-btn {
    background: none;
    border: none;
    color: var(--czw-accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.czw-link-btn:hover {
    color: var(--czw-secondary);
}

.czw-login-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Password Gate */
.czw-password-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.czw-password-gate__card {
    background: var(--czw-surface, rgba(255,255,255,0.06));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.czw-password-gate__card h2 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #fff;
}

.czw-password-gate__card p {
    color: rgba(255,255,255,0.6);
    margin: 0 0 24px;
    font-size: 14px;
}

.czw-password-gate__card .czw-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fecaca;
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(239,68,68,0.45);
    padding: 12px 18px;
    border-radius: 10px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239,68,68,0.15);
}
.czw-password-gate__card .czw-error__icon {
    display: inline-flex;
    align-items: center;
    color: #f87171;
    flex-shrink: 0;
}
.czw-password-gate__card .czw-error__text {
    line-height: 1.3;
}
.czw-error--shake {
    animation: czw-shake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes czw-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}
.czw-password-gate__form--error input[type="password"],
.czw-password-gate__form--error input[type="text"] {
    border-color: rgba(239,68,68,0.6) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.18) !important;
}

.czw-password-gate__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.czw-password-gate__form input[type="password"],
.czw-password-gate__form input[type="text"] {
    padding: 12px 48px 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    font-size: 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 2px;
}

.czw-password-gate__form input:focus {
    outline: none;
    border-color: var(--czw-accent, #6366f1);
}

.czw-password-gate__form input::-ms-reveal,
.czw-password-gate__form input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.czw-password-gate__input-wrap {
    position: relative;
    width: 100%;
}

.czw-password-gate__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 1;
    border-radius: 6px;
}

.czw-password-gate__toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.czw-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.czw-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

.czw-settings-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: -8px 0 16px;
}

/* ===== Webinar List (cz_webinar_list shortcode) ===== */

/* Wrapper — full-bleed pozadi v stejnem stylu jako registracni stranka.
   Stejny gradient + animovane radialni pattern "floating lights". */
.czw-list-wrapper {
    --czw-bg: #0f172a;
    --czw-text: #ffffff;
    --czw-accent: #6366f1;
    --czw-secondary: #ec4899;
    background: var(--czw-bg);
    color: var(--czw-text);
    padding: 60px 20px 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Full-bleed — protáhne pozadí přes celou šířku viewportu, i když je
       shortcode vložený v theme containeru s omezenou šířkou. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

/* Fullscreen background extension (stejny princip jako u registration-wrapperu).
   ::after s fixed positioning prekryje celou obrazovku vcetne theme header/footer.
   Nekolidi s ::before, ktery je pouzity pro dekorativni glow. */
.czw-list-wrapper:not(.czw-list-wrapper--inline)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: inherit;
    pointer-events: none;
}

/* Inline varianta (background="0"): bez full-bleed, bez viewport overflow */
.czw-list-wrapper--inline {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 0 !important;
}

.czw-list-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(236,72,153,0.1) 0%, transparent 50%);
    animation: czw-bg-shift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Header nad gridem — sladeno s hero sekci registrace */
.czw-list__header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.czw-list__badge-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--czw-accent), var(--czw-secondary));
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.czw-list__heading {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.czw-list__subheading {
    font-size: 17px;
    opacity: 0.78;
    line-height: 1.55;
    margin: 0;
    color: #fff;
}

.czw-list {
    --czw-list-accent: var(--czw-accent, #6366f1);
    --czw-list-accent-2: var(--czw-secondary, #ec4899);
    display: grid;
    gap: 24px;
    /* Fixni max sirka sloupce + justify-content center → pri nizsim poctu karet
       nez cilove sloupce se karty vzdy vycentruji misto pripnuti k leve hrane. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    /* Karty se NEnataneji na vysku sousedu (align-self: start na kazde karte).
       Uniformni vzhled zajisti min-height na .czw-list__card. Expanze jedne
       karty (Zobrazit vice) tak neovlivni ostatni. */
    align-items: start;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.czw-list--cols-1 {
    grid-template-columns: minmax(280px, 560px);
    max-width: 600px;
}
.czw-list--cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
    max-width: 920px;
}
.czw-list--cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    max-width: 1260px;
}
.czw-list--cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    max-width: 1320px;
}

.czw-list__empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
}

.czw-list__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #14111f, #0c0a14) !important;
    border: 1px solid rgba(99,102,241,0.25) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.12),
        0 14px 38px -18px rgba(0,0,0,0.6);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
    isolation: isolate;
    /* Jednotna vyska pres vsechny karty (nezavisle na statusu).
       Zaroven se karty nenataneji kvuli expandovanemu sousedovi.
       Expandovana karta (ktera obsahuje otevreny .czw-list__more-btn--open)
       max-height zrusi a roste podle obsahu — viz selektor nize. */
    align-self: start;
    min-height: 580px;
    max-height: 580px;
}
.czw-list__card:has(.czw-list__more-btn--open) {
    max-height: none;
}

.czw-list__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--czw-list-accent), var(--czw-list-accent-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
    z-index: 1;
}

.czw-list__card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.45) !important;
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.3),
        0 0 22px rgba(99,102,241,0.25),
        0 20px 50px -18px rgba(0,0,0,0.55);
}

.czw-list__card:hover::before {
    opacity: 1;
}

.czw-list__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #581c87);
    flex-shrink: 0;
    width: 100%;
}

.czw-list__media img,
.czw-list__card .czw-list__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.czw-list__card:hover .czw-list__media img {
    transform: scale(1.06);
}

.czw-list__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.czw-list__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.czw-list__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.czw-list__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.czw-list__badge-dot--scheduled {
    background: var(--czw-list-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}

.czw-list__badge-dot--live {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
    animation: czwListPulse 2s ease-in-out infinite;
}

@keyframes czwListPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.czw-list__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    color: #fff;
}

.czw-list__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff !important;
    /* Rezervovany prostor pro 2 radky nazvu — kratky nazev stale bere
       misto 2 radku, takze ostatni obsah karty je vzdy na stejne urovni. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
    -webkit-text-fill-color: #fff !important;
    letter-spacing: -0.01em;
    background: none !important;
    text-shadow: none;
}

.czw-list__body {
    color: #fff !important;
}

.czw-list__excerpt {
    color: rgba(255,255,255,0.85) !important;
}

.czw-list__date,
.czw-list__duration {
    color: rgba(255,255,255,0.7) !important;
}

.czw-list__date,
.czw-list__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.czw-list__date svg,
.czw-list__duration svg {
    flex: none;
    color: var(--czw-list-accent);
}

.czw-list__dates {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.czw-list__dates .czw-list__date {
    display: flex;
}

.czw-list__excerpt {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    /* Clamp na 3 radky, aby se tlacitko 'Zobrazit vice' udrzelo ve stejne
       vertikalni pozici napric kartami nezavisle na delce textu. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.55em * 3);
}
/* Rozbalitelny popis webinare */
.czw-list__description {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Pusuneme popis i tlacitko 'Zobrazit vice' ke spodni hrane karty
       (tesne nad CTA, ktere samo ma margin-top:auto) → baseline tlacitka
       je napric vsemi kartami stejna bez ohledu na delku popisu nebo
       poctu metadat. */
    margin-top: auto;
}
.czw-list__description-full {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92) !important;
    animation: czwListDescFade 0.25s ease-out;
}
.czw-list__description-full p,
.czw-list__description-full li,
.czw-list__description-full span,
.czw-list__description-full div {
    color: rgba(255,255,255,0.92) !important;
    opacity: 1 !important;
}
.czw-list__description-full p { margin: 0 0 10px; }
.czw-list__description-full p:last-child { margin-bottom: 0; }
.czw-list__description-full ul,
.czw-list__description-full ol {
    margin: 8px 0;
    padding-left: 22px;
}
.czw-list__description-full li { margin: 3px 0; }
.czw-list__description-full strong,
.czw-list__description-full b {
    color: #fff !important;
    font-weight: 700;
    opacity: 1 !important;
}
.czw-list__description-full em,
.czw-list__description-full i {
    color: rgba(255,255,255,0.95) !important;
    opacity: 1 !important;
}
.czw-list__description-full h1,
.czw-list__description-full h2,
.czw-list__description-full h3,
.czw-list__description-full h4,
.czw-list__description-full h5,
.czw-list__description-full h6 {
    color: #fff !important;
    opacity: 1 !important;
}
.czw-list__description-full a {
    color: var(--czw-list-accent, #6366f1);
    text-decoration: underline;
}
.czw-list__description-full a:hover { filter: brightness(1.2); }
@keyframes czwListDescFade {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.czw-list__more-btn {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin: 4px auto 0;
    background: transparent !important;
    border: 1.5px solid currentColor !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--czw-list-accent, #6366f1);
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: color 0.2s, opacity 0.2s, box-shadow 0.2s;
    /* Prebiji WP theme defaulty pro button focus/active state, ktere pridavaji
       cizi outline (napr. zelenou) kolem naseho pill buttonu. */
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.czw-list__more-btn:hover,
.czw-list__more-btn:active,
.czw-list__more-btn:focus {
    outline: none !important;
    outline-offset: 0 !important;
    opacity: 0.85;
}
/* Pristupnost — jen keyboard focus: subtle soft glow ve vlastni barve,
   ne agresivni outline z theme. Click ho nevyvola (:focus-visible). */
.czw-list__more-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(99,102,241,0.28) !important;
}
.czw-list__more-btn-icon {
    transition: transform 0.25s ease;
}

/* Rozbaleny stav — jiny obvod (secondary barva, pink) bez vyplne */
.czw-list__more-btn--open {
    color: var(--czw-list-accent-2, #ec4899);
}
.czw-list__more-btn--open .czw-list__more-btn-icon {
    transform: rotate(180deg);
}

.czw-list__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--czw-list-accent), var(--czw-list-accent-2));
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform .25s, box-shadow .25s, filter .25s;
    box-shadow: 0 8px 20px -8px rgba(99,102,241,0.6);
}

.czw-list__cta svg {
    transition: transform .25s;
}
.czw-list__cta--preparing {
    background: rgba(148,163,184,0.18) !important;
    color: rgba(255,255,255,0.75) !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 12px 18px;
}
.czw-list__cta--preparing:hover {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.czw-list__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 28px -10px rgba(99,102,241,0.7);
}

.czw-list__cta:hover svg {
    transform: translateX(3px);
}

/* Karty maji vzdy tmavy design — nezavisi na svetle/tmave preferenci theme */

/* ===== LIVE webinar variant — decentni neon ramecek ===== */
.czw-list__card--live {
    --czw-live-1: #ef4444;
    --czw-live-2: #f43f5e;
    background: linear-gradient(180deg, #1a0e14, #0f0a10) !important;
    border: 1px solid rgba(239,68,68,0.55) !important;
    box-shadow:
        0 0 0 1px rgba(239,68,68,0.25),
        0 0 18px rgba(239,68,68,0.35),
        0 0 42px rgba(239,68,68,0.18),
        0 14px 38px -18px rgba(0,0,0,0.6);
    animation: czwLiveNeonPulse 3.2s ease-in-out infinite;
}

.czw-list__card--live::before {
    display: none;
}

.czw-list__card--live:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(239,68,68,0.4),
        0 0 24px rgba(239,68,68,0.5),
        0 0 56px rgba(239,68,68,0.25),
        0 18px 44px -16px rgba(0,0,0,0.65);
}

@keyframes czwLiveNeonPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(239,68,68,0.25),
            0 0 18px rgba(239,68,68,0.35),
            0 0 42px rgba(239,68,68,0.18),
            0 14px 38px -18px rgba(0,0,0,0.6);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(239,68,68,0.45),
            0 0 26px rgba(239,68,68,0.55),
            0 0 60px rgba(239,68,68,0.28),
            0 14px 38px -18px rgba(0,0,0,0.6);
    }
}

/* Decentni neon obvod (misto vyrazne glow halo) */
.czw-list__live-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 22px rgba(239,68,68,0.18);
}

/* Pulsing "ŽIVĚ TEĎ" indicator overlay on thumbnail */
.czw-list__live-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(239,68,68,0.95), rgba(220,38,38,0.95));
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px -8px rgba(239,68,68,0.7), 0 0 0 0 rgba(239,68,68,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.czw-list__live-pulse {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.9);
}

.czw-list__live-pulse::before,
.czw-list__live-pulse--2::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    animation: czwLiveRing 1.6s ease-out infinite;
}

.czw-list__live-pulse--2 {
    position: absolute;
    inset: 0;
    background: transparent;
    box-shadow: none;
}

.czw-list__live-pulse--2::before {
    animation-delay: 0.8s;
}

@keyframes czwLiveRing {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.czw-list__live-text {
    position: relative;
}

/* Diagonal shimmer sweep across the thumbnail */
.czw-list__live-shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: czwLiveShimmer 3.2s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes czwLiveShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

/* Live badge in the corner */
.czw-list__badge--live {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(239,68,68,0.7);
    animation: czwLiveBadgeBlink 2s ease-in-out infinite;
}

@keyframes czwLiveBadgeBlink {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.18); }
}

.czw-list__badge-dot--broadcast {
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: czwLiveDot 1.4s ease-out infinite;
}

@keyframes czwLiveDot {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Date row turns red on live cards */
.czw-list__date--live {
    color: #fca5a5 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.czw-list__date--live svg { color: #ef4444 !important; }

.czw-list__live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
    animation: czwLiveDot 1.4s ease-out infinite;
}

/* CTA — red gradient with ripple */
.czw-list__cta--live {
    position: relative;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 28px -8px rgba(239,68,68,0.7);
    overflow: hidden;
}

.czw-list__cta--live:hover {
    box-shadow: 0 16px 38px -10px rgba(239,68,68,0.85);
}

.czw-list__cta-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
    animation: czwCtaPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes czwCtaPulse {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Live cards keep dark style even in light theme — text always visible */
.czw-list__card--live .czw-list__title,
.czw-list:not(.czw-list--dark) .czw-list__card--live .czw-list__title {
    color: #fff !important;
}
.czw-list__card--live .czw-list__excerpt,
.czw-list:not(.czw-list--dark) .czw-list__card--live .czw-list__excerpt {
    color: rgba(255,255,255,0.72) !important;
}
.czw-list__card--live .czw-list__duration,
.czw-list:not(.czw-list--dark) .czw-list__card--live .czw-list__duration {
    color: rgba(255,255,255,0.65) !important;
}
.czw-list__card--live .czw-list__date--live,
.czw-list:not(.czw-list--dark) .czw-list__card--live .czw-list__date--live {
    color: #fca5a5 !important;
}

/* ============================================
   FULLSCREEN CHAT OVERLAY
   Zobrazuje se uvnitr video kontejneru pri fullscreen
   ============================================ */
.czw-fs-chat {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 80vw;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid rgba(99,102,241,0.3);
    display: none;
    flex-direction: column;
    z-index: 30;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
/* Zobrazit POUZE kdyz je video v FS modu */
.czw-fs-mode .czw-fs-chat {
    display: flex;
}
.czw-fs-mode .czw-fs-chat.czw-fs-chat--visible {
    transform: translateX(0);
}
.czw-fs-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.czw-fs-chat__title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.czw-fs-chat__title svg { color: var(--czw-accent); }
.czw-fs-chat__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: var(--czw-transition);
}
.czw-fs-chat__close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.czw-fs-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}
.czw-fs-chat__messages::-webkit-scrollbar { width: 4px; }
.czw-fs-chat__messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.czw-fs-chat__form {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.czw-fs-chat__input {
    flex: 1;
    height: 38px;
    padding: 0 14px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 13px !important;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    line-height: 38px;
}
.czw-fs-chat__input::placeholder {
    color: rgba(255,255,255,0.4) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.4);
}
.czw-fs-chat__input:focus {
    border-color: var(--czw-accent) !important;
    background: rgba(255,255,255,0.12) !important;
}
.czw-fs-chat__send {
    padding: 8px 12px;
    background: var(--czw-accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--czw-transition);
}
.czw-fs-chat__send:hover { filter: brightness(1.15); }

/* Toggle tlacitko aktivni stav */
#czw-fs-chat-toggle.czw-fs-chat-toggle--active {
    background: rgba(99,102,241,0.85) !important;
}

/* Blink animace — 5x pulzne (upozornuje divaka, ze chat existuje)
   po 5s od vstupu do fullscreenu. Delka: 5 iteraci × 0.5s = 2.5s. */
@keyframes czwFsChatBlink {
    0%, 100% {
        transform: scale(1);
        background: rgba(0,0,0,0.6) !important;
        box-shadow: none;
    }
    50% {
        transform: scale(1.18);
        background: rgba(99,102,241,0.95) !important;
        box-shadow: 0 0 24px rgba(99,102,241,0.8), 0 0 48px rgba(99,102,241,0.4);
    }
}
#czw-fs-chat-toggle.czw-fs-chat-toggle--blink {
    animation: czwFsChatBlink 0.5s ease-in-out 5;
}

/* Mobil — chat zabira spodek namisto strany */
@media (max-width: 640px) {
    .czw-fs-chat {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 50%;
        max-height: 50%;
        border-left: none;
        border-top: 1px solid rgba(99,102,241,0.3);
        transform: translateY(100%);
    }
    .czw-fs-mode .czw-fs-chat.czw-fs-chat--visible {
        transform: translateY(0);
    }
}

/* ============================================
   PSEUDO-FULLSCREEN (iOS Safari fallback)
   ============================================ */
/* Pseudo-fullscreen: prepisuje VSECHNY mobilni/desktop styly.
   Pouziva #id selector pro vyssi specificitu nez tridy. */
.czw-pseudo-fs,
#czw-video-container.czw-pseudo-fs {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    z-index: 999999 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    order: unset !important;
    flex-shrink: 0 !important;
}
.czw-pseudo-fs .czw-video-embed,
#czw-video-container.czw-pseudo-fs .czw-video-embed {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.czw-pseudo-fs .czw-video-embed--yt-clean {
    overflow: hidden !important;
}
.czw-pseudo-fs iframe,
.czw-pseudo-fs video,
.czw-pseudo-fs #czw-yt-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
/* Skryj loading overlay v pseudo-fs */
.czw-pseudo-fs .czw-video-loading {
    display: none !important;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES (v1.0.81)
   Tablety <=900px, telefony <=640px, male telefony <=400px
   ============================================ */

/* ---------- TABLET / MENSI DESKTOP (<=900px) ---------- */
@media (max-width: 900px) {
    /* Header — grid zachovan, titulek centrovany */
    .czw-room__header {
        grid-template-columns: auto 1fr auto;
    }
    .czw-room__title {
        text-align: center;
    }
    .czw-room__header-center {
        min-width: 0;
        overflow: hidden;
    }
    /* Webinar room — sidebar fix pod video, CTA pod sidebarem */
    .czw-room {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }
    /* Prepneme grid na flex column. Video je nahoře fixně vysoke (16:9),
       sidebar pod ním zabere zbytek viewportu a chat/Q&A/ankety maji
       vlastni vnitřní scroll → auto-scroll na nejnovejsi zpravu funguje. */
    .czw-room__main {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        overflow: hidden;
        min-height: 0;
    }
    /* display:contents zplostí .czw-room__content tak, aby jeho deti
       (video, CTA, description) byly primimi detmi flex containeru */
    .czw-room__content {
        display: contents;
    }
    .czw-room__video {
        order: 1;
        flex-shrink: 0;
        background: #000;
    }
    .czw-room__sidebar {
        order: 2;
        border-left: none;
        border-top: 1px solid var(--czw-border);
        border-bottom: 1px solid var(--czw-border);
        width: auto;
        /* Sidebar zabere zbytek mista pod videem; panely uvnitr maji vlastni scroll. */
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        overflow: hidden;
    }
    .czw-cta-frame {
        order: 3;
        min-height: 0 !important;
        padding: 0 !important;
    }
    .czw-desc-modal-overlay {
        order: 4;
    }
}

/* ---------- TELEFON (<=640px) ---------- */
@media (max-width: 640px) {
    /* === ROOM HEADER === */
    .czw-room__header {
        padding: 8px 12px;
        gap: 8px;
    }
    .czw-room__header-right { gap: 8px; }
    .czw-room__title {
        display: none !important;
    }
    .czw-room__live-badge {
        font-size: 10px;
        gap: 4px;
    }
    .czw-live-time { display: none; }
    .czw-room__viewers {
        font-size: 11px;
        gap: 4px;
    }
    .czw-room__viewers svg { width: 13px; height: 13px; }

    /* === VIDEO === */
    .czw-room__video { padding: 0; }
    .czw-video-embed {
        padding-top: 56.25%;
        border-radius: 0;
    }

    /* === CTA BANNER === */
    .czw-cta-frame { padding: 0 !important; min-height: 0 !important; }
    .czw-cta-banner {
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }

    /* === SIDEBAR === */
    .czw-room__sidebar {
        height: 55vh;
        min-height: 200px;
    }
    .czw-sidebar__tabs {
        -webkit-overflow-scrolling: touch;
    }
    .czw-sidebar__tab {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
        min-height: 44px; /* touch target */
    }
    .czw-sidebar__tab svg { width: 14px; height: 14px; }
    .czw-sidebar__panel {
        padding: 0;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* === CHAT MESSAGES === */
    .czw-chat__messages,
    .czw-qa__list,
    .czw-polls__list,
    .czw-attendees__list {
        padding: 10px;
        font-size: 13px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* === FOOTER (action bar + chat input) === */
    .czw-room__footer {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px 14px;
        margin-bottom: 0;
    }
    /* Mobilni poradi v footer: O webinari (tlacitka) → Powered by → chat input.
       Chat input je diky order:3 az uplne dole → u spodni hrany obrazovky. */
    .czw-room__footer-left { order: 1; }
    .czw-room__powered-by {
        order: 2;
        position: static;
        transform: none;
        text-align: center;
        padding: 8px 0;
        white-space: normal;
        font-size: 11px;
    }
    .czw-room__footer-right { order: 3; }
    .czw-room__footer-left {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .czw-room__footer-right {
        gap: 6px;
        justify-content: stretch;
    }
    .czw-room__footer-right .czw-chat__input {
        max-width: none;
        flex: 1;
        min-height: 42px;
        font-size: 14px !important; /* >=16px ne — uz je 14, ale brani auto-zoomu jen pri 16+ */
    }
    /* Zabran auto-zoomu na iOS pri focusu inputu */
    .czw-room__footer-right .czw-chat__input,
    .czw-form-input,
    .czw-qa__input,
    .czw-fs-chat__input {
        font-size: 16px !important;
    }
    .czw-chat__send {
        min-height: 42px;
        padding: 0 12px;
    }
    .czw-chat__send span { display: none; } /* Jen ikonka */

    /* Action buttons — kompaktni, jen ikona pokud nutne */
    .czw-action-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 40px;
    }
    .czw-offer-timer {
        padding: 6px 10px;
        font-size: 11px;
    }
    .czw-room__online-indicator {
        font-size: 11px;
    }

    /* === DESCRIPTION MODAL === */
    .czw-desc-modal {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: 85vh;
        margin: 12px;
    }
    .czw-desc-modal__body {
        padding: 16px;
        font-size: 14px;
    }

    /* === EXIT POPUP === */
    .czw-exit-popup__content {
        padding: 28px 20px;
        margin: 16px;
        max-width: calc(100vw - 32px);
    }
    .czw-exit-popup__content h2 {
        font-size: 20px;
    }

    /* === HOST BAR === */
    .czw-host-bar {
        bottom: 8px;
        left: 8px;
        right: 8px;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 10px;
        gap: 6px;
    }
    .czw-host-bar__label {
        font-size: 10px;
        padding-right: 8px;
    }
    .czw-host-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 38px;
    }

    /* === REGISTRATION PAGE === */
    .czw-registration-wrapper {
        padding: 20px 12px;
    }
    .czw-reg-form-wrapper {
        padding: 0;
    }
    .czw-reg-form {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .czw-reg-form__title {
        font-size: 22px;
    }
    .czw-form-group { margin-bottom: 14px; }
    .czw-form-input,
    .czw-form-select {
        min-height: 48px;
        font-size: 16px !important; /* iOS zoom prevent */
    }
    .czw-reg-btn {
        min-height: 50px;
        font-size: 16px;
        padding: 14px 20px;
    }
    .czw-login-form {
        padding: 24px 18px;
        border-radius: 16px;
    }

    /* === COUNTDOWN === */
    .czw-countdown {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .czw-countdown__item {
        padding: 10px 12px;
        min-width: 56px;
    }
    .czw-countdown__value { font-size: 22px; }
    .czw-countdown__label { font-size: 10px; }

    /* === WAITING ROOM === */
    .czw-waiting-room {
        padding: 24px 16px;
    }
    .czw-waiting-countdown {
        gap: 6px;
    }
    .czw-waiting-countdown__item {
        min-width: 56px;
        padding: 12px 8px;
    }
    .czw-waiting-countdown__value { font-size: 26px; }
    .czw-waiting-countdown__sep { font-size: 22px; }
    .czw-waiting-room__info {
        flex-direction: column;
        gap: 6px;
    }

    /* === PASSWORD GATE === */
    .czw-password-gate {
        padding: 24px 16px;
        min-height: 50vh;
    }
    .czw-password-gate__card {
        padding: 28px 20px;
    }

    /* === LIST GRID (cz-webinar shortcode) — vzdy 1 sloupec === */
    .czw-list--cols-2,
    .czw-list--cols-3,
    .czw-list--cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ---------- MALE TELEFONY (<=400px) ---------- */
@media (max-width: 400px) {
    .czw-room__header { padding: 6px 10px; }
    .czw-room__title { font-size: 12px; }

    /* Action buttons — kompaktni, labels zachovat aby nebylo orphan ikona */
    .czw-action-btn {
        padding: 6px 10px;
        min-width: 0;
        font-size: 11px;
        justify-content: center;
    }
    .czw-action-btn svg { width: 14px; height: 14px; }

    /* Sidebar tab — zkratit text */
    .czw-sidebar__tab {
        padding: 10px 8px;
        font-size: 11px;
    }

    .czw-cta-banner {
        padding: 10px 12px;
        font-size: 13px;
    }

    .czw-reg-form { padding: 20px 14px; }
    .czw-reg-form__title { font-size: 20px; }
}

/* ---------- LANDSCAPE TELEFON (vyska <=500px) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .czw-room {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }
    .czw-room__header {
        padding: 4px 12px !important;
        min-height: 0 !important;
    }
    .czw-room__header .czw-room__title { font-size: 12px !important; }
    .czw-room__footer {
        padding: 4px 10px !important;
        flex-direction: row !important;
        gap: 6px !important;
        margin-bottom: 0 !important; /* v landscape fs bez extra prostoru */
    }
    .czw-room__footer-left { display: none !important; }
    .czw-room__footer-right .czw-chat__input {
        min-height: 32px !important;
        font-size: 13px !important;
    }
    .czw-chat__send { min-height: 32px !important; }

    /* V landscape přepneme na side-by-side layout — video vlevo, sidebar vpravo */
    .czw-room__main {
        display: grid !important;
        grid-template-columns: 1fr minmax(200px, 35%) !important;
        flex-direction: unset !important;
        overflow: hidden !important;
    }
    /* Zrus display:contents na mobilu — v landscape potrebujeme content jako kontejner */
    .czw-room__content {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .czw-room__video {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        order: unset !important;
        flex-shrink: 1 !important;
        position: relative !important;
    }
    .czw-room__video .czw-video-embed {
        padding-top: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    .czw-room__sidebar {
        order: unset !important;
        min-height: 0 !important;
        max-height: 100% !important;
        height: auto !important;
        border-top: none !important;
        border-left: 1px solid var(--czw-border) !important;
        overflow-y: auto !important;
    }
    .czw-sidebar__tabs {
        flex-wrap: nowrap !important;
    }
    .czw-sidebar__tab {
        padding: 6px 4px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        gap: 2px !important;
    }
    .czw-sidebar__tab svg { width: 12px !important; height: 12px !important; }
    .czw-sidebar__tab span:not(.czw-sidebar__badge) { display: none !important; }
    .czw-sidebar__badge { font-size: 9px !important; min-width: 14px !important; height: 14px !important; }
    .czw-cta-frame { display: none !important; }
    .czw-video-loading { display: none !important; }
}

/* ---------- TOUCH ZARIZENI (jakakoliv sirka) ---------- */
@media (hover: none) and (pointer: coarse) {
    /* Zvets vsechny tlacitka pro touch */
    .czw-action-btn,
    .czw-host-btn,
    .czw-sidebar__tab,
    .czw-chat__send,
    .czw-qa__send,
    .czw-poll-vote-btn {
        min-height: 44px;
    }
    /* Zruš hover efekty na touch */
    .czw-action-btn:hover,
    .czw-host-btn:hover,
    .czw-cta-banner:hover {
        transform: none;
    }
}

/* =====================================================
   HOST MODE — bezposuvnikove dynamicke rozlozeni (1.7.48)
   Video + CTA se vejde do viewport bez scrollu, video
   respektuje 16:9 a skaluje se podle dostupneho prostoru.
   ===================================================== */
@media (min-width: 901px) {
    .czw-room--host .czw-room__content {
        overflow: hidden;
        min-height: 0;
        flex: 1 1 auto;
    }
    .czw-room--host .czw-room__video {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .czw-room--host .czw-video-embed {
        padding-top: 0;
        width: auto;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        aspect-ratio: 16 / 9;
    }
    /* Fullscreen button vratit dovnitr videa (nema misto pod nim) */
    .czw-room--host #czw-fs-btn {
        bottom: 12px !important;
        right: 12px !important;
    }
    .czw-room--host .czw-cta-frame {
        flex-shrink: 0;
    }
    /* Sidebar muze mit vlastni scroll uvnitr panelu, ale ne na urovni mistnosti */
    .czw-room--host {
        overflow: hidden;
    }
}

/* Contenteditable placeholder (univerzalni pro vsechny in-room inputy
   prevedene na <div contenteditable> — brani iOS autofill nabidce).
   Prazdnost urcujeme pres data-empty="true" (JS). :empty selektor
   nefunguje spolehlive, protoze contenteditable vklada <br>. */
.czw-qa__input[data-empty="true"]::before,
.czw-host-name-popup__input[data-empty="true"]::before,
.czw-attendee-name-popup__input[data-empty="true"]::before,
.czw-chat__input[data-empty="true"]::before {
    content: attr(data-placeholder);
    pointer-events: none;
    display: inline-block;
    opacity: 0.55;
}
.czw-qa__input[contenteditable="true"],
.czw-host-name-popup__input[contenteditable="true"],
.czw-attendee-name-popup__input[contenteditable="true"],
.czw-chat__input[contenteditable="true"] {
    cursor: text;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-y: auto;
}
/* Specificke min-height pro contenteditable — bez nich se div sbalí na 0 */
.czw-qa__input[contenteditable="true"] {
    min-height: 46px;
    line-height: 1.4;
}
.czw-host-name-popup__input[contenteditable="true"],
.czw-attendee-name-popup__input[contenteditable="true"] {
    min-height: 46px;
    line-height: 1.4;
}

/* =====================================================
   Admin toggly: skryti "O webinari" a "Powered by" na mobilu.
   Trigger: uzka sirka (portrait) NEBO nizka vyska (landscape mobile)
   NEBO coarse pointer (touch zarizeni). Pokryje vsechny mobilni scenare.
   ===================================================== */
@media (max-width: 640px), (max-height: 500px), (pointer: coarse) and (max-width: 1024px) {
    .czw-room--mobile-hide-about #czw-desc-toggle { display: none !important; }
    .czw-room--mobile-hide-powered-by .czw-room__powered-by { display: none !important; }
}
