html {
	scroll-behavior: smooth;
}

/* ===== 加载反馈（NEO 定制） ===== */
@keyframes neo-spin {
	to { transform: rotate(360deg); }
}

/* 按钮内联小 spinner */
.spinner {
	width: 13px;
	height: 13px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: neo-spin 0.7s linear infinite;
	display: inline-block;
	vertical-align: -2px;
	margin-right: 6px;
}

/* 全屏加载遮罩 */
.page-loading {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: #08080c;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.page-loading .ring {
	width: 42px;
	height: 42px;
	border: 3px solid rgba(96, 165, 250, 0.25);
	border-top-color: #60a5fa;
	border-radius: 50%;
	animation: neo-spin 0.8s linear infinite;
}
.page-loading .ring.is-success {
	border-color: rgba(52, 211, 153, 0.25);
	border-top-color: #34d399;
}

/* thin scrollbar for the sidebar nav */
.scrollbar-thin::-webkit-scrollbar {
	width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
	background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
	background-color: #33333e;
	border-radius: 9999px;
}

.scrollbar-thin {
	scrollbar-width: thin;
	scrollbar-color: #33333e transparent;
}

.category-list.collapsed {
	display: none;
}

.category-toggle .chevron.rotated {
	transform: rotate(90deg);
}

.team-btn.active[data-team="1"] {
	border-color: rgba(139, 92, 246, 0.6);
	background-color: rgba(139, 92, 246, 0.12);
	color: #c4b5fd;
}

.team-btn.active[data-team="2"] {
	border-color: rgba(245, 158, 11, 0.6);
	background-color: rgba(245, 158, 11, 0.12);
	color: #fcd34d;
}

.team-btn.active[data-team="3"] {
	border-color: rgba(14, 165, 233, 0.6);
	background-color: rgba(14, 165, 233, 0.12);
	color: #7dd3fc;
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

#configModal:not(.hidden) .relative {
	animation: modal-in 0.15s ease-out;
}

/* ---------- Toasts ---------- */
.toast {
	opacity: 0;
	transform: translateY(-16px) scale(0.97);
	transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.toast.toast-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.toast-progress {
	transform: scaleX(1);
}

.toast-progress.toast-progress-run {
	transition: transform 2.8s linear;
	transform: scaleX(0);
}

/* ---------- Skin / knife / glove cards & CS2 Aesthetics ---------- */
.skin-spotlight {
	background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, rgba(18, 18, 25, 1) 70%);
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.skin-card, .overview-card {
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skin-card:hover, .overview-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px rgba(59, 130, 246, 0.2);
}

.skin-card:active, .overview-card:active {
	transform: translateY(0) scale(0.98);
}

.skin-card.border-blue-500\/70 {
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 24px -8px rgba(59, 130, 246, 0.4);
}

.weapon-nav-btn {
	transition: all 0.15s ease-out;
}

.weapon-nav-btn.active {
	background-color: rgba(59, 130, 246, 0.15) !important;
	color: #ffffff !important;
	font-weight: 600;
	border-left: 3px solid #3b82f6;
}

/* Glassmorphism containers */
.glass-panel {
	background: rgba(13, 13, 19, 0.85);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
