/* ═══════════════════════════════════════════════════════
   HELIX VICTORY — CSS Global
   Paleta: Azul escuro + Dourado + Verde neon
   ═══════════════════════════════════════════════════════ */
:root {
  --bg:       #020814;
  --bg2:      #040e1c;
  --bg3:      #071428;
  --card:     #0a1830;
  --gold:     #FFD700;
  --gold2:    #FFC000;
  --blue:     #0057FF;
  --blue2:    #003FCC;
  --cyan:     #00D4FF;
  --green:    #00E676;
  --red:      #FF4D6D;
  --text:     #F0F6FF;
  --muted:    rgba(160,190,230,0.55);
  --pink:     #00D4FF;
  --pink-light: #FFD700;
  --green2:   #00C968;
  --border:   rgba(0,212,255,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── App shell ──────────────────────────────────────────── */
#app { min-height: 100vh; }

.page {
  display: none;
  min-height: 100vh;
  animation: pageFadeIn 0.28s ease both;
}
.page.active { display: block; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Global Loading ─────────────────────────────────────── */
.global-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.global-loading.hidden { display: none; }
.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(0,212,255,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 9000; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  animation: toastIn 0.3s ease both;
  max-width: 340px;
}
.toast.out { animation: toastOut 0.3s ease both; }
.toast.success { border-color: rgba(0,230,118,0.4); color: #a7ffcb; }
.toast.error   { border-color: rgba(255,77,109,0.4); color: #ffb3c0; }
.toast.info    { border-color: rgba(0,212,255,0.4);  color: #b3e5ff; }
.toast.warning { border-color: rgba(255,215,0,0.4);  color: #fff3b3; }
@keyframes toastIn  { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateX(28px); } }

/* ── Marketing notifications (live toasts) ──────────────── */
.notif-container {
  position: fixed; bottom: 80px; left: 18px;
  z-index: 8000; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.notif-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(7,20,40,0.92);
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
  max-width: 280px;
  animation: notifIn 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
.notif-card.out { animation: notifOut 0.3s ease both; }
.notif-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.notif-text { flex: 1; min-width: 0; }
.notif-name { font-size: 12px; font-weight: 700; color: var(--text); }
.notif-msg  { font-size: 11px; color: var(--muted); margin-top: 1px; }
.notif-amount { font-size: 14px; font-weight: 800; color: var(--gold); }
@keyframes notifIn  { from { opacity:0; transform:translateX(-30px) scale(.92); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes notifOut { from { opacity:1; } to { opacity:0; transform:translateX(-20px); } }

/* ── Auth pages wrapper ─────────────────────────────────── */
#page-login, #page-cadastro {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,87,255,0.18), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(0,212,255,0.12), transparent 36%),
    var(--bg);
}
#page-login.active, #page-cadastro.active { display: flex; }

/* ── Landing: Nav ─────────────────────────────────────────── */
.lnd-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(2,8,20,0.82);
  border-bottom: 1px solid rgba(0,212,255,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lnd-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 900;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: .04em;
}
.lnd-nav-brand img { height: 40px; object-fit: contain; }
.lnd-nav-menu { display: flex; align-items: center; gap: 12px; }

.lnd-nav-link {
  background: none; border: none; cursor: pointer;
  color: rgba(160,190,230,0.8); font-size: 15px; font-weight: 600;
  font-family: inherit; padding: 8px 16px; border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.lnd-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.lnd-cta-sm {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #020814; font-size: 14px; font-weight: 800;
  border: none; cursor: pointer; font-family: inherit;
  padding: 10px 22px; border-radius: 50px;
  box-shadow: 0 4px 18px rgba(255,215,0,0.32);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lnd-cta-sm:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,215,0,0.44); }

/* ── Landing: AO VIVO strip ─────────────────────────────── */
.lnd-aovivo {
  background: rgba(4,14,28,0.9);
  border-top: 1px solid rgba(0,212,255,0.12);
  border-bottom: 1px solid rgba(0,212,255,0.12);
  overflow: hidden; white-space: nowrap;
}
.lnd-aovivo-inner { display: flex; align-items: center; height: 64px; }
.lnd-aovivo-badge {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 64px;
  background: var(--red);
  font-size: 10px; font-weight: 900; color: #fff; letter-spacing: .08em;
}
.lnd-aovivo-ao { font-size: 12px; line-height: 1; }
.lnd-aovivo-vivo { font-size: 11px; line-height: 1; }
.lnd-aovivo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.lnd-aovivo-marquee { flex: 1; overflow: hidden; }
.lnd-aovivo-track {
  display: inline-flex; gap: 24px; padding: 0 24px;
  animation: marqueeScroll 28s linear infinite;
}
.lnd-aovivo-track:hover { animation-play-state: paused; }
.lnd-aovivo-badge-row { display: flex; align-items: center; gap: 4px; }
@keyframes marqueeScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.lnd-aovivo-card {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(7,20,40,0.7);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px; padding: 8px 14px;
  flex-shrink: 0;
}
.lnd-aovivo-name  { font-size: 12px; font-weight: 700; color: var(--text); }
.lnd-aovivo-won   { font-size: 11px; color: var(--muted); }
.lnd-aovivo-amt   { font-size: 14px; font-weight: 800; color: var(--gold); }

/* ── Landing: How section ───────────────────────────────── */
.lnd-how, .lnd-test {
  padding: 80px clamp(16px, 5vw, 64px);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.lnd-container { max-width: 1160px; margin: 0 auto; }
.lnd-section-head { text-align: center; margin-bottom: 52px; }
.lnd-section-head h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px,5vw,56px); font-weight: 900;
  color: var(--gold); letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 12px;
}
.lnd-section-head p { font-size: 16px; color: var(--muted); }

.lnd-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lnd-how-card {
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.lnd-how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,87,255,0.2);
}
.lnd-how-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.lnd-how-media img { width: 100%; height: 100%; object-fit: cover; }
.lnd-how-badge {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--bg); font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.lnd-how-copy { padding: 20px; }
.lnd-how-copy h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.lnd-how-step-pill {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lnd-how-copy p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── Landing: Testimonials ──────────────────────────────── */
.lnd-test-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.lnd-test-card {
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 20px; padding: 28px;
  transition: transform 0.25s;
}
.lnd-test-card:hover { transform: translateY(-3px); }
.lnd-test-stars { color: var(--gold); font-size: 18px; margin-bottom: 14px; }
.lnd-test-text  { font-size: 14px; color: rgba(200,225,255,0.85); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.lnd-test-author { display: flex; align-items: center; gap: 12px; }
.lnd-test-name   { font-weight: 700; font-size: 14px; }
.lnd-test-since  { font-size: 12px; color: var(--muted); }

/* ── Landing: Footer ────────────────────────────────────── */
.lnd-footer {
  background: var(--bg2);
  border-top: 1px solid rgba(0,212,255,0.10);
  padding: 48px clamp(16px, 5vw, 64px);
  text-align: center;
}
.lnd-footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 900; color: var(--cyan);
}
.lnd-footer-brand img { height: 36px; object-fit: contain; }
.lnd-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  margin-bottom: 24px;
}
.lnd-footer-links a {
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color 0.2s;
}
.lnd-footer-links a:hover { color: var(--cyan); }
.lnd-footer-warning {
  font-size: 12px; color: rgba(160,190,230,0.45);
  line-height: 1.7; max-width: 640px; margin: 0 auto 16px;
}
.lnd-footer-copy { font-size: 12px; color: rgba(160,190,230,0.3); }

/* ── Auth: lgn / reg shared ─────────────────────────────── */
.lgn-wrap, .reg-wrap {
  width: 100%; max-width: 440px;
  background: rgba(7,20,40,0.85);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 24px; padding: 40px 28px;
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: popIn 0.35s ease both;
}
@keyframes popIn {
  from { opacity:0; transform:scale(0.94) translateY(16px); }
  to   { opacity:1; transform:scale(1)    translateY(0); }
}
.lgn-input, .reg-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(0,212,255,0.15);
  color: #fff; font-size: 15px; font-family: inherit;
  outline: none; transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.lgn-input::placeholder, .reg-input::placeholder { color: rgba(160,190,230,0.35); }
.lgn-input:focus, .reg-input:focus {
  border-color: var(--cyan); background: rgba(0,212,255,0.06);
}
.lgn-input.error, .reg-input.error { border-color: var(--red); }
.lgn-btn, .reg-btn {
  width: 100%; padding: 15px; border-radius: 50px; border: none; cursor: pointer;
  font-weight: 800; font-size: 16px; letter-spacing: 0.4px; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lgn-btn {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,212,255,0.35);
}
.lgn-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,212,255,0.5); }
.reg-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #020814;
  box-shadow: 0 4px 24px rgba(255,215,0,0.35);
}
.reg-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(255,215,0,0.5); }
.lgn-btn:disabled, .reg-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lgn-error, .reg-error { font-size: 12px; color: #ff6b6b; font-weight: 600; display: none; }

/* ── Bottom nav (mobile only) ───────────────────────────── */
@media (min-width: 768px) { .lnd-bottom-nav { display: none !important; } }
.lnd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
  background: rgba(4,14,28,0.96);
  border-top: 1px solid rgba(0,212,255,0.12);
  display: flex; align-items: stretch; justify-content: space-around;
  z-index: 200;
}
.lnd-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; background: none; border: none; cursor: pointer;
  color: rgba(0,212,255,0.55); font-size: 10px; font-weight: 500; font-family: inherit;
  transition: color 0.2s; padding: 0;
}
.lnd-nav-item svg { width: 22px; height: 22px; }
.lnd-nav-item:hover { color: var(--cyan); }
.lnd-nav-active { color: var(--gold) !important; }
.lnd-nav-center-wrap { position: relative; flex: 0 0 70px; display: flex; justify-content: center; }
.lnd-nav-center {
  position: absolute; top: -20px; width: 56px; height: 56px;
  border-radius: 50%; border: 4px solid rgba(4,14,28,0.96);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); box-shadow: 0 4px 16px rgba(255,215,0,0.4);
  cursor: pointer; transition: transform 0.2s;
}
.lnd-nav-center:active { transform: scale(0.95); }
.lnd-nav-center svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }

/* ── Anim helpers ───────────────────────────────────────── */
.anim-slide { animation: slideUp 0.5s ease both; }
@keyframes slideUp { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }

/* ── Painel + jogo placeholders ─────────────────────────── */
#page-painel, #page-jogo { display: none; }
#page-painel.active, #page-jogo.active { display: block; }

/* misc global helpers */
button { font-family: inherit; }
.brand-logo-wrap .brand-logo-icon { display: none; }
