
.sbx-features {
	--sbx-bg-from: #03060f; /* very dark premium blue (not black) top */
	--sbx-bg-to: #0a193d;   /* premium dark blue bottom */
	--sbx-gold: #FFD400;
	--sbx-soft: #FFE35A;
	--sbx-text: #ECECEC;
	--sbx-muted: #B6B6B6;
	--sbx-black: #000;
	--sbx-card: #0e0e0e;
	--sbx-border: rgba(255, 212, 0, 0.35);
	--sbx-glow: 0 0 10px rgba(255, 212, 0, 0.35), 0 0 28px rgba(255, 212, 0, 0.22);
	--sbx-radius: 22px;
	--sbx-radius-lg: 26px;
	--sbx-radius-xl: 30px;
	--sbx-outline: 2px solid rgba(255, 212, 0, 0.95);
	--sbx-pill-shadow: 0 0 14px rgba(255, 212, 0, 0.35);
	--sbx-transition: 220ms cubic-bezier(.2,.7,.2,1);
	position: relative;
	background:
		radial-gradient(1200px 700px at 15% -20%, rgba(32, 60, 160, .20), transparent 55%),
		radial-gradient(900px 600px at 85% 120%, rgba(10, 21, 51, .18), transparent 60%),
		linear-gradient(180deg, var(--sbx-bg-from), var(--sbx-bg-to));
	color: var(--sbx-text);
	padding: 64px 22px 72px;
	contain: layout paint style;
}

.sbx-features__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.sbx-features__header {
	margin-bottom: 20px;
	text-align: center;
}
.sbx-features__title {
	font-family: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
	font-weight: 800;
	letter-spacing: 0.1px;
	font-size: clamp(27px, 4.2vw, 40px);
	background: linear-gradient(135deg, #FFFFFF 0%, #FFD400 25%, #FFE35A 50%, #FFD400 75%, #FFFFFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 20px rgba(255, 212, 0, 0.3), 0 0 40px rgba(255, 227, 90, 0.2);
	margin: 0 0 6px 0;
	position: relative;
}
.sbx-features__subtitle {
	margin: 2px 0 0 0;
	color: #CFCFCF;
	font-size: 18px;
}

/* Tabs / Pills */
.sbx-features__tabs {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 12px 8px 16px;
	margin-bottom: 20px;
	scrollbar-width: none;
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 999px;
}
.sbx-features__tabs::-webkit-scrollbar {
	display: none;
}
.sbx-feature-desc {
	max-width: 980px;
	margin: 10px auto 20px;
	text-align: center;
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.6;
	background: linear-gradient(135deg, rgba(255, 212, 0, 0.10), rgba(255, 212, 0, 0.04));
	border: 1px solid rgba(255, 212, 0, 0.45);
	box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 28px rgba(255, 212, 0, 0.18), 0 0 0 1.5px rgba(255, 212, 0, 0.25) inset;
	border-radius: 16px;
	padding: 14px 18px;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.sbx-feature-desc__line {
    display: block; /* force each point onto its own line */
    text-align: center;
    margin: 6px 0;
}
.sbx-feature-desc__line::before { content: none; }
.sbx-feature-desc__dot {
    color: var(--sbx-soft);
    opacity: .95;
    text-shadow: 0 0 8px rgba(255, 227, 90, .25);
    line-height: 1; /* keep aligned to first line */
    margin-top: 0.15em;
    flex: 0 0 auto;
}
.sbx-feature-desc__text {
    display: inline-block;
    text-align: center;
}
.sbx-pill {
	-webkit-tap-highlight-color: transparent;
	background: transparent;
	color: var(--sbx-gold);
	border: 1px solid var(--sbx-border);
	border-radius: 999px;
	padding: 11px 16px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background var(--sbx-transition), color var(--sbx-transition), box-shadow var(--sbx-transition), transform var(--sbx-transition);
	outline: none;
	position: relative;
	display: inline-flex;
	align-items: center;
}
.sbx-pill::before {
	content: none;
	display: none;
}
.sbx-pill::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	background: var(--sbx-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--sbx-transition);
	border-radius: 2px;
}
.sbx-pill.is-active::after {
	transform: scaleX(1);
}
.sbx-pill:focus-visible {
	box-shadow: var(--sbx-pill-shadow);
	outline: var(--sbx-outline);
	outline-offset: 2px;
}
.sbx-pill:hover {
	transform: translateY(-1px);
}
.sbx-pill.is-active {
	background: linear-gradient(135deg, var(--sbx-gold), var(--sbx-soft));
	color: #111;
	box-shadow: var(--sbx-glow);
	border-color: transparent;
}

/* Showcase */
.sbx-showcase {
	position: relative;
	outline: none;
	--sbx-height: auto;
}

/* Spacing between feature sections */
.sbx-showcase + .sbx-showcase {
	margin-top: 80px;
}

/* Additional spacing between edits section and text to thumbnail card */
.sbx-feature-section + .sbx-showcase + .sbx-feature-section {
	margin-top: 50px;
}

/* Modern Separator Line */
.sbx-feature-section + .sbx-showcase {
	position: relative;
}

.sbx-feature-section + .sbx-showcase::before {
	content: '';
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--sbx-gold) 50%, transparent 100%);
	border-radius: 1px;
	opacity: 0.6;
	box-shadow: 0 0 20px rgba(255, 212, 0, 0.3);
}

