@layer orax-client-menus {
/* Both menus are anchored to the header, never the full-height terminal. */
.topbar:has(>#accountPopup),.lzx-account-topbar:has(#accountPopup){position:relative!important;overflow:visible!important;z-index:50!important}
.topbar:has(>#accountPopup.show,>#profileMenu.show),.lzx-account-topbar:has(#accountPopup.show,#profileMenu.show){z-index:10020!important}
#profileMenu{width:352px!important;max-width:calc(100vw - 24px)!important;padding:0!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;overscroll-behavior:contain;background:var(--flat-panel)!important;color:var(--flat-text)!important;border:1px solid var(--flat-line)!important;border-radius:17px!important;box-shadow:0 20px 65px #0003!important}
#profileMenu .profile-pop-head{padding:14px 17px!important;background:transparent!important;border-bottom:1px solid var(--flat-line)!important}
#profileMenu .profile-pop-head b{font-size:13px!important}
#profileMenu .profile-pop-head small{font-size:10px!important;font-weight:400!important;color:var(--flat-muted)!important;margin-top:3px!important}
#profileMenu .profile-pop-head button{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;background:transparent!important;color:var(--flat-muted)!important;box-shadow:none!important}
#profileMenu .profile-menu-card{margin:0!important;padding:18px 17px 13px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#profileMenu h2{font-size:18px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.3px!important}
#profileMenu .email{font-size:11px!important;font-weight:400!important;color:var(--flat-muted)!important;margin-top:4px!important;overflow-wrap:anywhere}
#profileMenu .profile-meta-row{gap:10px!important;margin-top:13px!important;justify-content:flex-start!important}
#profileMenu .profile-meta-row>span{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;color:var(--flat-muted)!important}
#profileMenu .profile-meta-row>span:last-child{margin-left:auto!important}
#profileMenu .profile-meta-row img{width:19px!important;height:14px!important;border-radius:3px!important;object-fit:cover!important}
#profileMenu .profile-vip-progress{margin:0 17px 13px!important;padding:13px!important;border:1px solid color-mix(in srgb,var(--brand-primary) 22%,var(--flat-line))!important;background:var(--flat-tint)!important;border-radius:12px!important;box-shadow:none!important}
#profileMenu .profile-vip-progress-head small{font-size:9px!important;letter-spacing:1px!important;color:var(--flat-muted)!important}
#profileMenu .profile-vip-progress-head b{font-size:17px!important;letter-spacing:-.3px!important}
#profileMenu .profile-vip-progress-track{height:5px!important;background:var(--flat-line)!important;margin:11px 0!important}
#profileMenu .profile-vip-progress-meta{gap:8px!important;font-size:10px!important}
#profileMenu .profile-vip-progress-meta small{font-size:9px!important;color:var(--flat-muted)!important}
#profileMenu .profile-links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:2px 8px!important;margin:0!important;padding:0 12px 12px!important}
#profileMenu .profile-links a{min-height:40px!important;padding:9px 7px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--flat-text)!important;box-shadow:none!important;font-size:11px!important;font-weight:550!important;gap:8px!important;cursor:pointer}
#profileMenu .profile-links a:hover{background:color-mix(in srgb,var(--brand-primary) 9%,transparent)!important}
#profileMenu .profile-links a .material-symbols-outlined{font-size:18px!important;color:var(--flat-muted)!important}
#profileMenu .profile-links a[href='/logout']{border-top:1px solid var(--flat-line)!important;border-radius:0!important;grid-column:1/-1!important;margin-top:7px!important;padding-top:13px!important;color:#db515d!important}
#profileMenu .profile-links a[href='/logout'] .material-symbols-outlined{color:inherit!important}
#profileMenu [data-user-group-tag]{min-height:29px!important;padding:5px 10px!important}

:is(#accountPopup,#profileMenu){position:absolute!important;top:calc(100% + 10px)!important;right:12px!important;left:auto!important;bottom:auto!important;z-index:10000!important;box-sizing:border-box!important;display:none!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 110px)!important;overflow:auto!important;padding:0!important;background:var(--flat-panel)!important;color:var(--flat-text)!important;border:1px solid var(--flat-line)!important;border-radius:17px!important;box-shadow:0 20px 60px #0003!important;text-align:left!important;transform:none!important;line-height:1.4!important;font-family:Inter,sans-serif!important}
:is(#accountPopup,#profileMenu).show{display:block!important}:is(#accountPopup,#profileMenu) [hidden]{display:none!important}
#accountPopup{width:438px!important;right:118px!important}#profileMenu{width:352px!important}
:is(#accountPopup,#profileMenu) *{box-sizing:border-box!important}
:is(#accountPopup,#profileMenu) .menu-pop-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:14px 17px!important;margin:0!important;border-bottom:1px solid var(--flat-line)!important;background:transparent!important}
:is(#accountPopup,#profileMenu) .menu-pop-head b{display:block!important;font-size:13px!important;color:var(--flat-text)!important;line-height:18px!important}
:is(#accountPopup,#profileMenu) .menu-pop-head small{display:block!important;font-size:10px!important;color:var(--flat-muted)!important;margin:3px 0 0!important;line-height:14px!important;font-weight:400!important}
:is(#accountPopup,#profileMenu) .menu-pop-head button{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--flat-muted)!important;border-radius:6px!important;cursor:pointer!important}
:is(#accountPopup,#profileMenu) .material-symbols-outlined{font-size:20px!important;line-height:1!important}
#accountPopup .account-summary-side{display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:9px!important;padding:14px!important;background:transparent!important;border:0!important;margin:0!important}
#accountPopup .account-summary-item{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;min-width:0!important;background:var(--flat-bg)!important;border:1px solid var(--flat-line)!important;border-radius:10px!important;padding:10px!important}
#accountPopup .account-summary-item small{font-size:10px!important;color:var(--flat-muted)!important}
#accountPopup .account-summary-item strong{font-size:12px!important;font-weight:650!important;color:var(--flat-text)!important;white-space:normal!important}
#accountPopup .account-summary-deposit{display:flex!important;align-items:center!important;background:var(--brand-primary)!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px!important;font-size:11px!important;font-weight:650!important;text-decoration:none!important}
#accountPopup .account-list-side{display:grid!important;gap:7px!important;padding:0 14px 14px!important;background:transparent!important}
#accountPopup .account-row{display:flex!important;align-items:center!important;gap:10px!important;min-height:66px!important;width:100%!important;padding:10px!important;margin:0!important;border:1px solid var(--flat-line)!important;border-radius:12px!important;background:transparent!important;color:var(--flat-text)!important;cursor:pointer!important;text-align:left!important;font-family:inherit!important}
#accountPopup .account-row.active{border-color:var(--brand-primary)!important;background:color-mix(in srgb,var(--brand-primary) 10%,transparent)!important}
#accountPopup .account-row .badge{display:grid!important;place-items:center!important;flex:none!important;width:36px!important;height:36px!important;padding:0!important;background:var(--flat-tint)!important;color:var(--brand-primary)!important;border-radius:10px!important}
#accountPopup .account-copy{display:flex!important;flex-direction:column!important;gap:4px!important;flex:1!important;min-width:0!important}
#accountPopup .account-copy strong{font-size:12px!important;line-height:16px!important;color:var(--flat-text)!important;font-weight:650!important}
#accountPopup .account-copy small{font-size:10px!important;color:var(--flat-muted)!important;line-height:14px!important}
#accountPopup .amount{font-size:12px!important;font-weight:650!important;white-space:nowrap!important;color:var(--flat-text)!important}
#accountPopup .account-check{display:none!important;color:var(--brand-primary)!important;font-size:18px!important}#accountPopup .active>.account-check{display:block!important}
#accountPopup .orax-demo-row-actions{display:flex!important;align-items:center!important;gap:5px!important}
#accountPopup .orax-demo-reload-inline{display:grid!important;place-items:center!important;width:26px!important;height:26px!important;padding:0!important;border:1px solid var(--flat-line)!important;border-radius:7px!important;color:var(--brand-primary)!important;background:transparent!important;cursor:pointer!important}
#accountPopup .orax-demo-recharge-toast{font-size:11px!important;color:var(--flat-muted)!important;padding:5px 10px!important}
#profileMenu .profile-identity-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
#profileMenu .profile-menu-tier{position:static!important;display:inline-flex!important;align-items:center!important;gap:4px!important;flex:none!important;max-width:110px!important;min-height:27px!important;padding:5px 8px!important;line-height:14px!important;font-size:10px!important;color:var(--flat-text)!important;border:1px solid var(--brand-primary)!important;background:var(--flat-tint)!important;border-radius:6px!important;transform:none!important}
#profileMenu .profile-menu-tier svg{width:12px!important;height:12px!important}
#profileMenu .profile-meta-row{display:flex!important}#profileMenu .profile-meta-row>span{display:flex!important;align-items:center!important;gap:3px!important}#profileMenu .profile-meta-row small{font-size:10px!important}
#profileMenu .profile-vip-progress-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
#profileMenu .profile-vip-progress-head :is(b,small){display:block!important}#profileMenu .profile-vip-progress-head a{font-size:11px!important;color:var(--brand-primary)!important}
#profileMenu .profile-vip-progress-track{border-radius:5px!important;overflow:hidden!important}#profileMenu .profile-vip-progress-track i{display:block!important;height:100%!important;background:var(--brand-primary)!important}
#profileMenu .profile-vip-progress-meta{display:flex!important;justify-content:space-between!important}#profileMenu .profile-vip-progress-meta span{display:grid!important;gap:3px!important}
#profileMenu .profile-links a{display:flex!important;align-items:center!important;text-decoration:none!important}
@media(max-width:700px){#accountPopup{right:12px!important}#accountPopup .account-summary-side{grid-template-columns:1fr 1fr!important}#accountPopup .account-summary-deposit{grid-column:1/-1!important;justify-content:center!important}:is(#accountPopup,#profileMenu){max-height:calc(100dvh - 90px)!important}}


#accountPopup .account-row[hidden],#profileMenu [hidden]{display:none!important}
}
