  :root{
    --hdr-bg-1: var(--theme-brand-700);
    --hdr-bg-2: var(--theme-brand-900);
    --hdr-border: rgba(255,255,255,.10);
    --hdr-link: rgba(226,232,240,.88);
    --hdr-link-hover: rgba(255,255,255,.11);
    --hdr-link-active: rgba(14,165,233,.20);
    --hdr-shadow: 0 14px 38px rgba(2,6,23,.26);
    --menu-border: rgba(15,23,42,.10);
    --menu-shadow: var(--theme-shadow-menu);
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  .navbar.prudent-nav{
    background: linear-gradient(135deg, var(--theme-brand-700) 0%, var(--theme-brand-800) 48%, var(--theme-brand-900) 100%) !important;
    border-bottom: 1px solid var(--hdr-border);
    box-shadow: var(--hdr-shadow);
    backdrop-filter: blur(14px);
    min-height: 74px;
  }

  .prudent-brand{
    text-decoration: none;
    max-width: 390px;
    min-width: 280px;
    min-height: 54px;
  }

  .brand-logo{
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    height: 52px;
    object-fit: cover;
    width: 52px;
  }

  .brand-copy{
    border-right: 1px solid rgba(255,255,255,.14);
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-right: 18px;
  }

  .brand-title{
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
    margin: 0;
    font-size: 14px;
    line-height: 1.18;
  }

  .brand-kicker {
    color: rgba(203,213,225,.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
  }

  .navbar.prudent-nav .navbar-nav .nav-link{
    color: var(--hdr-link);
    font-size: 14px;
    font-weight: 750;
    padding: .5rem .62rem;
    border-radius: 999px;
    transition: background .16s ease, color .16s ease, transform .05s ease;
  }

  .navbar.prudent-nav .navbar-collapse{
    gap: 8px;
  }

  .navbar.prudent-nav .navbar-nav .nav-link:hover,
  .navbar.prudent-nav .navbar-nav .nav-link:focus{
    color: #fff;
    background: var(--hdr-link-hover);
  }

  .navbar.prudent-nav .navbar-nav .nav-link:active{
    transform: scale(.99);
  }

  .navbar.prudent-nav .navbar-nav .nav-link.active{
    color: #fff;
    background: var(--hdr-link-active);
  }

  .navbar.prudent-nav .dropdown-menu{
    background: linear-gradient(145deg, rgba(20,35,58,.98), rgba(8,20,36,.98));
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 12px;
    box-shadow: var(--theme-shadow-menu);
    margin-top: .65rem;
    min-width: 252px;
    padding: .48rem;
    backdrop-filter: blur(16px);
  }

  .navbar.prudent-nav .dropdown-menu.show{
    animation: prudentMenuOpen .16s ease-out;
    transform-origin: top left;
  }

  @keyframes prudentMenuOpen{
    from{
      opacity: 0;
      transform: translateY(-5px) scale(.985);
    }
    to{
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .navbar.prudent-nav .dropdown-item{
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    font-size: 14px;
    font-weight: 650;
    gap: 9px;
    justify-content: flex-start;
    line-height: 1.3;
    min-height: 40px;
    padding: .58rem .7rem;
    color: #e2e8f0;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
  }

  .navbar.prudent-nav .dropdown-item::before{
    background: rgba(148,163,184,.62);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 6px;
    width: 6px;
  }

  .navbar.prudent-nav .dropdown-item:hover,
  .navbar.prudent-nav .dropdown-item:focus{
    background: rgba(56,189,248,.1);
    border-color: rgba(56,189,248,.18);
    color: #f8fafc;
    outline: none;
    transform: translateX(1px);
  }

  .navbar.prudent-nav .dropdown-item:hover::before,
  .navbar.prudent-nav .dropdown-item:focus::before{
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,.12);
  }

  .navbar.prudent-nav .dropdown-divider{
    border-color: rgba(148,163,184,.18);
    margin: .42rem .3rem;
    opacity: 1;
  }

  .navbar.prudent-nav .dropdown-header{
    color: #94a3b8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    padding: .55rem .72rem .32rem;
    text-transform: uppercase;
  }

  .navbar.prudent-nav .dropdown-toggle::after{
    border: 0;
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    height: 6px;
    margin-left: .5rem;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
    vertical-align: .15em;
    width: 6px;
  }

  .navbar.prudent-nav .dropdown-toggle[aria-expanded="true"]::after{
    transform: rotate(225deg) translate(-2px, -1px);
  }

  /* Submenu */
  .dropdown-submenu{ position: relative; }

  .dropdown-submenu > .dropdown-menu{
    top: 0;
    left: 100%;
    margin-left: .4rem;
    margin-top: -.48rem;
    min-width: 252px;
  }

  .dropdown-submenu > .dropdown-item.dropdown-toggle::after{
    color: #94a3b8;
    margin-left: auto;
    transform: rotate(-45deg);
  }

  @media (min-width: 1400px){
    .dropdown-submenu:hover > .dropdown-menu{ display: block; }
  }

  .user-pill{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: .46rem .72rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: background .16s ease, transform .05s ease;
    white-space: nowrap;
  }

  .user-pill:hover{ background: rgba(255,255,255,.12); }
  .user-pill:active{ transform: scale(.99); }

  .avatar-dot{
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
  }

  /* Mobile toggler nicer */
  .navbar.prudent-nav .navbar-toggler{
    border-color: rgba(255,255,255,.16);
    border-radius: 12px;
    padding: .4rem .6rem;
  }

  .header-actions{
    flex-wrap: nowrap;
  }

  @media (min-width: 1200px){
    .navbar.prudent-nav.navbar-expand-xxl .navbar-toggler {
      display: none;
    }

    .navbar.prudent-nav.navbar-expand-xxl .navbar-collapse {
      display: flex !important;
      flex-basis: auto;
    }

    .navbar.prudent-nav.navbar-expand-xxl .container-fluid {
      flex-wrap: nowrap;
    }
  }

  /* The streamlined menu fits at standard desktop widths; reserve the
     hamburger presentation for tablet-sized and smaller screens. */
  @media (max-width: 1199.98px){
    .navbar.prudent-nav.navbar-expand-xxl .navbar-toggler {
      display: block;
    }

    .navbar.prudent-nav.navbar-expand-xxl .navbar-collapse {
      display: none !important;
      flex-basis: 100%;
    }

    .navbar.prudent-nav.navbar-expand-xxl .navbar-collapse.show {
      display: block !important;
    }

    .navbar.prudent-nav.navbar-expand-xxl .container-fluid {
      flex-wrap: wrap;
    }

    .navbar.prudent-nav .container-fluid {
      align-items: center;
    }

    .prudent-brand{
      flex: 1 1 auto;
      max-width: calc(100% - 68px);
      min-width: 0;
    }

    .brand-logo{
      height: 46px;
      width: 46px;
    }

    .brand-copy{
      border-right: 0;
      padding-right: 0;
    }

    .brand-title{
      font-size: 13px;
    }

    .navbar.prudent-nav .navbar-collapse{
      background: rgba(7,17,31,.96);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 16px;
      flex-basis: 100%;
      margin-top: 12px;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
      padding: 12px;
      width: 100%;
    }

    .navbar.prudent-nav .navbar-nav {
      align-items: stretch !important;
      gap: 3px !important;
      width: 100%;
    }

    .navbar.prudent-nav .nav-item {
      width: 100%;
    }

    .navbar.prudent-nav .navbar-nav .nav-link{
      border-radius: 10px;
      display: flex;
      justify-content: space-between;
      padding: .72rem .8rem;
      width: 100%;
    }

    .navbar.prudent-nav .dropdown-menu{
      background: rgba(11,27,46,.9);
      border-color: rgba(148,163,184,.14);
      margin-top: .35rem;
      box-shadow: none;
      border-radius: 14px;
      padding: .42rem;
    }
    .dropdown-submenu > .dropdown-menu{
      left: 0;
      margin-left: .75rem;
      margin-top: .35rem;
      width: calc(100% - .75rem);
    }

    .navbar.prudent-nav .dropdown-item{
      min-height: 42px;
    }

    .navbar.prudent-nav .dropdown-toggle[aria-expanded="true"]::after,
    .dropdown-submenu > .dropdown-item.dropdown-toggle[aria-expanded="true"]::after{
      transform: rotate(225deg) translate(-2px, -1px);
    }

    .header-actions{
      align-items: center !important;
      border-top: 1px solid rgba(255,255,255,.10);
      flex-wrap: wrap;
      margin-left: 0 !important;
      margin-top: 10px;
      padding-top: 12px;
      width: 100%;
    }

    .header-actions .user-pill {
      justify-content: center;
    }

    .notification-dropdown {
      left: 0;
      max-width: calc(100vw - 56px);
      right: auto;
    }
  }

  @media (max-width: 520px){
    .navbar.prudent-nav .container-fluid {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }

    .brand-kicker{
      display: none;
    }

    .brand-title{
      font-size: 12px;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .brand-logo {
      height: 40px;
      margin-right: 10px !important;
      width: 40px;
    }

    .header-actions {
      align-items: stretch !important;
      display: grid !important;
      grid-template-columns: auto 1fr;
    }

    .header-actions > .dropdown:last-child {
      min-width: 0;
    }

    .header-actions > .dropdown:last-child .user-pill {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  /* ========== NOTIFICATION BELL STYLES ========== */
  .notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    padding: 0;
    z-index: 10000;
  }

  .notification-bell:hover {
    background: rgba(255,255,255,.12);
  }

  .notification-bell:active {
    transform: scale(.99);
  }

  .bell-icon {
    font-size: 18px;
    color: #FFDA46;
    transition: color .16s ease;
  }

  .notification-bell:hover .bell-icon {
    color: #fff;
  }

  .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #0b1220;
  }

  /* Notification Dropdown */
  .notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--menu-shadow);
    display: none;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid var(--menu-border);
  }

  .notification-dropdown.show {
    display: block;
    animation: slideDown 0.25s ease;
  }

  .priority-urgent { background: #ef4444; color: white; }
  .priority-high { background: #f59e0b; color: white; }
  .priority-medium { background: #3b82f6; color: white; }
  .priority-low { background: #10b981; color: white; }

  #addNotificationModal {
    z-index: 99999 !important;
  }

  #addNotificationModal > div {
      z-index: 99999;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .notification-header {
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
  }

  .notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
  }

  .mark-all-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .12s ease;
  }

  .mark-all-btn:hover {
    background: #eff6ff;
  }

  .notification-list {
    max-height: 380px;
    overflow-y: auto;
  }

  .notification-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
  }

  .notification-item:hover {
    background-color: #f9fafb;
  }

  .notification-item.unread {
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
  }

  .unread .notification-title {
    color: #3b82f6;
  }

  .notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #111827;
  }

  .notification-message {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
    line-height: 1.4;
  }

  .notification-time {
    font-size: 10px;
    color: #9ca3af;
  }

  .notification-item.success .notification-title {
    color: #10b981;
  }

  .notification-item.warning .notification-title {
    color: #f59e0b;
  }

  .notification-item.error .notification-title {
    color: #ef4444;
  }

  .empty-notifications {
    padding: 40px 30px;
    text-align: center;
    color: #9ca3af;
  }

  .empty-notifications i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
  }

  .view-all-link {
    display: block;
    padding: 12px;
    text-align: center;
    background: white;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
    transition: background .12s ease;
  }

  .view-all-link:hover {
    background: #f9fafb;
    color: #2563eb;
  }
