/* ===================================================================
   REDESIGN Meu Volante PRO 3.1 — Mobile-First FinTech & Telemetry Design System
   Inspirado no benchmark de 50 apps (Jackpocket, TuLotero, Nubank, CAIXA)
   Mantém 100% das funcionalidades com ergonomia nativa para o polegar.
   =================================================================== */

:root {
  --header-height: 56px;
  --bottom-bar-height: 66px;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-purple: #9333ea;
  --accent-amber: #f59e0b;
  --surface-dark: #020617;
  --card-dark: #0f172a;
  --border-dark: rgba(51, 65, 85, 0.75);
}

/* ========== ESTRUTURA GLOBAL MOBILE-FIRST ========== */
html.redesign,
html.redesign body {
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

html.redesign body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  background-color: #020617;
}

/* ========== HEADER COMPACTO UNIFICADO (1 LINHA SEM ESTOURO HORIZONTAL) ========== */
html.redesign header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  height: auto !important;
  max-height: none !important;
  padding: env(safe-area-inset-top, 0px) 0 0 0 !important;
  background: rgba(2, 6, 23, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden !important;
}

/* Esconde as 3 linhas antigas do header original quando a barra mobile-first está ativa */
html.redesign header > div:not(#nasa-unified-topbar) {
  display: none !important;
}

#nasa-unified-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.5rem 0.65rem;
  min-height: 54px;
}

/* Oculta qualquer navegação legada na topbar unificada (substituída pela sidebar desktop e bottom bar mobile) */
.nasa-desktop-nav,
nav.nasa-desktop-nav {
  display: none !important;
}

/* Logo compacto à esquerda */
.nasa-brand-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
  color: #f8fafc;
  cursor: pointer;
  min-height: 36px !important;
  flex-shrink: 0;
}

.nasa-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.28));
  border: 1px solid rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.nasa-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.05;
}

.nasa-brand-title {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nasa-brand-sub {
  font-size: 0.56rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Em celulares (< 430px), mostra o ícone do foguete para deixar espaço folgado ao seletor Mega/Lotofácil e botões PRO/Perfil */
@media (max-width: 430px) {
  .nasa-brand-text {
    display: none;
  }
}

/* Pill Switcher Global: Mega | Lotofácil | Mais ▾ */
.nasa-modality-pill {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 1;
  min-width: 0;
}

.nasa-mod-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.54rem !important;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 30px !important;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.lotolab-outras-menu {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 240px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lotolab-outras-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lotolab-outras-item:hover {
  background: #1e293b;
}

.lotolab-outras-item.is-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.lotolab-outras-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.lotolab-outras-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.lotolab-outras-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
}

.nasa-mod-btn.active-mega {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #020617;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.nasa-mod-btn.active-loto {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}
.nasa-mod-btn.active-quina {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}
.nasa-mod-btn.active-lotomania {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}
.nasa-mod-btn.active-diadesorte {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #020617;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

/* Ações rápidas à direita no Header */
.nasa-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nasa-vip-chip {
  border: 1px solid rgba(245, 158, 11, 0.65);
  background: rgba(120, 53, 15, 0.45);
  color: #fcd34d;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0.32rem 0.52rem !important;
  min-height: 34px !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.nasa-vip-chip.is-pro {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(6, 78, 59, 0.5);
  color: #6ee7b7;
}

/* Chip do Modo de Experiência na Topbar */
.nasa-modo-chip {
  border: 1px solid rgba(6, 182, 212, 0.55);
  background: rgba(8, 51, 68, 0.65);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem !important;
  min-height: 34px !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nasa-modo-chip:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.nasa-modo-chip[data-modo="rapido"] {
  border-color: rgba(234, 179, 8, 0.6);
  background: rgba(113, 63, 18, 0.5);
  color: #facc15;
}
.nasa-modo-chip[data-modo="estrategista"] {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(6, 78, 59, 0.5);
  color: #34d399;
}
.nasa-modo-chip[data-modo="cientifico"] {
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(8, 51, 68, 0.5);
  color: #38bdf8;
}

/* Seletor Segmentado de Modo de Experiência no Hero Card da Home */
.nasa-hero-modo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(30, 41, 59, 0.9);
  padding: 0.25rem;
  border-radius: 14px;
  margin: 0.65rem 0 0.5rem 0;
  width: 100%;
}

.nasa-hero-modo-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.25rem !important;
  min-height: 34px !important;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nasa-hero-modo-pill:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.nasa-hero-modo-pill.active-modo-rapido {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.nasa-hero-modo-pill.active-modo-estrategista {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.nasa-hero-modo-pill.active-modo-cientifico {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 116, 144, 0.15));
  border-color: rgba(6, 182, 212, 0.6);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

/* Regras de Adaptação de Interface por Modo de Experiência */
html[data-modo-perfil="rapido"] #home-card-palpite-rapido-box {
  display: block !important;
}
html:not([data-modo-perfil="rapido"]) #home-card-palpite-rapido-box {
  display: none !important;
}
html[data-modo-perfil="rapido"] #home-secao-auditoria-caixa {
  display: none !important;
}
html[data-modo-perfil="rapido"] .nasa-secondary-cta-row {
  display: none !important;
}

.nasa-drawer-trigger {
  width: 34px;
  height: 34px;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

/* Esconde o chip duplicado injetado por creditos-gratis.js dentro da topbar e o banner antigo dentro do gerador */
#nasa-unified-topbar #chip-creditos-gratis,
html.redesign #banner-cta-pro-volante {
  display: none !important;
}

/* ========== CONTEÚDO PRINCIPAL (CONTAINER MOBILE CONFORTÁVEL) ========== */
html.redesign main {
  flex: 1;
  width: 100%;
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 0.65rem 0.7rem 1.5rem 0.7rem !important;
}

html.redesign main > section {
  display: none !important;
}

html.redesign main > section.active {
  display: block !important;
  animation: nasaViewFadeIn 0.2s ease-out;
}

/* Mantém espaçamento vertical limpo entre cards quando uma section está ativa */
html.redesign main > section.active > * + * {
  margin-top: 0.85rem !important;
}

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

/* ========== SEGMENTED CONTROLS (SUB-ABAS INTERNAS EM FLUXO NORMAL — ZERO SOBREPOSIÇÃO) ========== */
.nasa-segmented-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 0.85rem !important;
  position: relative !important;
  top: auto !important;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nasa-seg-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.69rem;
  font-weight: 800;
  padding: 0.48rem 0.25rem !important;
  min-height: 36px !important;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nasa-seg-btn.active {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #020617;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28);
}

html.lotofacil-mode .nasa-seg-btn.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

/* ========== BOTTOM TAB BAR DE 5 ABAS (THUMB ZONE) ========== */
#bottom-tab-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(9, 13, 22, 0.96) !important;
  border-top: 1px solid rgba(51, 65, 85, 0.85) !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 2px !important;
  padding: 0.32rem 0.35rem calc(0.32rem + env(safe-area-inset-bottom, 0px)) 0.35rem !important;
  z-index: 45 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.55) !important;
}

.bottom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.3rem 0.1rem !important;
  min-height: 46px !important;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
}

