/* SparkTour - onboarding overlay */

.spark-tour-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.spark-tour-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Subtle glow ring around the spotlight cutout */
.spark-tour-spotlight {
	position: fixed;
	pointer-events: none;
	border: 2px solid rgba(129, 140, 248, 0.35);
	box-shadow: 0 0 12px rgba(129, 140, 248, 0.2);
	transition: all 0.3s ease;
}

/* ─── Card ─── */

.spark-tour-card {
	position: fixed;
	z-index: 10000;
	max-width: min(22rem, calc(100vw - 1.5rem));
	min-width: 280px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: hsl(224, 71%, 8%);
	backdrop-filter: blur(16px);
	padding: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
	animation: spark-tour-fade-in 0.2s ease-out;
	transition: top 0.25s ease, left 0.25s ease;
}

@keyframes spark-tour-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ─── Arrow ─── */

.spark-tour-arrow {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* ─── Card internals ─── */

.spark-tour-card-header {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.spark-tour-card-icon {
	flex-shrink: 0;
}

.spark-tour-card-icon img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.spark-tour-card-body {
	flex: 1;
	min-width: 0;
}

.spark-tour-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.spark-tour-title {
	font-size: 13px;
	font-weight: 600;
	color: #e2e8f0;
	margin: 0;
}

.spark-tour-close {
	background: none;
	border: none;
	color: rgba(148, 163, 184, 0.6);
	cursor: pointer;
	padding: 2px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.spark-tour-close:hover {
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.08);
}

.spark-tour-content {
	font-size: 12px;
	line-height: 1.6;
	color: #94a3b8;
	margin: 6px 0 0;
}

/* ─── Footer ─── */

.spark-tour-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 14px;
}

.spark-tour-footer-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.spark-tour-footer-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.spark-tour-skip {
	background: none;
	border: none;
	color: rgba(148, 163, 184, 0.5);
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
	padding: 0;
	transition: color 0.15s;
}

.spark-tour-skip:hover {
	color: #e2e8f0;
}

.spark-tour-dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.spark-tour-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	transition: all 0.2s;
}

.spark-tour-dot.active {
	width: 20px;
	background: var(--color-primary, #818cf8);
}

.spark-tour-btn-back {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: none;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.spark-tour-btn-back:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #e2e8f0;
}

.spark-tour-btn-next {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	border-radius: 8px;
	border: none;
	background: var(--color-primary, #818cf8);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s;
}

.spark-tour-btn-next:hover {
	opacity: 0.88;
}

/* ─── Dismiss confirmation ─── */

.spark-tour-confirm {
	margin-top: 10px;
	padding: 10px;
	background: rgba(129, 140, 248, 0.06);
	border: 1px solid rgba(129, 140, 248, 0.15);
	border-radius: 8px;
}

.spark-tour-confirm p {
	font-size: 12px;
	color: #a1a1aa;
	margin: 0 0 8px;
	line-height: 1.4;
}

.spark-tour-confirm-actions {
	display: flex;
	gap: 8px;
}

.spark-tour-confirm-actions .spark-tour-btn-back,
.spark-tour-confirm-actions .spark-tour-btn-next {
	flex: 1;
	font-size: 11px;
	padding: 5px 10px;
}

/* ─── Replay Tour highlight pulse ─── */

.dropdown-item-replay-tour.highlight-pulse {
	animation: replayPulse 0.5s ease 3;
	background: rgba(129, 140, 248, 0.12);
}

@keyframes replayPulse {
	0%,
	100% {
		background: rgba(129, 140, 248, 0.06);
	}
	50% {
		background: rgba(129, 140, 248, 0.18);
	}
}

/* ─── Mobile: tighter spacing ─── */

@media (max-width: 640px) {
	.spark-tour-card {
		max-width: calc(100vw - 1rem);
		min-width: 0;
	}
}
