/* ============================================================
   Tema ZX — identidade visual nova (preto + azul neon)
   Carregado só nas páginas públicas (site.layout). Não afeta
   o painel administrativo (Filament).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&display=swap');

:root {
	--zx-bg: #04070f;
	--zx-bg-soft: #0a1024;
	--zx-card: #0c1330;
	--zx-border: rgba(47, 141, 255, 0.25);
	--zx-blue: #2f8dff;
	--zx-blue-soft: #8fd8ff;
	--zx-blue-deep: #0047d6;
	--zx-text: #f2f6ff;
	--zx-text-dim: #9db0d8;
}

body {
	background-color: var(--zx-bg) !important;
	color: var(--zx-text) !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.zx-glow {
	box-shadow: 0 0 24px rgba(47, 141, 255, 0.35);
}

/* Nav */
.navbar.w-nav {
	background: rgba(4, 7, 15, 0.9) !important;
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--zx-border);
}

.nav-link,
.nav-link.w--current,
.navbar .nav-link {
	color: var(--zx-text-dim) !important;
}

.nav-link:hover {
	color: var(--zx-blue-soft) !important;
}

.nav-link.w--current {
	color: var(--zx-blue) !important;
}

.button.main-nav-button,
.button.nav.w-button {
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue)) !important;
	color: #fff !important;
	border-radius: 10px;
	font-weight: 800;
	box-shadow: 0 0 18px rgba(47, 141, 255, 0.4);
}

.nav-bar.off-black,
.off-black {
	background: var(--zx-card) !important;
	border: 1px solid var(--zx-border);
}

/* Splash inicial */
.zx-splash {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5em;
	background: radial-gradient(circle at 50% 30%, #0a1a3d 0%, var(--zx-bg) 70%);
	text-align: center;
	padding: 2em;
	transition: opacity .4s ease;
}

.zx-splash.zx-hide {
	opacity: 0;
	pointer-events: none;
}

.zx-splash img {
	width: 120px;
	height: 120px;
	filter: drop-shadow(0 0 30px rgba(47, 141, 255, 0.6));
}

.zx-splash h1 {
	font-size: 2em;
	font-weight: 900;
	letter-spacing: 0.04em;
	margin: 0;
}

.zx-splash p {
	color: var(--zx-text-dim);
	max-width: 420px;
	margin: 0;
}

.zx-splash .zx-cta {
	display: inline-block;
	padding: 0.9em 2.2em;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 0 25px rgba(47, 141, 255, 0.5);
}

/* Hero da página inicial */
.zx-hero {
	position: relative;
	padding: 5em 1.5em 3em;
	text-align: center;
	overflow: hidden;
}

.zx-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 0%, rgba(47, 141, 255, 0.25), transparent 60%);
	pointer-events: none;
}

.zx-hero-logo {
	width: 96px;
	height: 96px;
	margin: 0 auto 1em;
	filter: drop-shadow(0 0 24px rgba(47, 141, 255, 0.5));
}

.zx-hero h1 {
	font-size: clamp(1.8em, 4vw, 3em);
	font-weight: 900;
	margin: 0 0 0.3em;
}

