/* ============================================
   ANIMACOES - Sistema Financeiro Elite v10.0
   ============================================ */

/* ============================================
   🔥 BUG FIX #1: ELITE TRANSITION OVERLAY
   Animação "CONECTANDO" entre splash e login
   ============================================ */

#elite-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-critical);
    background: radial-gradient(ellipse at center,
        rgba(8, 8, 20, 0.98) 0%,
        rgba(0, 0, 0, 0.99) 100%
    );
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.45, 0, 0.15, 1);
    pointer-events: none;
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#elite-transition-overlay.active {
    opacity: 1;
    backdrop-filter: blur(30px) saturate(120%);
    pointer-events: all;
}

#elite-transition-overlay.fade-out {
    opacity: 0;
    backdrop-filter: blur(0px);
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#elite-transition-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#elite-transition-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Texto "CONECTANDO" */
.elite-connecting-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.8),
                 0 0 60px rgba(139, 92, 246, 0.5);
    animation: elite-connecting-pulse 2s ease-in-out infinite;
}

@keyframes elite-connecting-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Spinner de loading */
.elite-transition-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: rgba(139, 92, 246, 1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: elite-spinner-spin 1s linear infinite;
}

@keyframes elite-spinner-spin {
    to { transform: rotate(360deg); }
}

/* Barra de carregamento */
.elite-connecting-bar-container {
    width: 400px;
    max-width: 90vw;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.elite-connecting-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.8) 0%,
        rgba(168, 85, 247, 1) 50%,
        rgba(139, 92, 246, 0.8) 100%
    );
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    animation: elite-bar-shimmer 1.5s linear infinite;
}

@keyframes elite-bar-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Status text */
.elite-connecting-status {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    animation: elite-status-fade 2s ease-in-out infinite;
}