.header-language{align-items:center;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.2);border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 18px rgba(0,0,0,.12);color:#fff;display:flex;gap:9px;min-height:42px;padding:6px 10px;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.header-language:hover{background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.1));border-color:rgba(255,255,255,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 8px 22px rgba(0,0,0,.16);transform:translateY(-1px)}.header-language:focus-within{border-color:#7dd3fc;box-shadow:0 0 0 3px rgba(56,189,248,.2),0 8px 22px rgba(0,0,0,.14)}.header-language-icon{align-items:center;background:rgba(125,211,252,.16);border-radius:8px;color:#bae6fd;display:flex;height:28px;justify-content:center;width:28px}.header-language-icon i{font-size:13px}.header-language-copy{display:flex;flex-direction:column;line-height:1;min-width:88px}.header-language-copy>small{color:rgba(226,232,240,.72);font-size:8px;font-weight:750;letter-spacing:.08em;margin-bottom:3px;text-transform:uppercase}.header-language-select-wrap{align-items:center;display:flex;position:relative}.header-language select{appearance:none;background:transparent;border:0;color:#fff;cursor:pointer;font-size:11px;font-weight:750;line-height:1.2;outline:0;padding:0 18px 0 0;width:100%}.header-language select option{background:#fff;color:#0f172a}.header-language-select-wrap>i{color:#94a3b8;font-size:8px;pointer-events:none;position:absolute;right:1px}.header-language select:focus+.fa-chevron-down{color:#7dd3fc}@media(max-width:767px){.header-language{width:100%}.header-language-copy{flex:1}.header-language select{font-size:12px}}
.header-language{border-radius:10px;gap:7px;height:38px;min-height:38px;padding:0 10px}.header-language-globe{align-items:center;color:#bae6fd;display:flex;font-size:13px;justify-content:center}.header-language-select-wrap{min-width:105px}.header-language select{-webkit-appearance:none!important;appearance:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#f8fafc!important;height:36px!important;line-height:36px!important;margin:0!important;padding:0 20px 0 0!important}.header-language select option{background:#172033;color:#f8fafc;padding:8px}.header-language-select-wrap>i{color:#cbd5e1;right:0}
.header-language-icon{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.1);color:inherit;font-size:17px;line-height:1}
