/* --- DESIGN SYSTEM GLOBAL --- */
/* 
 * Design System Global: Sleek Cyberpunk (A.3 - Tático Brasil)
 * Localização no Monorepo: packages/design-system/styles.css
 */

:root {
  --bg-pure: #000000;
  --bg-card: rgba(8, 8, 12, 0.85);
  --neon-cyan: #00f3ff;
  --neon-green: #00ff88;
  --neon-yellow: #ffea00;
  --neon-magenta: #ff007f;
  --error-red: #ff2a2a;
  --text-main: #ffffff;
  --text-muted: #888888;
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sombras Neon (Glows) */
  --glow-cyan: 0 0 15px rgba(0, 243, 255, 0.4);
  --glow-green: 0 0 15px rgba(0, 255, 136, 0.4);
  --glow-yellow: 0 0 12px rgba(255, 234, 0, 0.4);
  --glow-magenta: 0 0 15px rgba(255, 0, 127, 0.4);
  --glow-error: 0 0 12px rgba(255, 42, 42, 0.4);

  /* Escala de Espaçamento Móvel Ergonômico */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-pure);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Pitch A.3 - Estilo Campo Tático */
.pitch-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.pitch-line {
  position: absolute;
  border: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
  pointer-events: none;
}

.pitch-line.center-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pitch-line.half-way {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
}

/* Container de Simulação Mobile */
.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-pure);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 255, 136, 0.02);
}

/* Inputs Estilo Neo */
.neo-input {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neo-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background-color: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 5px rgba(0, 243, 255, 0.1);
}

.neo-input.error {
  border-color: var(--error-red);
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.3);
  animation: shake 0.4s ease-in-out;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #00ff88 0%, #00f3ff 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.6);
}

.btn-primary:disabled {
  background: #333;
  color: #777;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-social {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-social:hover {
  background: rgba(255,255,255,0.05);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 12px;
  padding: 0;
}

.divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

.divider span {
  background: var(--bg-card);
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* Animações Globais */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(0,255,136,0.3); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 243, 255, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.6); }
}

@keyframes pulse-glow-yellow {
  0%, 100% { box-shadow: 0 0 3px rgba(255, 234, 0, 0.2); }
  50% { box-shadow: 0 0 12px rgba(255, 234, 0, 0.6); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #121214 25%, #1a1a22 50%, #121214 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}



/* --- COMPLEMENTARY APP STYLES --- */
/* 
 * Estilos complementares de layout e visual do módulo de Login & Onboarding
 * Localização no Monorepo: apps/frontend/src/style.css
 */

.view-layer {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  padding: 0 24px; /* Garante margem interna nas laterais */
}

.view-layer.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
}

.view-layer.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Identidade Visual / Logos */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-ball {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
  transition: transform 0.3s ease;
  animation: cyber-glow 3s ease-in-out infinite;
}

.logo-ball:hover {
  transform: rotate(15deg) scale(1.05);
}

.brand-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 2.2rem;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1;
}

.neon-accent {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  margin-left: 6px;
}

.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
}

@keyframes cyber-glow {
  0%, 100% { filter: drop-shadow(0 0 4px var(--neon-cyan)); }
  50% { filter: drop-shadow(0 0 10px var(--neon-cyan)) drop-shadow(0 0 2px var(--neon-green)); }
}

/* Cabeçalho de Onboarding com Botão de Voltar */
.header-onboarding {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.header-onboarding h2 {
  font-family: var(--font-brand);
  margin: 0;
  font-size: 1.4rem;
}

/* Pilha de Formulários */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relative-group {
  position: relative;
}

.input-group label {
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 500;
}

/* Indicadores de Status nos Inputs */
.status-icon {
  position: absolute;
  right: 16px;
  top: 38px;
  font-size: 1.1rem;
  pointer-events: none;
}

.helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  transition: color 0.3s;
}

.helper-text.error-text {
  color: var(--error-red);
}

.icon-google {
  width: 24px;
  height: 24px;
}

/* Visualizador de Avatar de Perfil */
.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  position: relative;
}

.avatar-image {
  width: 100%;
  height: 100%;
  background-color: #222;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23666" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.edit-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  cursor: pointer;
}

.greeting {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  margin: 0;
}