.bottom-tab-btn:active {
  transform: scale(0.95);
}

.bottom-tab-btn .tab-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.bottom-tab-btn .tab-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.bottom-tab-btn.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

html.lotofacil-mode .bottom-tab-btn.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
}

.bottom-tab-btn.active .tab-icon {
  transform: translateY(-1px) scale(1.06);
}

.bottom-tab-btn.active .tab-label {
  font-weight: 900;
}

/* Indicador luminoso superior na aba ativa */
.bottom-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

html.lotofacil-mode .bottom-tab-btn.active::before {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

/* ========== HOME DASHBOARD MOBILE-FIRST (#view-inicio-new) ========== */
#view-inicio-new {
  padding: 0.15rem 0 0.5rem 0;
}

.nasa-home-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Card de Jackpot + Próximo Sorteio em Destaque */
.nasa-jackpot-hero {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 60%),
              linear-gradient(145deg, #0f172a 0%, #090d16 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 22px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
}

html.lotofacil-mode .nasa-jackpot-hero {
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent 60%),
              linear-gradient(145deg, #0f172a 0%, #090d16 100%);
  border-color: rgba(168, 85, 247, 0.45);
}

.nasa-jackpot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.nasa-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

html.lotofacil-mode .nasa-live-pill {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.4);
}

.nasa-countdown-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.nasa-jackpot-MainRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.nasa-jackpot-mini-card {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 16px;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.nasa-jackpot-mini-card.active-mod {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.nasa-jackpot-mini-card.active-mod-loto {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3);
}

.nasa-mini-label {
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nasa-mini-prize {
  font-size: 0.98rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.nasa-mini-sub {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botões principais na Home */
.nasa-primary-cta {
  width: 100%;
  min-height: 50px !important;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
  color: #020617;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 8px 22px -4px rgba(16, 185, 129, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nasa-primary-cta:active {
  transform: scale(0.98);
}

.nasa-secondary-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.nasa-sec-btn {
  min-height: 42px !important;
  padding: 0.45rem 0.55rem !important;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  font-size: 0.73rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nasa-sec-btn:active {
  transform: scale(0.97);
}

/* Grid 2x2 de Ferramentas Rápidas na Home */
.nasa-quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.nasa-tool-tile {
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 18px;
  padding: 0.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nasa-tool-tile:active {
  transform: scale(0.97);
  border-color: #38bdf8;
}

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

.nasa-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nasa-tool-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: #f8fafc;
}

.nasa-tool-desc {
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* ========== ERGONOMIA DO VOLANTE MOBILE (BOLAS GRANDES 44PX+) ========== */
@media (max-width: 640px) {
  /* O volante da Mega tem sempre 10 colunas, como o de papel, com ou sem a classe. */
  #volante-grid.grid-cols-10:not(.classic-10x6) {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 0.22rem !important;
  }

  #volante-grid.grid-cols-10.classic-10x6 {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 0.22rem !important;
  }

  #volante-grid.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    max-width: 100% !important;
  }

  #volante-grid.grid-cols-5 .volante-btn {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    border-radius: 13px !important;
    padding: 0 !important;
  }

  #volante-grid.grid-cols-10 .volante-btn {
    min-height: 40px !important;
    height: 40px !important;
    font-size: 0.7rem !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }

  /* Grade térmica do Mapa de Calor em 6 colunas confortáveis no celular */
  #grid-mapa-calor {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
  }
}

/* Bolas do jogo ativo no topo do Gerador — maiores e clicáveis para fixar */
#display-meu-jogo {
  padding: 0.75rem !important;
  gap: 0.45rem !important;
  min-height: 58px !important;
}

#display-meu-jogo > div:not(.w-full),
#display-meu-jogo > button {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
}

/* Seletores de quantidade de dezenas (ex: 6 a 20 nºs) em carrossel horizontal fluido sem scrollbar */
#container-seletores-qtd {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 0.4rem !important;
  padding-bottom: 0.15rem !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#container-seletores-qtd::-webkit-scrollbar {
  display: none !important;
}

#container-seletores-qtd button {
  flex-shrink: 0 !important;
  min-height: 36px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.75rem !important;
  border-radius: 10px !important;
}

/* ========== RODAPÉ DISCRETO APENAS NA ABA INÍCIO ========== */
html.redesign body:not([data-active-tab="home"]) footer {
  display: none !important;
}

html.redesign footer {
  max-width: 580px;
  margin: 0.5rem auto 0 auto;
  padding: 0.75rem 0.75rem 1.5rem 0.75rem !important;
}

/* ========== DRAWER DE PERFIL, SOM, TEMA, CLOUD E LGPD ========== */
#nasa-profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

#nasa-profile-drawer-backdrop.open {
  display: flex;
  animation: nasaViewFadeIn 0.18s ease-out;
}

.nasa-profile-sheet {
  width: 100%;
  max-width: 500px;
  background: #0f172a;
  border-top: 1px solid #334155;
  border-radius: 24px 24px 0 0;
  padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65);
  max-height: 85dvh;
  overflow-y: auto;
}

.nasa-sheet-handle {
  width: 42px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  margin: 0 auto 1rem auto;
}

/* ========== SCIENCE GATE - Teaser lock (blur + cadeado) para testes PRO ========== */
.science-lock-blurred > *:not(.science-lock-overlay) {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.science-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.58);
  border-radius: inherit;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease;
  text-align: center;
  padding: 0.5rem;
}

.science-lock-overlay:hover {
  background: rgba(15, 23, 42, 0.75);
}

.science-lock-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.science-lock-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgb(245, 158, 11);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.science-lock-overlay-panel {
  gap: 0.35rem;
}

