/* styles.css */
/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    --bg: #f5f5f5;
    --text: #333;
    --primary: #007bff;
    --radius: 8px;
    --social-radius: 10px;
    --card-radius: 12px;
    --banner-bg: #ffffff;
    --banner-text: #555555;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
  }
  
  body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 16px;
  }

  
  h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
  }

  /* ==================================
   DESIGN RESPONSIVO PARA O LOGO
   ================================== */

/* 1. ESTILO PARA O CONTAINER DO LOGO (A TAG <a>) */
/* Usamos flexbox para alinhar o ícone e o texto lado a lado */
.logo a {
  display: flex;
  align-items: center; /* Alinha verticalmente */
  gap: 10px; /* Cria um espaço entre o ícone e o texto */
  text-decoration: none; /* Remove o sublinhado do link */
}

/* 2. ESTILO PARA O ÍCONE */
.logo-icon {
  height: 50px; /* Ajuste a altura conforme necessário */
  width: 50px;
}

/* 3. ESTILO PARA O TEXTO DO LOGO */
.logo-text {
  font-family: 'Bangers', cursive; /* APLICA A NOVA FONTE */
  font-size: 40px; /* Sugestão: Aumente um pouco o tamanho para esta fonte */
  font-weight: normal; /* A fonte 'Bangers' já é "bold" por natureza, então 'normal' é o ideal */
  color: var(--text);
  display: none;
  /* BÔNUS: Pequeno ajuste para o alinhamento vertical com essa fonte específica */
  position: relative;
  top: 3px;
}


/* 4. MEDIA QUERY: FAZ O TEXTO REAPARECER EM TELAS MAIORES */
/* Mesma lógica dos ícones sociais */
@media (min-width: 768px) {
  
  .logo-text {
    display: inline; /* ou 'block' */
  }

}

/* ==================================
   BOTÃO PREMIUM E AJUSTES NO HEADER
   ================================== */

/* Novo container para os botões da direita */
/* ==================================
   BOTÃO PREMIUM E AJUSTES NO HEADER (Versão Final Consolidada)
   ================================== */

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

/* Animação de pulso para a sombra do botão */
@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 4px 15px 0 rgba(30, 144, 255, 0.45);
    }
    50% {
        box-shadow: 0 6px 25px 0 rgba(30, 144, 255, 0.6);
    }
}

/* Estilo principal do botão Premium */
.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Controla o espaço entre o ícone e o texto */
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF);
    color: white !important; /* Garante que o texto seja branco */
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    animation: pulse-shadow 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse ou focar */
.premium-btn:hover,
.premium-btn:focus {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(30, 144, 255, 0.55);
    filter: brightness(1.1);
    outline: none;
}

/* Ícone dentro do botão (sem alterações na animação dele) */
.animate-breathing {
  animation: breathing 2.5s ease-in-out infinite;
}

.premium-btn svg {
  margin-left: 4px;
}

  /* Social Cards */
  .social-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0; /* REMOVA A MARGEM. Isso é muito importante. */
    flex-wrap: wrap;
  }
  
  .social-card {
    background: var(--card-bg); /* Usa a variável de fundo */
    border: 1px solid var(--card-border); /* Usa a variável de borda */
    border-radius: var(--social-radius);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  /* Adicione este estilo para o novo container */
.social-cards-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 30px 0; /* Espaçamento acima e abaixo */
  flex-wrap: wrap;
}
  
  .social-card:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  /* ADICIONE ESTA NOVA REGRA para o hover no tema escuro */
  body.dark-theme .social-card:hover {
    background: #3c3c3c; /* Um cinza um pouco mais claro para o hover */
  }
  
  .social-card svg {
    width: 24px;
    height: 24px;
  }

.social-card.discord {
  color: #5865F2;
}

/* No tema claro (padrão), o texto será preto para bom contraste */
.social-card.telegram .social-text {
  color: #333; /* Usando a mesma cor do texto padrão do tema claro */
}

/* No tema escuro, o texto será branco */
body.dark-theme .social-card.telegram .social-text {
  color: #ffffff;
}

/* REGRA CORRIGIDA (FUNCIONA NA NOVA POSIÇÃO) */
.social-card.telegram svg {
  transform: scale(1.15);
}

  /* Barra de Pesquisa */
  .search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
  }
  
  .search-container input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
  }
  
  .search-container input:focus {
    border-color: var(--primary);
  }
  
  .search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    pointer-events: none;
  }

  /* Resultado da busca */
  #searchResultCount {
    display: block;
    text-align: center;
    font-size: 16px;
    color: #555;
    margin: 0 auto 20px; /* sem margem em cima, 20px embaixo */
  }
  
  /* Opcional: esconder quando estiver vazio */
  #searchResultCount:empty {
    display: none;
  }

  /* --------------BOTÃO PARA ABRIR FILTROS------------ */
