/* Webinar SaaS - Public pages */
* { box-sizing: border-box; }
body.wsaas-reg, body.wsaas-waiting, body.wsaas-room, body.wsaas-replay {
	margin: 0;
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: #0f172a;
	background: #0b1220;
	overflow-x: hidden;
}

.wsaas-float-decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.wsaas-float-decor .dec { position: absolute; width: 90px; height: 90px; opacity: .9; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.wsaas-float-decor .dec.a { top: 8%; left: 4%; animation: wsaasBob 5s ease-in-out infinite; }
.wsaas-float-decor .dec.b { top: 18%; right: 6%; animation: wsaasBob 6s ease-in-out infinite .5s; }
.wsaas-float-decor .dec.c { bottom: 16%; left: 10%; animation: wsaasBob 4.5s ease-in-out infinite .8s; }
.wsaas-float-decor .dec.d { bottom: 10%; right: 8%; animation: wsaasBob 5.5s ease-in-out infinite .2s; }
@keyframes wsaasBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

.rp-wrap, .wait-wrap, .room-layout, .replay-wrap { position: relative; z-index: 1; }
.rp-form-card { animation: rpRise .7s ease both; }
@keyframes rpRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.wait-ring { width: 120px; height: 120px; margin-bottom: 10px; }
.wait-progress { transform-origin: 60px 60px; animation: waitSpin 8s linear infinite; }
@keyframes waitSpin { to { transform: rotate(360deg); } }
.wait-icons { display: flex; gap: 14px; margin-top: 22px; justify-content: center; }
.wait-icons svg { width: 48px; height: 48px; animation: wsaasBob 4s ease-in-out infinite; }
.wait-icons svg:nth-child(2) { animation-delay: .3s; }
.wait-icons svg:nth-child(3) { animation-delay: .6s; }

body.wsaas-reg, body.wsaas-waiting { overflow-x: hidden; }

.rp-wrap {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: center;
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,.16), transparent 55%),
		radial-gradient(900px 500px at 90% 110%, rgba(0,0,0,.22), transparent 50%),
		var(--wsaas-bg, #1a237e);
	color: var(--wsaas-fg, #fff);
	padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 64px);
}
.rp-content { max-width: 640px; }
.rp-content h1 {
	font-family: Fraunces, Georgia, serif;
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 14px;
	color: var(--wsaas-fg, #fff);
	text-wrap: balance;
}
.rp-desc {
	margin: 0 0 18px;
	font-size: 1.08rem;
	line-height: 1.55;
	color: var(--wsaas-fg-muted, rgba(255,255,255,.88));
	max-width: 36rem;
}
.rp-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.rp-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.18);
	font-weight: 600;
	font-size: .84rem;
}
.rp-live-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52,211,153,.25);
	animation: rpPulse 1.8s ease infinite;
}
@keyframes rpPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.45); }
	70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}
