html.dornika-captcha-lock,
html.dornika-captcha-lock body {
	overflow: hidden;
}

.dornika-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 1rem;
	font-family: Tahoma, "Vazirmatn", sans-serif;
	direction: rtl;
}

.dornika-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 24, 42, 0.55);
	backdrop-filter: blur(4px);
}

.dornika-modal__card {
	position: relative;
	z-index: 1;
	width: min(100%, 400px);
	padding: 1.5rem 1.35rem 1.15rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 24px 60px rgba(8, 35, 70, 0.28);
	text-align: center;
	animation: dornika-pop 0.28s ease;
}

.dornika-modal__x {
	position: absolute;
	top: 0.65rem;
	left: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: #eef5fb;
	color: #35506b;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.dornika-modal__x:hover {
	background: #dceaf6;
}

.dornika-toast {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(8, 24, 42, 0.35);
	font-family: Tahoma, "Vazirmatn", sans-serif;
	direction: rtl;
}

.dornika-toast__card {
	width: min(100%, 360px);
	padding: 1.15rem 1.2rem;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(8, 35, 70, 0.22);
	text-align: center;
}

.dornika-toast__card strong {
	display: block;
	margin-bottom: 0.4rem;
	color: #0369a1;
	font-size: 0.85rem;
}

.dornika-toast__card p {
	margin: 0 0 0.95rem;
	color: #0b1f33;
	font-size: 0.95rem;
	line-height: 1.7;
	font-weight: 600;
}

.dornika-toast__ok {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.55rem 1.4rem;
	font-family: inherit;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

@keyframes dornika-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.dornika-modal__brand {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 800;
	color: #0369a1;
	letter-spacing: 0.04em;
}

.dornika-modal__card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0b1f33;
}

.dornika-modal__lead,
.dornika-modal__hint {
	margin: 0 0 1rem;
	color: #5b6b7c;
	font-size: 0.9rem;
	line-height: 1.7;
}

.dornika-modal__hint {
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	color: #0369a1;
	font-weight: 700;
	font-size: 0.84rem;
}

.dornika-modal__error {
	margin: 0 0 0.85rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	color: #b42318;
	font-size: 0.86rem;
	text-align: right;
}

.dornika-modal__widget {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 96px;
	padding: 0.65rem;
	border-radius: 12px;
	background: #f5faff;
	border: 1px dashed rgba(14, 165, 233, 0.3);
	overflow: hidden;
}

.dornika-modal__wait {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	gap: 0.55rem;
	padding: 0.75rem;
	background: rgba(245, 250, 255, 0.94);
	color: #0369a1;
	font-size: 0.92rem;
	font-weight: 700;
}

.dornika-modal__wait:not([hidden])::before {
	content: "";
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	border: 2px solid rgba(3, 105, 161, 0.2);
	border-top-color: #0369a1;
	animation: dornika-spin 0.7s linear infinite;
}

.dornika-modal__wait.is-error {
	color: #b42318;
	cursor: pointer;
	text-decoration: underline;
}

.dornika-modal__wait.is-error::before {
	display: none;
}

.dornika-modal__widget-host {
	position: relative;
	z-index: 1;
	min-height: 70px;
	display: grid;
	place-items: center;
}

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

.dornika-modal__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.dornika-modal__foot {
	margin: 1rem 0 0;
	font-size: 0.75rem;
}

.dornika-modal__foot a {
	color: #6a7f91;
	text-decoration: none;
	font-weight: 700;
}
