
/* HTML: <div class="loader"></div> */
.loader {
	width: 50px;
	aspect-ratio: 1;
	display: grid;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999; /* overlay'nin üstünde olmalı */
}

	.loader::before,
	.loader::after {
		content: "";
		grid-area: 1/1;
		--c: no-repeat radial-gradient(farthest-side,#25b09b 92%,#0000);
		background: var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 50%, var(--c) 0 50%;
		background-size: 12px 12px;
		animation: l12 1s infinite linear;
	}

	.loader::before {
		margin: 4px;
		filter: hue-rotate(45deg);
		background-size: 8px 8px;
	}

@keyframes l12 {
	100% {
		transform: rotate(.5turn);
	}
}

.loader-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 9998;
	opacity: 1;
	transition: opacity 1s ease;
}