/* Notificações sociais — estilo “toast” escuro, discreto */

:root {
    --notif-bg: rgba(22, 27, 34, 0.96);
    --notif-border: rgba(148, 163, 184, 0.18);
    --notif-text: #e6edf3;
    --notif-muted: #8b949e;
    --notif-kicker: #7ee787;
    --notif-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    --notif-accent-trial: #3fb950;
    --notif-accent-reseller: #d4a017;
    --notif-accent-renewal: #58a6ff;
    --notif-accent-purchase: #a371f7;
}

.notifications-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    padding: 20px 16px 24px;
}

.notification-item {
    position: relative;
    max-width: min(420px, calc(100vw - 32px));
    width: 100%;
    padding: 14px 40px 14px 16px;
    border-radius: 14px;
    background: var(--notif-bg);
    color: var(--notif-text);
    border: 1px solid var(--notif-border);
    box-shadow: var(--notif-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    text-align: left;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--notif-accent-trial);
    border-radius: 14px 0 0 14px;
}

.notification-item--trial::before {
    background: var(--notif-accent-trial);
}
.notification-item--reseller::before {
    background: var(--notif-accent-reseller);
}
.notification-item--renewal::before {
    background: var(--notif-accent-renewal);
}
.notification-item--purchase::before {
    background: var(--notif-accent-purchase);
}

.notification-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-item.hide {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.notification-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notification-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.45);
    animation: notifPulse 2.2s ease-out infinite;
}

@keyframes notifPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(63, 185, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
    }
}

.notification-icon {
    width: 42px;
    height: 42px;
    margin-top: 2px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--notif-kicker);
    opacity: 0.95;
}

.notification-text {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--notif-text);
}

.notification-text strong {
    font-weight: 700;
    color: #fff;
}

.notification-text .notif-meta {
    color: var(--notif-muted);
    font-weight: 500;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--notif-muted);
    margin-top: 8px;
    font-weight: 400;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--notif-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.notification-item.highlight {
    animation: notifPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes notifPop {
    0% {
        transform: translateY(24px) scale(0.94);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .notifications-container {
        padding: 12px 12px 20px;
        justify-content: stretch;
    }

    .notification-item {
        max-width: none;
        padding-right: 38px;
    }

    .notification-text {
        font-size: 0.88rem;
    }

    .notification-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}
