/* PaisaNow user header responsive navigation and profile menu patch */
@media(min-width:1001px){
 .topbar.user-header{gap:12px!important;overflow:visible!important;}
 .topbar.user-header .global-search{flex:1 1 280px!important;max-width:310px!important;min-width:180px!important;}
 .topbar.user-header .desktop-primary-nav{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:stretch!important;justify-content:center!important;gap:4px!important;overflow:visible!important;}
 .topbar.user-header .desktop-primary-nav>a{flex:0 1 76px!important;min-width:62px!important;max-width:88px!important;height:58px!important;padding:7px 6px 6px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;border-radius:15px!important;line-height:1!important;overflow:hidden!important;}
 .topbar.user-header .desktop-primary-nav>a i{font-size:18px!important;line-height:1!important;}
 .topbar.user-header .desktop-primary-nav>a span{display:block!important;width:100%!important;font-size:10px!important;line-height:1.1!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 .topbar.user-header .desktop-primary-nav>a.active{min-height:58px!important;background:#e8f1ff!important;box-shadow:inset 0 -3px 0 #1877f2!important;}
 .topbar.user-header .top-actions{flex:0 0 auto!important;gap:6px!important;}
}

.topbar.user-header .profile-dropdown.profile-dropdown-compact > .profile-dropdown-panel,
.topbar.user-header .profile-dropdown.profile-dropdown-compact > div,
.user-header .profile-dropdown.profile-dropdown-compact > .profile-dropdown-panel,
.user-header .profile-dropdown.profile-dropdown-compact > div{
 width:clamp(250px,22vw,320px)!important;min-width:250px!important;max-width:min(320px,calc(100vw - 24px))!important;
 max-height:min(620px,calc(100dvh - 92px))!important;padding:10px!important;gap:4px!important;border-radius:16px!important;overflow-y:auto!important;overflow-x:hidden!important;
}
.topbar.user-header .profile-dropdown.profile-dropdown-compact a,
.topbar.user-header .profile-dropdown.profile-dropdown-compact label,
.user-header .profile-dropdown.profile-dropdown-compact a,
.user-header .profile-dropdown.profile-dropdown-compact label{
 min-height:34px!important;padding:8px 10px!important;gap:9px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.topbar.user-header .profile-dropdown.profile-dropdown-compact a i,
.user-header .profile-dropdown.profile-dropdown-compact a i{flex:0 0 15px!important;width:15px!important;font-size:12px!important;}
.topbar.user-header .profile-dropdown.profile-dropdown-compact label,
.user-header .profile-dropdown.profile-dropdown-compact label{min-height:58px!important;}
.topbar.user-header .profile-dropdown.profile-dropdown-compact select,
.user-header .profile-dropdown.profile-dropdown-compact select{height:34px!important;min-height:34px!important;font-size:12px!important;}

@media(max-width:1150px) and (min-width:1001px){
 .topbar.user-header .brand-copy small,.topbar.user-header .production-label{display:none!important;}
 .topbar.user-header .global-search{max-width:240px!important;}
 .topbar.user-header .desktop-primary-nav>a{flex-basis:66px!important;min-width:58px!important;}
}
@media(max-width:800px){
 .topbar.user-header .profile-dropdown.profile-dropdown-compact > .profile-dropdown-panel,
 .topbar.user-header .profile-dropdown.profile-dropdown-compact > div,
 .user-header .profile-dropdown.profile-dropdown-compact > .profile-dropdown-panel,
 .user-header .profile-dropdown.profile-dropdown-compact > div{
   position:fixed!important;top:62px!important;right:8px!important;left:auto!important;width:min(320px,calc(100vw - 16px))!important;min-width:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 76px)!important;
 }
}

/* PaisaNow WordPress blog navigation integration */
.user-header .pn-blog-nav-link,
.user-header .guest-blog-link{text-decoration:none!important;}
.user-header.guest-header .guest-blog-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;padding:0 13px!important;border:1px solid #dbeafe!important;border-radius:12px!important;background:linear-gradient(145deg,#eff6ff,#f5f3ff)!important;color:#1d4ed8!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:0 5px 14px rgba(37,99,235,.08)!important;}
.user-header.guest-header .guest-blog-link:hover{background:linear-gradient(145deg,#dbeafe,#ede9fe)!important;color:#1e40af!important;transform:translateY(-1px);}
.user-header.guest-header .guest-blog-link i{font-size:14px!important;}
@media(max-width:800px){
 .topbar.user-header .mobile-header-actions{display:grid!important;grid-template-columns:repeat(4,34px)!important;gap:4px!important;margin-left:auto!important;}
 .topbar.user-header .mobile-header-actions .mobile-header-shortcut{display:grid!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;place-items:center!important;border-radius:11px!important;}
 .topbar.user-header .mobile-header-actions .shortcut-blog{color:#6d28d9!important;background:linear-gradient(145deg,#f3e8ff,#ede9fe)!important;}
 .user-header.guest-header .guest-blog-link{min-width:38px!important;width:38px!important;height:38px!important;padding:0!important;border-radius:12px!important;}
 .user-header.guest-header .guest-blog-link span{display:none!important;}
}
@media(max-width:390px){
 .topbar.user-header .mobile-header-actions{grid-template-columns:repeat(4,32px)!important;gap:3px!important;}
 .topbar.user-header .mobile-header-actions .mobile-header-shortcut{width:32px!important;height:32px!important;min-width:32px!important;}
}

/* Public Marketplace navigation hotfix: Marketplace appears before Blog. */
.user-header .pn-public-marketplace-nav-link,.user-header .guest-marketplace-link{text-decoration:none!important}
.user-header.guest-header .guest-marketplace-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;padding:0 13px!important;border:1px solid #dbeafe!important;border-radius:12px!important;background:linear-gradient(145deg,#eff6ff,#ecfdf5)!important;color:#0f766e!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:0 5px 14px rgba(15,118,110,.08)!important}
.user-header.guest-header .guest-marketplace-link:hover{background:linear-gradient(145deg,#dbeafe,#d1fae5)!important;color:#115e59!important;transform:translateY(-1px)}
@media(max-width:760px){.topbar.user-header .mobile-header-actions .shortcut-marketplace{color:#0f766e!important;background:linear-gradient(145deg,#ecfdf5,#dbeafe)!important}.user-header.guest-header .guest-marketplace-link{min-width:38px!important;width:38px!important;height:38px!important;padding:0!important;border-radius:12px!important}.user-header.guest-header .guest-marketplace-link span{display:none!important}}
