/* ==========================================================================
   DESIGN SYSTEM & ESTILOS - BOLÃO COPA DO MUNDO 2026 (BRB SEGUROS)
   ========================================================================== */

/* Importar fonte Raleway (Identidade Visual da BRB Seguros) */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Cores Oficiais BRB Seguros */
  --brb-dark-blue: #003E7E;
  --brb-light-blue: #00AEEF;
  
  /* HSL derivado para gradientes e estados */
  --brb-dark-blue-hsl: 211, 100%, 25%;
  --brb-light-blue-hsl: 196, 100%, 47%;
  
  /* Cores de Fundo e Layout */
  --bg-deep: #060f24;
  --bg-card: rgba(14, 26, 53, 0.8);
  --bg-card-hover: rgba(20, 37, 75, 0.95);
  --border-glass: rgba(0, 174, 239, 0.15);
  --border-glass-focus: rgba(0, 174, 239, 0.4);
  
  /* Cores de Feedback Semântico */
  --color-success: #10b981;
  --color-warning: #f5a623;
  --color-danger: #ef4444;
  --color-gray: #718096;
  --color-text-primary: #ffffff;
  --color-text-secondary: #cbd5e0;
  
  /* Outros */
  --font-family: 'Raleway', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-neon: 0 0 20px rgba(0, 174, 239, 0.2);
  --shadow-neon-hover: 0 0 30px rgba(0, 174, 239, 0.4);
}

/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 62, 126, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 174, 239, 0.1) 0%, transparent 40%);
  color: var(--color-text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout Principal */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Barra de Navegação */
header {
  background: linear-gradient(135deg, var(--brb-dark-blue) 0%, #002246 100%);
  border-bottom: 2px solid var(--brb-light-blue);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Simulação do logotipo BRB Seguros com CSS elegante */
.brb-logo-shape {
  display: flex;
  position: relative;
  width: 38px;
  height: 38px;
}

.brb-arrow-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 38px;
  background-color: var(--brb-light-blue);
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 60% 50%);
}

.brb-arrow-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
  height: 38px;
  background-color: #fff;
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%, 40% 50%);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brb-light-blue);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: rgba(0, 174, 239, 0.15);
  box-shadow: inset 0 0 10px rgba(0, 174, 239, 0.1);
  border-bottom: 2px solid var(--brb-light-blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info-badge {
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.user-info-badge span {
  color: var(--brb-light-blue);
  font-weight: 700;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Área de Conteúdo Principal */
main {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

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

/* Título de Seções */
.section-header {
  margin-bottom: 2rem;
  border-left: 4px solid var(--brb-light-blue);
  padding-left: 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Estilo Glassmorphism para Cards e Contentores */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(0, 174, 239, 0.25);
}

/* Tela de Autenticação */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .brb-logo-shape {
  margin: 0 auto 1rem auto;
  width: 50px;
  height: 50px;
}

.auth-logo .brb-arrow-left { width: 24px; height: 50px; }
.auth-logo .brb-arrow-right { width: 24px; height: 50px; }

.auth-logo h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.auth-logo p {
  color: var(--brb-light-blue);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--brb-light-blue);
  background: rgba(0, 174, 239, 0.05);
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

select.form-input option {
  background-color: #0e1a35;
  color: #fff;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--brb-dark-blue) 0%, var(--brb-light-blue) 100%);
  border: none;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-neon);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-hover);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.auth-toggle a {
  color: var(--brb-light-blue);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.auth-toggle a:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* Filtros da Página de Jogos */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--brb-dark-blue);
  color: #fff;
  border: 1px solid rgba(0, 174, 239, 0.3);
}

.save-all-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.save-status-text {
  font-size: 0.9rem;
  color: var(--color-success);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.save-status-text.show {
  opacity: 1;
}

/* Layout de Chave do Mata-Mata */
.bracket-container {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.bracket-container::-webkit-scrollbar {
  height: 8px;
}
.bracket-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.bracket-container::-webkit-scrollbar-thumb {
  background: rgba(0, 174, 239, 0.2);
  border-radius: 4px;
}
.bracket-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 174, 239, 0.4);
}

.bracket-column {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bracket-stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brb-light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bracket-stage-title span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Lista de Cards de Partida */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 1rem;
  }
  .match-card {
    padding: 1rem;
  }
  .matches-grid {
    grid-template-columns: 1fr;
  }
}

/* Card de Partida (Premium Layout) */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 239, 0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.1);
}

/* Indicação de Bloqueado */
.match-card.locked {
  border-color: rgba(113, 128, 150, 0.2);
  background: rgba(10, 20, 42, 0.6);
}