.open-filters-button-wrapper {
  display: flex;
  justify-content: center; /* Ou 'flex-start' / 'flex-end' dependendo de onde quer o botão */
  align-items: center;
  margin-bottom: 20px;
}

#openFiltersBtn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: var(--primary); /* Sua cor primária */
  color: white;
  border: none;
  border-radius: var(--radius, 6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
#openFiltersBtn:hover {
  background-color: var(--primary-dark, #0056b3); /* Cor primária mais escura */
}

.active-filters-indicator-container {
  display: inline-flex; /* Usamos inline-flex para que ele se alinhe bem com o botão 'Filtros' */
  align-items: center; /* Alinha o texto e o botão X verticalmente */
  margin-left: 10px;
  background-color: var(--primary-light, #e0e0e0);
  color: var(--primary-dark, #333);
  border-radius: 10px; /* Seu border-radius original era 10px */
  font-size: 0.8em;
  font-weight: bold;
  padding: 2px 0 2px 8px; /* Padding: topo, direita (0 para o botão preencher), baixo, esquerda */
  /* Se você usava padding: 10px 22px; antes, ajuste aqui. Ex: padding: 10px 0 10px 15px; e ajuste o padding do botão */
}

.active-filters-indicator-container:empty { /* Se o JS não conseguir esconder por algum motivo */
  display: none;
}

#activeFiltersIndicatorText {
  margin-right: 4px; /* Pequeno espaço entre o texto e o botão X */
}

.clear-filters-outside-btn {
  background: transparent;
  border: none;
  color: inherit; /* Herda a cor do texto do container */
  cursor: pointer;
  padding: 4px 8px 4px 4px; /* topo, direita, baixo, esquerda - para dar área de clique e completar o padding do container */
  line-height: 0; /* Ajuda a alinhar o SVG verticalmente se houver problemas */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0; /* Para arredondar a borda direita do botão junto com o container */
}

.clear-filters-outside-btn:hover {
  background-color: rgba(0,0,0,0.08); /* Leve destaque no hover */
}

.clear-filters-outside-btn svg {
  pointer-events: none; /* Garante que o clique seja no botão, não no SVG */
}


/* Estilos básicos para o Modal */
.modal-overlay {
  position: fixed; /* Cobre a tela toda */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo semi-transparente */
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  z-index: 1000; /* Garante que fique na frente */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.modal-dialog {
  background-color: var(--bg, #fff);
  padding: 20px;
  border-radius: var(--radius, 8px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 500px; /* Largura máxima do modal */
  max-height: 80vh; /* Altura máxima, permite scroll se necessário */
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  transition: transform 0.3s ease-out;
}

.modal-overlay:not(.hidden) .modal-dialog {
    transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, #eee);
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
}
.modal-close-button {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
  color: var(--text-secondary, #777);
}

.modal-body {
  flex-grow: 1;
  overflow-y: auto; /* Adiciona scroll se o conteúdo dos filtros for muito grande */
  margin-bottom: 15px;
}

/* No modal, pode ser melhor empilhar os grupos de filtro */
.modal-body .all-filters-container {
  display: flex;
  flex-direction: column; /* Empilha os filtros verticalmente */
  gap: 15px;
}
.modal-body .filter-group {
  /* Se quiser label e select na mesma linha dentro do modal: */
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* Ou 'flex-start' e dar largura ao label */
}
.modal-body .filter-group label {
  flex-basis: 30%; /* Exemplo: Label ocupa 30% */
  margin-right: 0; /* Remove margem se já tinha */
}
.modal-body .filter-group .filter-select-wrapper {
  flex-basis: 65%; /* Exemplo: Select ocupa 65% */
}
.modal-body .custom-select {
    width: 100%; /* Faz o select ocupar todo o espaço do wrapper */
    min-width: auto; /* Remove min-width para ser mais flexível no modal */
}

.modal-footer {
  display: flex;
  justify-content: center; /* Botões à direita */
  gap: 10px;
  border-top: 1px solid var(--border-color, #eee);
  padding-top: 15px;
}

/* Estilos para botões (reutilize ou crie novos) */
.button-styled {
  padding: 10px 15px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius, 6px);
  cursor: pointer;
}
.button-styled:hover {
  background-color: var(--primary-dark, #0056b3);
}
.button-styled-secondary {
  padding: 10px 15px;
  background-color: var(--bg-secondary, #6c757d);
  color: white;
  border: none;
  border-radius: var(--radius, 6px);
  cursor: pointer;
}
.button-styled-secondary:hover {
  background-color: var(--bg-secondary-dark, #545b62);
}

.hidden {
  display: none !important; /* Para esconder o modal */
}

/* Wrapper para o filtro de categoria */
.all-filters-container {
  display: flex;
  flex-wrap: wrap; /* Permite que os filtros quebrem para a próxima linha se não couberem */
  gap: 15px 20px;  /* Espaçamento entre os grupos de filtro (vertical horizontal) */
  justify-content: center; /* Centraliza os grupos de filtro */
  margin-bottom: 30px;
  padding: 10px;
  /* background-color: rgba(0,0,0,0.03); /* Um fundo sutil se desejar */
  /* border-radius: var(--radius, 6px); */
}

.filter-group {
  display: flex;
  flex-direction: column; /* Label em cima, select embaixo */
  gap: 5px; /* Espaço entre label e selct */
}

.filter-group label {
  font-size: 0.85em;
  color: var(--text-secondary, #555); /* Cor mais suave para o label */
  /* text-align: center; */ /* Se quiser centralizar o label sobre o select */
}

.filter-select-wrapper {
  position: relative; /* Para posicionar ícones dentro, se desejar no futuro */
}

/* Seus estilos .custom-select existentes devem funcionar bem aqui */
.custom-select {
  padding: 8px 12px;
  font-size: 0.9em; /* Ajuste conforme necessário */
  color: var(--text);
  background-color: var(--bg-input, var(--bg, #fff));
  border: 1px solid var(--border-color, #ccc);
  border-radius: var(--radius, 6px);
  cursor: pointer;
  min-width: 150px; /* Ajuste para caber o texto das opções */
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px 9px;
  padding-right: 30px;
}

.custom-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
  
  /* Grid de Cards */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 20px auto 0;
  }
  
  @media (min-width: 480px) {
    .grid {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
  }
  
  @media (min-width: 768px) {
    .grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }
  
  /* Card */
  a.card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/5;
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  a.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }
  
  .card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
  }
  
  a.card:hover img {
    transform: scale(1.05);
  }
  
  .card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top,
      rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }
  
  .card-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 8px;
    text-align: center; /* Centraliza o texto horizontalmente */
    width: 100%;
  }
  
  .card-more {
    background: var(--primary);
    padding: 5px 10px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    color: #fff;
    opacity: 0.95;
  }
  
  .card-more .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* não deixa o ícone encolher */
  }


/* Estilização do Ícone */
/* NOVO: O container que terá o fundo e a animação */
.new-badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px; /* Um pouco maior para o fundo */
  height: 32px;
  z-index: 2;
  
  /* Estilos para o fundo */
  background-color: rgba(255, 255, 255, 0.4); /* Fundo preto semi-transparente */
  border-radius: 15%; /* Deixa o fundo redondo */
  backdrop-filter: blur(2px); /* Efeito de vidro/desfoque no que está atrás (opcional, mas fica ótimo) */

  /* Centraliza o ícone dentro do círculo */
  display: flex;
  align-items: center;
  justify-content: center;

  /* A animação agora é aplicada ao container redondo */
  animation: neonLightningPulse 1.8s infinite ease-in-out;
}

/* MODIFICADO: A imagem do trovão, agora dentro do container */
.new-badge-icon {
  /* A imagem ocupa a maior parte do círculo, mas não tudo, criando uma margem */
  width: 75%;
  height: 75%;
}

/* A animação @keyframes neonLightningPulse permanece a mesma */
@keyframes neonLightningPulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 4px rgba(79, 195, 247, 0.6))
            drop-shadow(0 0 6px rgba(189, 53, 233, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 7px rgba(79, 195, 247, 0.8))
            drop-shadow(0 0 12px rgba(189, 53, 233, 0.6));
    transform: scale(1.08);
  }
}

  .load-more-container {
    text-align: center;
    margin-top: 20px;
  }
  
  #loadMoreButton {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
  }
  
  #scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #555;
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #scrollToTopBtn svg {
    width: 24px;
    height: 24px;
  }
  
  #scrollToTopBtn:hover {
    background-color: #333;
  }
  
  #scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
  }
  
  @media (min-width: 768px) {
    .grid:has(.card) {
      grid-template-columns: repeat(auto-fit,
        minmax(220px, 1fr));
      justify-content: center;
    }
  }

  /* === tema escuro === */
body.dark-theme {
  --bg: #1e1e1e;
  --text: #eee;
  --primary: #4da6ff;
  --banner-bg: rgba(255, 255, 255, 0.1);
  --banner-text: #cccccc;
  --text-secondary: #b0b0b0;
  --card-bg: #2c2c2c; /* Um cinza um pouco mais claro que o fundo */
  --card-border: #444;
}

/* Se quiser reforçar só no tema escuro, pode fazer assim */
body.dark-theme a {
  /* —primary no dark theme já é #4da6ff, bem mais legível em fundo escuro */
  color: var(--primary);
}

/* reaplique nas regras já existentes */
body {
  background: var(--bg);
  color: var(--text);
}

#themeToggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.floating-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
  color: var(--text);
  z-index: 100;
}
.floating-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

