/**
 * Varaan opening ceremony — front styles.
 * Scoped under .veft-* to avoid theme collisions.
 */

.veft-root {
	--veft-ink: #1a1224;
	--veft-plum: #5f2f87;
	--veft-plum-deep: #3d1a5c;
	--veft-gold: #d4a84b;
	--veft-gold-soft: #f0d9a0;
	--veft-cream: #faf6ef;
	--veft-rose: #8b3a4a;
	--veft-orange: #ff6a25;
	--veft-glass: rgba(255, 252, 247, 0.94);
	--veft-shadow: 0 28px 80px rgba(26, 18, 36, 0.35);
	font-family: inherit;
	direction: rtl;
}

.veft-root[hidden] {
	display: none !important;
}

.veft-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999995;
	display: block;
}

.veft-overlay {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	box-sizing: border-box;
}

.veft-overlay[hidden] {
	display: none !important;
}

.veft-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: default;
	pointer-events: auto;
	background:
		radial-gradient(ellipse at 50% 18%, rgba(95, 47, 135, 0.18), transparent 55%),
		rgba(14, 8, 22, 0.28);
	animation: veft-fade-in 0.45s ease both;
}

.veft-modal {
	position: relative;
	z-index: 5;
	width: min(92vw, 400px);
	border-radius: 28px;
	overflow: visible;
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, var(--veft-cream) 48%, #f3ebe0 100%);
	box-shadow: var(--veft-shadow);
	transform-origin: center center;
	animation: veft-modal-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
	border: 1px solid rgba(212, 168, 75, 0.35);
	font-family: inherit;
	pointer-events: auto;
}

.veft-modal__glow {
	position: absolute;
	inset: -40% -20% auto;
	height: 70%;
	border-radius: 28px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 40%, rgba(212, 168, 75, 0.35), transparent 55%),
		radial-gradient(circle at 75% 20%, rgba(95, 47, 135, 0.28), transparent 50%);
	pointer-events: none;
	z-index: 0;
	animation: veft-glow-drift 8s ease-in-out infinite alternate;
}

.veft-modal__sparkles {
	position: absolute;
	inset: 0;
	border-radius: 28px;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, rgba(212, 168, 75, 0.9), transparent),
		radial-gradient(1.5px 1.5px at 88% 22%, rgba(95, 47, 135, 0.7), transparent),
		radial-gradient(1px 1px at 70% 12%, rgba(255, 106, 37, 0.7), transparent),
		radial-gradient(1.5px 1.5px at 22% 78%, rgba(212, 168, 75, 0.55), transparent),
		radial-gradient(1px 1px at 92% 68%, rgba(95, 47, 135, 0.5), transparent);
	opacity: 0.85;
	animation: veft-sparkle 3.2s ease-in-out infinite;
}

.veft-modal__inner {
	position: relative;
	z-index: 1;
	padding: 44px 24px 26px;
	text-align: center;
	color: var(--veft-ink);
	font-family: inherit;
	border-radius: 28px;
	overflow: hidden;
}

.veft-close {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 4px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--veft-plum-deep);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.veft-close__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.veft-close__icon svg {
	display: block;
}

.veft-close__label {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
}

.veft-close:hover,
.veft-close:focus-visible {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--veft-plum);
	opacity: 0.85;
	transform: none;
	outline: none;
}

@media (max-width: 480px) {
	.veft-modal {
		width: min(94vw, 360px);
		align-self: flex-start;
		margin-top: max(12vh, 72px);
	}

	.veft-modal__inner {
		padding: 42px 18px 22px;
	}

	.veft-backdrop {
		background:
			radial-gradient(ellipse at 50% 12%, rgba(95, 47, 135, 0.12), transparent 50%),
			rgba(14, 8, 22, 0.18);
	}
}

.veft-eyebrow,
.veft-title,
.veft-subtitle,
.veft-perk,
.veft-perk__text,
.veft-cta {
	font-family: inherit;
}

.veft-eyebrow {
	margin: 0 0 10px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0;
	text-indent: 0;
	color: var(--veft-plum);
	text-transform: none;
	animation: veft-rise 0.7s 0.1s ease both;
}

.veft-title {
	margin: 0;
	font-size: clamp(1.45rem, 4.5vw, 1.85rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--veft-plum-deep);
	animation: veft-rise 0.7s 0.18s ease both;
}

.veft-subtitle {
	margin: 12px 0 0;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(26, 18, 36, 0.72);
	animation: veft-rise 0.7s 0.26s ease both;
}

.veft-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 22px auto 20px;
	animation: veft-rise 0.7s 0.32s ease both;
}

.veft-divider > span:not(.veft-divider__diamond) {
	display: block;
	width: 48px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--veft-gold), transparent);
}

.veft-divider__diamond {
	width: 8px;
	height: 8px;
	background: var(--veft-gold);
	transform: rotate(45deg);
	box-shadow: 0 0 12px rgba(212, 168, 75, 0.55);
}

.veft-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	text-align: right;
	animation: veft-rise 0.7s 0.4s ease both;
}

.veft-perk {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(95, 47, 135, 0.08);
	backdrop-filter: blur(6px);
}

.veft-perk--date {
	background: linear-gradient(135deg, rgba(95, 47, 135, 0.08), rgba(212, 168, 75, 0.12));
	border-color: rgba(212, 168, 75, 0.28);
}

.veft-perk__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--veft-plum);
	background: linear-gradient(145deg, rgba(212, 168, 75, 0.25), rgba(95, 47, 135, 0.12));
}

.veft-perk__text {
	flex: 1;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.7;
	color: var(--veft-ink);
}

.veft-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	min-width: 180px;
	padding: 13px 28px;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff !important;
	background: linear-gradient(135deg, var(--veft-plum) 0%, var(--veft-plum-deep) 55%, #2a1040 100%);
	box-shadow: 0 12px 28px rgba(95, 47, 135, 0.35);
	transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
	animation: veft-rise 0.7s 0.48s ease both;
}

.veft-cta:hover,
.veft-cta:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 16px 34px rgba(95, 47, 135, 0.42);
	outline: none;
	color: #fff !important;
}

body.veft-lock {
	overflow: hidden !important;
}

@media (max-width: 480px) {
	.veft-modal__inner {
		padding: 30px 20px 22px;
	}

	.veft-perk {
		padding: 11px 12px;
	}

	.veft-cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.veft-backdrop,
	.veft-modal,
	.veft-eyebrow,
	.veft-title,
	.veft-subtitle,
	.veft-divider,
	.veft-perks,
	.veft-cta,
	.veft-modal__glow,
	.veft-modal__sparkles {
		animation: none !important;
	}
}

@keyframes veft-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes veft-modal-in {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes veft-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes veft-glow-drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

@keyframes veft-sparkle {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}
