/* Webinar SaaS - Public pages */
* { box-sizing: border-box; }
body.wsaas-reg, body.wsaas-waiting, body.wsaas-room, body.wsaas-replay {
	margin: 0;
	font-family: Outfit, "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-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
	background: rgba(255,255,255,.14); margin-bottom: 14px; font-weight: 600; font-size: .9rem;
}
.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: 1.2fr 0.8fr;
	background: var(--wsaas-bg, #1a237e);
	color: #fff;
}
.rp-content { padding: 8vh 6vw; }
.rp-form-card {
	background: #fff;
	color: #0f172a;
	margin: auto 4vw;
	padding: 28px;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
	max-width: 420px;
}
.rp-logo img { max-height: 56px; margin-bottom: 18px; }
.rp-thumb img { width: 100%; border-radius: 12px; margin-bottom: 18px; }
.rp-content h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; }
.rp-desc { opacity: .9; font-size: 1.05rem; }
.rp-bullets { padding-left: 1.1rem; }
.rp-bullets li { margin: .45rem 0; }
.rp-timer {
	display: inline-block;
	margin-top: 18px;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: rgba(255,255,255,.15);
	font-weight: 600;
}
.form-control {
	width: 100%;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: .75rem 1rem;
	margin-bottom: .9rem;
	font-size: .95rem;
}
.rp-btn {
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 1rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: #fff;
	background: var(--wsaas-btn, #ff6f00);
	cursor: pointer;
}
.rp-privacy { font-size: .75rem; color: #6b7280; margin-top: .9rem; }
.rp-err { background: #fee2e2; color: #991b1b; border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }

body.wsaas-tpl-split .rp-wrap { grid-template-columns: 1fr 1fr; }
body.wsaas-tpl-minimal { background: #f8fafc; color: #0f172a; }
body.wsaas-tpl-minimal .rp-wrap { background: #f8fafc; color: #0f172a; }
body.wsaas-tpl-minimal .rp-form-card { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
body.wsaas-tpl-hero .rp-wrap {
	grid-template-columns: 1fr;
	background: linear-gradient(145deg, var(--wsaas-bg), var(--wsaas-accent));
}
body.wsaas-tpl-hero .rp-form-card { margin: 0 auto 8vh; }
body.wsaas-tpl-urgency .rp-wrap { background: #111827; }
body.wsaas-tpl-classic .rp-wrap {
	grid-template-columns: 1fr;
	place-items: center;
	padding: 4vh 4vw;
}
body.wsaas-tpl-classic .rp-content { text-align: center; max-width: 720px; }
body.wsaas-tpl-classic .rp-form-card { width: 100%; }
@media (max-width: 800px) {
	.rp-wrap { grid-template-columns: 1fr !important; }
	.rp-form-card { margin: 0 4vw 6vh; }
}

.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;
	display: grid;
	grid-template-columns: 1fr 340px;
	background: #0b1220;
	color: #e2e8f0;
}
.room-main { padding: 16px; }
.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;
}
.autoplay-overlay {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55);
}
.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;
}
.offer-box.offer-reveal { animation: offerIn .45s ease; }
@keyframes offerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.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 { margin-top: 8px; color: #fbbf24; font-weight: 700; }
.room-chat {
	border-left: 1px solid #1f2937;
	display: flex;
	flex-direction: column;
	background: #0f172a;
}
.chat-header { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid #1f2937; }
.chat-stream { flex: 1; overflow: auto; padding: 12px 14px; }
.chat-line { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.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; }
.chat-form input {
	flex: 1; border-radius: 8px; border: 1px solid #334155;
	background: #111827; color: #fff; padding: 10px 12px;
}
.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; }
.replay-wrap { max-width: 960px; margin: 0 auto; }
.replay-wrap .room-player { width: 100%; margin: 18px 0; }

/* 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; }

@media (max-width: 900px) {
	.room-layout { grid-template-columns: 1fr; }
	.room-chat { min-height: 320px; border-left: 0; border-top: 1px solid #1f2937; }
}
