:root {
	/* brand accent palette -- unchanged across both themes */
	--bb-c1: #E8114B; /* SEO/GEO - red */
	--bb-c2: #F2521E; /* WhatsApp/SMS - red-orange */
	--bb-c3: #FB9A00; /* AI Photo - orange */
	--bb-c4: #4CAF1E; /* Website Maint - green */
	--bb-c5: #0FAE6B; /* Amazon - green-teal */
	--bb-c6: #1596C8; /* AI ERP - teal-blue */
	--bb-c7: #2F6FED; /* AI Calling - blue */
	--bb-c8: #6B4FE0; /* CRM - blue-purple */
	--bb-c9: #9A3FE0; /* B2B Ecommerce - purple */

	/* light theme (default) */
	--bg: #F5F6FA;
	--bg-2: #FFFFFF;
	--ink: #1F2937;
	--ink-soft: #64708299;
	--ink-soft-solid: #5B6472;
	--card-bg: rgba(255, 255, 255, 0.78);
	--card-border: rgba(31, 41, 55, 0.08);
	--card-shadow: 0 24px 60px rgba(31, 41, 55, 0.12), 0 2px 10px rgba(31, 41, 55, 0.06);
	--input-bg: #FFFFFF;
	--input-border: rgba(31, 41, 55, 0.14);
	--input-focus-ring: rgba(47, 111, 237, 0.18);
	--blob-opacity: 0.12;
	--wheel-divider: rgba(255, 255, 255, 0.9);
	--wheel-ring: rgba(31, 41, 55, 0.14);
	--hub-disc: #FDFDFE;
	--btn-ink: #ffffff;
	--toggle-bg: rgba(31, 41, 55, 0.06);
	--toggle-border: rgba(31, 41, 55, 0.12);
}

:root[data-theme="dark"] {
	--bg: #14161F;
	--bg-2: #1B1E29;
	--ink: #F3F5F9;
	--ink-soft: #A7AEBDCC;
	--ink-soft-solid: #A7AEBD;
	--card-bg: rgba(255, 255, 255, 0.055);
	--card-border: rgba(255, 255, 255, 0.10);
	--card-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
	--input-bg: rgba(255, 255, 255, 0.04);
	--input-border: rgba(255, 255, 255, 0.14);
	--input-focus-ring: rgba(47, 111, 237, 0.30);
	--blob-opacity: 0.24;
	--wheel-divider: rgba(20, 22, 31, 0.85);
	--wheel-ring: rgba(255, 255, 255, 0.16);
	--hub-disc: #1B1E29;
	--btn-ink: #ffffff;
	--toggle-bg: rgba(255, 255, 255, 0.08);
	--toggle-border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html, body.bb-sw-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	overflow-x: hidden;
	transition: background-color .35s ease, color .35s ease;
}

.bb-sw-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: var(--bg);
	transition: background-color .35s ease;
}

.bb-sw-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(100px);
	opacity: var(--blob-opacity);
	animation: bb-sw-float 24s ease-in-out infinite;
	transition: opacity .35s ease;
}
.bb-sw-blob--1 { width: 460px; height: 460px; left: -120px; top: -100px; background: radial-gradient(circle, var(--bb-c1), transparent 70%); animation-duration: 26s; }
.bb-sw-blob--2 { width: 420px; height: 420px; right: -100px; top: 8%; background: radial-gradient(circle, var(--bb-c7), transparent 70%); animation-duration: 30s; animation-delay: -4s; }
.bb-sw-blob--3 { width: 440px; height: 440px; left: 2%; bottom: -140px; background: radial-gradient(circle, var(--bb-c5), transparent 70%); animation-duration: 28s; animation-delay: -9s; }
.bb-sw-blob--4 { width: 380px; height: 380px; right: 4%; bottom: -110px; background: radial-gradient(circle, var(--bb-c8), transparent 70%); animation-duration: 24s; animation-delay: -13s; }

@keyframes bb-sw-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(26px, -26px) scale(1.06); }
}

.bb-sw-grain { display: none; }

/* Theme toggle */
.bb-sw-theme-toggle {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--toggle-border);
	background: var(--toggle-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ink);
	transition: background .2s ease, transform .15s ease;
}
.bb-sw-theme-toggle:hover { transform: scale(1.06); }
.bb-sw-theme-toggle svg { width: 20px; height: 20px; }
.bb-sw-theme-toggle .bb-sw-icon-moon { display: none; }
:root[data-theme="dark"] .bb-sw-theme-toggle .bb-sw-icon-sun { display: none; }
:root[data-theme="dark"] .bb-sw-theme-toggle .bb-sw-icon-moon { display: block; }

