/* Modal */
.modal_overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 1000;
	padding: 16px;
	padding-top: 80px;
}

.modal_dialog {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	width: 100%;
	max-width: 380px;
	border: 1px solid #ddd;
}

.modal_title {
	font-size: 15px;
	font-weight: 700;
	padding: 14px 16px 8px 16px;
	border-bottom: 1px solid #eee;
}

.modal_message {
	padding: 14px 16px;
	font-size: 13px;
	line-height: 1.45;
}

.modal_actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	padding: 12px 16px 16px 16px;
}

.modal_actions .btn_primary {
	min-width: 90px;
	height: 36px;
	border-radius: 6px;
	border: 1px solid #000;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
}

.modal_actions .btn_primary:hover {
	opacity: 0.85;
}

.modal_actions .btn_outline {
	min-width: 90px;
	height: 36px;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.modal_actions .btn_outline:hover {
	opacity: 0.7;
}

.modal_actions button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.modal_actions .btn_outline.is-hidden {
	display: none;
}

.modal_message.loading,
.modal_message.success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.modal_message.loading {
	color: #0075d9;
}

.modal_message.success {
	color: #1f9d55;
	font-weight: 600;
}

.modal_message.error {
	color: #d11;
	text-align: center;
}

.status_spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(0, 117, 217, 0.2);
	border-top-color: #0075d9;
	animation: modal-spin 0.9s linear infinite;
}

.status_check {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 3px solid #1f9d55;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: modal-pop 0.35s ease-out forwards;
	position: relative;
}

.status_check::after {
	content: '';
	width: 18px;
	height: 10px;
	border-left: 3px solid #1f9d55;
	border-bottom: 3px solid #1f9d55;
	transform: rotate(-45deg);
	margin-top: -2px;
}

@keyframes modal-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes modal-pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}
	60% {
		transform: scale(1.1);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}