/* Feature Section Titles and Descriptions */
.sbx-feature-section {
	margin-bottom: 3rem;
	text-align: center;
	position: relative;
}

.sbx-feature-section__title {
	font-family: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 4vw, 36px);
	color: var(--sbx-text);
	margin: 0 0 1.5rem 0;
	background: linear-gradient(135deg, #FFFFFF 0%, var(--sbx-gold) 50%, #FFE35A 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 30px rgba(255, 212, 0, 0.2);
	letter-spacing: -0.02em;
	position: relative;
	display: inline-block;
}

.sbx-feature-section__title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--sbx-gold), var(--sbx-soft));
	border-radius: 2px;
	box-shadow: 0 0 15px rgba(255, 212, 0, 0.4);
}

/* Coming Soon Badge */
.sbx-coming-soon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 1rem;
	background: #000000 !important;
	color: #FFFFFF !important;
	border: 2px solid var(--sbx-gold);
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: clamp(10px, 1.4vw, 12px);
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(255, 212, 0, 0.3), 0 0 0 1px rgba(255, 212, 0, 0.1) inset;
	text-shadow: none;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	position: relative;
	width: fit-content;
	vertical-align: middle;
	top: -2px;
	/* Override parent title's background-clip properties */
	-webkit-background-clip: initial !important;
	background-clip: initial !important;
	-webkit-text-fill-color: #FFFFFF !important;
}

.sbx-coming-soon-badge::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 212, 0, 0.1), transparent);
	border-radius: inherit;
	pointer-events: none;
}

/* Mobile adjustments for coming soon badge */
@media (max-width: 1024px) {
	.sbx-coming-soon-badge {
		font-size: 9px;
		padding: 0.25rem 0.5rem;
		margin-left: 0.75rem;
		top: -1px;
	}
}

@media (max-width: 640px) {
	.sbx-coming-soon-badge {
		font-size: 8px;
		padding: 0.2rem 0.4rem;
		margin-left: 0.5rem;
		top: -1px;
	}
}

.sbx-feature-section__desc {
	font-family: 'Inter', sans-serif;
	font-size: clamp(17px, 2.5vw, 19px);
	color: #D1D1D1;
	line-height: 1.7;
	margin: 0;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
	font-weight: 400;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
	position: relative;
	text-align: center;
}

.sbx-feature-section__desc::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 212, 0, 0.3), transparent);
}

/* Multiple points styling */
.sbx-feature-section__desc .sbx-desc-point {
	display: block;
	margin: 0.5rem 0;
	position: relative;
	padding-left: 0;
}

.sbx-feature-section__desc .sbx-desc-point::before {
	content: '•';
	color: var(--sbx-gold);
	font-weight: 600;
	margin-right: 0.5rem;
	text-shadow: 0 0 8px rgba(255, 212, 0, 0.4);
}

