.auth-gate-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	direction: rtl;
	font-family: inherit;
}

.auth-gate-modal[hidden] {
	display: none;
}

.auth-gate-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.auth-gate-modal__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	padding: 28px 24px 24px;
	border-radius: 15px;
	background: #1f2124;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.light-mode .auth-gate-modal__card {
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.auth-gate-modal__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #f1f1f1;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-gate-modal__close:hover,
.auth-gate-modal__close:focus {
	color: #f1f1f1;
	background-color: var(--lm-accent-hover, #e11d48);
	outline: none;
}

body.light-mode .auth-gate-modal__close {
	color: #333;
}

body.light-mode .auth-gate-modal__close:hover,
body.light-mode .auth-gate-modal__close:focus {
	color: #333;
}

.auth-gate-modal__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #f1f1f1;
}

body.light-mode .auth-gate-modal__title {
	color: #0f0f21;
}

.auth-gate-modal__message {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #a0a6ad;
	word-break: break-word;
}

body.light-mode .auth-gate-modal__message {
	color: #606060;
}

.auth-gate-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 10px;
}

.auth-gate-modal .video-login-prompt__btn {
	display: inline-flex;
	flex: 1 1 calc(50% - 5px);
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.auth-gate-modal .video-login-prompt__btn:hover {
	opacity: 0.92;
}

.auth-gate-modal .video-login-prompt__btn--login {
	color: #f1f1f1;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

body.light-mode .auth-gate-modal .video-login-prompt__btn--login {
	color: #0f0f21;
	border-color: #cbd5e1;
}

.auth-gate-modal .video-login-prompt__btn--register {
	color: #fff;
	background: var(--lm-accent, #e11d48);
	border: 1px solid transparent;
}

body.auth-gate-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.auth-gate-modal {
		padding: 12px;
	}

	.auth-gate-modal__card {
		padding: 24px 20px 20px;
	}

	.auth-gate-modal__title {
		font-size: 18px;
	}

	.auth-gate-modal__message {
		font-size: 14px;
	}

	.auth-gate-modal .video-login-prompt__btn {
		flex: 1 1 100%;
	}
}
