/* Unified glassmorphic auth gate modal. Dark default, light via [data-theme="light"]. */
.al-auth-gate-lock { overflow: hidden; }
.al-auth-gate-modal {
	--ag-card: rgba(17, 20, 26, 0.78);
	--ag-border: rgba(255, 255, 255, 0.14);
	--ag-text: #fff;
	--ag-muted: rgba(255, 255, 255, 0.72);
	--ag-secondary-bg: rgba(255, 255, 255, 0.08);
	--ag-secondary-text: #fff;
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; box-sizing: border-box;
	background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
	transition: background 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
}
[data-theme="light"] .al-auth-gate-modal {
	--ag-card: rgba(255, 255, 255, 0.82);
	--ag-border: rgba(0, 0, 0, 0.1);
	--ag-text: #000;
	--ag-muted: rgba(0, 0, 0, 0.64);
	--ag-secondary-bg: #f6f6f6;
	--ag-secondary-text: #000;
}
.al-auth-gate-modal.is-open { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.al-auth-gate-card {
	position: relative; width: 100%; max-width: 400px; box-sizing: border-box;
	padding: 32px 24px 24px; text-align: center;
	background: var(--ag-card); color: var(--ag-text);
	border: 1px solid var(--ag-border); border-radius: 20px;
	backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
	opacity: 0; transform: translateY(14px) scale(0.97);
	transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.al-auth-gate-modal.is-open .al-auth-gate-card { opacity: 1; transform: none; }
.al-auth-gate-icon {
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #276ef1; color: #fff; box-shadow: 0 8px 24px rgba(39, 110, 241, 0.45);
}
.al-auth-gate-title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--ag-text); }
.al-auth-gate-body { margin: 0 0 22px; font-size: 14.5px; line-height: 1.5; color: var(--ag-muted); }
.al-auth-gate-actions { display: flex; flex-direction: column; gap: 10px; }
.al-auth-gate-btn {
	display: block; box-sizing: border-box; width: 100%; padding: 13px 16px; border-radius: 12px;
	font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
	transition: transform 0.12s ease, filter 0.12s ease;
}
.al-auth-gate-btn:hover { filter: brightness(1.08); text-decoration: none; }
.al-auth-gate-btn:active { transform: scale(0.98); }
.al-auth-gate-btn:focus-visible, .al-auth-gate-close:focus-visible { outline: 2px solid #276ef1; outline-offset: 2px; }
.al-auth-gate-btn--primary { background: #276ef1; color: #fff; }
.al-auth-gate-btn--secondary { background: var(--ag-secondary-bg); color: var(--ag-secondary-text); border: 1px solid var(--ag-border); }
.al-auth-gate-close {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--ag-muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.al-auth-gate-close:hover { background: var(--ag-secondary-bg); color: var(--ag-text); }
@media (prefers-reduced-motion: reduce) {
	.al-auth-gate-modal, .al-auth-gate-card { transition: none; }
}
