/* PaisaNow World Phase 11: reliable mobile footer + compact professional header. */
@media (max-width:800px){
  body[data-user-id]:not([data-user-id="0"]):not([data-page="chat"]):not([data-page="reels"]){padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))!important}
  body[data-user-id]:not([data-user-id="0"]):not([data-page="chat"]):not([data-page="reels"]) .bottom-nav.pn-mobile-footer-v11,
  body.pn-ui-desktop.pn-device-mobile:not([data-page="chat"]):not([data-page="reels"]) .bottom-nav.pn-mobile-footer-v11,
  body.pn-mobile-app-shell:not([data-page="chat"]):not([data-page="reels"]) .bottom-nav.pn-mobile-footer-v11{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:auto!important;min-height:62px!important;margin:0!important;padding:5px 6px max(5px,env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid #e4e9f1!important;border-radius:0!important;background:rgba(255,255,255,.98)!important;box-shadow:0 -7px 24px rgba(15,23,42,.10)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none;z-index:9800!important;overflow:visible!important
  }
  .bottom-nav.pn-mobile-footer-v11>a,.bottom-nav.pn-mobile-footer-v11>button{position:relative!important;display:grid!important;grid-template-rows:24px 14px!important;place-items:center!important;align-content:center!important;gap:1px!important;width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;margin:0!important;padding:2px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#64748b!important;font-size:18px!important;overflow:visible!important}
  .bottom-nav.pn-mobile-footer-v11>a span,.bottom-nav.pn-mobile-footer-v11>button span{display:block!important;font-size:9px!important;line-height:1!important;font-weight:800!important;letter-spacing:.01em!important;color:inherit!important}
  .bottom-nav.pn-mobile-footer-v11>a.active{color:var(--pn-footer-active,#1769e0)!important;background:color-mix(in srgb,var(--pn-footer-active,#1769e0) 10%,transparent)!important}
  .bottom-nav.pn-mobile-footer-v11>a:nth-child(3),.bottom-nav.pn-mobile-footer-v11>button:nth-child(3){margin:0!important;width:100%!important;height:52px!important;border-radius:12px!important;background:transparent!important;color:#64748b!important;box-shadow:none!important}
  .bottom-nav.pn-mobile-footer-v11 b{position:absolute!important;top:1px!important;left:50%!important;margin-left:5px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;display:grid!important;place-items:center!important;border-radius:999px!important;background:#e11d48!important;color:#fff!important;border:2px solid #fff!important;font-size:8px!important}
  body.mobile-menu-open .bottom-nav.pn-mobile-footer-v11{transform:translateY(120%)!important;opacity:0!important;pointer-events:none!important}

  .topbar.user-header:not(.guest-header){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;min-height:58px!important;height:58px!important;padding:7px 9px!important;gap:8px!important;overflow:visible!important;border-radius:0!important}
  .topbar.user-header:not(.guest-header)>.brand{min-width:0!important;max-width:calc(100vw - 150px)!important;gap:8px!important;overflow:hidden!important}
  .topbar.user-header:not(.guest-header)>.brand .brand-mark,.topbar.user-header:not(.guest-header)>.brand .site-logo{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;object-fit:contain!important;border-radius:11px!important}
  .topbar.user-header:not(.guest-header)>.brand .brand-copy{display:block!important;min-width:0!important;max-width:160px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:16px!important;line-height:1.05!important}
  .topbar.user-header:not(.guest-header)>.brand .brand-copy small,.topbar.user-header:not(.guest-header)>.brand .production-label{display:none!important}
  .topbar.user-header:not(.guest-header)>.desktop-primary-nav,.topbar.user-header:not(.guest-header)>.global-search,.topbar.user-header:not(.guest-header)>.top-actions{display:none!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11{display:grid!important;grid-template-columns:repeat(3,36px)!important;gap:5px!important;width:auto!important;min-width:118px!important;max-width:none!important;margin-left:auto!important;align-items:center!important;justify-content:end!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11 .mobile-header-shortcut{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important;margin:0!important;border:1px solid #e1e8f2!important;border-radius:11px!important;background:#f8fafc!important;color:#334155!important;box-shadow:none!important;font-size:14px!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11 .shortcut-create{background:linear-gradient(145deg,#1769e0,#0ea5e9)!important;color:#fff!important;border-color:transparent!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11 .shortcut-profile{background:#eef4ff!important;color:#175cd3!important}
  .pn-mobile-language-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:4px 0 8px}
  .pn-mobile-language-grid button{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;color:#344054;font-size:12px;font-weight:750;text-align:left}
  .pn-mobile-language-grid button.active{border-color:#84adff;background:#eff4ff;color:#175cd3}
}
@media (max-width:370px){
  .topbar.user-header:not(.guest-header)>.brand .brand-copy{max-width:105px!important;font-size:14px!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11{grid-template-columns:repeat(3,32px)!important;gap:4px!important;min-width:104px!important}
  .topbar.user-header>.mobile-header-actions.pn-mobile-header-v11 .mobile-header-shortcut{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;border-radius:10px!important}
}
@media (max-width:800px){
  body.pn-ui-desktop.pn-device-mobile .mobile-menu-sheet[hidden]{display:none!important}
  body.pn-ui-desktop.pn-device-mobile .mobile-menu-sheet:not([hidden]){display:flex!important}
}