@keyframes elite-status-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   FIM DO BUG FIX #1
   ============================================ */

        /* ============================================
           ANIMAÇÕES ELEGANT BACKGROUND - DESATIVADAS
           MOTIVO: Background desativado para melhorar performance
           ============================================ */
        /*
        @keyframes elegant-gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        @keyframes elegant-orb-float-1 {
            0%, 100% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            50% {
                transform: translate(100px, 100px) scale(1.1);
                opacity: 0.8;
            }
        }

        @keyframes elegant-orb-float-2 {
            0%, 100% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            50% {
                transform: translate(-80px, -80px) scale(1.15);
                opacity: 0.7;
            }
        }

        @keyframes elegant-orb-float-3 {
            0%, 100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
            33% {
                transform: translate(-45%, -48%) scale(1.05);
                opacity: 0.9;
            }
            66% {
                transform: translate(-55%, -52%) scale(0.95);
                opacity: 0.85;
            }
        }
        */
    


        /* ========================================
           ULTRA SOPHISTICATED TRANSITION SYSTEM
           ======================================== */

        /* Main Overlay Container */
        .ultra-transition-overlay {
            position: fixed;
            inset: 0;
            z-index: 999999;
            background: radial-gradient(ellipse at center,
                rgba(8, 8, 20, 0.98) 0%,
                rgba(0, 0, 0, 0.99) 100%
            );
            opacity: 0;
            transition: opacity 1s cubic-bezier(0.45, 0, 0.15, 1);
            pointer-events: none;
            backdrop-filter: blur(0px);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .ultra-transition-overlay.active {
            opacity: 1;
            backdrop-filter: blur(30px) saturate(120%);
            pointer-events: all;
        }

        /* ✨ Fade-out suave ao finalizar */
        .ultra-transition-overlay.fade-out {
            opacity: 0;
            backdrop-filter: blur(0px);
            transform: scale(1.05);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Geometric Morph Particles - Elegant Animation */
        .ultra-geometric-container {
            position: absolute;
            inset: 0;
            overflow: hidden;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .ultra-transition-overlay.active .ultra-geometric-container {
            opacity: 1;
        }

        .ultra-geometric-particle {
            position: absolute;
            width: 80px;
            height: 80px;
            opacity: 0;
        }

        .ultra-geometric-particle::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.15),
                rgba(236, 72, 153, 0.1)
            );
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
        }

        /* Animação de entrada suave e transformação */
        .ultra-geometric-particle.animate {
            animation: geometric-morph 3.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes geometric-morph {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
            }
            15% {
                opacity: 0.8;
            }
            40% {
                opacity: 0.6;
                transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
            }
            70% {
                opacity: 0.3;
                transform: translate(-50%, -50%) scale(1.8) rotate(360deg);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(2.5) rotate(540deg);
            }
        }

        /* Variações de forma para cada partícula */
        .ultra-geometric-particle.square::before {
            border-radius: 12px;
        }

        .ultra-geometric-particle.hexagon::before {
            border-radius: 20px;
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }

        .ultra-geometric-particle.diamond::before {
            border-radius: 8px;
            transform: rotate(45deg);
        }

        .ultra-geometric-particle.circle::before {
            border-radius: 50%;
        }

        /* Particle Dissolve Canvas */
        .ultra-particles-canvas {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .ultra-transition-overlay.active .ultra-particles-canvas {
            opacity: 1;
        }

        /* Content Container with Chromatic Aberration */
        .ultra-content-wrapper {
            position: relative;
            z-index: 10;
            opacity: 0;
            transform: scale(0.85) translateY(60px);
            filter: blur(20px);
            transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ultra-content-wrapper.visible {
            opacity: 1;
            transform: scale(1) translateY(0);
            filter: blur(0px);
        }

        /* Avatar/Icon with Depth Layers - Elegant Entrance */
        .ultra-avatar-container {
            position: relative;
            width: 220px;
            height: 220px;
            margin: 0 auto 3rem;
            opacity: 0;
            transform: scale(0.4);
            filter: blur(20px) brightness(0.5);
            transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ultra-avatar-container.visible {
            opacity: 1;
            transform: scale(1);
            filter: blur(0px) brightness(1);
        }

        /* Avatar Core */
        .ultra-avatar-core {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.25) 0%,
                rgba(99, 102, 241, 0.15) 50%,
                rgba(236, 72, 153, 0.25) 100%
            );
            backdrop-filter: blur(20px) saturate(180%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            color: white;
            box-shadow:
                0 30px 90px rgba(139, 92, 246, 0.5),
                inset 0 2px 20px rgba(255, 255, 255, 0.15),
                inset 0 -2px 20px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.15);
            position: relative;
            z-index: 3;
        }

        /* Rotating Rings - 3 Layers */
        .ultra-avatar-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            border-radius: 50%;
            border: 2px solid rgba(139, 92, 246, 0.3);
            transform-origin: center;
            opacity: 0;
        }

        .ultra-avatar-ring-1 {
            width: 250px;
            height: 250px;
            margin-left: -125px;
            margin-top: -125px;
            animation: ultra-ring-rotate-1 8s linear infinite;
        }

        .ultra-avatar-ring-2 {
            width: 280px;
            height: 280px;
            margin-left: -140px;
            margin-top: -140px;
            animation: ultra-ring-rotate-2 12s linear infinite reverse;
        }

        .ultra-avatar-ring-3 {
            width: 310px;
            height: 310px;
            margin-left: -155px;
            margin-top: -155px;
            animation: ultra-ring-rotate-3 15s linear infinite;
        }

        .ultra-avatar-container.visible .ultra-avatar-ring {
            opacity: 1;
        }

        @keyframes ultra-ring-rotate-1 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes ultra-ring-rotate-2 {
            from { transform: rotate(0deg); }
            to { transform: rotate(-360deg); }
        }

        @keyframes ultra-ring-rotate-3 {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Glowing Pulse Effect */
        .ultra-avatar-glow {
            position: absolute;
            inset: -40px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
            filter: blur(40px);
            opacity: 0;
            animation: ultra-glow-pulse 3s ease-in-out infinite;
            z-index: 1;
        }

        .ultra-avatar-container.visible .ultra-avatar-glow {
            opacity: 1;
        }

        @keyframes ultra-glow-pulse {
            0%, 100% {
                transform: scale(0.9);
                opacity: 0.6;
            }
            50% {
                transform: scale(1.15);
                opacity: 0.9;
            }
        }

        /* Profile Name with Chromatic Aberration Effect */
        .ultra-profile-name {
            font-family: 'Orbitron', sans-serif;
            font-size: clamp(2.5rem, 6vw, 4rem);
            font-weight: 900;
            letter-spacing: 8px;
            text-align: center;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(40px);
            transition: all 1.1s cubic-bezier(0.45, 0, 0.15, 1);
            position: relative;
            color: transparent;
            background: linear-gradient(135deg, #00d9ff, #a78bfa, #fb7185);
            -webkit-background-clip: text;
            background-clip: text;
            filter: blur(8px);
        }

        .ultra-profile-name.visible {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0px);
        }

        /* Chromatic Aberration Shadow Layers */
        .ultra-profile-name::before,
        .ultra-profile-name::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .ultra-profile-name.visible::before {
            color: #00d9ff;
            transform: translate(-2px, -2px);
            opacity: 0.3;
            mix-blend-mode: screen;
        }

        .ultra-profile-name.visible::after {
            color: #fb7185;
            transform: translate(2px, 2px);
            opacity: 0.3;
            mix-blend-mode: screen;
        }

        /* Profile Description */
        .ultra-profile-desc {
            font-family: 'Inter', sans-serif;
            font-size: clamp(1rem, 2.5vw, 1.4rem);
            font-weight: 500;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.65);
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
            transition: all 1s cubic-bezier(0.45, 0, 0.15, 1);
            filter: blur(5px);
        }

        .ultra-profile-desc.visible {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0px);
        }

        /* Elite Loading Bar */
        .ultra-loading-container {
            width: 400px;
            max-width: 90vw;
            margin: 3rem auto 0;
            opacity: 0;
            transition: opacity 0.7s ease-out;
        }

        .ultra-loading-container.visible {
            opacity: 1;
        }

        .ultra-loading-track {
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
            position: relative;
            overflow: hidden;
            box-shadow:
                0 0 10px rgba(139, 92, 246, 0.2),
                inset 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .ultra-loading-bar {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg,
                #00d9ff 0%,
                #a78bfa 35%,
                #fb7185 70%,
                #00d9ff 100%
            );
            background-size: 200% 100%;
            transform: translateX(-100%);
            animation:
                ultra-loading-fill 2.2s cubic-bezier(0.45, 0, 0.15, 1) forwards,
                ultra-loading-shimmer 1.5s linear infinite;
            box-shadow:
                0 0 20px rgba(139, 92, 246, 0.6),
                0 0 40px rgba(139, 92, 246, 0.3);
        }

        @keyframes ultra-loading-fill {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(0%);
            }
        }

        @keyframes ultra-loading-shimmer {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        /* Loading Percentage Text */
        .ultra-loading-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.5);
            text-align: center;
            margin-top: 1rem;
        }

        /* Fade Out Page Content */
        body.ultra-transition-active {
            overflow: hidden;
        }

        body.ultra-transition-active > *:not(.ultra-transition-overlay) {
            opacity: 0;
            /* transform: scale(1.08); /* BUG FIX: Removido para não quebrar o contexto de posicionamento de elementos 'fixed' */
            /* filter: blur(30px);     /* BUG FIX: Removido para não quebrar o contexto de posicionamento de elementos 'fixed' */
            transition: all 1s cubic-bezier(0.45, 0, 0.15, 1);
        }

        /* Glitch Effect (Sutil) */
        .ultra-glitch {
            animation: ultra-glitch-anim 0.3s ease-in-out;
        }

        @keyframes ultra-glitch-anim {
            0%, 100% {
                transform: translate(0);
            }
            20% {
                transform: translate(-2px, 2px);
            }
            40% {
                transform: translate(2px, -2px);
            }
            60% {
                transform: translate(-2px, -2px);
            }
            80% {
                transform: translate(2px, 2px);
            }
        }
    


            /* ============================================
               🎨 ELITE BANNER STYLES & ANIMATIONS 🎨
               ============================================ */

            .elite-banner-title {
                font-size: clamp(2rem, 5vw, 3.5rem);
                font-weight: 900;
                text-align: center;
                margin-bottom: 1.5rem;
                letter-spacing: 0.1em;
                position: relative;
                z-index: 10;
            }

            .elite-letter {
                display: inline-block;
                background: linear-gradient(135deg, #ffffff, #e9d5ff, #ffffff);
                background-size: 200% 200%;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
                animation: elite-letter-float 3s ease-in-out infinite;
                animation-delay: var(--delay);
                transition: all 0.3s ease;
            }

            .elite-letter:hover {
                transform: translateY(-10px) scale(1.2) rotateZ(5deg);
                filter: drop-shadow(0 0 30px rgba(139, 92, 246, 1));
            }

            .elite-banner-capsule {
                display: inline-flex;
                align-items: center;
                gap: 1rem;
                background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 246, 0.1));
                padding: 0.75rem 2rem;
                border-radius: 50px;
                border: 1px solid rgba(139, 92, 246, 0.3);
                box-shadow:
                    0 0 30px rgba(139, 92, 246, 0.2),
                    inset 0 0 20px rgba(139, 92, 246, 0.1);
                position: relative;
                z-index: 10;
            }

            /* 🌌 LEGENDARY COSMIC BANNER ANIMATIONS 🌌 */

            @keyframes cosmic-border-flow {
                0%, 100% {
                    background-position: 0% 50%;
                }
                25% {
                    background-position: 100% 50%;
                }
                50% {
                    background-position: 100% 100%;
                }
                75% {
                    background-position: 0% 100%;
                }
            }

            @keyframes cosmic-nebula-drift {
                0%, 100% {
                    transform: translate(0, 0) rotate(0deg) scale(1);
                    opacity: 1;
                }
                25% {
                    transform: translate(30px, -20px) rotate(5deg) scale(1.05);
                    opacity: 0.9;
                }
                50% {
                    transform: translate(-20px, 30px) rotate(-3deg) scale(1.08);
                    opacity: 0.85;
                }
                75% {
                    transform: translate(-30px, -10px) rotate(2deg) scale(1.03);
                    opacity: 0.92;
                }
            }

            @keyframes cosmic-orbit-rotate {
                from {
                    transform: rotate(0deg);
                }
                to {
                    transform: rotate(360deg);
                }
            }

            @keyframes elite-letter-float {
                0%, 100% {
                    transform: translateY(0);
                }
                50% {
                    transform: translateY(-8px);
                }
            }

            @keyframes elite-diamond-pulse {
                0%, 100% {
                    transform: rotate(45deg) scale(1);
                    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
                }
                50% {
                    transform: rotate(45deg) scale(1.2);
                    box-shadow: 0 0 25px rgba(139, 92, 246, 1);
                }
            }

            @keyframes elite-text-shimmer {
                0%, 100% {
                    background-position: 0% 50%;
                }
                50% {
                    background-position: 100% 50%;
                }
            }

            /* Old Banner Animations (kept for compatibility) */
            @keyframes elite-banner-scanline {
                0% { transform: translateY(0); }
                100% { transform: translateY(100%); }
            }

            @keyframes elite-banner-pulse {
                0%, 100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.5); }
                50% { box-shadow: 0 0 50px rgba(34, 211, 238, 0.8); }
            }

            /* Quote Card Hover Effects */
            .elite-quote-card:hover {
                transform: translateY(-8px) scale(1.02);
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px currentColor !important;
            }

            .elite-quote-card:hover .elite-quote-glow {
                opacity: 1;
            }

            /* Responsive */
            @media (max-width: 768px) {
                #elite-banner-balance {
                    font-size: 2rem !important;
                }
                #elite-banner-username {
                    font-size: 1.25rem !important;
                }
            }

        /* ============================================
           💰 ELITE BALANCE CARD - NÍVEL LENDÁRIO 💰
           ============================================ */

        .elite-balance-card {
            position: relative;
            background: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(30, 30, 60, 0.95) 100%);
            backdrop-filter: blur(25px);
            border-radius: 24px;
            padding: 2.5rem;
            overflow: hidden;
            box-shadow:
                0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(34, 211, 238, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .elite-balance-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.4;
        }

        .elite-balance-border {
            position: absolute;
            inset: -2px;
            border-radius: 24px;
            padding: 2px;
            background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899, #22d3ee);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.5;
            animation: elite-border-rotate 8s linear infinite;
            background-size: 300% 300%;
        }

        @keyframes elite-border-rotate {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .elite-balance-content {
            position: relative;
            z-index: 10;
        }

        .elite-balance-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .elite-balance-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: linear-gradient(135deg, #22d3ee, #8b5cf6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: white;
            box-shadow:
                0 10px 30px rgba(34, 211, 238, 0.4),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
            animation: elite-icon-pulse 3s ease-in-out infinite;
        }

        @keyframes elite-icon-pulse {
            0%, 100% {
                box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4), inset 0 -2px 10px rgba(0, 0, 0, 0.2);
            }
            50% {
                box-shadow: 0 15px 40px rgba(34, 211, 238, 0.6), inset 0 -2px 10px rgba(0, 0, 0, 0.2);
            }
        }

        .elite-balance-title {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
        }

        .elite-balance-input-section {
            margin-bottom: 2rem;
        }

        .elite-balance-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(34, 211, 238, 0.9);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.75rem;
            font-family: 'Orbitron', sans-serif;
        }

        .elite-balance-label i {
            font-size: 1rem;
        }

        .elite-balance-input-wrapper {
            position: relative;
            display: flex;
            gap: 1rem;
        }

        .elite-input-glow {
            position: absolute;
            inset: -2px;
            border-radius: 12px;
            background: linear-gradient(135deg, #22d3ee, #8b5cf6);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            filter: blur(8px);
        }

        .elite-balance-input:focus ~ .elite-input-glow {
            opacity: 0.5;
        }

        .elite-balance-input {
            flex: 1;
            background: rgba(20, 20, 40, 0.8);
            border: 2px solid rgba(34, 211, 238, 0.3);
            border-radius: 12px;
            padding: 1rem 1.5rem;
            font-size: 1.25rem;
            font-weight: 600;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            transition: all 0.3s ease;
        }

        .elite-balance-input::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }

        .elite-balance-input:focus {
            outline: none;
            border-color: #22d3ee;
            box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
            background: rgba(20, 20, 40, 1);
        }

        .elite-balance-btn {
            position: relative;
            padding: 1rem 2rem;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            font-family: 'Orbitron', sans-serif;
            cursor: pointer;
            overflow: hidden;
            transition: transform 0.2s ease;
        }

        .elite-btn-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899);
            transition: transform 0.3s ease;
        }

        .elite-balance-btn:hover .elite-btn-bg {
            transform: scale(1.05);
        }

        .elite-balance-btn:active {
            transform: scale(0.98);
        }

        .elite-btn-content {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
        }

        .elite-balance-display-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .elite-balance-card-display {
            position: relative;
            background: rgba(20, 20, 40, 0.6);
            border: 2px solid rgba(34, 211, 238, 0.2);
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .elite-balance-card-display:hover {
            transform: translateY(-5px);
            border-color: rgba(34, 211, 238, 0.5);
            box-shadow: 0 10px 40px rgba(34, 211, 238, 0.2);
        }

        .elite-display-pulse {
            position: absolute;
            inset: 0;
            border-radius: 16px;
            background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
            opacity: 0;
            animation: elite-pulse 3s ease-in-out infinite;
        }

        @keyframes elite-pulse {
            0%, 100% { opacity: 0; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1); }
        }

        .elite-display-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }

        .elite-balance-card-display.usd .elite-display-icon {
            background: linear-gradient(135deg, #22d3ee, #06b6d4);
            color: white;
            box-shadow: 0 5px 20px rgba(34, 211, 238, 0.4);
        }

        .elite-balance-card-display.brl .elite-display-icon {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
            box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
        }

        .elite-balance-card-display.btc .elite-display-icon {
            background: linear-gradient(135deg, #ec4899, #db2777);
            color: white;
            box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
        }

        .elite-display-info {
            flex: 1;
            z-index: 1;
        }

        .elite-display-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.25rem;
        }

        .elite-display-value {
            font-size: 1.5rem;
            font-weight: 800;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
        }

        @media (max-width: 768px) {
            .elite-balance-card {
                padding: 1.5rem;
            }

            .elite-balance-header {
                flex-direction: column;
                text-align: center;
            }

            .elite-balance-title {
                font-size: 1.5rem;
            }

            .elite-balance-input-wrapper {
                flex-direction: column;
            }

            .elite-balance-display-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ============================================
           ✨ RASTRO DE MOUSE ESTRELA CADENTE ✨
           ============================================ */

        .cursor-trail {
            position: fixed;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            mix-blend-mode: screen;
            animation: cursor-fade 0.8s forwards;
        }

        @keyframes cursor-fade {
            0% {
                transform: scale(1);
                opacity: 1;
                box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
            }
            100% {
                transform: scale(0);
                opacity: 0;
                box-shadow: 0 0 0 currentColor;
            }
        }

        /* ============================================
           🪟 GLASSMORPHISM MODAIS ✨
           ============================================ */

        .modal-glassmorphism {
            background: rgba(20, 20, 40, 0.85) !important;
            backdrop-filter: blur(20px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(34, 211, 238, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        /* Elite Modal Container with Smoke Lasers */
        .elite-modal-container {
            position: relative;
            overflow: visible;
        }

        .elite-modal-container::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 24px;
            padding: 2px;
            background:
                linear-gradient(90deg,
                    transparent 0%,
                    transparent 15%,
                    rgba(34, 211, 238, 0.6) 35%,
                    rgba(34, 211, 238, 0.6) 37%,
                    transparent 39%,
                    transparent 100%
                ),
                linear-gradient(180deg,
                    transparent 0%,
                    transparent 25%,
                    rgba(139, 92, 246, 0.6) 45%,
                    rgba(139, 92, 246, 0.6) 47%,
                    transparent 49%,
                    transparent 100%
                );
            background-size: 400% 100%, 100% 400%;
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.12;
            filter: blur(2px);
            animation: elite-smoke-laser-sweep 10s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }

        .elite-modal-container::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 24px;
            background-image:
                radial-gradient(ellipse at 20% 30%, rgba(34, 211, 238, 0.3) 0%, transparent 10%),
                radial-gradient(ellipse at 80% 70%, rgba(236, 72, 153, 0.3) 0%, transparent 12%),
                radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 8%);
            opacity: 0.03;
            filter: blur(12px);
            animation: elite-smoke-drift 15s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }

        .elite-modal-container > * {
            position: relative;
            z-index: 1;
        }

        /* Elite Tab Buttons */
        .tab-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
        }

        .elite-tab-active {
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.2)) !important;
            color: #22d3ee !important;
            box-shadow:
                0 4px 15px rgba(34, 211, 238, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .elite-tab-active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #22d3ee, #8b5cf6);
            border-radius: 2px;
        }

        /* ============================================
           🎨 BOTÕES 3D COM ILUMINAÇÃO ✨
           ============================================ */

        .btn-3d-elite {
            position: relative;
            transform-style: preserve-3d;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow:
                0 4px 15px rgba(0, 0, 0, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 -2px 5px rgba(0, 0, 0, 0.3),
                inset 0 2px 2px rgba(255, 255, 255, 0.1);
        }

        .btn-3d-elite::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .btn-3d-elite:hover {
            transform: translateY(-2px);
            box-shadow:
                0 8px 25px rgba(34, 211, 238, 0.4),
                0 4px 10px rgba(34, 211, 238, 0.2),
                inset 0 -2px 5px rgba(0, 0, 0, 0.3),
                inset 0 2px 2px rgba(255, 255, 255, 0.2),
                0 0 40px rgba(34, 211, 238, 0.3);
        }

        .btn-3d-elite:hover::before {
            opacity: 1;
        }

        .btn-3d-elite:active {
            transform: translateY(0px);
            box-shadow:
                0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 2px 5px rgba(0, 0, 0, 0.4);
        }

        /* ============================================
           📜 SCROLLBAR CUSTOMIZADA ELITE ✨
           ============================================ */

        /* Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(34, 211, 238, 0.5) rgba(20, 20, 40, 0.3);
        }

        /* Chrome, Edge, Safari */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(20, 20, 40, 0.3);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #22d3ee, #8b5cf6);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #06b6d4, #7c3aed);
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
        }

        ::-webkit-scrollbar-thumb:active {
            background: linear-gradient(135deg, #0891b2, #6d28d9);
        }

        /* Scrollbar para elementos escuros */
        .dark-scrollbar::-webkit-scrollbar-track {
            background: rgba(10, 10, 25, 0.5);
        }
        


            @keyframes elite-insights-breathe {
                0%, 100% {
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 211, 238, 0.2);
                }
                50% {
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(34, 211, 238, 0.4);
                }
            }

            @keyframes elite-insights-border {
                0%, 100% { background-position: 0% 50%; }
                50% { background-position: 100% 50%; }
            }

            @keyframes elite-insights-pulse {
                0%, 100% {
                    transform: scale(1);
                    box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
                }
                50% {
                    transform: scale(1.05);
                    box-shadow: 0 0 50px rgba(34, 211, 238, 0.8);
                }
            }

            @keyframes elite-insights-blink {
                0%, 100% { opacity: 1; }
                50% { opacity: 0.3; }
            }

            .insight-item {
                background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
                border-left: 4px solid;
                padding: 1rem;
                border-radius: 8px;
                margin-bottom: 0.75rem;
                font-family: 'Inter', sans-serif;
                transition: all 0.3s ease;
            }

            .insight-item:hover {
                transform: translateX(5px);
                box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
            }

            .insight-alert { border-color: #ef4444; }
            .insight-success { border-color: #22c55e; }
            .insight-warning { border-color: #f59e0b; }
            .insight-info { border-color: #3b82f6; }

            /* 🎬 AI COACH TABS 🎬 */
            .coach-tab-btn.active {
                background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.2)) !important;
                border-color: rgba(34, 211, 238, 0.5) !important;
                color: #22d3ee !important;
                box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
            }

            .coach-tab-btn:not(.active):hover {
                border-color: rgba(150, 150, 170, 0.5);
                color: rgba(200, 200, 220, 0.9);
                transform: translateY(-2px);
            }

            /* 🌈 NEON PROGRESS BARS 🌈 */
            .budget-bar-container {
                background: rgba(20, 20, 40, 0.6);
                border: 1px solid rgba(100, 100, 120, 0.3);
                border-radius: 15px;
                padding: 1.5rem;
                margin-bottom: 1rem;
                transition: all 0.4s ease;
            }

            .budget-bar-container:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 30px rgba(34, 211, 238, 0.2);
                border-color: rgba(34, 211, 238, 0.5);
            }

            .budget-progress-track {
                width: 100%;
                height: 24px;
                background: rgba(40, 40, 60, 0.8);
                border-radius: 12px;
                overflow: hidden;
                position: relative;
                box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
            }

            .budget-progress-fill {
                height: 100%;
                border-radius: 12px;
                transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease;
                position: relative;
                overflow: hidden;
            }

            /* NEON GLOW - Healthy (0-70%) */
            .budget-fill-healthy {
                background: linear-gradient(90deg, #22d3ee, #3b82f6);
                box-shadow:
                    0 0 20px rgba(34, 211, 238, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }

            /* NEON GLOW - Warning (70-90%) */
            .budget-fill-warning {
                background: linear-gradient(90deg, #f59e0b, #f97316);
                box-shadow:
                    0 0 20px rgba(245, 158, 11, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }

            /* NEON GLOW - Critical (90-100%) */
            .budget-fill-critical {
                background: linear-gradient(90deg, #ef4444, #dc2626);
                box-shadow:
                    0 0 20px rgba(239, 68, 68, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
                animation: budget-pulse-critical 2s ease-in-out infinite;
            }

            /* NEON GLOW - Over Budget (>100%) */
            .budget-fill-over {
                background: linear-gradient(90deg, #dc2626, #991b1b);
                box-shadow:
                    0 0 30px rgba(220, 38, 38, 0.8),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
                animation: budget-pulse-over 1s ease-in-out infinite;
            }

            @keyframes budget-pulse-critical {
                0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
                50% { box-shadow: 0 0 40px rgba(239, 68, 68, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
            }

            @keyframes budget-pulse-over {
                0%, 100% { box-shadow: 0 0 30px rgba(220, 38, 38, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
                50% { box-shadow: 0 0 50px rgba(220, 38, 38, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
            }

            /* Shimmer effect */
            .budget-progress-fill::after {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
                animation: budget-shimmer 3s infinite;
            }

            @keyframes budget-shimmer {
                0% { left: -100%; }
                100% { left: 200%; }
            }
        


        /* Elite History Animations */
        @keyframes elite-history-scanline {
            0% { transform: translateY(0); }
            100% { transform: translateY(100%); }
        }

        /* Elite Select Hover Effect */
        #month-select:hover {
            border-color: rgba(34, 211, 238, 0.6);
            box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
            transform: translateY(-2px);
        }

        #month-select:focus {
            outline: none;
            border-color: rgba(34, 211, 238, 0.8);
            box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
        }

        /* Elite Select Options */
        #month-select option {
            background: rgb(20, 20, 40);
            color: rgb(34, 211, 238);
            font-family: 'Orbitron', sans-serif;
            padding: 0.5rem;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            #history-screen h1 {
                font-size: 1.75rem !important;
                letter-spacing: 1px !important;
            }
        }
    


            @keyframes elite-modal-entrance {
                from {
                    opacity: 0;
                    transform: scale(0.9) translateY(30px);
                }
                to {
                    opacity: 1;
                    transform: scale(1) translateY(0);
                }
            }

            .elite-goal-field-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            }

            /* Mobile Responsive */
            @media (max-width: 768px) {
                #goal-form > div:nth-child(3) {
                    grid-template-columns: 1fr !important;
                }
            }
        


        @keyframes scanAnimation {
            0%, 100% { top: 0; opacity: 0.8; }
            50% { top: 100%; opacity: 1; }
        }

        #receipt-use-camera:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(139, 92, 246, 0.3));
        }

        #receipt-select-file:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
        }

        #camera-capture:hover {
            transform: scale(1.1);
            box-shadow: 0 0 50px rgba(34, 211, 238, 1);
        }

        #camera-close:hover {
            transform: scale(1.1);
            box-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
        }
    