*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; height:100%; background:#000; font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; color:#eaeaea; }
iframe.fullscreen { position:fixed; inset:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:1; }

#withdrawBtn{
  position: fixed; left: 16px; top: 16px;
  height: 40px; padding: 0 12px; border: none; outline: none; border-radius: 8px;
  background: linear-gradient(135deg,#ffd700,#c9a227);
  color: #000; font-weight: 700; font-size: 12px; letter-spacing:.2px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.2);
  z-index: 2; cursor: pointer; text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease;
}
#withdrawBtn:hover{ transform: translateY(-1px); box-shadow:0 12px 24px rgba(0,0,0,.28), 0 6px 10px rgba(0,0,0,.22); }

.modal-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(2px); z-index:2147483600; display:none; align-items:center; justify-content:center; }
.modal{
  width:min(94vw, 560px); background:#0f0f0f; color:#eaeaea; border-radius:16px; box-shadow:0 22px 60px rgba(0,0,0,.5);
  padding:12px 18px 16px; overflow:visible;
}
.modal header{ display:flex; align-items:center; justify-content:space-between; padding:10px 2px 12px; border-bottom:1px solid #262626; margin-bottom:10px; }
.modal h2{ margin:0; font-size:18px; font-weight:800; }
.modal .close{ background:transparent; border:none; color:#bbb; font-size:22px; cursor:pointer; }

.grid{ display:grid; gap:14px; grid-template-columns: 1fr; }
.grid .full{ grid-column:1 / -1; }
.grid > div{ display:flex; flex-direction:column; min-width:0; }

@media (min-width:560px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .grid .full{ grid-column: 1 / 3; }
}

label{ font-size:12px; color:#bdbdbd; margin:2px 2px 6px; }
input{
  display:block; width:100%; max-width:100%; min-width:0;
  background:#151515; color:#eaeaea; border:1px solid #262626; border-radius:12px;
  padding:12px 14px; font-size:15px; outline:none; transition:border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance:none;
}
input::placeholder{ color:#7c7c7c; }
input:focus{ border-color:#3a7afe; box-shadow:0 0 0 3px rgba(58,122,254,.15); background:#161616; }

.hint{ font-size:12px; color:#9aa0a6; margin-top:4px; }
.inline-note{ font-size:12px; margin-top:6px; }
.inline-note.warn{ color:#ffb74d; }
.inline-note.err{  color:#ff6b6b; }

.actions{ display:flex; gap:12px; justify-content:flex-end; border-top:1px solid #262626; padding-top:14px; margin-top:6px; }
.btn{ border:none; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer; font-size:14px; }
.btn-secondary{ background:#262626; color:#eaeaea; }
.btn-primary{ background:#3a7afe; color:#fff; }
.btn:active{ transform: translateY(1px); }

body.no-scroll{ overflow:hidden; }

#pwaInstallBtn{
  position: fixed; right: 16px; top: 16px; width: 56px; height: 56px; border-radius: 50%;
  border:none; outline:none; background:linear-gradient(135deg,#00c6ff,#0072ff);
  color:#fff; box-shadow:0 10px 20px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.2);
  display:none; z-index:10050; cursor:pointer;
}
#pwaInstallBtn:hover{ transform: translateY(-1px); box-shadow:0 14px 28px rgba(0,0,0,.28), 0 6px 10px rgba(0,0,0,.22); }

#pwaHint{
  position: fixed; right: 16px; top: calc(16px + 56px + 8px);
  max-width: 260px; background:#111; color:#fff; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height:1.42;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); display: none; z-index: 10050;
}
#pwaHint .arrow{ position: absolute; top: -8px; right: 18px; width:0; height:0; border-left:8px solid transparent; border-right:8px solid transparent; border-bottom:8px solid #111; }

.palanca {
  position: fixed;
  top: 1px; /* distancia desde arriba */
  left: 50%; /* centrado horizontal */
  transform: translateX(-50%); /* corrige el centrado exacto */
  width: 120px; /* ajustá el tamaño según necesites */
  z-index: 9999; /* para que quede por encima del resto */
  cursor: pointer;
  transition: transform 0.2s ease;
}

.palanca:hover {
  transform: translateX(-50%) scale(1.05);
}

@keyframes leverPulse {
  0%, 100% { transform: translateX(-50%) rotate(3deg); }
  50% { transform: translateX(-50%) rotate(-3deg); }
}

.palanca {
  animation: leverPulse 3s ease-in-out infinite;
}
