.xp-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    width: 280px;
    background: linear-gradient(135deg, rgba(30, 32, 36, 0.98), rgba(20, 22, 26, 0.98));
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.1);
    z-index: 10000;
    animation: xpSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.xp-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    animation: xpShine 2s ease-in-out infinite;
}

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

@keyframes xpShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

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

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

.xp-notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.xp-notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: xpIconPulse 2s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
}

.xp-notification-icon img {
    width: 28px;
    height: 28px;
}

@keyframes xpIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    }
}

.xp-notification-title {
    flex: 1;
}

.xp-notification-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 2px 0;
}

.xp-notification-title p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.xp-notification-close {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.xp-notification-content {
    position: relative;
    z-index: 1;
}

.xp-notification-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-radius: 10px;
    margin-bottom: 10px;
}

.xp-notification-reward-amount {
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
    animation: xpBounce 0.6s ease-out;
}

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

.xp-notification-reward-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.xp-notification-progress {
    margin-top: 12px;
}

.xp-notification-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.xp-notification-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.xp-notification-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

/* Level Up Notification */
.xp-notification.level-up {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.5), 0 0 80px rgba(251, 191, 36, 0.3);
    animation: xpLevelUpEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes xpLevelUpEntry {
    0% {
        transform: translateX(400px) scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-20px) scale(1.05) rotate(2deg);
    }
    100% {
        transform: translateX(0) scale(1) rotate(0);
        opacity: 1;
    }
}

.xp-notification.level-up::before {
    animation: xpShine 1s ease-in-out infinite;
}

.xp-notification.level-up .xp-notification-icon {
    animation: xpLevelUpSpin 1s ease-out;
}

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

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

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

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

/* Quest Complete */
.xp-notification.quest-complete .xp-notification-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.xp-notification.quest-complete {
    border-color: rgba(34, 197, 94, 0.4);
}

/* All Quests Complete */
.xp-notification.all-quests-complete {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.2);
}

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

@media (max-width: 768px) {
    .xp-notification {
        top: 80px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px;
    }
    
    .xp-notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .xp-notification-icon img {
        width: 24px;
        height: 24px;
    }
    
    .xp-notification-title h3 {
        font-size: 14px;
    }
    
    .xp-notification-title p {
        font-size: 11px;
    }
    
    .xp-notification-reward-amount {
        font-size: 24px;
    }
    
    .xp-notification-reward-label {
        font-size: 12px;
    }
    
    @keyframes xpSlideIn {
        from {
            transform: translateY(-100px) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes xpSlideOut {
        to {
            transform: translateY(-100px) scale(0.8);
            opacity: 0;
        }
    }
}
