/* Freelium v86: PWA and mobile adaptation */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{padding-bottom:env(safe-area-inset-bottom)}
a,button,input,select,textarea{touch-action:manipulation}
button,.btn{white-space:nowrap}
.pwa-install-banner{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:1300;width:min(620px,calc(100vw - 28px));transform:translateX(-50%);display:grid;grid-template-columns:52px minmax(0,1fr) auto 38px;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(45,102,255,.18);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 18px 55px rgba(6,27,73,.22);backdrop-filter:blur(16px)}
.pwa-install-banner[hidden]{display:none!important}.pwa-install-banner img{width:52px;height:52px;border-radius:14px}.pwa-install-banner strong,.pwa-install-banner span{display:block}.pwa-install-banner strong{color:#061b49;font-size:14px}.pwa-install-banner span{margin-top:3px;color:#657497;font-size:12px;line-height:1.3}.pwa-install-banner>button{min-height:40px;border:0;border-radius:11px;padding:0 15px;background:linear-gradient(135deg,#1769ff,#7045ff);color:#fff;font-size:13px;font-weight:900;cursor:pointer}.pwa-install-banner .pwa-install-close{width:38px;padding:0;background:#eef3ff;color:#405071;font-size:23px;font-weight:500}.pwa-install-menu{border:0;cursor:pointer}.pwa-network-status{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));z-index:1400;transform:translateX(-50%);padding:10px 15px;border-radius:999px;background:#07142b;color:#fff;box-shadow:0 14px 36px rgba(7,20,43,.25);font-size:13px;font-weight:800}.pwa-network-status[hidden]{display:none!important}.pwa-network-status.is-online{background:#137a32}
@media(display-mode:standalone){.pwa-install-banner,.pwa-install-menu{display:none!important}.site-header{padding-top:env(safe-area-inset-top)}}
@media(max-width:1100px){
    .dashboard-shell{grid-template-columns:1fr!important}
    .dashboard-sidebar{position:relative!important;top:auto!important}
}
@media(max-width:720px){
    body{font-size:15px}
    .fl-container{padding-left:14px!important;padding-right:14px!important}
    input,select,textarea{font-size:16px!important;max-width:100%}
    .site-header{padding-top:env(safe-area-inset-top)}
    .mobile-menu{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
    .dashboard-page{padding:14px 0 30px!important}
    .dashboard-shell{gap:12px!important}
    .dashboard-sidebar{border-radius:18px!important;padding:13px!important;box-shadow:0 12px 30px rgba(7,20,43,.14)!important}
    .dashboard-user{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;column-gap:11px!important;align-items:center!important;padding-bottom:12px!important;margin-bottom:10px!important}
    .dashboard-user>span,.dashboard-user>img{grid-row:1/3!important;width:48px!important;height:48px!important;margin:0!important;border-radius:14px!important;object-fit:cover!important}
    .dashboard-user>b{font-size:15px!important;min-width:0!important;overflow-wrap:anywhere!important}.dashboard-user>small{font-size:11px!important;margin-top:2px!important}
    .dashboard-sidebar nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;max-height:330px!important;overflow-y:auto!important;padding-right:2px!important}
    .dashboard-sidebar nav a{min-height:44px!important;height:auto!important;padding:8px 9px!important;border-radius:11px!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important;min-width:0!important}
    .dashboard-sidebar nav a .nav-label{min-width:0!important;overflow-wrap:anywhere!important}
    .dashboard-sidebar form{margin-top:11px!important;padding-top:11px!important}.dashboard-sidebar button{min-height:44px!important}
    .dashboard-main{width:100%!important;min-width:0!important}
    .dashboard-topline,.profile-form-card,.profile-info-card,.order-panel,.verification-card,.fl-plan-card,.fl-plan-history{padding:16px!important;border-radius:18px!important}
    .dashboard-topline h1{font-size:27px!important}.dashboard-topline p{font-size:14px!important}
    .dashboard-kpi,.profile-editor-grid,.form-two,.verification-grid,.fl-plan-grid,.fl-vip-separation,.identity-user-grid,.finance-summary-grid{grid-template-columns:1fr!important}
    .dashboard-kpi{gap:10px!important}.dashboard-kpi div{min-height:92px!important;padding:16px!important}.dashboard-kpi b{font-size:29px!important}
    .dashboard-page table{font-size:12px!important}
    .dashboard-page [class*="table-wrap"],.dashboard-page .table-responsive{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
    .dashboard-page .btn,.dashboard-page button{min-height:44px}
    .dashboard-page img{height:auto}
    .footer-top,.footer-bottom{grid-template-columns:1fr!important;gap:18px!important;text-align:left!important}.footer-links{justify-content:flex-start!important}
    .pwa-install-banner{grid-template-columns:46px minmax(0,1fr) auto;padding:10px 11px;gap:9px}.pwa-install-banner img{width:46px;height:46px}.pwa-install-banner>button{padding:0 12px}.pwa-install-banner .pwa-install-close{position:absolute;right:-6px;top:-11px;width:30px;min-height:30px;height:30px;border-radius:999px;padding:0;font-size:19px}
}
@media(max-width:430px){
    .dashboard-sidebar nav{grid-template-columns:1fr!important;max-height:380px!important}
    .pwa-install-banner{grid-template-columns:42px minmax(0,1fr);padding:10px}.pwa-install-banner img{width:42px;height:42px}.pwa-install-banner>button:not(.pwa-install-close){grid-column:1/-1;width:100%}
}
