/* V96: distinct wallet actions and a compact keyboard viewport. */
.walletSubTabs button[data-wallet-section="deposit"],
.walletSummaryActions button[data-wallet-section="deposit"]{
  border-color:rgba(67,239,167,.28)!important;
  background:linear-gradient(180deg,rgba(19,100,73,.96),rgba(7,54,43,.98))!important;
  color:#d9fff0!important
}
.walletSubTabs button[data-wallet-section="withdraw"],
.walletSummaryActions button[data-wallet-section="withdraw"]{
  border-color:rgba(255,177,73,.34)!important;
  background:linear-gradient(180deg,rgba(139,79,25,.96),rgba(73,37,12,.98))!important;
  color:#fff0d5!important
}
.walletSubTabs button[data-wallet-section="deposit"].active{
  background:linear-gradient(180deg,#5affbd,#1fcf86)!important;color:#032b1d!important;
  border-color:#9bffda!important;box-shadow:0 8px 22px rgba(35,222,143,.28)!important
}
.walletSubTabs button[data-wallet-section="withdraw"].active{
  background:linear-gradient(180deg,#ffc45d,#f18427)!important;color:#321500!important;
  border-color:#ffe0a0!important;box-shadow:0 8px 22px rgba(240,126,34,.28)!important
}
html[data-wallet-view="deposit"] .walletSectionIcon.deposit,
html[data-wallet-view="deposit"] #copyDepositBtn,
html[data-wallet-view="deposit"] #verifyDepositBtn{
  background:linear-gradient(180deg,#5affbd,#20c982)!important;color:#032719!important;
  border-color:rgba(143,255,211,.62)!important
}
html[data-wallet-view="withdraw"] .walletSectionIcon.withdraw,
html[data-wallet-view="withdraw"] #requestWithdrawalBtn,
html[data-wallet-view="withdraw"] #pasteWithdrawAddressBtn{
  background:linear-gradient(180deg,#ffc866,#ee8128)!important;color:#321500!important;
  border-color:rgba(255,224,160,.68)!important
}

html.mg-wallet-keyboard-open #app{
  width:var(--mg-kb-base-w)!important;height:var(--mg-kb-base-h)!important;
  min-width:var(--mg-kb-base-w)!important;min-height:var(--mg-kb-base-h)!important;
  max-width:var(--mg-kb-base-w)!important;max-height:var(--mg-kb-base-h)!important
}
html.mg-wallet-keyboard-open #menuPanel{
  position:fixed!important;left:0!important;right:auto!important;
  top:var(--mg-kb-top,0px)!important;width:var(--mg-kb-vw,100vw)!important;
  height:var(--mg-kb-vh,100dvh)!important;max-height:var(--mg-kb-vh,100dvh)!important;
  padding:4px!important;box-sizing:border-box!important;transform:none!important;overflow:hidden!important
}
html.mg-wallet-keyboard-open #menuPanel .pesHubShell{
  position:relative!important;inset:auto!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;min-height:0!important;border-radius:10px!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;transform:none!important
}
html.mg-wallet-keyboard-open #menuPanel .pesHeader,
html.mg-wallet-keyboard-open #menuPanel .pesTabs,
html.mg-wallet-keyboard-open #menuPanel .pesTicker,
html.mg-wallet-keyboard-open #menuPanel .pesSide,
html.mg-wallet-keyboard-open #menuPanel .pesBottomStrip,
html.mg-wallet-keyboard-open #menuPanel .pesFooterBar,
html.mg-wallet-keyboard-open #menuPanel .walletCleanHead,
html.mg-wallet-keyboard-open #menuPanel .walletSubTabs,
html.mg-wallet-keyboard-open #menuPanel .walletSectionTitle,
html.mg-wallet-keyboard-open #menuPanel .walletHelpSteps,
html.mg-wallet-keyboard-open #menuPanel .walletAdminFlow,
html.mg-wallet-keyboard-open #menuPanel .walletFocusNotice,
html.mg-wallet-keyboard-open #menuPanel .walletActiveRequest{display:none!important}
html.mg-wallet-keyboard-open #menuPanel .pesMain{
  display:block!important;flex:1 1 auto!important;min-height:0!important;height:100%!important;
  padding:4px!important;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important
}
html.mg-wallet-keyboard-open #menuPanelBody,
html.mg-wallet-keyboard-open #menuPanel .pesHeroWrap,
html.mg-wallet-keyboard-open #menuPanel .pesHeroPanel,
html.mg-wallet-keyboard-open #menuPanel .walletSubContent{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important
}
html.mg-wallet-keyboard-open #menuPanel .walletFocusedPanel{
  width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;
  padding:8px 10px 14px!important;box-sizing:border-box!important;overflow:visible!important
}
html.mg-wallet-keyboard-open #menuPanel .walletField.clean{margin:4px 0!important}
html.mg-wallet-keyboard-open #menuPanel .walletField.clean>span{font-size:7px!important;margin-bottom:3px!important}
html.mg-wallet-keyboard-open #menuPanel .walletField.clean input{height:38px!important;min-height:38px!important;font-size:16px!important}
html.mg-wallet-keyboard-open #menuPanel #withdrawAddress,
html.mg-wallet-keyboard-open #menuPanel #depositTxHash,
html.mg-wallet-keyboard-open #menuPanel #withdrawAmount,
html.mg-wallet-keyboard-open #menuPanel #mgExchangeAmount{width:100%!important;min-width:0!important;box-sizing:border-box!important}
html.mg-wallet-keyboard-open #menuPanel .mg92-paste-row,
html.mg-wallet-keyboard-open #menuPanel .walletHashPasteRow{grid-template-columns:minmax(0,1fr) 108px!important;display:grid!important;gap:6px!important}
html.mg-wallet-keyboard-open #menuPanel #pasteWithdrawAddressBtn,
html.mg-wallet-keyboard-open #menuPanel #pasteDepositHashBtn{min-height:38px!important;height:38px!important;padding:0 8px!important;font-size:9px!important}
html.mg-wallet-keyboard-open #menuPanel #withdrawPasteHint,
html.mg-wallet-keyboard-open #menuPanel .walletHashHint{margin:2px 0!important;font-size:7px!important}
html.mg-wallet-keyboard-open #menuPanel .walletWithdrawInfo{display:none!important}
html.mg-wallet-keyboard-open #menuPanel .walletPrimaryBtn.big,
html.mg-wallet-keyboard-open #menuPanel #mgExchangeBtn{position:static!important;min-height:38px!important;height:38px!important;margin-top:6px!important}
html.mg-wallet-keyboard-open #menuPanel .mgExchangeBrandHero,
html.mg-wallet-keyboard-open #menuPanel .mgExchangeRates,
html.mg-wallet-keyboard-open #menuPanel .mgExchangeHero,
html.mg-wallet-keyboard-open #menuPanel .mgExchangeQuick{display:none!important}
html.mg-wallet-keyboard-open #menuPanel .mgExchangePreview{margin:4px 0!important}
html.mg-wallet-keyboard-open #menuPanel .mgExchangeWithdrawLink{display:none!important}
