:root {
  --primary-color: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #c8e6c9;
  --accent-color: #ff9800;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --divider-color: #444444;
  --background-color: #000000;
  --card-background: #1a1a1a;
  --card-background-secondary: #2a2a2a;
  --success-color: #4caf50;
  --warning-color: #ffc107;
  --error-color: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider-color);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo img {
  max-width: 220px;
  height: auto;
}

header h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

section {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--card-background);
  background-image: linear-gradient(145deg, var(--card-background), #222222);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  text-align: center;
}

.premio-destaque h3 {
  margin-bottom: 0.2rem;
}

.premio-destaque {
  text-align: center;
}

.premio-imagem {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.premio-imagem img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.selo-oportunidade {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ou-valor {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.preco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.preco p {
  margin: 0;
}

.valor-principal {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cotas p {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.grid-cotas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-cotas {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-cotas:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.promocao {
  background-color: var(--card-background-secondary);
  border-left: 4px solid var(--warning-color);
}

.promocao h3 {
  color: var(--text-primary);
}

.destaque {
  color: var(--primary-color);
  font-weight: 700;
}

.premio-info {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--card-background-secondary);
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid var(--primary-color);
}

.cotas-premiadas ul,
.top-compradores ul,
.beneficios ul {
  list-style-type: none;
  padding-left: 1rem;
}

.cotas-premiadas li,
.top-compradores li,
.beneficios li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.ranking p {
  margin-bottom: 1rem;
  text-align: center;
}

.tabela-ranking {
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  overflow: hidden;
}

.cabecalho-ranking {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.item-ranking {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--divider-color);
}

.item-ranking:last-child {
  border-bottom: none;
}

.item-ranking.destaque {
  background-color: var(--card-background-secondary);
  border-left: 4px solid var(--primary-color);
}

.item-ranking span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 1rem;
  border-top: 1px solid var(--divider-color);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  width: 100%;
}

.empresas-logo {
  max-width: 350px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .empresas-logo {
    max-width: 90%;
  }
}

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

  .grid-cotas {
    grid-template-columns: 1fr;
  }

  .item-ranking span:first-child {
    max-width: 70%;
  }
}

/* Estilos para Modal */
.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.mostrar {
  opacity: 1;
  visibility: visible;
}

.modal-conteudo {
  background-color: var(--card-background);
  background-image: linear-gradient(145deg, var(--card-background), #222222);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.mostrar .modal-conteudo {
  transform: translateY(0);
}

.fechar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.botoes-modal {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.btn-cancelar,
.btn-confirmar {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-cancelar {
  background-color: #3a3a3a;
  color: var(--text-primary);
}

.btn-confirmar {
  background-color: var(--primary-color);
  color: white;
}

.btn-confirmar:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-cancelar:hover {
  background-color: #4d4d4d;
}

.btn-confirmar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mensagem de sucesso */
.mensagem-sucesso {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--success-color);
  color: white;
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-align: center;
  max-width: 90%;
}

.mensagem-sucesso.mostrar {
  transform: translateX(-50%) translateY(0);
}

/* Efeito de piscar para o ranking */
@keyframes piscar {
  0% {
    background-color: var(--card-background-secondary);
  }
  50% {
    background-color: #383838;
  }
  100% {
    background-color: var(--card-background-secondary);
  }
}

.item-ranking.destaque.piscar {
  animation: piscar 2s infinite;
}

/* Melhorias adicionais para UX */
.btn-cotas:active {
  transform: translateY(0);
}

/* Animação ao carregar a página */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

section:nth-child(1) {
  animation-delay: 0.1s;
}
section:nth-child(2) {
  animation-delay: 0.2s;
}
section:nth-child(3) {
  animation-delay: 0.3s;
}
section:nth-child(4) {
  animation-delay: 0.4s;
}
section:nth-child(5) {
  animation-delay: 0.5s;
}
section:nth-child(6) {
  animation-delay: 0.6s;
}
section:nth-child(7) {
  animation-delay: 0.7s;
}

/* Melhorias para acessibilidade */
.btn-cotas:focus,
.btn-cancelar:focus,
.btn-confirmar:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* Estilos para o Carrossel */
.carrossel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.carrossel-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}

.carrossel-slide {
  min-width: 100%;
  transition: opacity 0.3s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.carrossel-slide img {
  pointer-events: none;
}

.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carrossel-btn:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
}

.carrossel-btn.anterior {
  left: 10px;
}

.carrossel-btn.proximo {
  right: 10px;
}

.indicadores {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.indicador {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicador.ativo {
  background-color: var(--primary-color);
}

/* Ajustes para o carrossel na seção premio-destaque */
.premio-destaque .premio-imagem {
  margin-bottom: 0;
}

/* Melhorias de responsividade */
@media (min-width: 768px) {
  /* Estilos para tablets e desktops */
  .container {
    max-width: 800px;
    padding: 2rem;
    margin: 2rem auto;
  }

  header {
    margin-bottom: 2rem;
  }

  .logo img {
    max-width: 280px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  header h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .valor-principal {
    font-size: 2.5rem;
  }

  .grid-cotas {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .carrossel {
    border-radius: 12px;
    overflow: hidden;
  }

  .carrossel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .premio-info {
    font-size: 1.1rem;
    padding: 1.5rem;
  }

  .tabela-ranking {
    font-size: 1.1rem;
  }

  .cotas h3 {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  /* Estilos para desktops maiores */
  .container {
    max-width: 1000px;
  }

  .grid-cotas {
    grid-template-columns: repeat(5, 1fr);
  }

  .carrossel-container {
    height: 400px;
  }

  .carrossel-slide .premio-imagem img {
    height: 400px;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  /* Ajustes para tablets pequenos e celulares maiores */
  .container {
    padding: 1rem;
    margin: 0.5rem auto;
    border-radius: 8px;
  }

  .logo img {
    max-width: 200px;
  }

  .btn-cotas {
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .indicador {
    width: 10px;
    height: 10px;
  }

  .carrossel-btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  /* Ajustes para celulares */
  .container {
    padding: 0.7rem;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
  }

  header {
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
  }

  .logo img {
    max-width: 180px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  header h2 {
    font-size: 1rem;
  }

  section {
    margin-bottom: 1.5rem;
    padding: 0.7rem;
  }

  h3 {
    font-size: 1rem;
  }

  .valor-principal {
    font-size: 1.8rem;
  }

  .grid-cotas {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn-cotas {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .carrossel-container {
    height: 250px;
  }

  .carrossel-slide .premio-imagem img {
    height: 250px;
    object-fit: cover;
  }

  .carrossel-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .indicadores {
    bottom: 5px;
  }

  .indicador {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }

  .item-ranking span:first-child {
    max-width: 65%;
    font-size: 0.9rem;
  }

  .modal-conteudo {
    padding: 1.5rem;
    width: 95%;
  }

  .botoes-modal {
    flex-direction: column;
    gap: 10px;
  }

  .btn-cancelar,
  .btn-confirmar {
    width: 100%;
  }

  .mensagem-sucesso {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.7rem;
    padding: 0.7rem;
  }
}

/* Fix para o Chrome mobile e Safari */
@media (hover: none) {
  .btn-cotas:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-cotas:active {
    background-color: var(--primary-dark);
  }
}

/* Melhorias para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: 0.5rem;
  }

  .carrossel-container {
    height: 200px;
  }

  .carrossel-slide .premio-imagem img {
    height: 200px;
  }

  .grid-cotas {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-conteudo {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Animação de loading para imagens */
@keyframes imagemLoading {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.carrossel-slide img {
  animation: imagemLoading 0.3s ease-in;
}

/* Título da seção cotas com tamanho maior */
.cotas h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Seção de Plataforma Segura */
.plataforma-segura {
  text-align: center;
  background-color: #f8f9fa;
}

.plataforma-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  width: 100%;
}

.plataforma-img {
  max-width: 300px; /* ou 400px, ajuste conforme preferir */
  height: auto;
  margin: 0 auto;
  display: block;
}

.plataforma-segura p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* @media (max-width: 768px) {
  .plataforma-img {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .plataforma-img {
    max-width: 180px;
  }
} */

.destaque-cota {
    position: relative;
    display: inline-block;
}

.destaque-btn {
  position: relative;
}

.selo-destaque {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e53935; /* vermelho */
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 1px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

.texto-footer {
  text-align: justify;
  font-size: 0.65rem;
  color: #777;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px;
}

.premio-imagem {
  position: relative;
  display: inline-block;
}

.logo-sobreposta {
  position: absolute;
  bottom: 8px;
  right: 5px;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  z-index: 2;
  opacity: 0.95;
  object-fit: contain;
  pointer-events: none;
}




