/* ============================================
   ESTILOS PRINCIPAIS - SPOTIFYPAY
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  /* background: linear-gradient(135deg, #1a1a2e 0%, #444444 50%, #0f3460 100%); */
  background: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
}

/* ============================================
   ANIMAÇÕES GLOBAIS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(6, 179, 46, 0.5); }
  50% { box-shadow: 0 0 20px rgba(6, 179, 46, 0.8), 0 0 30px rgba(6, 179, 46, 0.4); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   MENU SUPERIOR
   ============================================ */

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,244,248,0.95));
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 9998;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu a img {
  max-height: 50px;
  width: auto;
}

.buttons-container {
  display: flex;
  align-items: center;
  padding: 10px;
}

.valor-box {
  min-width: 140px;
  height: 40px;
  background: linear-gradient(135deg, #06B32E, #04a128);
  border-radius: 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(6, 179, 46, 0.4);
  animation: glow 2s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.valor-box:hover {
  transform: scale(1.05);
}

.valor-box span {
  font-weight: bold;
  font-size: 18px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#valor {
  font-weight: bold;
  font-size: 18px;
  color: white;
}

/* ============================================
   MENU INFERIOR
   ============================================ */

.menuemb {
  position: fixed;
  bottom: 15px;
  width: 92%;
  left: 4%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 8px 15px;
  border-radius: 25px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9995;
}

.menuemb a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.menuemb a:hover {
  background: rgba(6, 179, 46, 0.1);
}

.menuemb a span {
  transition: all 0.3s ease;
}

.menuemb a:active span {
  transform: scale(0.9);
}

/* ============================================
   CAIXAS E CONTAINERS
   ============================================ */

.outer-box {
  width: 92%;
  display: flex;
  margin: 0 auto 20px;
  border-radius: 20px;
  animation: slideUp 0.5s ease-out;
  padding-bottom: 10px;
}

/* Espaço extra para o menu inferior não cobrir conteúdo */
#inicio .outer-box,
#saque .outer-box,
#bonus .outer-box {
  margin-bottom: 25px;
}

/* Adiciona padding no container principal para o menu inferior */
#inicio, #saque, #bonus {
  padding-bottom: 100px;
}

.outer-box-login {
  width: 92%;
  display: flex;
  margin: 0 auto;
  border-radius: 20px;
}

.white-box {
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  border-radius: 20px;
  padding: 25px 15px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.white-box-login {
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.imagem {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  width: 85%;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px;
}

.imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ============================================
   VALOR DE SAQUE
   ============================================ */

.valor-box-saque {
  width: 100%;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#valor-saque, #valor-money {
  display: block;
  font-weight: bold;
  font-size: 42px;
  color: #06B32E;
  text-shadow: 0 2px 4px rgba(6, 179, 46, 0.2);
  animation: countUp 0.5s ease-out;
}

/* ============================================
   BOTÕES DE RATING - INTERATIVOS
   ============================================ */

.rating-container {
  display: flex;
  gap: 8px;
  width: 95%;
  margin: 10px auto;
  flex-wrap: wrap;
  justify-content: center;
}

.rating-button {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  border: 2px solid transparent;
  min-width: 50px;
  flex: 1;
  height: 45px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.rating-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.rating-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #06B32E;
}

.rating-button:hover::before {
  left: 100%;
}

.rating-button:active {
  transform: translateY(-1px) scale(0.98);
}

.rating-button.active {
  background: linear-gradient(135deg, #06B32E, #04a128);
  color: white;
  border-color: #06B32E;
  box-shadow: 0 5px 20px rgba(6, 179, 46, 0.4);
  animation: pulse 0.3s ease-out;
}

.rating-button.active::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.8;
}

/* ============================================
   PERGUNTAS
   ============================================ */

.pergunta-whats {
  font-size: 15px;
  text-align: center;
  font-weight: 600;
  color: #444;
  padding: 0 15px;
  margin: 25px 0 12px;
  line-height: 1.4;
}

/* ============================================
   BOTÕES PRINCIPAIS
   ============================================ */

.enviarCodigo {
  background: linear-gradient(135deg, #06B32E, #04a128);
  width: 93%;
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 20px auto 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(6, 179, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.enviarCodigo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.enviarCodigo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 179, 46, 0.4);
}

.enviarCodigo:active {
  transform: translateY(0);
}

.enviarCodigo:disabled {
  background: linear-gradient(135deg, #ccc, #aaa);
  cursor: not-allowed;
  box-shadow: none;
}

.prosseguir-button {
  background: linear-gradient(135deg, #06B32E, #04a128);
  width: 90%;
  border-radius: 12px;
  color: #fff;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(6, 179, 46, 0.3);
}

.prosseguir-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 179, 46, 0.4);
}

.desbloquear-button {
  background: linear-gradient(135deg, #06B32E, #04a128);
  width: 90%;
  border-radius: 12px;
  color: #fff;
  border: none;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(6, 179, 46, 0.3);
}

.desbloquear-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 179, 46, 0.4);
}

/* ============================================
   BOTÕES PIX
   ============================================ */

.button-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 92%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.square-button {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  border: 2px solid transparent;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.square-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.square-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #06B32E;
}

.square-button.active {
  background: linear-gradient(135deg, #06B32E, #04a128);
  transform: scale(1.1);
  border-color: #06B32E;
  box-shadow: 0 8px 25px rgba(6, 179, 46, 0.4);
}

.square-button.active img {
  filter: brightness(0) invert(1);
}

/* ============================================
   INPUTS
   ============================================ */

.form-input {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  width: 90%;
  height: 50px;
  display: block;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #06B32E;
  box-shadow: 0 0 0 3px rgba(6, 179, 46, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* ============================================
   POPUPS
   ============================================ */

.popup-container {
  position: fixed;
  border-radius: 20px;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 30px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 10000;
  animation: popupIn 0.3s ease-out forwards;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-containerL {
  position: fixed;
  border-radius: 20px;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 10000;
}

.popup-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  display: block;
  text-align: center;
  line-height: 1.5;
}

/* Lottie Animation - Animação de moeda */
.lottie-animation {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: block;
}

.popup-textL {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
  display: block;
  text-align: center;
  line-height: 1.5;
}

/* ============================================
   PROGRESSO CIRCULAR
   ============================================ */

#container-progresso {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

#barra-progresso-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#minha-barra-progresso {
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  animation: preencherAnimacao 2s ease-out forwards;
}

@keyframes preencherAnimacao {
  to {
    stroke-dasharray: 100 0;
  }
}

#texto-progresso {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #06B32E;
}

/* ============================================
   FAQ
   ============================================ */

.faq-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #06B32E;
  text-align: center;
}

.faq-container {
  width: 92%;
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.question {
  padding: 18px 20px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  color: #444;
  transition: all 0.3s ease;
  position: relative;
}

.question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #06B32E;
  transition: transform 0.3s ease;
}

.question:hover {
  background: #f8f9fa;
}

.answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #06B32E, #04a128);
  color: white;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.answer.active {
  padding: 18px 20px;
  max-height: 300px;
}

/* ============================================
   FOOTER LOGIN
   ============================================ */

.footer-text {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.8));
}