.sbx-feature-section__desc .sbx-desc-point:first-child {
	margin-top: 0;
}

.sbx-feature-section__desc .sbx-desc-point:last-child {
	margin-bottom: 0;
}

.sbx-card {
	position: relative;
	background: var(--sbx-card);
	border-radius: var(--sbx-radius-xl);
	padding: 26px;
	min-height: 520px;
	height: var(--sbx-height);
	box-shadow: 0 0 0 1px var(--sbx-border) inset, 0 0 0 3px rgba(255, 212, 0, 0.08) inset, 0 15px 60px rgba(0,0,0,.45);
	background-image: radial-gradient(1200px 480px at 20% 10%, rgba(255, 212, 0, 0.05), transparent 40%), radial-gradient(800px 400px at 80% 90%, rgba(255, 227, 90, 0.05), transparent 35%), radial-gradient(520px 420px at -10% 120%, rgba(32, 40, 120, .18), transparent 50%), radial-gradient(520px 420px at 110% -10%, rgba(255, 212, 0, .06), transparent 55%);
	contain: layout paint;
}

/* Desktop positioning */
.sbx-frame {
	position: absolute;
	z-index: 1;
	width: 36%;
	max-width: 540px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--sbx-radius-lg);
	box-shadow: 0 0 0 1px rgba(255, 212, 0, .42), 0 0 28px rgba(255, 212, 0, .14);
	overflow: hidden;
}
.sbx-frame::after {
	content: '';
	position: absolute;
	inset: -18% -8%;
	border-radius: inherit;
	filter: blur(28px);
	opacity: .25;
	z-index: 0;
	pointer-events: none;
	animation: sbx-ambience 12s ease-in-out infinite;
}
.sbx-frame--before::after {
	background: radial-gradient(60% 60% at 50% 50%, rgba(55,230,255,.55), transparent 70%);
}
.sbx-frame--after::after {
	background: radial-gradient(60% 60% at 50% 50%, rgba(255,212,0,.5), transparent 70%);
}
@keyframes sbx-ambience {
	0%,100% {
		transform: scale(1);
		opacity: .22;
	}
	50% {
		transform: scale(1.04);
		opacity: .3;
	}
}
.sbx-frame--before {
	top: 32px;
	left: 32px;
}
.sbx-frame--after {
	right: 32px;
	bottom: 32px;
}
.sbx-frame__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	display: block;
	opacity: 1;
	transition: opacity 260ms ease, transform 260ms ease;
	transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
}
.sbx-frame__img.is-swapping {
	opacity: 0;
}

/* Loading states */
.sbx-frame__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	z-index: 2;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.sbx-frame__loading.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.sbx-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 212, 0, 0.3);
	border-top: 3px solid var(--sbx-gold);
	border-radius: 50%;
	animation: sbx-spin 1s linear infinite;
}

@keyframes sbx-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.sbx-frame__img.is-loading {
	opacity: 0;
}
/* Hover hotspot zoom for after image */
.sbx-frame--after {
	cursor: zoom-in;
}
.sbx-frame--after:hover .sbx-frame__img {
	transform: scale(1.06);
}

/* Placeholder for Text to Thumbnail before frame */
.sbx-placeholder {
	position: absolute;
	inset: 0;
	display: none;
	place-items: center;
	z-index: 1;
}
.sbx-placeholder__inner {
	width: 92%;
	height: 78%;
	border: 2px dashed rgba(255,212,0,.55);
	border-radius: 20px;
	display: grid;
	justify-items: center;
	align-items: center;
	align-content: center;
	grid-auto-flow: row;
	grid-auto-rows: max-content;
	row-gap: 8px;
	text-align: center;
	color: var(--sbx-text);
	background: rgba(0,0,0,.35);
	box-shadow: inset 0 0 0 1px rgba(255,212,0,.15), 0 10px 30px rgba(0,0,0,.35);
	padding: 10px 0;
}
.sbx-placeholder__title {
	font-weight: 800;
	font-size: 24px;
	letter-spacing: .2px;
	color: var(--sbx-gold);
	line-height: 1.1;
	margin: 0;
}
.sbx-placeholder__subtitle {
	font-size: 16px;
	color: #CFCFCF;
	margin: 0;
	padding: 0 18px;
	line-height: 1.3;
}