.rp-chip {
	display: inline-flex;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(0,0,0,.18);
	border: 1px solid rgba(255,255,255,.12);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
}
.rp-logo img { max-height: 52px; margin-bottom: 18px; display: block; }
.rp-thumb {
	margin: 0 0 20px;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
	border: 1px solid rgba(255,255,255,.16);
}
.rp-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}
.rp-presenter {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0;
	padding: 10px 14px;
	background: rgba(15,23,42,.55);
	backdrop-filter: blur(8px);
}
.rp-presenter-solo {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(255,255,255,.12);
	margin: 0 0 16px;
}
.rp-presenter-label { font-size: .78rem; opacity: .8; }
.rp-presenter strong { font-size: .95rem; }
.rp-bullets {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 10px;
}
.rp-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	line-height: 1.45;
	font-weight: 500;
	color: var(--wsaas-fg, #fff);
}
.rp-check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--wsaas-accent, #1a73e8);
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
	position: relative;
}
.rp-check::after {
	content: "";
	position: absolute;
	left: 5px; top: 3px;
	width: 5px; height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.rp-timer {
	display: inline-flex;
	align-items: center;
	margin-top: 4px;
	padding: .65rem 1rem;
	border-radius: 999px;
	background: rgba(251,191,36,.18);
	border: 1px solid rgba(251,191,36,.35);
	color: #fde68a;
	font-weight: 700;
	font-size: .92rem;
}
.rp-form-card {
	background: #fff;
	color: #0f172a;
	padding: clamp(22px, 3vw, 32px);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28);
	width: 100%;
	max-width: 420px;
	justify-self: end;
	border: 1px solid rgba(255,255,255,.35);
}
.rp-form-head { margin-bottom: 16px; }
.rp-form-head h2 {
	margin: 0 0 6px;
	font-family: Fraunces, Georgia, serif;
	font-size: 1.45rem;
	line-height: 1.2;
	color: #0f172a;
}
.rp-form-head p {
	margin: 0;
	color: #64748b;
	font-size: .92rem;
	line-height: 1.45;
}
.rp-field { display: block; margin-bottom: .85rem; }
.rp-field span {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: #475569;
	margin-bottom: 6px;
}
.form-control {
	width: 100%;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: .8rem 1rem;
	margin-bottom: 0;
	font-size: .95rem;
	background: #fff;
	color: #0f172a;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
	outline: none;
	border-color: var(--wsaas-accent, #1a73e8);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsaas-accent, #1a73e8) 25%, transparent);
}
.rp-btn {
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 1rem 1.1rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--wsaas-btn-fg, #fff);
	background: var(--wsaas-btn, #ff6f00);
	cursor: pointer;
	margin-top: 4px;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--wsaas-btn, #ff6f00) 35%, transparent);
	transition: transform .15s ease, filter .15s ease;
}
.rp-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.rp-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.rp-btn-alt {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: .8rem 1rem;
	border: 1.5px dashed #cbd5e1;
	border-radius: 12px;
	background: transparent;
	color: #334155;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.rp-btn-alt:hover { border-color: var(--wsaas-btn, #ff6f00); color: #0f172a; }
.rp-btn-alt:disabled { opacity: .7; cursor: wait; }
.rp-clock {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 16px;
	padding: .7rem 1rem;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}
.rp-clock-label { font-size: .88rem; font-weight: 600; }
.rp-clock-time {
	font-size: 1.35rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	color: #c2410c;
}
.rp-trust {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: center;
}
.rp-trust li {
	font-size: .72rem;
	font-weight: 600;
	color: #64748b;
	position: relative;
	padding-left: 12px;
}
.rp-trust li::before {
	content: "";
	position: absolute;
	left: 0; top: 5px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #34d399;
}
.rp-err { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; }

/* Template variants */
body.wsaas-tpl-split .rp-wrap { grid-template-columns: 1fr 1fr; }
body.wsaas-tpl-split .rp-form-card { justify-self: stretch; max-width: none; }

body.wsaas-tpl-minimal {
	background: #f1f5f9;
	color: #0f172a;
}
body.wsaas-tpl-minimal .rp-wrap {
	background:
		radial-gradient(900px 500px at 0% 0%, rgba(56,189,248,.18), transparent 55%),
		linear-gradient(180deg, #f8fafc, #e2e8f0);
	color: #0f172a;
}
body.wsaas-tpl-minimal .rp-content h1,
body.wsaas-tpl-minimal .rp-desc,
body.wsaas-tpl-minimal .rp-bullets li,
body.wsaas-tpl-minimal .rp-presenter strong { color: #0f172a; }
body.wsaas-tpl-minimal .rp-desc { color: #334155; }
body.wsaas-tpl-minimal .rp-badge,
body.wsaas-tpl-minimal .rp-chip {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}
body.wsaas-tpl-minimal .rp-timer {
	background: #fff7ed;
	border-color: #fdba74;
	color: #9a3412;
}
body.wsaas-tpl-minimal .rp-form-card {
	box-shadow: 0 16px 40px rgba(15,23,42,.1);
	border-color: #e2e8f0;
}
body.wsaas-tpl-minimal .rp-presenter {
	background: rgba(255,255,255,.92);
	color: #0f172a;
}

/* Auto contrast when owner picks a light page background */
body.wsaas-on-light .rp-wrap,
body.wsaas-on-light.wsaas-tpl-hero .rp-wrap,
body.wsaas-on-light.wsaas-tpl-urgency .rp-wrap,
body.wsaas-on-light.wsaas-tpl-classic .rp-wrap,
body.wsaas-on-light.wsaas-tpl-split .rp-wrap,
body.wsaas-on-light.wsaas-tpl-webinar .rp-wrap {
	color: #0f172a;
}
body.wsaas-on-light .rp-content h1,
body.wsaas-on-light .rp-bullets li,
body.wsaas-on-light .rp-presenter strong { color: #0f172a; }
body.wsaas-on-light .rp-desc { color: #334155; }
body.wsaas-on-light .rp-badge,
body.wsaas-on-light .rp-chip {
	background: rgba(15,23,42,.06);
	border-color: rgba(15,23,42,.12);
	color: #0f172a;
}
body.wsaas-on-light .rp-check { background: #059669; }
body.wsaas-on-light .rp-timer {
	background: #fff7ed;
	border-color: #fdba74;
	color: #9a3412;
}
body.wsaas-on-light .rp-presenter {
	background: rgba(255,255,255,.92);
	color: #0f172a;
}
body.wsaas-btn-on-light .rp-btn,
body.wsaas-btn-on-light .cta-btn {
	color: #0f172a !important;
	border: 1px solid rgba(15,23,42,.18);
}

body.wsaas-on-light .wsaas-sp-watching,
body.wsaas-on-light .wsaas-sp-joins,
body.wsaas-on-light .wsaas-sp-quote {
	background: rgba(15,23,42,.06);
	border-color: rgba(15,23,42,.12);
	color: #0f172a;
}
body.wsaas-on-light .wsaas-sp-joins-label,
body.wsaas-on-light .wsaas-sp-quote figcaption { color: #475569; }

body.wsaas-tpl-hero .rp-wrap {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	background:
		radial-gradient(800px 420px at 50% -10%, rgba(255,255,255,.2), transparent 60%),
		linear-gradient(145deg, var(--wsaas-bg), var(--wsaas-accent));
}
body.wsaas-tpl-hero .rp-content { max-width: 760px; }
body.wsaas-tpl-hero .rp-meta-row,
body.wsaas-tpl-hero .rp-bullets { justify-content: center; }
body.wsaas-tpl-hero .rp-bullets { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
body.wsaas-tpl-hero .rp-desc { margin-left: auto; margin-right: auto; }
body.wsaas-tpl-hero .rp-form-card { justify-self: center; margin-top: 8px; }

body.wsaas-tpl-urgency .rp-wrap {
	background:
		radial-gradient(700px 400px at 80% 0%, rgba(239,68,68,.28), transparent 55%),
		#0b1220;
}
body.wsaas-tpl-urgency .rp-timer {
	font-size: 1rem;
	padding: .8rem 1.2rem;
	background: rgba(239,68,68,.2);
	border-color: rgba(248,113,113,.45);
	color: #fecaca;
	animation: rpUrgency 2.4s ease-in-out infinite;
}
@keyframes rpUrgency {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.03); }
}

body.wsaas-tpl-classic .rp-wrap {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	padding-top: clamp(40px, 8vh, 80px);
}
body.wsaas-tpl-classic .rp-content { max-width: 680px; }
body.wsaas-tpl-classic .rp-meta-row { justify-content: center; }
body.wsaas-tpl-classic .rp-bullets { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
body.wsaas-tpl-classic .rp-desc { margin-left: auto; margin-right: auto; }
body.wsaas-tpl-classic .rp-form-card { justify-self: center; width: min(100%, 420px); }

body.wsaas-tpl-webinar .rp-thumb { max-width: 560px; }
body.wsaas-tpl-webinar .rp-content h1 { max-width: 18ch; }

@media (max-width: 900px) {
	.rp-wrap {
		grid-template-columns: 1fr !important;
		align-items: stretch;
		padding: 28px 18px 40px;
	}
	.rp-form-card {
		justify-self: stretch;
		max-width: none;
		margin: 0;
	}
	body.wsaas-tpl-classic .rp-content,
	body.wsaas-tpl-hero .rp-content { text-align: left; }
	body.wsaas-tpl-classic .rp-meta-row,
	body.wsaas-tpl-hero .rp-meta-row { justify-content: flex-start; }
}

.wait-wrap, .replay-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	color: #fff;
	background: radial-gradient(circle at top, #1e293b, #020617 70%);
}
.wait-thumb img { max-width: 420px; width: 100%; border-radius: 14px; margin-bottom: 18px; }
.wait-countdown {
	font-size: clamp(2.4rem, 8vw, 4.5rem);
	font-weight: 800;
	letter-spacing: .04em;
	margin: 12px 0 18px;
}
.wait-note { opacity: .75; }
.wait-start-at { margin: 8px 0 0; font-size: 14px; opacity: .85; font-weight: 600; }

.room-layout {
	min-height: 100vh;
	height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	display: grid;
	grid-template-columns: 1fr minmax(300px, 360px);
	background: #0b1220;
	color: #e2e8f0;
	overflow: hidden;
}
.room-main {
	padding: 16px;
	overflow-y: auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}
.room-player {
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16/9;
}
.room-player video, .room-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.wsaas-player-stage.is-chrome-hidden iframe {
	pointer-events: none;
}
.wsaas-player-shield {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
	cursor: default;
}
.wsaas-unmute-btn {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 3;
	border: 0;
	border-radius: 999px;
	padding: 12px 20px;
	font-weight: 700;
	font-size: .95rem;
	background: rgba(15,23,42,.88);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0,0,0,.35);
	border: 1px solid rgba(255,255,255,.18);
}
.wsaas-unmute-btn:hover { background: #0f172a; }
.autoplay-overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55);
	z-index: 3;
}
.room-start-btn {
	border: 0; border-radius: 999px; padding: 14px 24px;
	font-weight: 700; cursor: pointer; background: #fff; color: #0f172a;
}
.offer-box {
	margin-top: 16px;
	background: #111827;
	border: 1px solid #1f2937;
	border-radius: 12px;
	padding: 18px;
	color: #e2e8f0;
}
.offer-box.offer-reveal { animation: offerIn .45s ease; }
@keyframes offerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.offer-kicker {
	margin: 0 0 8px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fbbf24;
}
.offer-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.25;
	color: #f8fafc;
}
.offer-desc {
	margin: 0 0 12px;
	color: #cbd5e1;
	line-height: 1.5;
}
.offer-bullets {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 8px;
}
.offer-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #e2e8f0;
	line-height: 1.4;
}
.offer-check {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: #059669;
	position: relative;
}
.offer-check::after {
	content: "";
	position: absolute;
	left: 6px; top: 3px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.offer-banner { width: 100%; border-radius: 8px; margin-bottom: 12px; }
.cta-btn {
	display: inline-block;
	margin-top: 12px;
	background: #f97316;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 8px;
}
.offer-timer {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 4px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(251,191,36,.12);
	border: 1px solid rgba(251,191,36,.35);
	color: #fbbf24;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: .01em;
}
.room-chat {
	border-left: 1px solid #1f2937;
	display: flex;
	flex-direction: column;
	background: #0f172a;
	min-height: 0;
	height: 100%;
	max-height: 100%;
}
.chat-header { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid #1f2937; flex-shrink: 0; }
.chat-stream { flex: 1; overflow: auto; padding: 12px 14px; min-height: 0; -webkit-overflow-scrolling: touch; }
.chat-line { margin-bottom: 10px; font-size: 14px; line-height: 1.4; color: #e2e8f0; }
.chat-line strong { color: #f1f5f9; }
.chat-line.me strong { color: #38bdf8; }
.chat-line.ai strong { color: #a78bfa; }
.chat-line.scripted strong { color: #34d399; }
.chat-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #1f2937;
	background: #0f172a;
	flex-shrink: 0;
	position: sticky;
	bottom: 0;
	z-index: 2;
}
.chat-form input {
	flex: 1; border-radius: 8px; border: 1px solid #334155;
	background: #111827; color: #f8fafc; padding: 10px 12px;
}
.chat-form input::placeholder { color: #94a3b8; }
.chat-form button {
	border: 0; border-radius: 8px; background: #2563eb; color: #fff;
	font-weight: 600; padding: 0 14px; cursor: pointer;
}
.poll-box { padding: 10px 14px; border-top: 1px solid #1f2937; background: #111827; }
.poll-opt, .poll-box button {
	display: block; width: 100%; margin: 6px 0; border: 1px solid #334155;
	background: #0b1220; color: #e2e8f0; border-radius: 8px; padding: 8px; cursor: pointer;
}
.poll-input { width: 100%; margin: 8px 0; padding: 8px; border-radius: 8px; border: 1px solid #334155; background: #0b1220; color: #fff; }
.poll-box button:disabled { opacity: .6; cursor: default; }
.poll-box-main { margin-top: 14px; border: 1px solid #1f2937; border-radius: 12px; }
.poll-box.is-quiz { box-shadow: inset 3px 0 0 #a78bfa; }
.poll-kicker {
	margin: 0 0 6px;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a78bfa;
}
.poll-results { display: grid; gap: 8px; margin: 10px 0 4px; }
.poll-result-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #cbd5e1; }
.poll-result-top strong { color: #f8fafc; }
.poll-result-bar { height: 6px; margin-top: 4px; border-radius: 999px; background: #1f2937; overflow: hidden; }
.poll-result-bar span { display: block; height: 100%; border-radius: inherit; background: #38bdf8; transition: width .6s ease; }
.poll-result.is-correct .poll-result-top span { color: #34d399; font-weight: 700; }
.poll-result.is-correct .poll-result-bar span { background: #10b981; }
.poll-verdict { margin: 8px 0 2px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.poll-verdict.is-right { background: rgba(16,185,129,.14); color: #6ee7b7; }
.poll-verdict.is-wrong { background: rgba(248,113,113,.12); color: #fca5a5; }
.poll-verdict.is-wrong strong { color: #fecaca; }
.poll-room-line { margin-top: 6px; font-size: 13px; color: #cbd5e1; }
.poll-score { margin-top: 4px; font-size: 13px; font-weight: 700; color: #fbbf24; }
.poll-box .poll-close { width: auto; display: inline-block; margin-top: 10px; padding: 6px 14px; font-size: 13px; }

/* Room moments: resources strip, reactions, toasts */
.wsaas-room-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 12px;
}
.wsaas-room-resources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.wsaas-room-resources[hidden] { display: none; }
.wsaas-room-resources-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.wsaas-room-resources-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wsaas-room-resource {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 280px;
	padding: 6px 12px 6px 8px;
	border-radius: 999px;
	border: 1px solid #334155;
	background: #111827;
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 600;
	animation: offerIn .35s ease;
}
.wsaas-room-resource:hover { border-color: #38bdf8; }
.wsaas-room-resource-link { flex: 0 0 auto; color: #38bdf8 !important; font-weight: 700; text-decoration: none; }
.wsaas-room-resource-link:hover { text-decoration: underline; }
.wsaas-room-resource-ico {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0ea5e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4-4m4 4 4-4M5 20h14'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.wsaas-room-resource-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsaas-rx-bar { display: flex; gap: 6px; margin-left: auto; }
.wsaas-rx-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #334155;
	background: #111827;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease;
}
.wsaas-rx-btn:hover { border-color: #64748b; transform: translateY(-2px); }
.wsaas-rx-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.wsaas-rx-btn.is-pop { animation: wsaasRxPop .3s ease; }
@keyframes wsaasRxPop { 50% { transform: scale(1.25); } }
.wsaas-rx-layer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 90px;
	z-index: 4;
	pointer-events: none;
	overflow: hidden;
}
.wsaas-rx-float {
	position: absolute;
	bottom: 8px;
	font-size: 26px;
	line-height: 1;
	opacity: 0;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
	animation: wsaasRxFloat 2.6s ease-out forwards;
}
@keyframes wsaasRxFloat {
	0% { opacity: 0; transform: translate(0, 0) scale(.6); }
	12% { opacity: 1; transform: translate(0, -20px) scale(1.05); }
	100% { opacity: 0; transform: translate(var(--rx-drift, 0px), -260px) scale(1); }
}
.wsaas-room-toasts {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(340px, calc(100vw - 32px));
	pointer-events: none;
}
.wsaas-room-toast {
	position: relative;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #334155;
	background: rgba(17,24,39,.97);
	color: #e2e8f0;
	box-shadow: 0 14px 34px rgba(0,0,0,.45);
	pointer-events: auto;
	animation: wsaasToastIn .35s ease;
}
.wsaas-room-toast.is-handout { border-left: 3px solid #0ea5e9; }
.wsaas-room-toast.is-testimonial { border-left: 3px solid #fbbf24; }
.wsaas-room-toast.is-leaving { opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .3s ease; }
@keyframes wsaasToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wsaas-room-toast-x {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: none;
	color: #94a3b8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
.wsaas-room-toast-x:hover { color: #f8fafc; }
.wsaas-room-toast-kicker { display: block; margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #38bdf8; }
.wsaas-room-toast.is-testimonial .wsaas-room-toast-kicker { color: #fbbf24; }
.wsaas-room-toast-title { display: block; margin-right: 18px; color: #f8fafc; font-size: 15px; line-height: 1.3; }
.wsaas-room-toast p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #cbd5e1; }
.wsaas-room-toast-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #0ea5e9;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.wsaas-room-toast-btn:hover { background: #0284c7; }
.wsaas-room-toast-stars { display: block; color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.wsaas-room-toast blockquote { margin: 6px 18px 0 0; font-size: 14px; line-height: 1.5; color: #f1f5f9; font-style: italic; }
.wsaas-room-toast cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: #94a3b8; }
.wsaas-room-toast cite strong { color: #e2e8f0; }
@media (max-width: 900px) {
	.wsaas-room-toasts { left: 10px; right: 10px; bottom: 10px; width: auto; }
	.wsaas-rx-bar { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.wsaas-rx-float { animation-duration: 1.2s; }
	.wsaas-room-toast, .wsaas-room-resource, .wsaas-rx-btn.is-pop { animation: none; }
	.wsaas-rx-btn:hover { transform: none; }
}
.replay-wrap { max-width: 960px; margin: 0 auto; }
.replay-wrap .room-player { width: 100%; margin: 18px 0; }
.replay-expiry {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: rgba(251, 191, 36, .14);
	border: 1px solid rgba(251, 191, 36, .4);
	color: #fde68a;
	font-size: .92rem;
}
.replay-expiry strong { font-variant-numeric: tabular-nums; font-size: 1.05rem; color: #fff; }
.replay-expiry.is-urgent { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
.replay-locked {
	max-width: 480px;
	margin: 24px auto 0;
	padding: 32px 28px;
	border-radius: 20px;
	background: rgba(15, 23, 42, .72);
	border: 1px solid rgba(148, 163, 184, .25);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.replay-locked-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(148, 163, 184, .16);
	color: #e2e8f0;
}
.replay-locked h2 { margin: 0 0 8px; font-size: 1.35rem; }
.replay-locked p { margin: 0 0 18px; color: #cbd5e1; line-height: 1.5; }

/* Thank-you + waiting calendar */
.rp-thankyou { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.rp-thankyou-card { max-width: 480px; width: 100%; margin: 0 auto; text-align: center; }
.rp-thankyou-actions { display: grid; gap: 10px; margin-top: 18px; }
.rp-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 1rem; border-radius: 8px; text-decoration: none; font-weight: 700;
	background: transparent; color: inherit; border: 1.5px solid rgba(15,23,42,.2);
}
.wait-ics { margin-top: 16px; }
.wait-ics-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
	background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22);
}

/* Social proof — waiting + room */
.wsaas-social-proof {
	margin: 18px auto 0;
	max-width: 520px;
	width: 100%;
	text-align: left;
}
.wsaas-sp-room {
	max-width: none;
	margin: 0 0 12px;
	display: grid;
	gap: 10px;
}
.wsaas-sp-watching {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.18);
	font-size: .92rem;
	font-weight: 600;
}
.wsaas-sp-room .wsaas-sp-watching {
	background: rgba(56,189,248,.12);
	border-color: rgba(56,189,248,.28);
	color: #e2e8f0;
}
.wsaas-sp-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 0 rgba(52,211,153,.55);
	animation: wsaasSpPulse 1.6s ease-out infinite;
}
.wsaas-sp-count.is-pulse { animation: wsaasSpPop .35s ease; }
.wsaas-sp-joins {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(15,23,42,.28);
	border: 1px solid rgba(255,255,255,.12);
}
.wsaas-sp-room .wsaas-sp-joins {
	margin-top: 0;
	background: #0f172a;
	border-color: #1f2937;
}
.wsaas-sp-joins-label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .7;
	margin-bottom: 8px;
	font-weight: 700;
}
.wsaas-sp-join-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}
.wsaas-sp-join-list li {
	font-size: .9rem;
	opacity: .92;
	animation: wsaasSpFade .45s ease;
}
.wsaas-sp-testimonials {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.wsaas-sp-room .wsaas-sp-testimonials { margin-top: 0; }
.wsaas-sp-quote {
	flex: 0 0 min(260px, 78vw);
	scroll-snap-align: start;
	margin: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.14);
}
.wsaas-sp-room .wsaas-sp-quote {
	background: #111827;
	border-color: #1f2937;
	color: #e2e8f0;
}
.wsaas-sp-quote blockquote {
	margin: 0;
	font-size: .88rem;
	line-height: 1.45;
	font-style: normal;
}
.wsaas-sp-quote figcaption {
	margin-top: 8px;
	font-size: .78rem;
	opacity: .75;
	font-weight: 600;
}
@keyframes wsaasSpPulse {
	0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
	70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
	100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
@keyframes wsaasSpPop {
	from { transform: scale(1); }
	50% { transform: scale(1.08); }
	to { transform: scale(1); }
}
@keyframes wsaasSpFade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

.wsaas-embed-form {
	max-width: 420px; padding: 18px; border-radius: 14px;
	background: #fff; color: #0f172a; box-shadow: 0 12px 32px rgba(0,0,0,.12);
	border: 1px solid #e2e8f0;
}
.wsaas-embed-title { margin: 0 0 12px; font-size: 1.15rem; }
.wsaas-embed-form .form-control { margin-bottom: .75rem; }
.wsaas-embed-form .rp-btn { background: var(--wsaas-btn, #ff6f00); color: #fff; border: 0; width: 100%; }
.wsaas-embed-err { color: #b91c1c; }

/* Live stage + host badge */
.wsaas-live-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #0b1220;
	min-height: 280px;
}
.wsaas-host-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 600;
	background: rgba(148,163,184,.15);
	color: #cbd5e1;
}
.wsaas-host-badge.is-on {
	background: rgba(52,211,153,.15);
	color: #6ee7b7;
}
.wsaas-host-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #64748b;
	display: inline-block;
}
.wsaas-host-badge.is-on .wsaas-host-dot,
.wsaas-host-dot.is-on {
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52,211,153,.25);
}

/* Room chat / Q&A tabs */
.wsaas-room-tabs {
	display: flex;
	gap: 4px;
	padding: 8px 10px 0;
}
.wsaas-tab {
	flex: 1;
	border: 0;
	background: transparent;
	color: #94a3b8;
	padding: 10px 8px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.wsaas-tab.is-active {
	color: #e2e8f0;
	border-bottom-color: #38bdf8;
}
.wsaas-tab-panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
.wsaas-tab-panel.is-active { display: flex; }
.wsaas-qa-line.is-pinned { border-left: 3px solid #fbbf24; padding-left: 8px; }
.wsaas-qa-answered { color: #34d399; font-size: .75rem; }
.chat-line.host strong { color: #38bdf8; }

/* Host console */
.wsaas-host { margin: 0; background: #0b1220; color: #e2e8f0; min-height: 100vh; }
.wsaas-host-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.wsaas-host-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}
.wsaas-host-mode {
	margin: 0;
	font-size: .75rem;
	letter-spacing: .08em;
	color: #94a3b8;
}
.wsaas-host-top h1 { margin: 4px 0 8px; font-size: 1.5rem; }
.wsaas-host-top a { color: #7dd3fc; }
.wsaas-host-presence {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.wsaas-host-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
	gap: 16px;
}
.wsaas-host-side {
	background: #111827;
	border: 1px solid #1f2937;
	border-radius: 12px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	min-height: 420px;
}
.wsaas-host-side h2 { margin: 0 0 10px; font-size: 1rem; }
.wsaas-host-side hr { border: 0; border-top: 1px solid #1f2937; margin: 14px 0; }
.wsaas-qa-list { flex: 1; overflow: auto; }
.wsaas-qa-item {
	padding: 10px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: #0b1220;
	border: 1px solid #1f2937;
}
.wsaas-qa-item.is-pinned { border-color: #fbbf24; }
.wsaas-qa-item p { margin: 6px 0; }
.wsaas-qa-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wsaas-qa-actions button {
	font-size: .75rem;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #e2e8f0;
	cursor: pointer;
}

/* Analytics heat */
.wsaas-heatbar {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	min-height: 120px;
	padding: 8px 0;
	overflow-x: auto;
}
.wsaas-heatcell {
	flex: 0 0 18px;
	height: var(--h, 20%);
	min-height: 12px;
	border-radius: 4px 4px 2px 2px;
	background: linear-gradient(180deg, #38bdf8, #0369a1);
	position: relative;
	opacity: .9;
}
.wsaas-heatcell.has-drop {
	background: linear-gradient(180deg, #fb7185, #be123c);
}
.wsaas-heatcell em {
	position: absolute;
	bottom: -16px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 9px;
	font-style: normal;
	opacity: .55;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.room-layout {
		grid-template-columns: 1fr;
		height: auto;
		max-height: none;
		overflow: visible;
		min-height: 100dvh;
	}
	.room-main { overflow: visible; }
	.room-chat {
		min-height: min(48vh, 420px);
		height: min(48vh, 420px);
		max-height: 48vh;
		border-left: 0;
		border-top: 1px solid #1f2937;
		position: sticky;
		bottom: 0;
		z-index: 6;
		box-shadow: 0 -12px 28px rgba(0,0,0,.35);
	}
	.wsaas-host-grid { grid-template-columns: 1fr; }
}

/* -- Room status strip (host badge + optional viewer count) — kept off the video area -- */
.wsaas-room-status {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 10px 14px; border-bottom: 1px solid #1f2937; flex-shrink: 0;
}
.room-main > .wsaas-room-status { padding: 10px 0 0; border-bottom: 0; }
.wsaas-room-status .wsaas-host-badge { margin: 0; }
.wsaas-room-live {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 11px; border-radius: 999px; font-size: .82rem;
	background: rgba(52,211,153,.12); color: #d1fae5;
}
.wsaas-room-live strong { color: #fff; font-variant-numeric: tabular-nums; }
.wsaas-room-live strong.is-pulse { animation: wsaasRoomCountPulse .6s ease; }
@keyframes wsaasRoomCountPulse { 50% { color: #6ee7b7; } }