.notification-wrap {
    position: relative;
    margin-right: 12px;
}

.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .15s ease;
}

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

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #d10b1e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    border: 2px solid #111128;
}

.notification-badge.active {
    animation: notificationGlow 1.1s ease-in-out infinite;
}

@keyframes notificationGlow {
    0%,
    100% {
        box-shadow: 0 0 6px 2px rgba(255, 0, 0, .55), 0 0 14px 6px rgba(255, 0, 0, .28);
    }
    50% {
        box-shadow: 0 0 14px 7px rgba(255, 0, 0, .95), 0 0 28px 14px rgba(255, 0, 0, .5);
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 24px);
    background: #1b1b93;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(27, 27, 147, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
    z-index: 1080;
    overflow: hidden;
    display: none;
}

.notification-dropdown.show {
    display: block;
    animation: notificationDropIn .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes notificationDropIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--primary-color, #7c5cff);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.notification-mark-all:hover {
    text-decoration: underline;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 370px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 10px;
}

.notification-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, .04);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.notification-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notification-list li:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.notification-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(220, 20, 60, .16);
    border: 1px solid rgba(220, 20, 60, .35);
    position: relative;
    margin-top: 2px;
}

.notification-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc143c;
    box-shadow: 0 0 6px rgba(220, 20, 60, .8);
}

.notification-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.notification-message {
    color: #a9a9cf;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.45;
    word-break: break-word;
}

.notification-time {
    color: #6d6d92;
    font-size: 11px;
    margin-top: 5px;
}

.notification-empty {
    padding: 26px 16px;
    text-align: center;
    color: #8a8ab0;
    font-size: 13px;
}