.zx-hero h1 span {
	background: linear-gradient(90deg, var(--zx-blue-soft), var(--zx-blue));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.zx-hero p {
	color: var(--zx-text-dim);
	max-width: 560px;
	margin: 0 auto 1.6em;
}

/* Grade de jogos */
.zx-games-section {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1em 1.2em 4em;
}

.zx-games-title {
	font-weight: 800;
	font-size: 1.2em;
	margin-bottom: 1em;
	display: flex;
	align-items: center;
	gap: .5em;
}

.zx-games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (min-width: 640px) {
	.zx-games-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 960px) {
	.zx-games-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.zx-game-card {
	background: var(--zx-card);
	border: 1px solid var(--zx-border);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: var(--zx-text);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, border-color .2s ease;
}

.zx-game-card:hover {
	transform: translateY(-4px);
	border-color: var(--zx-blue);
}

.zx-game-card.zx-disabled {
	opacity: .55;
	pointer-events: none;
}

.zx-game-card .zx-game-thumb {
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #0a1a3d, var(--zx-bg));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2em;
	overflow: hidden;
}

.zx-game-card .zx-game-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zx-game-card .zx-game-info {
	padding: .8em .9em 1em;
	display: flex;
	flex-direction: column;
	gap: .5em;
	flex: 1;
}

.zx-game-card .zx-game-name {
	font-weight: 700;
	font-size: .85em;
}

.zx-game-card .zx-game-play {
	margin-top: auto;
	text-align: center;
	padding: .5em;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	font-weight: 800;
	font-size: .75em;
}

/* Ticker de ganhadores reais */
.zx-winners-bar {
	max-width: 1080px;
	margin: 0 auto 2em;
	padding: 0 1.2em;
}

.zx-winners-bar .zx-winners-inner {
	background: var(--zx-card);
	border: 1px solid var(--zx-border);
	border-radius: 14px;
	padding: .8em 1.2em;
	font-size: .85em;
	color: var(--zx-text-dim);
	text-align: center;
}

/* Ranking */
.zx-ranking {
	max-width: 760px;
	margin: 2em auto 0;
	padding: 0 1.2em;
}

.zx-ranking-title {
	font-weight: 800;
	font-size: 1.2em;
	margin-bottom: .8em;
}

.zx-ranking-list {
	background: var(--zx-card);
	border: 1px solid var(--zx-border);
	border-radius: 16px;
	overflow: hidden;
}

.zx-ranking-row {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: .9em 1.1em;
	font-size: .95em;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}

.zx-ranking-row:last-child { border-bottom: none; }
.zx-ranking-row:nth-child(odd) { background: rgba(47,141,255,0.04); }

.zx-ranking-pos {
	min-width: 1.8em;
	text-align: center;
	color: var(--zx-text-dim);
	font-weight: 700;
}

.zx-ranking-name {
	color: var(--zx-text);
	font-weight: 700;
	flex: 1;
}

.zx-ranking-amount {
	color: #34d399;
	font-weight: 800;
}

/* FAQ */
.zx-faq {
	max-width: 760px;
	margin: 0 auto;
	padding: 1em 1.2em 4em;
}

.zx-faq-title {
	font-weight: 800;
	font-size: 1.2em;
	margin-bottom: 1em;
}

.zx-faq-item {
	background: var(--zx-card);
	border: 1px solid var(--zx-border);
	border-radius: 14px;
	padding: .9em 1.1em;
	margin-bottom: .7em;
}

.zx-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--zx-text);
	list-style: none;
}

.zx-faq-item summary::-webkit-details-marker { display: none; }

.zx-faq-item summary::after {
	content: '+';
	float: right;
	color: var(--zx-blue);
	font-weight: 900;
}

.zx-faq-item[open] summary::after {
	content: '−';
}

.zx-faq-item p, .zx-faq-item ol, .zx-faq-item li {
	color: var(--zx-text-dim);
	font-size: .9em;
	margin-top: .6em;
	line-height: 1.5;
}

/* Auth (cadastro/login) */
.zx-auth-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: radial-gradient(circle at 50% 0%, rgba(47,141,255,0.2), transparent 55%), var(--zx-bg);
}

.zx-auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--zx-card);
	border: 1px solid var(--zx-border);
	border-radius: 20px;
	padding: 32px 28px;
	box-shadow: 0 0 35px rgba(47,141,255,0.18);
}

.zx-auth-logo {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: block;
	filter: drop-shadow(0 0 20px rgba(47,141,255,0.5));
}

