.xp-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    min-width: 280px;
    max-width: 320px;
    background: rgba(30, 32, 36, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.1);
    z-index: 10000;
    animation: xpSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

@keyframes xpSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.xp-notification.removing {
    animation: xpSlideOut 0.3s ease-in forwards;
}

@keyframes xpSlideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.xp-notif-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xp-notif-icon img {
    width: 22px;
    height: 22px;
}

.xp-notif-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.xp-notif-icon.quest {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.xp-notif-icon.all {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: xpIconPulse 2s ease-in-out infinite;
}

@keyframes xpIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

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

.xp-notif-title {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-notif-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xp-notif-close {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.xp-notif-close svg {
    width: 14px;
    height: 14px;
}

.xp-notif-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Level Up Notification */
.xp-notification.level-up,
.xp-notification.levelup {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.xp-notification.level-up .xp-notif-icon,
.xp-notification.levelup .xp-notif-icon {
    animation: xpLevelUpSpin 0.6s ease-out;
}

@keyframes xpLevelUpSpin {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.xp-notification-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.xp-notification-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fbbf24;
    border-radius: 50%;
    animation: xpStarFloat 1.5s ease-out forwards;
}

@keyframes xpStarFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .xp-notification {
        top: 70px;
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: none;
        padding: 12px 14px;
    }
    
    .xp-notif-icon {
        width: 32px;
        height: 32px;
    }
    
    .xp-notif-icon img {
        width: 20px;
        height: 20px;
    }
    
    .xp-notif-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .xp-notif-title {
        font-size: 13px;
    }
    
    .xp-notif-desc {
        font-size: 11px;
    }
    
    @keyframes xpSlideIn {
        from {
            transform: translateY(-60px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes xpSlideOut {
        to {
            transform: translateY(-60px);
            opacity: 0;
        }
    }
}
