@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
	--nv-cyan: #14f1ff;
	--nv-blue: #58b7ff;
	--nv-pink: #ff2d95;
	--nv-ink: #090c18;
	--nv-ink-soft: #111831;
	--nv-panel: rgba(11, 20, 42, 0.7);
	--nv-border: rgba(122, 240, 255, 0.36);
}

[x-cloak] {
	display: none !important;
}

#nanovend-checkout-root,
.nv-lock-shell {
	font-family: 'Space Grotesk', sans-serif;
}

.nv-glass-card {
	background:
		radial-gradient(circle at 15% 15%, rgba(20, 241, 255, 0.22), transparent 45%),
		radial-gradient(circle at 85% 12%, rgba(255, 45, 149, 0.16), transparent 40%),
		linear-gradient(145deg, rgba(13, 22, 44, 0.94), rgba(9, 12, 24, 0.88));
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow:
		0 28px 80px rgba(2, 6, 24, 0.72),
		0 0 0 1px rgba(121, 244, 255, 0.18);
}

.nv-glass-card::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			-45deg,
			rgba(255, 255, 255, 0.025) 0,
			rgba(255, 255, 255, 0.025) 1px,
			transparent 1px,
			transparent 8px
		);
	mix-blend-mode: screen;
	opacity: 0.55;
}

.nv-glass-card::after {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	top: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(20, 241, 255, 0.92), transparent);
	pointer-events: none;
}

.nv-lock-shell {
	position: relative;
	margin: 1.75rem 0;
}

.nv-lock-content {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	border: 1px solid rgba(121, 244, 255, 0.3);
	background: linear-gradient(140deg, rgba(8, 16, 35, 0.8), rgba(14, 17, 29, 0.84));
	box-shadow: 0 18px 42px rgba(4, 8, 22, 0.5);
}

.nv-lock-body {
	position: relative;
	padding: 1.3rem;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.nv-blurred {
	filter: blur(8px) saturate(0.8);
	transform: scale(1.01);
	pointer-events: none;
	user-select: none;
}

.nv-lock-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1.8rem;
	text-align: center;
	background:
		radial-gradient(circle at 50% 0%, rgba(20, 241, 255, 0.26), transparent 48%),
		linear-gradient(155deg, rgba(9, 14, 28, 0.85), rgba(8, 11, 20, 0.92));
}

.nv-lock-label {
	margin: 0;
	font-family: 'Orbitron', sans-serif;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(184, 249, 255, 0.88);
}

.nv-lock-title {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
	font-weight: 700;
	color: #f7fbff;
}

.nv-lock-price {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 500;
	color: rgba(215, 252, 255, 0.92);
}

.nv-lock-placeholder {
	min-height: 7.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	color: rgba(220, 248, 255, 0.88);
	font-size: 0.95rem;
}

.nv-primary-btn,
.nv-secondary-btn,
.nv-close-btn {
	appearance: none;
	border: 0;
	outline: none;
	cursor: pointer;
	font-family: 'Space Grotesk', sans-serif;
	transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nv-primary-btn,
.nv-secondary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.9rem;
	border-radius: 0.85rem;
	padding: 0.62rem 1.2rem;
	font-size: 0.93rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.nv-primary-btn {
	color: #041019;
	background: linear-gradient(135deg, var(--nv-cyan), #6bf8ff);
	box-shadow: 0 10px 30px rgba(20, 241, 255, 0.32);
}

.nv-primary-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(20, 241, 255, 0.42);
}

.nv-primary-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.nv-secondary-btn {
	color: rgba(224, 252, 255, 0.95);
	background: linear-gradient(140deg, rgba(18, 34, 67, 0.8), rgba(26, 29, 48, 0.9));
	border: 1px solid rgba(118, 198, 255, 0.42);
}

.nv-secondary-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 11px 28px rgba(88, 183, 255, 0.24);
}

.nv-inline-btn {
	width: auto;
	min-width: 13rem;
}

.nv-close-btn {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	font-size: 1.3rem;
	line-height: 1;
	font-weight: 600;
	color: rgba(214, 252, 255, 0.94);
	background: rgba(8, 14, 33, 0.72);
	border: 1px solid rgba(126, 234, 255, 0.38);
}

.nv-close-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	background: rgba(19, 35, 71, 0.85);
}

.nv-close-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nv-status {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: 0.85rem;
	background: rgba(16, 33, 68, 0.62);
	border: 1px solid rgba(108, 228, 255, 0.23);
}

.nv-status-error {
	background: rgba(56, 13, 28, 0.58);
	border-color: rgba(253, 122, 160, 0.44);
}

.nv-status-success {
	background: rgba(10, 54, 44, 0.58);
	border-color: rgba(98, 234, 184, 0.44);
}

.nv-loader {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 999px;
	border: 2px solid rgba(143, 236, 255, 0.35);
	border-top-color: #b3f8ff;
	animation: nvSpin 0.85s linear infinite;
}

@keyframes nvSpin {
	to {
		transform: rotate(360deg);
	}
}

.nv-confetti {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.nv-confetti-piece {
	position: absolute;
	top: -1.2rem;
	width: 0.52rem;
	height: 0.95rem;
	border-radius: 0.12rem;
	opacity: 0.96;
	transform: translate3d(0, 0, 0) rotate(var(--nv-confetti-rotate, 0deg));
	animation-name: nvConfettiFall;
	animation-duration: var(--nv-confetti-duration, 1.6s);
	animation-delay: var(--nv-confetti-delay, 0s);
	animation-timing-function: cubic-bezier(0.22, 0.7, 0.29, 1);
	animation-fill-mode: forwards;
}

@keyframes nvConfettiFall {
	0% {
		transform: translate3d(0, -8px, 0) rotate(var(--nv-confetti-rotate, 0deg));
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	100% {
		transform: translate3d(var(--nv-confetti-drift, 0px), 120vh, 0) rotate(calc(var(--nv-confetti-rotate, 0deg) + 420deg));
		opacity: 0;
	}
}

@media (max-width: 640px) {
	.nv-lock-overlay {
		padding: 1.25rem;
	}

	.nv-lock-title {
		font-size: 1.15rem;
	}

	.nv-inline-btn {
		width: 100%;
	}
}