.sbx-badge {
	position: absolute;
	background: linear-gradient(135deg, var(--sbx-gold), var(--sbx-soft));
	color: #111;
	font-weight: 700;
	font-size: 11px;
	padding: 6px 10px;
	border-radius: 999px;
	box-shadow: var(--sbx-glow);
	z-index: 2;
}
.sbx-badge--tl::before,
.sbx-badge--br::before {
	content: none;
	display: none;
}
.sbx-badge--tl {
	top: 8px;
	left: 8px;
}
.sbx-badge--br {
	right: 8px;
	bottom: 8px;
}

/* Animation Stage */
.sbx-stage {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 14%;
	bottom: 12%;
	border-radius: var(--sbx-radius);
	pointer-events: none;
	overflow: visible;
	z-index: 0;
}
.sbx-stage__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 227, 90, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 212, 0, 0.05) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 85%);
	animation: sbx-grid 8s linear infinite;
}
/* Subtle floating particles */
.sbx-stage__particles {
	position: absolute;
	inset: -60px -20px;
	background: radial-gradient(circle at 10% 20%, rgba(255,255,255,.06) 0 2px, transparent 3px) -40px -20px/120px 120px,
	radial-gradient(circle at 80% 70%, rgba(255,212,0,.05) 0 2px, transparent 3px) 0 0/160px 160px;
	opacity: .25;
	filter: blur(.2px);
	animation: sbx-particles 24s linear infinite;
	pointer-events: none;
}
@keyframes sbx-particles {
	0% {
		transform: translate3d(0,0,0);
	}
	100% {
		transform: translate3d(-80px,-40px,0);
	}
}
@keyframes sbx-grid {
	0% {
		transform: translateX(0);
		opacity: .5;
	}
	100% {
		transform: translateX(-34px);
		opacity: .5;
	}
}
.sbx-ribbon {
	position: absolute;
	inset: -40px 0 -40px 0;
	z-index: 0;
	overflow: visible;
}

