/* Reset e base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    /* background: linear-gradient(135deg, #0a0a1a 0%, #0f0f2e 50%, #1a0a2e 100%); */
    background-image: url('https://jiu-jizza.pinhoes.com/assets/fundoapp.png');
    background-repeat: no-repeat; /* Evita repetição */
    background-position: center; /* Centraliza horizontal e verticalmente */
    background-size: cover; /* Diminui a imagem mantendo a proporção, mostrando-a inteira */
    /* ou background-size: 50%; para definir um tamanho específico */
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Animações neon */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px #00FF40, 0 0 20px #00FF40, 0 0 30px #00FF40; }
  50% { text-shadow: 0 0 20px #00FF40, 0 0 30px #00FF40, 0 0 50px #00FF40; }
}

@keyframes blink-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes float-up {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes spin-bingo {
  0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes float-bingo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* Container principal */
.container {
    display: flex;
    width: 90vw;
    /* height: 70vh; */
    max-height: 95% !important;
    /* margin: 40px auto; */
    padding: 10px;
    /* background: rgba(15, 15, 46, 0.75); */
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.4);
    /* box-shadow: 0 0 40px rgba(255, 0, 157, 0.3), inset 0 0 20px rgba(0, 217, 255, 0.1); */
    box-shadow: 0 0 20px rgba(0, 255, 64, 0.6);
    animation: float-up 0.8s ease-out;
    align-items: center;
    flex-direction: column;
}

h1 {
  position: relative;
  top: 0px;
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #ffffff;
  animation: glow-pulse 2s infinite;
  letter-spacing: 2px;
}
.perfil-container {
    width: 128px;
    height: 128px;
    border-radius: 50%; /* Faz o contêiner ficar redondo */
    overflow: hidden;   /* Corta a imagem fora do contêiner */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 2px solid rgba(0, 217, 255, 0.4);
    /* box-shadow: 0 0 40px rgba(255, 0, 157, 0.3), inset 0 0 20px rgba(0, 217, 255, 0.1); */
    box-shadow: 0 0 20px rgba(0, 255, 64, 0.6);
}

.perfil-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o círculo sem distorcer */
}

/* Formulário */
#whForm { display: flex; flex-direction: column; gap: 15px; }
#whForm.hidden { display: none; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  color: #00FF40;
  font-size: 30px;
}

input[type="text"] {
  /* padding: 12px 15px; */
  font-size: 2rem !important;
  border: 2px solid #00FF40;
  border-radius: 8px;
  background: rgba(0, 255, 64, 0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
}

input[type="text"]:focus {
  outline: none;
  background: rgba(0, 255, 64, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 64, 0.5), inset 0 0 10px rgba(0, 255, 64, 0.2);
  border-color: #8B0000;
}

input[type="text"]:disabled {
  background: rgba(100, 100, 150, 0.1);
  border-color: #666;
  color: #999;
  cursor: not-allowed;
}

/* Remove spinner dos inputs number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* input[type="number"] { */
  /* -moz-appearance: textfield; */
/* } */

/* Campos de telefone separados - agrupados como nome */
.phone-inputs {
    display: flex;
    /* gap: 6px; */
    align-items: center;
    /* flex-wrap: nowrap; */
    /* margin-bottom: 15px; */
    padding: 0;
    background: transparent;
    border-radius: 8px;
    border: none;
    overflow: visible;
    justify-content: center;
}

.phone-inputs input,
.phone-inputs select {
  /* padding: 10px 12px; */
  border: 2px solid #00FF40;
  border-radius: 0;
  background: rgba(0, 255, 64, 0.03);
  color: #fff;
  font-size: 2rem;
  height: 65px;
  line-height: 1;
  /* font-family: 'Courier New', monospace; */
  font-weight: 700;
  text-align: center;
  transition: all 0.18s;
}

.phone-inputs select:first-child {
  border-radius: 8px 0 0 8px;
}

.phone-inputs input:last-of-type {
  border-radius: 0 8px 8px 0;
}

.phone-inputs select {
  border-radius: 8px 0 0 8px;
  /* font-family: 'Segoe UI', sans-serif; */
  padding: 10px 12px;
  min-width: 120px;
}

.phone-inputs input:focus,
.phone-inputs select:focus {
  outline: none;
  background: rgba(0, 255, 64, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 64, 0.45), inset 0 0 8px rgba(0, 255, 64, 0.12);
  border-color: #00FF40;
}

.phone-inputs input[type="number"],
.phone-inputs input[type="text"] {
  width: auto;
}

.phone-inputs span {
  color: #ffffff;
  font-weight: bold;
  /* font-size: 16px; */
  /* padding: 12px 4px; */
  /* font-family: 'Courier New', monospace; */
}

.phone-inputs span#space {
  width: 15px;
}


/* Botões */
button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
  /* transition: all 0.3s; */
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  color: rgb(255, 255, 255) !important;
}

#sendBtn, #confirmBtn, #getGeoBtn {

    
    background: linear-gradient(135deg, #00FF40, #39FF14);
    /* background: linear-gradient(135deg, #f52222, #823434); */
    box-shadow: 0 0 20px rgba(0, 255, 64, 0.6);
}

#sendBtn:hover:not(:disabled), #confirmBtn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 64, 0.8), 0 5px 20px rgba(0, 255, 64, 0.4);
}