.science-lock-overlay-panel .science-lock-label {
  font-size: 0.8rem;
}

.science-lock-sublabel {
  font-size: 0.7rem;
  color: rgb(203, 213, 225);
  max-width: 240px;
  line-height: 1.3;
}

/* ========== SUPORTE AO TEMA CLARO (APOLLO WHITE) ========== */
html:not(.dark) #nasa-unified-topbar,
html:not(.dark) #bottom-tab-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #cbd5e1 !important;
}

html:not(.dark) .nasa-brand-title,
html:not(.dark) .nasa-mini-prize,
html:not(.dark) .nasa-tool-title {
  color: #0f172a !important;
}

html:not(.dark) .nasa-modality-pill,
html:not(.dark) .nasa-segmented-bar,
html:not(.dark) .nasa-tool-tile,
html:not(.dark) .nasa-jackpot-mini-card,
html:not(.dark) .nasa-drawer-trigger {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) .nasa-jackpot-hero {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
}

html:not(.dark) .nasa-hero-modo-bar {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

html:not(.dark) .nasa-hero-modo-pill {
  color: #64748b !important;
}

html:not(.dark) .nasa-hero-modo-pill:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

html:not(.dark) .nasa-hero-modo-pill.active-modo-rapido {
  background: #ffffff !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15) !important;
}

html:not(.dark) .nasa-hero-modo-pill.active-modo-estrategista {
  background: #ffffff !important;
  border-color: #86efac !important;
  color: #047857 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15) !important;
}

html:not(.dark) .nasa-hero-modo-pill.active-modo-cientifico {
  background: #ffffff !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.15) !important;
}

html:not(.dark) .nasa-sec-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

html:not(.dark) .nasa-sec-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

html:not(.dark) .nasa-primary-cta {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0891b2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px -3px rgba(5, 150, 105, 0.4) !important;
}

html:not(.dark) .nasa-primary-cta * {
  color: #ffffff !important;
}

/* ========== TEMA CLARO PREMIUM (DESIGN SYSTEM FINTECH / APPLE CLEAN) ========== */
html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image: none !important;
}

/* Garante remoção absoluta de qualquer quadriculado milimetrado no modo claro */
html:not(.dark) .telemetry-grid,
html:not(.dark) [class*="telemetry-grid"] {
  background-image: none !important;
  background-size: 0 0 !important;
}

/* Card Palpite de Ouro do Dia (Modo Rápido) */
html:not(.dark) #home-card-palpite-rapido-box {
  background: #ffffff !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) #home-card-palpite-rapido-box h3 {
  color: #0f172a !important;
}

html:not(.dark) #home-card-palpite-rapido-box span.font-mono {
  color: #b45309 !important;
}

html:not(.dark) #home-rapido-score-badge {
  background-color: #fef3c7 !important;
  border-color: #fcd34d !important;
  color: #92400e !important;
}

html:not(.dark) #home-card-palpite-rapido-box button:not([class*="from-"]) {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Cards e Seções Gerais da Home no Tema Claro */
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/95,
html:not(.dark) .bg-slate-950 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-300,
html:not(.dark) .text-slate-500 {
  color: #64748b !important;
}

/* Preserva cores brancas exclusivamente em botões coloridos / primários */
html:not(.dark) .nasa-primary-cta *,
html:not(.dark) .btn-rocket-launch *,
html:not(.dark) button[class*="from-emerald"] *,
html:not(.dark) button[class*="from-cyan"] *,
html:not(.dark) .bg-emerald-600 *,
html:not(.dark) .bg-purple-600 * {
  color: #ffffff !important;
}

/* Os 4 Cards dos Módulos Principais (Fechamentos, Quentes, Carteira, Bolão) */
html:not(.dark) #home-cockpit-container > div.grid button,
html:not(.dark) #home-cockpit-container > div.grid > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Card Minhas Apostas Ativas */
html:not(.dark) #home-cockpit-container > div:has(#home-resumo-apostas-ativas),
html:not(.dark) #home-lista-ultimos-sorteios-avaliados > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Linhas dos 10 Sorteios Oficiais */
html:not(.dark) #home-lista-ultimos-sorteios-avaliados > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ========== CARTEIRA DE APOSTAS NO TEMA CLARO (FINTECH CLEAN) ========== */
html:not(.dark) #view-carteira {
  background-color: #f8fafc !important;
}

/* Card Principal da Banca / Estatísticas */
html:not(.dark) #view-carteira > div > div:first-child,
html:not(.dark) #carteira-subview-bilhetes > div:first-child {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) #carteira-subview-bilhetes .grid > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Concierge WhatsApp Card */
html:not(.dark) #carteira-subview-bilhetes > div:nth-child(2) {
  background: #ffffff !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}

/* Barra de Filtros e Busca da Carteira */
html:not(.dark) #carteira-subview-bilhetes > div:nth-child(3),
html:not(.dark) #carteira-subview-bilhetes input {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html:not(.dark) #carteira-subview-bilhetes .bg-slate-950 button {
  color: #475569 !important;
}