/* Overlay de Persistência (RegistrationOverlay) */
.registration-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.registration-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0,255,136,0.1);
  border-top-color: var(--neon-green);
  border-right-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.loading-message {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

/* Links e Labels */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

.text-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.text-link.highlight {
  color: var(--neon-green);
}

.text-link.highlight:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.card-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.card-footer p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards com Scroll Interno para Mobile */
.scrollable-card {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-green) transparent;
  padding-right: 12px;
}

.scrollable-card::-webkit-scrollbar {
  width: 4px;
}

.scrollable-card::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-card::-webkit-scrollbar-thumb {
  background-color: var(--neon-green);
  border-radius: 4px;
}

.hidden-input {
  display: none;
}

.avatar-ring label.edit-badge {
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.avatar-ring label.edit-badge:hover {
  transform: scale(1.1);
  background-color: rgba(0, 255, 136, 0.15);
}

/* Força de Senha */
.password-strength-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  background-color: var(--error-red);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-bar.weak {
  width: 33%;
  background-color: var(--error-red);
  box-shadow: 0 0 8px var(--error-red);
}

.password-strength-bar.medium {
  width: 66%;
  background-color: var(--neon-yellow);
  box-shadow: 0 0 8px var(--neon-yellow);
}

.password-strength-bar.strong {
  width: 100%;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

/* --- TRANSICAO DOPAMINERGICA REGISTRATION OVERLAY --- */
.transition-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Circulo externo de pulso dopaminergico */
.pulse-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--neon-cyan);
  opacity: 0;
  transform: scale(1);
}
.transition-container.success .pulse-ring {
  animation: pulse-out 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Estado de Sucesso do Spinner (Glow + Check) */
.spinner-ring.success {
  animation: none; /* Para de girar */
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.5);
  transform: scale(1.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icone de Check */
.check-icon {
  position: absolute;
  width: 20px;
  height: 11px;
  border-left: 4px solid var(--neon-cyan);
  border-bottom: 4px solid var(--neon-cyan);
  transform: rotate(-45deg) translate(13px, -25px) scale(0);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: center;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.spinner-ring.success .check-icon {
  transform: rotate(-45deg) translate(14px, -6px) scale(1);
  opacity: 1;
}

/* Mensagens de Sucesso */
.loading-message.success {
  background: none;
  -webkit-text-fill-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  animation: none;
  font-weight: 800;
}
.loading-subtitle {
  font-size: 0.9rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-body);
}
.loading-subtitle.active {
  opacity: 1;
}

/* Fade out do Overlay */
.registration-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-out {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}


/* --- DASHBOARD STYLES --- */
/*
 * Estilo do Módulo: Dashboard (Home)
 * Localização no Monorepo: design/prototypes/dashboard/style.css
 */

/* Custom Scrollbar para o layout móvel */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}

/* Forçar visualização mobile independente da tela */
body {
  background-color: #0c0c10;
  overflow: hidden;
}

.app-container {
  height: 100vh;
  height: 100dvh;
  justify-content: flex-start;
  padding: 0;
  position: relative;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 16px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  z-index: 20;
}

.user-greeting-box {
  display: flex;
  flex-direction: column;
}

.current-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-welcome {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 4px 0 0 0;
  color: var(--text-main);
}

.username {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.icon-svg {
  width: 20px;
  height: 20px;
}

.profile-avatar-trigger {
  text-decoration: none;
}

.avatar-ring-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.avatar-ring-small:hover {
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
  transform: scale(1.05);
}

.avatar-image-small {
  width: 100%;
  height: 100%;
  background-color: #222;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23888" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.avatar-image-small.has-image {
  background-size: cover;
}

/* Filtros rápidos */
.filters-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 16px 20px;
  z-index: 20;
}

.visibility-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 243, 255, 0.1);
}

.competition-select-wrapper {
  position: relative;
}

.neo-select {
  width: 100%;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 10px 16px;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s;
}

.neo-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.competition-select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Área Scrollable */
.scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 80px 20px; /* 80px para não ficar por trás da bottom-bar */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  font-size: 0.7rem;
  font-family: var(--font-body);
  background: rgba(0, 243, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 2px 6px;
  border-radius: 20px;
}

/* Próximos Jogos (Horizontal Scroll) */
.horizontal-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.match-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.match-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.15);
  transform: translateY(-2px);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.live-card {
  border: 1px solid rgba(0, 243, 255, 0.15);
}

