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

.webai-float-decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.webai-float-decor .dec { position: absolute; width: 90px; height: 90px; opacity: .9; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.webai-float-decor .dec.a { top: 8%; left: 4%; animation: webaiBob 5s ease-in-out infinite; }
.webai-float-decor .dec.b { top: 18%; right: 6%; animation: webaiBob 6s ease-in-out infinite .5s; }
.webai-float-decor .dec.c { bottom: 16%; left: 10%; animation: webaiBob 4.5s ease-in-out infinite .8s; }
.webai-float-decor .dec.d { bottom: 10%; right: 8%; animation: webaiBob 5.5s ease-in-out infinite .2s; }
@keyframes webaiBob { 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; } }

body.webai-reg, body.webai-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(--webai-bg, #1a237e);
	color: var(--webai-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(--webai-fg, #fff);
	text-wrap: balance;
}
.rp-desc {
	margin: 0 0 18px;
	font-size: 1.08rem;
	line-height: 1.55;
	color: var(--webai-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(--webai-fg, #fff);
}
.rp-check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--webai-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(--webai-accent, #1a73e8);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--webai-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(--webai-btn-fg, #fff);
	background: var(--webai-btn, #ff6f00);
	cursor: pointer;
	margin-top: 4px;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--webai-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(--webai-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.webai-tpl-split .rp-wrap { grid-template-columns: 1fr 1fr; }
body.webai-tpl-split .rp-form-card { justify-self: stretch; max-width: none; }

body.webai-tpl-minimal {
	background: #f1f5f9;
	color: #0f172a;
}
body.webai-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.webai-tpl-minimal .rp-content h1,
body.webai-tpl-minimal .rp-desc,
body.webai-tpl-minimal .rp-bullets li,
body.webai-tpl-minimal .rp-presenter strong { color: #0f172a; }
body.webai-tpl-minimal .rp-desc { color: #334155; }
body.webai-tpl-minimal .rp-badge,
body.webai-tpl-minimal .rp-chip {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}
body.webai-tpl-minimal .rp-timer {
	background: #fff7ed;
	border-color: #fdba74;
	color: #9a3412;
}
body.webai-tpl-minimal .rp-form-card {
	box-shadow: 0 16px 40px rgba(15,23,42,.1);
	border-color: #e2e8f0;
}
body.webai-tpl-minimal .rp-presenter {
	background: rgba(255,255,255,.92);
	color: #0f172a;
}

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

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

body.webai-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(--webai-bg), var(--webai-accent));
}
body.webai-tpl-hero .rp-content { max-width: 760px; }
body.webai-tpl-hero .rp-meta-row,
body.webai-tpl-hero .rp-bullets { justify-content: center; }
body.webai-tpl-hero .rp-bullets { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
body.webai-tpl-hero .rp-desc { margin-left: auto; margin-right: auto; }
body.webai-tpl-hero .rp-form-card { justify-self: center; margin-top: 8px; }

body.webai-tpl-urgency .rp-wrap {
	background:
		radial-gradient(700px 400px at 80% 0%, rgba(239,68,68,.28), transparent 55%),
		#0b1220;
}
body.webai-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.webai-tpl-classic .rp-wrap {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	padding-top: clamp(40px, 8vh, 80px);
}
body.webai-tpl-classic .rp-content { max-width: 680px; }
body.webai-tpl-classic .rp-meta-row { justify-content: center; }
body.webai-tpl-classic .rp-bullets { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
body.webai-tpl-classic .rp-desc { margin-left: auto; margin-right: auto; }
body.webai-tpl-classic .rp-form-card { justify-self: center; width: min(100%, 420px); }

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

/* Editorial column — rule, serif headline, narrow measure, flat card */
body.webai-tpl-editorial .rp-wrap {
	grid-template-columns: 1fr;
	justify-items: center;
	padding-top: clamp(36px, 7vh, 72px);
}
body.webai-tpl-editorial .rp-content {
	max-width: 660px;
	border-top: 3px solid var(--webai-accent);
	padding-top: 22px;
}
body.webai-tpl-editorial .rp-content h1 {
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
	letter-spacing: -.028em;
	line-height: 1.08;
}
body.webai-tpl-editorial .rp-badge {
	border-radius: 4px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: .66rem;
}
body.webai-tpl-editorial .rp-desc {
	font-size: 1.12rem;
	line-height: 1.7;
	max-width: 56ch;
}
body.webai-tpl-editorial .rp-bullets { max-width: 560px; }
body.webai-tpl-editorial .rp-thumb { max-width: 520px; }
body.webai-tpl-editorial .rp-form-card {
	width: min(100%, 560px);
	justify-self: center;
	border-radius: 6px;
	border-top: 4px solid var(--webai-btn);
	box-shadow: none;
}

/* Glass panel — pitch and form share one frosted frame */
body.webai-tpl-panel .rp-wrap {
	align-content: center;
	background:
		radial-gradient(900px 500px at 15% -10%, rgba(255,255,255,.22), transparent 60%),
		linear-gradient(160deg, var(--webai-bg), var(--webai-accent));
}
body.webai-tpl-panel .rp-wrap > * { position: relative; z-index: 1; }
body.webai-tpl-panel .rp-wrap {
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
	gap: 0;
	max-width: 1180px;
	margin: clamp(20px, 5vh, 56px) auto;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 28px;
	background-color: rgba(15, 23, 42, .34);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 40px 90px rgba(2, 6, 23, .4);
	overflow: hidden;
}
body.webai-tpl-panel .rp-wrap { align-items: stretch; }
body.webai-tpl-panel .rp-content { padding: clamp(24px, 3.4vw, 44px); align-self: center; }
body.webai-tpl-panel .rp-thumb { max-width: 520px; }
body.webai-tpl-panel .rp-form-card {
	margin: 0;
	max-width: none;
	height: 100%;
	border: 0;
	border-left: 1px solid rgba(255,255,255,.22);
	border-radius: 0;
	box-shadow: none;
	padding: clamp(24px, 3.4vw, 44px);
	background: rgba(255,255,255,.96);
}
body.webai-on-light.webai-tpl-panel .rp-wrap {
	background-color: rgba(255,255,255,.4);
	border-color: rgba(15,23,42,.14);
}

/* Video first — thumbnail across the top, pitch beside a compact card */
body.webai-tpl-showcase .rp-wrap {
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
	align-items: start;
	padding-top: clamp(26px, 5vh, 52px);
}
body.webai-tpl-showcase .rp-content { display: flex; flex-direction: column; max-width: none; }
body.webai-tpl-showcase .rp-thumb {
	order: -1;
	max-width: none;
	width: 100%;
	margin: 0 0 22px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 26px 60px rgba(2, 6, 23, .38);
}
body.webai-tpl-showcase .rp-thumb img { width: 100%; display: block; }
body.webai-tpl-showcase .rp-content h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
body.webai-tpl-showcase .rp-form-card {
	position: sticky;
	top: clamp(16px, 4vh, 40px);
	width: min(100%, 420px);
}

/* Headline banner — colour band on top, signup card on a clean surface */
body.webai-tpl-banner .rp-wrap {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	gap: 0;
	padding: 0 0 clamp(36px, 7vh, 72px);
	background: #f1f5f9;
	color: #0f172a;
}
body.webai-tpl-banner .rp-content {
	width: 100%;
	max-width: none;
	padding: clamp(36px, 7vh, 76px) clamp(20px, 5vw, 64px) clamp(44px, 8vh, 84px);
	background:
		radial-gradient(800px 420px at 50% -20%, rgba(255,255,255,.22), transparent 60%),
		linear-gradient(135deg, var(--webai-bg), var(--webai-accent));
	border-bottom-left-radius: 36px;
	border-bottom-right-radius: 36px;
}
body.webai-tpl-banner .rp-meta-row,
body.webai-tpl-banner .rp-bullets { justify-content: center; }
body.webai-tpl-banner .rp-bullets {
	text-align: left;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}
body.webai-tpl-banner .rp-desc { margin-left: auto; margin-right: auto; }
body.webai-tpl-banner .rp-thumb {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}
body.webai-tpl-banner .rp-content h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
body.webai-tpl-banner .rp-form-card {
	justify-self: center;
	width: min(100%, 480px);
	margin-top: clamp(-40px, -4vh, -24px);
	box-shadow: 0 26px 60px rgba(15, 23, 42, .16);
	border-color: #e2e8f0;
}
body.webai-tpl-banner .rp-timer {
	background: rgba(255,255,255,.16);
	border-color: rgba(255,255,255,.4);
}

@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.webai-tpl-classic .rp-content,
	body.webai-tpl-hero .rp-content { text-align: left; }
	body.webai-tpl-classic .rp-meta-row,
	body.webai-tpl-hero .rp-meta-row { justify-content: flex-start; }
	body.webai-tpl-panel .rp-wrap { margin: 0; border-radius: 0; border: 0; }
	body.webai-tpl-panel .rp-form-card { border-left: 0; border-radius: 18px; margin-top: 18px; }
	body.webai-tpl-showcase .rp-form-card { position: static; }
	body.webai-tpl-banner .rp-content { border-radius: 0 0 24px 24px; }
	body.webai-tpl-banner .rp-form-card { margin: -20px 18px 0; }
	body.webai-tpl-editorial .rp-form-card { width: 100%; }
}

.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;
}
.webai-player-stage.is-chrome-hidden iframe {
	pointer-events: none;
}
.webai-player-shield {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
	cursor: default;
}
.webai-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);
}
.webai-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 */
.webai-room-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 12px;
}
.webai-room-resources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.webai-room-resources[hidden] { display: none; }
.webai-room-resources-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.webai-room-resources-list { display: flex; flex-wrap: wrap; gap: 8px; }
.webai-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;
}
.webai-room-resource:hover { border-color: #38bdf8; }
.webai-room-resource-link { flex: 0 0 auto; color: #38bdf8 !important; font-weight: 700; text-decoration: none; }
.webai-room-resource-link:hover { text-decoration: underline; }
.webai-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;
}
.webai-room-resource-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.webai-rx-bar { display: flex; gap: 6px; margin-left: auto; }
.webai-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;
}
.webai-rx-btn:hover { border-color: #64748b; transform: translateY(-2px); }
.webai-rx-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.webai-rx-btn.is-pop { animation: webaiRxPop .3s ease; }
@keyframes webaiRxPop { 50% { transform: scale(1.25); } }
.webai-rx-layer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 90px;
	z-index: 4;
	pointer-events: none;
	overflow: hidden;
}
.webai-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: webaiRxFloat 2.6s ease-out forwards;
}
@keyframes webaiRxFloat {
	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); }
}
.webai-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;
}
.webai-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: webaiToastIn .35s ease;
}
.webai-room-toast.is-handout { border-left: 3px solid #0ea5e9; }
.webai-room-toast.is-testimonial { border-left: 3px solid #fbbf24; }
.webai-room-toast.is-leaving { opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .3s ease; }
@keyframes webaiToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.webai-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;
}
.webai-room-toast-x:hover { color: #f8fafc; }
.webai-room-toast-kicker { display: block; margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #38bdf8; }
.webai-room-toast.is-testimonial .webai-room-toast-kicker { color: #fbbf24; }
.webai-room-toast-title { display: block; margin-right: 18px; color: #f8fafc; font-size: 15px; line-height: 1.3; }
.webai-room-toast p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #cbd5e1; }
.webai-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;
}
.webai-room-toast-btn:hover { background: #0284c7; }
.webai-room-toast-stars { display: block; color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.webai-room-toast blockquote { margin: 6px 18px 0 0; font-size: 14px; line-height: 1.5; color: #f1f5f9; font-style: italic; }
.webai-room-toast cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: #94a3b8; }
.webai-room-toast cite strong { color: #e2e8f0; }
@media (max-width: 900px) {
	.webai-room-toasts { left: 10px; right: 10px; bottom: 10px; width: auto; }
	.webai-rx-bar { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.webai-rx-float { animation-duration: 1.2s; }
	.webai-room-toast, .webai-room-resource, .webai-rx-btn.is-pop { animation: none; }
	.webai-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 */
.webai-social-proof {
	margin: 18px auto 0;
	max-width: 520px;
	width: 100%;
	text-align: left;
}
.webai-sp-room {
	max-width: none;
	margin: 0 0 12px;
	display: grid;
	gap: 10px;
}
.webai-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;
}
.webai-sp-room .webai-sp-watching {
	background: rgba(56,189,248,.12);
	border-color: rgba(56,189,248,.28);
	color: #e2e8f0;
}
.webai-sp-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 0 rgba(52,211,153,.55);
	animation: webaiSpPulse 1.6s ease-out infinite;
}
.webai-sp-count.is-pulse { animation: webaiSpPop .35s ease; }
.webai-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);
}
.webai-sp-room .webai-sp-joins {
	margin-top: 0;
	background: #0f172a;
	border-color: #1f2937;
}
.webai-sp-joins-label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .7;
	margin-bottom: 8px;
	font-weight: 700;
}
.webai-sp-join-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}
.webai-sp-join-list li {
	font-size: .9rem;
	opacity: .92;
	animation: webaiSpFade .45s ease;
}
.webai-sp-testimonials {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.webai-sp-room .webai-sp-testimonials { margin-top: 0; }
.webai-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);
}
.webai-sp-room .webai-sp-quote {
	background: #111827;
	border-color: #1f2937;
	color: #e2e8f0;
}
.webai-sp-quote blockquote {
	margin: 0;
	font-size: .88rem;
	line-height: 1.45;
	font-style: normal;
}
.webai-sp-quote figcaption {
	margin-top: 8px;
	font-size: .78rem;
	opacity: .75;
	font-weight: 600;
}
@keyframes webaiSpPulse {
	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 webaiSpPop {
	from { transform: scale(1); }
	50% { transform: scale(1.08); }
	to { transform: scale(1); }
}
@keyframes webaiSpFade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

.webai-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;
}
.webai-embed-title { margin: 0 0 12px; font-size: 1.15rem; }
.webai-embed-form .form-control { margin-bottom: .75rem; }
.webai-embed-form .rp-btn { background: var(--webai-btn, #ff6f00); color: #fff; border: 0; width: 100%; }
.webai-embed-err { color: #b91c1c; }

/* Live stage + host badge */
.webai-live-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #0b1220;
	min-height: 280px;
}
.webai-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;
}
.webai-host-badge.is-on {
	background: rgba(52,211,153,.15);
	color: #6ee7b7;
}
.webai-host-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #64748b;
	display: inline-block;
}
.webai-host-badge.is-on .webai-host-dot,
.webai-host-dot.is-on {
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52,211,153,.25);
}

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

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

/* Analytics heat */
.webai-heatbar {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	min-height: 120px;
	padding: 8px 0;
	overflow-x: auto;
}
.webai-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;
}
.webai-heatcell.has-drop {
	background: linear-gradient(180deg, #fb7185, #be123c);
}
.webai-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);
	}
	.webai-host-grid { grid-template-columns: 1fr; }
}

