/* Estilos globais */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f9;
  overflow: hidden;
}

/* Container principal */
.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Logo */
.logo img {
  width: 100%;
  max-width: 250px;
  margin-bottom: 20px;
}

/* Titulo / descricao */
.description {
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  margin: 10px 0 15px;
}

/* Caixa de detalhes/comentario */
.details {
  background-color: #f0f0f0;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  width: 100%;
  max-width: 400px;
}

/* Titulo da contagem regressiva */
.countdown-title {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 5px;
}

/* Contagem regressiva */
.countdown {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
}
.countdown i {
  color: #00c3a5;
  margin-right: 5px;
}

/* Grupo Pix (linha de codigo + botao) */
.pix-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Caixa de copia do codigo Pix */
.pix-code {
  background-color: #f9f9f9;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 450px;
  position: relative;
  margin-bottom: 8px;
}

/* Icone dentro da caixa Pix */
.pix-code i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
}

/* Botao de copiar codigo */
.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  padding: 12px;
  font-size: 0.95rem;
  color: #fff;
  background-color: #492065;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}
.copy-button:hover {
  background-color: #3d1c52;
}
/* Estilo quando o codigo foi copiado */
.copy-button.copiado {
  background-color: #006600;
}

/* Caixa do QR Code */
.qr-code {
  border: 2px solid #00c3a5;
  border-radius: 8px;
  padding: 10px;
}
.qr-code img {
  width: 90%;
  max-width: 300px;
  height: auto;
}

/* Bolha de cashback (invisivel ate necessario) */
.cashback-bubble {
  background: #e6ffed;
  color: #027a3b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Container de cashback */
.cashback-container {
  background: linear-gradient(135deg, #e6ffed 0%, #b8f5d0 100%);
  border: 2px solid #00c3a5;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  text-align: center;
}
.cashback-text h2 {
  color: #027a3b;
  margin-bottom: 10px;
}
.cashback-text p {
  color: #555;
  margin: 5px 0;
}
.cashback-value {
  font-size: 2rem;
  font-weight: bold;
  color: #027a3b;
  margin-top: 10px;
}

/* --- Responsivo para mobile --- */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  .details {
    font-size: 0.9rem;
  }
  .countdown-title {
    margin-bottom: 3px;
  }
  .countdown {
    margin-bottom: 15px;
  }
  .pix-code {
    max-width: 100%;
  }
  .copy-button {
    font-size: 0.9rem;
    padding: 10px;
  }
  .qr-code img {
    max-width: 250px;
  }
}

/* --- Estilo cartao apenas no desktop --- */
@media (min-width: 769px) {
  .container {
    max-width: 650px;
    margin: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: #ffffff;
    padding: 20px;
  }
}
