/**
 * PVIP Homepage Modal — Beautiful, eye-catching modal
 *
 * Three themes: dark (default), light, neon
 */

/* ─── Overlay ─── */
.pvip-hm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pvip-hm-overlay.pvip-hm-active {
	opacity: 1;
	visibility: visible;
}

.pvip-hm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* ─── Modal ─── */
.pvip-hm-modal {
	position: relative;
	width: 92%;
	max-width: 420px;
	border-radius: 24px;
	padding: 48px 32px 36px;
	text-align: center;
	overflow: hidden;
	transform: scale(0.85) translateY(30px);
	transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pvip-hm-active .pvip-hm-modal {
	transform: scale(1) translateY(0);
}

/* ─── Close Button ─── */
.pvip-hm-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 24px;
	line-height: 32px;
	cursor: pointer;
	transition: color 0.2s, transform 0.2s;
	z-index: 2;
	padding: 0;
}

.pvip-hm-close:hover {
	background: none;
	color: #fff;
	transform: scale(1.15);
}

/* ─── Glow Effect ─── */
.pvip-hm-glow {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		from 0deg,
		transparent,
		rgba(220, 72, 129, 0.3),
		transparent,
		rgba(129, 21, 104, 0.3),
		transparent
	);
	animation: pvip-hm-rotate 6s linear infinite;
	z-index: 0;
}

@keyframes pvip-hm-rotate {
	100% { transform: rotate(360deg); }
}

/* ─── Particles ─── */
.pvip-hm-particles {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.pvip-hm-particles span {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	animation: pvip-hm-float 4s ease-in-out infinite;
}

.pvip-hm-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 3.5s; }
.pvip-hm-particles span:nth-child(2) { left: 80%; top: 15%; animation-delay: 0.5s; animation-duration: 4s; }
.pvip-hm-particles span:nth-child(3) { left: 40%; top: 70%; animation-delay: 1s; animation-duration: 3s; }
.pvip-hm-particles span:nth-child(4) { left: 70%; top: 80%; animation-delay: 1.5s; animation-duration: 4.5s; }
.pvip-hm-particles span:nth-child(5) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 3.8s; }
.pvip-hm-particles span:nth-child(6) { left: 60%; top: 40%; animation-delay: 0.8s; animation-duration: 3.2s; }

@keyframes pvip-hm-float {
	0%, 100% {
		transform: translateY(0) scale(1);
		opacity: 0.3;
	}
	50% {
		transform: translateY(-20px) scale(1.5);
		opacity: 0.8;
	}
}

/* ─── Content ─── */
.pvip-hm-content {
	position: relative;
	z-index: 1;
}

/* ─── Emoji ─── */
.pvip-hm-emoji {
	margin-bottom: 16px;
}

.pvip-hm-emoji-main {
	font-size: 56px;
	display: inline-block;
	animation: pvip-hm-bounce 2s ease-in-out infinite;
	filter: drop-shadow(0 4px 12px rgba(255, 100, 0, 0.4));
}

@keyframes pvip-hm-bounce {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-8px) scale(1.1); }
}

/* ─── Title ─── */
.pvip-hm-title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 8px;
}

/* ─── Subtitle ─── */
.pvip-hm-subtitle {
	font-size: 15px;
	margin: 0 0 28px;
	opacity: 0.7;
	line-height: 1.5;
}

/* ─── CTA Button ─── */
.pvip-hm-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 36px;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
}

.pvip-hm-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50px;
	opacity: 0;
	transition: opacity 0.3s;
}

.pvip-hm-cta:hover {
	transform: translateY(-2px) scale(1.03);
}

.pvip-hm-cta:active {
	transform: translateY(0) scale(0.98);
}

.pvip-hm-cta-text {
	position: relative;
	z-index: 1;
}

.pvip-hm-cta-arrow {
	position: relative;
	z-index: 1;
	font-size: 20px;
	transition: transform 0.3s;
}

.pvip-hm-cta:hover .pvip-hm-cta-arrow {
	transform: translateX(4px);
}

/* ─── Dismiss ─── */
.pvip-hm-dismiss {
	margin-top: 16px;
	font-size: 13px;
	opacity: 0.4;
	cursor: pointer;
	transition: opacity 0.2s;
}

.pvip-hm-dismiss:hover {
	opacity: 0.7;
}

/* ═══════════════════════════════════════════════════
   THEME: DARK (default)
   ═══════════════════════════════════════════════════ */