/* -- Room status strip (host badge + optional viewer count) — kept off the video area -- */
.webai-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 > .webai-room-status { padding: 10px 0 0; border-bottom: 0; }
.webai-room-status .webai-host-badge { margin: 0; }
.webai-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;
}
.webai-room-live strong { color: #fff; font-variant-numeric: tabular-nums; }
.webai-room-live strong.is-pulse { animation: webaiRoomCountPulse .6s ease; }
@keyframes webaiRoomCountPulse { 50% { color: #6ee7b7; } }
/* ============================================================
   Branded error pages (404 / 403) — templates/404.php
   ============================================================ */
body.webai-404 {
	--webai-404-accent: #38bdf8;
	--webai-404-accent-2: #a78bfa;
	margin: 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: clamp(20px, 5vw, 48px);
	font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	color: #e2e8f0;
	background:
		radial-gradient(1100px 560px at 12% -12%, color-mix(in srgb, var(--webai-404-accent) 26%, transparent), transparent 58%),
		radial-gradient(900px 520px at 88% 112%, color-mix(in srgb, var(--webai-404-accent-2) 24%, transparent), transparent 55%),
		linear-gradient(160deg, #0b1220 0%, #0f172a 55%, #0b1220 100%);
	overflow-x: hidden;
}

.webai-404-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 660px;
	text-align: center;
}

.webai-404-card {
	position: relative;
	padding: clamp(26px, 5vw, 46px) clamp(22px, 5vw, 48px) clamp(28px, 5vw, 42px);
	border: 1px solid rgba(148, 163, 184, .22);
	border-radius: 28px;
	background: rgba(15, 23, 42, .66);
	box-shadow: 0 30px 80px rgba(2, 6, 23, .5);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	animation: webai404Rise .65s cubic-bezier(.22, .8, .3, 1) both;
	overflow: hidden;
}
.webai-404-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--webai-404-accent), var(--webai-404-accent-2), transparent);
	opacity: .9;
}
@keyframes webai404Rise { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

.webai-404-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: clamp(10px, 2vw, 18px);
	color: #e2e8f0;
}
.webai-404-brand img { max-height: 40px; max-width: 190px; width: auto; display: block; }
.webai-404-brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	color: #0b1220;
	background: linear-gradient(135deg, var(--webai-404-accent), var(--webai-404-accent-2));
	box-shadow: 0 8px 20px color-mix(in srgb, var(--webai-404-accent) 32%, transparent);
}
.webai-404-brand-mark svg { width: 19px; height: 19px; }
.webai-404-brand-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }

.webai-404-scene { position: relative; height: clamp(124px, 23vw, 158px); margin: 2px 0 4px; }
.webai-404-art {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(420px, 112%);
	height: 128%;
	transform: translate(-50%, -50%);
	opacity: .7;
}
.webai-404-orbit { animation: webai404Dash 26s linear infinite; }
.webai-404-orbit.alt { animation-duration: 38s; animation-direction: reverse; }
@keyframes webai404Dash { to { stroke-dashoffset: -300; } }
.webai-404-rings { animation: webai404Sway 9s ease-in-out infinite; transform-origin: 110px 75px; }
@keyframes webai404Sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.webai-404-pulse { animation: webai404Pulse 4.2s ease-in-out infinite; transform-origin: 110px 75px; }
@keyframes webai404Pulse { 0%, 100% { transform: scale(.9); opacity: .4; } 50% { transform: scale(1.08); opacity: .65; } }
.webai-404-spark { animation: webai404Drift 5.5s ease-in-out infinite; }
.webai-404-spark.s2 { animation-duration: 6.8s; animation-delay: .5s; }
.webai-404-spark.s3 { animation-duration: 4.6s; animation-delay: .9s; }
.webai-404-spark.s4 { animation-duration: 7.4s; animation-delay: .3s; }
@keyframes webai404Drift { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-13px); opacity: 1; } }