/* Ribbon styling */
.sbx-features .sbx-ribbon__path {
	stroke: url(#sbx-gold);
	stroke-width: 3;
	stroke-linecap: round;
	filter: url(#sbx-glow);
	opacity: 1;
	vector-effect: non-scaling-stroke;
}
.sbx-features .sbx-ribbon__path {
	stroke-dasharray: 6 10;
}
.sbx-features .sbx-ribbon.is-power .sbx-ribbon__path {
	stroke-width: 3.2;
}
.sbx-features .sbx-ribbon__pulse {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
}
.sbx-features .sbx-ribbon.is-pulsing .sbx-ribbon__pulse {
	animation: sbx-pulse 520ms ease-out;
}
@keyframes sbx-pulse {
	0% {
		opacity: .9;
		transform: scale(.5);
	}
	80% {
		opacity: 0;
		transform: scale(2.2);
	}
	100% {
		opacity: 0;
	}
}

/* Prompt pill */
.sbx-prompt {
	position: absolute;
	/* JS will place via left/top as center coordinates; allow free placement */
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	max-width: min(38%, 520px);
	background: linear-gradient(135deg, #FFD400 0%, #FFD400 60%, #FFD400 100%);
	color: #111;
	padding: 13px 20px;
	border-radius: 999px;
	box-shadow: var(--sbx-glow);
	z-index: 3;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	will-change: transform, opacity;
	opacity: 1;
	backdrop-filter: none;
	transition: transform 260ms var(--sbx-transition), opacity 260ms ease, box-shadow var(--sbx-transition);
}

/* Multi-image prompt pill - no absolute positioning */
.sbx-multi-prompt-container .sbx-prompt {
	position: static;
	transform: none;
	max-width: 300px;
	z-index: auto;
}
.sbx-prompt.is-swapping {
	opacity: .6;
	transform: translateY(4px);
}
.sbx-prompt:hover {
	animation: sbx-prompt-pulse 900ms ease-out;
	box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px rgba(0,0,0,.45), 0 0 30px rgba(255, 212, 0, .18);
}
@keyframes sbx-prompt-pulse {
	0% {
		box-shadow: var(--sbx-glow);
	}
	50% {
		box-shadow: 0 0 18px rgba(255, 212, 0, .55), 0 0 42px rgba(255, 212, 0, .25);
	}
	100% {
		box-shadow: var(--sbx-glow);
	}
}
.sbx-prompt__text {
    display: block;
    white-space: normal; /* allow wrapping */
    overflow: visible; /* no clipping */
    text-overflow: clip; /* no ellipsis */
    word-break: break-word; /* break long words/URLs if needed */
    font-size: 16px;
    color: inherit;
    text-shadow: none;
}
/* CTA button inside prompt */
.sbx-prompt__cta {
	margin-top: 8px;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	background: #111;
	color: #FFD400;
	border: 1px solid rgba(255,212,0,.5);
	border-radius: 999px;
	padding: 5px 10px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,212,0,.15) inset;
	transition: background var(--sbx-transition), transform var(--sbx-transition), box-shadow var(--sbx-transition);
	text-decoration: none;
	font-size: 14px;
	backdrop-filter: none;
}
.sbx-prompt__cta:hover {
	background: #161616;
	transform: translateY(-1px);
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 16px rgba(255,212,0,.25);
}

/* Face image (circular) for face swap */
.sbx-face-image {
	position: absolute;
	/* JS will place via left/top as center coordinates; allow free placement */
	left: 0;
	top: 0;
	transform: translate(-50%, -50%);
	width: 140px;
	height: 140px;
	background: linear-gradient(135deg, #FFD400 0%, #FFD400 60%, #FFD400 100%);
	border-radius: 50%;
	box-shadow: var(--sbx-glow);
	z-index: 10;
	will-change: transform, opacity;
	opacity: 1;
	backdrop-filter: none;
	transition: transform 260ms var(--sbx-transition), opacity 260ms ease, box-shadow var(--sbx-transition);
	overflow: hidden;
	border: 3px solid rgba(255, 212, 0, 0.8);
}
.sbx-face-image.is-swapping {
	opacity: .6;
	transform: translate(-50%, -50%) translateY(4px);
}
.sbx-face-image:hover {
	animation: sbx-face-pulse 900ms ease-out;
	box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px rgba(0,0,0,.45), 0 0 30px rgba(255, 212, 0, .18);
}
@keyframes sbx-face-pulse {
	0% {
		box-shadow: var(--sbx-glow);
	}
	50% {
		box-shadow: 0 0 18px rgba(255, 212, 0, .55), 0 0 42px rgba(255, 212, 0, .25);
	}
	100% {
		box-shadow: var(--sbx-glow);
	}
}
.sbx-face-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	opacity: 1;
	transition: opacity 260ms ease, transform 260ms ease;
	transform-origin: center;
}
.sbx-face-image__img.is-swapping {
	opacity: 0;
}
.sbx-face-image__img.is-loading {
	opacity: 0;
}

/* Arrows */
.sbx-nav {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 212, 0, 0.08);
	border: 1px solid var(--sbx-border);
	color: var(--sbx-gold);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	backdrop-filter: blur(6px);
	transition: transform var(--sbx-transition), background var(--sbx-transition), box-shadow var(--sbx-transition);
	font-size: 22px;
}
.sbx-nav--prev {
	left: -18px;
}
.sbx-nav--next {
	right: -18px;
}
.sbx-nav:hover {
	background: rgba(255, 212, 0, 0.14);
	box-shadow: var(--sbx-glow);
}
.sbx-nav:focus-visible {
	outline: var(--sbx-outline);
}

/* Hover brighten after */
.sbx-features.is-hover .sbx-frame--after {
	box-shadow: 0 0 0 1px rgba(255, 215, 118, .55), 0 0 36px rgba(255, 215, 118, .25);
}

/* Stats under after image */
.sbx-stats {
	position: absolute;
	right: 26px;
	bottom: 8px;
	display: flex;
	gap: 8px;
	z-index: 1;
}
.sbx-stats__badge {
	background: rgba(17,17,17,.6);
	color: var(--sbx-text);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 11px;
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

/* Example cycling badge */
.sbx-example-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: linear-gradient(135deg, rgba(255, 212, 0, 0.12), rgba(255, 212, 0, 0.06));
	border: 1px solid var(--sbx-border);
	border-radius: 999px;
	padding: 8px 12px;
	color: var(--sbx-gold);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all var(--sbx-transition);
	box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 1px rgba(255, 212, 0, 0.15) inset;
	backdrop-filter: blur(8px);
}
.sbx-example-badge:hover {
	background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.10));
	box-shadow: var(--sbx-glow), 0 0 0 1px rgba(255, 212, 0, 0.25) inset;
	transform: translateY(-1px);
}
.sbx-example-badge:active {
	transform: translateY(0);
}
.sbx-example-badge__text {
	color: var(--sbx-text);
	font-weight: 500;
}
.sbx-example-badge__arrow {
	color: var(--sbx-gold);
	font-size: 14px;
	transition: transform var(--sbx-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	height: 1em;
	width: 1em;
	transform: translateY(-2px); /* Better vertical alignment */
}
.sbx-example-badge:hover .sbx-example-badge__arrow {
	transform: translateX(2px);
}
.sbx-example-badge.is-paused {
	background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.08));
	border-color: rgba(255, 107, 107, 0.4);
}
.sbx-example-badge.is-paused .sbx-example-badge__arrow {
	color: #FF6B6B;
}

