.notification-popup {
    position: fixed;
    top: 10px; /* Default position */
    left: 50%;
    transform: translate(-50%, -150%);
    width: min(520px, 92vw);
    max-width: 92vw;

    padding: 10px 14px;

    background: rgba(9, 9, 12, 0.96);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    color: #fff;
    z-index: 9999;
    overflow: hidden;

    opacity: 0;
    transition: transform 0.28s ease-out, opacity 0.28s ease-out;
    pointer-events: none;
    will-change: transform, opacity;

    display: flex;
    gap: 16px;
}

.notification-popup.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.popup-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.popup-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.popup-avatar {
    background: radial-gradient(circle at 30% 20%, #ff84d6, #ff4eb6, #a33b90 85%);
    box-shadow: 0 0 14px rgba(255, 78, 182, 0.35);
    align-self: center;
    border-radius: 10px;
}

.popup-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.popup-message {
    font-size: 0.78rem;
    color: #e8badc;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 40px;
    transition: max-height 0.3s ease;
}

.notification-popup.expanded .popup-message {
    -webkit-line-clamp: unset;
    max-height: 200px;
}
