/* (Sorteador) estilos ficam no CSS isolation:
   `Client/Pages/Sorteador/SorteadorForm.razor.css`
   Evita overrides globais com `!important`. */

:root {
  /* Fallbacks prevent transparent/black background while Mud/theme vars are not ready yet. */
  --fb-bg: #f5f7f3;
  --fb-surface: #ffffff;
  --fb-text: #0f1b1a;
  --fb-text-secondary: rgba(15, 27, 26, 0.72);
  --fb-border: rgba(15, 27, 26, 0.15);
}

html[data-theme="light"] {
  --fb-bg: #f5f7f3;
  --fb-surface: #ffffff;
  --fb-text: #0f1b1a;
  --fb-text-secondary: rgba(15, 27, 26, 0.72);
  --fb-border: rgba(15, 27, 26, 0.15);
  --fb-hero-1: #0c1f3a;
  --fb-hero-2: #0b4d83;
  --fb-hero-3: #1a8f6a;
  --fb-accent: #1a8f6a;
  --fb-glass-1: rgba(26, 143, 106, 0.08);
  --fb-glass-2: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] {
  --fb-bg: #041813;
  --fb-surface: #0b271d;
  --fb-text: #f4f7f3;
  --fb-text-secondary: rgba(244, 247, 243, 0.72);
  --fb-border: rgba(244, 247, 243, 0.14);
  --fb-hero-1: #0a3d2e;
  --fb-hero-2: #084d3a;
  --fb-hero-3: #0a6148;
  --fb-accent: #4fdfae;
  --fb-glass-1: rgba(79, 223, 174, 0.08);
  --fb-glass-2: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body,
html {
  font-family: Roboto, sans-serif;
  background-color: var(--fb-bg, #f5f7f3);
  color: var(--fb-text);
  min-height: 100%;
  margin: 0;
  padding: 0;
}

.fb-login-layout {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
    150deg,
    #07122a 0%,
    #0c1f3a 35%,
    #0b4d83 70%,
    #1a8f6a 100%
  );
}

/* Dark mode hard overrides (não dependem do CSS isolation/Mud vars) */
html[data-theme="dark"] .menu-items {
  background: linear-gradient(180deg, #0b271d 0%, #041813 100%) !important;
}

html[data-theme="dark"] .nav-item-compact {
  color: rgba(244, 247, 243, 0.92) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .nav-item-compact:hover {
  background: rgba(79, 223, 174, 0.12) !important;
}

html[data-theme="dark"] .nav-item-chevron {
  color: rgba(244, 247, 243, 0.35) !important;
}

html[data-theme="dark"] .nav-links-compact .mud-typography-caption {
  color: rgba(244, 247, 243, 0.55) !important;
}

/* ======================================
   🌙 DARK MODE - RACHA PROFILE PAGE
   ====================================== */
/* Nota: as regras completas do Racha Profile (dark) ficam mais abaixo neste arquivo.
   Removemos um trecho corrompido (sem seletores) que quebrava o parsing do CSS. */

/* Remove a máscara de fade das tabelas MudSimpleTable */
#areaParaCaptura .mud-simple-table > .mud-table-container {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Define que somente os ícones dentro do contêiner com classe "white-icon-container" ficarão brancos */
.white-icon-container .mud-icon-root {
  color: white !important;
}

/* Define que somente os ícones dentro do contêiner com classe "white-icon-container" ficarão brancos */
.white-icon-container .mud-input-slot {
  color: white !important;
}

/* Estilos para itens que parecem "botão" ou cartão clicável */
.clickable-item {
  cursor: pointer;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: left;
  transition: background-color 0.2s;
  background-color: #f5f5dc;
}

.clickable-item:hover {
  background-color: #f5f5f5; /* muda cor de fundo no hover */
}

.custom-chip {
  display: inline-flex; /* Alinha o conteúdo internamente */
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  padding: 8px; /* Espaçamento interno */
  border-radius: 16%; /* Torna o fundo circular */
  color: black; /* Cor do texto */
  font-size: 14px; /* Tamanho da fonte */
  font-weight: bold; /* Negrito para destaque */
  text-align: center; /* Centraliza o texto */
}

.list-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.floating-button {
  position: fixed;
  bottom: 0; /* Fixado na base da tela */
  left: 256px; /* Alinha perfeitamente com a largura do NavMenu */
  width: calc(
    100% - 256px
  ); /* Garante que o botão ocupe o restante da largura da tela */
  z-index: 1000; /* Garante que fique acima de outros elementos */
  background-color: transparent; /* Remove qualquer fundo indesejado */
}

@media (max-width: 768px) {
  .floating-button {
    left: 0; /* Remove o deslocamento em telas menores */
    width: 100%; /* O botão ocupa toda a largura */
  }
}

.large-button {
  height: 70px; /* Aumenta a altura do botão */
  font-size: 1.2rem; /* Ajusta o tamanho do texto */
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background-color: #1b6ec2; /* Azul primário */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.btn:hover {
  background-color: #145a8a; /* Tom mais escuro no hover */
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-custom {
  height: 65px; /* Maior altura para melhor visual */
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    mediumseagreen,
    seagreen
  ); /* Mantém as cores atuais */
  color: white; /* Cor do texto */
  font-size: 12px; /* Tamanho da fonte */
  font-weight: bold; /* Texto em negrito */
  border: none; /* Remove bordas */
  border-radius: 8px; /* Arredonda os cantos */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Adiciona sombra para profundidade */
  transition: all 0.3s ease-in-out; /* Suaviza a transição de efeitos */
  cursor: pointer; /* Altera o cursor para mão ao passar */
}

.btn-custom:hover {
  background: linear-gradient(135deg, yellowgreen, mediumseagreen);
  color: black; /* Contraste para o texto */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.5); /* Intensifica a sombra */
  transform: translateY(-2px); /* Levanta ligeiramente o botão */
}

.btn-custom:active {
  transform: translateY(1px); /* Volta ao ser clicado */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); /* Sombra reduzida */
}
.btn-custom img {
  margin-bottom: 5px; /* Adiciona um pequeno espaço entre a imagem e o texto */
}
.btn-custom span {
  font-size: 0.75rem; /* Tamanho do texto para ajuste visual */
}

.menu-item-custom {
  height: 88px; /* Ajuste de altura */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-color: beige; /* Cor de fundo neutra */
  color: forestgreen; /* Cor do texto */
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #a8d5ba; /* Linha suave em tom sobre tom */
  border-radius: 12px; /* Bordas arredondadas */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15); /* Sombra leve */
  transition: all 0.3s ease-in-out; /* Suaviza animações */
  overflow: hidden; /* Garante que o conteúdo não saia da área */
  position: relative;
}

.menu-item-custom img {
  max-height: 45px;
  margin-bottom: 8px; /* Espaço entre o ícone e o texto */
}

.menu-item-custom:hover {
  background-color: #f4f4f4; /* Fundo mais claro no hover */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* Intensifica a sombra no hover */
  transform: scale(1.02); /* Leve aumento ao passar o mouse */
  border-color: #88c097; /* Bordas mais escuras */
}

.menu-item-custom:active {
  transform: scale(0.98); /* Leve redução ao clicar */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Sombra reduzida */
}

.menu-item-custom .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: forestgreen; /* Cor do marcador */
  color: white;
  font-size: 12px; /* Tamanho do texto do marcador */
  padding: 5px 8px;
  border-radius: 12px; /* Bordas arredondadas */
  font-weight: bold;
}

h1:focus {
  outline: none;
}

.nav-pills .nav-link.active {
  background-color: #8af08a;
}

.my-button {
  box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  background: #cef09e;

  border-radius: 7px;
  white-space: nowrap;
  display: flex;
}

/* Modal de Estatísticas - Visual Moderno */
.estatistica-modal-grid {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
  border-radius: 24px;
}

.estatistica-modal-grid .mud-grid-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.estatistica-modal-grid .mud-grid-item:hover {
  transform: translateY(-2px);
}

.estatistica-modal-grid .mud-divider {
  margin: 1.5rem 0 1rem;
  opacity: 0.15;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(12, 31, 58, 0.2),
    transparent
  );
}

.estatistica-modal-grid .mud-typography-h6 {
  text-align: center;
  color: #0c1f3a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.75rem 0;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .estatistica-modal-grid {
  background: linear-gradient(
    135deg,
    rgba(10, 25, 41, 0.96) 0%,
    rgba(8, 44, 34, 0.96) 55%,
    rgba(7, 31, 24, 0.98) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .estatistica-modal-grid .mud-divider {
  opacity: 0.35;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 223, 174, 0.35),
    transparent
  );
}