html:not(.dark) #carteira-subview-bilhetes .bg-slate-950 button.bg-slate-800 {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* ========== CARTEIRA DE APOSTAS INTELIGENTE: SEMÂNTICA MULTI-TEMA ========== */
.card-concurso-grupo {
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.header-concurso-grupo {
  background: linear-gradient(to right, #0f172a, #0b1324);
  border-bottom: 1px dashed rgba(51, 65, 85, 0.8);
  color: #f8fafc;
}
.header-concurso-grupo h4 {
  color: #ffffff;
}
.data-pill-concurso {
  background: #0f172a;
  color: #67e8f9;
  border: 1px solid #1e293b;
}
.text-concurso-sub {
  color: #94a3b8;
}
.text-concurso-custo {
  color: #e2e8f0;
}
.status-badge-apurado {
  background: rgba(6, 78, 59, 0.4);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-badge-aguardando {
  background: #0f172a;
  color: #94a3b8;
  border: 1px solid #1e293b;
}
.status-badge-premiado {
  background: rgba(180, 83, 9, 0.3);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.btn-conferir-anterior {
  background: rgba(12, 74, 110, 0.4);
  color: #67e8f9;
  border: 1px solid rgba(14, 165, 233, 0.4);
}
.btn-conferir-anterior:hover {
  background: rgba(12, 74, 110, 0.7);
}
.btn-toggle-grupo {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.btn-toggle-grupo:hover {
  background: #334155;
  color: #ffffff;
}
.sorteio-oficial-faixa {
  background: rgba(6, 78, 59, 0.25);
  border-color: rgba(5, 150, 105, 0.3);
}
.sorteio-oficial-rotulo {
  color: #34d399;
}
.sorteio-bola-dezena {
  background: #10b981;
  color: #020617;
  border-color: #ffffff;
}
.corpo-bilhetes-grupo {
  background: rgba(2, 6, 23, 0.6);
  border-color: #0f172a;
}
.linha-bilhete-item {
  background: transparent;
  border: 1px solid transparent;
}
.linha-bilhete-item:hover {
  background: rgba(15, 23, 42, 0.6);
}
.linha-bilhete-item.linha-premiada {
  background: rgba(6, 78, 59, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}
.linha-num-ordem {
  color: #64748b;
}
.sorteio-bola-padrao {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(51, 65, 85, 0.8);
}
.sorteio-bola-acerto {
  background: #10b981;
  color: #020617;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
}
.linha-acertou {
  color: #34d399;
  font-weight: 800;
}
.linha-sem-acerto {
  color: #64748b;
}
.btn-remover-bilhete {
  color: #64748b;
}
.btn-remover-bilhete:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}
.rodape-acoes-grupo {
  background: rgba(15, 23, 42, 0.4);
  border-color: #0f172a;
  color: #94a3b8;
}
.btn-acao-grupo-whats { color: #34d399; }
.btn-acao-grupo-print { color: #f59e0b; }
.btn-acao-grupo-mudar { color: #38bdf8; }
.btn-acao-grupo-excluir { color: #64748b; }
.btn-acao-grupo-excluir:hover { color: #f43f5e; }
.divisor-acoes-ponto { color: #334155; }
.card-bilhete-individual {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e2e8f0;
}

/* CARTEIRA NO TEMA CLARO (FINTECH CLEAN & HIGH CONTRAST) */
html:not(.dark) .card-concurso-grupo {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) .header-concurso-grupo {
  background: #f8fafc !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  color: #0f172a !important;
}
html:not(.dark) .header-concurso-grupo h4 {
  color: #0f172a !important;
}
html:not(.dark) .data-pill-concurso {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  font-weight: 700 !important;
}
html:not(.dark) .text-concurso-sub {
  color: #64748b !important;
}
html:not(.dark) .text-concurso-custo {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html:not(.dark) .status-badge-apurado {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 800 !important;
}
html:not(.dark) .status-badge-aguardando {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}
html:not(.dark) .status-badge-premiado {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
  font-weight: 900 !important;
}
html:not(.dark) .btn-conferir-anterior {
  background: #f0fdf4 !important;
  color: #047857 !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 700 !important;
}
html:not(.dark) .btn-conferir-anterior:hover {
  background: #dcfce7 !important;
}
html:not(.dark) .btn-toggle-grupo {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
html:not(.dark) .btn-toggle-grupo:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
html:not(.dark) .sorteio-oficial-faixa {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
html:not(.dark) .sorteio-oficial-rotulo {
  color: #166534 !important;
}
html:not(.dark) .sorteio-bola-dezena {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3) !important;
}
html:not(.dark) .corpo-bilhetes-grupo {
  background: #ffffff !important;
  border-color: #f1f5f9 !important;
}
html:not(.dark) .linha-bilhete-item {
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
}
html:not(.dark) .linha-bilhete-item:hover {
  background: #f1f5f9 !important;
}
html:not(.dark) .linha-bilhete-item.linha-premiada {
  background: #fef9c3 !important;
  border-color: #fef08a !important;
}
html:not(.dark) .linha-num-ordem {
  color: #64748b !important;
}
html:not(.dark) .sorteio-bola-padrao {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  font-weight: 700 !important;
}
html:not(.dark) .sorteio-bola-acerto {
  background: #059669 !important;
  color: #ffffff !important;
  border: 1px solid #047857 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4) !important;
  font-weight: 900 !important;
}
html:not(.dark) .linha-acertou {
  color: #047857 !important;
  font-weight: 800 !important;
}
html:not(.dark) .linha-sem-acerto {
  color: #64748b !important;
}
html:not(.dark) .btn-remover-bilhete {
  color: #94a3b8 !important;
}
html:not(.dark) .btn-remover-bilhete:hover {
  color: #e11d48 !important;
  background: #ffe4e6 !important;
}
html:not(.dark) .rodape-acoes-grupo {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
html:not(.dark) .btn-acao-grupo-whats { color: #047857 !important; }
html:not(.dark) .btn-acao-grupo-print { color: #b45309 !important; }
html:not(.dark) .btn-acao-grupo-mudar { color: #0369a1 !important; }
html:not(.dark) .btn-acao-grupo-excluir { color: #94a3b8 !important; }
html:not(.dark) .btn-acao-grupo-excluir:hover { color: #e11d48 !important; }
html:not(.dark) .divisor-acoes-ponto { color: #cbd5e1 !important; }
html:not(.dark) .card-bilhete-individual {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* DRAWER DE PERFIL NO TEMA CLARO */
html:not(.dark) .nasa-profile-sheet,
html:not(.dark) #nasa-profile-drawer-backdrop > div {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-top: 1px solid #cbd5e1 !important;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18) !important;
}

html:not(.dark) .nasa-sheet-handle {
  background-color: #94a3b8 !important;
}

html:not(.dark) .nasa-profile-sheet .text-white {
  color: #0f172a !important;
}

html:not(.dark) .nasa-profile-sheet .text-slate-400,
html:not(.dark) .nasa-profile-sheet .text-slate-300 {
  color: #475569 !important;
}

html:not(.dark) .nasa-profile-sheet .border-slate-800,
html:not(.dark) .nasa-profile-sheet .border-slate-700 {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .nasa-profile-sheet .bg-slate-950,
html:not(.dark) .nasa-profile-sheet .bg-slate-900 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html:not(.dark) .nasa-profile-sheet button:not([class*="from-"]):not([class*="bg-amber"]):not([class*="bg-cyan"]):not(#drawer-btn-auth):not(.nasa-primary-cta) {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html:not(.dark) .nasa-profile-sheet #drawer-btn-auth {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html:not(.dark) .nasa-profile-sheet #drawer-admin-row button {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border: 1px solid #f59e0b !important;
  color: #78350f !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

html:not(.dark) .nasa-profile-sheet #drawer-admin-row button span {
  color: #78350f !important;
}

html:not(.dark) .nasa-profile-sheet button[onclick*="abrirModalFeedbackTestador"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1.5px solid #f59e0b !important;
  color: #78350f !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.16) !important;
}
html:not(.dark) .nasa-profile-sheet button[onclick*="abrirModalFeedbackTestador"] .text-white {
  color: #78350f !important;
}
html:not(.dark) .nasa-profile-sheet button[onclick*="abrirModalFeedbackTestador"] .text-amber-400,
html:not(.dark) .nasa-profile-sheet button[onclick*="abrirModalFeedbackTestador"] .text-amber-400\/90 {
  color: #b45309 !important;
}
html:not(.dark) .nasa-mod-btn.active-mega {
  background: #059669 !important;
  color: #ffffff !important;
}
html:not(.dark) .nasa-seg-btn.active {
  background: linear-gradient(135deg, #059669, #0284c7) !important;
  color: #ffffff !important;
}
html:not(.dark) button[id^="btn-qtd-jogos-"].bg-emerald-600 {
  background-color: #059669 !important;
  color: #ffffff !important;
}
html:not(.dark) #banner-convite-feedback {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16) !important;
}
html:not(.dark) #banner-convite-feedback button.bg-cyan-500 {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* ========== DESKTOP / TABLET GRANDE (ACIMA DE 1024PX - CENTRO DE COMANDO) ========== */
:root {
  --sidebar-width: 290px;
}

/* Botão de Tema no Header Mobile */
.nasa-theme-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nasa-theme-chip:hover {
  border-color: #f59e0b;
  transform: scale(1.05);
}
html:not(.dark) .nasa-theme-chip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #d97706;
}

/* =========================================================================
   BARRA LATERAL DESKTOP (COCKPIT - REDIMENSIONÁVEL & SEM TRUNCAMENTO)
   ========================================================================= */
.nasa-desktop-sidebar,
#nasa-desktop-sidebar {
  display: none !important;
}

@media (min-width: 1024px) {
  .nasa-desktop-sidebar,
  #nasa-desktop-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width) !important;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(51, 65, 85, 0.8);
    padding: 1.15rem 0.95rem;
    z-index: 50;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Oculta o header mobile e a barra de polegar no desktop */
  html.redesign header,
  #nasa-unified-topbar,
  #bottom-tab-bar {
    display: none !important;
  }

  /* Expande o conteúdo para o resto da tela widescreen */
  html.redesign main {
    margin-left: var(--sidebar-width) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    width: calc(100vw - var(--sidebar-width)) !important;
    padding: 1.5rem 2.25rem 4rem 2.25rem !important;
    min-height: 100vh;
    transition: margin-left 0.18s cubic-bezier(0.4, 0, 0.2, 1), width 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html.redesign footer {
    margin-left: var(--sidebar-width) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    padding: 1.5rem 2.25rem !important;
    transition: margin-left 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .lg\:sticky {
    top: 1.25rem !important;
  }

  #nasa-seg-gerar {
    display: none !important;
  }

  .nasa-quick-tools-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.85rem !important;
  }
}

/* Alça para arrastar e redimensionar no mouse */
.sidebar-resizer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 60;
  background: transparent;
  transition: background 0.15s ease;
}
.sidebar-resizer:hover,
.sidebar-resizer.resizing {
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981;
}

/* Barra de Controle de Tamanho (◀ | P | M | G) */
.sidebar-size-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.95rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
}
.sidebar-size-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.sidebar-size-pills {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sidebar-size-btn {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-size-btn:hover {
  background: rgba(51, 65, 85, 0.6);
  color: #ffffff;
}
.sidebar-size-btn.active {
  background: #10b981;
  color: #020617;
  font-weight: 900;
}

/* Elementos Internos da Sidebar */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-brand-box:hover {
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(16, 185, 129, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar-brand-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sidebar-brand-sub {
  font-size: 0.62rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}
.sidebar-version-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.sidebar-mod-selector {
  margin-bottom: 1.15rem;
}
.sidebar-mod-pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
}
.sidebar-mod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.4rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.sidebar-mod-btn.active-mega {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #020617;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.sidebar-mod-btn.active-loto {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}
.sidebar-mod-btn.active-quina {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}
.sidebar-mod-btn.active-lotomania {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}
.sidebar-mod-btn.active-diadesorte {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #020617;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
}

.sidebar-outras-box {
  margin-top: 6px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-outras-trigger {
  list-style: none;
  cursor: pointer;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.sidebar-outras-trigger::-webkit-details-marker { display: none; }
.sidebar-outras-trigger:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.5);
}
.sidebar-outras-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.sidebar-outras-box[open] .sidebar-outras-caret {
  transform: rotate(180deg);
}
.sidebar-outras-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 6px 6px;
}
.sidebar-outras-list .sidebar-mod-btn {
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 0.75rem;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
}
.sidebar-nav-btn:hover {
  background: rgba(30, 41, 59, 0.6);
  color: #ffffff;
  border-color: rgba(51, 65, 85, 0.7);
  transform: translateX(2px);
}
.sidebar-nav-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}
html.lotofacil-mode .sidebar-nav-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.15);
}
.sidebar-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-nav-label {
  flex: 1;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sidebar-nav-count {
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sidebar-lottery-card {
  margin: 1rem 0;
  padding: 0.85rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-lottery-card:hover {
  border-color: #10b981;
  transform: translateY(-1px);
}
.sidebar-lottery-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.sidebar-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}
.sidebar-lottery-prize {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.sidebar-lottery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
}
.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.sidebar-action-btn:hover {
  background: #1e293b;
  border-color: #38bdf8;
}
.sidebar-profile-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: #020617;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-profile-card:hover {
  border-color: #f59e0b;
}
.sidebar-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  flex-shrink: 0;
}
.sidebar-profile-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sidebar-profile-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile-badge {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: monospace;
}
.master-badge {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}
.vip-badge {
  color: #34d399 !important;
  font-weight: 800 !important;
}
.sidebar-profile-opt {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Modo Compacto (Apenas Ícones) */
.nasa-desktop-sidebar.is-compact {
  width: 76px !important;
  padding: 1rem 0.45rem !important;
}
.nasa-desktop-sidebar.is-compact .sidebar-brand-text,
.nasa-desktop-sidebar.is-compact .sidebar-version-badge,
.nasa-desktop-sidebar.is-compact .sidebar-size-title,
.nasa-desktop-sidebar.is-compact #btn-side-p,
.nasa-desktop-sidebar.is-compact #btn-side-m,
.nasa-desktop-sidebar.is-compact #btn-side-g,
.nasa-desktop-sidebar.is-compact .sidebar-mod-btn span:last-child,
.nasa-desktop-sidebar.is-compact .sidebar-nav-label,
.nasa-desktop-sidebar.is-compact .sidebar-nav-count,
.nasa-desktop-sidebar.is-compact .sidebar-lottery-card,
.nasa-desktop-sidebar.is-compact .sidebar-profile-info,
.nasa-desktop-sidebar.is-compact .sidebar-profile-opt,
.nasa-desktop-sidebar.is-compact #sidebar-lbl-theme {
  display: none !important;
}
.nasa-desktop-sidebar.is-compact .sidebar-nav-btn {
  justify-content: center !important;
  padding: 0.75rem 0.4rem !important;
}
.nasa-desktop-sidebar.is-compact .sidebar-mod-pill {
  grid-template-columns: 1fr;
}

/* ========== TEMA CLARO DEFINITIVO (APOLLO WHITE) ========== */
html:not(.dark) .nasa-desktop-sidebar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) .sidebar-brand-title {
  color: #0f172a !important;
}
html:not(.dark) .sidebar-size-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) .sidebar-size-title {
  color: #475569 !important;
}
html:not(.dark) .sidebar-size-btn {
  color: #475569 !important;
}
html:not(.dark) .sidebar-size-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
html:not(.dark) .sidebar-size-btn.active {
  background: #059669 !important;
  color: #ffffff !important;
}
html:not(.dark) .sidebar-mod-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) .sidebar-mod-btn {
  color: #475569 !important;
}
html:not(.dark) .sidebar-mod-btn.active-mega {
  background: #10b981 !important;
  color: #ffffff !important;
}
html:not(.dark) .sidebar-mod-btn.active-loto {
  background: #a855f7 !important;
  color: #ffffff !important;
}
html:not(.dark) .sidebar-mod-btn.active-quina,
html:not(.dark) .nasa-mod-btn.active-quina {
  background: #0284c7 !important;
  color: #ffffff !important;
}
html:not(.dark) .sidebar-mod-btn.active-lotomania,
html:not(.dark) .nasa-mod-btn.active-lotomania {
  background: #ea580c !important;
  color: #ffffff !important;
}
html:not(.dark) .sidebar-mod-btn.active-diadesorte,
html:not(.dark) .nasa-mod-btn.active-diadesorte {
  background: #eab308 !important;
  color: #020617 !important;
}
html:not(.dark) #sidebar-outras-loterias {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #sidebar-outras-loterias summary {
  color: #334155 !important;
}
html:not(.dark) .lotolab-outras-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}
html:not(.dark) .lotolab-outras-item {
  color: #0f172a !important;
}
html:not(.dark) .lotolab-outras-item:hover {
  background: #f1f5f9 !important;
}
html:not(.dark) .lotolab-outras-sub {
  color: #64748b !important;
}
html:not(.dark) #lotolab-conversao-banner {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff) !important;
  border-color: #6ee7b7 !important;
}
html:not(.dark) #lotolab-conversao-banner button[aria-label="Fechar aviso"] {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
html:not(.dark) #lotolab-conversao-banner button[aria-label="Fechar aviso"]:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html:not(.dark) .gastos-painel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) .gastos-painel .instalar-titulo,
html:not(.dark) .gastos-painel strong {
  color: #0f172a !important;
}
html:not(.dark) .gastos-painel .gastos-nota {
  color: #475569 !important;
}
html:not(.dark) .gastos-painel .fluxo-link {
  color: #475569 !important;
}
html:not(.dark) #lotolab-conversao-banner .text-white,
html:not(.dark) #lotolab-quiz-noticias .text-white,
html:not(.dark) #modal-noticia-lotolab .text-white,
html:not(.dark) #lotolab-menu-outras-loterias .text-white {
  color: #0f172a !important;
}
html:not(.dark) #lotolab-conversao-banner .text-slate-300,
html:not(.dark) #lotolab-quiz-noticias .text-slate-200,
html:not(.dark) #lotolab-quiz-noticias .text-slate-300,
html:not(.dark) #lotolab-quiz-noticias .text-slate-400,
html:not(.dark) #modal-noticia-lotolab .text-slate-300,
html:not(.dark) #lotolab-menu-outras-loterias .text-slate-200 {
  color: #334155 !important;
}
html:not(.dark) #lotolab-avisos-topo button {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #lotolab-avisos-topo .text-emerald-200 {
  color: #065f46 !important;
}
html:not(.dark) #lotolab-avisos-topo .text-cyan-200 {
  color: #155e75 !important;
}
html:not(.dark) #lotolab-menu-outras-loterias,
html:not(.dark) #modal-noticia-lotolab > div {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #lotolab-radar-expansivel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #lotolab-radar-expansivel summary {
  color: #0f172a !important;
}
html:not(.dark) #lotolab-quiz-noticias > div {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) #lotolab-quiz-noticias .text-emerald-400 {
  color: #047857 !important;
}
html:not(.dark) #lotolab-tokens-badge {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}
html:not(.dark) #lotolab-mes-da-sorte-box {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
}
html:not(.dark) #lotolab-mes-da-sorte-box label {
  color: #b45309 !important;
}
html:not(.dark) #select-mes-sorte {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}
#lotolab-radar-expansivel summary::-webkit-details-marker {
  display: none;
}
html:not(.dark) #modal-noticia-lotolab button.bg-slate-800 {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
html:not(.dark) .sidebar-nav-btn {
  color: #334155 !important;
}
html:not(.dark) .sidebar-nav-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) .sidebar-nav-btn.active {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}
html:not(.dark) .sidebar-lottery-card {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) .sidebar-lottery-prize {
  color: #0f172a !important;
}
html:not(.dark) .sidebar-bottom-actions {
  border-color: #e2e8f0 !important;
}
html:not(.dark) .sidebar-action-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html:not(.dark) .sidebar-action-btn:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
}
html:not(.dark) .sidebar-profile-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) .sidebar-profile-name {
  color: #0f172a !important;
}