/* Cabecalho, tema escuro e titulo */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Este já ajuda a espaçar os itens */
  max-width: 1000px; /* Aumente o max-width para caber tudo confortavelmente */
  margin: 0 auto 30px;
  padding: 0 16px;
  padding-bottom: 20px; /* Adiciona um respiro entre o conteúdo e a linha */
  border-bottom: 1px solid var(--card-border); /* Cria a linha separadora */
}

.header h1 {
  margin: 0;
}

#themeToggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  color: var(--text);
}

#themeToggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


.logo img {
  max-width: 200px;   /* ajuste conforme o design */
  height: auto;
  display: block;
  margin: 0;          /* no need to auto-center, flex-header já faz isso */
}


/* === Onboarding Overlay Profissional === */

/* 1) Base do overlay, sempre presente mas invisível */
#onboardingOverlay {
  position: fixed;
  inset: 0;                                 /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.75);          /* backdrop mais escuro */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;                             /* acima de tudo */
}

/* 2) Quando remover .hidden, mostrar com fade */
#onboardingOverlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* 3) Caixa branca central */
#onboardingOverlay .overlay-content {
  background: var(--bg);
  color: var(--text);
  
  max-width: 400px;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideDown 0.4s ease-out forwards;
}

/* 4) Animação slide-down */
@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 5) Estilização interna */
#onboardingOverlay .overlay-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

