/* Asset Hub — download gate styles (theme-agnostic, dark/light friendly) */

.ah-gate {
	margin: 2rem 0;
	padding: 1.5rem;
	border-radius: 12px;
	background: var(--ah-gate-bg, rgba(127, 127, 127, 0.08));
	border: 1px solid var(--ah-gate-border, rgba(127, 127, 127, 0.25));
	text-align: center;
}

.ah-gate__status {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	opacity: 0.85;
}

.ah-gate__btn {
	cursor: pointer;
	font-size: 1rem !important;
	padding: 0.6rem 1.75rem !important;
	border-radius: 8px !important;
}

.ah-gate__timer {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	font-variant-numeric: tabular-nums;
}

.ah-gate__link {
	margin-top: 0.5rem;
}

.ah-gate__download {
	display: inline-block;
	padding: 0.6rem 1.75rem;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none !important;
	background: #2271b1;
	color: #fff !important;
	transition: background 0.2s ease, transform 0.15s ease;
}

.ah-gate__download:hover {
	background: #135e96;
	transform: translateY(-1px);
}

/* TRIO mode: stacked parallel download links (one per provider). */
.ah-gate__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Guest sign-up offer (Nov 2026). An offer, never a wall: Continue runs the same
   code path as the original press, and Esc / the X / a click outside continue
   too. Colours come from the theme so it works in both light and dark. */
.ah-upsell-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(8, 10, 6, 0.62);
}

.ah-upsell {
	position: relative;
	width: min(30rem, 100%);
	padding: 1.55rem 1.5rem 1.35rem;
	border-radius: var(--radius-lg, 14px);
	background: var(--panel, #16180f);
	color: var(--text, #ececec);
	border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	text-align: left;
}

.ah-upsell__close {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	opacity: 0.55;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.ah-upsell__close:hover {
	opacity: 1;
	background: rgba(127, 127, 127, 0.15);
}

.ah-upsell__title {
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 1.8rem 0.55rem 0;
}

.ah-upsell__text {
	margin: 0 0 1.15rem;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-soft, inherit);
	opacity: 0.85;
	white-space: pre-line;
}

.ah-upsell__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.ah-upsell__continue,
.ah-upsell__register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 1.05rem;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.ah-upsell__continue {
	border: 1px solid var(--accent, #cdf34c);
	background: var(--accent, #cdf34c);
	color: #171b10;
}

.ah-upsell__continue:hover {
	filter: brightness(0.94);
}

.ah-upsell__register {
	border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
	background: transparent;
	color: inherit;
}

.ah-upsell__register:hover {
	border-color: var(--accent, #cdf34c);
}

[data-theme="light"] .ah-upsell {
	background: #fff;
	color: #171b10;
	border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .ah-upsell__text {
	color: #4a4f42;
	opacity: 1;
}

[data-theme="light"] .ah-upsell__register {
	border-color: rgba(0, 0, 0, 0.18);
}

@media (max-width: 480px) {
	.ah-upsell__actions {
		flex-direction: column;
	}
	.ah-upsell__continue,
	.ah-upsell__register {
		width: 100%;
	}
}
