/* Blank Media Splash Helper — matches the Gang Sheet Builder palette */
:root {
	--bms-accent: #ef4444;
	--bms-accent-dark: #b91c1c;
	--bms-ink: #0f172a;
	--bms-muted: #6b7280;
	--bms-line: #e5e7eb;
	--bms-soft: #f9fafb;
}

/* ── Overlay + modal ─────────────────────── */
.bm-splash-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .25s ease;
}
.bm-splash-overlay.bm-splash-visible { opacity: 1; }
.bm-splash-overlay[hidden] { display: none; }

.bm-splash-modal {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--bms-ink);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	transform: translateY(14px) scale(.98);
	transition: transform .25s ease;
}
.bm-splash-visible .bm-splash-modal { transform: none; }

.bm-splash-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bms-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.bm-splash-close:hover { background: var(--bms-soft); color: var(--bms-ink); }

.bm-splash-header { padding: 22px 56px 0 26px; }
.bm-splash-header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bms-ink);
}

.bm-splash-body {
	padding: 14px 26px 6px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.55;
}
.bm-splash-body p { margin: 0 0 12px; }
.bm-splash-intro { font-size: 16px; color: #374151; }

.bm-splash-footer {
	padding: 14px 26px 20px;
	border-top: 1px solid var(--bms-line);
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}
.bm-splash-guide-btn {
	border: 0;
	border-radius: 8px;
	padding: 10px 22px;
	background: var(--bms-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.bm-splash-guide-btn:hover { background: var(--bms-accent-dark); }
.bm-splash-gotit {
	border: 0;
	border-radius: 8px;
	padding: 10px 22px;
	background: var(--bms-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.bm-splash-gotit:hover { background: #1e293b; }

/* ── Content helpers (usable in the editor) ── */
.bm-splash-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 4px 0 14px;
}
.bm-splash-card {
	border: 1px solid var(--bms-line);
	border-radius: 10px;
	padding: 16px 18px;
	background: var(--bms-soft);
}
.bm-splash-card-alt {
	background: #fef2f2;
	border-color: #fecaca;
}
.bm-splash-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
}
.bm-splash-card ol {
	margin: 0;
	padding-left: 20px;
}
.bm-splash-card ol li { margin-bottom: 6px; }

.bm-splash-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--bms-accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.bm-splash-btn:hover { background: var(--bms-accent-dark); }

.bm-splash-check {
	border-top: 1px solid var(--bms-line);
	padding-top: 12px;
	margin-bottom: 8px;
}
.bm-splash-check h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--bms-muted);
}
.bm-splash-check ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 18px;
}
.bm-splash-check li { padding-left: 22px; position: relative; }
.bm-splash-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}

