.notify-btn {
    position: relative;
}

.notify-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fa0030;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notify-btn.has-unread .notify-badge {
    display: inline-flex;
}

.notify-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 30px;
    width: 300px;
    max-height: 360px;
    background: #f4f4f4;
    color: #0f0f0f;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 130;
}

.user-menu-wrap.notify-open .notify-panel {
    display: block;
}

.notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #dfdfdf;
    font-size: 12px;
    font-weight: 700;
}

.notify-read-all {
    border: none;
    background: transparent;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.notify-read-all:hover {
    color: #222;
}

.notify-list {
    max-height: 308px;
    overflow: auto;
}

.notify-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e7e7e7;
    background: #f4f4f4;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.notify-item:last-child {
    border-bottom: none;
}

.notify-item.unread {
    background: #ececec;
}

.notify-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.notify-item-text {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.notify-item-time {
    font-size: 10px;
    color: #8a8a8a;
    margin-top: 6px;
}

.notify-empty {
    padding: 20px 14px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

