/* Importando Roboto direto no CSS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,900;1,100;1,400;1,900&display=swap');

:root {
  --topbar-h: 6.25rem;
  --c-topbar: #214596;
  --c-yellow: #fbba16;
  --c-green1: #1a822f;
  --c-green2: #439c39;
  --c-bg: #00130b;
  --maxw: 48.125rem;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Spinner e estado de loading para o botão enviar */
.sendBtn.loading {
  pointer-events: none;
  opacity: 0.85;
}
.sendBtn.loading::after {
  content: '';
  display: inline-block;
  margin-left: 0.75rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  animation: wpf-spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes wpf-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Spinner e estado de loading para o botão enviar */
.sendBtn.loading {
  pointer-events: none;
  opacity: 0.85;
}
.sendBtn.loading::after {
  content: '';
  display: inline-block;
  margin-left: 0.75rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  animation: wpf-spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes wpf-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Garantir boa apresentação do bloco PIX */
#wpf-pix-content img { max-width: 260px; height: auto; display:block; margin: .5rem auto; }
#wpf-pix-content textarea { width: 100%; min-height: 80px; resize: vertical; }
#wpf-upload-section { max-width: var(--maxw); margin: 0 auto; }
#wpf-pix-section { max-width: var(--maxw); margin: 0 auto; }
html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: var(--c-bg);
  overflow-x: hidden;
}

/* HEADER */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--c-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-left: 1.25rem;
  padding-right: .625rem;
}
.brand__logo {
  width: 108px;
  height: 81px;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__title {
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--c-yellow);
  padding-top: 1.563rem;
  padding-bottom: .625rem;
}
.brand__subtitle {
  font-weight: 100;
  font-size: .875rem;
  color: #fff;
  padding-bottom: .625rem;
}
.brand__closing {
  font-weight: 100;
  font-size: .688rem;
  color: #fff;
  padding-bottom: 1.563rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}

/* Ações do topbar */
.topbar__actions {
  display: flex;
  align-items: center;
}

/* Botões topbar */
.btn-outline {
  border: 3px solid #fff;
  padding: .5rem 1rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 900;
  margin-left: .5rem;
  transition: all .2s ease;
}
.btn-outline:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Botões móveis - ocultos por padrão */
.mobile-only {
  display: none;
}

/* Responsividade móvel para botões */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
  
  .topbar__actions {
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .btn-outline {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
    margin-left: 0.2rem;
  }
  
  .contact-info.mobile-only {
    color: #fff;
    font-size: 0.6rem;
    font-weight: 500;
    margin-left: 0.4rem;
    white-space: nowrap;
  }
}

/* MAIN */
.site-main {
  padding-top: var(--topbar-h);
  min-height: 100vh;
  /* Repetir a imagem de fundo quando ela terminar (tile) */
  background-image: url('../images/bg.jpg');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
  background-size: auto;
  background-color: var(--c-bg);
  padding-bottom: 3rem;
}

/* Ticket */
.hero { padding-top: 1.563rem; display: block; max-width: 18rem; margin:auto; text-align: center }
.hero h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.hero ul { list-style: none; text-align: left; margin-bottom: 1.563rem;  }
.hero li { line-height: 2.5rem;  }
.first-value { font-weight: bold; font-size: 2rem; }
.second-value { font-weight: bold; font-size: 1.5rem; }
.extra-value { font-weight: bold; font-size: 1rem; }

/* Slider (animação suave) */
.slider {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform .6s cubic-bezier(0.77, 0, 0.175, 1);
}
.panel {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}
.main-content .palpites {
  max-width: var(--maxw);
  width: 100%;
  padding-bottom: 5rem;
}
.pix-content .pix {
  max-width: var(--maxw);
  width: 100%;
  min-height: 37.5rem;
}
.cta { text-align: center; margin-top: 3rem; }