.webai-404-code {
	position: relative;
	display: block;
	font-family: Fraunces, Georgia, serif;
	font-weight: 700;
	font-size: clamp(4.4rem, 14vw, 7rem);
	line-height: 1;
	letter-spacing: -.045em;
	padding-top: clamp(14px, 3vw, 26px);
	background: linear-gradient(118deg, #f8fafc 2%, var(--webai-404-accent) 26%, var(--webai-404-accent-2) 92%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 14px 34px color-mix(in srgb, var(--webai-404-accent) 28%, transparent));
}

.webai-404-eyebrow {
	display: inline-block;
	margin: 4px 0 12px;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--webai-404-accent);
	border: 1px solid rgba(148, 163, 184, .3);
	border: 1px solid color-mix(in srgb, var(--webai-404-accent) 40%, transparent);
	background: rgba(148, 163, 184, .1);
	background: color-mix(in srgb, var(--webai-404-accent) 12%, transparent);
}

.webai-404-title {
	margin: 0 0 12px;
	font-family: Fraunces, Georgia, serif;
	font-size: clamp(1.5rem, 3.6vw, 2.25rem);
	line-height: 1.18;
	letter-spacing: -.02em;
	color: #f8fafc;
	text-wrap: balance;
}

.webai-404-text {
	margin: 0 auto 14px;
	max-width: 44ch;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #94a3b8;
}

.webai-404-hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	padding: 9px 15px;
	border-radius: 14px;
	font-size: .92rem;
	line-height: 1.45;
	text-align: left;
	color: #cbd5e1;
	background: rgba(148, 163, 184, .1);
	border: 1px solid rgba(148, 163, 184, .18);
}
.webai-404-hint-ico { display: grid; place-items: center; flex: 0 0 auto; color: var(--webai-404-accent); }
.webai-404-hint-ico svg { width: 18px; height: 18px; }

.webai-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	justify-content: center;
}
.webai-404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	border-radius: 14px;
	font-size: .98rem;
	font-weight: 600;
	text-decoration: none;
	color: #e2e8f0;
	border: 1px solid rgba(148, 163, 184, .3);
	background: rgba(148, 163, 184, .08);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.webai-404-btn:hover,
.webai-404-btn:focus-visible {
	transform: translateY(-2px);
	background: rgba(148, 163, 184, .16);
	border-color: rgba(148, 163, 184, .5);
}
.webai-404-btn.is-primary {
	color: #0b1220;
	border-color: transparent;
	background: linear-gradient(135deg, var(--webai-404-accent), var(--webai-404-accent-2));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--webai-404-accent) 32%, transparent);
}
.webai-404-btn.is-primary:hover,
.webai-404-btn.is-primary:focus-visible {
	box-shadow: 0 18px 38px color-mix(in srgb, var(--webai-404-accent) 42%, transparent);
}
.webai-404-btn:focus-visible { outline: 2px solid var(--webai-404-accent); outline-offset: 3px; }