#onboardingOverlay .overlay-content ol {
  list-style: decimal inside;
  text-align: left;
  margin: 1rem 0;
  color: var(--text-secondary, #666);
}

#onboardingOverlay .overlay-content ol li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 1rem;
}

#onboardingOverlay .overlay-content label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

#onboardingOverlay .overlay-content input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

#onboardingOverlay .overlay-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#onboardingOverlay .overlay-content button:hover {
  background: #0058b3;       /* tom mais escuro de var(--primary) */
  transform: translateY(-1px);
}

#onboardingOverlay .overlay-content button:active {
  transform: translateY(0);
}

/* 6) Ajuste responsivo */
@media (min-width: 768px) {
  #onboardingOverlay .overlay-content {
    max-width: 500px;
    padding: 2.5rem;
  }
}

/* 7) Manter oculto quando tiver a classe .hidden */
#onboardingOverlay.hidden {
  display: none !important;
}

/*Banner dentro site com o tutorial*/
.quickstart-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 1rem;
  background: var(--banner-bg);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0 auto 1.5rem;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.quickstart-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--banner-text);
}

.quickstart-step .qs-icon {
  font-size: 1.2rem;
  line-height: 1;
}


/* Modal Tutorial Video container, invisível com .hidden */
.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* Backdrop: sits underneath the content */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1;               /* <— add */
}

/* Content box: above the backdrop */
.modal-content {
  position: relative;
  z-index: 2;               /* <— add */
  margin: auto;
  top: 5%;
  max-width: 90%;
  width: 560px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Close button: above everything in the content */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  z-index: 3;               /* <— add */
}

/* Responsive iframe */
.modal-content iframe {
  display: block;
  width: 100%;
  height: calc(100vw * 9 / 16); /* 16:9 ratio */
  max-height: 80vh;
}

.modal-content video {
  max-height: 80vh;
  object-fit: contain;
}

/* No final do seu styles.css ou em uma seção de tema escuro */
body.dark-theme .modal-body .filter-group label {
  color: var(--text); /* Usa a cor principal do texto do tema escuro */
}

/* Wrapper para alinhar o título e o botão de compartilhar */
.card-title-wrapper {
  display: flex;
  justify-content: space-between; /* Coloca o título na esquerda e o botão na direita */
  align-items: center;
  width: 100%;
  margin-bottom: 8px; /* Mantém a margem que .card-title tinha */
}

