.tour-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.7);
	animation: fadeIn 0.3s ease-out;
}

.tour-spotlight {
	position: absolute;
	border-radius: 12px;
	box-shadow:
		0 0 0 9999px rgba(0, 0, 0, 0.75),
		0 0 30px rgba(137, 207, 240, 0.8),
		inset 0 0 0 3px rgba(65, 105, 225, 0.4);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-modal {
	position: fixed;
	background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
	border: 1px solid rgba(65, 105, 225, 0.15);
	border-radius: 20px;
	box-shadow: 
		0 25px 50px rgba(65, 105, 225, 0.25),
		0 0 0 1px rgba(255, 255, 255, 0.8);
	padding: 2rem;
	max-width: min(420px, calc(100vw - 40px));
	z-index: 99999;
	opacity: 0;
	transform: scale(0.9) translateY(20px);
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.tour-modal.show {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.tour-riq-avatar {
	position: absolute;
	top: -30px;
	left: 30px;
	background: linear-gradient(135deg, #89CFF0 0%, #4169E1 100%);
	border-radius: 50%;
	padding: 8px;
	box-shadow: 0 10px 30px rgba(65, 105, 225, 0.3);
	z-index: 10;
}

.tour-riq-avatar img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: white;
	padding: 4px;
}

.tour-content {
	margin-top: 20px;
}

.tour-content h3 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #1e3a5f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.tour-content p {
	color: #5a7a9a;
	line-height: 1.6;
	margin-bottom: 16px;
	font-size: 15px;
}

.tour-buttons {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
}

.tour-btn {
	background: rgba(107, 114, 128, 0.1);
	border: 1px solid rgba(107, 114, 128, 0.2);
	color: #6b7280;
	padding: 10px 20px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.tour-btn:hover {
	background: rgba(107, 114, 128, 0.15);
	border-color: rgba(107, 114, 128, 0.3);
	transform: translateY(-1px);
}

.tour-btn-primary {
	background: linear-gradient(135deg, #89CFF0 0%, #4169E1 100%);
	border: 1px solid rgba(65, 105, 225, 0.3);
	color: white;
	box-shadow: 0 4px 16px rgba(65, 105, 225, 0.3);
}

.tour-btn-primary:hover {
	background: linear-gradient(135deg, #7BC8EA 0%, #2F5FDB 100%);
	box-shadow: 0 6px 24px rgba(65, 105, 225, 0.4);
	transform: translateY(-2px);
}

.tour-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(107, 114, 128, 0.1);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.tour-close:hover {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
	transform: scale(1.1);
}

.tour-progress {
	height: 6px;
	background: rgba(65, 105, 225, 0.1);
	margin-top: 1rem;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.tour-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #89CFF0 0%, #4169E1 100%);
	border-radius: 8px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.tour-progress-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(200%); }
}

.tour-highlight {
	position: relative;
	z-index: 100000;
}

.tour-restart-btn {
	margin-left: auto;
	background: linear-gradient(135deg, #89CFF0 0%, #4169E1 100%);
	border: none;
	color: white;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	position: relative;
}

.tour-restart-btn:hover {
	background: linear-gradient(135deg, #7BC8EA 0%, #2F5FDB 100%);
	box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
	transform: translateY(-1px);
}

.tour-restart-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

.pulse {
	animation: tour-pulse 1.5s infinite;
}

@keyframes tour-pulse {
	0% {
		box-shadow: 
			0 0 0 9999px rgba(0, 0, 0, 0.75),
			0 0 30px rgba(137, 207, 240, 0.8),
			inset 0 0 0 3px rgba(65, 105, 225, 0.4),
			0 0 0 0 rgba(137, 207, 240, 0.8);
	}
	70% {
		box-shadow: 
			0 0 0 9999px rgba(0, 0, 0, 0.75),
			0 0 30px rgba(137, 207, 240, 0.8),
			inset 0 0 0 3px rgba(65, 105, 225, 0.4),
			0 0 0 15px rgba(137, 207, 240, 0);
	}
	100% {
		box-shadow: 
			0 0 0 9999px rgba(0, 0, 0, 0.75),
			0 0 30px rgba(137, 207, 240, 0.8),
			inset 0 0 0 3px rgba(65, 105, 225, 0.4),
			0 0 0 0 rgba(137, 207, 240, 0);
	}
}

@media (max-width: 768px) {
	.tour-modal.show {
		bottom: 20px !important;
		top: auto !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
	}
}

/* Confetti Animation */
.confetti-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 100000;
}

.confetti {
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
	0% {
		transform: translateY(-100vh) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(100vh) rotate(720deg);
		opacity: 0;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