/* Botões send/back */
.sendBtn {
  box-shadow: inset 0px 1px 0px 0px #fff6af;
  background: linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
  border-radius: 6px;
  border: 1px solid #ffaa22;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  padding: 6px 24px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #ffee66;
  transition: all .2s ease;
}
.sendBtn:hover { background: linear-gradient(to bottom, #ffab23 5%, #ffec64 100%); }
.sendBtn:active { position: relative; top: 1px; }

/* Estado desabilitado: deixar o botão em tom de cinza e sem hover/efeitos */
.sendBtn[disabled], .sendBtn.disabled {
  background: #cfcfcf; /* fundo cinza claro */
  border: 1px solid #bdbdbd;
  color: #666 !important;
  box-shadow: none;
  text-shadow: none;
  cursor: not-allowed;
  opacity: 0.9;
}
.sendBtn, .sendBtn[disabled], .sendBtn.disabled {
  transition: background .25s ease, color .25s ease, opacity .25s ease, border .25s ease;
}

/* Estado 'ready' quando habilitado: leve scale e glow */
.sendBtn.ready {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(255,170,34,0.25), 0 2px 6px rgba(0,0,0,0.2) inset;
}
.sendBtn[disabled]:hover, .sendBtn.disabled:hover {
  /* impedir o efeito hover */
  background: #cfcfcf;
}
/* Feedback text transition */
#sendFeedback {
  transition: color .2s ease, opacity .2s ease;
  opacity: 1;
  padding-top: 20px;
}

.backBtn {
  box-shadow: 0px 1px 0px 0px #9fb4f2;
  background: linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);
  border-radius: 6px;
  border: 1px solid #4e6096;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 6px 24px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #283966;
  transition: all .2s ease;
}
.backBtn:hover { background: linear-gradient(to bottom, #476e9e 5%, #7892c2 100%); }
.backBtn:active { position: relative; top: 1px; }

/* Modal com animação fade + scale */
/* Modal com animação fade + scale */
.modal {
  display: none !important; /* inicia escondido (forçado para evitar conflitos que deixem o conteúdo visível) */
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal__box {
  position: relative;
  width: 18.75rem; height: 25rem;
  background: #fff;
  color: #000;
  padding: 1rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;

  transform: scale(0.85);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.modal__close {
  position: absolute;
  top: .5rem; left: .5rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transform: scale(0.8);
  opacity: 0;
  transition: transform .2s ease-out, opacity .2s ease-out;
}

/* Estado ativo */
.modal.active {
  display: flex !important; /* só mostra quando ativo (forçado) */
}
.modal.active .modal__backdrop {
  opacity: 1;
}
.modal.active .modal__box {
  opacity: 1;
  transform: scale(1);
}
.modal.active .modal__close {
  transform: scale(1);
  opacity: 1;
}



/* Botão fechar modal */
.closeBtn {
  box-shadow: 0px 1px 0px 0px #9fb4f2;
  background:linear-gradient(to bottom, #7892c2 5%, #476e9e 100%);
  border-radius:6px;
  border:1px solid #4e6096;
  color:#fff;
  font-size:15px;
  font-weight:bold;
  padding:6px 24px;
  text-decoration:none;
}
.closeBtn:hover { background:linear-gradient(to bottom, #476e9e 5%, #7892c2 100%); }
.closeBtn:active { position:relative; top:1px; }

/* Responsividade */
@media (max-width: 768px) {
  .brand__title { font-size: 1rem; }
}


/* Palpites tabela */
/* Tabela de palpites */
.palpite-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  background: transparent;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  border: 1px solid rgba(255,255,255,0.2);
  table-layout: auto;
}

.palpite-table td {
  padding: 1rem 0.5rem;
  vertical-align: middle;
  border: none;
}

/* Colunas desktop - distribuição equilibrada */
.palpite-table td:nth-child(1), /* Time mandante */
.palpite-table td:nth-child(5) { /* Time visitante */
  width: 25%;
}
.palpite-table td:nth-child(2), /* Score mandante */
.palpite-table td:nth-child(4) { /* Score visitante */
  width: 15%;
}
.palpite-table td:nth-child(3) { /* Versus central */
  width: 20%;
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
}

.team-col .team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-label {
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.team-logo {
  width: 60px;
  height: 60px;
  margin-bottom: .5rem;
}

.team-name {
  text-transform: uppercase;
  font-weight: 400;
  font-size: .8rem;
}

.score-col {
  vertical-align: middle;
}

.score-input {
  width: 60px;
  height: 50px;
  padding: 0.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  box-sizing: border-box;
}

/* Remover setas padrão em inputs number */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-input[type=number] {
  -moz-appearance: textfield;
}

/* Versus e horário */

/* ====== Estilos para a seção PIX ====== */
.pix { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem;
  border-radius: 10px;
  color: #fff;
}

.pix h2, .pix h3, .pix h4 {
  margin: 0 0 .5rem 0;
  color: var(--c-yellow);
  font-weight: 800;
}

.pix .wpf-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 8px;
}

#wpf-pix-content {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  text-align: center;
}

#wpf-pix-content p { margin: .25rem 0; color: #fff; }

#wpf-pix-content .wpf-pix-amount { font-size: 1.5rem; font-weight: 900; color: var(--c-green2); }

#wpf-upload-section form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }

#wpf-upload-section label { font-weight: 700; color: #fff; }

#wpf-upload-section input[type="file"] { border: 1px dashed rgba(255,255,255,0.12); padding: .5rem; border-radius: 6px; background: rgba(255,255,255,0.02); color: #fff; }

#wpf-upload-form .wpf-btn, #wpf-upload-form button, #wpf-upload-proof {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, #2b6f2b, #1a822f);
  color: #fff;
  font-weight: 700;
}

#wpf-upload-form .wpf-btn:hover, #wpf-upload-form button:hover { opacity: .95; transform: translateY(-1px); }

.wpf-form-error { background: rgba(255,0,0,0.07); color: #ffb3b3; padding: .75rem; border-radius: 6px; border: 1px solid rgba(255,0,0,0.08); }

/* Layout grid para desktop: pix + detalhes lado a lado */
.pix .pix-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

/* Responsivo: empilha em telas pequenas */
@media (max-width: 900px) {
  .palpite-table { width: 80%; }
  .pix .pix-grid { grid-template-columns: 1fr; }
  #wpf-pix-content img { max-width: 100%; }
  .pix { padding: .75rem; }
}

@media (max-width: 480px) {
  :root { --maxw: 100%; }
  .brand__logo { width: 84px; height: 64px; }
  .team-name { font-size: .75rem; }
  .score-input { width: 48px; }
}

/* Utilitários e ajustes visuais adicionais */
.hidden { display: none; /* Removido !important para que scripts que definem inline style (ex: style="display:block") possam sobrescrever e exibir se necessário */ }
.mt-1 { margin-top: 1rem !important; }
.wpf-card { transition: box-shadow .18s ease, transform .12s ease; }
.wpf-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.35); transform: translateY(-2px); }
.wpf-error-text { color: #ff8080; display: block; margin-top: .25rem; }

/* Captcha image styling */
.wpf-captcha-img { height: 48px; border: 1px solid #ddd; background: #fff; padding: 4px; border-radius: 4px; }

/* Centralizar e limitar o QR code / imagem do pix */
#wpf-pix-content img { max-width: 320px; width: 90%; height: auto; display:block; margin: .5rem auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }

/* Ranking / visualização helpers */
.flex-row { display:flex; gap:8px; align-items:center; }
.space-between { justify-content: space-between; }
.label-strong { font-weight:600; }
.muted { color:#666; }
.avatar { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; }
.winner { background: #fafafa; border:1px solid #eee; padding:6px 8px; border-radius:8px; display:flex; gap:8px; align-items:center; }
.winners-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }



.versus {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: .25rem;
}
.match-time {
  font-size: .875rem;
  margin-bottom: .75rem;
}

/* Responsividade Tablet */
@media (max-width: 768px) {
  .palpite-table { 
    width: 95%; 
    table-layout: fixed;
  }
  .palpite-table td { 
    padding: .5rem .25rem; 
  }
  /* Distribuição de colunas para tablet */
  .palpite-table td:nth-child(1), /* Time mandante */
  .palpite-table td:nth-child(5) { /* Time visitante */
    width: 25%;
  }
  .palpite-table td:nth-child(2), /* Score mandante */
  .palpite-table td:nth-child(4) { /* Score visitante */
    width: 15%;
  }
  .palpite-table td:nth-child(3) { /* Versus central */
    width: 20%;
  }
  
  .score-input { width: 45px; font-size: 1rem; }
  .team-logo { width: 45px; height: 45px; }
  .brand__title { font-size: 1rem; }
  .brand__subtitle { font-size: 0.75rem; }
  .brand__closing { font-size: 0.625rem; }
  .btn-outline { padding: 0.3rem 0.6rem; font-size: 0.75rem; border-width: 2px; }
  .team-label, .team-name { font-size: 0.7rem; }
  .versus { font-size: 1.1rem; }
  .match-time { font-size: 0.65rem; }
}

/* Responsividade celulares pequenos */
@media (max-width: 480px) {
  /* HEADER ainda menor */
  .brand__title {
    font-size: 0.875rem;
  }
  .brand__subtitle {
    font-size: 0.688rem;
  }
  .brand__closing {
    font-size: 0.55rem;
  }
  .btn-outline {
    padding: 0.2rem 0.35rem;
    font-size: 0.58rem;
    margin-left: 0.15rem;
  }
  
  .contact-info.mobile-only {
    font-size: 0.52rem;
    margin-left: 0.25rem;
  }
  
  .topbar__actions {
    gap: 0.15rem;
  }

  /* TABELA DE PALPITES MOBILE */
  .palpite-table { 
    width: 100%; 
    table-layout: fixed;
    font-size: 0.85rem;
  }
  
  .palpite-table td { 
    padding: 0.4rem 0.15rem; 
  }
  
  /* Distribuição otimizada para mobile */
  .palpite-table td:nth-child(1), /* Time mandante */
  .palpite-table td:nth-child(5) { /* Time visitante */
    width: 28%;
  }
  .palpite-table td:nth-child(2), /* Score mandante */
  .palpite-table td:nth-child(4) { /* Score visitante */
    width: 12%;
  }
  .palpite-table td:nth-child(3) { /* Versus central */
    width: 20%;
  }
  
  .team-label,
  .team-name {
    font-size: 0.65rem;
    line-height: 1.1;
  }
  .team-logo {
    width: 35px;
    height: 35px;
    margin-bottom: 0.25rem;
  }
  .score-input {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
    text-align: center;
  }
  .versus {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  .match-time {
    font-size: 0.6rem;
    line-height: 1.1;
  }
  
  /* Melhor alinhamento dos blocos dos times */
  .team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
  }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 360px) {
  .palpite-table td:nth-child(1), /* Time mandante */
  .palpite-table td:nth-child(5) { /* Time visitante */
    width: 30%;
  }
  .palpite-table td:nth-child(2), /* Score mandante */
  .palpite-table td:nth-child(4) { /* Score visitante */
    width: 10%;
  }
  .palpite-table td:nth-child(3) { /* Versus central */
    width: 20%;
  }
  
  .team-name {
    font-size: 0.6rem;
  }
  .team-logo {
    width: 30px;
    height: 30px;
  }
  .score-input {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .versus {
    font-size: 0.8rem;
  }
  .match-time {
    font-size: 0.55rem;
  }
  
  /* Botões ainda menores para telas muito pequenas */
  .btn-outline {
    padding: 0.15rem 0.25rem;
    font-size: 0.5rem;
    margin-left: 0.1rem;
  }
  
  .contact-info.mobile-only {
    font-size: 0.45rem;
    margin-left: 0.15rem;
  }
}
}

.btn-outline {
  margin-bottom: 0.5rem;
  display: block;
}

}
/* Fim tabela palpites */


/* Estilização adicional SCROLL*/
/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #397524 #DFE9EB;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #DFE9EB;
}

*::-webkit-scrollbar-track:hover {
  background-color: #B8C0C2;
}

*::-webkit-scrollbar-track:active {
  background-color: #B8C0C2;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #397524;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #62A34B;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #62A34B;
}


/*Input de Celular*/
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 250px; /* ajuste conforme necessário */
}

.input-group label {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #fff;
}

.input-group input {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.6);
}

.celular-section {
  text-align: center;
  padding-bottom: 2rem;
  width: 90%;
}

/* Responsivo para contact-info-top */
@media (max-width: 768px) {
  
    .wpf-sync-banner {
    position: relative;
    top: 100px;
  }
}

@media (max-width: 480px) {
  
    .wpf-sync-banner {
    position: relative;
    top: 100px;
  }
}



/*En d input de celular*/


