.notification-bell-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .8rem;
    position: relative;
    overflow: visible !important;
    outline: none;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.notification-bell-icon {
    font-size: 1rem;
    line-height: 1;
    color: #fff;
}

.notification-bell-trigger.has-unread {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
}

.notification-badge {
    position: absolute;
    top: -0.28rem;
    right: -0.3rem;
    font-size: 0.66rem;
    line-height: 1;
    min-width: 1.22rem;
    height: 1.22rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -.01em;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .92);
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0 .28rem;
    box-shadow: 0 6px 12px rgba(15, 23, 42, .18);
    z-index: 3;
}

.notification-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(239, 68, 68, .24), transparent 72%);
    z-index: -1;
    pointer-events: none;
}

.notification-dropdown {
    --notification-mobile-top: 4.5rem;
    width: min(360px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    max-height: min(70vh, 440px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-radius: 12px;
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    list-style: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.notification-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: normal;
    overflow: hidden;
}

.notification-item:hover {
    background-color: var(--brand-surface-2) !important;
    border-left-color: var(--brand-primary) !important;
    transform: none;
}

.notification-item-row {
    min-width: 0;
    align-items: flex-start;
}

.notification-item-icon {
    width: 2rem;
    height: 2rem;
    box-shadow: none !important;
    background-image: none !important;
    border: 1px solid #e2e8f0;
    background: #f8fafc !important;
}

.notification-item-icon i {
    color: #475569 !important;
    opacity: 1 !important;
}

.notification-item-content {
    min-width: 0;
}

.notification-item-content h6,
.notification-item-content p {
    word-break: break-word;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background-image: none !important;
    background: #ef4444 !important;
}

.notification-empty-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: var(--brand-surface-2);
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--brand-text-muted);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#notificationDropdown:hover,
#notificationDropdown:focus-visible {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

#notificationDropdown:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,.18);
    border-radius: .8rem;
}

@media (max-width: 767.98px) {
    .notification-bell-trigger {
        width: 2rem;
        height: 2rem;
        border-radius: .72rem;
    }

    .notification-bell-icon {
        font-size: .95rem;
    }

    .notification-badge {
        min-width: 1.12rem;
        height: 1.12rem;
        font-size: .62rem;
        top: -0.22rem;
        right: -0.22rem;
    }

    .notification-dropdown {
        position: fixed !important;
        inset: auto 0.75rem auto 0.75rem !important;
        top: var(--notification-mobile-top) !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - var(--notification-mobile-top) - 1rem) !important;
        transform: none !important;
    }

    .notification-dropdown.dropdown-menu-end[data-bs-popper] {
        position: fixed !important;
        inset: auto 0.75rem auto 0.75rem !important;
        top: var(--notification-mobile-top) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        transform: none !important;
        margin-top: 0 !important;
    }

    .notification-dropdown::before,
    .notification-dropdown.dropdown-menu-end::before {
        display: none !important;
    }

    .notification-item {
        padding: 0.75rem !important;
    }
}
