.notif-root {
    position: relative;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(100vw - 2rem, 380px);
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(184, 212, 216, 0.45);
    box-shadow: 0 20px 48px rgba(9, 60, 93, 0.14);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
}

.notif-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid rgba(184, 212, 216, 0.3);
    background: linear-gradient(180deg, #f8fbfc 0%, #fff 100%);
}

.notif-dropdown__title {
    font-size: 14px;
    font-weight: 700;
    color: #093C5D;
}

.notif-dropdown__count {
    font-size: 11px;
    font-weight: 700;
    color: #093C5D;
    background: rgba(93, 248, 216, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.notif-dropdown__mark {
    font-size: 12px;
    font-weight: 600;
    color: #3B7597;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.notif-dropdown__mark:hover {
    color: #093C5D;
    background: #e6f6f7;
}

.notif-dropdown__list {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-dropdown__list::-webkit-scrollbar {
    width: 6px;
}

.notif-dropdown__list::-webkit-scrollbar-thumb {
    background: rgba(9, 60, 93, 0.15);
    border-radius: 999px;
}

.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(184, 212, 216, 0.2);
    transition: background 0.2s ease;
}

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

.notif-item:hover {
    background: #f4f9fa;
}

.notif-item.is-unread {
    background: rgba(93, 248, 216, 0.08);
}

.notif-item.is-unread:hover {
    background: rgba(93, 248, 216, 0.14);
}

.notif-item__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item__icon--success { background: rgba(10, 110, 74, 0.12); color: #0a6e4a; }
.notif-item__icon--info { background: rgba(59, 117, 151, 0.12); color: #3B7597; }
.notif-item__icon--accent { background: rgba(93, 248, 216, 0.25); color: #093C5D; }
.notif-item__icon--neutral { background: rgba(9, 60, 93, 0.08); color: #3B7597; }

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

.notif-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #093C5D;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.notif-item__text {
    font-size: 12px;
    color: #3B7597;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item__time {
    font-size: 11px;
    color: rgba(59, 117, 151, 0.75);
    margin-top: 0.35rem;
}

.notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ba1a1a;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.notif-dropdown__empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #3B7597;
    font-size: 13px;
}

.notif-dropdown__foot {
    padding: 0.75rem 1.125rem;
    border-top: 1px solid rgba(184, 212, 216, 0.3);
    background: #f8fbfc;
    text-align: center;
}

.notif-dropdown__foot a {
    font-size: 13px;
    font-weight: 600;
    color: #093C5D;
    text-decoration: none;
}

.notif-dropdown__foot a:hover {
    text-decoration: underline;
}

.notif-trigger__dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ba1a1a;
    border: 2px solid #fff;
    pointer-events: none;
}

.notif-root--panel .notif-trigger__dot {
    top: 8px;
    right: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .notif-dropdown {
        transition: none;
    }
}
