/* Tema Copa do Mundo — Brasil */

body.theme-copa-mundo {
	--copa-verde: #009c3b;
	--copa-amarelo: #ffdf00;
	--copa-azul: #002776;
	padding-top: 26px;
}

body.theme-copa-mundo .copa-mundo-deco {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 1035;
	overflow: hidden;
}

/* Bandeirinhas no topo */
.copa-bandeirinhas-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 26px;
	display: flex;
	justify-content: center;
	gap: 2px;
	padding: 0 4px;
	z-index: 1040;
	background: linear-gradient(180deg, rgba(0, 39, 118, 0.12) 0%, transparent 100%);
}

.copa-bandeirinhas-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 22px;
	display: flex;
	justify-content: center;
	gap: 3px;
	padding: 0 8px;
	z-index: 1036;
	opacity: 0.85;
}

.copa-bandeirinha {
	display: block;
	width: 22px;
	height: 18px;
	clip-path: polygon(50% 100%, 0 0, 100% 0);
	transform-origin: top center;
	animation: copa-bandeirinha-swing 2.8s ease-in-out infinite;
}

.copa-bandeirinha--verde { background: #009c3b; }
.copa-bandeirinha--amarelo { background: #ffdf00; animation-delay: 0.2s; }
.copa-bandeirinha--azul { background: #002776; animation-delay: 0.4s; }

.copa-bandeirinhas-top .copa-bandeirinha:nth-child(odd) { animation-delay: 0.15s; }
.copa-bandeirinhas-top .copa-bandeirinha:nth-child(3n) { animation-delay: 0.35s; }

@keyframes copa-bandeirinha-swing {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}

/* Símbolos flutuantes */
.copa-flutuantes {
	position: fixed;
	inset: 0;
	z-index: 1;
}

.copa-flutua {
	position: absolute;
	font-size: 1.35rem;
	opacity: 0.22;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
	animation: copa-flutua-float 6s ease-in-out infinite;
}

.copa-flutua--1 { top: 18%; left: 4%; animation-delay: 0s; }
.copa-flutua--2 { top: 42%; right: 5%; animation-delay: 1.2s; font-size: 1.6rem; }
.copa-flutua--3 { bottom: 28%; left: 6%; animation-delay: 2.4s; }
.copa-flutua--4 { top: 65%; right: 8%; animation-delay: 0.8s; }

@keyframes copa-flutua-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-12px) rotate(8deg); }
}

/* Faixa Copa */
body.theme-copa-mundo .copa-mundo-strip {
	position: relative;
	z-index: 1020;
	font-size: 0.9rem;
	padding: 0.65rem 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Cabeçalho e rodapé */
body.theme-copa-mundo .header-app-header .header-app-header-container,
body.theme-copa-mundo .header-app-header.campanha.campanha-header--solid .header-app-header-container,
body.theme-copa-mundo .header-app-header.campanha.campanha-header--overlay .campanha-overlay-top {
	background: linear-gradient(135deg, #009c3b 0%, #007a30 42%, #002776 100%) !important;
	border-bottom: 3px solid #ffdf00 !important;
	box-shadow: 0 4px 20px rgba(0, 39, 118, 0.28) !important;
}

body.theme-copa-mundo .footer-institucional {
	background: linear-gradient(135deg, #002776 0%, #009c3b 50%, #007a30 100%) !important;
	border-top: 4px solid #ffdf00 !important;
}

body.theme-copa-mundo .footer-institucional .footer-text {
	color: rgba(255, 255, 255, 0.95) !important;
}

/* Botões e cards */
body.theme-copa-mundo .btn-warning,
body.theme-copa-mundo .btn.btn-warning,
body.theme-copa-mundo .app-btn-comprar,
body.theme-copa-mundo .btn-comprar,
body.theme-copa-mundo .btn-primary,
body.theme-copa-mundo .qty-btn-plus {
	border: 2px solid #ffdf00 !important;
	box-shadow: 0 4px 16px rgba(0, 156, 59, 0.35) !important;
}

body.theme-copa-mundo .secao-titulo-box,
body.theme-copa-mundo .premios-bloco-header,
body.theme-copa-mundo .top-ranking-header {
	border-left: 5px solid #ffdf00 !important;
	box-shadow: inset 4px 0 0 rgba(0, 156, 59, 0.15) !important;
}

body.theme-copa-mundo .app-card,
body.theme-copa-mundo .card,
body.theme-copa-mundo .premios-bloco,
body.theme-copa-mundo .top-compradores-fixo {
	border: 1px solid rgba(0, 156, 59, 0.25) !important;
	box-shadow: 0 4px 18px rgba(0, 39, 118, 0.1) !important;
}

body.theme-copa-mundo .compra-aprovada-pro__success {
	background: linear-gradient(135deg, #009c3b 0%, #007a30 50%, #002776 100%) !important;
	border: 3px solid #ffdf00 !important;
	box-shadow: 0 8px 28px rgba(0, 156, 59, 0.4) !important;
}

body.theme-copa-mundo .compra-aprovada-pro__success h2::after {
	content: ' ⚽🇧🇷';
}

/* Overlay celebração compra */
.copa-celebrate {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.copa-celebrate[hidden] {
	display: none !important;
}

.copa-celebrate.is-active {
	display: flex !important;
	animation: copa-celebrate-in 0.35s ease-out;
}

.copa-celebrate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 39, 118, 0.55);
	backdrop-filter: blur(4px);
}

.copa-celebrate__panel {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem 1.75rem;
	border-radius: 20px;
	background: linear-gradient(160deg, #009c3b 0%, #ffdf00 45%, #002776 100%);
	border: 4px solid #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	max-width: 320px;
	width: 100%;
	color: #0f172a;
}

.copa-celebrate__flags {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	animation: copa-celebrate-pulse 0.6s ease-in-out infinite alternate;
}

.copa-celebrate__gol {
	margin: 0;
	font-size: 2.2rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #002776;
	text-shadow: 0 2px 0 #fff;
}

.copa-celebrate__msg {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.copa-confetti {
	position: fixed;
	width: 10px;
	height: 14px;
	z-index: 10049;
	pointer-events: none;
	animation: copa-confetti-fall 2.5s ease-in forwards;
}

.copa-confetti--verde { background: #009c3b; }
.copa-confetti--amarelo { background: #ffdf00; }
.copa-confetti--azul { background: #002776; }

@keyframes copa-celebrate-in {
	from { opacity: 0; transform: scale(0.85); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes copa-celebrate-pulse {
	from { transform: scale(1); }
	to { transform: scale(1.12); }
}

@keyframes copa-confetti-fall {
	0% { opacity: 1; transform: translateY(0) rotate(0deg); }
	100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

@media (max-width: 768px) {
	body.theme-copa-mundo .copa-bandeirinha {
		width: 14px;
		height: 12px;
	}
	.copa-flutua {
		font-size: 1rem;
		opacity: 0.15;
	}
}

@media (prefers-reduced-motion: reduce) {
	.copa-bandeirinha,
	.copa-flutua,
	.copa-celebrate__flags,
	.copa-confetti {
		animation: none !important;
	}
}
