/* ── Notification bell & dropdown ─────────────────────────────────────────── */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.notif-dropdown-menu {
    width: 340px;
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-quaternary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.notif-header-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.notif-mark-all {
    font-size: 0.72rem;
    color: var(--primary-light);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}
.notif-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
    align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-quaternary); }
.notif-item.unread { background: rgba(124, 58, 237, 0.04); }
.notif-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1px;
}
.notif-msg {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}
.notif-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
