/* ══════════════════════════════════════
   TOPBAR — topbar.css
   Block: Sticky top navigation bar
   ══════════════════════════════════════ */

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 12px;
    color: var(--ink3);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Bell & Notification panel ── */
.topbar-notif-wrap { position: relative; }

.topbar-bell {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--ink2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background .13s, color .13s, border-color .13s;
}
.topbar-bell:hover { background: var(--bg); color: var(--ink); border-color: var(--ink4); }
.topbar-bell.active { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.topbar-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    background: #A8E76A;
    color: #173111;
    font-size: 9px;
    font-weight: 900;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
    line-height: 1;
}

/* ── Notification panel ── */
.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0,0,0,.12), 0 4px 20px rgba(0,0,0,.07);
    z-index: 400;
    overflow: hidden;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(17,18,23,.06);
}

.notif-panel-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111217;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-panel-count {
    background: #A8E76A;
    color: #173111;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 900;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

.notif-panel-clear {
    font-size: 11.5px;
    color: #8d919d;
    background: rgba(17,18,23,.05);
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 5px 13px;
    border-radius: 999px;
    transition: background .13s, color .13s;
}
.notif-panel-clear:hover {
    background: rgba(239,68,68,.1);
    color: #dc2626;
}

.notif-panel-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 8px 10px;
}
.notif-panel-list::-webkit-scrollbar { width: 3px; }
.notif-panel-list::-webkit-scrollbar-thumb { background: rgba(17,18,23,.1); border-radius: 2px; }

.notif-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px 36px;
    color: #8d919d;
}
.notif-panel-empty svg { opacity: .3; }
.notif-panel-empty span {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #8d919d;
}
.notif-panel-empty small {
    font-size: 11.5px;
    color: #b0b5bf;
    text-align: center;
    line-height: 1.5;
    max-width: 200px;
}

.notif-panel-item {
    display: block;
    padding: 11px 14px;
    border-radius: 14px;
    transition: background .13s;
    cursor: default;
    margin-bottom: 2px;
}
.notif-panel-item:hover { background: rgba(17,18,23,.04); }
.notif-panel-item--unread { background: rgba(168,231,106,.13); }
.notif-panel-item--unread:hover { background: rgba(168,231,106,.22); }

.notif-panel-ava { display: none; }

.notif-panel-body { flex: 1; min-width: 0; }

.notif-panel-label {
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
    color: #22a347;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.notif-panel-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #A8E76A;
    flex-shrink: 0;
}

.notif-panel-name {
    font-size: 13px;
    font-weight: 700;
    color: #111217;
    line-height: 1.3;
}

.notif-panel-msg {
    font-size: 11.5px;
    color: #8d919d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.notif-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.notif-panel-time { font-size: 11px; color: #b0b5bf; }

.notif-panel-btn {
    font-size: 11px;
    font-weight: 700;
    color: #173111;
    background: rgba(168,231,106,.28);
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 13px;
    border-radius: 999px;
    transition: background .13s;
}
.notif-panel-btn:hover { background: rgba(168,231,106,.5); }

/* ══════════════════════════════════════
   LEAD TOAST NOTIFICATIONS
   ══════════════════════════════════════ */

.lead-notif-wrap {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.lead-notif {
    width: 316px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 22px;
    box-shadow: 0 20px 56px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.07);
    overflow: hidden;
    pointer-events: all;
    opacity: 0;
    transform: translateX(40px) scale(.95);
    transition: opacity .28s ease, transform .38s cubic-bezier(.34,1.56,.64,1);
}
.lead-notif.lead-notif--show {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.lead-notif.lead-notif--hide {
    opacity: 0;
    transform: translateX(40px) scale(.95);
    transition: opacity .2s ease, transform .2s ease;
}

.lead-notif-bar { display: none; }

.lead-notif-inner {
    padding: 14px 15px 15px;
    display: block;
}

.lead-notif-ava {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.lead-notif-body { flex: 1; min-width: 0; }

.lead-notif-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #22a347;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lead-notif-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #A8E76A;
    animation: wan-pulse 1.6s ease infinite;
    flex-shrink: 0;
}

.lead-notif-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #111217;
    margin-bottom: 2px;
    line-height: 1.3;
}

.lead-notif-msg {
    font-size: 12px;
    color: #8d919d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-notif-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
}

.lead-notif-btn {
    padding: 6px 15px;
    background: rgba(168,231,106,.25);
    color: #1e5c10;
    border: none;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.lead-notif-btn:hover { background: rgba(168,231,106,.45); }

.lead-notif-close {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    border: 1px solid rgba(17,18,23,.08);
    background: rgba(17,18,23,.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d919d;
    flex-shrink: 0;
    transition: background .13s, color .13s;
    align-self: flex-start;
}
.lead-notif-close:hover { background: rgba(17,18,23,.09); color: #111217; }