/* Legibilidade Máxima do Volante no Tema Claro */
html:not(.dark) .volante-btn {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
}
html:not(.dark) .volante-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}
html:not(.dark) .subgrid-active-cell {
  background-color: rgba(14, 165, 233, 0.16) !important;
  color: #0369a1 !important;
  font-weight: 900 !important;
  border-color: #0ea5e9 !important;
  box-shadow: inset 0 0 0 1.5px #0ea5e9 !important;
}
html:not(.dark) .volante-btn.bg-emerald-500,
html:not(.dark) .volante-btn.bg-emerald-600 {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  font-weight: 900 !important;
}
html:not(.dark) .volante-btn.bg-purple-600 {
  background-color: #7c3aed !important;
  color: #ffffff !important;
  border-color: #6d28d9 !important;
  font-weight: 900 !important;
}

/* Testes Estatísticos e Cards no Modo Claro */
html:not(.dark) #card-bateria-testes,
html:not(.dark) #painel-score-telemetria,
html:not(.dark) #card-simulador-historico,
html:not(.dark) #card-sugestao-troca,
html:not(.dark) #card-matriz-4x4-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #conteudo-bateria-testes > div {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #conteudo-bateria-testes h4,
html:not(.dark) #conteudo-bateria-testes span.text-white,
html:not(.dark) #conteudo-bateria-testes .text-slate-100 {
  color: #0f172a !important;
  font-weight: 800 !important;
}
html:not(.dark) #conteudo-bateria-testes p,
html:not(.dark) #conteudo-bateria-testes .text-slate-300,
html:not(.dark) #conteudo-bateria-testes .text-slate-400 {
  color: #334155 !important;
}

