/* Popup Discord v3 — site público */
html.l2-discord-v2-on .fancybox-container,
html.l2-discord-v2-on .fancybox-bg,
html.l2-discord-v2-on .fancybox-slide,
html.l2-discord-v2-on [class*="index-home-discord"],
html.l2-discord-v2-on [id*="index-home-discord"],
body.l2-discord-v2-on .fancybox-container,
body.l2-discord-v2-on .fancybox-bg,
body.l2-discord-v2-on [class*="index-home-discord"] {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

body.l2-dc-open {
	overflow: hidden;
}

.l2-dc {
	position: fixed;
	inset: 0;
	z-index: 10000050;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 2rem);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.l2-dc.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.l2-dc__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(88, 101, 242, 0.28), transparent 55%),
		radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201, 166, 87, 0.08), transparent 50%),
		rgba(4, 6, 14, 0.82);
	backdrop-filter: blur(14px) saturate(1.15);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.l2-dc__panel {
	position: relative;
	width: min(100%, 36rem);
	max-height: min(94vh, 44rem);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.15rem, 3.2vw, 1.55rem);
	border-radius: 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background:
		linear-gradient(145deg, rgba(28, 32, 52, 0.97) 0%, rgba(10, 12, 22, 0.98) 48%, rgba(8, 10, 18, 0.99) 100%);
	box-shadow:
		0 0 0 1px rgba(88, 101, 242, 0.12),
		0 2rem 4rem rgba(0, 0, 0, 0.55),
		0 0 3rem rgba(88, 101, 242, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transform: translateY(1.35rem) scale(0.97);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
	isolation: isolate;
}

.l2-dc__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%, transparent 70%, rgba(88, 101, 242, 0.06) 100%);
	pointer-events: none;
	z-index: 0;
}

.l2-dc__panel > * {
	position: relative;
	z-index: 1;
}

.l2-dc.is-visible .l2-dc__panel {
	transform: translateY(0) scale(1);
}

/* —— Close control —— */
.l2-dc__close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(12, 14, 24, 0.55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	color: #eef1ff;
	cursor: pointer;
	z-index: 5;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.l2-dc__close:disabled {
	cursor: not-allowed;
}

.l2-dc__close:not(:disabled):hover {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	transform: scale(1.04);
}

.l2-dc__close-wrap {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.l2-dc__close-ring {
	position: absolute;
	inset: 0.2rem;
	width: calc(100% - 0.4rem);
	height: calc(100% - 0.4rem);
	transform: rotate(-90deg);
}

.l2-dc__close-ring-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 2;
}

.l2-dc__close-ring-bar {
	fill: none;
	stroke: #5865f2;
	stroke-width: 2.25;
	stroke-linecap: round;
	transition: stroke 0.2s ease;
}

.l2-dc__close.is-unlocked .l2-dc__close-ring-bar {
	stroke: rgba(255, 255, 255, 0.35);
}

.l2-dc__close-center {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.l2-dc__close-count {
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	line-height: 1;
	color: #f0f2ff;
}

.l2-dc__close-x {
	width: 1rem;
	height: 1rem;
	display: none;
	flex-shrink: 0;
}

.l2-dc__close.is-unlocked .l2-dc__close-count {
	display: none;
}

.l2-dc__close.is-unlocked .l2-dc__close-x {
	display: block;
}

/* —— Header —— */
.l2-dc__head {
	padding-right: 2.85rem;
}

.l2-dc__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.65rem 0.28rem 0.5rem;
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f4f6ff;
	background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
	box-shadow: 0 0.25rem 1rem rgba(88, 101, 242, 0.4);
}

.l2-dc__badge-ico {
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
	opacity: 0.95;
}

.l2-dc__title {
	margin: 0.65rem 0 0.4rem;
	font-family: var(--font-2, 'ChelseaCYR', 'Cinzel', serif);
	font-size: clamp(1.2rem, 3.4vw, 1.5rem);
	font-weight: 700;
	color: #fafbff;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.l2-dc__sub {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(215, 222, 245, 0.88);
	max-width: 36ch;
}

.l2-dc__perks {
	margin: 0.5rem 0 0;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(232, 195, 115, 0.95);
}

/* —— Widget —— */
.l2-dc__widget {
	border-radius: 0.75rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: #1a1b1f;
	min-height: 12.5rem;
	max-height: 16.75rem;
	flex: 0 1 auto;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.l2-dc__widget iframe {
	width: 100%;
	height: 18.5rem;
	border: 0;
	display: block;
}

.l2-dc__widget--cta {
	display: grid;
	place-items: center;
	min-height: 10rem;
	background:
		radial-gradient(circle at 30% 20%, rgba(88, 101, 242, 0.4), transparent 55%),
		linear-gradient(180deg, #2b2d42, #12141c);
}

.l2-dc__illus {
	width: 4.75rem;
	height: 4.75rem;
	border-radius: 1.1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36' fill='%23eef'%3E%3Cpath d='M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.91 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0 105.89 105.89 0 0 0 19.39 8.09C2.79 32.65-1.71 56.6.54 80.21h0A105.73 105.73 0 0 0 32.71 96.1a77.7 77.7 0 0 0 6.89-11.29 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.59 75.59 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.29 105.25 105.25 0 0 0 32.17-15.87h0C129.24 52 122.09 28.11 107.7 8.07ZM42.45 65.69c-6.81 0-12.46-6.28-12.46-14s5.59-14 12.46-14 12.6 6.28 12.55 14-5.66 14-12.55 14Zm42.24 0c-6.81 0-12.46-6.28-12.46-14s5.59-14 12.46-14 12.6 6.28 12.55 14-5.66 14-12.55 14Z'/%3E%3C/svg%3E") center/72% no-repeat;
	opacity: 0.95;
	filter: drop-shadow(0 0.5rem 1rem rgba(88, 101, 242, 0.35));
}

/* —— Actions —— */
.l2-dc__actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.l2-dc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3rem;
	border-radius: 0.65rem;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(180deg, #7280ff 0%, #5865f2 42%, #4752c4 100%);
	box-shadow:
		0 0.35rem 1.25rem rgba(88, 101, 242, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.l2-dc__cta-ico {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
	opacity: 0.95;
}

.l2-dc__cta:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow:
		0 0.55rem 1.5rem rgba(88, 101, 242, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	color: #fff;
}

.l2-dc__later {
	min-height: 2.65rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(235, 238, 252, 0.9);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.l2-dc__later:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.l2-dc__later:not(:disabled):hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

@media (max-width: 480px) {
	.l2-dc__widget iframe {
		height: 14.25rem;
	}
	.l2-dc__close {
		top: 0.55rem;
		right: 0.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.l2-dc,
	.l2-dc__panel,
	.l2-dc__cta,
	.l2-dc__close {
		transition: none;
	}
}