.webai-404-path { margin: 20px 0 0; font-size: .82rem; color: #64748b; }
.webai-404-path code {
	padding: 4px 10px;
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .82rem;
	word-break: break-all;
	background: rgba(2, 6, 23, .5);
	border: 1px solid rgba(148, 163, 184, .16);
}

.webai-404-support { margin: 16px 0 0; font-size: .92rem; color: #94a3b8; }
.webai-404-support a { color: var(--webai-404-accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--webai-404-accent) 45%, transparent); }
.webai-404-support a:hover { border-bottom-color: var(--webai-404-accent); }

.webai-404-foot {
	margin: 18px 0 0;
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #64748b;
}

@media (max-width: 560px) {
	.webai-404-card { border-radius: 22px; }
	.webai-404-hint { text-align: left; }
	.webai-404-actions .webai-404-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.webai-404-card,
	.webai-404-orbit,
	.webai-404-rings,
	.webai-404-pulse,
	.webai-404-spark,
	body.webai-404 .webai-float-decor .dec { animation: none; }
	.webai-404-btn { transition: none; }
}

/* Optional small print inside the signup card */
.rp-footer {
	margin: 14px 0 0;
	font-size: .85rem;
	line-height: 1.5;
	text-align: center;
	color: #64748b;
}

/* ============================================================
   "Your offer is live" button, floating over the video
   ============================================================ */
.webai-offer-cue {
	position: absolute;
	right: clamp(10px, 2vw, 18px);
	bottom: clamp(10px, 2vw, 18px);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: min(92%, 340px);
	padding: 11px 14px;
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: var(--webai-btn-fg, #fff);
	background: var(--webai-btn, #ff6f00);
	box-shadow: 0 16px 38px rgba(2, 6, 23, .45);
	opacity: 0;
	transform: translateY(14px) scale(.96);
	transition: opacity .35s ease, transform .35s cubic-bezier(.22, .8, .3, 1);
	pointer-events: none;
}
.webai-offer-cue.is-in {
	opacity: 1;
	transform: none;
	pointer-events: auto;
	animation: webaiOfferCueNudge 3.4s ease-in-out 1.2s infinite;
}
.webai-offer-cue:hover,
.webai-offer-cue:focus-visible { filter: brightness(1.06); }
.webai-offer-cue:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes webaiOfferCueNudge {
	0%, 88%, 100% { transform: none; }
	92% { transform: translateY(-4px); }
	96% { transform: translateY(-1px); }
}

.webai-offer-cue-dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
	animation: webaiOfferCuePulse 2s ease-out infinite;
}
@keyframes webaiOfferCuePulse {
	0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
	70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.webai-offer-cue-copy { display: grid; gap: 1px; min-width: 0; }
.webai-offer-cue-copy strong {
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.webai-offer-cue-copy small {
	font-size: .8rem;
	line-height: 1.25;
	opacity: .92;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.webai-offer-cue-arrow {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
}
.webai-offer-cue-arrow svg { width: 15px; height: 15px; }

/* The offer itself flashes once the button takes you there */
.offer-box.is-flash {
	animation: webaiOfferFlash 1.5s ease-out;
}
@keyframes webaiOfferFlash {
	0% { box-shadow: 0 0 0 0 var(--webai-btn, #ff6f00); }
	35% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--webai-btn, #ff6f00) 45%, transparent); }
	100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

@media (max-width: 680px) {
	.webai-offer-cue {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-width: none;
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.webai-offer-cue,
	.webai-offer-cue.is-in,
	.webai-offer-cue-dot,
	.offer-box.is-flash { animation: none; transition: none; }
}

/* ============================================================
   Player start cover — no provider chrome before playback
   ============================================================ */
.webai-player-cover {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-items: center;
	padding: 20px;
	text-align: center;
	background:
		radial-gradient(900px 420px at 50% 0%, rgba(255, 255, 255, .1), transparent 60%),
		linear-gradient(160deg, #0b1220 0%, #111c35 55%, #0b1220 100%);
	transition: opacity .5s ease;
}
.webai-player-cover.is-gone { opacity: 0; pointer-events: none; }
.webai-player-cover-inner { display: grid; justify-items: center; gap: 10px; max-width: 32ch; }
.webai-player-cover-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--webai-accent, #38bdf8);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--webai-accent, #38bdf8) 70%, transparent);
	animation: webaiCoverPulse 1.8s ease-out infinite;
}
@keyframes webaiCoverPulse {
	0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); transform: scale(1); }
	70% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); transform: scale(1.08); }
	100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); transform: scale(1); }
}
.webai-player-cover-title {
	margin: 0;
	font-size: clamp(1rem, 2.2vw, 1.3rem);
	font-weight: 700;
	line-height: 1.3;
	color: #f8fafc;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.webai-player-cover-sub { margin: 0; font-size: .9rem; color: #94a3b8; }
.webai-player-cover-btn {
	margin-top: 6px;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	color: #0b1220;
	background: #fff;
	box-shadow: 0 14px 30px rgba(2, 6, 23, .45);
}
.webai-player-cover-btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
	.webai-player-cover { transition: none; }
	.webai-player-cover-dot { animation: none; }
}

/* ==========================================================================
   Waiting lobby — premium stage
   Everything here is scoped to body.webai-waiting so the replay page and the
   unsubscribe page keep the plain .wait-wrap rules above.
   ========================================================================== */

body.webai-waiting {
	background: var(--wait-deep, #070b18);
	color: #f8fafc;
	min-height: 100vh;
}

/* --- Animated backdrop ---------------------------------------------------- */
.wait-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.wait-aurora {
	position: absolute;
	display: block;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .5;
}
.wait-aurora.a {
	width: 60vw; height: 60vw;
	min-width: 420px; min-height: 420px;
	top: -22vw; left: -14vw;
	animation: waitDrift 24s ease-in-out infinite;
}
.wait-aurora.b {
	width: 54vw; height: 54vw;
	min-width: 380px; min-height: 380px;
	bottom: -20vw; right: -12vw;
	animation: waitDrift 30s ease-in-out infinite reverse;
}
.wait-aurora.c {
	width: 40vw; height: 40vw;
	min-width: 300px; min-height: 300px;
	top: 32%; left: 52%;
	background: radial-gradient(circle, rgba(168, 85, 247, .55), transparent 68%);
	animation: waitDrift 20s ease-in-out infinite 2s;
}
.wait-grid {
	position: absolute;
	inset: 0;
	display: block;
	background-image:
		linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
}
.wait-shape {
	position: absolute;
	width: 62px;
	height: 62px;
	opacity: .78;
	filter: drop-shadow(0 12px 26px rgba(2, 6, 23, .45));
}
.wait-shape.s1 { top: 11%; left: 6%;  animation: waitFloat 7s ease-in-out infinite; }
.wait-shape.s2 { top: 16%; right: 8%; width: 46px; height: 46px; animation: waitFloat 9s ease-in-out infinite .7s; }
.wait-shape.s3 { bottom: 7%; left: 2.5%; width: 54px; height: 54px; animation: waitSpin360 18s linear infinite; }
.wait-shape.s4 { bottom: 18%; right: 7%; width: 50px; height: 50px; animation: waitFloat 8s ease-in-out infinite 1.1s; }
.wait-shape.s5 { top: 62%; left: 1.5%; width: 58px; height: 58px; opacity: .55; animation: waitFloat 11s ease-in-out infinite .4s; }

@keyframes waitDrift {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50%      { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
}
@keyframes waitFloat {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-18px) rotate(8deg); }
}
@keyframes waitSpin360 { to { transform: rotate(360deg); } }

/* --- Stage + card --------------------------------------------------------- */
body.webai-waiting {
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}
body.webai-waiting .wait-wrap {
	position: relative;
	z-index: 1;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: clamp(10px, 2.4vh, 48px) clamp(12px, 2.4vw, 40px);
	background: none;
	text-align: center;
	color: inherit;
	overflow: hidden;
}
/* Escape hatch: when fitting would make the text too small to read, the
   lobby scrolls instead of shrinking further. */
body.webai-waiting.webai-wait-scroll,
body.webai-waiting.webai-wait-scroll .wait-wrap {
	height: auto;
	min-height: 100dvh;
	overflow: visible;
}
.wait-card {
	position: relative;
	width: 100%;
	max-width: 1040px;
	padding: clamp(16px, 2.7vh, 42px) clamp(16px, 2.6vw, 42px);
	border-radius: clamp(20px, 2.6vh, 30px);
	transform-origin: center center;
	border: 1px solid rgba(255, 255, 255, .16);
	background: linear-gradient(165deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	backdrop-filter: blur(24px) saturate(150%);
	box-shadow:
		0 36px 90px rgba(2, 6, 23, .55),
		inset 0 1px 0 rgba(255, 255, 255, .24);
	overflow: hidden;
	animation: waitFade .6s ease both;
}
@keyframes waitFade { from { opacity: 0; } to { opacity: 1; } }
.wait-main { animation: waitRise .75s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes waitRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.wait-card-glow {
	position: absolute;
	top: -46%;
	left: 50%;
	width: 130%;
	height: 78%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, color-mix(in srgb, var(--webai-accent, #67e8f9) 42%, transparent), transparent 70%);
	opacity: .45;
	pointer-events: none;
}
.wait-card > *:not(.wait-card-glow) { position: relative; z-index: 1; }
.wait-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(14px, 2.6vh, 34px);
	align-items: center;
}
.wait-col { min-width: 0; }
@media (min-width: 940px), (min-width: 700px) and (max-height: 700px), (min-width: 560px) and (max-height: 520px) {
	.wait-main {
		grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
		gap: clamp(28px, 3.4vw, 46px);
		text-align: left;
	}
	.wait-main .wait-meta { justify-content: flex-start; }
	.wait-main .wait-screen-wrap { margin-left: 0; margin-right: 0; }
	.wait-main .wait-note { margin-left: 0; }
	.wait-main .webai-social-proof { margin-left: 0; }
	.wait-col-b { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: clamp(22px, 2.6vw, 36px); }
}

/* --- Header --------------------------------------------------------------- */
.wait-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 15px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
}
.wait-chip-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--webai-accent, #67e8f9);
	animation: waitPulse 2.2s ease-out infinite;
}
@keyframes waitPulse {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--webai-accent, #67e8f9) 65%, transparent); }
	70%  { box-shadow: 0 0 0 9px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
.wait-hello { margin: clamp(10px, 1.7vh, 18px) 0 clamp(3px, .6vh, 6px); font-size: clamp(.85rem, 1.9vh, .98rem); font-weight: 600; opacity: .78; }
.wait-title {
	margin: 0;
	font-size: clamp(1.3rem, min(4.6vw, 4.4vh), 2.7rem);
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -.025em;
	background-image: linear-gradient(100deg, #ffffff 15%, color-mix(in srgb, var(--webai-accent, #67e8f9) 70%, #ffffff) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.wait-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: clamp(8px, 1.5vh, 16px);
}
.wait-meta .webai-host-badge { margin: 0; }
.wait-start-at {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 15px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	opacity: 1;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .15);
}
.wait-ico { width: 18px; height: 18px; flex: none; }
.wait-ico-dot { animation: waitBlink 2.4s ease-in-out infinite; }
@keyframes waitBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --- Screen + floating art ------------------------------------------------ */
.wait-screen-wrap {
	position: relative;
	/* Width is capped by the height the picture may take, so the frame
	   shrinks on short screens instead of pushing the page taller. */
	max-width: min(470px, calc((34vh - 26px) * 16 / 9));
	margin: clamp(12px, 2.6vh, 34px) auto 0;
}
.wait-screen {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	padding-top: 26px;
	border: 1px solid rgba(255, 255, 255, .18);
	background: linear-gradient(160deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .96));
	box-shadow: 0 26px 54px rgba(2, 6, 23, .5);
}
.wait-screen-bar {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 26px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	background: rgba(255, 255, 255, .08);
	z-index: 2;
}
.wait-screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.wait-screen-bar i:nth-child(2) { background: #fbbf24; }
.wait-screen-bar i:nth-child(3) { background: #34d399; }
.wait-thumb { margin: 0; }
.wait-thumb img {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.wait-art svg { display: block; width: 100%; height: auto; }
.wait-art-ring { animation: waitRipple 3.4s ease-out infinite; transform-box: view-box; transform-origin: 300px 44px; }
@keyframes waitRipple { 0% { transform: scale(.75); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
.wait-art-play { animation: waitBeat 2.6s ease-in-out infinite; transform-box: view-box; transform-origin: 180px 105px; }
@keyframes waitBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.wait-art-bubble { animation: waitFloat 5.5s ease-in-out infinite; }
.wait-art-spark { animation: waitTwinkle 2.8s ease-in-out infinite; }
@keyframes waitTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.wait-screen-sheen {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.2) 46%, transparent 60%);
	transform: translateX(-120%);
	animation: waitSheen 6s ease-in-out infinite;
}
@keyframes waitSheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.wait-wave {
	position: absolute;
	inset: -14px;
	display: block;
	border-radius: 30px;
	border: 2px solid color-mix(in srgb, var(--webai-accent, #67e8f9) 55%, transparent);
	opacity: 0;
	animation: waitWave 3.8s ease-out infinite;
	pointer-events: none;
}
.wait-wave.w2 { animation-delay: 1.9s; }
@keyframes waitWave {
	0%   { transform: scale(.96); opacity: .55; }
	100% { transform: scale(1.12); opacity: 0; }
}
.wait-float {
	position: absolute;
	width: 56px;
	height: 56px;
	z-index: 2;
	filter: drop-shadow(0 12px 24px rgba(2, 6, 23, .5));
}
.wait-float.f1 { top: -30px; left: -34px; animation: waitFloat 5.4s ease-in-out infinite; }
.wait-float.f2 { bottom: -30px; right: -34px; animation: waitFloat 6.4s ease-in-out infinite .6s; }
.wait-blink { animation: waitBlink 1.8s ease-in-out infinite; }
.wait-hand { transform-box: view-box; transform-origin: 24px 24px; animation: waitSpin360 12s linear infinite; }
.wait-hand-min { transform-box: view-box; transform-origin: 24px 24px; animation: waitSpin360 4s linear infinite; }

/* --- Countdown ------------------------------------------------------------ */
.wait-count { margin-top: clamp(12px, 2.4vh, 34px); }
.wait-count-label {
	margin: 0 0 clamp(7px, 1.4vh, 14px);
	font-size: clamp(.62rem, 1.4vh, .74rem);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .68;
}
body.webai-waiting .wait-countdown {
	display: flex;
	justify-content: center;
	gap: clamp(8px, 2vw, 14px);
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
}
.wait-unit {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	max-width: 132px;
	padding: clamp(8px, 1.6vh, 16px) 6px clamp(6px, 1.2vh, 12px);
	border-radius: clamp(12px, 1.8vh, 18px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .16);
	background: linear-gradient(170deg, rgba(255,255,255,.17), rgba(255,255,255,.05));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 16px 30px rgba(2, 6, 23, .3);
}
.wait-unit[hidden] { display: none; }
.wait-unit::before {
	content: "";
	position: absolute;
	top: 0;
	left: 14%;
	right: 14%;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--webai-accent, #67e8f9), var(--webai-btn, #ff6f00));
}
.wait-unit-val {
	display: block;
	font-size: clamp(1.35rem, min(6.4vw, 5.2vh), 2.9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}
.wait-unit-lbl {
	display: block;
	margin-top: clamp(4px, .9vh, 9px);
	font-size: clamp(.52rem, 1.2vh, .62rem);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .62;
}
.wait-unit.is-tick .wait-unit-val { animation: waitTick .5s ease; }
@keyframes waitTick {
	0%   { transform: translateY(-14%) scale(.94); opacity: .55; }
	60%  { transform: translateY(0) scale(1.03); opacity: 1; }
	100% { transform: none; opacity: 1; }
}
.wait-bar {
	max-width: 420px;
	height: 6px;
	margin: clamp(10px, 1.9vh, 20px) auto 0;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, .13);
}
.wait-bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--webai-accent, #67e8f9), var(--webai-btn, #ff6f00));
	box-shadow: 0 0 16px color-mix(in srgb, var(--webai-accent, #67e8f9) 60%, transparent);
	transition: width .9s linear;
}
body.webai-waiting .wait-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	max-width: 430px;
	margin: clamp(10px, 1.8vh, 18px) auto 0;
	font-size: clamp(.78rem, 1.75vh, .9rem);
	line-height: 1.55;
	text-align: left;
	opacity: .76;
}
body.webai-waiting .wait-note .wait-ico { margin-top: 1px; }

/* --- Calendar button ------------------------------------------------------ */
body.webai-waiting .wait-ics { margin: clamp(11px, 2vh, 26px) 0 0; }
body.webai-waiting .wait-ics-btn {
	gap: 10px;
	padding: clamp(9px, 1.6vh, 13px) clamp(16px, 2.2vw, 24px);
	font-size: clamp(.84rem, 1.8vh, 1rem);
	border: 0;
	color: #fff;
	background: linear-gradient(135deg, var(--webai-btn, #ff6f00), color-mix(in srgb, var(--webai-accent, #67e8f9) 60%, var(--webai-btn, #ff6f00)));
	box-shadow: 0 14px 30px color-mix(in srgb, var(--webai-btn, #ff6f00) 42%, transparent);
	transition: transform .18s ease, box-shadow .18s ease;
}
body.webai-waiting .wait-ics-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 40px color-mix(in srgb, var(--webai-btn, #ff6f00) 50%, transparent);
}
.wait-ico-check { stroke-dasharray: 18; stroke-dashoffset: 18; animation: waitDraw 3.2s ease-in-out infinite; }
@keyframes waitDraw {
	0%, 12%  { stroke-dashoffset: 18; }
	40%, 78% { stroke-dashoffset: 0; }
	100%     { stroke-dashoffset: 18; }
}

/* --- Tip cards ------------------------------------------------------------ */
.wait-tips {
	display: grid;
	gap: clamp(6px, 1.1vh, 10px);
	margin: clamp(11px, 2vh, 26px) 0 0;
	padding: 0;
	list-style: none;
}
.wait-tip {
	display: flex;
	align-items: center;
	gap: clamp(9px, 1.4vw, 13px);
	min-width: 0;
	padding: clamp(7px, 1.25vh, 12px) clamp(10px, 1.4vw, 14px);
	border-radius: clamp(12px, 1.8vh, 16px);
	text-align: left;
	border: 1px solid rgba(255, 255, 255, .13);
	background: rgba(255, 255, 255, .07);
}
.wait-tip-ico {
	display: grid;
	place-items: center;
	flex: none;
	width: clamp(32px, 5.2vh, 42px);
	height: clamp(32px, 5.2vh, 42px);
	border-radius: clamp(10px, 1.7vh, 13px);
	box-shadow: 0 10px 22px rgba(2, 6, 23, .32);
}
.wait-tip-ico svg { width: 58%; height: 58%; }
.wait-tip-ico.tone-a { background: linear-gradient(140deg, #22d3ee, #3b82f6); color: #ecfeff; }
.wait-tip-ico.tone-b { background: linear-gradient(140deg, #fbbf24, #f97316); color: #fff7ed; }
.wait-tip-ico.tone-c { background: linear-gradient(140deg, #a78bfa, #ec4899); color: #faf5ff; }
.wait-tip-text { font-size: clamp(.74rem, 1.65vh, .84rem); line-height: 1.45; opacity: .85; }
.wait-tip-ico .wave-a { animation: waitTwinkle 1.8s ease-in-out infinite; }
.wait-tip-ico .wave-b { animation: waitTwinkle 1.8s ease-in-out infinite .35s; }
.wait-tip-ico .bell-swing { transform-box: view-box; transform-origin: 16px 6px; animation: waitSwing 2.6s ease-in-out infinite; }
@keyframes waitSwing {
	0%, 60%, 100% { transform: rotate(0deg); }
	68% { transform: rotate(11deg); }
	76% { transform: rotate(-9deg); }
	84% { transform: rotate(6deg); }
	92% { transform: rotate(-4deg); }
}
.wait-tip-ico .dot-a { animation: waitBounce 1.4s ease-in-out infinite; }
.wait-tip-ico .dot-b { animation: waitBounce 1.4s ease-in-out infinite .18s; }
.wait-tip-ico .dot-c { animation: waitBounce 1.4s ease-in-out infinite .36s; }
@keyframes waitBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

/* --- Lobby footer + social proof ------------------------------------------ */
.wait-footer {
	margin: clamp(12px, 2vh, 30px) 0 0;
	padding-top: clamp(9px, 1.4vh, 16px);
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: clamp(.72rem, 1.55vh, .82rem);
	line-height: 1.5;
	opacity: .66;
}
body.webai-waiting .webai-social-proof { margin: clamp(20px, 3vw, 26px) auto 0; }

/* --- Light brand background ----------------------------------------------- */
body.webai-waiting.webai-on-light { color: #0f172a; }
body.webai-waiting.webai-on-light .wait-wrap { color: #0f172a; }
body.webai-waiting.webai-on-light .wait-card {
	border-color: rgba(15, 23, 42, .1);
	background: linear-gradient(165deg, rgba(255,255,255,.78), rgba(255,255,255,.52));
	box-shadow: 0 30px 70px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.9);
}
body.webai-waiting.webai-on-light .wait-title {
	background-image: none;
	-webkit-text-fill-color: #0f172a;
	color: #0f172a;
}
body.webai-waiting.webai-on-light .wait-chip,
body.webai-waiting.webai-on-light .wait-start-at,
body.webai-waiting.webai-on-light .wait-unit,
body.webai-waiting.webai-on-light .wait-tip {
	background: rgba(15, 23, 42, .05);
	border-color: rgba(15, 23, 42, .12);
}
body.webai-waiting.webai-on-light .wait-unit { box-shadow: 0 14px 28px rgba(15, 23, 42, .1); }
body.webai-waiting.webai-on-light .wait-bar { background: rgba(15, 23, 42, .12); }
body.webai-waiting.webai-on-light .wait-footer { border-top-color: rgba(15, 23, 42, .12); }
@media (min-width: 940px), (min-width: 700px) and (max-height: 700px), (min-width: 560px) and (max-height: 520px) {
	body.webai-waiting.webai-on-light .wait-col-b { border-left-color: rgba(15, 23, 42, .1); }
}
body.webai-waiting.webai-on-light .wait-note,
body.webai-waiting.webai-on-light .wait-footer,
body.webai-waiting.webai-on-light .wait-hello,
body.webai-waiting.webai-on-light .wait-tip-text,
body.webai-waiting.webai-on-light .wait-count-label,
body.webai-waiting.webai-on-light .wait-unit-lbl,
body.webai-waiting.webai-on-light .wait-start-at { color: #334155; }
body.webai-waiting.webai-on-light .webai-host-badge { color: #0f172a; }
body.webai-waiting.webai-on-light .wait-grid {
	background-image:
		linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px);
}

@media (max-height: 720px) {
	.wait-float { width: 44px; height: 44px; }
	.wait-shape { width: 46px; height: 46px; }
	.wait-screen-bar { height: 20px; }
	.wait-screen { padding-top: 20px; }
}
@media (max-height: 680px) {
	/* Give the picture less of a short screen so the text keeps its size. */
	.wait-screen-wrap { max-width: min(470px, calc((26vh - 20px) * 16 / 9)); }
}
@media (max-height: 600px) {
	.wait-chip { padding: 5px 12px; font-size: .64rem; }
	.wait-float, .wait-wave { display: none; }
	.wait-screen-wrap { max-width: min(470px, calc((24vh - 20px) * 16 / 9)); }
}

/* Very small phones: shed weight rather than scale the whole card down to
   unreadable type. The tip strip keeps its animated icons and hides its
   wording (still read out by screen readers). */
@media (max-width: 340px), (max-width: 420px) and (max-height: 600px) {
	.wait-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; }
	.wait-tip { justify-content: center; padding: 8px 6px; }
	.wait-tip-text {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		white-space: nowrap;
		clip-path: inset(50%);
	}
	.wait-bar { display: none; }
	.wait-screen-wrap { max-width: min(470px, calc((22vh - 10px) * 16 / 9)); }
}

@media (max-width: 560px) {
	.wait-card { padding: 18px 14px; border-radius: 22px; }
	.wait-screen-bar { display: none; }
	.wait-screen { padding-top: 0; }
	.wait-unit { padding: 12px 4px 9px; border-radius: 14px; }
	.wait-unit-lbl { font-size: .55rem; letter-spacing: .1em; }
	.wait-float { width: 44px; height: 44px; }
	.wait-float.f1 { top: -18px; left: -14px; }
	.wait-float.f2 { bottom: -16px; right: -12px; }
	.wait-shape { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	body.webai-waiting .wait-aurora,
	body.webai-waiting .wait-shape,
	body.webai-waiting .wait-card,
	body.webai-waiting .wait-float,
	body.webai-waiting .wait-wave,
	body.webai-waiting .wait-screen-sheen,
	body.webai-waiting .wait-chip-pulse,
	body.webai-waiting .wait-ico-dot,
	body.webai-waiting .wait-ico-check,
	body.webai-waiting .wait-art-ring,
	body.webai-waiting .wait-art-play,
	body.webai-waiting .wait-art-bubble,
	body.webai-waiting .wait-art-spark,
	body.webai-waiting .wait-hand,
	body.webai-waiting .wait-hand-min,
	body.webai-waiting .wait-blink,
	body.webai-waiting .wait-tip-ico svg *,
	body.webai-waiting .wait-unit.is-tick .wait-unit-val { animation: none; }
	body.webai-waiting .wait-screen-sheen { opacity: 0; }
	body.webai-waiting .wait-bar span { transition: none; }
}