/* =========================================================================
   SISTEMA DE CORES DOS QUADRANTES DO VOLANTE (DARK & LIGHT MODE)
   ========================================================================= */

/* Dark Mode: Cores de Quadrantes no Volante */
.volante-quad-q1 {
  background-color: rgba(6, 78, 59, 0.4) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  font-weight: 800 !important;
}
.volante-quad-q1:hover {
  background-color: rgba(16, 185, 129, 0.5) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.volante-quad-q2 {
  background-color: rgba(8, 51, 68, 0.45) !important;
  color: #67e8f9 !important;
  border: 1px solid rgba(6, 182, 212, 0.45) !important;
  font-weight: 800 !important;
}
.volante-quad-q2:hover {
  background-color: rgba(6, 182, 212, 0.5) !important;
  border-color: #06b6d4 !important;
  color: #ffffff !important;
}

.volante-quad-q3 {
  background-color: rgba(69, 26, 3, 0.45) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  font-weight: 800 !important;
}
.volante-quad-q3:hover {
  background-color: rgba(245, 158, 11, 0.5) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

.volante-quad-q4 {
  background-color: rgba(59, 7, 100, 0.45) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  font-weight: 800 !important;
}
.volante-quad-q4:hover {
  background-color: rgba(168, 85, 247, 0.5) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
}

/* Dezenas Selecionadas no Volante (Mega-Sena & Lotofácil) */
.volante-marcado-mega {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #020617 !important;
  font-weight: 900 !important;
  border: 2px solid #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7) !important;
  z-index: 2 !important;
}

.volante-marcado-loto {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: 2px solid #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7) !important;
  z-index: 2 !important;
}

/* Legenda Dinâmica dos Quadrantes */
.legenda-quad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}
.legenda-quad-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.legenda-quad-count {
  font-size: 0.75rem;
  font-weight: 900;
  font-family: monospace;
}
.legenda-quad-box.q1 {
  background: rgba(6, 78, 59, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34d399;
}
.legenda-quad-box.q2 {
  background: rgba(8, 51, 68, 0.55);
  border: 1px solid rgba(6, 182, 212, 0.6);
  color: #22d3ee;
}
.legenda-quad-box.q3 {
  background: rgba(69, 26, 3, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}
.legenda-quad-box.q4 {
  background: rgba(59, 7, 100, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #c084fc;
}

/* Light Mode: Quadrantes no Volante e Legenda */
html:not(.dark) .volante-quad-q1 {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}
html:not(.dark) .volante-quad-q1:hover {
  background-color: #d1fae5 !important;
  border-color: #059669 !important;
  color: #064e3b !important;
}

html:not(.dark) .volante-quad-q2 {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}
html:not(.dark) .volante-quad-q2:hover {
  background-color: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0c4a6e !important;
}

html:not(.dark) .volante-quad-q3 {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}
html:not(.dark) .volante-quad-q3:hover {
  background-color: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #78350f !important;
}

html:not(.dark) .volante-quad-q4 {
  background-color: #faf5ff !important;
  color: #6b21a8 !important;
  border-color: #e9d5ff !important;
}
html:not(.dark) .volante-quad-q4:hover {
  background-color: #f3e8ff !important;
  border-color: #9333ea !important;
  color: #581c87 !important;
}

html:not(.dark) .volante-marcado-mega {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #064e3b !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
}

html:not(.dark) .volante-marcado-loto {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  border-color: #4c1d95 !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45) !important;
}

html:not(.dark) .legenda-quad-box {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}
html:not(.dark) .legenda-quad-title {
  color: inherit !important;
  font-weight: 900 !important;
}
html:not(.dark) .legenda-quad-count {
  color: inherit !important;
  font-weight: 900 !important;
}
html:not(.dark) .legenda-quad-box.q1 {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
}
html:not(.dark) .legenda-quad-box.q2 {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}
html:not(.dark) .legenda-quad-box.q3 {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
}
html:not(.dark) .legenda-quad-box.q4 {
  background: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
  color: #6b21a8 !important;
}

/* =========================================================================
   OVERHAUL ESPECÍFICO DE CONTRASTE TELA POR TELA (MODO CLARO / APOLLO WHITE)
   ========================================================================= */

/* 1. TELA FECHAMENTOS (Planejador de Orçamento, Telemetria & Coberturas) */
html:not(.dark) #view-fechamentos div.bg-gradient-to-r,
html:not(.dark) #view-fechamentos div.bg-gradient-to-br {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #view-fechamentos button.bg-slate-800 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #view-fechamentos button.bg-slate-800:hover {
  background-color: #e2e8f0 !important;
}
html:not(.dark) #view-fechamentos button.btn-rocket-launch,
html:not(.dark) #view-fechamentos button.bg-emerald-600,
html:not(.dark) #view-fechamentos button.bg-emerald-700 {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
html:not(.dark) #view-fechamentos button[onclick^="aplicarOrcamentoInteligente"] {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #view-fechamentos button[onclick^="aplicarOrcamentoInteligente"]:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
html:not(.dark) #card-telemetria-matriz {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #card-telemetria-matriz .text-white {
  color: #0f172a !important;
}
html:not(.dark) #resultado-fechamento-container {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

/* 2. TELA MINHA CARTEIRA (Calendário Caixa, Status & Portfólio) */
html:not(.dark) #view-carteira div.bg-gradient-to-r,
html:not(.dark) #view-carteira div.bg-gradient-to-br {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #view-carteira button[class*="from-emerald"],
html:not(.dark) #view-carteira button.bg-emerald-600 {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}
html:not(.dark) #view-carteira button.bg-slate-900,
html:not(.dark) #view-carteira button.bg-slate-800 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #view-carteira .bg-slate-950\/90 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #view-carteira .text-white {
  color: #0f172a !important;
}
html:not(.dark) #container-bilhetes-salvos {
  color: #334155 !important;
}
html:not(.dark) #container-bilhetes-salvos > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* 3. TELA BOLÕES E RATEIO */
html:not(.dark) #view-bolao .bg-gradient-to-br,
html:not(.dark) #view-bolao .bg-slate-900 {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #view-bolao .bg-slate-950 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* 4. TELA ESTATÍSTICAS E CALOR */
html:not(.dark) #view-calor .bg-gradient-to-br,
html:not(.dark) #view-calor .bg-slate-900 {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) #view-calor .bg-slate-950 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* 5. TELA PAINEL ADMINISTRATIVO */
html:not(.dark) #view-admin .bg-gradient-to-r {
  background: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.12) !important;
}
html:not(.dark) #view-admin h2.text-amber-400 {
  color: #b45309 !important;
}
html:not(.dark) #view-admin .bg-slate-900\/90,
html:not(.dark) #view-admin .bg-slate-900 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) #view-admin #subtab-admin-usuarios.border-amber-400 {
  border-color: #d97706 !important;
  color: #b45309 !important;
}
html:not(.dark) #view-admin button[id^="subtab-admin-"]:not(.border-amber-400) {
  color: #475569 !important;
}
html:not(.dark) #view-admin button[id^="subtab-admin-"]:hover {
  color: #0f172a !important;
}
html:not(.dark) #view-admin thead {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html:not(.dark) #view-admin thead th {
  color: #334155 !important;
  font-weight: 800 !important;
}
html:not(.dark) #view-admin tbody tr {
  background-color: #ffffff !important;
  border-color: #f1f5f9 !important;
}
html:not(.dark) #view-admin tbody tr:hover {
  background-color: #f8fafc !important;
}
html:not(.dark) #view-admin tbody td {
  color: #0f172a !important;
}
html:not(.dark) #view-admin tfoot,
html:not(.dark) #view-admin .bg-slate-950\/90 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* =========================================================================
   BLINDAGEM TOTAL DO TEMA CLARO (AUDITORIA DOS 15 ESPECIALISTAS)
   Elimina qualquer elemento preto/escuro solto em Fechamentos, Lote e Auditoria
   ========================================================================= */