/* Estilo para o botão de compartilhar (o container) */
.share-button {
  position: absolute;
  bottom: 13px;
  right: 10px;
  z-index: 3;
  background-color: #2c2c2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  
  /* Essencial para centralizar o SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Cor que o SVG herdará */
  color: white; 
  
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.share-button:hover {
  background-color: #404040;
  transform: scale(1.1);
}

/* MODIFICADO: Estilo para o SVG dentro do botão (substitui .share-button img) */
.share-button svg {
  width: 16px;  /* Ajuste o tamanho conforme necessário */
  height: 16px; /* Ajuste o tamanho conforme necessário */
}

/* ========================
   ESTILOS DO RODAPÉ DE PARCEIROS
   ======================== */
.partners-footer {
  background-color: var(--banner-bg, #ffffff); /* Reutiliza a cor do seu banner de tutorial */
  padding: 20px 10px;
  margin-top: 40px; /* Espaço entre o conteúdo principal e o rodapé */
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.partners-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text);
  font-weight: bold;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap; /* Permite que os banners quebrem a linha em telas menores */
  justify-content: center; /* Centraliza os banners */
  align-items: center;
  gap: 20px; /* Espaço entre os banners */
  max-width: 1000px;
  margin: 0 auto; /* Centraliza o grid em si */
}

.partner-banner {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-banner:hover {
  transform: translateY(-5px); /* Efeito de elevação ao passar o mouse */
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.partner-banner img {
  display: block;
  max-width: 180px; /* Defina um tamanho máximo para os banners */
  height: auto;     /* Mantém a proporção da imagem */
  border-radius: var(--radius, 8px); /* Usa o mesmo arredondamento do seu site */
}

/* Ajustes para o tema escuro */
body.dark-theme .partners-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========================
   ESTILOS PÁGINA DE VENDAS (VERSÃO CORRIGIDA)
   ======================== */

.sales-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: var(--text);
}

.sales-container section {
    margin-bottom: 50px;
    text-align: center;
}

/* Estilos de Títulos */
.sales-hero h1 {
    font-size: 2.2em;
    line-height: 1.3;
    margin-bottom: 15px;
}

.sales-container h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary);
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* Lista de Benefícios */
.sales-features ul {
    list-style: none;
    padding: 0;
    max-width: 800px; /* Aumentamos um pouco a largura máxima para acomodar as colunas */
    margin: 0 auto;
}

.sales-features li {
    display: flex;
    align-items: flex-start; /* Alinha o topo das colunas */
    gap: 20px; /* Espaço entre as colunas */
    margin-bottom: 25px;
    font-size: 1.1em;
    text-align: left;
}

.sales-features li strong {
    color: var(--text);
}

.feature-title {
    flex-basis: 40%; /* A coluna do título ocupará 40% do espaço */
    flex-shrink: 0; /* Impede que a coluna do título encolha */
    font-weight: bold;
}

/* A segunda coluna (descrição) ocupa o resto do espaço */
.feature-description {
    flex-basis: 60%;
    color: var(--text-secondary); /* Deixa a descrição com uma cor um pouco mais suave */
}

/* Link do Tutorial */
.sales-how-it-works a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.sales-how-it-works a:hover {
    text-decoration: underline;
}

/* Caixa de Pagamento */
.payment-box {
    background-color: var(--banner-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    margin: 20px auto 0 auto;
}

.crypto-icons {
    display: flex;
    font-size: 1.2em;
    align-items: center;  
    flex-direction: column; 
    font-weight: bold;
    margin-top: 15px;
}

.crypto-icons p {
    display: flex;            /* Ícone + texto na mesma linha */
    align-items: center;      /* Centraliza verticalmente */
    gap: 8px;                 /* Espaço entre ícone e texto */
    margin: 6px 0;            /* Espaçamento entre linhas */
    font-size: 1em;           /* Mantém o texto legível */
    color: var(--text);
}

.crypto-icons img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;           /* Impede o ícone de encolher */
}

/* Botão de Ação Principal */
.cta-button-large {
    padding: 15px 35px;
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    margin-top: 20px;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- AJUSTE PARA CELULAR --- */
/* Em telas menores que 600px, as colunas ficam uma em cima da outra */
@media (max-width: 600px) {
    .sales-features li {
        flex-direction: column; /* Empilha as colunas verticalmente */
        gap: 8px; /* Reduz o espaço entre o título e a descrição */
        margin-bottom: 30px;
    }

    .feature-title,
    .feature-description {
        flex-basis: 100%; /* Cada coluna ocupa a largura total */
    }
}