.notif-menu-item {
    position: static;
}

.notif-popup {
    position: fixed;
    right: 20px;
    top: 76px;
    transform: translateY(-10px) scale(0.95);
    width: 360px;
    max-height: 480px;
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.notif-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.notif-mark-all {
    background: none;
    border: none;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
    font-family: inherit;
}

.notif-mark-all:hover {
    background: rgba(251, 191, 36, 0.1);
}

.notif-popup-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-popup-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.notif-popup-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.notif-popup-tab.active {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.notif-popup-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

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

.notif-popup-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-popup-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notif-popup-loading,
.notif-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(251, 191, 36, 0.04);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background: #fbbf24;
    border-radius: 0 3px 3px 0;
}

.notif-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.25);
    flex-shrink: 0;
}

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

.notif-item-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notif-item-text strong {
    color: #fbbf24;
    font-weight: 600;
}

.notif-item-text .action {
    color: rgba(255, 255, 255, 0.55);
}

.notif-item-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    background: rgba(96, 165, 250, 0.12);
}

.notif-item-icon svg {
    width: 13px;
    height: 13px;
    stroke-width: 2;
    fill: none;
    stroke: #60a5fa;
}

.notif-item-icon.like {
    background: rgba(248, 113, 113, 0.12);
}

.notif-item-icon.comment {
    background: rgba(96, 165, 250, 0.12);
}

.notif-item-icon.reply {
    background: rgba(139, 92, 246, 0.12);
}

.notif-item-icon.follow {
    background: rgba(167, 139, 250, 0.12);
}

.notif-item-icon.mention {
    background: rgba(52, 211, 153, 0.12);
    font-size: 20px;
    font-weight: 700;
    color: #34d399;
}

.notif-item-icon.comment_like {
    background: rgba(248, 113, 113, 0.12);
}

.notif-item-icon.guide_like {
    background: rgba(251, 191, 36, 0.12);
}

.notif-item-icon.guide_comment {
    background: rgba(96, 165, 250, 0.12);
}

.notif-item-icon.streak {
    background: rgba(251, 146, 60, 0.12);
}

.notif-popup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notif-popup-empty svg {
    width: 40px;
    height: 40px;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    fill: none;
}

@media (max-width: 768px) {
    .notif-popup {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .notif-popup.active {
        transform: translateY(0) scale(1);
    }
}
