/* AI Insights Card */
        .ai-insights-card {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border: 1px solid var(--border-color);
            position: relative;
            padding: 24px;
            border-radius: var(--radius-xl);
            margin-bottom: 24px;
            overflow: visible;
            /* Allow growth */
            box-shadow: var(--shadow-md);
            min-height: 180px;
        }

        .ai-insights-card::before {
            content: '\f0d0';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: -20px;
            right: -20px;
            font-size: 12rem;
            opacity: 0.03;
            transform: rotate(-15deg);
            pointer-events: none;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .ai-badge {
            background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
        }

        .ai-content p {
            font-size: 0.95rem;
            color: var(--text-dark);
            line-height: 1.6;
            font-weight: 500;
            overflow-wrap: break-word;
            word-wrap: break-word;
            white-space: pre-line;
            width: 100%;
            display: block;
        }

        .ai-tip-box {
            background: white;
            padding: 12px 15px;
            border-radius: 12px;
            border-left: 4px solid #6366f1;
            margin-top: 15px;
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            align-items: flex-start;
            /* Better for multiline */
            gap: 10px;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .bal-badges {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            z-index: 2;
            position: relative;
        }

        .bal-badge {
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .bal-badge.income i {
            color: #4ade80;
        }

        .bal-badge.expense i {
            color: #fb7185;
        }

        @keyframes toastSlide {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        