/* ── Floating assistant button ────────────── */
.bm-splash-fab {
	position: fixed;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--bms-ink);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
}
.bm-splash-fab:hover { background: #1e293b; }
.bm-splash-fab-main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 4px 10px 12px;
	cursor: pointer;
}
.bm-splash-fab-q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bms-accent);
	font-size: 13px;
	flex: none;
}
.bm-splash-fab-min {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .55);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 14px 10px 6px;
	cursor: pointer;
}
.bm-splash-fab-min:hover { color: #fff; }

/* Minimised: just the round "?" — click to expand. */
.bm-splash-fab.bm-min .bm-splash-fab-label,
.bm-splash-fab.bm-min .bm-splash-fab-min { display: none; }
.bm-splash-fab.bm-min { border-radius: 50%; }
.bm-splash-fab.bm-min .bm-splash-fab-main { padding: 11px; }

/* ── Assistant: pulse + nudge bubble ──────── */
@keyframes bm-splash-pulse {
	0%   { box-shadow: 0 8px 24px rgba(15, 23, 42, .3), 0 0 0 0 rgba(239, 68, 68, .55); }
	70%  { box-shadow: 0 8px 24px rgba(15, 23, 42, .3), 0 0 0 14px rgba(239, 68, 68, 0); }
	100% { box-shadow: 0 8px 24px rgba(15, 23, 42, .3), 0 0 0 0 rgba(239, 68, 68, 0); }
}
.bm-splash-fab.bm-splash-pulse { animation: bm-splash-pulse 1.6s ease-out infinite; }

.bm-splash-nudge {
	position: fixed;
	z-index: 999998;
	max-width: 280px;
	background: #fff;
	color: var(--bms-ink);
	border: 1px solid var(--bms-line);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	animation: bm-splash-nudge-in .3s ease;
}
@keyframes bm-splash-nudge-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
.bm-splash-nudge p { margin: 0 24px 10px 0; }
.bm-splash-nudge-go {
	border: 0;
	border-radius: 7px;
	padding: 8px 14px;
	background: var(--bms-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.bm-splash-nudge-go:hover { background: var(--bms-accent-dark); }
.bm-splash-nudge-x {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: transparent;
	color: var(--bms-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.bm-splash-nudge-next {
	margin: -4px 24px 10px 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--bms-accent-dark);
}
.bm-splash-nudge-ask {
	border: 0;
	border-radius: 7px;
	padding: 8px 12px;
	background: var(--bms-soft);
	color: var(--bms-ink);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.bm-splash-nudge-ask:hover { background: var(--bms-line); }

/* ── Assistant: ask a question ────────────── */
.bm-splash-qa {
	position: fixed;
	z-index: 999999;
	width: 320px;
	max-width: calc(100vw - 24px);
	background: #fff;
	color: var(--bms-ink);
	border: 1px solid var(--bms-line);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	animation: bm-splash-nudge-in .3s ease;
}
.bm-splash-qa h4 { margin: 0 24px 10px 0; font-size: 15px; }
.bm-splash-qa p { margin: 0 24px 4px 0; }
.bm-splash-qa textarea,
.bm-splash-qa input[type=email] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--bms-line);
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 8px;
	font: inherit;
	font-size: 13px;
	color: var(--bms-ink);
	background: #fff;
	resize: vertical;
}
.bm-splash-qa-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.bm-splash-qa-status { font-size: 12px; color: var(--bms-accent-dark); }
.bm-splash-qa-send {
	border: 0;
	border-radius: 7px;
	padding: 8px 14px;
	background: var(--bms-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.bm-splash-qa-send:hover { background: var(--bms-accent-dark); }
.bm-splash-qa-send:disabled { opacity: .6; cursor: default; }

.bm-splash-qa-answer {
	background: var(--bms-soft);
	border: 1px solid var(--bms-line);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
	max-height: 40vh;
	overflow-y: auto;
}
.bm-splash-qa-answer p { margin: 0 0 8px; }
.bm-splash-qa-answer p:last-child { margin-bottom: 0; }
.bm-splash-qa-fbq { font-size: 12px; color: var(--bms-muted); margin: 0 0 8px; }
.bm-splash-qa-fb-yes,
.bm-splash-qa-fb-no {
	border: 0;
	border-radius: 7px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.bm-splash-qa-fb-yes { background: #16a34a; color: #fff; }
.bm-splash-qa-fb-yes:hover { background: #15803d; }
.bm-splash-qa-fb-no { background: var(--bms-soft); color: var(--bms-ink); }
.bm-splash-qa-fb-no:hover { background: var(--bms-line); }

.bm-splash-qa-wa {
	display: block;
	text-align: center;
	border-radius: 8px;
	padding: 10px 14px;
	margin: 4px 0 6px;
	background: #25d366;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}
.bm-splash-qa-wa:hover { background: #1ebe5b; }
.bm-splash-qa-hours {
	font-size: 12px;
	color: var(--bms-muted);
	text-align: center;
	margin: 0 0 2px !important;
}

.bm-splash-ask-link {
	border: 0;
	border-radius: 8px;
	padding: 10px 16px;
	background: transparent;
	color: var(--bms-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	margin-right: auto;
}
.bm-splash-ask-link:hover { color: var(--bms-ink); }

/* ── Assistant: spotlight tour ────────────── */
.bm-splash-spot {
	position: fixed;
	z-index: 999997;
	border-radius: 10px;
	box-shadow: 0 0 0 3px var(--bms-accent), 0 0 0 9999px rgba(15, 23, 42, .55);
	pointer-events: none;
	transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease;
}
.bm-splash-tip {
	position: fixed;
	z-index: 999999;
	max-width: 320px;
	background: #fff;
	color: var(--bms-ink);
	border-radius: 12px;
	padding: 14px 16px 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	transition: top .3s ease, left .3s ease;
}
.bm-splash-tip-text { margin-bottom: 10px; font-weight: 500; }
.bm-splash-tip-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.bm-splash-tip-count { color: var(--bms-muted); font-size: 12px; }
.bm-splash-tip-bar button {
	border: 0;
	border-radius: 7px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	margin-left: 6px;
}
.bm-splash-tip-back { background: var(--bms-soft); color: var(--bms-ink); }
.bm-splash-tip-next { background: var(--bms-accent); color: #fff; }
.bm-splash-tip-next:hover { background: var(--bms-accent-dark); }
.bm-splash-tip-exit { background: transparent; color: var(--bms-muted); font-size: 16px; padding: 7px 6px; }

/* ── Mobile ───────────────────────────────── */
@media (max-width: 640px) {
	.bm-splash-cards { grid-template-columns: 1fr; }
	.bm-splash-check ul { grid-template-columns: 1fr; }
	.bm-splash-modal { max-height: 92vh; border-radius: 12px; }
	.bm-splash-header { padding: 18px 48px 0 18px; }
	.bm-splash-header h2 { font-size: 19px; }
	.bm-splash-body, .bm-splash-footer { padding-left: 18px; padding-right: 18px; }
	.bm-splash-nudge, .bm-splash-tip { max-width: calc(100vw - 24px); }
}

body.bm-splash-lock { overflow: hidden; }
