.aag-gate-page {
	background:
		radial-gradient(circle at top, rgba(202, 225, 245, 0.45), transparent 48%),
		linear-gradient(180deg, #eef6fd 0%, #f7fbff 100%);
	min-height: 100vh;
}

.aag-gate-page[data-theme='dark'],
html[data-aag-theme='dark'] .aag-gate-page {
	background:
		radial-gradient(circle at top, rgba(57, 94, 122, 0.32), transparent 42%),
		linear-gradient(180deg, #08131d 0%, #0f1f2d 100%);
}

.aag-gate {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 99999;
}

.aag-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 21, 35, 0.38);
	backdrop-filter: blur(10px);
}

.aag-gate__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
	padding: 36px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(15, 55, 86, 0.08);
	box-shadow: 0 32px 90px rgba(11, 32, 54, 0.18);
	color: #16304a;
}

html[data-aag-theme='dark'] .aag-gate__dialog {
	background: rgba(12, 26, 39, 0.96);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
	color: #f3f8fc;
}

.aag-gate__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.aag-gate__logo {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	object-fit: cover;
}

.aag-gate__brand-text {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.aag-gate__eyebrow {
	margin: 0 0 8px;
	text-align: center;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6a8197;
}

.aag-gate__title {
	margin: 0;
	text-align: center;
	font-size: clamp(1.85rem, 4vw, 2.8rem);
	line-height: 1.08;
	color: inherit;
}

.aag-gate__description,
.aag-gate__hint,
.aag-gate__meta {
	max-width: 56ch;
	margin: 16px auto 0;
	text-align: center;
	font-size: 1rem;
	line-height: 1.75;
	color: inherit;
	opacity: 0.9;
}

.aag-gate__query-box {
	margin: 26px auto 0;
	padding: 18px 20px;
	max-width: 520px;
	background: rgba(22, 48, 74, 0.05);
	border: 1px solid rgba(22, 48, 74, 0.08);
	border-radius: 20px;
	text-align: center;
}

.aag-gate__query-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6a8197;
}

.aag-gate__query-value {
	display: block;
	margin-top: 8px;
	font-size: 1.05rem;
	line-height: 1.6;
	word-break: break-word;
}

.aag-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 30px;
}

.aag-gate__actions form {
	margin: 0;
}

.aag-gate__button {
	min-width: 240px;
	padding: 15px 24px;
	border-radius: 16px;
	border: 1px solid transparent;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.aag-gate__button:hover,
.aag-gate__button:focus-visible {
	transform: translateY(-1px);
}

.aag-gate__button:focus-visible {
	outline: 3px solid rgba(35, 118, 255, 0.22);
	outline-offset: 2px;
}

.aag-gate__button--primary {
	background: linear-gradient(180deg, #173955 0%, #102a40 100%);
	color: #fff;
	box-shadow: 0 16px 40px rgba(18, 52, 80, 0.22);
}

.aag-gate__button--secondary {
	background: #f5f9fc;
	border-color: rgba(22, 48, 74, 0.12);
	color: #16304a;
}

html[data-aag-theme='dark'] .aag-gate__button--secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.1);
	color: #f3f8fc;
}

@media (max-width: 640px) {
	.aag-gate {
		padding: 16px;
	}

	.aag-gate__dialog {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.aag-gate__actions {
		flex-direction: column;
	}

	.aag-gate__button {
		width: 100%;
		min-width: 0;
	}
}
