.subscription-notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subscription-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

.subscription-notification.hide {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0) scale(0.8);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    font-size: 32px;
    animation: bounce 0.6s ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.notification-username {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.notification-count {
    font-size: 24px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: pulse 0.8s ease-in-out;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #22c55e;
    }
    100% {
        transform: scale(1);
    }
}

/* Glow effect on show */
.subscription-notification.show::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    animation: glow 0.6s ease-out;
}

@keyframes glow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .subscription-notification {
        min-width: 280px;
        padding: 16px 20px;
        top: 15px;
    }
    
    .notification-content {
        gap: 12px;
    }
    
    .notification-icon {
        font-size: 28px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-username {
        font-size: 13px;
    }
    
    .notification-count {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .subscription-notification {
        min-width: 260px;
        padding: 14px 18px;
        top: 10px;
    }
    
    .notification-content {
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 24px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-username {
        font-size: 12px;
    }
    
    .notification-count {
        font-size: 18px;
    }
}

/* Alternative notification styles */
.subscription-notification.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #2d1810;
}

.subscription-notification.premium .notification-count {
    color: #ff6b35;
}

.subscription-notification.gift {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}