/* Mobile / Tablet */
@media (max-width: 1024px) {
	.sbx-card {
		padding: 14px;
		min-height: 0;
		display: grid;
		grid-template-rows: auto auto auto;
		grid-template-areas: 'before' 'stage' 'after';
	}
	.sbx-stage {
		position: relative;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		height: auto;
		min-height: 200px;
		margin: 6px 0;
		grid-area: stage;
		overflow: visible;
	}
	.sbx-frame {
		position: relative;
		width: 100%;
		max-width: none;
		margin: 6px 0;
		/* Make frames smaller on mobile/tablet */
		max-width: 450px;
		margin-left: auto;
		margin-right: auto;
	}
	.sbx-frame--before,
	.sbx-frame--after {
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
	}
	.sbx-frame--before {
		grid-area: before;
	}
	.sbx-frame--after {
		grid-area: after;
	}
	.sbx-nav {
		display: none;
	}
	.sbx-prompt {
		left: 0;
		top: 0;
		bottom: auto;
		transform: translate(-50%, -50%);
		width: 86%;
		max-width: none;
		z-index: 3;
		padding: 10px 14px;
	}
	.sbx-prompt__text {
		font-size: 12px;
	}
	
	/* Mobile face image adjustments */
	.sbx-face-image {
		width: 120px;
		height: 120px;
	}

	/* Smaller placeholder text on phones */
	.sbx-placeholder__title {
		font-size: 18px;
	}
	.sbx-placeholder__subtitle {
		font-size: 13px;
	}

	/* Mobile: tabs become horizontally scrollable with smaller pills */
	.sbx-features__tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		gap: 8px;
		padding: 10px 4px 12px;
	}
	.sbx-pill {
		padding: 9px 12px;
		font-size: 13px;
	}
	.sbx-feature-desc {
		font-size: 15px;
		margin: 8px auto 16px;
		padding: 12px 14px;
	}

	/* Mobile example badge adjustments */
	.sbx-example-badge {
		top: 12px;
		right: 12px;
		padding: 6px 10px;
		font-size: 12px;
	}
	.sbx-example-badge .sbx-example-badge__arrow {
		font-size: 22px !important; /* Bigger arrow on mobile with higher specificity */
	}
	
	/* Add spacing under badge on mobile to prevent overlap with images */
	.sbx-frame--before {
		margin-top: 50px; /* Space for the badge */
	}
}

