/* Buynode is rendered inside DefaultLayout's legacy wrapper; flatten only this route. */
body.pk-buynode-page,html.pk-buynode-page{background:#050507!important;overflow-x:hidden}
body.pk-buynode-page .main-wrapper,body.pk-buynode-page .main-wrapper-inner{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100vh!important;background:#050507!important;overflow:visible!important}
body.pk-buynode-page .main-fixed-navbar{display:none!important}
body.pk-buynode-page>main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#050507!important}
body.pk-buynode-page .pk-staking-page{width:100%;max-width:none;margin:0!important;padding:0!important;background:radial-gradient(circle at 70% -10%,#332b18 0,transparent 32%),#07070a!important}
body.pk-buynode-page .pk-staking-topbar{width:100%;max-width:none}
@media(min-width:901px){body.pk-buynode-page .pk-staking-page{margin-left:260px!important;width:calc(100% - 260px)!important;min-height:100vh}body.pk-buynode-page .pk-staking-main{max-width:1120px;margin:0 auto}}
@media(max-width:900px){body.pk-buynode-page .pk-staking-page{margin-left:0!important;width:100%!important}body.pk-buynode-page .pk-staking-topbar{padding:0 16px}}


.modal[aria-hidden="true"],.modal[hidden],.wallet-modal[aria-hidden="true"]{display:none!important;visibility:hidden!important;pointer-events:none!important}
.modal[aria-hidden="false"]{visibility:visible;pointer-events:auto}

html.pk4173-page,body.pk4173-page{background:#050507!important;color:#f8f8fb!important}
body.pk4173-page .main-fixed-navbar,body.pk4173-page .fixed-bottom-navbar{display:none!important}
body.pk4173-page .main-wrapper,body.pk4173-page .main-wrapper-inner,body.pk4173-page>main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100vh!important;background:#050507!important}
/* Unified authenticated language navigation: disable legacy layers so they cannot intercept taps. */
body.pk4173-page #lang-sidebar,body.pk4173-page #offcanvasNavbarLight,body.pk4173-page .offcanvas-backdrop,body.pk4173-page .main-fixed-navbar{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.pk4173-page #toggle-btn{pointer-events:none!important}
.pk4173-secondary-shell{min-height:100vh;position:relative;z-index:1060!important;pointer-events:auto!important}
body.pk-home-page>.pk4173-side-menu,body.pk-home-page #pk-home-dashboard>.pk4173-side-menu,body.pk4173-global-page>.pk4173-side-menu{z-index:1070!important;pointer-events:auto!important}body.pk-home-page>.pk4173-drawer-scrim,body.pk-home-page #pk-home-dashboard>.pk4173-drawer-scrim,body.pk4173-global-page>.pk4173-drawer-scrim{z-index:1069!important;pointer-events:auto!important}
body.pk-home-page #pk-home-dashboard .pk4173-main,body.pk-home-page #pk-home-dashboard button,body.pk-home-page #pk-home-dashboard a{pointer-events:auto}body.pk-home-page .modal-backdrop{pointer-events:none!important}body.pk-home-page #wrong_network_body[aria-hidden="true"]{pointer-events:none!important}
body.pk4173-global-page>main{margin-left:var(--sidebar);min-height:100vh}body.pk4173-global-page>.offcanvas,body.pk4173-global-page>main>.offcanvas,body.pk4173-global-page .main-fixed-navbar,body.pk4173-global-page .fixed-bottom-navbar,body.pk4173-global-page #lang-sidebar{display:none!important}body.pk4173-global-page #pk-home-dashboard>.pk4173-side-menu,body.pk4173-global-page #pk-home-dashboard>.pk4173-drawer-scrim{display:none!important}
@media(max-width:900px){body.pk4173-global-page>main{margin-left:0;padding-bottom:86px}}
.pk4173-secondary-shell .drawer-scrim{z-index:1069!important}
.pk4173-secondary-shell .pk4173-side-actions a{display:flex;text-decoration:none}
.pk4173-referral-card{display:grid;gap:5px;margin:10px 0 0;padding:14px;border-radius:14px;background:linear-gradient(135deg,rgba(255,216,77,.17),rgba(255,216,77,.04));border:1px solid rgba(255,216,77,.25)}
.pk4173-referral-card>small{display:block;color:#b8b5be;font-size:9px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:3px}.pk4173-referral-card>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px}.pk4173-referral-card code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f8f8fb;font-size:13px;font-weight:800}.pk4173-copy-btn{border:0;border-radius:9px;padding:8px 10px;background:#ffda57;color:#17130a;font-size:9px;font-weight:900;cursor:pointer}.pk4173-copy-btn.copied{background:#a9e6b0;color:#102316}
.pk4173-secondary-shell .dashboard-main{min-height:100vh}
.pk4173-secondary-shell .top-actions .history-link{display:inline-flex;align-items:center;text-decoration:none}
.pk4173-secondary-shell .donation-workflow{display:grid!important}
.pk4173-secondary-shell .donation-form{display:grid}
@media(min-width:901px){.pk4173-secondary-shell .donation-workflow{width:100%;padding:28px 5vw}.pk4173-secondary-shell .donation-phone-shell{width:min(100%,760px);max-width:760px}.pk4173-secondary-shell .team-workflow{width:100%;padding:28px 5vw}.pk4173-secondary-shell .team-phone-shell{width:min(100%,760px);max-width:760px}.pk4173-secondary-shell .history-section{width:min(100%,1000px)!important;max-width:1000px!important;margin-left:auto!important;margin-right:auto!important}}
@media(max-width:900px){.pk4173-secondary-shell{width:100%;max-width:100vw;overflow-x:hidden}.pk4173-secondary-shell .dashboard-main{margin-left:0;width:100%;max-width:100vw;min-width:0;padding-bottom:82px}.pk4173-secondary-shell .top-actions{display:none}.pk4173-secondary-shell .dashboard-content{width:100%;max-width:100vw;min-width:0;overflow-x:hidden}.pk4173-secondary-shell .pk4173-side-menu{z-index:1070!important}.pk4173-secondary-shell .pk4173-drawer-scrim{z-index:1069!important}.pk4173-secondary-shell .bottom-nav{position:fixed;z-index:1065;left:0;right:0;bottom:0;display:flex}.pk4173-secondary-shell .history-section,.pk4173-secondary-shell .team-workflow,.pk4173-secondary-shell .donation-workflow{width:100%;max-width:100%;min-width:0}.pk4173-secondary-shell .history-list,.pk4173-secondary-shell .team-phone-shell,.pk4173-secondary-shell .donation-phone-shell{max-width:100%;min-width:0}}
@media(max-width:600px){.pk4173-secondary-shell .topbar{height:66px;padding:0 16px}.pk4173-secondary-shell .top-title{min-width:0}.pk4173-secondary-shell .top-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pk4173-secondary-shell .dashboard-content{padding:16px;padding-bottom:20px}.pk4173-secondary-shell .history-section{margin:0!important}.pk4173-secondary-shell .history-item{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;min-width:0}.pk4173-secondary-shell .history-item>div,.pk4173-secondary-shell .history-item aside{min-width:0}.pk4173-secondary-shell .history-item strong{overflow-wrap:anywhere}.pk4173-secondary-shell .section-heading{align-items:flex-start;flex-wrap:wrap}.pk4173-secondary-shell .section-heading h2{font-size:18px}.pk4173-secondary-shell .section-heading .history-link{margin-left:auto}.pk4173-secondary-shell .team-workflow{padding:0;min-height:auto}.pk4173-secondary-shell .team-phone-shell{width:100%;padding:16px 14px 92px;border:0;border-radius:0;box-shadow:none}.pk4173-secondary-shell .team-head{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}.pk4173-secondary-shell .team-head h1{font-size:22px}.pk4173-secondary-shell .team-wallet{padding:8px 9px;white-space:nowrap}.pk4173-secondary-shell .team-stat-grid{grid-template-columns:1fr}.pk4173-secondary-shell .level-row{grid-template-columns:42px minmax(0,1fr);gap:8px}.pk4173-secondary-shell .level-row em{grid-column:2;overflow-wrap:anywhere}.pk4173-secondary-shell .invite-copy{grid-template-columns:minmax(0,1fr) auto}.pk4173-secondary-shell .network-details{overflow:hidden}.pk4173-secondary-shell .network-search input{max-width:100%}.pk4173-secondary-shell .donation-workflow{padding:0!important;min-height:auto}.pk4173-secondary-shell .donation-phone-shell{width:100%;padding:16px 14px 92px;border:0;border-radius:0;box-shadow:none}.pk4173-secondary-shell .donation-page-head{gap:8px;min-width:0}.pk4173-secondary-shell .donation-page-head h1{font-size:22px}.pk4173-secondary-shell .donation-page-head .history-link{white-space:nowrap}.pk4173-secondary-shell .figma-field{min-width:0}.pk4173-secondary-shell .field-value{min-width:0}.pk4173-secondary-shell .field-value input{max-width:100%}}