html[data-theme="dark"] .estatistica-modal-grid .mud-typography-h6 {
  color: rgba(244, 247, 243, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .estatistica-modal-grid .my-buttonT3 {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Botões do Modal - Estilo Base */
.my-buttonT3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 180px !important;
  min-height: 85px !important;
  padding: 0.75rem !important;
  border-radius: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  position: relative !important;
  overflow: hidden !important;
}

.my-buttonT3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.my-buttonT3:hover::before {
  left: 100%;
}

.my-buttonT3:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.my-buttonT3:active {
  transform: translateY(-1px) scale(0.98) !important;
}

@media (max-width: 600px) {
  .my-buttonT3 {
    min-height: 78px !important;
    font-size: 0.72rem !important;
    border-radius: 14px !important;
    gap: 6px !important;
    padding: 0.6rem !important;
    max-width: 100% !important;
  }

  .my-buttonT3 img {
    width: 34px;
    height: 34px;
  }

  .my-buttonT3.my-buttonT3--small {
    min-height: 60px !important;
    font-size: 0.68rem !important;
  }

  .my-buttonT3.my-buttonT3--small img {
    width: 28px;
    height: 28px;
  }

  .estatistica-modal-grid {
    padding: 1rem;
    border-radius: 20px;
  }

  .estatistica-modal-grid .mud-typography-h6 {
    font-size: 0.85rem;
    margin: 0.5rem 0;
  }
}

.alert-group {
  box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.1); /* Adiciona uma sombra */
  padding: 10px; /* Adiciona algum espaço interno */
  margin-bottom: 10px; /* Adiciona algum espaço abaixo da div */
}

.btn-limpar:hover {
  background-color: #ffd64e;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background:
    url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.no-link-style {
  text-decoration: none; /* Remove a decoração de link */
  color: inherit; /* Mantém a cor do texto original */
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  margin-bottom: 0.6rem;
  transition: transform 0.2s;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1b6ec2;
  margin-bottom: 0.5rem;
}

.card-content {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}
/* Títulos */
h1,
h2,
h3 {
  color: #1b6ec2; /* Azul primário */
  font-weight: 700;
  margin-bottom: 1rem;
}

.campo-posicionado {
  background-image: image-set(
    url("/Imagens/gramado.avif") type("image/avif"),
    url("/Imagens/gramado.png") type("image/png")
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
  width: min(460px, 96vw, calc(90vh * 0.65));
  aspect-ratio: 2 / 3;
  margin: 18px auto 0;
  position: relative;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  overflow: visible;
  padding: 10px;
  box-sizing: border-box;
}

.card-posicionado {
  position: absolute;
  width: clamp(90px, 22vw, 120px);
  z-index: 1;
}

/* Artilheiro - Área de ataque (topo/frente) */
.artilheiro {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* Maestro (Garçom) - Meio de campo esquerda */
.garcom {
  top: 38%;
  left: 5%;
}

/* Desarmes - Meio de campo direita */
.desarme {
  top: 38%;
  right: 5%;
}

/* Paredão (Defesas) - Área do gol (fundo) */
.paredao {
  top: 72%;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 520px) {
  .campo-posicionado {
    width: min(380px, 100%, calc(92vh * 0.6));
    aspect-ratio: 2 / 3;
    margin-top: 16px;
  }

  .card-posicionado {
    width: clamp(80px, 28vw, 110px);
  }

  .garcom {
    top: 40%;
    left: 3%;
  }

  .desarme {
    top: 40%;
    right: 3%;
  }

  .paredao {
    top: 74%;
  }
}

@media (max-width: 380px) {
  .campo-posicionado {
    width: min(340px, 100%, calc(92vh * 0.55));
    aspect-ratio: 2 / 3;
    margin-top: 14px;
  }

  .card-posicionado {
    width: clamp(70px, 30vw, 100px);
  }

  .garcom,
  .desarme {
    top: 42%;
  }

  .paredao {
    top: 76%;
  }
}

/* Cartão base */
.highlight-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100px;
  width: 100%;
}

.highlight-image-container {
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
}

.highlight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.highlight-placeholder {
  background-color: silver;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #666;
  border-radius: 12px;
}

.highlight-footer {
  color: #fff;
  font-family: monospace;
  font-size: larger;
  background-color: darkolivegreen;
  border-bottom: inset;
  border-radius: 12px;
}

.highlight-number,
.highlight-qty {
  display: block;
  font-size: 1.5rem;
  font-family: fantasy;
}

.highlight-number {
  font-weight: bold;
}

.highlight-extra {
  font-size: 1rem;
  color: white;
  border-radius: 12px;
  margin: 3px;
  font-family: math;
}

/* Responsivo */
@media (max-width: 500px) {
  .highlight-card {
    max-width: 85px;
  }

  .highlight-image-container {
    height: 85px;
  }

  .highlight-role,
  .highlight-extra {
    font-size: 1rem;
    color: white;
    border-radius: 12px;
    margin: 3px;
    font-family: math;
  }
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background-color: #faf3e0; /* ou a cor que você já usa */
  border-radius: 12px;
  margin: 8px 0;
  cursor: pointer;
  text-align: center;
  transform: scale(var(--scale));
  transform-origin: top left;
  width: 100%;
}

.avatar-wrapper-jogador {
  margin-bottom: 4px;
}

.avatar-image,
.avatar-wrapper-jogador .mud-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.position-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

.player-name {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word; /* para nomes compridos não estourarem o card */
}
.player-email {
  width: 100%;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

posicao-name {
  font-weight: 300;
  font-size: 0.5rem;
  word-break: break-word; /* para nomes compridos não estourarem o card */
}

.posicao-name:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  background-color: #f0f0f0;
}

.avatar-wrapper-racha {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
}
.avatar-wrapper-jogador {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
}

/* imagem ou placeholder */
.avatar-image,
.avatar-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover; /* preenche toda a área */
  display: flex; /* para o placeholder */
  justify-content: center;
  align-items: center;
  font-size: 2.5rem; /* placeholder maior */
  color: #888;
  background-color: #e0e0e0;
}

/* botão de câmera ajustado */
.camera-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 2; /* garante ficar acima de tudo */
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* reduz o tamanho do ícone para não invadir tanto */
.camera-icon .mud-icon-root {
  font-size: 1.2rem !important;
  color: var(--mud-palette-primary);
}

@media (max-width: 400px) {
  .tab-content {
    padding: 8px;
  }
  .card .tab-content .w-100 {
    max-width: 100%;
  }
}
.nav-link div {
  text-align: center;
  line-height: 1.2;
}

.nav-link small {
  font-size: 0.75rem;
  margin-top: 4px;
  color: black;
}
.carta-container {
  width: 260px;
  height: 375px;
  margin: 0 auto;
  position: relative;
  font-family: Roboto, sans-serif;
}

/* background shape */
.svg-fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* content inside the shield, inset and resized */
.carta-content {
  position: absolute;
  top: 8%; /* shift down inside shield */
  left: 10%; /* shift right inside shield */
  width: 80%; /* scale to fit inside shape */
  height: 80%; /* scale to fit inside shape */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0; /* remove extra padding */
  box-sizing: border-box;
  color: #000;
  overflow: hidden;
}

.posicao {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.foto-jogador {
  width: 60%;
  border-radius: 50%;
  margin: 8px 0;
  object-fit: cover;
}

.nome-jogador {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.estatisticas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 4px 12px;
  width: 100%;
  margin-top: 8px;
  font-size: 0.85rem;
}

.estatisticas div {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.linha {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.linha span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 3D + aproximação fina ao gramado */
/* 3D + aproximação fina ao gramado */
#player-card {
  padding: 0;
}

#player-card .player-card {
  transform-style: preserve-3d;
  transform: translateY(6px) rotateY(-12deg) rotateX(4deg) scale(var(--scale));
  transform-origin: center;
  transition: transform 0.6s;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}
/* responsividade de enquadramento do gramado */
@media (max-width: 380px) {
  .hero-bg {
    min-height: 82vh;
    background-position: center calc(100% - 70px);
  }
}
@media (min-height: 800px) {
  .hero-bg {
    min-height: 64vh;
    background-position: center calc(100% - 110px);
  }
}
/* === HERO com o fundo do estádio === */
.hero-bg {
  background-image: image-set(
    url("/Imagens/bg_1080x1920.avif") type("image/avif"),
    url("/Imagens/bg_1080x1920.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;

  /* deixa o GRAMADO visível abaixo da carta */
  background-position: center calc(100% - 90px);

  /* altura onde a carta vive; mobile-first */
  min-height: min(78vh, 840px);

  display: grid; /* para grudar a carta em baixo */
  border-radius: 12px; /* só se quiser arredondar o bloco */
}

/* gradiente opcional p/ contrastar */
.hero-bg::before {
  /* gradiente removido para não escurecer o restante da tela */
  display: none;
}

.hero-inner {
  align-self: end; /* empurra conteúdo p/ base do hero */
  display: flex;
  justify-content: center;
  padding-bottom: clamp(8px, 2vh, 28px);
  position: relative; /* p/ pseudo-elemento do hero não cobrir */
  z-index: 1;
}

.perfil-visitas-widget {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 3;
}

.perfil-visitas-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(3, 23, 61, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

html[data-theme="light"] .perfil-visitas-trigger {
  background: rgba(255, 255, 255, 0.92);
  color: #0f1b1a;
  border-color: rgba(3, 23, 61, 0.16);
}

.perfil-visitas-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.perfil-visitas-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ff5252;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.perfil-visitas-panel {
  width: min(320px, 86vw);
  background: rgba(7, 17, 36, 0.95);
  color: #f4f7f3;
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .perfil-visitas-panel {
  background: rgba(255, 255, 255, 0.96);
  color: #0f1b1a;
  border-color: rgba(3, 23, 61, 0.08);
}

.perfil-visitas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  padding: 0 4px 8px;
}

.perfil-visitas-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.perfil-visitas-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .perfil-visitas-close:hover {
  background: rgba(3, 23, 61, 0.08);
}

.perfil-visitas-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.perfil-visitas-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .perfil-visitas-item:hover {
  background: rgba(3, 23, 61, 0.04);
}

.perfil-visitas-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1fa37c, #0d5df6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.perfil-visitas-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.perfil-visitas-nome {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perfil-visitas-racha {
  font-size: 13px;
  color: #c7d0de;
}

html[data-theme="light"] .perfil-visitas-racha {
  color: #4b5567;
}

.perfil-visitas-data {
  font-size: 12px;
  color: #8ea3c2;
}

html[data-theme="light"] .perfil-visitas-data {
  color: #5c6c84;
}

.perfil-visitas-empty {
  padding: 10px 8px;
  color: #b6c2d2;
  font-size: 13px;
}

html[data-theme="light"] .perfil-visitas-empty {
  color: #4b5567;
}

/* aplica durante a captura para evitar animações/hover alterarem a pose */
.share-still * {
  animation: none !important;
  transition: none !important;
}
.share-still #player-card .player-card {
  transform: translateY(6px) rotateY(-12deg) rotateX(4deg) scale(var(--scale)) !important;
}
/* ======= PERFIL (/perfil) - AJUSTES DA CARTA PRINCIPAL ======= */

/* Soccer ball loader */
.soccer-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.bounce {
  position: absolute;
  width: 40px;
  height: 40px;
  left: calc(50% - 20px);
  bottom: 0;
  animation: bounce 1.2s ease-in-out infinite;
}

.ball {
  width: 40px;
  height: 40px;
  animation: spin 1.2s linear infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-40px);
  }
}

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

/* ---------- Racha Profile / Eventos visual refresh ---------- */
.racha-profile-page {
  min-height: 100vh;
  padding: 20px 0 80px;
  background: linear-gradient(180deg, #eff4ff 0%, #fdfdff 45%, #eef7ff 100%);
}

.racha-tabs {
  max-width: 1100px;
  margin: 0 auto;
}

.racha-tabs .mud-tabs-toolbar {
  border-radius: 30px;
  background: linear-gradient(135deg, #142750, #2e62b3);
  color: #fff;
  padding: 0.2rem 0.8rem;
  box-shadow: 0 18px 30px rgba(11, 24, 52, 0.35);
}

.racha-tabs .mud-tab,
.racha-tabs ::deep .mud-tab,
.racha-tabs ::deep .mud-tabs-toolbar button {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 999px;
  margin: 4px 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.racha-tabs ::deep .mud-tab .mud-button-root,
.racha-tabs ::deep .mud-tab .mud-button-label,
.racha-tabs ::deep .mud-tab .mud-tab-label {
  color: inherit !important;
  font-weight: inherit;
  letter-spacing: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.racha-tabs .mud-tab:hover,
.racha-tabs ::deep .mud-tab:hover,
.racha-tabs ::deep .mud-tabs-toolbar button:hover {
  color: #ffffff !important;
}

.racha-tabs .mud-tab.mud-tab-active,
.racha-tabs ::deep .mud-tab.mud-tab-active,
.racha-tabs ::deep .mud-tabs-toolbar button.mud-tab-active {
  background: rgba(255, 255, 255, 0.45);
  color: #0f2745 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.racha-tabs ::deep .mud-tab.mud-tab-active .mud-button-root,
.racha-tabs ::deep .mud-tab.mud-tab-active .mud-button-label,
.racha-tabs ::deep .mud-tab.mud-tab-active .mud-tab-label,
.racha-tabs ::deep .mud-tabs-toolbar button.mud-tab-active .mud-tab-label,
.racha-tabs ::deep .mud-tabs-toolbar button.mud-tab-active .mud-button-label {
  color: #0f2745 !important;
  text-shadow: none;
}

.racha-tabs ::deep .mud-tabs-toolbar button:not(.mud-tab-active) {
  color: rgba(255, 255, 255, 0.92) !important;
}

.racha-tabs ::deep .mud-tabs-toolbar button:not(.mud-tab-active) .mud-tab-label,
.racha-tabs
  ::deep
  .mud-tabs-toolbar
  button:not(.mud-tab-active)
  .mud-button-label {
  color: inherit !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.racha-tabs .mud-tabs-panels {
  background: transparent;
  padding-top: 24px;
}

.empty-state {
  text-align: center;
  margin: 2rem auto;
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 45px rgba(5, 21, 49, 0.12);
  color: #172644;
  max-width: 520px;
}

.section-intro,
.section-header {
  text-align: center;
  color: #172644;
}

.section-header {
  margin-top: 1.5rem;
  padding-inline: 1rem;
}

.evento-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  border: 1px solid rgba(11, 52, 82, 0.08);
  box-shadow: 0 22px 35px rgba(11, 24, 52, 0.15);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 45px rgba(11, 24, 52, 0.2);
}

.evento-badge {
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.25rem;
}

.evento-icon-wrapper {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: rgba(28, 96, 158, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.evento-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filtros-paper {
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
  box-shadow: 0 24px 45px rgba(11, 24, 52, 0.12);
}

.filtros-grid {
  align-items: flex-end;
}

.filtro-select .mud-input-root {
  border-radius: 10px;
}

.filtro-select .mud-input-slot {
  font-weight: 600;
  color: var(--fb-text, #102347);
}

.month-title {
  font-weight: 700;
  color: #0f2c55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.month-title .mud-icon-root {
  color: #3a83ff;
}

.eventos-month {
  border-radius: 32px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(9, 61, 42, 0.15);
}

.eventos-month__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #0a5d3f;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eventos-month__header .mud-icon-root {
  color: #f2c94c;
}

.eventos-month__divider {
  margin: 0.75rem 0 1.25rem;
  opacity: 0.25;
}

.eventos-month__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.evento-card {
  border-radius: 28px;
  border: 1px solid rgba(15, 52, 84, 0.12);
  box-shadow: 0 32px 55px rgba(11, 24, 52, 0.18);
  overflow: hidden;
}

.evento-card__header {
  background: linear-gradient(135deg, #0f4c75, #256d85, #57b894);
  color: #fff;
  padding: 1rem 1.25rem;
}

.evento-card__header .mud-icon-root {
  color: #cff2ff;
}

.evento-card__title {
  font-weight: 600;
}

.evento-card__cta {
  border-radius: 22px;
  background: linear-gradient(90deg, #fff6c7, #ffd84d);
  color: #0f2745 !important;
  font-weight: 900 !important;
  padding: 0.35rem 1.5rem !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 14px 26px rgba(15, 42, 75, 0.25);
}

.evento-card__cta .mud-button-label {
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.evento-card__cta:hover {
  filter: brightness(1.05);
}

.evento-card__delete .mud-icon-button {
  background: rgba(229, 57, 53, 0.07);
  border-radius: 8px;
}

.evento-card__delete .mud-icon-root {
  color: #e53935;
  font-size: 20px;
}

.evento-card__content {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 1.5rem;
}

/* ======================================
   🌙 DARK MODE - EVENTOS (RACHA PROFILE)
   ====================================== */

html[data-theme="dark"] .racha-profile .filtros-paper {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-profile .filtro-select .mud-input-root {
  border-radius: 16px;
  border: 1px solid rgba(79, 223, 174, 0.22);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .racha-profile .filtro-select .mud-input-slot,
html[data-theme="dark"] .racha-profile .filtro-select .mud-input {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] .racha-profile .filtro-select .mud-input-label {
  color: rgba(255, 255, 255, 0.65) !important;
}

html[data-theme="dark"] .racha-profile .eventos-month {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-profile .eventos-month__header {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .racha-profile .eventos-month__header .mud-icon-root {
  color: #f2c94c;
  filter: drop-shadow(0 2px 6px rgba(242, 201, 76, 0.25));
}

html[data-theme="dark"] .racha-profile .eventos-month__divider {
  opacity: 0.25;
  background-color: rgba(79, 223, 174, 0.2);
}

html[data-theme="dark"] .racha-profile .evento-card {
  border: 1px solid rgba(79, 223, 174, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .racha-profile .evento-card__header {
  background: linear-gradient(135deg, #0a3d2e, #084d3a, #0a6148);
}

html[data-theme="dark"] .racha-profile .evento-card__cta {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .racha-profile .evento-card__content {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

html[data-theme="dark"] .racha-profile .evento-card__content .mud-table {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(79, 223, 174, 0.14);
}

html[data-theme="dark"] .racha-profile .evento-card__content .mud-table thead {
  background: rgba(79, 223, 174, 0.12);
}

html[data-theme="dark"] .racha-profile .evento-card__content .mud-table td,
html[data-theme="dark"] .racha-profile .evento-card__content .mud-table th {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

/* === Eventos dark mode (sem escopo .racha-profile – aplica em /eventos e outros contextos) === */
html[data-theme="dark"] .eventos-month {
  background: #0b271d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .eventos-month__list {
  background: #0b271d !important;
}

html[data-theme="dark"] .evento-card {
  background: #162d22 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .evento-card__header {
  background: #132a1e !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .evento-card__title {
  color: rgba(244, 247, 243, 0.92) !important;
}

html[data-theme="dark"] .evento-card__content {
  background: #0d231a !important;
}

html[data-theme="dark"] .evento-card__content .mud-table {
  background: rgba(11, 39, 29, 0.8) !important;
  border-color: rgba(79, 223, 174, 0.14) !important;
}

html[data-theme="dark"] .evento-card__content .mud-table thead {
  background: rgba(79, 223, 174, 0.12) !important;
}

html[data-theme="dark"] .evento-card__content .mud-table td,
html[data-theme="dark"] .evento-card__content .mud-table th {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* === Ranking Page === */
.ranking-panel {
  border-radius: 24px;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(9, 61, 42, 0.12);
  transition: all 0.3s ease;
}

.ranking-panel__body {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.ranking-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 130px;
}

.ranking-tab {
  border: none;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 93, 63, 0.08);
  color: #0a5d3f;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ranking-tab:hover {
  background: rgba(10, 93, 63, 0.12);
  transform: translateX(4px);
}

.ranking-tab.active {
  background: linear-gradient(120deg, #fef9d7, #f4c542);
  color: #0f1b1a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
}

.ranking-panel__content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #f4f7f3);
  border-radius: 18px;
  padding: 0.75rem;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
}

.ranking-compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ranking;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
}

.ranking-compact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  min-height: 66px;
  position: relative;
  transition: background 0.2s ease;
  cursor: pointer;
}

.ranking-compact-item:hover {
  background: rgba(79, 223, 174, 0.08);
}

.ranking-compact-item::before {
  counter-increment: ranking;
  content: counter(ranking) ".";
  font-weight: 700;
  color: #0f1b1a;
  width: 1.75rem;
  text-align: right;
}

.ranking-compact-item + .ranking-compact-item {
  border-top: 1px solid rgba(10, 30, 20, 0.08);
}

.ranking-compact-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.ranking-compact-item__avatar--leader {
  width: 72px;
  height: 86px;
  border-radius: 18px;
  box-shadow: none;
}

/* Estilos para pódio com CartaJogadorMini */
.ranking-compact-item__avatar--gold,
.ranking-compact-item__avatar--silver,
.ranking-compact-item__avatar--bronze {
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.ranking-compact-item__avatar--gold {
  min-width: 80px;
  min-height: 100px;
}

.ranking-compact-item__avatar--silver {
  min-width: 68px;
  min-height: 85px;
}

.ranking-compact-item__avatar--bronze {
  min-width: 60px;
  min-height: 75px;
}

.ranking-card-mini {
  width: 64px;
  height: 82px;
  background-image: url("/Imagens/carta_destaque.svg");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 18px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-card-mini__photo {
  width: 80%;
  height: 70%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

/* Ajustes do ranking: avatar simples e compacto */
.ranking-compact-item__avatar .avatar-wrapper-jogador {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: inherit;
  overflow: hidden;
}

.ranking-compact-item__avatar .avatar-image,
.ranking-compact-item__avatar .mud-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Placeholder elegante (sem foto) */
.ranking-compact-item__avatar .mud-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a301e;
  background:
    radial-gradient(
      circle at 30% 25%,
      #ffffff 0%,
      rgba(255, 255, 255, 0.35) 35%
    ),
    linear-gradient(135deg, rgba(79, 223, 174, 0.55), rgba(255, 255, 255, 0.7));
  box-shadow:
    inset 0 0 0 2px rgba(10, 48, 30, 0.14),
    inset 0 -10px 22px rgba(10, 48, 30, 0.08);
}

.ranking-compact-item__avatar .mud-avatar .mud-icon-root {
  font-size: 24px;
}

html[data-theme="dark"] .ranking-compact-item__avatar .mud-avatar {
  color: rgba(244, 247, 243, 0.95);
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    linear-gradient(135deg, rgba(79, 223, 174, 0.35), rgba(15, 23, 42, 0.55));
  box-shadow:
    inset 0 0 0 2px rgba(79, 223, 174, 0.22),
    inset 0 -14px 26px rgba(0, 0, 0, 0.35);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ranking-card-mini__fallback {
  width: 80%;
  height: 70%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #0f2745;
  background: rgba(255, 255, 255, 0.9);
}

.ranking-compact-item__main {
  flex: 1;
  min-width: 0;
}

.ranking-compact-item__name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f2745;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-compact-item__meta {
  font-size: 0.8rem;
  color: rgba(15, 39, 69, 0.7);
}

.ranking-compact-item__value {
  font-weight: 800;
  font-size: 1.3rem;
  color: #0a5d3f;
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.ranking-compact-item__stats {
  display: flex;
  flex-direction: column;
  min-width: 70px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(15, 39, 69, 0.7);
  flex-shrink: 0;
}

.ranking-compact-item__stats strong {
  font-size: 1rem;
  color: #0f1b1a;
}

/* === Ranking Page Dark Mode === */
html[data-theme="dark"] .ranking-panel {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(79, 223, 174, 0.06) 100%
  ) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .ranking-tab {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(79, 223, 174, 0.1);
}

html[data-theme="dark"] .ranking-tab small,
html[data-theme="dark"] .ranking-tab small[style*="color"] {
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .ranking-tab:hover {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(79, 223, 174, 0.2);
  box-shadow: 0 8px 16px rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .ranking-tab.active {
  background: linear-gradient(120deg, #4fdfae 0%, #3bc896 100%) !important;
  color: #0a1a14 !important;
  text-shadow: none;
  box-shadow: 0 12px 24px rgba(79, 223, 174, 0.4);
  border: 1px solid rgba(79, 223, 174, 0.6);
}

html[data-theme="dark"] .ranking-tab.active small,
html[data-theme="dark"] .ranking-tab.active small[style*="color"] {
  color: #0a1a14 !important;
  font-weight: 800;
  text-shadow: none !important;
}

html[data-theme="dark"] .ranking-panel__content {
  background: linear-gradient(
    135deg,
    rgba(10, 61, 46, 0.5) 0%,
    rgba(6, 21, 16, 0.7) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .ranking-compact-list {
  background: rgba(6, 21, 16, 0.85) !important;
  border: 1px solid rgba(79, 223, 174, 0.15) !important;
}

html[data-theme="dark"] .ranking-compact-item {
  background: linear-gradient(
    90deg,
    rgba(6, 21, 16, 0.9) 0%,
    rgba(10, 61, 46, 0.8) 100%
  ) !important;
  border-bottom: 1px solid rgba(79, 223, 174, 0.08) !important;
}

/* Destaque para os 3 primeiros colocados */
html[data-theme="dark"] .ranking-compact-item:nth-child(1) {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.18) 0%,
    rgba(10, 61, 46, 0.85) 100%
  ) !important;
  border-color: rgba(255, 215, 0, 0.25) !important;
}

html[data-theme="dark"] .ranking-compact-item:nth-child(2) {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.15) 0%,
    rgba(10, 61, 46, 0.85) 100%
  ) !important;
  border-color: rgba(192, 192, 192, 0.2) !important;
}

html[data-theme="dark"] .ranking-compact-item:nth-child(3) {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.15) 0%,
    rgba(10, 61, 46, 0.85) 100%
  ) !important;
  border-color: rgba(205, 127, 50, 0.2) !important;
}

html[data-theme="dark"] .ranking-compact-item:hover {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.25) 0%,
    rgba(10, 61, 46, 0.8) 100%
  ) !important;
  box-shadow: 0 4px 12px rgba(79, 223, 174, 0.25) !important;
  border-color: rgba(79, 223, 174, 0.2) !important;
}

html[data-theme="dark"] .ranking-compact-item::before {
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .ranking-compact-item + .ranking-compact-item {
  border-top: 1px solid rgba(79, 223, 174, 0.12);
}

html[data-theme="dark"] .ranking-compact-item__avatar {
  background: rgba(79, 223, 174, 0.1);
  border: 1px solid rgba(79, 223, 174, 0.2);
}

html[data-theme="dark"] .ranking-card-mini {
  box-shadow: 0 8px 16px rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .ranking-card-mini__photo {
  border: 2px solid rgba(79, 223, 174, 0.6);
}

html[data-theme="dark"] .ranking-card-mini__fallback {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .ranking-compact-item__name {
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .ranking-compact-item__meta {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .ranking-compact-item__value {
  color: #4fdfae !important;
  text-shadow:
    0 2px 8px rgba(79, 223, 174, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 900;
}

html[data-theme="dark"] .ranking-compact-item__stats {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .ranking-compact-item__stats strong {
  color: #4fdfae !important;
  text-shadow:
    0 2px 8px rgba(79, 223, 174, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === InfoHighlightCard Dark Mode (usado em Ranking e outras páginas) === */
html[data-theme="dark"] .info-card {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(10, 61, 46, 0.3) 50%,
    rgba(6, 21, 16, 0.5) 100%
  ) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 223, 174, 0.2) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .info-card__icon {
  background: rgba(79, 223, 174, 0.2) !important;
  color: #4fdfae !important;
}

html[data-theme="dark"] .info-card__eyebrow {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .info-card__title {
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .info-card__subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .info-card__badge {
  background: linear-gradient(120deg, #4fdfae, #3bc896) !important;
  color: #0a1a14 !important;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(79, 223, 174, 0.3);
}

/* MudSelect dentro do InfoHighlightCard em dark mode */
html[data-theme="dark"] .info-card__body ::deep .mud-input-root,
html[data-theme="dark"] .info-card__body ::deep .mud-select {
  background: rgba(10, 61, 46, 0.4) !important;
  border: 1px solid rgba(79, 223, 174, 0.3) !important;
  border-radius: 12px;
}

html[data-theme="dark"] .info-card__body ::deep .mud-input-root:hover,
html[data-theme="dark"] .info-card__body ::deep .mud-select:hover {
  border-color: rgba(79, 223, 174, 0.5) !important;
  box-shadow: 0 4px 8px rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .info-card__body ::deep .mud-input-slot,
html[data-theme="dark"] .info-card__body ::deep .mud-select-input,
html[data-theme="dark"] .info-card__body ::deep .mud-input-control {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .info-card__body ::deep .mud-input-label,
html[data-theme="dark"] .info-card__body ::deep label {
  color: rgba(79, 223, 174, 0.9) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .info-card__body ::deep .mud-select-icon {
  color: #4fdfae !important;
}

/* Botões dentro do InfoHighlightCard em dark mode */
html[data-theme="dark"] .info-card__actions ::deep .mud-button-root {
  background: linear-gradient(120deg, #4fdfae, #3bc896) !important;
  color: #0a1a14 !important;
  font-weight: 700;
  border: 1px solid rgba(79, 223, 174, 0.6);
  box-shadow: 0 8px 16px rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .info-card__actions ::deep .mud-button-root:hover {
  box-shadow: 0 12px 24px rgba(79, 223, 174, 0.4);
  transform: translateY(-2px);
}

html[data-theme="dark"] .info-card__actions ::deep .mud-icon-root {
  color: #0a1a14 !important;
}

/* MudSelect Popover/List dark mode */
html[data-theme="dark"] ::deep .mud-popover-paper,
html[data-theme="dark"] ::deep .mud-list,
html[data-theme="dark"] ::deep .mud-select-popover {
  background: linear-gradient(
    135deg,
    rgba(10, 61, 46, 0.95) 0%,
    rgba(6, 21, 16, 0.98) 100%
  ) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 223, 174, 0.3) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] ::deep .mud-list-item {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] ::deep .mud-list-item:hover {
  background: rgba(79, 223, 174, 0.15) !important;
}

html[data-theme="dark"] ::deep .mud-list-item-selected {
  background: linear-gradient(
    120deg,
    rgba(79, 223, 174, 0.25),
    rgba(79, 223, 174, 0.15)
  ) !important;
  color: #4fdfae !important;
  font-weight: 700;
}

html[data-theme="dark"] ::deep .mud-list-item-text {
  color: inherit !important;
}

/* MudSelect Popover/List light mode */
html[data-theme="light"] ::deep .mud-popover-paper,
html[data-theme="light"] ::deep .mud-list,
html[data-theme="light"] ::deep .mud-select-popover,
html:not([data-theme]) ::deep .mud-popover-paper,
html:not([data-theme]) ::deep .mud-list,
html:not([data-theme]) ::deep .mud-select-popover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(246, 250, 253, 0.98) 100%
  ) !important;
  border: 1px solid rgba(24, 50, 74, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 44px rgba(12, 31, 58, 0.16) !important;
  backdrop-filter: blur(14px);
}

html[data-theme="light"] ::deep .mud-list-padding,
html:not([data-theme]) ::deep .mud-list-padding {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

html[data-theme="light"] ::deep .mud-list-item,
html:not([data-theme]) ::deep .mud-list-item {
  min-height: 2.9rem;
  margin: 0.18rem 0.4rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  color: #18324a !important;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

html[data-theme="light"] ::deep .mud-list-item:hover,
html:not([data-theme]) ::deep .mud-list-item:hover {
  background: rgba(15, 107, 86, 0.08) !important;
  color: #0f6b56 !important;
}

html[data-theme="light"] ::deep .mud-list-item-selected,
html:not([data-theme]) ::deep .mud-list-item-selected {
  background: linear-gradient(
    90deg,
    rgba(15, 107, 86, 0.14),
    rgba(15, 107, 86, 0.05)
  ) !important;
  color: #0f6b56 !important;
  font-weight: 700;
}

html[data-theme="light"] ::deep .mud-list-item-text,
html:not([data-theme]) ::deep .mud-list-item-text {
  color: inherit !important;
}

/* Context selector dropdown */
.contexto-select-popover {
  margin-top: 0.35rem;
}

.contexto-select-popover.mud-popover-paper {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(246, 250, 253, 0.98) 100%
  ) !important;
  border: 1px solid rgba(24, 50, 74, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 44px rgba(12, 31, 58, 0.18) !important;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.contexto-select-list {
  padding: 0.35rem !important;
}

.contexto-select-popover .mud-list-item {
  min-height: 3rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  color: #18324a !important;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.contexto-select-popover .mud-list-item:hover {
  background: rgba(15, 107, 86, 0.08) !important;
  color: #0f6b56 !important;
}

.contexto-select-popover .mud-list-item.mud-list-item-selected,
.contexto-select-popover .mud-selected-item {
  background: linear-gradient(
    90deg,
    rgba(15, 107, 86, 0.14),
    rgba(15, 107, 86, 0.05)
  ) !important;
  color: #0f6b56 !important;
  font-weight: 700;
}

.contexto-select-popover .mud-list-item-text {
  color: inherit !important;
}

html[data-theme="dark"] .contexto-select-popover.mud-popover-paper {
  background: linear-gradient(
    135deg,
    rgba(10, 61, 46, 0.96) 0%,
    rgba(6, 21, 16, 0.98) 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.24) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] .contexto-select-popover .mud-list-item {
  color: #edf4fb !important;
}

html[data-theme="dark"] .contexto-select-popover .mud-list-item:hover {
  background: rgba(79, 223, 174, 0.14) !important;
  color: #7fe0c8 !important;
}

html[data-theme="dark"] .contexto-select-popover .mud-list-item.mud-list-item-selected,
html[data-theme="dark"] .contexto-select-popover .mud-selected-item {
  background: linear-gradient(
    90deg,
    rgba(39, 181, 148, 0.24),
    rgba(39, 181, 148, 0.08)
  ) !important;
  color: #7fe0c8 !important;
}

/* === Ranking Page Mobile Responsive === */
@media (max-width: 768px) {
  .ranking-panel {
    padding: 0.5rem;
    border-radius: 16px;
  }

  .ranking-panel__body {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ranking-panel__nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 100%;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 223, 174, 0.3) rgba(0, 0, 0, 0.1);
  }

  .ranking-panel__nav::-webkit-scrollbar {
    height: 4px;
  }

  .ranking-panel__nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
  }

  .ranking-panel__nav::-webkit-scrollbar-thumb {
    background: rgba(79, 223, 174, 0.3);
    border-radius: 4px;
  }

  .ranking-tab {
    min-width: 90px;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .ranking-tab:hover {
    transform: none;
  }

  .ranking-tab img {
    height: 20px !important;
    width: auto !important;
    max-width: 40px;
  }

  .ranking-tab small {
    font-size: 0.7rem;
  }

  .ranking-panel__content {
    padding: 0.5rem;
    min-height: 320px;
    border-radius: 12px;
  }

  .ranking-compact-list {
    border-radius: 12px;
  }

  .ranking-compact-item {
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    flex-wrap: nowrap;
  }

  .ranking-compact-item::before {
    width: 1.5rem;
    font-size: 0.9rem;
  }

  .ranking-compact-item__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .ranking-compact-item__avatar--leader {
    width: 56px;
    height: 68px;
    border-radius: 14px;
  }

  .ranking-card-mini {
    width: 52px;
    height: 66px;
    border-radius: 14px;
  }

  .ranking-compact-item__name {
    font-size: 0.9rem;
  }

  .ranking-compact-item__meta {
    font-size: 0.7rem;
  }

  .ranking-compact-item__value {
    font-size: 1.1rem;
    min-width: 40px;
  }

  .ranking-compact-item__stats {
    min-width: 60px;
    font-size: 0.7rem;
  }

  .ranking-compact-item__stats strong {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ranking-panel {
    padding: 0.4rem;
  }

  .ranking-tab {
    min-width: 80px;
    padding: 0.4rem 0.6rem;
  }

  .ranking-tab img {
    height: 18px !important;
    width: auto !important;
    max-width: 34px;
  }

  .ranking-compact-item {
    gap: 0.4rem;
    padding: 0.35rem 0.4rem;
  }

  .ranking-compact-item::before {
    width: 1.25rem;
    font-size: 0.85rem;
  }

  .ranking-compact-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ranking-compact-item__avatar--leader {
    width: 48px;
    height: 58px;
    border-radius: 12px;
  }

  .ranking-card-mini {
    width: 44px;
    height: 56px;
    border-radius: 12px;
  }

  .ranking-compact-item__name {
    font-size: 0.85rem;
  }

  .ranking-compact-item__value {
    font-size: 1rem;
    min-width: 36px;
  }

  .ranking-compact-item__stats {
    display: none;
  }
}

/* ======================================
   🏠 HOME (Tela Inicial)
   ====================================== */

.home-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 1.25rem 2rem;
}

.home-hero__card {
  background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 45%, #1a8f6a 100%);
  border-radius: 32px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  color: #fdfdfd;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.home-hero__card--compact {
  padding: 1.2rem 1.35rem;
  border-radius: 24px;
  min-height: auto;
}

.home-shell--empty {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.home-shell--empty .home-hero {
  width: 100%;
  max-width: 480px;
}

.home-hero__card--empty {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 2.5rem 1.75rem;
  gap: 2rem;
}

.home-empty__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.home-empty__logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.home-empty__logo {
  border-radius: 12px;
}

.home-hero__card--empty .home-hero__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.25rem 0 0.15rem;
}

.home-hero__card--empty .home-hero__subtitle {
  max-width: 380px;
  margin: 0 auto 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-empty__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 340px;
  margin-top: 0.5rem;
}

.home-empty__cta-primary {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
  min-height: 52px;
}

.home-empty__cta-secondary {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  min-height: 44px;
}

.home-empty__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.home-empty__panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.home-empty__panel--hint {
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.5rem;
  gap: 0.5rem;
}

.home-empty__empty-text {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-empty__title {
  color: #fdfdfd;
  font-weight: 700;
}

.home-empty__invite {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-empty__invite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-empty__invite-title {
  color: #fdfdfd;
  font-weight: 600;
}

.home-empty__invite-code {
  color: rgba(255, 255, 255, 0.8);
}

.home-empty__empty-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Versão compacta quando tem carta do jogador - desativado */

.home-quick-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.home-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__title {
  margin: 0.25rem 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fdfdfd;
}

.home-hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
  margin-bottom: 1rem;
}

.home-hero__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.home-hero__actions .mud-button-root {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
}

.home-hero__actions .mud-button-outlined {
  border-width: 2px !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.home-hero__actions .mud-button-outlined:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.home-hero__actions .mud-button-outlined .mud-icon-root {
  color: rgba(255, 255, 255, 0.95) !important;
}

.ranking-card {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 143, 106, 0.06), #ffffff);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.ranking-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.ranking-card__title .mud-typography-subtitle1 {
  font-weight: 800;
}

.ranking-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-hero__chip {
  font-weight: 600;
}

.home-hero__chip--gold {
  background: linear-gradient(135deg, #f7e9b4, #d6a72f) !important;
  color: #3a2d04 !important;
}

.home-hero__art {
  width: min(320px, 85%);
  max-height: 200px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
  justify-self: end;
}

.home-hero__player-card {
  width: min(320px, 85%);
  max-height: 220px;
  justify-self: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
}

/* Aumenta tamanho das estatísticas na carta da página inicial */
.home-hero__player-card .fifa-stat-value {
  font-size: 1.5rem;
}

.home-hero__player-card .fifa-stat-label {
  font-size: 0.9rem;
}

.home-hero__player-card:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.home-hero__player-card:active {
  transform: scale(0.98);
}

.home-invite-inline {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-invite-inline__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-invite-inline__button {
  border-radius: 999px !important;
}

.home-menu-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f3 100%);
  box-shadow: 0 18px 34px rgba(9, 61, 42, 0.15);
  text-decoration: none;
  color: #0f1b1a;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(9, 61, 42, 0.2);
}

.home-menu-card--parca {
  border: 1px solid rgba(20, 109, 84, 0.16);
  background:
    linear-gradient(180deg, rgba(79, 223, 174, 0.12) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

.home-menu-card--parca .home-menu-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(20, 109, 84, 0.1);
  box-shadow: 0 10px 22px rgba(9, 61, 42, 0.12);
  overflow: hidden;
}

.home-menu-card--parca .home-menu-card__icon img {
  width: 54px;
  height: 54px;
  filter: none;
}

.home-menu-card--parca .home-menu-card__label {
  color: #135f49;
}

/* Estado ativo com animações */
.home-menu-card--active {
  background: linear-gradient(135deg, #0a5d3f 0%, #0b7d52 100%);
  color: #ffffff;
  box-shadow:
    0 0 20px rgba(10, 93, 63, 0.4),
    0 18px 34px rgba(9, 61, 42, 0.25);
}

.home-menu-card--active .home-menu-card__label {
  color: #ffffff;
}

.home-menu-card--active .home-menu-card__icon {
  background: rgba(255, 255, 255, 0.2);
}

.home-menu-card--active .home-menu-card__icon img {
  filter: brightness(0) invert(1);
}

/* O ícone "Ao Vivo" perde detalhes com invert; mantém cores originais */
.home-menu-card--live.home-menu-card--active .home-menu-card__icon img {
  filter: none;
}

/* Animação de pulso para Lista de Presença */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(10, 93, 63, 0.4),
      0 18px 34px rgba(9, 61, 42, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(10, 93, 63, 0.6),
      0 20px 40px rgba(9, 61, 42, 0.35);
    transform: scale(1.02);
  }
}

.home-menu-card--pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Animação de bounce para Ao Vivo */
@keyframes bounce-attention {
  0%,
  100% {
    transform: translateY(0);
  }
  10%,
  30% {
    transform: translateY(-8px);
  }
  20% {
    transform: translateY(-4px);
  }
  40% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(0);
  }
}

.home-menu-card--bounce {
  animation: bounce-attention 3s ease-in-out infinite;
}

.home-menu-card--bounce:hover {
  animation-play-state: paused;
}

/* Animação de rotação da bola para Ao Vivo */
@keyframes spin-ball {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.home-menu-card--bounce .home-menu-card__icon img {
  animation: spin-ball 2s linear infinite;
}

.home-menu-card--bounce:hover .home-menu-card__icon img {
  animation-play-state: paused;
}

.av-notif {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  color: #f5fff4 !important;
  box-shadow: 0 10px 24px rgba(9, 61, 42, 0.12);
}

.av-notif:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(9, 61, 42, 0.18);
}

.av-notif--aberto {
  background: linear-gradient(135deg, rgba(60, 45, 10, 0.95), rgba(40, 30, 5, 0.9)) !important;
  background-color: #3a2a09 !important;
  border: 1.5px solid rgba(244, 197, 66, 0.4);
}

.av-notif--resultado {
  background: linear-gradient(135deg, rgba(20, 60, 40, 0.95), rgba(15, 45, 30, 0.9)) !important;
  background-color: #183f2f !important;
  border: 1.5px solid rgba(79, 223, 174, 0.35);
}

.av-notif__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.av-notif__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.av-notif__icon--star {
  background: rgba(244, 197, 66, 0.15);
}

.av-notif__icon--trophy {
  background: rgba(79, 223, 174, 0.15);
}

.av-notif__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.av-notif__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
}

.av-notif__sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-notif__action,
.av-notif__actions-row {
  flex-shrink: 0;
}

.av-notif__actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.av-notif__btn-ver {
  background: rgba(79, 223, 174, 0.2);
  border: 1px solid rgba(79, 223, 174, 0.4);
  color: #4fdfae;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.av-notif__btn-ver:hover {
  background: rgba(79, 223, 174, 0.25);
}

.av-notif__btn-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.av-notif__btn-dismiss:hover {
  opacity: 1;
}

/* Animação de pulso no ícone para Lista de Presença */
@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

.home-menu-card--pulse .home-menu-card__icon img {
  animation: pulse-icon 2s ease-in-out infinite;
}

.home-menu-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(10, 93, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-menu-card__icon img {
  width: 32px;
  height: 32px;
}

.home-menu-card__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.home-menu-card__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #f4c542;
  color: #0f1b1a;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.home-menu-card__icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
}

.home-menu-card__badge--new {
  font-size: 0.6rem;
  background: #25D366;
  color: #fff;
}

.home-parca-fab {
  display: none;
}

.home-section {
  padding: 0.25rem 0;
}

/* ========== Home Premium Teaser Card ========== */
.home-premium-card {
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 60%, #1a8f6a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.home-premium-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-premium-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.home-premium-card__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-premium-card__eyebrow .mud-icon-root {
    color: #fbbf24;
    font-size: 1rem;
}

.home-premium-card__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.home-premium-card__price-period {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.home-premium-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.home-premium-card__usage-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: #fef3c7;
    margin-bottom: 0.75rem;
}

.home-premium-card__usage-hint .mud-icon-root {
    color: #fbbf24;
    font-size: 1rem;
    flex-shrink: 0;
}

.home-premium-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
}

.home-premium-card__bullets li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.home-premium-card__bullets li .mud-icon-root {
    color: #4ade80;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.home-premium-card__plans-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.home-premium-card__plan-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    gap: 0.1rem;
}

.home-premium-card__plan-chip--pro {
    background: rgba(26, 143, 106, 0.25);
    border-color: rgba(74, 222, 128, 0.4);
}

.home-premium-card__plan-name {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
}

.home-premium-card__plan-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.home-premium-card__plan-price small {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.8;
}

.home-premium-card__plan-pro-tag {
    font-size: 0.6rem;
    color: #4ade80;
    font-weight: 600;
    margin-top: 0.1rem;
    text-align: center;
    line-height: 1.3;
}

.home-premium-card__plan-sep {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    flex-shrink: 0;
}

.home-premium-card__cta-btn {
    font-weight: 700 !important;
}

.home-premium-card__cancel-note {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin: 0.5rem 0 0 0;
}

@media (max-width: 600px) {
  .home-shell {
    padding: 0.5rem 0.75rem 1.25rem;
  }

  .home-hero__card {
    padding: 1.25rem;
  }

  .home-parca-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 870;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #135f49;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .home-parca-fab__avatar {
    position: relative;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
      0 18px 38px rgba(9, 61, 42, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    overflow: hidden;
  }

  .home-parca-fab__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .home-parca-fab__label {
    min-width: 4.9rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.58rem 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 109, 84, 0.14);
    box-shadow: 0 9px 20px rgba(9, 61, 42, 0.16);
    color: #146d54;
  }

  .home-parca-fab__label strong,
  .home-parca-fab__label small {
    display: block;
    line-height: 1;
  }

  .home-parca-fab__label strong {
    font-size: 0.82rem;
    font-weight: 950;
  }

  .home-parca-fab__label small {
    margin-top: 0.08rem;
    color: rgba(15, 39, 69, 0.62);
    font-size: 0.58rem;
    font-weight: 850;
  }

  .home-parca-fab:active {
    transform: scale(0.97);
  }
}

@media (max-width: 420px) {
  .home-hero__card {
    padding: 1.05rem;
    border-radius: 24px;
    gap: 1rem;
  }

  .home-hero__subtitle {
    margin-bottom: 0.75rem;
  }

  .home-hero__badges {
    margin-bottom: 0.75rem;
  }

  .home-hero__actions {
    gap: 0.6rem;
  }

  .home-hero__actions .mud-button-root {
    min-height: 42px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .home-hero__art {
    max-height: 170px;
    width: min(280px, 90%);
  }

  .home-parca-fab {
    right: max(0.72rem, env(safe-area-inset-right));
    bottom: max(0.72rem, env(safe-area-inset-bottom));
  }

  .home-parca-fab__avatar {
    width: 80px;
    height: 80px;
  }

  .home-parca-fab__label {
    min-width: 4.65rem;
    padding-inline: 0.52rem;
  }

  .home-parca-fab__label strong {
    font-size: 0.78rem;
  }
}

/* ======================================
   🌙 DARK MODE - HOME (isolado)
   ====================================== */

html[data-theme="dark"] .home-shell,
html[data-bs-theme="dark"] .home-shell,
.mud-theme-dark .home-shell {
  background: transparent;
}

html[data-theme="dark"] .home-hero__card,
html[data-bs-theme="dark"] .home-hero__card,
.mud-theme-dark .home-hero__card {
  background: linear-gradient(
    135deg,
    #0a3d2e 0%,
    #084d3a 50%,
    #0a6148 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .home-hero__card--compact,
html[data-bs-theme="dark"] .home-hero__card--compact,
.mud-theme-dark .home-hero__card--compact {
  border-radius: 22px;
}

html[data-theme="dark"] .home-hero__card::after,
html[data-bs-theme="dark"] .home-hero__card::after,
.mud-theme-dark .home-hero__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(79, 223, 174, 0.15) 50%,
    transparent 100%
  );
  animation: hero-shimmer 4s infinite;
  z-index: 0;
}

@keyframes hero-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

html[data-theme="dark"] .home-hero__card > *,
html[data-bs-theme="dark"] .home-hero__card > *,
.mud-theme-dark .home-hero__card > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .home-hero__eyebrow,
html[data-bs-theme="dark"] .home-hero__eyebrow,
.mud-theme-dark .home-hero__eyebrow {
  color: #4fdfae !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

html[data-theme="dark"] .home-hero__title,
html[data-bs-theme="dark"] .home-hero__title,
.mud-theme-dark .home-hero__title {
  color: #ffffff !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 900;
}

html[data-theme="dark"] .home-hero__subtitle,
html[data-bs-theme="dark"] .home-hero__subtitle,
.mud-theme-dark .home-hero__subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .home-hero__chip.mud-chip-color-primary,
html[data-bs-theme="dark"] .home-hero__chip.mud-chip-color-primary,
.mud-theme-dark .home-hero__chip.mud-chip-color-primary {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.25) 0%,
    rgba(61, 199, 146, 0.2) 100%
  ) !important;
  color: #e8f5f0 !important;
  border: 1px solid rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .home-hero__chip.mud-chip-color-warning,
html[data-bs-theme="dark"] .home-hero__chip.mud-chip-color-warning,
.mud-theme-dark .home-hero__chip.mud-chip-color-warning {
  background: linear-gradient(
    135deg,
    rgba(245, 197, 66, 0.25) 0%,
    rgba(242, 201, 76, 0.2) 100%
  ) !important;
  color: #fef3cd !important;
  border: 1px solid rgba(245, 197, 66, 0.35);
}

html[data-theme="dark"] .home-invite-inline .mud-chip,
html[data-bs-theme="dark"] .home-invite-inline .mud-chip,
.mud-theme-dark .home-invite-inline .mud-chip {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.2) 0%,
    rgba(61, 199, 146, 0.15) 100%
  ) !important;
  color: #4fdfae !important;
  border: 1px solid rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .home-invite-inline__button,
html[data-bs-theme="dark"] .home-invite-inline__button,
.mud-theme-dark .home-invite-inline__button {
  background: linear-gradient(135deg, #4fdfae 0%, #3bc792 100%) !important;
  color: #0a2c21 !important;
  box-shadow: 0 4px 12px rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .home-invite-inline__button:hover,
html[data-bs-theme="dark"] .home-invite-inline__button:hover,
.mud-theme-dark .home-invite-inline__button:hover {
  background: linear-gradient(135deg, #5eeabe 0%, #4bd7a2 100%) !important;
  box-shadow: 0 6px 16px rgba(79, 223, 174, 0.4);
}

html[data-theme="dark"] .home-menu-card,
html[data-bs-theme="dark"] .home-menu-card,
.mud-theme-dark .home-menu-card {
  background: linear-gradient(
    180deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(79, 223, 174, 0.05) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(79, 223, 174, 0.1);
  color: #e8f5f0;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .home-menu-card:hover,
html[data-bs-theme="dark"] .home-menu-card:hover,
.mud-theme-dark .home-menu-card:hover {
  background: linear-gradient(
    180deg,
    rgba(79, 223, 174, 0.15) 0%,
    rgba(79, 223, 174, 0.1) 100%
  );
  border-color: rgba(79, 223, 174, 0.3);
  box-shadow:
    0 28px 48px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(79, 223, 174, 0.2),
    inset 0 1px 0 rgba(79, 223, 174, 0.15);
  transform: translateY(-5px);
}

html[data-theme="dark"] .home-menu-card__icon,
html[data-bs-theme="dark"] .home-menu-card__icon,
.mud-theme-dark .home-menu-card__icon {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.2) 0%,
    rgba(79, 223, 174, 0.12) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.25);
  box-shadow: 0 4px 12px rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .home-menu-card__icon img,
html[data-bs-theme="dark"] .home-menu-card__icon img,
.mud-theme-dark .home-menu-card__icon img {
  filter: brightness(1.2) drop-shadow(0 2px 4px rgba(79, 223, 174, 0.3));
}

html[data-theme="dark"] .home-menu-card__label,
html[data-bs-theme="dark"] .home-menu-card__label,
.mud-theme-dark .home-menu-card__label {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .home-menu-card__badge,
html[data-bs-theme="dark"] .home-menu-card__badge,
.mud-theme-dark .home-menu-card__badge {
  background: linear-gradient(135deg, #f5c542 0%, #f2c94c 100%);
  color: #0a2c21;
  box-shadow: 0 2px 8px rgba(245, 197, 66, 0.4);
  border: 1px solid rgba(245, 197, 66, 0.4);
  font-weight: 900;
}

html[data-theme="dark"] .home-parca-fab,
html[data-bs-theme="dark"] .home-parca-fab,
.mud-theme-dark .home-parca-fab {
  color: #4fdfae;
}

html[data-theme="dark"] .home-parca-fab__avatar,
html[data-bs-theme="dark"] .home-parca-fab__avatar,
.mud-theme-dark .home-parca-fab__avatar {
  background: rgba(8, 28, 22, 0.94);
  border-color: rgba(79, 223, 174, 0.18);
  color: #4fdfae;
}

html[data-theme="dark"] .home-parca-fab__avatar,
html[data-bs-theme="dark"] .home-parca-fab__avatar,
.mud-theme-dark .home-parca-fab__avatar {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .home-parca-fab__label,
html[data-bs-theme="dark"] .home-parca-fab__label,
.mud-theme-dark .home-parca-fab__label {
  background: rgba(8, 28, 22, 0.94);
  border-color: rgba(79, 223, 174, 0.18);
  color: #4fdfae;
}

html[data-theme="dark"] .home-parca-fab__label small,
html[data-bs-theme="dark"] .home-parca-fab__label small,
.mud-theme-dark .home-parca-fab__label small {
  color: rgba(244, 247, 243, 0.62);
}

/* Dark mode - Estado ativo com animações */
html[data-theme="dark"] .home-menu-card--active,
html[data-bs-theme="dark"] .home-menu-card--active,
.mud-theme-dark .home-menu-card--active {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.25) 0%,
    rgba(61, 199, 146, 0.2) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.4);
  box-shadow:
    0 0 25px rgba(79, 223, 174, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(79, 223, 174, 0.2);
  color: #ffffff;
}

html[data-theme="dark"] .home-menu-card--active .home-menu-card__icon,
html[data-bs-theme="dark"] .home-menu-card--active .home-menu-card__icon,
.mud-theme-dark .home-menu-card--active .home-menu-card__icon {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.35) 0%,
    rgba(79, 223, 174, 0.25) 100%
  );
  border-color: rgba(79, 223, 174, 0.5);
  box-shadow: 0 4px 16px rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .home-menu-card--active .home-menu-card__icon img,
html[data-bs-theme="dark"] .home-menu-card--active .home-menu-card__icon img,
.mud-theme-dark .home-menu-card--active .home-menu-card__icon img {
  filter: brightness(1.5) drop-shadow(0 2px 6px rgba(79, 223, 174, 0.6));
}

html[data-theme="dark"]
  .home-menu-card--live.home-menu-card--active
  .home-menu-card__icon
  img,
html[data-bs-theme="dark"]
  .home-menu-card--live.home-menu-card--active
  .home-menu-card__icon
  img,
.mud-theme-dark
  .home-menu-card--live.home-menu-card--active
  .home-menu-card__icon
  img {
  filter: none;
}

/* Dark mode - Animação de pulso */
@keyframes pulse-glow-dark {
  0%,
  100% {
    box-shadow:
      0 0 25px rgba(79, 223, 174, 0.5),
      0 20px 40px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(79, 223, 174, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 40px rgba(79, 223, 174, 0.7),
      0 24px 48px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(79, 223, 174, 0.3);
    transform: scale(1.02);
  }
}

html[data-theme="dark"] .home-menu-card--pulse,
html[data-bs-theme="dark"] .home-menu-card--pulse,
.mud-theme-dark .home-menu-card--pulse {
  animation: pulse-glow-dark 2s ease-in-out infinite;
}

/* Dark mode - Animações de ícones mantêm as mesmas */
/* A rotação e pulso do ícone funcionam igual em light/dark mode */

/* ========================================
   💎 PREMIUM (Badge + Card)
   ======================================== */

.premium-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 8px 0;
}

.premium-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-badge:not(.premium-badge--active) {
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.12) 0%,
    rgba(31, 163, 124, 0.08) 100%
  );
  border: 1px solid rgba(31, 163, 124, 0.3);
  color: #1fa37c;
}

.premium-badge--active {
  background: linear-gradient(135deg, #1fa37c 0%, #178967 100%);
  color: white;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.premium-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.premium-badge__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-badge__plan {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.premium-badge__expiry,
.premium-badge__cta {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.2;
}

.premium-badge__cta {
  font-weight: 500;
}

html[data-theme="dark"] .premium-badge:not(.premium-badge--active),
html[data-bs-theme="dark"] .premium-badge:not(.premium-badge--active),
.mud-theme-dark .premium-badge:not(.premium-badge--active) {
  background: rgba(79, 223, 174, 0.08);
  border: 1px solid rgba(79, 223, 174, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .premium-badge--active,
html[data-bs-theme="dark"] .premium-badge--active,
.mud-theme-dark .premium-badge--active {
  background: linear-gradient(135deg, #4fdfae 0%, #3bc792 100%);
  color: #0a2c21;
}

/* ======================================
   🔐 LOGIN
   ====================================== */

.login-outer {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.login-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100dvh - 4rem);
  padding: 1rem;
}

.login-panel {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 32px;
  padding: 2rem 1.5rem;
  box-shadow: 0 25px 50px rgba(7, 18, 42, 0.2);
  position: relative;
  overflow: hidden;
  animation: loginFadeIn 0.5s ease-out;
}

.login-panel.no-padding {
  padding: 0;
}

.login-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-hero__logo {
  width: 84px;
  height: 84px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.login-hero__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0c1f3a;
  margin: 0.4rem 0;
  line-height: 1.2;
}

.login-hero__subtitle {
  font-size: 0.95rem;
  color: #5d6368;
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.login-hero__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.login-hero__link {
  color: #0b4d83;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-hero__link:hover {
  color: #1a8f6a;
  text-decoration: underline;
}

.login-hero__link--primary {
  color: #1a8f6a;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-external-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.login-external-btn {
  min-height: 44px;
  border-radius: 12px !important;
  padding: 0.55rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.84rem;
}

.login-external-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

.login-apple-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}

.login-apple-btn {
  background: #111111 !important;
  color: #ffffff !important;
}

.login-google-btn {
  border-color: #c8d2e0 !important;
}

.login-google-btn:hover {
  border-color: #0b4d83 !important;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0c1f3a;
}

.login-input {
  width: 100%;
  border: 1px solid #c8d2e0;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  color: #0c1f3a;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(7, 18, 42, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #1a8f6a;
  box-shadow: 0 0 0 3px rgba(26, 143, 106, 0.15);
}

.login-input::placeholder {
  color: #93a0b1;
}

@media (max-width: 600px) {
  .login-outer {
    padding: 1rem 0.5rem;
  }

  .login-panel {
    border-radius: 24px;
    padding: 1.6rem 1.2rem;
  }
}

/* Compacta o login em telas pequenas */
@media (max-width: 420px), (max-height: 740px) {
  .login-outer {
    padding: 0.75rem 0.4rem;
    align-items: center;
  }

  .login-shell {
    padding: 0.5rem 0;
  }

  .login-panel {
    border-radius: 22px;
    padding: 1.2rem 0.95rem;
  }

  .login-hero {
    margin-bottom: 0.95rem;
  }

  .login-hero__logo {
    width: 68px;
    height: 68px;
    margin-bottom: 0.5rem;
  }

  .login-hero__title {
    font-size: 1.42rem;
    margin: 0.2rem 0 0.3rem;
  }

  .login-hero__subtitle {
    font-size: 0.84rem;
    margin-bottom: 0.4rem;
  }

  .login-hero__links {
    gap: 0.35rem;
  }

  .login-hero__link {
    font-size: 0.95rem;
  }

  .login-form {
    gap: 0.7rem;
  }

  .login-panel .mud-input-control {
    margin-top: 0 !important;
  }

  .login-panel .mud-button-root {
    min-height: 42px;
    padding: 0.58rem 0.85rem;
    font-size: 0.9rem;
  }

  .login-panel .mud-divider {
    margin: 0.45rem 0 !important;
  }

  .login-external-row {
    gap: 0.45rem;
  }

  .login-external-btn {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    min-height: 40px;
    padding: 0.5rem 0.55rem;
  }
}

html[data-theme="dark"] .login-panel {
  background: linear-gradient(
    135deg,
    rgba(11, 39, 29, 0.92) 0%,
    rgba(4, 24, 19, 0.92) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.18);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(79, 223, 174, 0.12);
}

html[data-theme="dark"] .login-hero__title,
html[data-theme="dark"] .login-hero h1 {
  color: #ffffff !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .login-hero__subtitle,
html[data-theme="dark"] .login-hero p {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .login-hero__link {
  color: #4fdfae;
  text-shadow: 0 1px 4px rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .login-hero__link:hover {
  color: #5eeabe;
}

html[data-theme="dark"] .login-hero__link--primary {
  color: #5eeabe;
  text-shadow: 0 1px 4px rgba(79, 223, 174, 0.4);
}

html[data-theme="dark"] .login-field label {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .login-input {
  background: rgba(8, 24, 18, 0.6);
  border-color: rgba(79, 223, 174, 0.25);
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .login-input:focus {
  border-color: #4fdfae;
  box-shadow: 0 0 0 3px rgba(79, 223, 174, 0.2);
}

/* MudBlazor overrides (somente no login) */
html[data-theme="dark"] .login-panel .mud-input-root,
html[data-theme="dark"] .login-panel .mud-input {
  color: #ffffff !important;
}

html[data-theme="dark"] .login-panel .mud-input-label,
html[data-theme="dark"] .login-panel .mud-input-helper-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"]
  .login-panel
  .mud-input-outlined
  .mud-input-outlined-border {
  border-color: rgba(79, 223, 174, 0.2) !important;
}

html[data-theme="dark"]
  .login-panel
  .mud-input-outlined:hover
  .mud-input-outlined-border {
  border-color: rgba(79, 223, 174, 0.4) !important;
}

html[data-theme="dark"]
  .login-panel
  .mud-input-outlined.mud-input-focused
  .mud-input-outlined-border {
  border-color: #4fdfae !important;
}

html[data-theme="dark"] .login-panel .mud-alert {
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .login-panel .mud-divider {
  background-color: rgba(79, 223, 174, 0.2);
}

html[data-theme="dark"] .login-panel .validation-message {
  color: #ef5350 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .login-panel .mud-paper {
  background-color: rgba(10, 26, 20, 0.5) !important;
  backdrop-filter: blur(8px);
}

.login-panel .mud-button-outlined {
  transition: all 0.3s ease;
}

.login-panel .mud-button-outlined:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 77, 131, 0.2);
}

.login-external-row .mud-button-outlined:hover,
.login-external-row .mud-button-filled:hover {
  transform: none !important;
}

html[data-theme="dark"] .login-panel .mud-button-outlined {
  border-color: rgba(79, 223, 174, 0.3) !important;
  background: rgba(79, 223, 174, 0.05) !important;
}

html[data-theme="dark"] .login-panel .mud-button-outlined:hover {
  border-color: rgba(79, 223, 174, 0.5) !important;
  background: rgba(79, 223, 174, 0.1) !important;
  box-shadow: 0 4px 12px rgba(79, 223, 174, 0.25);
}

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

/* === Partidas === */
.partidas-shell {
  padding: 0.75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.partidas-hero {
  margin-bottom: 0.25rem;
}

.partidas-hero__card {
  border-radius: 24px;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    var(--fb-hero-1, #0c1f3a) 0%,
    var(--fb-hero-2, #0b4d83) 45%,
    var(--fb-hero-3, #1a8f6a) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.partidas-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.9;
}

.partidas-hero__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.partidas-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.partidas-hero__meta div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.partidas-hero__meta strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .partidas-hero__meta div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.partidas-scoreboard {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.partidas-scoreboard__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.partidas-scoreboard__team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 0;
}

.partidas-scoreboard__team:last-child {
  justify-content: flex-end;
}

.partidas-scoreboard__team span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partidas-scoreboard__team strong {
  display: block;
  font-size: 1rem;
  color: #fdfdfd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partidas-team-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

.partidas-team-switch__btn {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0 !important;
  min-width: unset;
  text-transform: uppercase;
}

.partidas-team-switch__btn .mud-icon-root {
  font-size: 1rem;
}

.partidas-team-switch .mud-menu-item {
  text-transform: none;
}

.partidas-scoreboard__score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  justify-self: center;
}

.partidas-scoreboard__vs {
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.partidas-hero__options-btn {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.partidas-hero__options-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

.partidas-panel {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
}

.partidas-panel .mud-card-content {
  padding: 1.25rem;
}

@media (max-width: 640px) {
  .partidas-shell {
    padding: 0.5rem 0.65rem 1.25rem;
    gap: 1rem;
  }

  .partidas-hero__card {
    padding: 1rem;
    border-radius: 18px;
    gap: 0.75rem;
  }

  .partidas-hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .partidas-hero__meta div {
    width: auto;
    border-radius: 10px;
    padding: 0.4rem 0.5rem;
  }

  .partidas-scoreboard {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.5rem;
  }

  .partidas-scoreboard__teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
  }

  .partidas-scoreboard__score {
    font-size: 1.5rem;
  }

  .partidas-hero__options-btn {
    width: 100%;
  }

  .partidas-panel {
    border-radius: 20px;
  }

  .partidas-panel .mud-card-content {
    padding: 0.85rem;
  }
}

.partidas-timer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem;
}

.partidas-timer__action {
  background: rgba(12, 31, 58, 0.08);
  border-radius: 999px;
}

.partidas-timer__action--danger {
  background: rgba(255, 99, 71, 0.15);
}

.partidas-timer__display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f3f5f7;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.partidas-timer__icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b4d83, #1a8f6a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.partidas-timer__info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.partidas-timer__info span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d6368;
}

.partidas-timer__info strong {
  font-size: 1.3rem;
  color: #222;
}

.partidas-timer .mud-icon-root {
  font-size: 1.6rem;
}

.partidas-timer .mud-icon-button-root {
  padding: 0.25rem;
}

.partidas-roster {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.partidas-roster__panel {
  background: #fff;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.partidas-roster__header span {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #6f7782;
}

.partidas-roster__header strong {
  font-size: 1.05rem;
  color: #111;
}

.partidas-roster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.15rem;
}

.partidas-player {
  padding: 0.4rem 0.45rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(12, 31, 58, 0.05) 0%,
    rgba(26, 143, 106, 0.12) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(11, 77, 131, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 80px;
}

.partidas-player__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.partidas-player__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.partidas-player__info strong {
  font-size: 0.9rem;
  color: #0c1f3a;
}

.partidas-player__info span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #566374;
}

.partidas-player__tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.partidas-player__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partidas-player__chip {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.5rem;
  color: #0c1f3a;
}

.partidas-player__action-btn {
  border: none;
  background: rgba(11, 77, 131, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c1f3a;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(11, 77, 131, 0.08);
}

.partidas-player__action-btn .mud-icon-root {
  font-size: 1.2rem;
}

.substituicao-modal {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem 0.25rem 0.5rem 0;
}

.substituicao-modal__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.substituicao-modal__header span {
  display: block;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #6f7782;
}

.substituicao-modal__header strong {
  font-size: 1rem;
  color: #0c1f3a;
}

.substituicao-modal__search {
  width: 100%;
}

.substituicao-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.substituicao-modal__empty {
  text-align: center;
  color: #757575;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
}

.substituicao-modal__empty .mud-icon-root {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.substituicao-card {
  border: none;
  border-radius: 18px;
  padding: 0.65rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.substituicao-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  flex-shrink: 0;
}

.substituicao-card__avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.substituicao-card__avatar .mud-avatar {
  width: 100% !important;
  height: 100% !important;
}

.substituicao-card__info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.substituicao-card__info strong {
  font-size: 0.95rem;
  color: #0c1f3a;
}

.substituicao-card__info span {
  font-size: 0.75rem;
  color: #5c6470;
}

.substituicao-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.substituicao-card .mud-icon-root {
  color: #1a8f6a;
}

.partidas-drawer {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.partidas-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
}

.partidas-drawer__menu {
  padding: 0.75rem 0.75rem 1rem;
}

.partidas-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 18px;
  background: rgba(12, 31, 58, 0.04);
  color: #0c1f3a !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.partidas-drawer__link:hover {
  background: rgba(26, 143, 106, 0.12);
  transform: translateX(2px);
}

.partidas-drawer__link--danger {
  background: rgba(255, 99, 71, 0.1);
}

.partidas-drawer__link--danger:hover {
  background: rgba(255, 99, 71, 0.18);
}

/* ========== Cards de Estatísticas - Timeline ========== */
.estatisticas-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.estatistica-item {
  --estatistica-color: var(--mud-palette-primary);
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(63, 81, 181, 0.08),
    var(--mud-palette-surface) 78%
  );
  background: var(--estatistica-surface);
  border: 1px solid var(--mud-palette-lines-default);
  border-left: 6px solid var(--estatistica-color);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  color: var(--mud-palette-text-primary);
}

.estatistica-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.estatistica-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.estatistica-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 0, 0, 0.05) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: var(--estatistica-color);
}

.estatistica-item__icon img {
  width: 24px;
  height: 24px;
}

/* Ícone de assistência é mais "largo"; aumenta sem distorcer */
.estatistica-assistencia .estatistica-item__icon img {
  width: 34px;
  height: auto;
}

.estatistica-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.estatistica-item__name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mud-palette-text-primary);
}

.estatistica-item__details {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--mud-palette-text-secondary);
}

.estatistica-item__badge {
  background: color-mix(
    in srgb,
    var(--mud-palette-text-primary) 10%,
    transparent
  );
  color: var(--mud-palette-text-primary);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.estatistica-item__type {
  font-weight: 700;
  color: var(--estatistica-color);
}

.estatistica-item__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.estatistica-item__separator {
  color: color-mix(in srgb, var(--mud-palette-text-secondary) 55%, transparent);
}

.estatistica-item__delete {
  color: var(--mud-palette-text-secondary);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.estatistica-item__delete:hover {
  color: var(--mud-palette-error);
  transform: translateY(-1px);
}

.estatistica-gol {
  --estatistica-color: #2e7d32;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(46, 125, 50, 0.12),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-assistencia {
  --estatistica-color: #0b4d83;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(11, 77, 131, 0.12),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-desarme {
  --estatistica-color: #7b1fa2;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(123, 31, 162, 0.12),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-defesa {
  --estatistica-color: #0277bd;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(2, 119, 189, 0.12),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-gol-contra {
  --estatistica-color: #c62828;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(198, 40, 40, 0.12),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-cartao-amarelo {
  --estatistica-color: #f5c542;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(245, 197, 66, 0.18),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-cartao-vermelho {
  --estatistica-color: #e53935;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(229, 57, 53, 0.14),
    var(--mud-palette-surface) 76%
  );
}

.estatistica-outro {
  --estatistica-color: #64748b;
  --estatistica-surface: linear-gradient(
    90deg,
    rgba(100, 116, 139, 0.12),
    var(--mud-palette-surface) 76%
  );
}

@media (max-width: 600px) {
  .estatistica-item__content {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  .estatistica-item__icon {
    width: 36px;
    height: 36px;
  }

  .estatistica-item__name {
    font-size: 0.98rem;
  }

  .estatistica-item__details {
    font-size: 0.8rem;
  }
}

/* ========== Modal de Assistência - Jogadores ========== */
.mud-dialog.assistencia-modal-dialog {
  max-height: min(78vh, 720px);
}

.mud-dialog.assistencia-modal-dialog .mud-dialog-content {
  padding: 0.9rem;
}

.assistencia-modal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: calc(min(78vh, 720px) - 1.8rem);
}

.assistencia-modal__list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
}

.assistencia-modal__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 30%);
}

.assistencia-modal__none {
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  font-weight: 700;
  border-radius: 14px;
}

.mud-dialog .player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.7rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(12, 31, 58, 0.08);
  border: 2px solid rgba(12, 31, 58, 0.06);
  min-height: 122px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mud-dialog .player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(26, 143, 106, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.mud-dialog .player-card:hover::before {
  left: 100%;
}

.mud-dialog .player-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(26, 143, 106, 0.15);
  border-color: rgba(26, 143, 106, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.mud-dialog .player-card:active {
  transform: translateY(-4px) scale(1.01);
}

.mud-dialog .player-card .avatar-wrapper-jogador {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 143, 106, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.mud-dialog .player-card:hover .avatar-wrapper-jogador {
  transform: scale(1.1) rotate(3deg);
}

.mud-dialog .player-card .avatar-wrapper-jogador .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mud-dialog .player-card .avatar-wrapper-jogador .mud-avatar {
  width: 48px !important;
  height: 48px !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #1a8f6a 0%, #0b4d83 100%);
}

.player-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0c1f3a;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.15;
  word-break: break-word;
}

.posicao-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #566374;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.15;
}

html[data-theme="dark"] .mud-dialog.assistencia-modal-dialog {
  background: linear-gradient(
    135deg,
    rgba(8, 28, 22, 0.98) 0%,
    rgba(5, 46, 35, 0.98) 55%,
    rgba(8, 28, 22, 0.98) 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .mud-dialog.assistencia-modal-dialog .mud-dialog-title {
  color: rgba(244, 247, 243, 0.95) !important;
}

html[data-theme="dark"] .mud-dialog.assistencia-modal-dialog .mud-button-close {
  color: rgba(244, 247, 243, 0.72) !important;
}

html[data-theme="dark"] .assistencia-modal .player-card {
  background: linear-gradient(
    180deg,
    rgba(17, 38, 33, 0.96) 0%,
    rgba(10, 27, 23, 0.96) 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.24) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .assistencia-modal .player-card:hover {
  background: linear-gradient(
    180deg,
    rgba(20, 47, 38, 0.98) 0%,
    rgba(11, 32, 26, 0.98) 100%
  ) !important;
  border-color: rgba(79, 223, 174, 0.42) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(79, 223, 174, 0.12) !important;
}

html[data-theme="dark"]
  .assistencia-modal
  .player-card
  .avatar-wrapper-jogador {
  background: rgba(79, 223, 174, 0.16) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] .assistencia-modal .player-card .player-name {
  color: rgba(244, 247, 243, 0.96) !important;
}

html[data-theme="dark"] .assistencia-modal .player-card .posicao-name {
  color: rgba(244, 247, 243, 0.65) !important;
}

html[data-theme="dark"] .assistencia-modal .assistencia-modal__none {
  background: linear-gradient(120deg, #4faddf, #3479d8) !important;
  color: #f4f7f3 !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .assistencia-modal__footer {
  background: linear-gradient(
    180deg,
    rgba(8, 28, 22, 0) 0%,
    rgba(8, 28, 22, 0.96) 32%
  ) !important;
}

@media (max-width: 600px) {
  .mud-dialog.assistencia-modal-dialog {
    max-height: 80vh;
  }

  .mud-dialog.assistencia-modal-dialog .mud-dialog-content {
    padding: 0.75rem;
  }

  .assistencia-modal {
    gap: 0.6rem;
    max-height: calc(80vh - 1.5rem);
  }

  .mud-dialog .player-card {
    min-height: 106px;
    padding: 0.7rem 0.55rem;
    gap: 0.35rem;
    border-radius: 16px;
  }

  .mud-dialog .player-card .avatar-wrapper-jogador {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .mud-dialog .player-card .avatar-wrapper-jogador .mud-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.05rem !important;
  }

  .player-name {
    font-size: 0.82rem;
  }

  .posicao-name {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .assistencia-modal__none {
    max-width: none;
  }
}

/* ========== Layout de Times - Partidas ========== */
.teams-vs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.team-side {
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  border-radius: 24px;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(12, 31, 58, 0.08);
  min-width: 0;
  overflow: hidden;
}

.team-left {
  border: 2px solid rgba(26, 143, 106, 0.2);
}

.team-right {
  border: 2px solid rgba(11, 77, 131, 0.2);
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(12, 31, 58, 0.08);
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0c1f3a;
}

.team-info-right {
  text-align: right;
}

.team-average {
  font-size: 0.85rem;
  color: #566374;
  font-weight: 500;
  display: block;
}

.team-actions-compact {
  display: flex;
  gap: 0.5rem;
}

.team-actions-compact .mud-icon-button {
  background: rgba(26, 143, 106, 0.12);
  border: 1px solid rgba(26, 143, 106, 0.25);
  transition: all 0.2s ease;
}

.team-actions-compact .mud-icon-button:hover {
  background: rgba(26, 143, 106, 0.2);
  border-color: rgba(26, 143, 106, 0.4);
  transform: scale(1.05);
}

.team-actions-compact .mud-icon-button .mud-icon-root {
  color: #1a8f6a;
}

.team-players {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-actions-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(12, 31, 58, 0.1);
}

.team-actions-footer .mud-button-root {
  border-radius: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

.team-actions-footer .mud-button-outlined {
  border-width: 1.5px;
}

.team-actions-footer .mud-button-filled {
  box-shadow: 0 2px 8px rgba(11, 133, 91, 0.25);
}

.team-actions-footer .mud-button-filled:hover {
  box-shadow: 0 4px 12px rgba(11, 133, 91, 0.35);
  transform: translateY(-1px);
}

/* Player card inline (usado em sortear times, estatísticas, etc) */
.player-card-inline {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  position: relative;
  width: 100%;
}

.player-avatar {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.player-avatar .avatar-image,
.player-avatar .mud-avatar {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.player-avatar .avatar-image {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-avatar .mud-avatar {
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.position-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.player-info strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0c1f3a;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info span {
  font-size: 0.62rem;
  color: #566374;
  margin-bottom: 0.1rem;
}

.player-info-right {
  align-items: flex-end;
}

.player-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0c1f3a;
}

.player-stars .mud-icon-root {
  color: #ffd700 !important;
  font-size: 0.85rem !important;
}

.edit-stats-btn {
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.2s ease;
  margin-left: 0.25rem;
}

.edit-stats-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.edit-stats-btn-left {
  margin-left: 0;
  margin-right: 0.25rem;
}

/* Responsividade */
@media (min-width: 1024px) {
  .team-players {
    gap: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .team-side {
    padding: 1rem;
  }

  .player-card-inline {
    padding: 0.75rem;
  }

  .player-avatar {
    width: 44px;
    height: 44px;
  }

  .player-info strong {
    font-size: 0.9rem;
  }

  .team-info h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .teams-vs-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  .team-side {
    padding: 0.5rem;
  }

  .team-header {
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
  }

  .team-identity {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
  }

  .team-info h3 {
    font-size: 0.75rem;
  }

  .team-average {
    font-size: 0.65rem;
  }

  .team-actions-compact {
    justify-content: center;
  }

  .team-actions-compact .mud-icon-button {
    width: 32px;
    height: 32px;
  }

  .team-actions-compact .mud-icon-button .mud-icon-root {
    font-size: 1.1rem;
  }

  .team-actions-footer {
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }

  .team-actions-footer .mud-button-root {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }

  .player-card-inline {
    padding: 0.3rem 0.35rem;
    gap: 0.3rem;
  }

  .player-avatar {
    width: 34px;
    height: 34px;
  }

  .position-badge {
    top: -3px;
    right: -3px;
    font-size: 0.48rem;
    padding: 0.1rem 0.2rem;
  }

  .player-info strong {
    font-size: 0.65rem;
  }

  .player-info span {
    font-size: 0.55rem;
  }

  .player-stars {
    gap: 0.15rem;
    font-size: 0.65rem;
  }

  .player-stars .mud-icon-root {
    font-size: 0.75rem !important;
  }

  .team-players {
    gap: 0.25rem;
  }

  .edit-stats-btn {
    opacity: 0.5;
    margin-left: 0.15rem;
  }

  .edit-stats-btn-left {
    margin-left: 0;
    margin-right: 0.15rem;
  }
}

@media (max-width: 390px) {
  .teams-vs-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
  }

  .team-side {
    padding: 0.4rem;
  }

  .team-info h3 {
    font-size: 0.7rem;
  }

  .team-average {
    font-size: 0.58rem;
  }

  .player-card-inline {
    padding: 0.25rem 0.3rem;
    gap: 0.25rem;
  }

  .player-avatar {
    width: 30px;
    height: 30px;
  }

  .position-badge {
    font-size: 0.45rem;
    padding: 0.08rem 0.18rem;
  }

  .player-info strong {
    font-size: 0.62rem;
  }

  .player-info span {
    font-size: 0.52rem;
  }

  .team-players {
    gap: 0.2rem;
  }

  .player-stars {
    font-size: 0.6rem;
  }

  .player-stars .mud-icon-root {
    font-size: 0.7rem !important;
  }

  .edit-stats-btn {
    opacity: 0.5;
    margin-left: 0.1rem;
  }

  .edit-stats-btn-left {
    margin-left: 0;
    margin-right: 0.1rem;
  }
}

/* === Partidas (Dark Mode) === */
html[data-theme="dark"] .partidas-panel {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  ) !important;
  border: 1px solid rgba(244, 247, 243, 0.14);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .partidas-panel .mud-card-content {
  color: rgba(244, 247, 243, 0.92);
}

html[data-theme="dark"] .partidas-timer__display {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .partidas-timer__info span {
  color: rgba(244, 247, 243, 0.65);
}

html[data-theme="dark"] .partidas-timer__info strong {
  color: rgba(244, 247, 243, 0.95);
}

html[data-theme="dark"] .partidas-timer__action {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .partidas-timer__action--danger {
  background: rgba(255, 107, 107, 0.12);
}

html[data-theme="dark"] .partidas-roster__panel {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(244, 247, 243, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .partidas-roster__header span {
  color: rgba(244, 247, 243, 0.65);
}

html[data-theme="dark"] .partidas-roster__header strong {
  color: rgba(244, 247, 243, 0.94);
}

html[data-theme="dark"] .partidas-player {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(244, 247, 243, 0.12);
}

html[data-theme="dark"] .partidas-player__info strong {
  color: rgba(244, 247, 243, 0.92);
}

html[data-theme="dark"] .partidas-player__info span {
  color: rgba(244, 247, 243, 0.62);
}

html[data-theme="dark"] .partidas-player__chip {
  color: rgba(244, 247, 243, 0.82);
}

html[data-theme="dark"] .partidas-player__action-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 243, 0.9);
  box-shadow: inset 0 0 0 1px rgba(244, 247, 243, 0.14);
}

html[data-theme="dark"] .teams-vs-layout .team-side {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  border-color: rgba(244, 247, 243, 0.14);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .teams-vs-layout .team-left {
  border-color: rgba(79, 223, 174, 0.28);
}

html[data-theme="dark"] .teams-vs-layout .team-right {
  border-color: rgba(79, 173, 223, 0.28);
}

html[data-theme="dark"] .teams-vs-layout .team-header {
  border-bottom-color: rgba(244, 247, 243, 0.12);
}

html[data-theme="dark"] .teams-vs-layout .team-info h3 {
  color: rgba(244, 247, 243, 0.94);
}

html[data-theme="dark"] .teams-vs-layout .team-average {
  color: rgba(244, 247, 243, 0.68);
}

html[data-theme="dark"] .player-info strong,
html[data-theme="dark"] .player-stars {
  color: rgba(244, 247, 243, 0.92);
}

html[data-theme="dark"] .player-info span {
  color: rgba(244, 247, 243, 0.62);
}

html[data-theme="dark"] .player-avatar .avatar-image {
  border-color: rgba(244, 247, 243, 0.22);
}

html[data-theme="dark"] .position-badge {
  border-color: rgba(11, 39, 29, 0.95);
}

html[data-theme="dark"] .team-actions-footer {
  border-top-color: rgba(244, 247, 243, 0.12);
}

html[data-theme="dark"] .substituicao-modal__header span {
  color: rgba(244, 247, 243, 0.65);
}

html[data-theme="dark"] .substituicao-modal__header strong,
html[data-theme="dark"] .substituicao-card__info strong {
  color: rgba(244, 247, 243, 0.94);
}

html[data-theme="dark"] .substituicao-card__info span {
  color: rgba(244, 247, 243, 0.62);
}

html[data-theme="dark"] .substituicao-modal__empty {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 243, 0.65);
}

html[data-theme="dark"] .substituicao-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 247, 243, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .partidas-drawer {
  background: linear-gradient(180deg, #0b271d 0%, #041813 100%);
  border: 1px solid rgba(244, 247, 243, 0.12);
}

html[data-theme="dark"] .partidas-drawer__link {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 243, 0.9) !important;
}

html[data-theme="dark"] .partidas-drawer__link:hover {
  background: rgba(79, 223, 174, 0.12);
}

/* ======================================
   ⚽ RACHAS PAGE  
   ====================================== */

.rachas-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 0.75rem 3rem;
}

.rachas-hero {
  padding: 0.75rem 0 0.25rem;
}

.rachas-hero__card {
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 50%, #1a8f6a 100%);
  border: none;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  color: #fdfdfd;
  box-shadow: 0 20px 36px rgba(12, 31, 58, 0.25);
}

.rachas-hero__eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.rachas-hero__card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.rachas-hero__card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  line-height: 1.5;
}

.rachas-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rachas-hero__stats {
  margin-left: auto;
  min-width: 260px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.rachas-hero__stats span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.rachas-hero__stats strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 800;
}

.rachas-empty,
.rachas-filters,
.rachas-grid-section {
  margin-top: 1rem;
}

.rachas-empty__card {
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  background: #ffffff;
}

.rachas-empty__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rachas-filters__card {
  border-radius: 20px;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.rachas-filters__row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.rachas-filters__field {
  flex: 1;
  min-width: 240px;
}

.rachas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.racha-card-modern {
  border-radius: 20px;
  padding: 1.25rem;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.racha-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(12, 31, 58, 0.15);
  border-color: #1a8f6a;
}

.racha-card-modern__avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.racha-card-modern__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.racha-card-modern__name {
  font-weight: 700;
  color: #0c1f3a;
  text-align: center;
  line-height: 1.3;
}

.racha-card-modern__invite {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invite-code-section {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.invite-field {
  flex: 1;
}

.invite-actions {
  display: flex;
  gap: 0.25rem;
}

.racha-card-modern__actions {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.racha-card-modern__actions .mud-button-root {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

.racha-card-modern__buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .rachas-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rachas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .racha-card-modern {
    min-width: 280px;
  }
}

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

  .racha-card-modern {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .rachas-hero__card {
    padding: 1rem;
  }

  .rachas-hero__stats {
    width: 100%;
    min-width: 0;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .rachas-hero__stats strong {
    font-size: 1.05rem;
  }

  .racha-card-modern {
    padding: 1rem;
  }
}

/* ======================================
   � RESULTADOS/PARTIDAS PAGE  
   ====================================== */

.resultados-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 0.75rem 3rem;
}

.resultados-hero {
  background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 50%, #1a8f6a 100%);
  border-radius: 28px;
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.resultados-hero p {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.2rem;
  opacity: 0.85;
}

.resultados-hero h2 {
  margin: 0;
  font-size: 1.4rem;
}

.resultados-hero__back {
  color: #fff !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.75rem;
}

.resultados-card {
  border-radius: 24px;
  padding: 1rem;
}

.resultados-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resultados-partida {
  border-radius: 20px;
  background: #fff;
  padding: 0.5rem;
}

/* =============================================
   RESULTADO-PANEL - Legacy Styles (Deprecated)
   ============================================= */
/* O novo estilo está em DetalhePartidas.razor.css */
.resultado-panel {
  border-radius: 24px;
  background: transparent;
}

.resultado-panel__expansion {
  border-radius: 24px;
  background: #fff8e6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.resultado-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.resultado-panel__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.resultado-panel__score strong {
  display: block;
  font-size: 1.4rem;
  color: #0c1f3a;
}

.resultado-panel__versus {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5c6470;
}

.resultado-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 1rem;
}

.resultado-panel__tempo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 18px;
  background: rgba(11, 77, 131, 0.08);
}

.resultado-panel__tempo span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5d6368;
}

.resultado-panel__tempo strong {
  display: block;
  font-size: 1rem;
}

.resultado-panel__stats {
  border-radius: 18px;
  background: #fff;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Layout times lado a lado */
.partida-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.partida-times-grid .time-coluna + .time-coluna {
  margin-top: 0;
}

.time-coluna {
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.time-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  background: rgba(11, 77, 131, 0.08);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.time-header strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0c1f3a;
}

.time-jogadores {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jogador-stat {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 24px;
  align-items: flex-start;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  font-size: 0.7rem;
}

.jogador-stat img {
  opacity: 0.8;
}

.jogador-nome {
  font-weight: 600;
  color: #0c1f3a;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.jogador-nome-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.jogador-manual-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  text-transform: none;
}

.jogador-tempo {
  font-size: 0.65rem;
  color: #718096;
  font-family: monospace;
  justify-self: end;
}

.jogador-delete {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
}

.jogador-delete .mud-icon-root {
  font-size: 14px !important;
}

.sem-eventos {
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: #a0aec0;
  font-style: italic;
}

@media (max-width: 560px) {
  .evento-card__content {
    padding: 0.9rem;
  }

  .resultado-panel__body {
    padding: 0.4rem 0.5rem 0.6rem;
  }

  .resultado-panel__tempo {
    padding: 0.4rem 0.5rem;
  }

  .partida-times-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 0.35rem 0;
  }

  .partida-times-grid .time-coluna + .time-coluna {
    margin-top: 0.25rem;
  }

  .time-coluna {
    padding: 0.45rem;
  }

  .time-header {
    justify-content: space-between;
  }

  .jogador-stat {
    grid-template-columns: 20px minmax(0, 1fr) auto 24px;
  }
}

/* ======================================
   �🎲 SORTEIO PAGE - DARK MODE  
   ====================================== */

html[data-theme="dark"] .sorteio-hero__card {
  background: linear-gradient(
    135deg,
    #0a3d2e 0%,
    #084d3a 50%,
    #0a6148 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(79, 223, 174, 0.15);
  position: relative;
  overflow: hidden;
}

@keyframes sorteio-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

html[data-theme="dark"] .sorteio-hero__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(79, 223, 174, 0.15) 50%,
    transparent 100%
  );
  animation: sorteio-shimmer 4s infinite;
  z-index: 0;
}

html[data-theme="dark"] .sorteio-hero__card > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .sorteio-hero__eyebrow {
  color: #4fdfae !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

html[data-theme="dark"] .sorteio-hero__card h1 {
  color: #ffffff !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 900;
}

html[data-theme="dark"] .sorteio-hero__card p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .sorteio-hero__stats {
  border-left-color: rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .sorteio-hero__stats span {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sorteio-hero__stats strong {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .sorteio-config__card {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .sorteio-section-title {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sorteio-table {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* ======================================
   🏆 RESULTADOS/PARTIDAS - DARK MODE  
   ====================================== */

html[data-theme="dark"] .resultados-hero {
  background: linear-gradient(135deg, #0a1929 0%, #0d3a5c 50%, #0a4d3a 100%);
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .resultados-hero__back {
  border-color: rgba(79, 223, 174, 0.3);
  background: rgba(79, 223, 174, 0.1);
}

html[data-theme="dark"] .resultados-card {
  background: rgba(18, 28, 43, 0.6);
}

html[data-theme="dark"] .resultados-partida {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .resultado-panel__expansion {
  background: rgba(79, 223, 174, 0.05);
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .resultado-panel__score strong {
  color: #4fdfae;
}

html[data-theme="dark"] .resultado-panel__versus {
  color: #b0bbc8;
}

html[data-theme="dark"] .resultado-panel__tempo {
  background: rgba(79, 223, 174, 0.1);
  border: 1px solid rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .resultado-panel__tempo span {
  color: #b0bbc8;
}

html[data-theme="dark"] .resultado-panel__tempo strong {
  color: #ffffff;
}

html[data-theme="dark"] .resultado-panel__stats {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .time-coluna {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .time-header {
  background: rgba(79, 223, 174, 0.1);
  border: 1px solid rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .time-header strong {
  color: #4fdfae;
}

html[data-theme="dark"] .jogador-stat {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .jogador-nome {
  color: #ffffff;
}

html[data-theme="dark"] .jogador-tempo {
  color: #b0bbc8;
}

html[data-theme="dark"] .sem-eventos {
  color: #6b7885;
}

/* ======================================
   💎 PREMIUM CARD - DARK MODE  
   ====================================== */

html[data-theme="dark"] .premium-card {
  background: linear-gradient(
    135deg,
    rgba(10, 38, 28, 0.92) 0%,
    rgba(4, 24, 19, 0.92) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(79, 223, 174, 0.12);
  backdrop-filter: blur(10px);
  margin-top: 1rem;
}

html[data-theme="dark"] .premium-card:hover {
  border-color: rgba(79, 223, 174, 0.35);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(79, 223, 174, 0.18),
    inset 0 1px 0 rgba(79, 223, 174, 0.16);
}

html[data-theme="dark"] .premium-card--active {
  background: linear-gradient(135deg, #0a6148 0%, #084d3a 100%);
  border: 1px solid rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .premium-card__icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.22) 0%,
    rgba(79, 223, 174, 0.12) 100%
  );
}

html[data-theme="dark"] .premium-card__header {
  padding: 1.5rem 1.5rem 0.75rem;
}

html[data-theme="dark"] .premium-card__body {
  padding: 0 1.5rem 1.5rem;
}

html[data-theme="dark"] .premium-card__title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .premium-card__subtitle {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .premium-card__benefits {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 223, 174, 0.16);
}

html[data-theme="dark"] .premium-card__benefit-text {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .premium-card__benefit-list li {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .premium-card__pricing {
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .premium-card__price {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .premium-card__price strong {
  color: #4fdfae;
}

html[data-theme="dark"] .premium-card__price-sub {
  color: rgba(255, 255, 255, 0.52);
}

/* ======================================
   ⚽ RACHAS PAGE - DARK MODE  
   ====================================== */

html[data-theme="dark"] .rachas-hero__card {
  background: linear-gradient(
    135deg,
    #0a3d2e 0%,
    #084d3a 50%,
    #0a6148 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .rachas-hero__eyebrow {
  color: #4fdfae !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .rachas-hero__card h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .rachas-hero__card p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .rachas-hero__stats {
  border-left-color: rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .rachas-hero__stats span {
  color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .rachas-hero__stats strong {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .rachas-empty__card {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .rachas-filters__card {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-card-modern {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-card-modern:hover {
  border-color: rgba(79, 223, 174, 0.35);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(79, 223, 174, 0.15);
}

html[data-theme="dark"] .racha-card-modern__avatar {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.22) 0%,
    rgba(79, 223, 174, 0.12) 100%
  );
}

html[data-theme="dark"] .racha-card-modern__name {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .racha-card-modern__actions .mud-button-outlined {
  border-width: 1.5px;
  font-weight: 700;
}

html[data-theme="dark"]
  .racha-card-modern__actions
  .mud-button-outlined.mud-button-root {
  color: #4fdfae;
  border-color: rgba(79, 223, 174, 0.4);
  background: rgba(79, 223, 174, 0.08);
}

html[data-theme="dark"]
  .racha-card-modern__actions
  .mud-button-outlined.mud-button-root:hover {
  border-color: #4fdfae;
  background: rgba(79, 223, 174, 0.15);
  box-shadow: 0 2px 8px rgba(79, 223, 174, 0.2);
}

html[data-theme="dark"]
  .racha-card-modern__actions
  .mud-button-root[class*="mud-error"] {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
}

html[data-theme="dark"]
  .racha-card-modern__actions
  .mud-button-root[class*="mud-error"]:hover {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

/* ======================================
   ⚽ RACHA PROFILE (MEU RACHA) - DARK MODE
   ====================================== */

html[data-theme="dark"] .racha-profile {
  background: transparent;
}

html[data-theme="dark"] .racha-profile .player-card {
  overflow: hidden;
  min-width: 0;
}

html[data-theme="dark"] .racha-profile .player-card > * {
  min-width: 0;
}

html[data-theme="dark"] .racha-profile .player-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-theme="dark"] .racha-profile .info-card {
  background: linear-gradient(
    135deg,
    #0a3d2e 0%,
    #084d3a 50%,
    #0a6148 100%
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(79, 223, 174, 0.15) !important;
}

html[data-theme="dark"] .racha-profile .info-card__eyebrow {
  color: #4fdfae !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

html[data-theme="dark"] .racha-profile .info-card__title,
html[data-theme="dark"] .racha-profile .info-card__subtitle {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .racha-profile .info-card__icon {
  background: rgba(79, 223, 174, 0.16) !important;
  color: #4fdfae !important;
}

html[data-theme="dark"] .racha-profile .info-card__badge {
  background: #4fdfae !important;
  color: #0a3d2e !important;
}

html[data-theme="dark"] .racha-profile .invite-inline__row .mud-chip {
  background: rgba(79, 223, 174, 0.16) !important;
  color: #fdfdfd !important;
}

html[data-theme="dark"] .racha-profile .invite-inline__row .mud-button-root {
  background: #4fdfae !important;
  color: #0a3d2e !important;
}

html[data-theme="dark"] .racha-profile .info-card__stats span {
  color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .racha-profile .info-card__stats strong {
  color: #4fdfae !important;
  text-shadow: 0 2px 8px rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .racha-profile .racha-tabs .mud-tabs-toolbar {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(79, 223, 174, 0.15) !important;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-profile .racha-tabs .mud-tab {
  color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .racha-profile .racha-tabs .mud-tab.mud-tab-active {
  color: #4fdfae !important;
  background: rgba(79, 223, 174, 0.12) !important;
  box-shadow:
    0 2px 8px rgba(79, 223, 174, 0.2),
    inset 0 0 0 1px rgba(79, 223, 174, 0.25) !important;
}

html[data-theme="dark"] .racha-profile .empty-state {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(79, 223, 174, 0.15) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .racha-profile .empty-state h3 {
  color: rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="dark"] .racha-profile .empty-state p {
  color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .racha-profile .section-intro h3,
html[data-theme="dark"] .racha-profile .section-header h3 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .racha-profile .player-card {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.5),
    rgba(15, 23, 42, 0.8)
  ) !important;
  border: 1px solid rgba(79, 223, 174, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .racha-profile .player-card:hover {
  border-color: rgba(79, 223, 174, 0.5) !important;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(79, 223, 174, 0.25) !important;
}

html[data-theme="dark"] .racha-profile .player-email {
  color: rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="dark"] .racha-profile .player-card .mud-typography-subtitle1 {
  color: rgba(255, 255, 255, 0.95) !important;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

html[data-theme="dark"] .racha-profile .player-card .mud-select {
  width: 100%;
  background: rgba(79, 223, 174, 0.1) !important;
  border: 1px solid rgba(79, 223, 174, 0.2) !important;
}

html[data-theme="dark"] .racha-profile .player-card .mud-select .mud-input {
  color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] .racha-profile .profile-menu__btn {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(79, 223, 174, 0.22) !important;
  border-radius: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] .racha-profile .profile-menu__btn:hover {
  border-color: rgba(79, 223, 174, 0.4) !important;
  background: rgba(79, 223, 174, 0.12) !important;
}

html[data-theme="dark"] .racha-profile .profile-menu__btn .mud-button-end-icon {
  color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-control {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(79, 223, 174, 0.22) !important;
  border-radius: 14px !important;
  padding: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-root {
  height: 44px;
  min-height: 44px;
  align-items: center;
  padding: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-slot {
  padding: 0 0.85rem !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92) !important;
  justify-content: center;
  text-align: center;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-underline {
  display: none !important;
}

html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-outlined-border,
html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-outlined-border-legend {
  display: none !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input {
  padding: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-adornment {
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-root {
  position: relative;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-root::before,
html[data-theme="dark"] .racha-profile .profile-select .mud-input-root::after {
  display: none !important;
  border: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-line {
  display: none !important;
}

html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-outlined-border,
html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-outlined-border-legend {
  display: none !important;
}

html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-adornment-start {
  display: none !important;
}

html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-adornment-end {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
}

html[data-theme="dark"]
  .racha-profile
  .profile-select
  .mud-input-adornment.mud-input-adornment-end {
  margin-left: 0 !important;
}

html[data-theme="dark"] .racha-profile .profile-select .mud-input-slot {
  padding-right: 2.1rem !important;
}

html[data-theme="dark"] .racha-profile .player-card .mud-button-outlined {
  border-color: rgba(79, 223, 174, 0.4) !important;
  color: #4fdfae !important;
  background: rgba(79, 223, 174, 0.08) !important;
}

html[data-theme="dark"] .racha-profile .player-card .mud-button-outlined:hover {
  border-color: #4fdfae !important;
  background: rgba(79, 223, 174, 0.18) !important;
  box-shadow: 0 2px 8px rgba(79, 223, 174, 0.25) !important;
}

html[data-theme="dark"] .racha-profile .section-header {
  gap: 0.75rem;
  flex-wrap: wrap;
}

html[data-theme="dark"] .racha-profile .section-header h3 {
  margin: 0;
}

html[data-theme="dark"] .racha-profile .section-header .mud-input-control {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(79, 223, 174, 0.16) !important;
  border-radius: 14px !important;
}

html[data-theme="dark"]
  .racha-profile
  .section-header
  .mud-input-control
  input {
  color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] .racha-profile .section-header .mud-input-adornment {
  color: rgba(255, 255, 255, 0.65) !important;
}

html[data-theme="dark"] .racha-profile .section-header .mud-input-control,
html[data-theme="dark"]
  .racha-profile
  .section-header
  .mud-input-control
  .mud-input {
  max-width: 340px;
  width: 100%;
}

/* ========================================
   RANKING MUNDIAL - FILTERS COMPACT (2x2)
   ======================================== */

/* Layout 2 por linha - inclusive em celulares grandes (≥400px) */
@media (min-width: 400px) {
  .ranking-filters-grid .ranking-filter-item {
    max-width: 50% !important;
    flex-basis: 50% !important;
  }
}

/* Mobile pequeno: manter 1 por linha apenas em telas muito pequenas */
@media (max-width: 399px) {
  .ranking-filters-grid .ranking-filter-item {
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* Garantir espaçamento adequado */
.ranking-filters-grid {
  margin-bottom: 1rem;
}

.ranking-filter-item .mud-input-control {
  width: 100%;
}

/* Ranking - Compact filter toggle pill */
.ranking-filter-summary-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 100, 210, 0.07);
  border: 1px solid rgba(30, 100, 210, 0.25);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 0.82rem;
  color: #1a55b8;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.ranking-filter-summary-btn:hover {
  background: rgba(30, 100, 210, 0.13);
  border-color: rgba(30, 100, 210, 0.42);
}

.ranking-filter-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

html[data-theme="dark"] .ranking-filter-summary-btn {
  background: rgba(99, 160, 255, 0.08);
  border-color: rgba(99, 160, 255, 0.25);
  color: #7eb8ff;
}

html[data-theme="dark"] .ranking-filter-summary-btn:hover {
  background: rgba(99, 160, 255, 0.14);
  border-color: rgba(99, 160, 255, 0.42);
}

/* Pill sobre fundo hero escuro */
.info-card--hero .ranking-filter-summary-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
}

.info-card--hero .ranking-filter-summary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Selects expandidos sobre fundo hero escuro */
.info-card--hero .ranking-filters-grid .mud-input-control {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
}

/* Label (Ano, Filtro, Eventos…) */
.info-card--hero .ranking-filters-grid .mud-input-label,
.info-card--hero .ranking-filters-grid label {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Valor selecionado */
.info-card--hero .ranking-filters-grid .mud-input-slot,
.info-card--hero .ranking-filters-grid .mud-select-input,
.info-card--hero .ranking-filters-grid .mud-input-root input,
.info-card--hero .ranking-filters-grid input {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Ícone de seta (chevron) */
.info-card--hero .ranking-filters-grid .mud-input-adornment,
.info-card--hero .ranking-filters-grid .mud-icon-root {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Borda outlined */
.info-card--hero .ranking-filters-grid .mud-input-outlined-border {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Borda focused */
.info-card--hero .ranking-filters-grid .mud-input-control:focus-within .mud-input-outlined-border {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

/* Ícone MudIcon dentro do button summary */
.info-card--hero .ranking-filter-summary-btn .mud-icon-root {
  color: rgba(255, 255, 255, 0.75) !important;
}


/* ========================================
   PREMIUM CARD STYLES
   ======================================== */

/* Base Card Styles */
.premium-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 39, 69, 0.08);
  box-shadow: 0 8px 24px rgba(15, 39, 69, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  margin-top: 1rem;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 39, 69, 0.18);
  border-color: rgba(31, 163, 124, 0.3);
}

/* Premium Active State - Elegant Design */
.premium-card--active {
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.08) 0%,
    rgba(31, 163, 124, 0.04) 100%
  );
  border: 2px solid #1fa37c;
  box-shadow:
    0 12px 32px rgba(31, 163, 124, 0.2),
    0 0 0 1px rgba(31, 163, 124, 0.1) inset;
}

/* Header */
.premium-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(15, 39, 69, 0.06);
}

.premium-card--active .premium-card__header {
  border-bottom-color: rgba(31, 163, 124, 0.15);
  background: linear-gradient(
    to bottom,
    rgba(31, 163, 124, 0.05) 0%,
    transparent 100%
  );
}

/* Icon Wrapper */
.premium-card__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.12) 0%,
    rgba(31, 163, 124, 0.06) 100%
  );
  border-radius: 10px;
  transition: all 0.3s ease;
}

.premium-card--active .premium-card__icon-wrapper {
  background: linear-gradient(135deg, #1fa37c 0%, #178967 100%);
  box-shadow: 0 4px 12px rgba(31, 163, 124, 0.3);
}

/* Icons */
.premium-card__icon,
.premium-card__icon--premium {
  color: #1fa37c;
  font-size: 20px;
}

.premium-card--active .premium-card__icon {
  color: #ffffff !important;
}

/* Header Content */
.premium-card__header-content {
  flex: 1;
  min-width: 0;
}

.premium-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2745;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
}

.premium-card--active .premium-card__title {
  color: #0f2745 !important;
  font-weight: 800;
}

.premium-card__subtitle {
  font-size: 0.8rem;
  color: #5d6368;
  margin: 0;
  line-height: 1.4;
}

.premium-card--active .premium-card__subtitle {
  color: #1fa37c !important;
  font-weight: 600;
}

/* Body */
.premium-card__body {
  padding: 0.75rem 1rem 1rem;
}

/* Features */
.premium-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.premium-card--active .premium-card__features {
  background: rgba(31, 163, 124, 0.06);
  border: 1px solid rgba(31, 163, 124, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.premium-card--active .premium-feature {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.premium-card--active .premium-feature:last-child {
  margin-bottom: 0;
}

.premium-card--active .premium-feature:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.premium-feature svg {
  color: #1fa37c;
}

.premium-card--active .premium-feature svg {
  color: #1fa37c;
  background: rgba(31, 163, 124, 0.1);
  border-radius: 6px;
  padding: 4px;
}

.premium-feature span {
  font-size: 0.8rem;
  color: #0f2745;
  font-weight: 500;
}

.premium-card--active .premium-feature span {
  color: #0f2745 !important;
  font-weight: 600;
}

/* Alert */
.premium-card__alert {
  background: rgba(3, 169, 244, 0.1);
  border-left: 4px solid #03a9f4;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0.75rem 0;
  font-size: 0.8rem;
}

.premium-card__alert--warning {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #ff9800;
}

.premium-card--active .premium-card__alert {
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.12) 0%,
    rgba(31, 163, 124, 0.06) 100%
  );
  border-left: 4px solid #1fa37c;
  color: #0f2745;
}

.premium-card--active .premium-card__alert strong {
  color: #1fa37c !important;
}

/* Button */
.premium-card__button {
  width: 100%;
  padding: 10px 20px;
  border: 2px solid #1fa37c;
  background: transparent;
  color: #1fa37c;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.premium-card__button:hover {
  background: #1fa37c;
  color: white;
  transform: translateY(-1px);
}

.premium-card__button--filled {
  background: #1fa37c;
  color: white;
}

.premium-card__button--filled:hover {
  background: #178967;
}

.premium-card--active .premium-card__button {
  background: linear-gradient(135deg, #1fa37c 0%, #178967 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 163, 124, 0.3);
}

.premium-card--active .premium-card__button:hover {
  background: linear-gradient(135deg, #178967 0%, #146d54 100%);
  box-shadow: 0 6px 16px rgba(31, 163, 124, 0.4);
  transform: translateY(-2px);
}

/* Benefits */
.premium-card__benefits {
  background: rgba(31, 163, 124, 0.04);
  border: 1px solid rgba(31, 163, 124, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.premium-card__benefit-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f2745;
  margin: 0 0 0.75rem 0;
}

.premium-card__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.premium-card__benefit-list li {
  font-size: 0.875rem;
  color: #5d6368;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.premium-card__benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1fa37c;
  font-weight: 700;
  font-size: 1rem;
}

/* Pricing */
.premium-card__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 39, 69, 0.08);
  margin-top: 1rem;
}

.premium-card__price {
  font-size: 0.875rem;
  color: #5d6368;
}

.premium-card__price strong {
  color: #1fa37c;
  font-size: 1rem;
  font-weight: 700;
}

.premium-card__price-sub {
  font-size: 0.75rem;
  color: #9e9e9e;
}

/* ========================================
   PREMIUM CARD - DARK MODE
   ======================================== */

html[data-theme="dark"] .premium-card {
  background: linear-gradient(
    135deg,
    rgba(10, 38, 28, 0.92) 0%,
    rgba(4, 24, 19, 0.92) 100%
  );
  border: 1px solid rgba(79, 223, 174, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(79, 223, 174, 0.12);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .premium-card:hover {
  border-color: rgba(79, 223, 174, 0.35);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(79, 223, 174, 0.18),
    inset 0 1px 0 rgba(79, 223, 174, 0.16);
}

html[data-theme="dark"] .premium-card--active {
  background: linear-gradient(135deg, #0a6148 0%, #084d3a 100%);
  border: 1px solid rgba(79, 223, 174, 0.3);
}

html[data-theme="dark"] .premium-card__icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.22) 0%,
    rgba(79, 223, 174, 0.12) 100%
  );
}

html[data-theme="dark"] .premium-card__icon,
html[data-theme="dark"] .premium-card__icon--premium {
  color: #4fdfae;
}

html[data-theme="dark"] .premium-card__title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .premium-card__subtitle {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .premium-feature svg {
  color: #4fdfae;
}

html[data-theme="dark"] .premium-feature span {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .premium-card__alert {
  background: rgba(79, 223, 174, 0.08);
  border-left: 4px solid #4fdfae;
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .premium-card__button {
  border-color: #4fdfae;
  color: #4fdfae;
}

html[data-theme="dark"] .premium-card__button:hover {
  background: #4fdfae;
  color: #0a1929;
}

html[data-theme="dark"] .premium-card__button--filled {
  background: #4fdfae;
  color: #0a1929;
}

html[data-theme="dark"] .premium-card__button--filled:hover {
  background: #3bc792;
}

html[data-theme="dark"] .premium-card__benefits {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 223, 174, 0.16);
}

html[data-theme="dark"] .premium-card__benefit-text {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .premium-card__benefit-list li {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .premium-card__benefit-list li::before {
  color: #4fdfae;
}

html[data-theme="dark"] .premium-card__pricing {
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .premium-card__price {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .premium-card__price strong {
  color: #4fdfae;
}

html[data-theme="dark"] .premium-card__price-sub {
  color: rgba(255, 255, 255, 0.52);
}

/* ============================================
   FINANCEIRO PAGE - DESIGN ELEGANTE
   ============================================ */

.financeiro-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Hero Section Sofisticado */
.financeiro-hero {
  position: relative;
  background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 50%, #1a8f6a 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 1.5rem 1.5rem 2rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(12, 31, 58, 0.3);
}

.financeiro-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  z-index: 1;
}

.financeiro-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.financeiro-hero__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.financeiro-hero__icon {
  color: white;
  font-size: 2.5rem;
}

.financeiro-hero__text {
  flex: 1;
  min-width: 0;
}

.financeiro-hero__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem 0;
}

.financeiro-hero__title-main {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.financeiro-hero__badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.financeiro-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1rem 0;
  line-height: 1.6;
  max-width: 700px;
}

.financeiro-hero__visibility-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 10px;
  color: white !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  font-weight: 500 !important;
}

.financeiro-hero__visibility-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.financeiro-hero__visibility-btn .mud-button-label {
  color: white !important;
}

.financeiro-hero__visibility-btn .mud-icon-root {
  color: white !important;
}

.financeiro-hero__visibility-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.financeiro-hero__actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.financeiro-hero-btn {
  font-weight: 700;
  text-transform: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.financeiro-hero-btn--entrada {
  background: white;
  color: #2e7d32;
}

.financeiro-hero-btn--entrada:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.4);
}

.financeiro-hero-btn--saida {
  background: rgba(244, 67, 54, 0.85) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.financeiro-hero-btn--saida:hover {
  background: rgba(244, 67, 54, 0.95) !important;
  border-color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

.financeiro-hero-btn--saida .mud-button-label {
  color: white !important;
  font-weight: 600 !important;
}

.financeiro-hero-btn--saida .mud-icon-root {
  color: white !important;
}

/* Summary Cards Modernos */
.financeiro-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 0 1.5rem 2rem;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.06;
  z-index: 0;
  border-radius: 14px;
}

.summary-card:hover {
  transform: translateY(-4px);
}

.summary-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.summary-card__content {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.summary-card__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

.summary-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

/* Card Entrada (Verde) */
.summary-card--entrada {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.08) 0%,
    rgba(76, 175, 80, 0.04) 100%
  );
  border-color: rgba(76, 175, 80, 0.2);
}

.summary-card--entrada::before {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.summary-card--entrada:hover {
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
}

.summary-card--entrada .summary-card__icon {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.summary-card--entrada .summary-card__label {
  color: #388e3c;
}

.summary-card--entrada .summary-card__value {
  color: #2e7d32;
}

/* Card Saída (Vermelho) */
.summary-card--saida {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.08) 0%,
    rgba(244, 67, 54, 0.04) 100%
  );
  border-color: rgba(244, 67, 54, 0.2);
}

.summary-card--saida::before {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.summary-card--saida:hover {
  border-color: rgba(244, 67, 54, 0.4);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.2);
}

.summary-card--saida .summary-card__icon {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.summary-card--saida .summary-card__label {
  color: #d32f2f;
}

.summary-card--saida .summary-card__value {
  color: #c62828;
}

/* Card Saldo (Azul) */
.summary-card--saldo {
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.08) 0%,
    rgba(31, 163, 124, 0.04) 100%
  );
  border-color: rgba(31, 163, 124, 0.2);
}

.summary-card--saldo::before {
  background: linear-gradient(135deg, #1fa37c 0%, #178967 100%);
}

.summary-card--saldo:hover {
  border-color: rgba(31, 163, 124, 0.4);
  box-shadow: 0 8px 24px rgba(31, 163, 124, 0.2);
}

.summary-card--saldo .summary-card__icon {
  background: linear-gradient(135deg, #1fa37c 0%, #178967 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(31, 163, 124, 0.3);
}

.summary-card--saldo .summary-card__label {
  color: #178967;
}

.summary-card--saldo .summary-card__value {
  color: #146d54;
}

/* Configuração do campo */
.financeiro-config {
  margin: 0 1.5rem 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 163, 124, 0.16);
  background: linear-gradient(135deg, #f6fffb 0%, #fdfdfd 100%);
  box-shadow: 0 8px 20px rgba(15, 39, 69, 0.06);
}

.financeiro-config__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.financeiro-config__title {
  font-weight: 800;
  color: #0f2745;
}

.financeiro-config__subtitle {
  color: #5d6368;
  line-height: 1.4;
}

.financeiro-config__icon {
  color: #0f7a5f;
  font-size: 1.6rem;
  background: rgba(31, 163, 124, 0.14);
  border-radius: 12px;
  padding: 0.4rem;
}

.financeiro-config__actions {
  justify-content: flex-end;
}

.financeiro-config .financeiro-config__field .mud-input-control {
  margin-top: 0.15rem;
}

.financeiro-config .financeiro-config__field .mud-input-root {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.financeiro-config .financeiro-config__field .mud-input-slot {
  font-weight: 600;
}

.financeiro-config .financeiro-config__field .mud-input-adornment {
  color: #0f7a5f;
  font-weight: 700;
}

.financeiro-config__save-btn {
  border-radius: 12px !important;
  padding: 0.72rem 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
  background: linear-gradient(120deg, #157c60, #0f6b52) !important;
  box-shadow: 0 8px 18px rgba(15, 107, 82, 0.28) !important;
}

.financeiro-config__save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 107, 82, 0.34) !important;
}

/* Tabela Elegante */
.financeiro-table {
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(15, 39, 69, 0.08);
  overflow: hidden;
  margin: 0 1.5rem 1.5rem;
}

.financeiro-table__content {
  border-radius: 14px;
}

.financeiro-table__th {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f2745;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(31, 163, 124, 0.1);
}

.financeiro-table__th--right {
  text-align: right;
}

.financeiro-table__td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #0f2745;
  vertical-align: middle;
}

.financeiro-table__td--right {
  text-align: right;
}

.financeiro-table__row {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(15, 39, 69, 0.05);
}

.financeiro-table__row:hover {
  background: rgba(31, 163, 124, 0.03);
}

.financeiro-row--entrada {
  border-left: 3px solid #4caf50;
}

.financeiro-row--saida {
  border-left: 3px solid #f44336;
}

/* Chips de Tipo */
.financeiro-chip--entrada {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.12) 0%,
    rgba(76, 175, 80, 0.08) 100%
  );
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
  font-weight: 600;
}

.financeiro-chip--saida {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.12) 0%,
    rgba(244, 67, 54, 0.08) 100%
  );
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #c62828;
  font-weight: 600;
}

/* Células da Tabela */
.financeiro-cell__date {
  font-weight: 600;
  color: #5d6368;
}

.financeiro-cell__origem,
.financeiro-cell__categoria,
.financeiro-cell__metodo {
  color: #5d6368;
}

.financeiro-cell__descricao {
  color: #0f2745;
  font-style: italic;
}

.financeiro-valor--entrada {
  font-size: 1rem;
  font-weight: 700;
  color: #2e7d32;
}

.financeiro-valor--saida {
  font-size: 1rem;
  font-weight: 700;
  color: #c62828;
}

/* Botões de Ação */
.financeiro-actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.financeiro-action-btn {
  transition: all 0.2s ease;
}

.financeiro-action-btn:hover {
  transform: scale(1.1);
}

/* Estado Vazio */
.financeiro-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 1rem;
}

.financeiro-empty__icon {
  color: rgba(15, 39, 69, 0.15);
  font-size: 4rem;
}

.financeiro-empty__text {
  color: #5d6368;
  text-align: center;
}

/* Dark Mode */
html[data-theme="dark"] .financeiro-header__title,
html[data-bs-theme="dark"] .financeiro-header__title,
.mud-theme-dark .financeiro-header__title {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .financeiro-header__subtitle,
html[data-bs-theme="dark"] .financeiro-header__subtitle,
.mud-theme-dark .financeiro-header__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .summary-card,
html[data-bs-theme="dark"] .summary-card,
.mud-theme-dark .summary-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .summary-card__label,
html[data-bs-theme="dark"] .summary-card__label,
.mud-theme-dark .summary-card__label {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .summary-card__value,
html[data-bs-theme="dark"] .summary-card__value,
.mud-theme-dark .summary-card__value {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .financeiro-config,
html[data-bs-theme="dark"] .financeiro-config,
.mud-theme-dark .financeiro-config {
  background: linear-gradient(
    135deg,
    rgba(11, 34, 29, 0.92),
    rgba(10, 26, 23, 0.96)
  );
  border-color: rgba(79, 223, 174, 0.22);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .financeiro-config__title,
html[data-bs-theme="dark"] .financeiro-config__title,
.mud-theme-dark .financeiro-config__title {
  color: rgba(244, 247, 243, 0.95);
}

html[data-theme="dark"] .financeiro-config__subtitle,
html[data-bs-theme="dark"] .financeiro-config__subtitle,
.mud-theme-dark .financeiro-config__subtitle {
  color: rgba(244, 247, 243, 0.7);
}

html[data-theme="dark"] .financeiro-config__icon,
html[data-bs-theme="dark"] .financeiro-config__icon,
.mud-theme-dark .financeiro-config__icon {
  color: #4fdfae;
  background: rgba(79, 223, 174, 0.2);
}

html[data-theme="dark"]
  .financeiro-config
  .financeiro-config__field
  .mud-input-root,
html[data-bs-theme="dark"]
  .financeiro-config
  .financeiro-config__field
  .mud-input-root,
.mud-theme-dark .financeiro-config .financeiro-config__field .mud-input-root {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"]
  .financeiro-config
  .financeiro-config__field
  .mud-input-adornment,
html[data-bs-theme="dark"]
  .financeiro-config
  .financeiro-config__field
  .mud-input-adornment,
.mud-theme-dark
  .financeiro-config
  .financeiro-config__field
  .mud-input-adornment {
  color: rgba(79, 223, 174, 0.9);
}

html[data-theme="dark"] .financeiro-table,
html[data-bs-theme="dark"] .financeiro-table,
.mud-theme-dark .financeiro-table {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .financeiro-table__th,
html[data-bs-theme="dark"] .financeiro-table__th,
.mud-theme-dark .financeiro-table__th {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .financeiro-table__td,
html[data-bs-theme="dark"] .financeiro-table__td,
.mud-theme-dark .financeiro-table__td {
  color: rgba(255, 255, 255, 0.87);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .financeiro-empty__icon,
html[data-bs-theme="dark"] .financeiro-empty__icon,
.mud-theme-dark .financeiro-empty__icon {
  color: rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .financeiro-table--desktop {
    display: none !important;
  }

  .financeiro-mobile-list {
    display: block !important;
  }

  .financeiro-page {
    padding: 0;
  }

  .financeiro-hero {
    border-radius: 0;
    margin: 0 0 1.5rem 0;
    padding: 2rem 1.5rem;
  }

  .financeiro-hero__content {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .financeiro-hero__icon-wrapper {
    width: 64px;
    height: 64px;
  }

  .financeiro-hero__icon {
    font-size: 2rem;
  }

  .financeiro-hero__title {
    flex-direction: column;
    gap: 0.5rem;
  }

  .financeiro-hero__title-main {
    font-size: 1.5rem;
  }

  .financeiro-hero__subtitle {
    font-size: 0.95rem;
  }

  .financeiro-hero__visibility-btn {
    width: 100%;
    justify-content: center;
  }
  .financeiro-hero__actions {
    width: 100%;
  }

  .financeiro-hero-btn {
    flex: 1;
    min-width: 140px;
  }

  .financeiro-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .financeiro-config {
    margin: 0 1rem 1.1rem;
    padding: 0.9rem;
    border-radius: 14px;
  }

  .financeiro-config__actions {
    justify-content: stretch;
  }

  .financeiro-config__save-btn {
    width: 100%;
    justify-content: center;
  }

  .summary-card__value {
    font-size: 1.5rem;
  }

  .financeiro-table {
    margin: 0 1rem;
    border-radius: 14px;
  }
}

@media (min-width: 769px) {
  .financeiro-mobile-list {
    display: none !important;
  }
}

/* ========================================
   Players Form (Edit/Create) Styles
   ======================================== */

.players-form-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.players-form-hero {
  padding: 2rem !important;
  background: linear-gradient(
    135deg,
    #1fa37c 0%,
    #178967 50%,
    #146d54 100%
  ) !important;
  border-radius: 16px !important;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(31, 163, 124, 0.25) !important;
}

.players-form-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.players-form-hero__content > div {
  flex: 1;
  min-width: 250px;
}

.players-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.players-form-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.players-form-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

.players-form-hero .mud-button-root {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.players-form-hero .mud-button-root:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.players-form-hero .mud-icon-root {
  color: white !important;
}

/* Dark mode adjustments */
html[data-theme="dark"] .players-form-hero,
html[data-bs-theme="dark"] .players-form-hero,
.mud-theme-dark .players-form-hero {
  background: linear-gradient(
    135deg,
    #146d54 0%,
    #0f5940 50%,
    #0a4230 100%
  ) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .players-form-shell {
    padding: 1rem;
  }

  .players-form-hero {
    padding: 1.5rem !important;
  }

  .players-form-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .players-form-hero h1 {
    font-size: 1.5rem;
  }

  .players-form-hero .mud-button-root {
    width: 100%;
  }
}

/* Voice command confirmation modal */
.voice-confirm-modal {
  min-width: 500px;
  max-width: 600px;
}

.voice-confirm-modal .mud-dialog {
  border-radius: 16px !important;
  overflow: hidden;
}

.voice-confirm-modal .mud-dialog-title {
  display: none !important;
}

.voice-confirm-modal .mud-dialog-content {
  padding: 0 !important;
  overflow: visible !important;
}

.voice-confirm-modal .mud-dialog-actions {
  padding: 1.5rem !important;
  gap: 0.75rem;
  background: rgba(12, 31, 58, 0.03);
  border-top: 1px solid rgba(12, 31, 58, 0.08);
}

.voice-confirm-modal__hero {
  position: relative;
  background: linear-gradient(135deg, #0c1f3a 0%, #0b4d83 50%, #1a8f6a 100%);
  border-radius: 16px 16px 0 0;
  padding: 2rem 1.5rem;
  margin: -1px -1px 0 -1px;
  color: white;
  overflow: hidden;
}

.voice-confirm-modal__hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.voice-confirm-modal__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.voice-confirm-modal__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.voice-confirm-modal__icon-wrapper .mud-icon-root {
  font-size: 28px;
  color: white;
}

.voice-confirm-modal__hero-text h6 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.voice-confirm-modal__hero-text p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.voice-confirm-modal__body {
  padding: 1.5rem;
}

.voice-confirm-modal__summary {
  background: linear-gradient(
    135deg,
    rgba(11, 77, 131, 0.08) 0%,
    rgba(26, 143, 106, 0.08) 100%
  );
  border: 1px solid rgba(11, 77, 131, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.voice-confirm-modal__summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0b4d83 0%, #1a8f6a 100%);
}

.voice-confirm-modal__summary-header {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.voice-confirm-modal__event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.voice-confirm-modal__event-badge .mud-icon-root {
  font-size: 16px;
}

/* Gol - Verde */
.voice-confirm-modal__event-badge--gol {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
}

/* Gol Contra - Laranja */
.voice-confirm-modal__event-badge--gol-contra {
  background: linear-gradient(135deg, #ff8a65 0%, #f4511e 100%);
  color: white;
}

/* Assistência - Azul */
.voice-confirm-modal__event-badge--assistencia {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
}

/* Cartão Amarelo - Amarelo */
.voice-confirm-modal__event-badge--cartao-amarelo {
  background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
  color: #333;
}

/* Cartão Vermelho - Vermelho */
.voice-confirm-modal__event-badge--cartao-vermelho {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

/* Substituição - Roxo */
.voice-confirm-modal__event-badge--substituicao {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
}

/* Defesa difícil - Verde azulado */
.voice-confirm-modal__event-badge--defesa-dificil {
  background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
  color: white;
}

/* Desarme - Azul petróleo */
.voice-confirm-modal__event-badge--desarme {
  background: linear-gradient(135deg, #455a64 0%, #1c313a 100%);
  color: white;
}

/* Default - Cinza */
.voice-confirm-modal__event-badge--default {
  background: linear-gradient(135deg, #757575 0%, #616161 100%);
  color: white;
}

.voice-confirm-modal__summary-text {
  padding-left: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c1f3a;
  line-height: 1.5;
}

.voice-confirm-modal__summary-warning {
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #f57c00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-confirm-modal__summary-warning .mud-icon-root {
  font-size: 18px;
}

.voice-confirm-modal__validation-error {
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  color: #c62828;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-confirm-modal__validation-error .mud-icon-root {
  font-size: 20px;
  flex-shrink: 0;
}

.voice-confirm-modal__fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.voice-confirm-modal__edit-hint {
  background: linear-gradient(
    135deg,
    rgba(11, 77, 131, 0.06) 0%,
    rgba(26, 143, 106, 0.06) 100%
  );
  border: 1px solid rgba(11, 77, 131, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #0b4d83;
  font-weight: 500;
}

.voice-confirm-modal__edit-hint .mud-icon-root {
  font-size: 18px;
  color: #0b4d83;
  flex-shrink: 0;
}

.voice-confirm-modal__examples {
  background: linear-gradient(
    135deg,
    rgba(3, 169, 244, 0.06) 0%,
    rgba(26, 143, 106, 0.06) 100%
  );
  border: 1px solid rgba(3, 169, 244, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.jogador-voice-card {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(3, 169, 244, 0.08) 0%,
    rgba(26, 143, 106, 0.08) 100%
  );
  border: 1px solid rgba(3, 169, 244, 0.18);
}

.jogador-voice-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jogador-voice-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0b4d83;
}

.jogador-voice-card__status {
  margin-top: 0.5rem;
  color: #1f2937;
}

.jogador-voice-card__partial {
  margin-top: 0.25rem;
  color: #6b7280;
}

.jogador-voice-card__summary {
  margin-top: 0.75rem;
}

.jogador-voice-card__summary div {
  line-height: 1.5;
}

.jogador-batch-modal .jogador-voice-card__summary {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

/* === Jogador Batch Modal (Cadastro rápido por voz) === */
.jogador-batch-modal {
  max-width: 520px;
  width: 100%;
}

.jogador-batch-modal .mud-dialog-content {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  -webkit-overflow-scrolling: touch;
}

.jogador-batch-modal .mud-dialog-content > .mud-typography-h6 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2745;
  margin-bottom: 0.25rem;
}

.jogador-batch-modal .mud-dialog-content > .mud-typography-body2 {
  color: rgba(15, 39, 69, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

html[data-theme="dark"]
  .jogador-batch-modal
  .mud-dialog-content
  > .mud-typography-h6 {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"]
  .jogador-batch-modal
  .mud-dialog-content
  > .mud-typography-body2 {
  color: rgba(255, 255, 255, 0.7);
}

.jogador-batch-modal .mud-dialog-title {
  padding: 1rem 1.25rem 0.5rem;
}

.jogador-batch-modal .mud-dialog-actions {
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jogador-batch-modal .voice-confirm-modal__examples {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
}

.jogador-batch-modal .voice-confirm-modal__examples ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.jogador-batch-modal .voice-confirm-modal__examples li {
  margin-bottom: 0.375rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.jogador-batch-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.jogador-batch-actions .mud-button-root {
  flex-shrink: 0;
}

.jogador-batch-review {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(33, 150, 243, 0.25);
  background: rgba(33, 150, 243, 0.06);
}

.jogador-batch-review .mud-text {
  font-weight: 600;
  color: #0b4d83;
  margin-bottom: 0.5rem;
}

.jogador-batch-review .jogador-batch-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(33, 150, 243, 0.15);
}

.jogador-batch-review .jogador-batch-actions .mud-button-root {
  min-height: 44px;
  font-weight: 600;
}

.jogador-batch-review .mud-grid {
  margin-top: 0.5rem;
}

.jogador-batch-review .mud-input-outlined .mud-input-slot,
.jogador-batch-review .mud-select-outlined .mud-input-slot {
  min-height: 48px;
}

html[data-theme="dark"] .jogador-batch-review {
  background: rgba(13, 58, 95, 0.2);
  border-color: rgba(79, 195, 247, 0.2);
}

html[data-theme="dark"] .jogador-batch-review .mud-text {
  color: #4fc3f7;
}

html[data-theme="dark"] .jogador-batch-modal .mud-dialog-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Mobile / Android WebView optimizations for Jogador Batch Modal */
@media (max-width: 600px) {
  .jogador-batch-modal {
    max-width: 100%;
    margin: 0;
  }

  .jogador-batch-modal .mud-dialog {
    margin: 8px;
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .jogador-batch-modal .mud-dialog-content {
    padding: 0.875rem 1rem;
    max-height: calc(100vh - 160px);
  }

  .jogador-batch-modal .mud-dialog-title {
    padding: 0.875rem 1rem 0.5rem;
  }

  .jogador-batch-modal .mud-dialog-actions {
    padding: 0.625rem 1rem;
    flex-wrap: wrap;
  }

  .jogador-batch-modal .mud-dialog-actions .mud-button-root {
    flex: 1;
    min-width: 120px;
  }

  .jogador-batch-modal .voice-confirm-modal__examples {
    margin: 0.75rem 0;
    padding: 0.75rem;
  }

  .jogador-batch-modal .voice-confirm-modal__examples-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .jogador-batch-modal .voice-confirm-modal__examples ul {
    padding-left: 1rem;
  }

  .jogador-batch-modal .voice-confirm-modal__examples li {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .jogador-batch-modal .partidas-voice-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .jogador-batch-modal .partidas-voice-panel__info {
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .jogador-batch-modal .partidas-voice-panel .mud-button-root {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .jogador-batch-modal .partidas-voice-panel__transcript {
    text-align: center;
    font-size: 0.9rem;
  }

  .jogador-batch-modal .jogador-voice-card__summary {
    font-size: 0.85rem;
  }

  .jogador-batch-review {
    padding: 0.875rem;
  }

  .jogador-batch-review .mud-grid-item {
    padding: 4px !important;
  }

  .jogador-batch-review .mud-input-outlined .mud-input-slot,
  .jogador-batch-review .mud-select-outlined .mud-input-slot {
    min-height: 52px;
    font-size: 1rem;
  }

  .jogador-batch-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .jogador-batch-actions .mud-button-root {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
  }

  .jogador-batch-list {
    gap: 0.625rem;
  }

  .jogador-batch-item {
    padding: 0.75rem;
  }

  .jogador-batch-item__info strong {
    font-size: 1rem;
  }

  .jogador-batch-item__info span {
    font-size: 0.85rem;
  }
}

/* Extra small screens (small Android phones) */
@media (max-width: 380px) {
  .jogador-batch-modal .mud-dialog-content {
    padding: 0.75rem;
  }

  .jogador-batch-modal .voice-confirm-modal__examples {
    padding: 0.625rem;
  }

  .jogador-batch-modal .voice-confirm-modal__examples li {
    font-size: 0.75rem;
  }

  .jogador-batch-review .mud-grid-spacing-xs-2 > .mud-grid-item {
    padding: 2px !important;
  }
}

.jogador-batch-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jogador-batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
}

.jogador-batch-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.jogador-batch-item__info strong {
  font-size: 0.95rem;
  color: #0c1f3a;
}

.jogador-batch-item__info span {
  font-size: 0.8rem;
  color: #5f6b75;
}

html[data-theme="dark"] .jogador-batch-item__info strong {
  color: #e3f2fd;
}

html[data-theme="dark"] .jogador-batch-item__info span {
  color: rgba(227, 242, 253, 0.7);
}

.voice-confirm-modal__examples-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0c1f3a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-confirm-modal__examples-title .mud-icon-root {
  font-size: 20px;
  color: #0b4d83;
}

.voice-confirm-modal__examples ul {
  margin: 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
}

.voice-confirm-modal__examples li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #5a6c7d;
  position: relative;
  line-height: 1.6;
}

.voice-confirm-modal__examples li:last-child {
  margin-bottom: 0;
}

.voice-confirm-modal__examples li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #0b4d83;
  font-weight: 700;
}

/* Dark mode support */
html[data-theme="dark"] .voice-confirm-modal__hero {
  background: linear-gradient(135deg, #0a1929 0%, #0d3a5f 50%, #126650 100%);
}

html[data-theme="dark"] .voice-confirm-modal__summary {
  background: linear-gradient(
    135deg,
    rgba(13, 58, 95, 0.15) 0%,
    rgba(18, 102, 80, 0.15) 100%
  );
  border-color: rgba(13, 58, 95, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__summary-text {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--gol {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--gol-contra {
  background: linear-gradient(135deg, #f4511e 0%, #e64a19 100%);
  box-shadow: 0 2px 8px rgba(255, 138, 101, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--assistencia {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--cartao-amarelo {
  background: linear-gradient(135deg, #ffa000 0%, #f57c00 100%);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--cartao-vermelho {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--substituicao {
  background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--defesa-dificil {
  background: linear-gradient(135deg, #26a69a 0%, #00796b 100%);
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__event-badge--desarme {
  background: linear-gradient(135deg, #455a64 0%, #102027 100%);
  box-shadow: 0 2px 8px rgba(69, 90, 100, 0.3);
}

html[data-theme="dark"] .voice-confirm-modal__edit-hint {
  background: linear-gradient(
    135deg,
    rgba(13, 58, 95, 0.18) 0%,
    rgba(18, 102, 80, 0.18) 100%
  );
  border-color: rgba(13, 58, 95, 0.35);
  color: #4fc3f7;
}

html[data-theme="dark"] .voice-confirm-modal__edit-hint .mud-icon-root {
  color: #4fc3f7;
}

html[data-theme="dark"] .voice-confirm-modal__examples {
  background: linear-gradient(
    135deg,
    rgba(3, 169, 244, 0.12) 0%,
    rgba(18, 102, 80, 0.12) 100%
  );
  border-color: rgba(3, 169, 244, 0.25);
}

html[data-theme="dark"] .jogador-voice-card {
  background: linear-gradient(
    135deg,
    rgba(13, 58, 95, 0.2) 0%,
    rgba(18, 102, 80, 0.2) 100%
  );
  border-color: rgba(79, 195, 247, 0.2);
}

html[data-theme="dark"] .jogador-voice-card__title {
  color: #9ad7ff;
}

html[data-theme="dark"] .jogador-voice-card__status {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .jogador-voice-card__partial {
  color: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .voice-confirm-modal__examples-title {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .voice-confirm-modal__examples-title .mud-icon-root {
  color: #4fc3f7;
}

html[data-theme="dark"] .voice-confirm-modal__examples li {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .voice-confirm-modal__examples li::before {
  color: #4fc3f7;
}

html[data-theme="dark"] .voice-confirm-modal .mud-dialog-actions {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .voice-confirm-modal__validation-error {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.3);
  color: #ff5252;
}

.voice-confirm-modal .mud-dialog-actions .mud-button-root {
  text-transform: none;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.voice-confirm-modal .mud-dialog-actions .mud-button-outlined {
  border-width: 1.5px;
}

.voice-confirm-modal
  .mud-dialog-actions
  .mud-button-filled:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.voice-confirm-modal .mud-dialog-actions .mud-button-outlined:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"]
  .voice-confirm-modal
  .mud-dialog-actions
  .mud-button-outlined:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .voice-confirm-modal {
    min-width: unset;
    max-width: unset;
  }

  .voice-confirm-modal__hero {
    padding: 1.5rem 1rem;
  }

  .voice-confirm-modal__body {
    padding: 1rem;
  }

  .voice-confirm-modal .mud-dialog-actions {
    padding: 1rem !important;
  }

  .voice-confirm-modal .mud-dialog-actions .mud-button-root {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Voice command panel */
.partidas-voice-panel {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(31, 163, 124, 0.08) 0%,
    rgba(15, 39, 69, 0.06) 100%
  );
  border: 1px solid rgba(31, 163, 124, 0.2);
}

.partidas-voice-panel__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f2745;
}

.partidas-voice-panel__info span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 39, 69, 0.6);
}

.partidas-voice-panel__info strong {
  display: block;
  font-size: 0.95rem;
}

.partidas-voice-panel__info .mud-icon-root {
  font-size: 28px;
  color: #1fa37c;
}

.partidas-voice-panel__transcript {
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: rgba(15, 39, 69, 0.04);
  color: #0f2745;
  font-style: italic;
}

.partidas-voice-panel__transcript--partial {
  background: rgba(31, 163, 124, 0.12);
  border: 1px dashed rgba(31, 163, 124, 0.35);
  font-style: normal;
}

html[data-theme="dark"] .partidas-voice-panel {
  background: linear-gradient(
    135deg,
    rgba(79, 223, 174, 0.12) 0%,
    rgba(5, 35, 25, 0.6) 100%
  );
  border-color: rgba(79, 223, 174, 0.25);
}

html[data-theme="dark"] .partidas-voice-panel__info {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .partidas-voice-panel__info span {
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .partidas-voice-panel__transcript {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .partidas-voice-panel__transcript--partial {
  background: rgba(79, 223, 174, 0.18);
  border-color: rgba(79, 223, 174, 0.4);
}

/* Estilo do botão FALAR no painel de voz */
.partidas-voice-panel .mud-button-root {
  min-width: 100px;
  min-height: 44px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.partidas-voice-panel .mud-button-filled-success {
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.partidas-voice-panel .mud-button-filled-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.partidas-voice-panel .mud-button-filled-error {
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.partidas-voice-panel .mud-button-filled-error:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

@media (max-width: 768px) {
  .partidas-voice-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .partidas-voice-panel .mud-button-root {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
}
/* iOS install banner */
.ios-install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b1b3a 0%, #102a57 100%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(2, 10, 24, 0.35);
}

.ios-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1.25rem;
}

.ios-install-banner__text strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.ios-install-banner__actions {
  display: flex;
  align-items: center;
}

.ios-install-banner__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1b3a;
  background: #ffffff;
  cursor: pointer;
}

.ios-install-banner__btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ios-install-banner__btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.ios-install-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}

.ios-install-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 25, 0.55);
  backdrop-filter: blur(2px);
}

.ios-install-guide__card {
  position: relative;
  width: min(92vw, 420px);
  background: #ffffff;
  color: #0b1b3a;
  padding: 18px 18px 16px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ios-install-guide__card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.ios-install-guide__steps {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.35rem;
}

.ios-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  margin-right: 2px;
  vertical-align: text-bottom;
  border-radius: 4px;
  border: 1px solid rgba(11, 27, 58, 0.25);
  background: #f1f4f9;
}

.ios-share-icon svg {
  width: 14px;
  height: 14px;
  fill: #0b1b3a;
}

.ios-install-guide__actions {
  display: flex;
  justify-content: flex-end;
}

.ios-install-guide__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #0b1b3a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 420px) {
  .ios-install-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .ios-install-banner__text {
    font-size: 0.86rem;
  }
}

/* Confirmação de exclusão de racha */
.delete-racha-dialog .mud-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delete-racha-dialog .mud-alert {
  border-color: #b71c1c;
}

.delete-racha-dialog .mud-input-root {
  margin-top: 4px;
}

.delete-racha-dialog .mud-dialog-actions {
  margin-top: 4px;
}

/* Story de destaques (modal) - remove áreas brancas e espaço sobrando */
.mud-dialog.story-dialog-root {
  height: auto !important;
  max-height: calc(100vh - 32px) !important;
  overflow: hidden !important;
}

.mud-dialog.story-dialog-root .mud-dialog-content {
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #213628, #2b4734) !important;
}

.mud-dialog.story-dialog-root .mud-dialog-actions {
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  background: linear-gradient(180deg, #223629, #1b2d22) !important;
}