.live-pulse {
  color: var(--neon-magenta);
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.6);
  animation: pulse 1.5s ease-in-out infinite;
}

.competition-tag {
  font-size: 0.7rem;
  color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-shield-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 2px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.team-shield-img:hover {
  transform: scale(1.1);
}

.red-glow-img { box-shadow: 0 0 10px rgba(255, 0, 0, 0.4); border-color: rgba(255, 0, 0, 0.2); }
.green-glow-img { box-shadow: 0 0 10px rgba(0, 255, 136, 0.4); border-color: rgba(0, 255, 136, 0.2); }
.white-glow-img { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.15); }
.blue-glow-img { box-shadow: 0 0 10px rgba(0, 0, 255, 0.4); border-color: rgba(0, 0, 255, 0.2); }
.lightblue-glow-img { box-shadow: 0 0 10px rgba(0, 243, 255, 0.4); border-color: rgba(0, 243, 255, 0.2); }
.darkred-glow-img { box-shadow: 0 0 10px rgba(128, 0, 0, 0.4); border-color: rgba(128, 0, 0, 0.2); }

.team-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.match-score-preview {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
  padding: 4px 10px;
  border-radius: 8px;
}

.match-footer-cta {
  text-align: right;
}

.bet-prompt {
  font-size: 0.75rem;
  color: var(--neon-green);
  font-weight: 600;
}

/* Meus Bolões (Vertical) */
.pools-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pool-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pool-card:hover {
  transform: translateY(-2px);
}

/* Urgência do Bolão */
.pool-card.urgent-glow {
  border-color: rgba(255, 234, 0, 0.3);
  animation: pulse-glow-yellow 3s ease-in-out infinite;
}

.pool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pool-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pool-name {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

/* Acessibilidade Daltonismo (Globo / Cadeado com ícone + texto) */
.pool-visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}

.pool-visibility-badge.public {
  background: rgba(0, 243, 255, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.pool-visibility-badge.private {
  background: rgba(255, 0, 127, 0.08);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 127, 0.2);
}

.icon-small {
  width: 12px;
  height: 12px;
}

/* Menu de Ações Rápidas */
.pool-actions-menu {
  position: relative;
}

.pool-menu-trigger {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  padding: 8px 4px;
}

.pool-menu-trigger span {
  width: 4px;
  height: 4px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: background-color 0.2s;
}

.pool-menu-trigger:hover span {
  background-color: var(--neon-cyan);
}

.pool-dropdown-menu {
  position: absolute;
  right: 0;
  top: 30px;
  background: rgba(12, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 170px;
  display: none;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
}

.pool-dropdown-menu.active {
  display: flex;
}

.menu-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:hover {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
}

.menu-item.admin-only {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--neon-yellow);
}

.menu-item.admin-only:hover {
  background: rgba(255, 234, 0, 0.1);
  color: var(--neon-yellow);
}

/* Status e Prazos */
.pool-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.urgency-timer {
  font-weight: 600;
}

.alert-urgency {
  background: rgba(255, 234, 0, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
}

.alert-urgency .urgency-timer {
  color: var(--neon-yellow);
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-icon {
  animation: spin 8s linear infinite;
}

.closed-timer {
  color: var(--error-red);
}

.round-status {
  color: var(--text-muted);
}

/* Stats */
.pool-stats-row {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 10px 14px;
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-neon-green {
  color: var(--neon-green);
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.trend {
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 4px;
}

.trend.up { color: var(--neon-green); }
.trend.down { color: var(--error-red); }
.trend.neutral { color: var(--text-muted); }

/* Progress bar */
.progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

#view-dashboard.view-layer {
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.horizontal-scroll-container .empty-state-box {
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
}

/* Navigation Inferior */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 8px;
  z-index: 30;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px;
}

.nav-item span {
  font-size: 0.65rem;
  font-weight: 500;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-item.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

/* Botão central de Adicionar */
.add-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-brand);
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.add-circle-btn span {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px); /* Alinhamento vertical do caractere + */
}

.add-circle-btn:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
}

/* MultiBet Drawer (Gaveta) */
.multibet-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.multibet-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.multibet-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 24px 20px;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 -15px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,255,136,0.02);
}

.multibet-drawer.active {
  transform: translateY(0);
}

