/* SLOTSEPETİ P48 — compact mobile balance popup and matched header control heights.
   P46 remains the owner of the real account balances and VIP endpoint. */
#nx48-balance-backdrop[hidden]{display:none!important}
#nx48-balance-backdrop{
  position:fixed;inset:0;z-index:16020;
  background:rgba(7,3,10,.55);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
@media (min-width:821px){#nx48-balance-backdrop{display:none!important}}
@media (max-width:820px){
  /* Do not stretch the three-row balance panel to the bottom nav. */
  body #nx46-balance-panel.nx46-panel{
    box-sizing:border-box!important;position:fixed!important;
    top:var(--nx46-mobile-top,72px)!important;
    left:50%!important;right:auto!important;bottom:auto!important;
    width:min(370px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;
    height:max-content!important;min-height:0!important;
    max-height:calc(100dvh - var(--nx46-mobile-top,72px) - var(--nx46-mobile-nav-height,74px) - 14px)!important;
    transform:translateX(-50%)!important;
    padding:11px 12px 12px!important;margin:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    border-radius:13px!important;
    background:linear-gradient(145deg,#2a1420,#160b14 85%)!important;
    box-shadow:0 16px 46px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,228,175,.13)!important;
    z-index:16030!important;
  }
  body #nx46-balance-panel.nx46-panel[hidden]{display:none!important}
  body #nx46-balance-panel .nx46-head{padding-bottom:8px!important;margin-bottom:8px!important}
  body #nx46-balance-panel .nx46-rows{gap:6px!important}
  body #nx46-balance-panel .nx46-row{min-height:35px!important;padding:8px 10px!important}
  body #nx46-balance-panel .nx46-status{min-height:0!important;margin:7px 2px 0!important;line-height:1.25!important}
  body #nx46-balance-panel .nx46-status:empty{display:none!important}

  /* Make the two header buttons end at exactly the same Y position. */
  header .ef-header-actions,
  header .header-actions{align-items:center!important}
  header .ef-header-actions .nx46-balance-button,
  header .header-actions .nx46-balance-button,
  header .nx48-deposit-height{
    height:44px!important;min-height:44px!important;max-height:44px!important;
    box-sizing:border-box!important;align-self:center!important;
    margin-top:0!important;margin-bottom:0!important;
    transform:none!important;vertical-align:middle!important;
    padding-block:4px!important;
    display:inline-flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;
    line-height:1.15!important;
  }
  header .ef-header-actions .nx46-balance-button,
  header .header-actions .nx46-balance-button{gap:1px!important}
  header .nx48-deposit-height{min-width:60px!important;max-width:82px!important;text-align:center!important}
  header .nx48-deposit-height:hover{transform:none!important}
}
@media (max-width:370px){
  body #nx46-balance-panel.nx46-panel{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important}
  header .ef-header-actions .nx46-balance-button,header .header-actions .nx46-balance-button,header .nx48-deposit-height{height:42px!important;min-height:42px!important;max-height:42px!important}
  header .nx48-deposit-height{min-width:56px!important;max-width:70px!important}
}
@media (prefers-reduced-motion:reduce){#nx48-balance-backdrop{transition:none!important}}