#sendBtn:disabled, #confirmBtn:disabled {
  background: linear-gradient(135deg, #555, #777);
  color: #999;
  cursor: not-allowed;
  box-shadow: 0 0 10px rgba(150, 150, 150, 0.3);
}

#resendBtn {
  background: linear-gradient(135deg, #8B0000, #660000);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

#resendBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8), 0 5px 20px rgba(139, 0, 0, 0.4);
}

#resendBtn.hidden { display: none; }

/* Áreas de status e resultado */
#statusArea, #result {
    margin-top: 20px;
    /* margin-top: 50vh; */
    padding: 15px;
    border-radius: 8px;
    background: rgb(255 0 0 / 32%);
    border: 2px solid rgb(255 0 0 / 40%);
    text-align: center;
    font-size: 2rem;
    color: #ff0000;
    animation: float-up 0.5s ease-out;
}

#statusArea.blinking {
  animation: blink-status 1.5s infinite, float-up 0.5s ease-out;
}

#result {
  background: rgba(0, 255, 100, 0.1);
  border-color: rgba(0, 255, 100, 0.4);
  color: #00ff64;
}

.hidden { display: none !important; }

/* PIN Area */
#pinArea.hidden { 
    display: none; 
}
#pinArea { animation: float-up 0.6s ease-out; }

#pinMessage {
  text-align: center;
  margin-bottom: 20px;
  color: #00FF40;
  font-size: 14px;
  line-height: 1.6;
}

.pin-inputs {
  display: flex;
  gap: 12px;
  margin: 25px 0;
  justify-content: center;
}

.pin-inputs input {
  width: 50px;
  height: 50px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #00FF40;
  border-radius: 8px;
  background: rgba(0, 255, 64, 0.08);
  color: #00FF40;
  transition: all 0.3s;
}

.pin-inputs input:focus {
  outline: none;
  background: rgba(0, 255, 64, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 64, 0.6), inset 0 0 10px rgba(0, 255, 64, 0.2);
  border-color: #8B0000;
}

.pin-inputs input:disabled {
  background: rgba(100, 100, 150, 0.1);
  border-color: #666;
  color: #999;
  cursor: not-allowed;
}

/* Login - Tema Cassino */
.casino-bg {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a3e 50%, #0f0f2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.casino-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 0, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.neon-box {
  text-align: center;
  z-index: 10;
  animation: float-up 0.8s ease-out;
}

.neon {
  font-size: 48px;
  font-weight: 900;
  color: #00FF40;
  text-shadow: 
    0 0 10px #00FF40,
    0 0 20px #00FF40,
    0 0 40px #00FF40,
    0 0 80px rgb(0, 255, 64);
  margin-bottom: 40px;
  letter-spacing: 3px;
  animation: glow-pulse 1.5s infinite;
}

.login-box {
  background: rgba(15, 15, 46, 0.95);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid rgba(0, 217, 255, 0.4);
  box-shadow: 0 0 40px rgba(255, 0, 157, 0.3), inset 0 0 20px rgba(0, 217, 255, 0.1);
  min-width: 350px;
}

.login-box label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  color: #00FF40;
  font-weight: 500;
}

.login-box input {
  padding: 12px 15px;
  border: 2px solid #00FF40;
  border-radius: 8px;
  background: rgba(0, 255, 64, 0.05);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
  width: 100%;
}

.login-box input:focus {
  outline: none;
  background: rgba(0, 255, 64, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 64, 0.5);
  border-color: #8B0000;
}

.btn-neon {
  background: linear-gradient(135deg, #00FF40, #39FF14);
  color: #000;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 255, 64, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 64, 0.8), 0 5px 20px rgba(0, 255, 64, 0.4);
}

/* Responsivo */
@media (max-width: 600px) {
  .container { margin: 20px; padding: 25px; }
  h1 { font-size: 24px; }
  .pin-inputs { gap: 8px; }
  .pin-inputs input { width: 45px; height: 45px; font-size: 20px; }
  .neon { font-size: 36px; }
  body::before, body::after, .container::before, .container::after { font-size: 24px !important; }
}

/* Country picker custom dropdown */
.country-picker { position: relative; display: inline-block; }
.country-selected { display:flex; align-items:center; /*padding:8px 10px;*/ background: rgba(255,255,255,0.02); border: 2px solid #00FF40; border-right: hidden;color:#fff; border-radius:8px 0 0 8px; cursor:pointer; height:65px; }
.country-selected img { width:20px; height:14px; display:block; border-radius:2px; }
.country-selected .caret { margin-left:6px; color:#ffffff; }
.country-selected .code-btn { font-weight:700; color:#ffffff;margin-right:8px;}
.country-list { 
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    z-index: 2000;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgb(93 93 93 / 98%);
    border-radius: 6px;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);*/
}
.country-item { 
    display: flex;
    /* gap: 10px; */
    align-items: center;
    /* padding: 8px; */
    cursor: pointer;
    border-radius: 6px;
    color: #fff;
}
.country-item img { width:28px; height:18px; border-radius:2px; }
.country-item:hover { background: rgba(0, 255, 64, 0.479); }
.country-item .label { font-size:14px; }
.country-item .code { margin-right:8px; font-weight:700; color:#ffffff; }

/* Hide native select visually (kept for form submission) */
.native-select-hidden { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