/* Phones: slightly smaller for compact screens */
@media (max-width: 640px) {
	.sbx-feature-desc {
		font-size: 14px;
	}
	
	/* Even smaller frames on phones */
	.sbx-frame {
		max-width: 360px;
	}
	
	/* Smaller face image on phones */
	.sbx-face-image {
		width: 100px;
		height: 100px;
	}
	.sbx-features__tabs {
		padding: 10px 8px 12px;
		justify-content: flex-start;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sbx-stage__grid {
		animation-duration: 16s;
	}
}

/* ==== MULTI-IMAGE EDIT LAYOUT ==== */
.sbx-multi-image-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	height: 100%;
	min-height: 480px;
}

.sbx-multi-inputs {
	display: flex;
	align-items: center;
	gap: 2rem;
	justify-content: center;
	width: 100%;
}

.sbx-frame--input-1,
.sbx-frame--input-2 {
	position: relative;
	width: 320px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--sbx-radius-lg);
	box-shadow: 0 0 0 1px rgba(255, 212, 0, .42), 0 0 28px rgba(255, 212, 0, .14);
	overflow: hidden;
}

.sbx-multi-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--sbx-gold), var(--sbx-soft));
	border-radius: 50%;
	box-shadow: var(--sbx-glow);
	z-index: 2;
	position: relative;
}

.sbx-plus-icon {
	color: #111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.sbx-multi-center {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.sbx-multi-prompt-container {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	justify-content: center;
}

.sbx-multi-arrow {
	color: var(--sbx-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 212, 0, 0.1);
	border: 1px solid var(--sbx-border);
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.sbx-multi-result {
	display: flex;
	justify-content: center;
	width: 100%;
}

.sbx-frame--result {
	position: relative;
	width: 400px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--sbx-radius-lg);
	box-shadow: 0 0 0 1px rgba(255, 212, 0, .42), 0 0 28px rgba(255, 212, 0, .14);
	overflow: hidden;
}

/* Badge positioning for multi-image frames */
.sbx-badge--tr {
	top: 8px;
	right: 8px;
}

.sbx-badge--bc {
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
}

/* Mobile adjustments for multi-image layout */
@media (max-width: 1024px) {
	.sbx-multi-image-layout {
		gap: 1.5rem;
		min-height: 400px;
	}
	
	.sbx-multi-inputs {
		flex-direction: column;
		gap: 1rem;
	}
	
	.sbx-frame--input-1,
	.sbx-frame--input-2 {
		width: 300px;
	}
	
	.sbx-multi-plus {
		width: 50px;
		height: 50px;
	}
	
	.sbx-plus-icon {
		font-size: 20px;
	}
	
	.sbx-multi-prompt-container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.sbx-frame--result {
		width: 350px;
	}
}

@media (max-width: 640px) {
	.sbx-multi-image-layout {
		gap: 1rem;
		min-height: 350px;
	}
	
	.sbx-frame--input-1,
	.sbx-frame--input-2 {
		width: 250px;
	}
	
	.sbx-multi-plus {
		width: 40px;
		height: 40px;
	}
	
	.sbx-plus-icon {
		font-size: 18px;
	}
	
	.sbx-frame--result {
		width: 300px;
	}
}

/* ==== DISCORD COMMUNITY SECTION ==== */
.sbx-discord-section {
	margin-top: 4rem;
	padding: 0 22px;
}

.sbx-discord-card {
	background: linear-gradient(135deg, rgba(255, 212, 0, 0.08), rgba(255, 212, 0, 0.03));
	border: 1px solid var(--sbx-border);
	border-radius: var(--sbx-radius-xl);
	padding: 2rem;
	box-shadow: 0 15px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255, 212, 0, 0.15) inset;
	position: relative;
	overflow: hidden;
	transition: all var(--sbx-transition);
}

.sbx-discord-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(1200px 480px at 20% 10%, rgba(255, 212, 0, 0.05), transparent 40%),
				radial-gradient(800px 400px at 80% 90%, rgba(255, 227, 90, 0.05), transparent 35%);
	pointer-events: none;
}

