.preview-ai-demo-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 999998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.preview-ai-demo-overlay.is-active {
	opacity: 1;
}

.preview-ai-demo-highlight {
	position: relative;
	z-index: 999999 !important;
	box-shadow: 0 0 0 4px #3b82f6, 0 0 40px rgba(59, 130, 246, 0.6) !important;
	border-radius: 12px !important;
	background: #fff;
	animation: preview-ai-pulse 2s infinite;
}

@keyframes preview-ai-pulse {
	0%, 100% {
		box-shadow: 0 0 0 4px #3b82f6, 0 0 40px rgba(59, 130, 246, 0.6);
	}
	50% {
		box-shadow: 0 0 0 8px #3b82f6, 0 0 60px rgba(59, 130, 246, 0.8);
	}
}

/* Tooltip - Fixed bottom sheet on all devices for simplicity */
.preview-ai-demo-tooltip {
	position: fixed;
	z-index: 1000000;
	background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
	color: #f8fafc;
	padding: 24px 20px;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: none;
	
	/* Fixed bottom sheet */
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 70vh;
	overflow-y: auto;
	
	/* Animation */
	opacity: 0;
	transform: translateY(100%);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-ai-demo-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Handle indicator */
.preview-ai-demo-tooltip::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
}

/* Desktop: Centered card above the fold */
@media (min-width: 768px) {
	.preview-ai-demo-tooltip {
		left: 50%;
		right: auto;
		bottom: 24px;
		max-height: none;
		overflow-y: visible;
		padding: 28px 32px;
		padding-bottom: 28px;
		
		/* Desktop floating card */
		border-radius: 20px;
		max-width: 440px;
		width: calc(100% - 48px);
		box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
		border: 1px solid rgba(255, 255, 255, 0.1);
		
		/* Center horizontally */
		transform: translateX(-50%) translateY(30px);
	}
	
	.preview-ai-demo-tooltip.is-visible {
		transform: translateX(-50%) translateY(0);
	}
	
	/* Hide handle on desktop */
	.preview-ai-demo-tooltip::before {
		display: none;
	}
}

.preview-ai-demo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	margin-top: 8px;
}

@media (min-width: 768px) {
	.preview-ai-demo-header {
		margin-top: 0;
	}
}

.preview-ai-demo-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 5px 12px;
	border-radius: 20px;
}

.preview-ai-demo-badge svg {
	width: 14px;
	height: 14px;
}

.preview-ai-demo-steps {
	display: flex;
	align-items: center;
	gap: 6px;
}

.preview-ai-demo-step-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.preview-ai-demo-step-dot.is-active {
	background: #3b82f6;
	width: 24px;
	border-radius: 4px;
}

.preview-ai-demo-step-dot.is-completed {
	background: #22c55e;
}

.preview-ai-demo-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.preview-ai-demo-icon svg {
	width: 26px;
	height: 26px;
	stroke: #3b82f6;
}

.preview-ai-demo-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #f8fafc !important;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.preview-ai-demo-title {
		font-size: 20px;
		margin-bottom: 12px;
	}
}

.preview-ai-demo-text {
	font-size: 14px;
	line-height: 1.6;
	color: #94a3b8;
	margin: 0 0 20px;
}

@media (min-width: 768px) {
	.preview-ai-demo-text {
		font-size: 15px;
		line-height: 1.7;
		margin-bottom: 24px;
	}
}

.preview-ai-demo-text strong {
	color: #60a5fa;
	font-weight: 600;
}

.preview-ai-demo-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

@media (min-width: 768px) {
	.preview-ai-demo-features {
		margin-bottom: 24px;
	}
}

.preview-ai-demo-feature {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(59, 130, 246, 0.1);
	color: #60a5fa;
	font-size: 11px;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
	.preview-ai-demo-feature {
		font-size: 12px;
		padding: 6px 12px;
	}
}

.preview-ai-demo-feature svg {
	width: 14px;
	height: 14px;
}

.preview-ai-demo-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.preview-ai-demo-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	border: none;
	padding: 14px 24px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
	flex: 1;
}

.preview-ai-demo-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.preview-ai-demo-cta:active {
	transform: translateY(0);
}

.preview-ai-demo-cta svg {
	width: 18px;
	height: 18px;
}

.preview-ai-demo-skip {
	color: #64748b;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s;
	padding: 14px 16px;
	white-space: nowrap;
}

.preview-ai-demo-skip:hover {
	color: #94a3b8;
}
