.demo-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: fadeIn 0.2s ease;
}

.demo-modal-backdrop[hidden] {
	display: none !important;
}

.demo-modal {
	position: relative;
	width: 100%;
	max-width: 900px;
	background: #0f172a;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	animation: scaleIn 0.2s ease;
}

.demo-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.demo-modal-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.demo-modal-video {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.demo-modal-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
