:root{--hub-border:#d7e4f2;--hub-text:#1e2a3a;--hub-muted:#6b7c93;--hub-blue:#5b86f5;--hub-blue-soft:#e8effe;--hub-blue-deep:#3d63d8;--hub-gold:#d4a017;--hub-gold-deep:#8a6a0b;--hub-gold-soft:#fbf6e4;}
    /* Hub modals (depositar / sacar / indicar / perfil) */
    body.hub-modal-open { overflow: hidden; }
    .hub-m-backdrop {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      background: rgba(15, 23, 42, 0.78);
      padding: 0;
      box-sizing: border-box;
    }
    .hub-m-sheet {
      width: 100%;
      max-width: 28.5rem;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      border-radius: 1.5rem 1.5rem 0 0;
      background: #fff;
      border: 1px solid var(--hub-border);
      border-bottom: none;
      box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      animation: hub-m-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      box-sizing: border-box;
    }
    @media (min-width: 640px) {
      .hub-m-backdrop {
        align-items: center;
        padding: 1.5rem;
      }
      .hub-m-sheet {
        border-radius: 1.25rem;
        border-bottom: 1px solid var(--hub-border);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: hub-m-center 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .hub-m-handle {
        display: none !important;
      }
    }
    @keyframes hub-m-up {
      from { transform: translateY(100%); opacity: 0.5; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes hub-m-center {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .hub-m-handle {
      width: 2.75rem;
      height: 0.28rem;
      margin: 0.75rem auto 0.25rem;
      border-radius: 999px;
      background: #cbd5e1;
      flex-shrink: 0;
    }
    .hub-m-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.85rem 1.25rem;
      border-bottom: 1px solid var(--hub-border);
      flex-shrink: 0;
    }
    .hub-m-head h2 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--hub-blue-deep);
      letter-spacing: -0.01em;
    }
    .hub-m-close {
      width: 2.25rem;
      height: 2.25rem;
      border: none;
      border-radius: 999px;
      background: var(--hub-blue-soft);
      color: var(--hub-blue-deep);
      font-size: 1.35rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      transition: background-color 0.15s, transform 0.15s;
    }
    .hub-m-close:hover {
      background: #d7e4f2;
      transform: scale(1.06);
    }
    .hub-m-close:active {
      transform: scale(0.94);
    }
    .hub-m-body {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .hub-m-stack { display: flex; flex-direction: column; gap: 0.75rem; }
    .hub-m-stack.tight { gap: 0.45rem; margin-top: 0.65rem; }
    .hub-m-card {
      background: linear-gradient(180deg, #f7f9fc, #eef3fb);
      border: 1px solid #c9daf0;
      border-radius: 0.9rem;
      padding: 0.85rem;
    }
    .hub-m-af { background: linear-gradient(135deg, #e8effe, #fbf6e4); }
    .hub-m-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
    .hub-m-right { text-align: right; }
    .hub-m-center { text-align: center; }
    .hub-m-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--hub-muted);
      margin-bottom: 0.35rem;
    }
    .hub-m-money { font-size: 1.1rem; font-weight: 800; color: var(--hub-gold); }
    .hub-m-gold { color: var(--hub-gold-deep); font-weight: 800; }
    .hub-m-big { font-size: 1.35rem; font-weight: 800; color: var(--hub-blue-deep); }
    .hub-m-muted { font-size: 0.75rem; color: var(--hub-muted); }
    .hub-m-muted.mb { margin-bottom: 0.65rem; }
    .hub-m-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.45rem;
      margin: 0.5rem 0 0.75rem;
    }
    .hub-m-chip {
      position: relative;
      border: 1px solid #c9daf0;
      background: #fff;
      border-radius: 0.75rem;
      padding: 0.65rem 0.25rem;
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--hub-blue-deep);
      cursor: pointer;
    }
    .hub-m-chip.is-on {
      border-color: var(--hub-blue);
      background: #dbe7ff;
      box-shadow: 0 0 0 2px rgba(91, 134, 245, 0.2);
    }
    .hub-m-badge {
      position: absolute;
      top: -0.4rem;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.55rem;
      padding: 0.1rem 0.35rem;
      border-radius: 999px;
      color: #fff;
      white-space: nowrap;
    }
    .hub-m-field {
      position: relative;
      margin-bottom: 0.55rem;
    }
    .hub-m-field span {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--hub-muted);
    }
    .hub-m-field input,
    .hub-m-input {
      width: 100%;
      border: 1px solid #c9daf0;
      border-radius: 0.75rem;
      background: #fff;
      padding: 0.7rem 0.75rem 0.7rem 2.6rem;
      font-size: 0.9rem;
      color: var(--hub-text);
      outline: none;
      margin-bottom: 0.45rem;
      box-sizing: border-box;
    }
    .hub-m-input { padding-left: 0.75rem; }
    .hub-m-field input:focus,
    .hub-m-input:focus { border-color: var(--hub-blue); }
    .hub-m-btn {
      width: 100%;
      margin-top: 0.35rem;
      border: none;
      border-radius: 999px;
      padding: 0.85rem 1rem;
      font-size: 0.9rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, #5b86f5, #3d63d8);
      box-shadow: 0 8px 18px rgba(61, 99, 216, 0.28);
      cursor: pointer;
    }
    .hub-m-btn-sm {
      border: none;
      border-radius: 999px;
      padding: 0.45rem 0.9rem;
      font-size: 0.72rem;
      font-weight: 800;
      color: #fff;
      background: var(--hub-blue);
      cursor: pointer;
      margin-top: 0.4rem;
    }
    .hub-m-btn-ghost {
      width: 100%;
      margin-top: 0.55rem;
      border: 1px solid #c9daf0;
      border-radius: 999px;
      padding: 0.7rem 1rem;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--hub-blue-deep);
      background: #fff;
      cursor: pointer;
    }
    .hub-m-btn-danger {
      width: 100%;
      border: 1px solid #fecaca;
      border-radius: 999px;
      padding: 0.75rem 1rem;
      font-size: 0.85rem;
      font-weight: 800;
      color: #dc2626;
      background: #fff5f5;
      cursor: pointer;
    }
    .hub-m-link {
      border: none;
      background: none;
      color: var(--hub-blue);
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
    }
    .hub-m-note {
      margin: 0.5rem 0;
      padding: 0.55rem 0.65rem;
      border-radius: 0.65rem;
      background: #fff8e8;
      border: 1px solid #f5d7a8;
      font-size: 0.72rem;
      color: #8a6a0b;
    }
    .hub-m-bonus {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      margin: 0.65rem 0;
      padding: 0.75rem;
      border-radius: 0.85rem;
      background: linear-gradient(135deg, #ecfdf5, #e8effe);
      border: 1px solid #a7f3d0;
    }
    .hub-m-bonus-val { font-size: 1.35rem; font-weight: 800; color: #047857; }
    .hub-m-toggle {
      appearance: none;
      -webkit-appearance: none;
      position: relative;
      display: inline-block;
      width: 48px;
      height: 26px;
      min-width: 48px;
      max-width: 48px;
      min-height: 26px;
      max-height: 26px;
      border-radius: 999px;
      border: 1px solid #c9daf0;
      background: #cbd5e1;
      padding: 0;
      margin: 0;
      cursor: pointer;
      flex-shrink: 0;
      align-self: center;
      box-sizing: border-box;
      outline: none;
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .hub-m-toggle span {
      display: block;
      position: absolute;
      top: 2px;
      left: 2px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    .hub-m-toggle.is-on {
      background: #22c55e;
      border-color: #16a34a;
    }
    .hub-m-toggle.is-on span {
      transform: translateX(22px);
    }
    .hub-m-err, .hub-m-ok {
      margin-top: 0.5rem;
      padding: 0.55rem;
      border-radius: 0.65rem;
      font-size: 0.75rem;
      text-align: center;
      font-weight: 600;
    }
    .hub-m-err.hidden, .hub-m-ok.hidden { display: none !important; }
    .hub-m-err { background: #fef2f2; color: #dc2626; }
    .hub-m-ok { background: #ecfdf5; color: #047857; }
    .hub-m-demo { text-align: center; padding: 1rem 0.25rem; }
    .hub-m-demo-ico { font-size: 2.5rem; line-height: 1; }
    .hub-m-demo h3 { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0.5rem 0; }
    .hub-m-demo p { font-size: 0.82rem; color: #475569; line-height: 1.5; margin: 0 0 0.5rem; }
    .hub-m-demo-sub { font-size: 0.72rem !important; color: #94a3b8 !important; }
    .hub-m-demo .hub-m-btn { margin-top: 0.75rem; width: 100%; }
    .hub-m-qr { margin: 0.75rem auto; display: block; border-radius: 0.75rem; background: #fff; padding: 0.35rem; border: 1px solid #e5e7eb; }
    .hub-m-pix-code {
      margin: 0.5rem 0;
      padding: 0.55rem;
      border-radius: 0.65rem;
      background: #f3f4f6;
      font-size: 0.65rem;
      word-break: break-all;
      color: var(--hub-muted);
      text-align: left;
    }
    .hub-m-emoji { font-size: 2rem; }
    .hub-m-title-ok { font-size: 1.05rem; font-weight: 800; color: #047857; margin-top: 0.35rem; }
    .hub-m-title-warn { font-size: 1.05rem; font-weight: 800; color: #b45309; margin-top: 0.35rem; }
    .hub-m-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.45rem; }
    .hub-m-list-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.55rem 0.65rem;
      border-radius: 0.65rem;
      background: #fff;
      border: 1px solid #e5e7eb;
    }
    .hub-m-status { font-size: 0.7rem; font-weight: 700; color: var(--hub-blue-deep); text-transform: capitalize; }
    .hub-m-linkbox {
      font-size: 0.78rem;
      word-break: break-all;
      color: var(--hub-text);
      margin-bottom: 0.35rem;
    }
    .hub-m-levels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
    }
    .hub-m-avatar {
      width: 4.5rem;
      height: 4.5rem;
      margin: 0 auto;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 1.6rem;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(145deg, #7294f5, #3d63d8);
      border: 3px solid var(--hub-gold-2);
    }
    .hub-m-name { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 800; color: var(--hub-text); }
    .hub-m-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.4rem;
    }
    .hub-m-cupom { margin: 0.35rem 0; }
    .hub-m-cupom-row { display: flex; gap: 0.4rem; }
    .hub-m-cupom-row .hub-m-input { margin: 0; flex: 1; }
    @media (prefers-reduced-motion: reduce) {
      .hub-m-sheet { animation: none !important; }
    }
    @keyframes hub-avisos-in {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes hub-avisos-out {
      from { opacity: 1; transform: translateY(0); }
      to { opacity: 0; transform: translateY(-6px); }
    }


/* Shared legitimate login/register flow, also used inside game experiences. */
.hub-auth-sheet{max-height:min(90vh,34rem)}
.hub-auth-form{display:flex;flex-direction:column;gap:.55rem}
.hub-auth-label{display:flex;flex-direction:column;gap:.3rem;font-size:.72rem;font-weight:700;color:var(--hub-text)}
.hub-auth-input{margin:0!important}
/* CPF do titular no deposito: exigido pelo provedor AVEX. Em WL PayUP o bloco
   nem e renderizado. */
.hub-m-cpf{margin:.6rem 0 .2rem}
.hub-m-cpf .hub-m-label{display:block}
.hub-m-cpf .hub-m-input{margin-bottom:0}
.hub-m-min-hint{margin:.35rem 0 0;font-size:.72rem;font-weight:600;color:var(--hub-muted)}
.hub-m-min-hint strong{color:var(--hub-text);font-weight:800}
.hub-auth-switch{margin:.85rem 0 .15rem;text-align:center;font-size:.78rem;color:var(--hub-muted);display:flex;align-items:center;justify-content:center;gap:.35rem;flex-wrap:wrap;line-height:1.4}
/* Acao secundaria integrada (nao um bloco de botao): min-height:0 neutraliza o
   button{min-height:44px} global do play.css dentro das paginas de jogo. */
.hub-auth-switch button{min-height:0;height:auto;border:0;background:none;color:var(--hub-blue-deep);font:inherit;font-weight:800;padding:.15rem .25rem;border-radius:.4rem;cursor:pointer;text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:.08em}
.hub-auth-switch button:hover{color:#2b4bb5;background:var(--hub-blue-soft)}
.hub-auth-switch button:focus-visible{outline:2px solid var(--hub-blue);outline-offset:2px}


/* Conteudo do modal chegando: mesma estrutura, sem spinner e sem espera fabricada. */
.hub-m-skel{display:block;border-radius:.5rem;background:linear-gradient(90deg,#eef2f7 0%,#e2e8f0 50%,#eef2f7 100%)}
.hub-m-skel-line{height:.9rem;margin:.45rem 0}
.hub-m-skel-line.is-short{width:55%}
.hub-m-skel-block{height:3.4rem;margin-top:.6rem}

.hub-m-ref-links{display:grid;gap:8px;margin-top:8px}.hub-m-ref-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid rgba(91,134,245,.18);border-radius:10px;background:#f8faff}.hub-m-ref-link strong{display:block;font-size:12px;color:#172554}.hub-m-ref-link code{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#64748b}.hub-m-ref-link .hub-m-btn-sm{margin:0}@media(max-width:380px){.hub-m-ref-link{grid-template-columns:1fr}.hub-m-ref-link .hub-m-btn-sm{width:100%}}