.zx-auth-title { text-align: center; font-weight: 800; font-size: 22px; color: var(--zx-text); margin-bottom: 4px; }
.zx-auth-subtitle { text-align: center; font-size: 13px; color: var(--zx-text-dim); margin-bottom: 24px; }
.zx-field { margin-bottom: 16px; }
.zx-field label { display: block; font-size: 12px; font-weight: 700; color: var(--zx-text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.zx-field input {
	width: 100%;
	padding: 13px 16px;
	background: rgba(4,7,15,0.7);
	border: 1px solid var(--zx-border);
	border-radius: 12px;
	color: var(--zx-text);
	font-size: 14px;
	box-sizing: border-box;
}
.zx-field input:focus { outline: none; border-color: var(--zx-blue); box-shadow: 0 0 0 3px rgba(47,141,255,0.25); }
.zx-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--zx-text-dim); margin: 18px 0; }
.zx-terms input { margin-top: 3px; accent-color: var(--zx-blue); width: 17px; height: 17px; flex-shrink: 0; }
.zx-terms a { color: var(--zx-blue-soft); text-decoration: underline; }
.zx-submit {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	box-shadow: 0 0 25px rgba(47,141,255,0.45);
	cursor: pointer;
}
.zx-switch { text-align: center; font-size: 13px; color: var(--zx-text-dim); margin-top: 18px; }
.zx-switch a, .zx-forgot { color: var(--zx-blue-soft); font-weight: 700; text-decoration: none; }
.zx-forgot { display: block; text-align: right; font-size: 12.5px; margin: -8px 0 18px; }
.zx-error { background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.35); color: #fda4af; font-size: 12.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }

/* Perfil */
.zx-profile-wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 110px; }
.zx-profile-header { text-align: center; margin-bottom: 24px; }
.zx-profile-avatar {
	width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	box-shadow: 0 0 25px rgba(47,141,255,0.5);
	font-weight: 900; font-size: 26px; color: #fff;
}
.zx-profile-name { font-weight: 800; font-size: 20px; color: var(--zx-text); }
.zx-profile-card { background: var(--zx-card); border: 1px solid var(--zx-border); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.zx-profile-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.zx-profile-row:last-child { border-bottom: none; }
.zx-profile-label { font-size: 12px; color: var(--zx-text-dim); text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.zx-profile-value { font-size: 14px; color: var(--zx-text); font-weight: 600; }
.zx-balance { font-size: 26px; font-weight: 900; color: #34d399; text-align: center; margin: 6px 0 2px; }
.zx-logout {
	display: block; width: 100%; text-align: center; padding: 14px; box-sizing: border-box;
	border-radius: 14px; background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.35);
	color: #fda4af; font-weight: 800; text-decoration: none; margin-top: 8px;
}
.zx-btn-secondary {
	flex: 1; text-align: center; padding: 12px; border-radius: 12px;
	background: rgba(255,255,255,0.06); border: 1px solid var(--zx-border);
	color: var(--zx-text); font-weight: 800; text-decoration: none;
}
.zx-btn-primary {
	flex: 1; text-align: center; padding: 12px; border-radius: 12px;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	color: #fff; font-weight: 800; text-decoration: none;
}

/* Barra inferior (app) */
.zx-bottom-nav {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
	display: flex; justify-content: space-around; align-items: flex-end;
	padding: 8px 6px 18px;
	background: rgba(4,7,15,0.95);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--zx-border);
}
.zx-bottom-nav a {
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	font-size: 11px; text-decoration: none; color: var(--zx-text-dim); font-weight: 700;
}
.zx-bottom-nav a.zx-active { color: var(--zx-blue); }
.zx-bottom-nav iconify-icon { font-size: 20px; }
.zx-bottom-nav .zx-nav-highlight { position: relative; top: -16px; }
.zx-nav-badge {
	width: 52px; height: 52px; border-radius: 50%;
	background: linear-gradient(90deg, var(--zx-blue-deep), var(--zx-blue));
	display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
	box-shadow: 0 0 20px rgba(47,141,255,0.6); margin-bottom: 2px;
}