.sbx-discord-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255, 212, 0, 0.25) inset, 0 0 40px rgba(255, 212, 0, 0.15);
}

.sbx-discord-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	position: relative;
	z-index: 1;
}

.sbx-discord-icon {
	background: linear-gradient(135deg, var(--sbx-gold), var(--sbx-soft));
	color: #111;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--sbx-glow);
	flex-shrink: 0;
}

.sbx-discord-content {
	flex: 1;
}

.sbx-discord-title {
	font-family: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	color: var(--sbx-text);
	margin: 0 0 0.5rem 0;
	background: linear-gradient(135deg, var(--sbx-text) 0%, var(--sbx-gold) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.sbx-discord-subtitle {
	font-family: 'Inter', sans-serif;
	color: var(--sbx-muted);
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.5;
}

.sbx-discord-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
	position: relative;
	z-index: 1;
}

.sbx-benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 212, 0, 0.15);
	border-radius: 12px;
	transition: all var(--sbx-transition);
}

.sbx-benefit-item:hover {
	background: rgba(255, 212, 0, 0.08);
	border-color: rgba(255, 212, 0, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.sbx-benefit-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.sbx-benefit-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.sbx-benefit-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--sbx-text);
}

.sbx-benefit-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	color: var(--sbx-muted);
	line-height: 1.4;
}

.sbx-discord-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: linear-gradient(135deg, var(--sbx-gold), var(--sbx-soft));
	color: #111;
	padding: 1rem 2rem;
	border-radius: 999px;
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.1rem;
	box-shadow: var(--sbx-glow);
	transition: all var(--sbx-transition);
	position: relative;
	z-index: 1;
}

.sbx-discord-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px rgba(0,0,0,.45), 0 0 30px rgba(255, 212, 0, .18);
	text-decoration: none;
	color: #111;
}

.sbx-discord-cta-arrow {
	transition: transform var(--sbx-transition);
}

.sbx-discord-cta:hover .sbx-discord-cta-arrow {
	transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
	.sbx-discord-section {
		margin-top: 3rem;
		padding: 0 14px;
	}
	
	.sbx-discord-card {
		padding: 1.5rem;
	}
	
	.sbx-discord-header {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}
	
	.sbx-discord-icon {
		width: 56px;
		height: 56px;
	}
	
	.sbx-discord-title {
		font-size: 1.5rem;
	}
	
	.sbx-discord-subtitle {
		font-size: 1rem;
	}
	
	.sbx-discord-benefits {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.sbx-benefit-item {
		padding: 1rem;
	}
	
	.sbx-discord-cta {
		width: 100%;
		justify-content: center;
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}

	/* Feature section mobile adjustments */
	.sbx-feature-section {
		margin-bottom: 2rem;
	}
	
	.sbx-feature-section__title {
		font-size: clamp(22px, 4.5vw, 30px);
		margin-bottom: 1rem;
	}
	
	.sbx-feature-section__title::after {
		width: 50px;
		height: 2px;
		bottom: -6px;
	}
	
	.sbx-feature-section__desc {
		font-size: clamp(15px, 3.2vw, 17px);
		padding: 0 1rem;
		line-height: 1.6;
	}
	
	.sbx-feature-section__desc .sbx-desc-point {
		margin: 0.4rem 0;
	}
	
	.sbx-feature-section__desc::before {
		width: 30px;
		top: -15px;
	}

	/* Mobile separator adjustments */
	.sbx-feature-section + .sbx-showcase::before {
		width: 80px;
		top: -30px;
	}
}

@media (max-width: 640px) {
	.sbx-discord-section {
		margin-top: 2rem;
		padding: 0 8px;
	}
	
	.sbx-discord-card {
		padding: 1.25rem;
	}
	
	.sbx-discord-title {
		font-size: 1.25rem;
	}
	
	.sbx-discord-subtitle {
		font-size: 0.9rem;
	}
	
	.sbx-benefit-item {
		padding: 0.875rem;
	}
	
	.sbx-benefit-title {
		font-size: 0.9rem;
	}
	
	.sbx-benefit-desc {
		font-size: 0.8rem;
	}
}