.drawer-handle-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.drawer-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.match-details {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  display: block;
  margin-top: 4px;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.close-drawer-btn:hover {
  color: var(--error-red);
}

/* Placar interativo */
.score-input-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}

.team-input-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-tla {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.neo-score-input {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  transition: all 0.3s;
}

/* Remover flechas de inputs */
.neo-score-input::-webkit-outer-spin-button,
.neo-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.neo-score-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.vs-divider {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Aviso Partida Bônus */
.bonus-match-warning {
  display: flex;
  gap: 10px;
  background: rgba(255, 234, 0, 0.05);
  border: 1px solid rgba(255, 234, 0, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.warning-icon {
  font-size: 1.1rem;
}

.warning-text {
  font-size: 0.75rem;
  color: #eed666;
  margin: 0;
  line-height: 1.4;
}

/* Checkboxes */
.mb-pools-selection h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.mb-pools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mb-pool-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.mb-pool-option input {
  display: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}

.mb-pool-option input:checked + .custom-checkbox {
  border-color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.mb-pool-option input:checked + .custom-checkbox::after {
  content: '✓';
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mb-pool-name {
  font-size: 0.9rem;
  color: var(--text-main);
}

.btn-block {
  width: 100%;
}

/* Modal Overlay */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 340px;
  position: relative;
  border-color: rgba(255, 0, 127, 0.2);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--error-red);
}

.modal-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 0;
}

.rules-list {
  padding-left: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.rules-list li {
  line-height: 1.4;
}

/* Compartilhamento */
.copy-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copy-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-field {
  display: flex;
  gap: 8px;
}

.neo-input-read {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 12px;
}

.btn-copy {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--neon-cyan);
  border-radius: 10px;
  padding: 0 16px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: rgba(0, 243, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Success Overlay (Optimistic Check) */
.success-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  display: flex;
}

.success-checkmark-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.check-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  font-size: 2.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  animation: pulse-glow 1s ease-in-out infinite;
}

.success-text {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Toast Notification */
.toast-box {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(8, 8, 12, 0.95);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 20px;
  z-index: 110;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 10px rgba(0, 243, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast-box.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Empty State */
.empty-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 12px 0;
}

.empty-state-box.hidden {
  display: none;
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.empty-state-box h3 {
  font-family: var(--font-brand);
  font-size: 1rem;
  margin: 0 0 6px 0;
}

.empty-state-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.empty-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-empty-primary {
  flex: 1;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-family: var(--font-brand);
  font-weight: 700;
  cursor: pointer;
}

.btn-empty-secondary {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-family: var(--font-brand);
  font-weight: 700;
  cursor: pointer;
}


/* --- POOL LOBBY STYLES --- */

        :root {
            --bg-pure: #000000;
            --bg-card: rgba(8, 8, 12, 0.85);
            --neon-cyan: #00f3ff;
            --neon-green: #00ff88;
            --neon-yellow: #ffea00;
            --neon-magenta: #ff007f;
            --error-red: #ff2a2a;
            --text-main: #ffffff;
            --text-muted: #888888;
            --glow-cyan: 0 0 5px rgba(0, 243, 255, 0.05);
            --glow-magenta: 0 0 5px rgba(255, 0, 127, 0.05);
            --glow-yellow: 0 0 5px rgba(255, 234, 0, 0.05);
            --glow-green: 0 0 5px rgba(0, 255, 136, 0.05);
            --glow-error: 0 0 5px rgba(255, 42, 42, 0.05);
            
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-md: 12px;
            --spacing-lg: 16px;
            --spacing-xl: 20px;
        }

        /* RESET BÁSICO */
        * { box-sizing: border-box; }

        body {
            background-color: #1a1a1a;
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            height: 100dvh;
            margin: 0;
            overflow: hidden;
        }

        h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

        .app-container {
            width: 100%;
            max-width: 480px;
            height: 100%;
            background-color: var(--bg-pure);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 0 50px rgba(0,0,0,0.8);
        }

        /* HEADER */
        .header {
            padding: var(--spacing-md) var(--spacing-lg);
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(12px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            z-index: 10;
        }
        .header-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; }
        
        .back-btn { 
            background: none; border: none; 
            color: var(--neon-cyan); 
            font-weight: 600; font-size: 1rem; 
            cursor: pointer; padding: 0; 
            display: flex; align-items: center; gap: 4px;
        }
        .share-btn { 
            background: none; border: none; 
            color: var(--neon-cyan); 
            font-weight: 600; font-size: 1rem; 
            cursor: pointer; padding: 0; 
        }

        /* VIEWS */
        .view {
            flex: 1;
            display: none;
            flex-direction: column;
            overflow-y: auto; /* Apenas para telas que precisam rolar (Regras/Ranking) */
            overflow-x: hidden;
            padding-bottom: 80px; /* Altura da bottom nav */
        }
        .view.active { display: flex; animation: fade-in 0.3s ease-out; }

        /* ABA PALPITES: SEM ROLAGEM, TUDO ENCAIXADO */
        #view-palpites {
            overflow: hidden; /* Remove o scroll */
            padding-bottom: 90px; /* Garante espaço para a navbar */
        }

        @keyframes fade-in {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* CARD STATUS INTEGRADo (Mais compacto) */
        .status-card {
            margin: var(--spacing-sm) var(--spacing-lg);
            padding: var(--spacing-sm) var(--spacing-lg);
            background: var(--bg-card);
            border: 1px solid var(--neon-magenta);
            border-radius: 12px;
            box-shadow: var(--glow-magenta);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .status-card h4 { margin: 0 0 2px 0; font-size: 0.9rem; }
        .status-card .badge { color: var(--neon-yellow); font-size: 0.75rem; font-weight: 600; }
        .status-card .rank { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 900; text-align: right; }
        .status-card .delta { color: var(--neon-green); font-size: 0.8rem; font-weight: 600; }

        /* SELETOR DE RODADA (Mais compacto) */
        .rodada-selector {
            text-align: center;
            color: var(--text-muted);
            font-weight: 600;
            margin: 4px 0;
            font-size: 0.9rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
        }
        .round-btn {
            background: rgba(255,255,255,0.1);
            border: none; color: white; width: 28px; height: 28px; border-radius: 50%;
            cursor: pointer; transition: 0.2s; font-weight: bold; font-size: 0.8rem;
            display: flex; justify-content: center; align-items: center;
        }
        .round-btn:hover, .round-btn:active { background: var(--neon-magenta); color: white; box-shadow: var(--glow-magenta); }

        /* SWIPE DECK (Palpites) */
        .deck-container {
            flex: 1; /* Preenche todo o espaço restante dinamicamente */
            position: relative;
            width: 100%;
            overflow: hidden;
            min-height: 0; /* Permite encolher */
        }

        /* Navegação do Deck (Setas laterais) */
        .match-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 243, 255, 0.15);
            border: 1px solid var(--neon-cyan);
            color: var(--neon-cyan);
            width: 32px; height: 32px; /* Levemente menor para não trepar */
            border-radius: 50%;
            cursor: pointer;
            font-size: 1rem;
            z-index: 10;
            display: flex; justify-content: center; align-items: center;
            box-shadow: var(--glow-cyan);
            transition: 0.2s;
        }
        .match-nav-btn:hover { background: var(--neon-cyan); color: black; }
        .match-nav-btn.left { left: 12px; }
        .match-nav-btn.right { right: 12px; }
        .match-nav-btn:disabled { opacity: 0; pointer-events: none; }

        /* MATCH CARD (Redimensionado e responsivo) */
        .match-card {
            width: calc(100% - 110px); /* Mais margem lateral para não trepar nas setas */
            height: auto;
            max-height: 96%; /* Não deixa estourar a altura do deck container */
            background: linear-gradient(180deg, rgba(8,8,12,0.9) 0%, rgba(20,20,25,0.9) 100%);
            border: 1px solid rgba(0, 243, 255, 0.3);
            border-radius: 20px;
            padding: 12px 10px; /* Reduzido o padding interno para sobrar mais espaço para o conteúdo */
            text-align: center;
            box-shadow: none;
            
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(150%, -50%) scale(0.9);
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s;
            opacity: 0;
            pointer-events: none;
            user-select: none;

            /* Flex interno com Safe Centering */
            display: flex;
            flex-direction: column;
            justify-content: flex-start; /* Evita cortar o topo no overflow */
            align-items: center;
            overflow-y: auto; /* Permite rolar se a tela for muito pequena */
        }
        .match-card::-webkit-scrollbar { display: none; } /* Oculta a barra de rolagem visualmente */
        .match-card::before,
        .match-card::after {
            content: '';
            margin: auto; /* Magia do Safe Centering: empurra o conteúdo pro meio se sobrar espaço */
        }
        .match-card.active {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, -50%) scale(1);
        }
        .match-card.prev {
            transform: translate(-250%, -50%) scale(0.9);
        }

        .match-header {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            width: 100%;
        }

        .match-datetime {
            color: var(--neon-cyan);
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 0; /* Controlado pelo header agora */
            text-transform: uppercase;
            letter-spacing: 1px;
            background: rgba(0, 243, 255, 0.1);
            padding: 4px 12px;
            border-radius: 12px;
            display: inline-block;
        }

        .match-weight {
            color: var(--neon-yellow);
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            background: rgba(255, 234, 0, 0.1);
            border: 1px solid rgba(255, 234, 0, 0.3);
            padding: 3px 10px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .team-name { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 900; margin: 4px 0; text-transform: uppercase; }
        .team-shield {
            width: 55px; height: 55px; /* Levemente reduzido para caber os novos botões sem rolar a tela na maioria dos celulares */
            margin: 0 auto; /* Centralizado, margem vertical controlada pelo team-name */
            object-fit: contain;
            /* Fundo, borda e padding removidos para exibir o logo limpo */
        }
        /* Efeitos de brilho removidos a pedido para design mais opaco e flat */
        .shield-sao { filter: none; }
        .shield-cor { filter: none; }

        .score-board { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; /* Reduzido */ }
        .score-input {
            width: 45px; height: 55px; /* Levemente menor para compensar o escudo */
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            color: white; text-align: center;
            font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900;
            outline: none; transition: all 0.3s;
            padding: 0;
            -moz-appearance: textfield; /* Firefox */
        }
        /* Remover as setinhas nativas (spin buttons) que descentralizam o texto */
        .score-input::-webkit-outer-spin-button,
        .score-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .score-input:focus { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); background: rgba(0, 243, 255, 0.05); }
        .score-input.error { border-color: var(--error-red); box-shadow: var(--glow-error); animation: shake 0.4s ease-in-out; }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-6px); }
            75% { transform: translateX(6px); }
        }

        .bonus-section {
            margin-top: 6px; /* Reduzido */
            cursor: pointer;
            transition: 0.3s;
            padding: 6px;
            border-radius: 12px;
        }
        .bonus-star { font-size: 2rem; color: #333; transition: all 0.3s; }
        .bonus-star.active { color: var(--neon-yellow); text-shadow: var(--glow-yellow); animation: pulse-yellow 2s ease-in-out infinite; }
        .bonus-text { font-weight: 600; color: var(--text-muted); margin-top: 2px; font-size: 0.75rem; }
        .bonus-section.active .bonus-text { color: var(--neon-yellow); }

        @keyframes pulse-yellow {
            0%, 100% { text-shadow: 0 0 5px var(--neon-yellow), 0 0 10px rgba(255,234,0,0.5); transform: scale(1); }
            50% { text-shadow: 0 0 20px var(--neon-yellow), 0 0 30px rgba(255,234,0,0.8); transform: scale(1.1); }
        }

        /* ESTADOS ESPECIAIS (Ao Vivo / Finalizado) */
        .match-live {
            background: rgba(255, 42, 42, 0.2);
            color: var(--error-red);
            border: 1px solid rgba(255, 42, 42, 0.3);
        }
        .match-live .live-dot {
            display: inline-block; width: 6px; height: 6px; background: var(--error-red); border-radius: 50%; margin-right: 6px; margin-bottom: 1px; animation: blink 1s infinite;
        }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

        .match-finished {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
        }

        .real-score {
            font-family: 'Outfit', sans-serif; font-size: 0.85rem; color: var(--text-muted); font-weight: 800; margin: 4px 0; letter-spacing: 1px;
        }
        .real-score.live { color: var(--error-red); }
        
        .score-input:disabled {
            background: rgba(0,0,0,0.5);
            color: var(--text-muted);
            border-color: rgba(255,255,255,0.05);
            cursor: not-allowed;
        }

        .points-badge {
            display: inline-flex;
            align-items: center;
            margin-top: 6px;
            padding: 6px 16px;
            border-radius: 20px;
            font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1rem;
            text-transform: uppercase;
        }
        .points-badge.success {
            background: rgba(0, 255, 136, 0.15);
            color: var(--neon-green);
            border: 1px solid var(--neon-green);
            box-shadow: var(--glow-green);
        }
        .points-badge.miss {
            background: rgba(255, 42, 42, 0.1);
            color: var(--error-red);
            border: 1px solid rgba(255, 42, 42, 0.3);
        }

        .action-btn {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--text-main);
            padding: 6px 14px;
            border-radius: 20px;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .action-btn:hover {
            background: rgba(255,255,255,0.1);
            border-color: var(--neon-cyan);
            color: var(--neon-cyan);
        }

        /* MODALS */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
            z-index: 100; display: flex; justify-content: center; align-items: center;
            opacity: 0; pointer-events: none; transition: 0.3s;
        }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        
        .modal-content {
            background: var(--bg-card);
            border: 1px solid rgba(0, 243, 255, 0.3);
            box-shadow: var(--glow-cyan);
            border-radius: 20px; width: 90%; max-width: 400px;
            padding: 24px; position: relative;
            transform: translateY(20px); transition: 0.3s;
            max-height: 80vh; overflow-y: auto;
        }
        .modal-overlay.active .modal-content { transform: translateY(0); }
        
        .modal-close {
            position: absolute; top: 16px; right: 16px;
            background: none; border: none; color: var(--text-muted);
            font-size: 1.5rem; cursor: pointer;
        }
        .modal-title { font-family: 'Outfit', sans-serif; font-size: 1.4rem; color: var(--neon-cyan); margin-top: 0; margin-bottom: 16px; }

        /* Rodapé interno da View Palpites (Dots + Help Text) */
        .palpites-footer {
            flex: 0 0 auto;
            text-align: center;
            padding: 8px 0 0 0;
            z-index: 5;
        }
        
        .progress-dots {
            display: flex; justify-content: center; gap: 8px;
        }
        .dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            transition: 0.3s;
        }
        .dot.active { background: var(--neon-cyan); box-shadow: var(--glow-cyan); transform: scale(1.3); }

        .help-text { color: var(--text-muted); font-size: 0.75rem; margin-top: 6px; margin-bottom: 0; }

        /* BOTTOM NAV */
        .bottom-nav {
            position: absolute;
            bottom: 0; left: 0; width: 100%;
            height: 80px;
            background: rgba(0,0,0,0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255,255,255,0.05);
            display: flex;
            z-index: 20;
            padding-bottom: 10px;
        }
        .nav-item {
            flex: 1;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            color: var(--text-muted);
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }
        .nav-item.active { color: var(--neon-cyan); }
        .nav-item.active::before {
            content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
            width: 40px; height: 3px;
            background: var(--neon-cyan);
            box-shadow: var(--glow-cyan);
            border-radius: 0 0 4px 4px;
        }
        .nav-icon { font-size: 1.4rem; margin-bottom: 4px; }

        /* LISTA RANKING */
        .ranking-list { padding: 0 var(--spacing-lg); }
        .ranking-item { display: flex; align-items: center; gap: 12px; padding: var(--spacing-md) 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .ranking-item:last-child { border-bottom: none; }
        .ranking-pos { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
        
        .ranking-avatar {
            width: 44px; height: 44px; border-radius: 50%;
            object-fit: cover; border: 2px solid rgba(255,255,255,0.1);
            flex-shrink: 0;
            background: rgba(255,255,255,0.05);
        }
        .ranking-avatar.fallback {
            display: flex; justify-content: center; align-items: center;
            font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
            text-transform: uppercase; letter-spacing: 1px;
        }

        .ranking-user { flex: 1; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ranking-stats { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
        .ranking-pts { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--neon-cyan); font-size: 1.1rem; }
        .ranking-delta { font-size: 0.8rem; font-weight: bold; width: 35px; text-align: right; }

        /* REGRAS */
        .rules-container { padding: 0 var(--spacing-lg); }
        .rule-box { background: var(--bg-card); padding: 16px; border-radius: 12px; margin-top: 16px; border: 1px solid rgba(255,255,255,0.05); }

        /* Estética Neon Clubes - Glow respeitando o shape do PNG */
        .shield-fla { filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)); }
        .shield-pal { filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.8)); }
        .shield-sao { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)); }
        .shield-cor { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }

    