.kba-auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kba-auth-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.kba-auth-open {
	overflow: hidden;
}

body.kba-auth-enabled .wd-dropdown-register,
body.kba-auth-enabled .wd-header-my-account .wd-dropdown {
	display: none !important;
}

.kba-auth-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	padding: 28px 24px 24px;
	font-family: Vazirmatn, Tahoma, sans-serif;
	direction: rtl;
}

.kba-auth-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: #f1f5f9;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #475569;
}

.kba-auth-header {
	text-align: center;
	margin-bottom: 20px;
}

.kba-auth-header h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}

.kba-auth-subtitle {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.kba-auth-step {
	display: none;
}

.kba-auth-step.is-active {
	display: block;
}

.kba-auth-label {
	display: block;
	margin: 14px 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.kba-auth-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kba-auth-input:focus {
	outline: none;
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.kba-auth-captcha-q {
	margin: 0 0 8px;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	color: #0f172a;
}

.kba-auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 13px 16px;
	border-radius: 10px;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.kba-auth-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.kba-auth-btn-primary {
	background: linear-gradient(135deg, #15803d, #16a34a);
	color: #fff;
}

.kba-auth-btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
}

.kba-auth-btn-link {
	background: transparent;
	color: #15803d;
	width: auto;
	margin-top: 8px;
	font-weight: 600;
}

.kba-auth-info {
	margin: 0 0 8px;
	font-size: 14px;
	color: #475569;
	text-align: center;
}

.kba-auth-otp {
	text-align: center;
	letter-spacing: 8px;
	font-size: 22px;
	font-weight: 700;
}

.kba-auth-message {
	min-height: 20px;
	margin: 14px 0 0;
	font-size: 13px;
	text-align: center;
	color: #15803d;
}

.kba-auth-message.is-error {
	color: #dc2626;
}

.kba-auth-resend {
	text-align: center;
	margin-top: 8px;
}

.kba-auth-muted {
	font-size: 13px;
	color: #94a3b8;
}