.footer-text p {
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================
   MATERIAL ICONS
   ============================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 30;
}

/* ============================================
   NOTIFICAÇÃO DE GANHO
   ============================================ */

.gain-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #06B32E, #04a128);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(6, 179, 46, 0.4);
  z-index: 10001;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gain-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.gain-notification .icon {
  margin-right: 10px;
}

/* ============================================
   BADGE DE VERIFICADO
   ============================================ */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #06B32E, #04a128);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.verified-badge::before {
  content: '✓';
}

/* ============================================
   CONTADOR DE USUÁRIOS ONLINE
   ============================================ */

.online-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(6, 179, 46, 0.1);
  border-radius: 25px;
  margin: 15px auto;
  width: fit-content;
  font-size: 14px;
  color: #06B32E;
  font-weight: 600;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #06B32E;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   BARRA DE PROGRESSO DAS TAREFAS
   ============================================ */

.task-progress {
  width: 90%;
  margin: 15px auto;
  background: #e0e0e0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.task-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #06B32E, #04a128);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.task-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

/* ============================================
   TÍTULO DO PRÊMIO
   ============================================ */

.prize-title {
  font-size: 22px;
  text-align: center;
  font-weight: bold;
  margin: 0 0 15px;
  color: #06B32E;
  position: relative;
}

.prize-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #06B32E, #04a128);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* ============================================
   TRANSIÇÕES DE PÁGINA - MOBILE FIRST
   ============================================ */

#inicio, #saque, #bonus, #login {
  transition: none;
}

#inicio.page-enter, #saque.page-enter, #bonus.page-enter {
  animation: slideInUp 0.25s ease-out forwards;
}

#inicio.page-exit, #saque.page-exit, #bonus.page-exit {
  animation: fadeOut 0.15s ease-out forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Transições suaves para ads do quiz */
[id^="ad"] {
  transition: none !important;
}

[id^="ad"].ad-enter {
  animation: slideInRight 0.3s ease-out forwards;
}

[id^="ad"].ad-exit {
  animation: slideOutLeft 0.2s ease-out forwards;
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

/* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */

@media (max-width: 480px) {
  .menu {
    height: 60px;
    padding: 0 10px;
    border-radius: 0 0 15px 15px;
  }
  
  .menu a img {
    max-height: 40px;
  }
  
  .valor-box {
    min-width: 120px;
    height: 36px;
    padding: 0 15px;
  }
  
  .valor-box span, #valor {
    font-size: 15px;
  }
  
  .menuemb {
    bottom: 10px;
    width: 94%;
    left: 3%;
    padding: 6px 10px;
    border-radius: 20px;
  }
  
  .menuemb a {
    padding: 8px 15px;
  }
  
  .outer-box {
    width: 95%;
    margin: 0 auto 15px;
  }
  
  .white-box {
    padding: 20px 12px;
    border-radius: 15px;
  }
  
  .imagem {
    width: 90%;
    padding: 12px;
    border-radius: 12px;
  }
  
  .prize-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .pergunta-whats {
    font-size: 14px;
    padding: 0 10px;
    margin: 18px 0 10px;
  }
  
  .rating-container {
    width: 98%;
    gap: 6px;
  }
  
  .rating-button {
    font-size: 13px;
    padding: 10px 8px;
    min-width: 45px;
    height: 42px;
    border-radius: 10px;
  }
  
  .enviarCodigo {
    width: 95%;
    padding: 14px;
    font-size: 14px;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  #valor-saque, #valor-money {
    font-size: 34px;
  }
  
  .popup-container, .popup-containerL {
    width: 92%;
    padding: 25px 15px;
    border-radius: 15px;
  }
  
  .gain-notification {
    top: 70px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 40px;
  }
}

@media (max-width: 380px) {
  .rating-button {
    font-size: 12px;
    padding: 8px 6px;
    min-width: 38px;
    height: 40px;
  }
  
  .pergunta-whats {
    font-size: 13px;
  }
  
  #valor-saque, #valor-money {
    font-size: 30px;
  }
  
  .prize-title {
    font-size: 16px;
  }
  
  .enviarCodigo {
    font-size: 13px;
    padding: 12px;
  }
  
  .valor-box {
    min-width: 100px;
  }
  
  .valor-box span, #valor {
    font-size: 14px;
  }
}