.bb-sw-stage {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.bb-sw-panel {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: 560px;
	animation: bb-sw-panel-in 0.6s cubic-bezier(.2,.8,.2,1);
}
.bb-sw-panel.is-active { display: flex; }

@keyframes bb-sw-panel-in {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.bb-sw-logo { max-width: 240px; height: auto; margin-bottom: 26px; }

.bb-sw-headline {
	font-family: 'Manrope', 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(26px, 4.6vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	color: var(--ink);
}
.bb-sw-headline--sm { font-size: clamp(21px, 3.6vw, 28px); margin-bottom: 26px; }
.bb-sw-headline--accent {
	background: linear-gradient(95deg, var(--bb-c7), var(--bb-c8));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bb-sw-subheading { color: var(--ink-soft-solid); font-size: 15.5px; max-width: 440px; margin: 0 0 30px; line-height: 1.5; }

.bb-sw-form {
	width: 100%;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 22px;
	padding: 30px;
	box-shadow: var(--card-shadow);
	text-align: left;
}

.bb-sw-field { margin-bottom: 16px; }
.bb-sw-field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft-solid); margin-bottom: 6px; text-transform: uppercase; }
.bb-sw-req { color: var(--bb-c1); }

.bb-sw-field input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--input-border);
	background: var(--input-bg);
	color: var(--ink);
	font-size: 15px;
	font-family: inherit;
	transition: border-color .2s, box-shadow .2s;
}
.bb-sw-field input::placeholder { color: var(--ink-soft); }
.bb-sw-field input:focus {
	outline: none;
	border-color: var(--bb-c7);
	box-shadow: 0 0 0 3px var(--input-focus-ring);
}
.bb-sw-field input.is-invalid { border-color: var(--bb-c1); box-shadow: 0 0 0 3px rgba(232,17,75,0.16); }

.bb-sw-error { display: block; min-height: 16px; font-size: 12px; color: var(--bb-c1); margin-top: 4px; }
.bb-sw-form-error { min-height: 20px; font-size: 13px; color: var(--bb-c1); margin-bottom: 6px; text-align: center; }

.bb-sw-hp { position: absolute; left: -9999px; top: -9999px; }

.bb-sw-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--btn-ink);
	border-radius: 999px;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.bb-sw-btn:active { transform: scale(0.97); }
.bb-sw-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.bb-sw-btn--primary {
	width: 100%;
	padding: 15px 20px;
	font-size: 15.5px;
	background: linear-gradient(95deg, var(--bb-c7), var(--bb-c8));
	box-shadow: 0 10px 24px rgba(47,111,237,.28);
}
.bb-sw-btn--primary:hover { box-shadow: 0 14px 30px rgba(47,111,237,.36); transform: translateY(-1px); }

.bb-sw-btn--spin {
	margin-top: 32px;
	padding: 15px 44px;
	font-size: 16.5px;
	background: linear-gradient(95deg, var(--bb-c1), var(--bb-c3));
	box-shadow: 0 10px 24px rgba(232,17,75,.28);
}
.bb-sw-btn--spin:hover { box-shadow: 0 14px 30px rgba(232,17,75,.36); transform: translateY(-1px); }

/* ---------------- Wheel (flat, icons-in / labels-out) ---------------- */

.bb-sw-panel--wheel { max-width: 720px; }

.bb-sw-wheel-wrap {
	position: relative;
	width: min(78vw, 400px);
	height: min(78vw, 400px);
	margin: 28px auto 46px;
}
@media (min-width: 640px) {
	.bb-sw-wheel-wrap { width: min(48vw, 540px); height: min(48vw, 540px); }
}

.bb-sw-wheel-ring {
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 3px solid var(--wheel-ring);
	pointer-events: none;
}

.bb-sw-pointer {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	z-index: 4;
	border-left: 13px solid transparent;
	border-right: 13px solid transparent;
	border-top: 22px solid var(--ink);
}

.bb-sw-wheel-spin {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	transition: transform 4.6s cubic-bezier(.11,.83,.14,1);
	will-change: transform;
	z-index: 2;
}
.bb-sw-wheel-spin svg { display: block; width: 100%; height: 100%; overflow: visible; }

.bb-sw-icon-counter {
	transform: rotate(0deg);
	transition: transform 4.6s cubic-bezier(.11,.83,.14,1);
}

.bb-sw-chip {
	position: absolute;
	z-index: 3;
	transform: translate(-50%, -50%) rotate(0deg);
	transition: transform 4.6s cubic-bezier(.11,.83,.14,1);
	width: clamp(58px, 21vw, 96px);
	padding: 5px 8px;
	border-radius: 9px;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 10.5px;
	line-height: 1.2;
	text-align: center;
	word-break: break-word;
	box-shadow: 0 2px 6px rgba(31,41,55,.16);
}
@media (min-width: 640px) {
	.bb-sw-chip { width: clamp(90px, 12vw, 128px); font-size: 12px; padding: 6px 11px; }
}

.bb-sw-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 25%;
	aspect-ratio: 1/1;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--bb-c1), var(--bb-c2), var(--bb-c3), var(--bb-c4), var(--bb-c5), var(--bb-c6), var(--bb-c7), var(--bb-c8), var(--bb-c9), var(--bb-c1));
	padding: 4px;
	z-index: 3;
}
.bb-sw-hub::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--hub-disc);
	transition: background-color .35s ease;
}
.bb-sw-hub-logo {
	position: absolute;
	z-index: 1;
	width: 68%;
	height: 68%;
	object-fit: contain;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Result */
.bb-sw-panel--result { position: relative; }
.bb-sw-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.bb-sw-result-card {
	position: relative;
	z-index: 3;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 22px;
	padding: 42px 34px;
	box-shadow: var(--card-shadow);
}
.bb-sw-result-emoji { font-size: 44px; margin-bottom: 6px; }
.bb-sw-prize {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: clamp(21px, 4vw, 28px);
	margin: 6px 0 4px;
	background: linear-gradient(95deg, var(--bb-c3), var(--bb-c1));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.bb-sw-prize-sub { color: var(--ink-soft-solid); font-weight: 600; margin: 0 0 18px; font-size: 14px; }
.bb-sw-cta-message { color: var(--ink); opacity: .85; font-size: 14px; margin: 0; line-height: 1.5; }

@media (max-width: 480px) {
	.bb-sw-form { padding: 22px; }
}