/* 1. Blindagem Universal de Pílulas e Badges no Tema Claro */
html:not(.dark) .bg-cyan-950,
html:not(.dark) .bg-cyan-950\/80,
html:not(.dark) .bg-cyan-950\/60,
html:not(.dark) .bg-cyan-950\/40,
html:not(.dark) .bg-cyan-950\/30,
html:not(.dark) .bg-cyan-950\/20 {
  background-color: #ecfeff !important;
  color: #0e7490 !important;
  border-color: #a5f3fc !important;
}

html:not(.dark) .bg-purple-950,
html:not(.dark) .bg-purple-950\/80,
html:not(.dark) .bg-purple-950\/60,
html:not(.dark) .bg-purple-950\/40,
html:not(.dark) .bg-purple-950\/30,
html:not(.dark) .bg-purple-950\/20 {
  background-color: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}

html:not(.dark) .bg-emerald-950,
html:not(.dark) .bg-emerald-950\/80,
html:not(.dark) .bg-emerald-950\/60,
html:not(.dark) .bg-emerald-950\/40,
html:not(.dark) .bg-emerald-950\/30,
html:not(.dark) .bg-emerald-950\/25,
html:not(.dark) .bg-emerald-950\/20 {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

html:not(.dark) .bg-amber-950,
html:not(.dark) .bg-amber-950\/80,
html:not(.dark) .bg-amber-950\/60,
html:not(.dark) .bg-amber-950\/40,
html:not(.dark) .bg-amber-950\/30,
html:not(.dark) .bg-amber-950\/20 {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

/* 2. Fechamentos Gerados no Tema Claro */
html:not(.dark) #resultado-fechamento-container {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #lista-jogos-fechamento > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #lista-jogos-fechamento span.bg-cyan-950 {
  background-color: #ecfeff !important;
  color: #0891b2 !important;
  border-color: #a5f3fc !important;
}

/* 3. Lote de Apostas Geradas (#container-lote-apostas) */
html:not(.dark) #container-lote-apostas {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #lista-lote-apostas > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
html:not(.dark) #lista-lote-apostas .text-white {
  color: #0f172a !important;
}
html:not(.dark) #lista-lote-apostas span.bg-slate-900 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
html:not(.dark) #lista-lote-apostas button.bg-slate-900,
html:not(.dark) #lista-lote-apostas button.bg-slate-800 {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html:not(.dark) #lista-lote-apostas button.bg-slate-900:hover,
html:not(.dark) #lista-lote-apostas button.bg-slate-800:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
html:not(.dark) #lista-lote-apostas .grid > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* 4. Tela de Auditoria e Testes Individuais (#view-auditoria) */
html:not(.dark) #view-auditoria {
  background-color: #f8fafc !important;
}
html:not(.dark) #view-auditoria .bg-slate-900,
html:not(.dark) #view-auditoria .bg-slate-950,
html:not(.dark) #view-auditoria .bg-slate-950\/80 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
html:not(.dark) #view-auditoria .text-white {
  color: #0f172a !important;
}
html:not(.dark) #view-auditoria span.bg-slate-900 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html:not(.dark) #view-auditoria .grid > div {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html:not(.dark) #view-auditoria button.bg-slate-800 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html:not(.dark) #view-auditoria button.bg-slate-800:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}
