/* Demo host — iframes dos portais reais com dados fictícios */

html:has(body.demo-host),
body.demo-host {
    height: 100dvh;
    margin: 0;
    overflow: hidden;
}

.demo-host {
    background: #0a0c10;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar + iframe em flex (sem position:fixed — evita camadas/altura errada) */
.demo-topbar {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    background: #0a0c10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-frame {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: none;
    background: #0f1115;
    display: block;
}
.demo-frame[hidden] { display: none; }

.demo-topbar-left,
.demo-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.demo-topbar-right {
    justify-content: flex-end;
}

.demo-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
}
.demo-back:hover { background: rgba(255,255,255,.06); color: #f1f5f9; }
.demo-back svg { width: 18px; height: 18px; }

.demo-logo img { height: 22px; display: block; }

.demo-live-badge {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    padding: 4px 10px;
    border-radius: 20px;
}
@media (min-width: 900px) { .demo-live-badge { display: inline-flex; } }

.demo-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #a78bfa;
}

.demo-persona-switch {
    display: flex;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.demo-persona-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.demo-persona-btn.is-active {
    background: #8b5cf6;
    color: #fff;
}

.demo-sync {
    display: none;
    font-size: 0.72rem;
    color: #64748b;
}
@media (min-width: 768px) { .demo-sync { display: inline; } }

.demo-reset-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}
.demo-reset-btn:hover { border-color: rgba(139,92,246,.4); color: #e2e8f0; }

.demo-player-video-el,
.demo-player-video .b2b-lesson-video {
    width: 100%;
    max-height: 50vh;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
    margin-bottom: 12px;
}

.demo-player-video-desc { margin-top: 0; }

.demo-player-video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #e2e8f0;
}
.demo-player-video-placeholder span { font-size: 2.5rem; opacity: 0.85; }

.demo-player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.demo-player-question {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.demo-player-options { list-style: none; margin: 8px 0 0; padding: 0; }
.demo-player-options li { margin: 6px 0; }
