/**
 * Najibul Balance System - Dopamine Sensory Feedback Engine
 * Ultra-performance, 60fps GPU-accelerated CSS animations
 */

:root {
    --nbs-gold-1: #fbbf24;
    --nbs-gold-2: #f59e0b;
    --nbs-gold-glow: rgba(245, 158, 11, 0.45);
    --nbs-green-1: #10b981;
    --nbs-green-glow: rgba(16, 185, 129, 0.45);
}

/* Floating Rewards Container */
#najibul-dopamine-hud {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

@media (max-width: 640px) {
    #najibul-dopamine-hud {
        top: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
        width: 90%;
        max-width: 360px;
    }
}

/* Sensory Reward Toast */
.nbs-reward-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--nbs-gold-glow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: nbsToastEnter 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               nbsToastExit 0.4s ease 3.2s forwards;
    pointer-events: auto;
    cursor: default;
    user-select: none;
}

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

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

/* Animated Golden Coin Icon */
.nbs-coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nbs-gold-1) 0%, var(--nbs-gold-2) 100%);
    box-shadow: 0 0 14px var(--nbs-gold-glow), inset 0 2px 3px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #78350f;
    font-weight: 900;
    font-size: 17px;
    animation: nbsCoinSpin 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes nbsCoinSpin {
    0% {
        transform: rotateY(0deg) scale(0.5);
    }
    50% {
        transform: rotateY(180deg) scale(1.25);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

/* Toast Text & Amount */
.nbs-toast-body {
    display: flex;
    flex-direction: column;
}

.nbs-toast-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    font-weight: 600;
}

.nbs-toast-amount {
    font-size: 15px;
    font-weight: 800;
    color: #34d399;
    text-shadow: 0 0 12px var(--nbs-green-glow);
}

/* Floating Particles (Fountain Effect) */
.nbs-floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1000000;
    font-weight: 800;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: nbsParticleFloat 1.2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes nbsParticleFloat {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--tx, 0px), var(--ty, -80px), 0) scale(1.4);
    }
}
