
        /* --- DESIGN SYSTEM & VARIABLES --- */
        :root {
            /* Colors — Premium Palette */
            --bg-dark: #04040a;
            --bg-gradient-1: #08081a;
            --bg-gradient-2: #020208;

            --glass-bg: rgba(255, 255, 255, 0.025);
            --glass-border: rgba(255, 255, 255, 0.07);
            --glass-highlight: rgba(255, 255, 255, 0.14);

            --primary-glow: rgba(99, 102, 241, 0.45);
            --success-glow: rgba(52, 211, 153, 0.4);
            --danger-glow: rgba(251, 73, 99, 0.4);

            --accent-primary: #818cf8;
            --accent-success: #34d399;
            --accent-danger: #fb4963;
            --accent-warning: #fbbf24;

            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;

            /* Spacing & Radius */
            --card-radius: 18px;
            --btn-radius: 12px;

            /* Transitions */
            --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- GLOBAL RESETS & TYPOGRAPHY --- */
        body {
            background-color: var(--bg-dark);
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            min-height: 100vh;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .font-heading {
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
        h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
        h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
        h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); }


        /* --- ANIMATED BACKGROUND --- */
        #background-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            background:
                radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 90% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse 50% 50% at 10% 80%, rgba(52, 211, 153, 0.08) 0%, transparent 55%),
                linear-gradient(180deg, #0a0a1a 0%, #04040a 100%);
        }

        #plexus-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.5;
            mix-blend-mode: screen;
        }

        /* --- COMPONENTS: CARDS --- */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: var(--card-radius);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.04);
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        .glass-card:hover {
            transform: translateY(-3px);
            border-color: var(--glass-highlight);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
            background: rgba(255, 255, 255, 0.04);
        }

        .shine-effect {
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
            animation: shine 2.5s infinite;
            z-index: 2;
        }

        /* --- COMPONENTS: BUTTONS & INPUTS --- */
        .btn-glass {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
            border-radius: var(--btn-radius);
            padding: 0.5rem 1.2rem;
            transition: var(--transition-fast);
            font-weight: 500;
            font-family: 'Outfit', sans-serif;
        }

        .btn-glass:hover,
        .btn-glass.active {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--accent-primary);
            color: #fff;
            box-shadow: 0 0 15px var(--primary-glow);
        }

        .form-control-glass {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
            border-radius: var(--btn-radius);
            padding: 0.6rem 1rem;
        }

        .form-control-glass:focus {
            background: rgba(0, 0, 0, 0.3);
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 2px var(--primary-glow);
            color: var(--text-primary);
        }

        .form-control-glass::placeholder {
            color: var(--text-muted);
        }

        /* --- SPECIFIC CARDS --- */
        /* Highlights */
        .highlight-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            position: relative;
        }

        /* Card Variants */
        .highlight-card.card-win {
            border-bottom: 2px solid var(--accent-success);
        }

        .highlight-card.card-fast {
            border-bottom: 2px solid var(--accent-primary);
        }

        .highlight-card.card-latest {
            border-bottom: 2px solid #00d2ff;
        }

        .highlight-card.card-active {
            border-bottom: 2px solid var(--accent-warning);
        }

        .highlight-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
            pointer-events: none;
        }

        .highlight-card .metric-value {
            font-size: 1.2rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin: 0.1rem 0;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .highlight-card h6 {
            font-size: 0.75rem;
            letter-spacing: 0.05em;
        }

        .highlight-card .icon-box {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            margin-bottom: 0.25rem;
            transition: transform 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .highlight-card:hover .icon-box {
            transform: scale(1.1) rotate(5deg);
        }

        /* Icon Box Variants */
        .card-win .icon-box {
            background: rgba(0, 255, 136, 0.1);
            color: var(--accent-success);
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
        }

        .card-fast .icon-box {
            background: rgba(99, 102, 241, 0.1);
            color: var(--accent-primary);
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
        }

        .card-latest .icon-box {
            background: rgba(0, 210, 255, 0.1);
            color: #00d2ff;
            box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
        }

        .card-active .icon-box {
            background: rgba(255, 170, 0, 0.1);
            color: var(--accent-warning);
            box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
        }

        /* Signal Cards */
        .signal-card {
            border-left: 4px solid var(--glass-border);
        }

        .signal-card.status-win {
            border-left-color: var(--accent-success);
        }

        .signal-card.status-loss {
            border-left-color: var(--accent-danger);
        }

        .signal-card.status-active {
            border-left-color: var(--accent-warning);
        }

        .signal-card .card-header {
            background: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid var(--glass-border);
            padding: 1rem;
        }

        .signal-badge {
            padding: 0.35rem 0.8rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .badge-long {
            background: rgba(0, 255, 136, 0.15);
            color: var(--accent-success);
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        .badge-short {
            background: rgba(255, 0, 85, 0.15);
            color: var(--accent-danger);
            border: 1px solid rgba(255, 0, 85, 0.3);
        }

        .targets-list li {
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
        }

        .targets-list li:last-child {
            border-bottom: none;
        }

        /* --- UTILITIES --- */
        .text-gradient-primary {
            background: linear-gradient(135deg, var(--accent-primary), #a5b4fc);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .loading-spinner {
            width: 3rem;
            height: 3rem;
            border-width: 0.25em;
        }

        /* HTMX Indicators */
        .htmx-indicator {
            display: none;
            transition: opacity 0.2s ease-in;
        }

        .htmx-request .htmx-indicator,
        .htmx-request.htmx-indicator {
            display: inline-block;
        }

        /* --- FLOATING TELEGRAM BANNER --- */
        #telegram-floating-banner {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%) translateY(120%);
            z-index: 9999;
            width: 92%;
            max-width: 420px;
            background: rgba(15, 15, 25, 0.8);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(0, 136, 204, 0.4);
            border-radius: 20px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 136, 204, 0.15);
            transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
            opacity: 0;
            pointer-events: none;
        }

        #telegram-floating-banner.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            pointer-events: all;
        }

        .banner-content {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .banner-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #0088cc, #00aaff);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
        }

        .banner-text h4 {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: white;
            letter-spacing: -0.01em;
        }

        .banner-text p {
            margin: 0;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.75);
            line-height: 1.2;
        }

        .banner-btn {
            background: #0088cc;
            color: white !important;
            border: none;
            border-radius: 10px;
            padding: 8px 18px;
            font-size: 0.88rem;
            font-weight: 600;
            text-decoration: none !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
        }

        .banner-btn:hover {
            background: #0099ee;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 136, 204, 0.4);
        }

        .banner-close {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 26px;
            height: 26px;
            background: #1a1a2e;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

        .banner-close:hover {
            background: #252545;
            color: white;
            transform: scale(1.1);
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            body {
                /* Safe Zone para evitar colisão com modais/bottom bars */
                padding-bottom: 90px;
            }

            .container-fluid {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            /* Header Optimization */
            header.glass-card {
                flex-direction: row !important;
                /* Keep row direction but wrap if needed */
                flex-wrap: wrap;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 0.5rem;
                padding: 1rem !important;
            }

            header .d-flex.align-items-center img {
                width: 36px;
                height: 36px;
                margin-right: 0.75rem !important;
            }

            header h1.h3 {
                font-size: 1.25rem;
            }

            header .text-secondary.small {
                font-size: 0.75rem;
            }

            header .d-flex.gap-3 {
                width: auto;
                /* Allow it to fit naturally */
                margin-top: 0 !important;
            }

            /* Cards Optimization */
            .glass-card {
                backdrop-filter: blur(8px);
                /* Slightly reduced blur */
                -webkit-backdrop-filter: blur(8px);
                padding: 1rem !important;
                /* Reduced padding globally for cards on mobile */
            }

            /* Highlights */
            .highlight-card .metric-value {
                font-size: 1.1rem !important;
                /* Smaller metric text on mobile */
            }

            .highlight-card .icon-box {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }

            .highlight-card .card-body {
                padding: 0.5rem !important;
            }

            .highlight-card h6 {
                font-size: 0.65rem !important;
                /* Smaller title */
            }

            .highlight-card .symbol-container p {
                font-size: 0.8rem !important;
                /* Smaller symbol */
            }

            .highlight-card .small {
                font-size: 0.65rem !important;
                /* Smaller footer */
            }

            /* Search & Filters */
            .d-flex.flex-wrap.gap-3 {
                gap: 0.75rem !important;
            }

            .input-group {
                max-width: 100% !important;
                width: 100%;
            }

            .filter-btn-group {
                width: 100%;
                display: flex;
                overflow-x: auto;
                padding-bottom: 0.25rem;
                gap: 0.5rem;
                -webkit-overflow-scrolling: touch;
                /* Smooth scrolling on iOS */
                scrollbar-width: none;
                /* Firefox */
            }

            .filter-btn-group::-webkit-scrollbar {
                display: none;
                /* Chrome/Safari */
            }

            .filter-btn-group .btn {
                flex: 0 0 auto;
                padding: 0.4rem 1rem;
                font-size: 0.9rem;
            }

            /* Typography */
            h2.h4 {
                font-size: 1.1rem;
            }

            .display-4 {
                font-size: 2rem;
            }

            /* Performance & Visuals */
            #plexus-canvas {
                opacity: 0.15;
            }

            /* Signal Card Specifics */
            .signal-card .card-header {
                padding: 0.75rem !important;
            }

            .signal-card .p-3 {
                padding: 0.75rem !important;
            }

            .signal-badge {
                padding: 0.25rem 0.6rem;
                font-size: 0.7rem;
            }

            /* Analysis Popup Fix */
            .analysis-container {
                gap: 1rem !important;
            }

            .analysis-container .p-3 {
                padding: 1rem !important;
            }

            .analysis-container h4 {
                font-size: 1.15rem !important;
            }

            .analysis-container .fw-bold {
                font-size: 0.9rem !important;
            }

            .analysis-container small {
                font-size: 0.75rem !important;
            }

            #iaAnalysisModal .modal-body {
                padding: 1rem !important;
            }
        }

        /* --- MARKETING MODAL --- */
        .marketing-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .marketing-modal-backdrop.active {
            display: flex;
            opacity: 1;
        }

        .marketing-modal-card {
            background: rgba(20, 20, 30, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 3rem 2rem;
            max-width: 450px;
            width: 95%;
            text-align: center;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(20px);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .marketing-modal-backdrop.active .marketing-modal-card {
            transform: translateY(0);
        }

        .marketing-close-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            color: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            font-size: 1.25rem;
            transition: all 0.2s;
            border: none;
            background: rgba(255, 255, 255, 0.05);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }

        .marketing-close-btn:hover {
            color: white;
            background: rgba(255, 255, 255, 0.15);
            transform: rotate(90deg);
        }

        /* AD SLOTS STYLES */
        .ad-slot {
            margin: 2rem 0;
            min-height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.02);
            border: 1px dashed var(--glass-border);
            border-radius: var(--card-radius);
            position: relative;
            overflow: hidden;
            color: var(--text-muted);
            transition: var(--transition-smooth);
        }

        .ad-slot:hover {
            border-color: var(--accent-primary);
            background: rgba(99, 102, 241, 0.05);
        }

        .ad-slot::before {
            content: '{{ t.ad_sponsored }}';
            position: absolute;
            top: 5px;
            right: 15px;
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.5;
        }

        .ad-slot.banner-top {
            margin-bottom: 3rem;
        }

        .ad-slot.banner-mid {
            margin: 4rem 0;
        }
    


            .performance-tabs .btn {
                padding: 0.5rem 1.25rem;
                font-size: 0.9rem;
                border-radius: 25px !important;
                transition: all 0.3s ease;
            }

            .performance-tabs .btn:first-child {
                border-top-right-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            .performance-tabs .btn:last-child {
                border-top-left-radius: 0 !important;
                border-bottom-left-radius: 0 !important;
            }

            .performance-tabs .btn.active {
                background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
                border-color: rgba(99, 102, 241, 0.5);
                color: #fff;
                box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
            }

            .performance-tabs .btn:not(.active):hover {
                background: rgba(255, 255, 255, 0.05);
                transform: translateY(-1px);
            }

            .tab-content {
                animation: fadeIn 0.3s ease-in-out;
            }

            @keyframes fadeIn {
                from {
                    opacity: 0;
                    transform: translateY(10px);
                }

                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        


            .un-modal {
                background: #0f1016;
                border: 1px solid rgba(255, 255, 255, 0.05);
                border-radius: 28px;
                max-width: 680px;
                width: 95%;
                overflow: hidden;
                display: flex;
                position: relative;
                box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
            }

            .un-visual {
                width: 42%;
                background: linear-gradient(165deg, #1e1b4b 0%, #0d0d12 100%);
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                overflow: hidden;
                border-right: 1px solid rgba(255, 255, 255, 0.03);
            }

            .un-visual::after {
                content: '';
                position: absolute;
                inset: 0;
                background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
            }

            .un-content {
                width: 58%;
                padding: 3.5rem 2.8rem;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .un-tag {
                font-size: 0.65rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.2em;
                color: #818cf8;
                margin-bottom: 1.5rem;
            }

            .un-title {
                font-size: 1.75rem;
                font-weight: 800;
                color: #fff;
                line-height: 1.15;
                margin-bottom: 1.25rem;
                letter-spacing: -0.03em;
            }

            .un-desc {
                font-size: 0.9rem;
                color: rgba(255, 255, 255, 0.45);
                line-height: 1.6;
                margin-bottom: 2.5rem;
            }

            .un-btn {
                background: #fff;
                color: #000;
                font-weight: 700;
                padding: 1rem 1.8rem;
                border-radius: 14px;
                text-decoration: none !important;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.75rem;
                transition: transform 0.2s, background 0.2s;
                border: none;
            }

            .un-btn:hover {
                background: #e5e7eb;
                transform: translateY(-2px);
                color: #000;
            }

            @media (max-width: 768px) {
                .un-modal {
                    flex-direction: column;
                    max-width: 380px;
                }

                .un-visual {
                    width: 100%;
                    height: 130px;
                    border-right: none;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
                }

                .un-content {
                    width: 100%;
                    padding: 2.5rem 2rem;
                }
            }
        

