*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --clr-bg:        #f4f4f2;
      --clr-surface:   #ffffff;
      --clr-border:    #e0ddd8;
      --clr-orange:    #e07b20;
      --clr-orange-lt: #f09040;
      --clr-orange-dk: #b85e10;
      --clr-gray:      #9a9590;
      --clr-gray-lt:   #6b6560;
      --clr-text:      #1e1c1a;
      --clr-text-sub:  #7a7570;
      --font-display:  'Cormorant Garamond', Georgia, serif;
      --font-ui:       'Jost', sans-serif;
      --header-h:      68px;
      --sidebar-w:     280px;
      --radius:        6px;
      --radius-sm:     4px;
      --shadow:        0 8px 32px rgba(0,0,0,.10);
      --transition:    .22s cubic-bezier(.4,0,.2,1);
    }

    body {
      background: var(--clr-bg);
      font-family: 'Times New Roman', Times, serif;
      color: var(--clr-text);
      min-height: 100vh;
    }

    /* ═══ HEADER ═══ */
    header {
      height: var(--header-h);
      background: var(--clr-surface);
      border-bottom: 1px solid var(--clr-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px 0 20px;
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      box-shadow: 0 1px 0 var(--clr-border), 0 4px 16px rgba(0,0,0,.05);
    }
    .header-left { display: flex; align-items: center; gap: 0; }
    .menu-btn {
      width: 40px; height: 40px;
      border: none; background: none;
      border-radius: var(--radius);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 5px; cursor: pointer;
      transition: background var(--transition);
      margin-right: 4px; flex-shrink: 0;
    }
    .menu-btn:hover { background: rgba(224,123,32,.07); }
    .menu-btn span {
      display: block; height: 1.5px;
      background: var(--clr-gray-lt);
      border-radius: 2px;
      transition: width var(--transition), background var(--transition);
    }
    .menu-btn span:nth-child(1) { width: 18px; }
    .menu-btn span:nth-child(2) { width: 14px; }
    .menu-btn span:nth-child(3) { width: 18px; }
    .menu-btn:hover span { background: var(--clr-orange); }
    .menu-btn:hover span:nth-child(2) { width: 18px; }
    .logo {
      display: flex; align-items: center; gap: 12px;
      text-decoration: none; user-select: none; padding: 0 8px;
    }
    .logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
    .logo-divider { width: 1px; height: 28px; background: var(--clr-border); margin: 0 4px; }
    .logo-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
    .logo-name {
      font-family: 'Times New Roman', Times, serif;
      font-size: 1.45rem; font-weight: 700;
      letter-spacing: .04em; color: var(--clr-text);
    }
    .logo-tag {
      font-family: 'Times New Roman', Times, serif;
      font-size: .6rem; font-weight: 500;
      letter-spacing: .22em; text-transform: uppercase;
      color: var(--clr-orange);
    }
    .header-right { display: flex; align-items: center; gap: 8px; }
    .user-btn {
      display: flex; align-items: center; gap: 10px;
      background: none; border: 1px solid var(--clr-border);
      border-radius: var(--radius);
      padding: 6px 10px 6px 6px;
      cursor: pointer; color: var(--clr-text);
      font-family: 'Times New Roman', Times, serif;
      font-size: .84rem;
      transition: border-color var(--transition), background var(--transition);
      position: relative;
    }
    .user-btn:hover { background: #faf9f7; }
    .user-btn[aria-expanded="true"] { border-color: var(--clr-orange); background: rgba(224,123,32,.04); }
    .user-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      background: linear-gradient(145deg, var(--clr-orange-dk), var(--clr-orange));
      display: flex; align-items: center; justify-content: center;
      font-size: .68rem; font-weight: 600; letter-spacing: .05em;
      color: #fff; flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(224,123,32,.3);
    }
    .user-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
    .user-name { font-weight: 500; color: var(--clr-text); font-size: .83rem; line-height: 1; }
    .user-role { font-size: .68rem; color: var(--clr-text-sub); letter-spacing: .04em; line-height: 1; }
    .user-chevron {
      width: 14px; height: 14px; fill: none; stroke: var(--clr-gray);
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
      transition: transform .25s; margin-left: 2px;
    }
    .user-btn[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }
    .dropdown {
      position: absolute; top: calc(100% + 8px); right: 28px;
      width: 250px; background: var(--clr-surface);
      border: 1px solid var(--clr-border); border-radius: 8px;
      box-shadow: var(--shadow); overflow: hidden;
      opacity: 0; transform: translateY(-6px) scale(.98);
      transform-origin: top right; pointer-events: none;
      transition: opacity .18s, transform .18s; z-index: 200;
    }
    .dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
    .dropdown-header {
      padding: 14px 16px 12px; border-bottom: 1px solid var(--clr-border);
      background: #faf9f7; display: flex; align-items: center; gap: 10px;
    }
    .dropdown-avatar {
      width: 34px; height: 34px; border-radius: 50%;
      background: linear-gradient(145deg, var(--clr-orange-dk), var(--clr-orange));
      display: flex; align-items: center; justify-content: center;
      font-size: .72rem; font-weight: 600; color: #fff; flex-shrink: 0;
    }
    .dropdown-user-info p:first-child { font-size: .9rem; font-weight: 600; color: var(--clr-text); line-height: 1.2; }
    .dropdown-user-info p:last-child { font-size: .72rem; color: var(--clr-text-sub); margin-top: 2px; }
    .dropdown-body { padding: 8px 0; }
    .dd-btn {
      width: 100%; display: flex; align-items: center; gap: 10px;
      background: none; border: none; padding: 9px 16px;
      cursor: pointer; font-family: 'Times New Roman', Times, serif;
      font-size: .83rem; color: var(--clr-gray-lt); text-align: left;
      transition: background .15s, color .15s; letter-spacing: .01em;
    }
    .dd-btn:hover { background: #f5f3ef; color: var(--clr-text); }
    .dd-btn svg {
      width: 15px; height: 15px; flex-shrink: 0;
      stroke: var(--clr-gray); fill: none;
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
      transition: stroke .15s;
    }
    .dd-btn:hover svg { stroke: var(--clr-orange); }
    .dd-sep { height: 1px; background: var(--clr-border); margin: 4px 0; }
    .dd-btn.logout { color: #c0392b; }
    .dd-btn.logout svg { stroke: #c0392b; }
    .dd-btn.logout:hover { background: rgba(192,57,43,.06); }

    /* ═══ SIDEBAR ═══ */
    .sidebar {
      position: fixed; top: var(--header-h); left: 0;
      width: var(--sidebar-w);
      height: calc(100vh - var(--header-h));
      background: var(--clr-surface);
      border-right: 1px solid var(--clr-border);
      box-shadow: 4px 0 24px rgba(0,0,0,.07);
      transform: translateX(-100%);
      transition: transform .3s cubic-bezier(.4,0,.2,1);
      z-index: 90; display: flex; flex-direction: column; overflow: hidden;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 20px 16px; border-bottom: 1px solid var(--clr-border); flex-shrink: 0;
    }
    .sidebar-title {
      font-family: 'Times New Roman', Times, serif;
      font-size: .65rem; font-weight: 600;
      letter-spacing: .18em; text-transform: uppercase; color: var(--clr-text-sub);
    }
    .sidebar-close {
      width: 28px; height: 28px; border: none; background: none;
      cursor: pointer; border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center;
      transition: background var(--transition);
    }
    .sidebar-close:hover { background: rgba(224,123,32,.08); }
    .sidebar-close svg {
      width: 14px; height: 14px; stroke: var(--clr-gray-lt);
      stroke-width: 2; fill: none; transition: stroke var(--transition);
    }
    .sidebar-close:hover svg { stroke: var(--clr-orange); }
    .sidebar-nav {
      flex: 1; overflow-y: auto; padding: 14px 12px 20px;
      scrollbar-width: thin; scrollbar-color: var(--clr-border) transparent;
    }
    .nav-section { margin-bottom: 6px; }
    .nav-section-label {
      font-size: .6rem; font-weight: 600; letter-spacing: .18em;
      text-transform: uppercase; color: var(--clr-gray);
      padding: 10px 10px 6px; display: block;
    }
    .nav-item {
      display: flex; align-items: center; gap: 11px;
      height: 42px; padding: 0 10px; text-decoration: none;
      color: var(--clr-gray-lt); border-radius: var(--radius);
      font-size: .85rem; font-weight: 400; letter-spacing: .01em;
      transition: background var(--transition), color var(--transition), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }
    .nav-item:hover { background: #f7f3ee; color: var(--clr-text); transform: translateX(3px); }
    .nav-item.active {
      background: rgba(224,123,32,.09); color: var(--clr-orange); font-weight: 500;
    }
    .nav-item.active::before {
      content: ''; position: absolute; left: 0; top: 50%;
      transform: translateY(-50%); width: 3px; height: 20px;
      background: var(--clr-orange); border-radius: 0 3px 3px 0;
    }
    .nav-item svg {
      width: 17px; height: 17px; flex-shrink: 0;
      stroke: currentColor; fill: none;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
    }
    .nav-item.active svg { opacity: 1; }
    .nav-badge {
      margin-left: auto; background: rgba(224,123,32,.15);
      color: var(--clr-orange-dk); font-size: .62rem; font-weight: 600;
      padding: 2px 7px; border-radius: 10px; letter-spacing: .03em;
    }
    .nav-action {
      width: 100%; border: none; background: transparent; cursor: pointer;
      text-align: left; font-family: inherit; margin-top: 6px;
      color: var(--clr-orange-dk);
    }
    .nav-action:hover { background: rgba(224,123,32,.09); color: var(--clr-orange); }
    .nav-action svg { opacity: 1; }
    .nav-group { margin-bottom: 2px; }
    .nav-group-toggle {
      width: 100%; border: none; background: transparent; cursor: pointer; text-align: left;
    }
    .nav-group-chevron {
      margin-left: auto; width: 14px !important; height: 14px !important;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-group.open .nav-group-chevron {
      transform: rotate(180deg);
    }
    /* ponytail: grid 0fr→1fr slides to the real content height (no max-height guess) */
    .nav-group-children {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.25s ease;
    }
    .nav-group-children > div {
      overflow: hidden;
      padding-left: 20px;
      border-left: 1.5px solid var(--clr-border);
      margin-left: 17px;
      padding-block: 2px 4px;
    }
    .nav-group.open .nav-group-children {
      grid-template-rows: 1fr;
      opacity: 1;
    }
    .nav-child-item {
      display: flex; align-items: center; height: 34px; padding: 0 10px;
      text-decoration: none; color: var(--clr-gray-lt); border-radius: var(--radius);
      font-size: .8rem;
      transform: translateY(-8px) translateX(-4px);
      opacity: 0;
      transition: background var(--transition), color var(--transition), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
      margin-bottom: 2px;
    }
    .nav-group.open .nav-child-item {
      transform: translateY(0) translateX(0);
      opacity: 1;
    }
    .nav-child-item:hover { background: #f7f3ee; color: var(--clr-text); transform: translateX(3px); }
    .nav-child-item.active {
      color: var(--clr-orange); font-weight: 500; background: rgba(224,123,32,.06);
    }
    .sidebar-footer {
      padding: 14px 12px; border-top: 1px solid var(--clr-border); flex-shrink: 0;
    }
    .sidebar-user {
      display: flex; align-items: center; gap: 10px;
      padding: 10px; border-radius: var(--radius); background: #faf9f7;
    }
    .sidebar-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: linear-gradient(145deg, var(--clr-orange-dk), var(--clr-orange));
      display: flex; align-items: center; justify-content: center;
      font-size: .68rem; font-weight: 600; color: #fff; flex-shrink: 0;
    }
    .sidebar-user-info { flex: 1; min-width: 0; }
    .sidebar-user-name {
      font-size: .82rem; font-weight: 500; color: var(--clr-text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar-user-role { font-size: .68rem; color: var(--clr-text-sub); margin-top: 1px; }
    .sidebar-overlay {
      position: fixed; inset: 0;
      background: rgba(30,28,26,.2); backdrop-filter: blur(2px);
      opacity: 0; visibility: hidden;
      transition: opacity .3s, visibility .3s; z-index: 80;
    }
    .sidebar-overlay.show { opacity: 1; visibility: visible; }

    /* ═══ SUB-NAV (Campaigns children) ═══ */
    .nav-group { }
    .nav-group-row {
      display: flex; align-items: center; border-radius: var(--radius);
      transition: background var(--transition);
    }
    .nav-group-row:hover { background: #f7f3ee; }
    .nav-group-link {
      display: flex; align-items: center; gap: 11px;
      flex: 1; height: 42px; padding: 0 0 0 10px;
      text-decoration: none; color: var(--clr-gray-lt);
      font-size: .85rem; font-weight: 400; letter-spacing: .01em;
      transition: color var(--transition); border-radius: var(--radius) 0 0 var(--radius);
      position: relative;
    }
    .nav-group-link:hover { color: var(--clr-text); }
    .nav-group-link.active { color: var(--clr-orange); font-weight: 500; }
    .nav-group-link.active::before {
      content: ''; position: absolute; left: 0; top: 50%;
      transform: translateY(-50%); width: 3px; height: 20px;
      background: var(--clr-orange); border-radius: 0 3px 3px 0;
    }
    .nav-group-row:has(.nav-group-link.active) { background: rgba(224,123,32,.09); }
    .nav-group-chevron-btn {
      width: 36px; height: 42px; flex-shrink: 0;
      background: none; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      border-radius: 0 var(--radius) var(--radius) 0;
      transition: background var(--transition);
    }
    .nav-group-chevron-btn:hover { background: rgba(224,123,32,.1); }
    .nav-group-link svg.nav-icon {
      width: 17px; height: 17px; flex-shrink: 0;
      stroke: currentColor; fill: none;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
    }
    .nav-group-chevron {
      margin-left: auto;
      width: 13px; height: 13px; flex-shrink: 0;
      stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
      transition: transform .22s cubic-bezier(.4,0,.2,1); opacity: .6;
    }
    .nav-group.open .nav-group-chevron { transform: rotate(180deg); }
    .nav-sub {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
    }
    .nav-group.open .nav-sub { max-height: 500px; opacity: 1; }
    .nav-sub-item {
      display: flex; align-items: center; gap: 10px;
      height: 38px; padding: 0 10px 0 36px;
      text-decoration: none; color: var(--clr-gray-lt);
      border-radius: var(--radius);
      font-size: .82rem; font-weight: 400; letter-spacing: .01em;
      transform: translateY(-8px) translateX(-4px);
      opacity: 0;
      transition: background var(--transition), color var(--transition), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
      position: relative;
    }
    .nav-group.open .nav-sub-item {
      transform: translateY(0) translateX(0);
      opacity: 1;
    }
    .nav-sub-item::before {
      content: ''; position: absolute; left: 20px;
      width: 5px; height: 1.5px;
      background: var(--clr-border); border-radius: 2px;
    }
    .nav-sub-item:hover { background: #f7f3ee; color: var(--clr-text); transform: translateX(3px); }
    .nav-sub-item.active { background: rgba(224,123,32,.07); color: var(--clr-orange); font-weight: 500; }

    /* Cascading staggered entrance slide for sub-menu items */
    .nav-group.open .nav-child-item:nth-child(1), .nav-group.open .nav-sub-item:nth-child(1) { transition-delay: 0.03s; }
    .nav-group.open .nav-child-item:nth-child(2), .nav-group.open .nav-sub-item:nth-child(2) { transition-delay: 0.06s; }
    .nav-group.open .nav-child-item:nth-child(3), .nav-group.open .nav-sub-item:nth-child(3) { transition-delay: 0.09s; }
    .nav-group.open .nav-child-item:nth-child(4), .nav-group.open .nav-sub-item:nth-child(4) { transition-delay: 0.12s; }
    .nav-group.open .nav-child-item:nth-child(5), .nav-group.open .nav-sub-item:nth-child(5) { transition-delay: 0.15s; }
    .nav-group.open .nav-child-item:nth-child(6), .nav-group.open .nav-sub-item:nth-child(6) { transition-delay: 0.18s; }
    .nav-group.open .nav-child-item:nth-child(7), .nav-group.open .nav-sub-item:nth-child(7) { transition-delay: 0.21s; }
    .nav-group.open .nav-child-item:nth-child(8), .nav-group.open .nav-sub-item:nth-child(8) { transition-delay: 0.24s; }
    @media (prefers-reduced-motion: reduce) {
      .nav-group-children, .nav-child-item, .nav-group-chevron {
        transition: none !important;
      }
      .nav-group.open .nav-child-item { transition-delay: 0s !important; }
    }
    .nav-sub-item.active::after {
      content: ''; position: absolute; left: 0; top: 50%;
      transform: translateY(-50%); width: 3px; height: 16px;
      background: var(--clr-orange); border-radius: 0 3px 3px 0;
    }

    /* ═══ NOTIFICATIONS ═══ */
    .notif-btn {
      position: relative;
      width: 42px; height: 42px;
      border: none; background: none;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background var(--transition);
      flex-shrink: 0;
    }
    .notif-btn:hover { background: rgba(224,123,32,.1); }
    .notif-btn-icon {
      width: 38px; height: 38px;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .notif-btn-icon svg {
      width: 22px; height: 22px;
      transition: transform .2s cubic-bezier(.34,1.56,.64,1);
    }
    .notif-btn:hover .notif-btn-icon svg { transform: rotate(-12deg) scale(1.08); }
    .notif-badge {
      position: absolute; top: 1px; right: 1px;
      min-width: 17px; height: 17px; padding: 0 4px;
      background: linear-gradient(135deg, #e03535, #c0392b);
      color: #fff; font-size: .58rem; font-weight: 700;
      border-radius: 9px; display: flex; align-items: center; justify-content: center;
      border: 2px solid var(--clr-surface); line-height: 1;
      pointer-events: none; letter-spacing: .02em;
      box-shadow: 0 2px 6px rgba(192,57,43,.4);
    }
    .notif-badge.hidden { display: none; }

    /* Notification Panel */
    .notif-panel-backdrop {
      position: fixed; inset: 0; z-index: 9990;
      display: none;
    }
    .notif-panel-backdrop.open { display: block; }
    .notif-panel {
      position: fixed; top: calc(var(--header-h) + 10px); right: 20px;
      width: 420px; max-width: calc(100vw - 24px);
      max-height: calc(100vh - var(--header-h) - 30px);
      background: var(--clr-surface); border: 1px solid var(--clr-border);
      border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
      z-index: 9991; display: flex; flex-direction: column; overflow: hidden;
      opacity: 0; transform: translateY(-10px) scale(.96);
      transform-origin: top right;
      transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
      pointer-events: none;
    }
    .notif-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

    /* Panel header */
    .notif-panel-head {
      padding: 18px 20px 14px; border-bottom: 1px solid var(--clr-border);
      background: linear-gradient(135deg, #faf9f7, #f5f3f0);
      display: flex; align-items: center; justify-content: space-between;
      flex-shrink: 0; gap: 12px;
    }
    .notif-head-left { display: flex; align-items: center; gap: 12px; }
    .notif-head-icon {
      width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
      background: linear-gradient(135deg, rgba(224,123,32,.15), rgba(224,123,32,.08));
      border: 1.5px solid rgba(224,123,32,.22);
      display: flex; align-items: center; justify-content: center;
    }
    .notif-head-icon svg { width: 20px; height: 20px; }
    .notif-panel-title {
      font-family: 'Times New Roman', Times, serif;
      font-size: 1.05rem; font-weight: 700; color: var(--clr-text); line-height: 1;
    }
    .notif-panel-sub { font-size: .72rem; color: var(--clr-text-sub); margin-top: 3px; }
    .notif-panel-actions { display: flex; align-items: center; gap: 4px; }
    .notif-clear-btn {
      font-size: .72rem; font-weight: 500; color: var(--clr-orange);
      background: none; border: 1px solid rgba(224,123,32,.25); cursor: pointer;
      padding: 5px 10px; border-radius: 20px;
      transition: background .15s, border-color .15s;
      font-family: 'Times New Roman', Times, serif; letter-spacing: .02em;
    }
    .notif-clear-btn:hover { background: rgba(224,123,32,.08); border-color: rgba(224,123,32,.5); }
    .notif-panel-close {
      width: 30px; height: 30px; border: none; background: none; cursor: pointer;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      transition: background var(--transition); color: var(--clr-gray);
    }
    .notif-panel-close:hover { background: rgba(0,0,0,.07); color: var(--clr-text); }
    .notif-panel-close svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }

    /* Body */
    .notif-body {
      overflow-y: auto; flex: 1;
      scrollbar-width: thin; scrollbar-color: var(--clr-border) transparent;
      padding: 8px 0;
    }
    .notif-group-label {
      font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
      color: var(--clr-gray); padding: 10px 20px 7px; display: flex; align-items: center; gap: 8px;
    }
    .notif-group-label::after {
      content: ''; flex: 1; height: 1px; background: var(--clr-border);
    }

    /* Notification card */
    .notif-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 16px 12px 20px; margin: 2px 8px;
      border-radius: 10px;
      transition: background .13s; position: relative; cursor: default;
    }
    .notif-item:hover { background: #f7f3ee; }
    .notif-icon-wrap {
      width: 38px; height: 38px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
    }
    .notif-icon-wrap svg { width: 17px; height: 17px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .notif-icon-wrap.meeting   { background: rgba(41,128,185,.12);  } .notif-icon-wrap.meeting svg   { stroke: #2980b9; }
    .notif-icon-wrap.followup  { background: rgba(142,68,173,.12);  } .notif-icon-wrap.followup svg  { stroke: #8e44ad; }
    .notif-icon-wrap.overdue   { background: rgba(192,57,43,.12);   } .notif-icon-wrap.overdue svg   { stroke: #c0392b; }
    .notif-icon-wrap.today-mtg { background: rgba(224,123,32,.13);  } .notif-icon-wrap.today-mtg svg { stroke: var(--clr-orange); }

    .notif-content { flex: 1; min-width: 0; }
    .notif-title { font-size: .86rem; font-weight: 600; color: var(--clr-text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .notif-type-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
    .notif-type-label { font-size: .7rem; color: var(--clr-text-sub); font-weight: 500; }
    .notif-date-row {
      display: flex; align-items: center; gap: 5px;
      margin-top: 5px; font-size: .75rem; color: var(--clr-text-sub);
    }
    .notif-date-row svg { width: 12px; height: 12px; stroke: var(--clr-gray); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
    .notif-rep-row {
      display: flex; align-items: center; gap: 5px;
      margin-top: 3px; font-size: .72rem; color: var(--clr-text-sub);
    }
    .notif-rep-row svg { width: 11px; height: 11px; stroke: var(--clr-gray); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
    .notif-pill {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: .63rem; font-weight: 700; padding: 2px 8px;
      border-radius: 20px; margin-top: 6px; letter-spacing: .04em; text-transform: uppercase;
    }
    .notif-pill svg { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .notif-pill.today   { background: rgba(224,123,32,.15);  color: var(--clr-orange-dk); }
    .notif-pill.upcoming{ background: rgba(41,128,185,.12);  color: #1f5f8b; }
    .notif-pill.overdue { background: rgba(192,57,43,.13);   color: #922b21; }
    .notif-pill.followup{ background: rgba(142,68,173,.12);  color: #6c3483; }

    .notif-actions-panel {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
      align-self: center;
    }
    .notif-mark-read, .notif-delete-btn {
      width: 28px; height: 28px; border: none; background: none; cursor: pointer;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      color: var(--clr-gray); flex-shrink: 0;
      opacity: 0; transition: opacity .15s, background .13s, color .13s;
    }
    .notif-item:hover .notif-mark-read,
    .notif-item:hover .notif-delete-btn {
      opacity: 1;
    }
    @media (max-width: 768px) {
      .notif-mark-read, .notif-delete-btn {
        opacity: 0.7;
      }
    }
    .notif-mark-read:hover {
      background: rgba(46, 204, 113, 0.15);
      color: #2ecc71;
    }
    .notif-delete-btn:hover {
      background: rgba(192, 57, 43, 0.15);
      color: #c0392b;
    }
    .notif-mark-read svg, .notif-delete-btn svg {
      width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5;
    }

    /* Empty state */
    .notif-empty {
      padding: 52px 24px; text-align: center; color: var(--clr-text-sub);
    }
    .notif-empty-icon {
      width: 64px; height: 64px; border-radius: 50%;
      background: linear-gradient(135deg, rgba(224,123,32,.08), rgba(224,123,32,.04));
      border: 1.5px solid rgba(224,123,32,.15);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 14px;
    }
    .notif-empty-icon svg { width: 28px; height: 28px; stroke: rgba(224,123,32,.5); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .notif-empty h4 { font-family: 'Times New Roman', Times, serif; font-size: .95rem; font-weight: 700; color: var(--clr-text); margin-bottom: 6px; }
    .notif-empty p { font-size: .78rem; color: var(--clr-text-sub); line-height: 1.5; }

    /* Panel footer */
    .notif-panel-foot {
      padding: 10px 20px 12px; border-top: 1px solid var(--clr-border);
      background: #faf9f7; flex-shrink: 0; text-align: center;
    }
    .notif-foot-text { font-size: .72rem; color: var(--clr-text-sub); }

    /* ── Notification Category Tabs ── */
    .notif-categories {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 10px 16px;
      background: #fbfaf8;
      border-bottom: 1px solid var(--clr-border);
    }
    .notif-cat-tab {
      padding: 5px 12px;
      font-family: var(--font-ui);
      font-size: 0.74rem;
      font-weight: 500;
      color: var(--clr-text-sub);
      background: var(--clr-surface);
      border: 1px solid var(--clr-border);
      border-radius: 20px;
      cursor: pointer;
      transition: all var(--transition);
    }
    .notif-cat-tab:hover {
      color: var(--clr-orange);
      border-color: rgba(224, 123, 32, 0.3);
      background: rgba(224, 123, 32, 0.02);
    }
    .notif-cat-tab.active {
      color: #ffffff;
      background: var(--clr-orange);
      border-color: var(--clr-orange);
      font-weight: 600;
    }
    .notif-cat-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      margin-left: 5px;
      border-radius: 10px;
      font-size: 0.65rem;
      font-weight: 700;
      line-height: 1;
      background: rgba(224, 123, 32, 0.12);
      color: var(--clr-orange-dk);
      transition: all var(--transition);
    }
    .notif-cat-tab.active .notif-cat-badge {
      background: #ffffff;
      color: var(--clr-orange);
    }
    .notif-cat-tab:hover .notif-cat-badge {
      background: var(--clr-orange);
      color: #ffffff;
    }

    /* ── Notification Search Bar ── */
    .notif-search-bar {
      position: relative;
      padding: 8px 16px;
      background: #fbfaf8;
      border-bottom: 1px solid var(--clr-border);
      display: flex;
      align-items: center;
    }
    .notif-search-bar input {
      width: 100%;
      padding: 6px 12px 6px 32px;
      font-family: var(--font-ui);
      font-size: 0.78rem;
      border: 1px solid var(--clr-border);
      border-radius: 6px;
      outline: none;
      background: var(--clr-surface);
      color: var(--clr-text);
      transition: border-color var(--transition), box-shadow var(--transition);
    }
    .notif-search-bar input:focus {
      border-color: var(--clr-orange);
      box-shadow: 0 0 0 2px rgba(224, 123, 32, 0.15);
    }
    .notif-search-icon {
      position: absolute;
      left: 26px;
      width: 14px;
      height: 14px;
      stroke: var(--clr-gray);
      fill: none;
      stroke-width: 2.2;
      pointer-events: none;
    }


    /* ── Read/Unread Notification States ── */
    .notif-item.read {
      opacity: 0.62;
      background: rgba(0, 0, 0, 0.01);
    }
    .notif-item.read:hover {
      opacity: 0.85;
      background: #f7f3ee;
    }
    .notif-item.read .notif-mark-read {
      display: none !important;
    }
    .notif-item.unread::before {
      content: '';
      position: absolute;
      left: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: var(--clr-orange);
      box-shadow: 0 0 8px var(--clr-orange);
    }

    /* ── Action Buttons inside notifications ── */
    .notif-action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 8px;
      padding: 5px 12px;
      background: var(--clr-orange);
      color: #fff !important;
      border-radius: 20px;
      font-family: var(--font-ui);
      font-size: 0.74rem;
      font-weight: 500;
      text-decoration: none !important;
      transition: background var(--transition);
      box-shadow: 0 2px 8px rgba(224,123,32,0.2);
      border: none;
      cursor: pointer;
      width: fit-content;
    }
    .notif-action-btn:hover {
      background: var(--clr-orange-dk);
    }

    /* ── Color Coding for Priority and Categories ── */
    .notif-item.notif-sla-warning {
      background: rgba(241, 196, 15, 0.08);
      border-left: 3px solid #f1c40f;
    }
    .notif-item.notif-sla-warning:hover {
      background: rgba(241, 196, 15, 0.15);
    }
    .notif-item.notif-sla-breached {
      background: rgba(192, 57, 43, 0.08);
      border-left: 3px solid #c0392b;
    }
    .notif-item.notif-sla-breached:hover {
      background: rgba(192, 57, 43, 0.15);
    }
    
    .notif-item.notif-priority-high {
      background: rgba(192, 57, 43, 0.03);
      border-left: 3px solid #c0392b;
    }
    .notif-item.notif-priority-high:hover {
      background: rgba(192, 57, 43, 0.06);
    }
    
    .notif-item.notif-type-campaign {
      background: rgba(224, 123, 32, 0.02);
      border-left: 3px solid var(--clr-orange);
    }
    .notif-item.notif-type-campaign:hover {
      background: rgba(224, 123, 32, 0.05);
    }
    
    .notif-item.notif-type-lead {
      background: rgba(41, 128, 185, 0.02);
      border-left: 3px solid #2980b9;
    }
    .notif-item.notif-type-lead:hover {
      background: rgba(41, 128, 185, 0.05);
    }
    
    .notif-item.notif-type-system {
      border-left: 3px solid var(--clr-gray);
    }

    /* ── Lead Info in Notifications ── */
    .notif-lead-info {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;
      padding: 8px 12px;
      background: #faf8f5;
      border: 1px solid var(--clr-border);
      border-radius: var(--radius);
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .notif-lead-badge {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .notif-lead-icon {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: var(--clr-orange);
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }
    .notif-lead-name {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--clr-text);
      font-family: var(--font-ui);
    }
    .notif-lead-phone {
      font-size: 0.74rem;
      color: var(--clr-gray-lt);
      font-family: var(--font-ui);
      display: flex;
      align-items: center;
      gap: 4px;
      padding-left: 20px;
    }



    /* ═══ RESPONSIVE ═══ */
    @media (max-width: 640px) {
      :root { --header-h: 56px; }
      header { padding: 0 12px 0 8px; }
      .logo { padding: 0 4px; gap: 8px; }
      .logo-name { font-size: 1.15rem; }
      .logo-tag { display: none; }
      .logo-divider { margin: 0 2px; }
      .user-info { display: none; }
      .user-btn { padding: 5px 8px 5px 5px; gap: 6px; }
      .user-chevron { display: none; }
      .dropdown { right: 8px; width: calc(100vw - 16px); max-width: 320px; }
    }