.match-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.match-stage-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.match-time-badge {
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-time-badge.soon {
  color: var(--color-warning);
}

.match-teams-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.team-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-row.home {
  justify-content: flex-end;
  text-align: right;
}

.team-row.away {
  justify-content: flex-start;
  text-align: left;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-flag {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

/* Palpite Controles */
.guess-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.score-input {
  width: 48px;
  height: 44px;
  background: rgba(0, 62, 126, 0.15);
  border: 2px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  transition: var(--transition-smooth);
}

.score-input:focus {
  outline: none;
  border-color: var(--brb-light-blue);
  background: rgba(0, 174, 239, 0.1);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

.score-input:disabled {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
  color: #a0aec0;
  cursor: not-allowed;
}

.score-separator {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brb-light-blue);
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-input[type=number] {
  -moz-appearance: textfield;
}

/* Resultados Oficiais */
.official-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.official-result-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--brb-light-blue);
  font-weight: 700;
  margin-bottom: 2px;
}

.official-result-score {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

/* Badges de Feedback de Pontos */
.points-feedback-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.points-feedback-badge.perfect {
  background: var(--color-success);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.points-feedback-badge.outcome {
  background: var(--color-warning);
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.points-feedback-badge.zero {
  background: var(--color-gray);
  color: #fff;
}

.match-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  font-size: 0.8rem;
}

.prediction-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prediction-status.saved {
  color: var(--color-success);
}

.prediction-status.pending {
  color: var(--color-warning);
}

.prediction-status.locked {
  color: var(--color-gray);
}

/* Estilo para Tabela de Ranking (Classificação) */
.ranking-table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-glass);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ranking-table th {
  background: rgba(0, 62, 126, 0.4);
  color: #fff;
  font-weight: 700;
  padding: 1.2rem 1rem;
  border-bottom: 2px solid var(--border-glass);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.ranking-table tbody tr {
  transition: var(--transition-smooth);
}

.ranking-table tbody tr:hover {
  background: rgba(0, 174, 239, 0.04);
}

/* Destacar linha do próprio usuário logado */
.ranking-table tr.current-user {
  background: rgba(0, 174, 239, 0.1) !important;
  border-left: 4px solid var(--brb-light-blue);
}

.ranking-table tr.current-user td {
  font-weight: 700;
}

.rank-number {
  font-weight: 800;
  font-size: 1.1rem;
  width: 60px;
  text-align: center;
}

/* Posições de Destaque */
.rank-1 .rank-number { color: #ffd700; font-size: 1.3rem; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.rank-2 .rank-number { color: #c0c0c0; font-size: 1.2rem; }
.rank-3 .rank-number { color: #cd7f32; font-size: 1.15rem; }

.rank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brb-dark-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--brb-light-blue);
}

.player-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-name {
  font-weight: 600;
}

.player-dept {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

.score-cell {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brb-light-blue);
}

/* Página de Regras */
.rules-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
}

.rule-box h3 {
  color: var(--brb-light-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rule-points-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.points-badge {
  background: var(--brb-dark-blue);
  color: #fff;
  border: 1px solid var(--brb-light-blue);
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.2);
}

.points-badge.perfect {
  background: var(--color-success);
  border-color: #34d399;
}

.points-badge.outcome {
  background: var(--color-warning);
  border-color: #fbbf24;
  color: #000;
}

.points-desc {
  flex: 1;
}

.points-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.points-example {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Painel Administrativo */
.admin-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-sidebar-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-secondary);
  padding: 0.9rem 1.2rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-sidebar-btn.active {
  background: var(--brb-dark-blue);
  color: #fff;
  border-color: var(--brb-light-blue);
  box-shadow: var(--shadow-neon);
}

.admin-content-section {
  display: none;
}

.admin-content-section.active {
  display: block;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 20px;
}

.settings-info {
  flex: 1;
}

.settings-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.settings-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Formulário e Controles Administrativos */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--brb-light-blue);
  text-transform: uppercase;
}

.admin-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-score-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-score-input {
  width: 38px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.admin-score-input:focus {
  outline: none;
  border-color: var(--brb-light-blue);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal de Configuração do Supabase (Fallback) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 15, 36, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brb-light-blue);
}

.modal-header p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

.modal-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Rodapé (Footer) */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray);
  font-size: 0.8rem;
  margin-top: auto;
}

footer a {
  color: var(--brb-light-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Alertas Globais (Toast) */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f2142;
  border-left: 4px solid var(--brb-light-blue);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  max-width: 450px;
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-color: var(--color-success); }
.toast.error { border-color: var(--color-danger); }
.toast.info { border-color: var(--brb-light-blue); }
.toast.warning { border-color: var(--color-warning); }

/* Animações e Efeitos Extras */
.neon-glow {
  text-shadow: 0 0 10px rgba(0, 174, 239, 0.6);
}

.pulse {
  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.flag-placeholder {
  font-weight: 800;
  color: var(--brb-light-blue);
  font-size: 0.8rem;
  border: 1px dashed var(--border-glass);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 174, 239, 0.05);
}