.pvip-hm-dark .pvip-hm-modal {
	background: radial-gradient(ellipse at top, #2a1a2e 0%, #0d0d0f 100%);
	border: 1px solid rgba(220, 72, 129, 0.3);
	box-shadow:
		0 0 60px rgba(220, 72, 129, 0.15),
		0 25px 50px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pvip-hm-dark .pvip-hm-title {
	color: #fff;
	background: linear-gradient(135deg, #fff, #dc4881);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pvip-hm-dark .pvip-hm-subtitle {
	color: #c9a0b3;
}

.pvip-hm-dark .pvip-hm-cta {
	background: linear-gradient(135deg, #dc4881 0%, #811568 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(220, 72, 129, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pvip-hm-dark .pvip-hm-cta:hover {
	box-shadow: 0 12px 32px rgba(220, 72, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pvip-hm-dark .pvip-hm-dismiss {
	color: #fff;
}

/* ═══════════════════════════════════════════════════
   THEME: LIGHT
   ═══════════════════════════════════════════════════ */
.pvip-hm-light .pvip-hm-backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.pvip-hm-light .pvip-hm-modal {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.pvip-hm-light .pvip-hm-glow {
	background: conic-gradient(
		from 0deg,
		transparent,
		rgba(220, 72, 129, 0.1),
		transparent,
		rgba(129, 21, 104, 0.1),
		transparent
	);
}

.pvip-hm-light .pvip-hm-close {
	background: none;
	color: rgba(0, 0, 0, 0.3);
}

.pvip-hm-light .pvip-hm-close:hover {
	background: none;
	color: #333;
}

.pvip-hm-light .pvip-hm-particles span {
	background: rgba(220, 72, 129, 0.2);
}

.pvip-hm-light .pvip-hm-title {
	color: #1a1a1a;
	background: linear-gradient(135deg, #1a1a1a, #dc4881);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pvip-hm-light .pvip-hm-subtitle {
	color: #666;
}

.pvip-hm-light .pvip-hm-cta {
	background: linear-gradient(135deg, #dc4881 0%, #b8156e 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(220, 72, 129, 0.3);
}

.pvip-hm-light .pvip-hm-dismiss {
	color: #666;
}

/* ═══════════════════════════════════════════════════
   THEME: NEON
   ═══════════════════════════════════════════════════ */
.pvip-hm-neon .pvip-hm-modal {
	background: #0a0a0f;
	border: 2px solid;
	border-image: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff) 1;
	border-radius: 24px;
	box-shadow:
		0 0 40px rgba(255, 0, 110, 0.2),
		0 0 80px rgba(131, 56, 236, 0.1),
		inset 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Fix border-radius with border-image */
.pvip-hm-neon .pvip-hm-modal {
	border-image: none;
	border-color: #ff006e;
}

.pvip-hm-neon .pvip-hm-glow {
	background: conic-gradient(
		from 0deg,
		transparent,
		rgba(255, 0, 110, 0.4),
		transparent,
		rgba(131, 56, 236, 0.4),
		transparent,
		rgba(58, 134, 255, 0.4),
		transparent
	);
}

.pvip-hm-neon .pvip-hm-particles span {
	background: #ff006e;
	box-shadow: 0 0 6px #ff006e;
}

.pvip-hm-neon .pvip-hm-title {
	color: #fff;
	text-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
}

.pvip-hm-neon .pvip-hm-subtitle {
	color: rgba(255, 255, 255, 0.5);
}

.pvip-hm-neon .pvip-hm-cta {
	background: transparent;
	border: 2px solid #ff006e;
	color: #ff006e;
	box-shadow: 0 0 20px rgba(255, 0, 110, 0.3), inset 0 0 20px rgba(255, 0, 110, 0.1);
	text-shadow: 0 0 8px rgba(255, 0, 110, 0.5);
}

.pvip-hm-neon .pvip-hm-cta:hover {
	background: #ff006e;
	color: #fff;
	box-shadow: 0 0 40px rgba(255, 0, 110, 0.5), 0 0 80px rgba(255, 0, 110, 0.2);
	text-shadow: none;
}

.pvip-hm-neon .pvip-hm-close {
	background: none;
	border: none;
	color: rgba(255, 0, 110, 0.5);
}

.pvip-hm-neon .pvip-hm-close:hover {
	color: #ff006e;
}

.pvip-hm-neon .pvip-hm-dismiss {
	color: rgba(255, 255, 255, 0.3);
}

/* ─── Entrance animations for content ─── */
.pvip-hm-overlay .pvip-hm-emoji,
.pvip-hm-overlay .pvip-hm-title,
.pvip-hm-overlay .pvip-hm-subtitle,
.pvip-hm-overlay .pvip-hm-cta,
.pvip-hm-overlay .pvip-hm-dismiss {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.pvip-hm-active .pvip-hm-emoji    { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.pvip-hm-active .pvip-hm-title    { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.pvip-hm-active .pvip-hm-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.pvip-hm-active .pvip-hm-cta      { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.pvip-hm-active .pvip-hm-dismiss  { opacity: 0.4; transform: translateY(0); transition-delay: 0.6s; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
	.pvip-hm-emoji-main,
	.pvip-hm-particles span,
	.pvip-hm-glow {
		animation: none !important;
	}

	.pvip-hm-modal {
		transform: scale(1) translateY(0) !important;
	}

	.pvip-hm-overlay .pvip-hm-emoji,
	.pvip-hm-overlay .pvip-hm-title,
	.pvip-hm-overlay .pvip-hm-subtitle,
	.pvip-hm-overlay .pvip-hm-cta,
	.pvip-hm-overlay .pvip-hm-dismiss {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
