/* Clean authenticated header: main balance + wallet, matching guest controls. */
.authenticated-header-final{display:none}
@media (min-width:1px){
  html body #authenticatedHeaderFinal.authenticated-header-final{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
    position:fixed!important;top:8px!important;right:18px!important;left:auto!important;bottom:auto!important;
    width:auto!important;height:52px!important;margin:0!important;padding:0!important;
    visibility:visible!important;opacity:1!important;pointer-events:auto!important;overflow:visible!important;
    z-index:2147483647!important
  }
  html body #authenticatedHeaderFinal .authenticated-header-final__balance,
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    height:50px!important;min-height:50px!important;box-sizing:border-box!important;margin:0!important;
    border:2px solid rgba(235,237,247,.75)!important;border-radius:5px!important;
    font-family:Arial,sans-serif!important;font-weight:700!important;visibility:visible!important;opacity:1!important
  }
  html body #authenticatedHeaderFinal .authenticated-header-final__balance{
    min-width:132px!important;padding:0 16px!important;gap:8px!important;background:#f5f4f8!important;
    color:#080910!important;font-size:14px!important;white-space:nowrap!important
  }
  html body #authenticatedHeaderFinal .authenticated-header-final__balance .icon{
    width:19px!important;height:19px!important;fill:#18b866!important;flex:0 0 auto!important
  }
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet{
    width:142px!important;min-width:142px!important;padding:0 20px!important;background:#252638!important;
    color:#fff!important;font-size:14px!important;letter-spacing:.2px!important;cursor:pointer!important;
    pointer-events:auto!important;touch-action:manipulation!important
  }
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet:hover,
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet:focus{
    border-color:#f2b82b!important;outline:none!important
  }
  /* Remove the old desktop navigation and old blue wallet/balance controls only for signed-in users. */
  html body:has(#authenticatedHeaderFinal) .wrapper .page>.header .p-nav,
  html body:has(#authenticatedHeaderFinal) .wrapper .page>.header .deposit-wrap{
    display:none!important
  }
}
@media (max-width:820px){
  html body #authenticatedHeaderFinal.authenticated-header-final{top:7px!important;right:8px!important;height:48px!important;gap:6px!important}
  html body #authenticatedHeaderFinal .authenticated-header-final__balance,
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet{height:44px!important;min-height:44px!important;border-width:1px!important}
  html body #authenticatedHeaderFinal .authenticated-header-final__balance{min-width:105px!important;padding:0 10px!important;font-size:12px!important;gap:5px!important}
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet{width:105px!important;min-width:105px!important;padding:0 12px!important;font-size:13px!important}
}
@media (max-width:420px){
  html body #authenticatedHeaderFinal .authenticated-header-final__balance{min-width:92px!important;max-width:112px!important;padding:0 7px!important;font-size:11px!important;overflow:hidden!important}
  html body #authenticatedHeaderFinal .authenticated-header-final__wallet{width:92px!important;min-width:92px!important;padding:0 8px!important;font-size:12px!important}
}
