        /* Base Variables */
        :root {
            /* Color Palette */
            --dark-bg: #131722;
            --darker-bg: #0c0e17;
            --card-bg: #1e222d;
            --border-color: #2a2e39;
            /* Primary colors */
            --primary: #58e021;
            --primary-hover: #74f23c;
            --primary-gradient: linear-gradient(45deg, #58e021, #2fae0e);
            /* Status colors */
            --success: #58e021;
            --success-hover: #00d2ad;
            --warning: #ffba00;
            --warning-hover: #ffc933;
            --danger: #ff5252;
            --danger-hover: #ff7575;
            --info: #5965f9;
            --info-hover: #7a84fa;
            /* Text colors */
            --text-light: #f5f5f5;
            --text-muted: #9aa0b9;
            --text-dim: #656d85;
            /* Status indicators */
            --up-color: #58e021;
            --down-color: #a259ff;
            --neutral-color: #9aa0b9;
            /* Fonts */
            --font-heading: 'Teko', sans-serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .ace-logo {
            height: 80px; /* Match the font size of the brand text */
            width: auto;
            margin-right: 8px; /* Smaller margin */
            vertical-align: middle; /* Ensure proper alignment */
        }

        .ace-brand {
            display: flex;
            align-items: center;
        }

        /* Base styles */
        body {
            font-family: var(--font-body);
            background-color: var(--dark-bg);
            color: var(--text-light);
            line-height: 1.6;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* Layout containers */
        .ace-container {
            max-width: 1320px;
            padding: 0 20px;
            margin: 0 auto;
        }

        /* Header styling */
        .ace-header {
            background-color: var(--darker-bg);
            padding: 20px 0;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
        }

        .ace-brand {
            font-size: 28px;
            font-family: var(--font-heading);
            font-weight: 400;
            color: var(--text-light);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            letter-spacing: 1px;
        }

            .ace-brand span {
                background: var(--primary-gradient);
                -webkit-background-clip: text;
                background-clip: text;
                color: transparent;
                margin-right: 5px;
            }

        /* Navigation */
        .ace-nav {
            display: flex;
            align-items: center;
        }

        .ace-nav-item {
            padding: 10px 15px;
            margin: 0 5px;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

            .ace-nav-item:hover, .ace-nav-item.active {
                color: var(--primary);
                background-color: rgba(88, 224, 33, 0.1);
            }

            .ace-nav-item.active {
                font-weight: 600;
            }

            .ace-nav-item i {
                margin-right: 5px;
            }

        /* Enhanced user profile dropdown styling */
        .user-profile {
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            background-color: var(--card-bg);
            border: 1px solid transparent;
            display: flex;
            align-items: center;
        }

            .user-profile:hover {
                background-color: rgba(88, 224, 33, 0.1);
                border-color: var(--primary);
            }

            /* Make the entire dropdown clickable */
            .user-profile.dropdown-toggle::after {
                display: none; /* Hide the default caret */
            }

            .user-profile .user-avatar {
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background-color: var(--primary);
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                color: var(--text-light);
                margin-right: 10px;
            }

            .user-profile .user-name {
                font-weight: 500;
                max-width: 150px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .user-profile .fa-chevron-down {
                font-size: 12px;
                color: var(--text-muted);
            }

        /* Improved dropdown menu appearance */
        .dropdown-menu {
            padding: 8px 0;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .dropdown-item {
            padding: 8px 16px;
            transition: all 0.2s ease;
        }

            .dropdown-item:hover {
                background-color: rgba(88, 224, 33, 0.1);
            }

            .dropdown-item i {
                width: 20px;
                text-align: center;
            }

            /* Special styling for logout button */
            .dropdown-item#logoutButton {
                color: var(--danger);
            }

                .dropdown-item#logoutButton:hover {
                    background-color: rgba(255, 82, 82, 0.1);
                }

        /* Card components */
        .ace-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

            .ace-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            }

        .section-title {
            font-size: 20px;
            font-family: var(--font-heading);
            font-weight: 400;
            color: var(--primary);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            letter-spacing: 1px;
        }

        /* Buttons */
        .ace-btn {
            padding: 12px 20px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

            .ace-btn i {
                margin-right: 8px;
            }

        .ace-btn-primary {
            background: var(--primary-gradient);
            color: #fff;
        }

            .ace-btn-primary:hover {
                background: linear-gradient(45deg, #74f23c, #46c715);
                color: #fff;
                transform: translateY(-2px);
            }

        .ace-btn-outline {
            background: transparent;
            color: var(--text-light);
            border: 1px solid var(--border-color);
        }

            .ace-btn-outline:hover {
                background: rgba(255, 255, 255, 0.05);
                border-color: var(--primary);
                color: var(--primary);
                transform: translateY(-2px);
            }

        .ace-btn-danger {
            background: var(--danger);
            color: #fff;
        }

            .ace-btn-danger:hover {
                background: var(--danger-hover);
                color: #fff;
                transform: translateY(-2px);
            }

        .ace-btn-sm {
            padding: 8px 15px;
            font-size: 14px;
        }

        /* Alert messages */
        .ace-alert {
            background-color: rgba(88, 224, 33, 0.1);
            border-left: 4px solid var(--primary);
            padding: 15px 20px;
            margin-bottom: 20px;
            border-radius: 6px;
        }

        .ace-alert-warning {
            background-color: rgba(255, 186, 0, 0.1);
            border-left: 4px solid var(--warning);
        }

        .ace-alert-success {
            background-color: rgba(88, 224, 33, 0.1);
            border-left: 4px solid var(--success);
        }

        .ace-alert-danger {
            background-color: rgba(255, 82, 82, 0.1);
            border-left: 4px solid var(--danger);
        }

        /* Form elements */
        .ace-form-control {
            background-color: var(--darker-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-light);
            padding: 12px 15px;
            transition: all 0.3s ease;
            width: 100%;
        }

            .ace-form-control:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(88, 224, 33, 0.2);
                background-color: rgba(88, 224, 33, 0.05);
            }

        .ace-form-label {
            color: var(--text-muted);
            margin-bottom: 8px;
            font-weight: 500;
            font-size: 14px;
        }

        .ace-form-select {
            background-color: var(--darker-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-light);
            padding: 12px 15px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239aa0b9' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            padding-right: 35px;
            width: 100%;
        }

        /* Range slider */
        .ace-range {
            -webkit-appearance: none;
            width: 100%;
            background: transparent;
            margin: 10px 0;
        }

            .ace-range::-webkit-slider-runnable-track {
                width: 100%;
                height: 6px;
                background: var(--darker-bg);
                border-radius: 3px;
                border: 1px solid var(--border-color);
            }

            .ace-range::-webkit-slider-thumb {
                -webkit-appearance: none;
                height: 20px;
                width: 20px;
                background: var(--primary-gradient);
                border-radius: 50%;
                cursor: pointer;
                margin-top: -8px;
                box-shadow: 0 0 10px rgba(88, 224, 33, 0.5);
            }

        /* Checkbox styling */
        .ace-checkbox-container {
            display: block;
            position: relative;
            padding-left: 30px;
            margin-bottom: 12px;
            cursor: pointer;
            font-size: 14px;
            user-select: none;
            color: var(--text-muted);
        }

            .ace-checkbox-container input {
                position: absolute;
                opacity: 0;
                cursor: pointer;
                height: 0;
                width: 0;
            }

        .ace-checkbox {
            position: absolute;
            top: 0;
            left: 0;
            height: 20px;
            width: 20px;
            background-color: var(--darker-bg);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .ace-checkbox-container:hover input ~ .ace-checkbox {
            border-color: var(--primary);
        }

        .ace-checkbox-container input:checked ~ .ace-checkbox {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .ace-checkbox:after {
            content: "";
            position: absolute;
            display: none;
            left: 7px;
            top: 3px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .ace-checkbox-container input:checked ~ .ace-checkbox:after {
            display: block;
        }

        /* Progress styles */
        .progress {
            height: 10px;
            background-color: var(--darker-bg);
            border-radius: 5px;
            margin-bottom: 25px;
            overflow: hidden;
        }

        .progress-bar {
            background: var(--primary-gradient);
            transition: width 0.5s ease;
        }

        #progressText {
            color: var(--text-light);
            font-weight: 500;
        }

        /* Progress container */
        #progressContainer {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

            #progressContainer::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 5px;
                background: var(--primary-gradient);
            }

        /* Analysis progress steps */
        .progress-steps {
            margin: 30px 0;
            position: relative;
        }

            .progress-steps::before {
                content: '';
                position: absolute;
                top: 30px;
                left: 60px;
                width: calc(100% - 120px);
                height: 3px;
                background-color: var(--border-color);
                z-index: 1;
            }

        .step-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }

        .step-circle {
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--darker-bg);
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            transition: all 0.3s ease;
        }

        .step-text {
            padding-top: 5px;
        }

        .step-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 5px;
            transition: all 0.3s ease;
        }

        .step-detail {
            font-size: 14px;
            color: var(--text-dim);
            transition: all 0.3s ease;
        }

        .step-icon {
            font-size: 22px;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        /* Step states */
        .step-item.active .step-title {
            color: var(--text-light);
        }

        .step-item.active .step-detail {
            color: var(--text-muted);
        }

        .step-item.in-progress .step-circle {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(88, 224, 33, 0.5);
        }

        .step-item.in-progress .step-icon {
            color: var(--primary);
        }

        .step-item.completed .step-circle {
            border-color: var(--success);
            background-color: rgba(88, 224, 33, 0.1);
        }

        .step-item.completed .step-icon {
            color: var(--success);
        }

        .step-item.error .step-circle {
            border-color: var(--danger);
            background-color: rgba(255, 82, 82, 0.1);
        }

        .step-item.error .step-icon {
            color: var(--danger);
        }

        /* Stock Information Panel */
        .stock-info-panel {
            background: linear-gradient(135deg, #1e222d 0%, #131722 100%);
            border-radius: 12px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            margin-bottom: 25px;
            padding: 0;
        }

        .stock-info-header {
            background: rgba(88, 224, 33, 0.1);
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

            .stock-info-header h4 {
                margin: 0;
                color: #f5f5f5;
                font-weight: 600;
                display: flex;
                align-items: center;
            }

                .stock-info-header h4 i {
                    margin-right: 10px;
                    color: #58e021;
                }

        .stock-info-content {
            padding: 20px;
        }

        /* Price Display */
        .price-display-large {
            padding: 20px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 10px;
            text-align: center;
        }

        .stock-symbol {
            font-size: 18px;
            color: var(--text-muted);
            margin-bottom: 10px;
            display: block;
        }

        #currentStockPrice {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 5px;
        }

        .price-change-container {
            margin: 10px 0 15px;
        }

        #priceChangeDisplay {
            display: inline-flex;
            align-items: center;
            font-weight: 600;
            font-size: 1.5rem;
            padding: 5px 15px;
            border-radius: 20px;
        }

            #priceChangeDisplay.price-up {
                background-color: rgba(88, 224, 33, 0.2);
                color: var(--success);
            }

            #priceChangeDisplay.price-down {
                background-color: rgba(255, 82, 82, 0.2);
                color: var(--danger);
            }

            #priceChangeDisplay.unchanged {
                background-color: rgba(154, 160, 185, 0.2);
                color: var(--text-muted);
            }

        .info-card {
            padding: 12px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 10px;
            height: 100%;
        }

            .info-card h5 {
                font-size: 16px;
                color: var(--primary);
                margin-bottom: 15px;
                font-weight: 600;
            }

        .info-label {
            color: var(--text-muted);
            margin-bottom: 5px;
            font-size: 0.85rem;
        }

        .info-value {
            font-size: 1.1rem;
            margin-bottom: 0;
        }

        /* Chart container */
        .chart-container {
            width: 100%;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        /* Day performance cards */
        .day-performance-container {
            margin: 15px 0;
        }

        .day-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 12px 8px;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            margin-bottom: 10px;
        }

            .day-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            }

        .day-date {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .day-price {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .price-up {
            color: var(--success);
        }

        .price-down {
            color: var(--danger);
        }

        .price-unchanged {
            color: var(--text-muted);
        }

        /* Company description */
        .about-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid var(--border-color);
        }

        .company-description {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--text-light);
        }

        /* Analysis configuration */
        .analysis-control-panel {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        /* Analysis Results Styles */
        .results-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .results-title {
            font-size: 28px;
            font-family: var(--font-heading);
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
            letter-spacing: 1px;
        }

        .indicators-panel {
            background-color: var(--darker-bg);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid var(--border-color);
        }

            .indicators-panel h6 {
                color: var(--primary);
                font-size: 14px;
                font-weight: 600;
                margin-bottom: 10px;
            }

        /* Recommendation cards */
        .recommendation-card {
            background-color: var(--darker-bg);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

            .recommendation-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            }

            .recommendation-card h4 {
                font-size: 16px;
                color: var(--text-muted);
                margin-bottom: 5px;
            }

            .recommendation-card h3 {
                font-size: 24px;
                margin-bottom: 15px;
                font-family: var(--font-heading);
            }

        .buy-card h3 {
            color: var(--success);
        }

        .sell-card h3 {
            color: var(--danger);
        }

        .hold-card h3 {
            color: var(--warning);
        }

        .confidence-bar {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            height: 24px;
            position: relative;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .confidence-bar-inner {
            height: 100%;
            border-radius: 4px;
        }

        .buy-bar .confidence-bar-inner {
            background-color: var(--success);
        }

        .sell-bar .confidence-bar-inner {
            background-color: var(--danger);
        }

        .hold-bar .confidence-bar-inner {
            background-color: var(--warning);
        }

        .confidence-bar-text {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-weight: 600;
            font-size: 12px;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
        }

        /* Technical Summary List */
        #technicalSummaryList {
            list-style: none;
            padding-left: 0;
        }

            #technicalSummaryList .list-group-item {
                background-color: #1a2234;
                border-radius: 8px;
                padding: 16px;
                border: 1px solid #2a394f;
                margin-bottom: 12px;
                color: #f5f5f5;
                list-style: none;
                transition: all 0.3s ease;
            }

                #technicalSummaryList .list-group-item:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
                }

            #technicalSummaryList .list-group-item-success {
                background-color: rgba(88, 224, 33, 0.1);
                border-left: 4px solid var(--success);
            }

            #technicalSummaryList .list-group-item-danger {
                background-color: rgba(255, 82, 82, 0.1);
                border-left: 4px solid var(--danger);
            }

            #technicalSummaryList .list-group-item-warning {
                background-color: rgba(255, 186, 0, 0.1);
                border-left: 4px solid var(--warning);
            }

        /* Feature cards and charts */
        .feature-card {
            background-color: rgba(30, 34, 45, 0.7);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            height: 100%;
        }

            .feature-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 4px;
                background: var(--primary-gradient);
            }

            .feature-card h5 {
                font-size: 18px;
                font-weight: 600;
                color: var(--primary);
                margin-bottom: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--border-color);
                letter-spacing: 0.5px;
            }

        #shortTermFeatures table,
        #longTermFeatures table,
        .feature-chart table {
            width: 100%;
            background-color: transparent;
            border-collapse: separate;
            border-spacing: 0;
            margin-bottom: 0;
        }

            #shortTermFeatures table th,
            #longTermFeatures table th,
            .feature-chart table th {
                color: var(--primary);
                font-weight: 600;
                padding: 10px;
                text-align: left;
                border-bottom: 1px solid var(--border-color);
                font-size: 15px;
            }

            #shortTermFeatures table td,
            #longTermFeatures table td,
            .feature-chart table td {
                padding: 12px 10px;
                border-bottom: 1px solid rgba(42, 46, 57, 0.5);
                color: var(--text-light);
                font-weight: 500;
            }

        #shortTermFeatures .progress,
        #longTermFeatures .progress,
        .feature-chart .progress {
            height: 12px;
            background-color: rgba(12, 14, 23, 0.6);
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 0;
            border: 1px solid var(--border-color);
        }

        #shortTermFeatures .progress-bar,
        #longTermFeatures .progress-bar,
        .feature-chart .progress-bar {
            background: linear-gradient(90deg, #5965f9, #7a84fa);
            border-radius: 6px;
        }

        /* Monthly performance table */
        .monthly-performance-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            background-color: var(--darker-bg);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 20px;
        }

            .monthly-performance-table th,
            .monthly-performance-table td {
                padding: 10px 15px;
                border-bottom: 1px solid var(--border-color);
                text-align: left;
            }

            .monthly-performance-table th {
                background-color: rgba(88, 224, 33, 0.1);
                color: var(--primary);
                font-weight: 600;
            }

            .monthly-performance-table tr:last-child td {
                border-bottom: none;
            }

        .positive-return {
            color: var(--success) !important;
        }

        .negative-return {
            color: var(--danger) !important;
        }

        /* Valuation and details panels */
        #valuationMetrics ul,
        #marketContext ul,
        #technicalPatterns ul,
        #earningsInfo ul {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }

        #valuationMetrics li,
        #marketContext li,
        #technicalPatterns li,
        #earningsInfo li {
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: 6px;
            background-color: rgba(30, 34, 45, 0.9);
            border-left: 3px solid var(--primary);
            font-weight: 500;
            color: var(--text-light);
            transition: all 0.3s ease;
        }

            #valuationMetrics li:hover,
            #marketContext li:hover,
            #technicalPatterns li:hover,
            #earningsInfo li:hover {
                transform: translateX(5px);
                background-color: rgba(42, 46, 57, 0.9);
                box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            }

            #valuationMetrics li.list-group-item-success,
            #technicalPatterns li.list-group-item-success {
                border-left-color: var(--success);
                background-color: rgba(88, 224, 33, 0.1);
            }

            #valuationMetrics li.list-group-item-danger,
            #technicalPatterns li.list-group-item-danger {
                border-left-color: var(--danger);
                background-color: rgba(255, 82, 82, 0.1);
            }

            #valuationMetrics li.list-group-item-warning,
            #technicalPatterns li.list-group-item-warning {
                border-left-color: var(--warning);
                background-color: rgba(255, 186, 0, 0.1);
            }

        /* Economic indicator styling */
        .economic-indicator {
            background-color: rgba(12, 14, 23, 0.6);
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }

            .economic-indicator .indicator-title {
                color: var(--primary);
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 10px;
                padding-bottom: 5px;
                border-bottom: 1px solid var(--border-color);
            }

            .economic-indicator .indicator-item {
                display: flex;
                justify-content: space-between;
                padding: 8px 0;
            }

            .economic-indicator .indicator-label {
                color: var(--text-muted);
            }

            .economic-indicator .indicator-value {
                font-weight: 600;
                color: var(--text-light);
            }

        /* Backtesting Section Styles */
        .backtest-section {
            background-color: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

            .backtest-section::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 4px;
                background: linear-gradient(45deg, var(--info), var(--primary));
            }

        .backtest-title {
            font-size: 28px;
            font-family: var(--font-heading);
            font-weight: 600;
            color: var(--info);
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
            letter-spacing: 1px;
        }

        /* Backtest Progress Container */
        #backtestProgressContainer {
            background-color: var(--darker-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }

            #backtestProgressContainer h5 {
                color: var(--primary);
                font-size: 18px;
                margin-bottom: 20px;
                font-weight: 600;
            }

        /* Backtest Progress Steps */
        #backtestProgressSteps {
            margin: 25px 0;
        }

            #backtestProgressSteps .backtest-step {
                display: flex;
                align-items: center;
                margin-bottom: 15px;
                background-color: rgba(30, 34, 45, 0.5);
                padding: 12px 15px;
                border-radius: 8px;
                border-left: 3px solid var(--border-color);
            }

                #backtestProgressSteps .backtest-step:last-child {
                    margin-bottom: 0;
                }

            #backtestProgressSteps .step-status {
                width: 30px;
                height: 30px;
                border-radius: 50%;
                background-color: var(--darker-bg);
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 15px;
                flex-shrink: 0;
            }

                #backtestProgressSteps .step-status.pending {
                    color: var(--text-muted);
                    border: 1px solid var(--border-color);
                }

                #backtestProgressSteps .step-status.in-progress {
                    color: var(--primary);
                    border: 1px solid var(--primary);
                    box-shadow: 0 0 10px rgba(88, 224, 33, 0.3);
                }

                #backtestProgressSteps .step-status.completed {
                    color: var(--success);
                    border: 1px solid var(--success);
                    background-color: rgba(88, 224, 33, 0.1);
                }

                #backtestProgressSteps .step-status.failed {
                    color: var(--danger);
                    border: 1px solid var(--danger);
                    background-color: rgba(255, 82, 82, 0.1);
                }

            #backtestProgressSteps .step-text {
                color: var(--text-light);
                font-weight: 500;
            }

        /* Backtest Progress Details */
        #backtestProgressDetails {
            background-color: rgba(12, 14, 23, 0.5);
            border-radius: 8px;
            padding: 12px;
            max-height: 150px;
            overflow-y: auto;
            margin-top: 15px;
            font-size: 13px;
        }

            #backtestProgressDetails div {
                padding: 5px 0;
                border-bottom: 1px solid rgba(42, 46, 57, 0.3);
            }

                #backtestProgressDetails div:last-child {
                    border-bottom: none;
                }

            #backtestProgressDetails .text-success {
                color: var(--success) !important;
            }

            #backtestProgressDetails .text-danger {
                color: var(--danger) !important;
            }

        /* Backtest Results Cards */
        .backtest-card {
            background-color: var(--darker-bg);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            height: 100%;
        }

            .backtest-card h5 {
                color: var(--info);
                font-size: 18px;
                margin-bottom: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--border-color);
                font-weight: 600;
            }

        /* Performance Summary */
        .performance-summary {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .performance-box {
            background-color: rgba(30, 34, 45, 0.7);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
        }

            .performance-box p {
                color: var(--text-muted);
                margin-bottom: 5px;
                font-size: 14px;
            }

            .performance-box .stat-value {
                font-size: 32px;
                font-family: var(--font-heading);
                font-weight: 500;
                color: var(--text-light);
            }

        .performance-metrics {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }

        .metric-box {
            background-color: rgba(30, 34, 45, 0.7);
            border-radius: 8px;
            padding: 15px;
            width: 32%;
            text-align: center;
        }

            .metric-box p {
                color: var(--text-muted);
                margin-bottom: 5px;
                font-size: 14px;
            }

            .metric-box .metric-value {
                font-size: 28px;
                font-family: var(--font-heading);
                font-weight: 500;
            }

            .metric-box .positive {
                color: var(--success);
            }

            .metric-box .negative {
                color: var(--danger);
            }

            .metric-box .neutral {
                color: var(--primary);
            }

        /* Trading History Table */
        .trade-history-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

            .trade-history-table th {
                background-color: rgba(89, 101, 249, 0.1);
                color: var(--info);
                font-weight: 600;
                padding: 12px 15px;
                text-align: left;
                border-bottom: 1px solid var(--border-color);
            }

            .trade-history-table td {
                padding: 12px 15px;
                border-bottom: 1px solid rgba(42, 46, 57, 0.5);
                color: var(--text-light);
            }

            .trade-history-table tr:hover td {
                background-color: rgba(42, 46, 57, 0.3);
            }

            .trade-history-table tr.positive-trade td {
                background-color: rgba(88, 224, 33, 0.05);
            }

            .trade-history-table tr.negative-trade td {
                background-color: rgba(255, 82, 82, 0.05);
            }

            .trade-history-table .action-buy {
                color: var(--success);
                font-weight: 600;
            }

            .trade-history-table .action-sell {
                color: var(--danger);
                font-weight: 600;
            }

            .trade-history-table .return-positive {
                color: var(--success);
                font-weight: 600;
            }

            .trade-history-table .return-negative {
                color: var(--danger);
                font-weight: 600;
            }

        /* Horizon tabs */
        #horizonTabsContainer {
            margin-bottom: 20px;
        }

        .horizon-tabs {
            display: flex;
            background-color: var(--darker-bg);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .horizon-tab {
            padding: 12px 20px;
            flex: 1;
            text-align: center;
            cursor: pointer;
            color: var(--text-muted);
            font-weight: 500;
            transition: all 0.3s ease;
            border-right: 1px solid var(--border-color);
            position: relative;
        }

            .horizon-tab:last-child {
                border-right: none;
            }

            .horizon-tab:hover {
                background-color: rgba(89, 101, 249, 0.1);
                color: var(--info);
            }

            .horizon-tab.active {
                background-color: rgba(89, 101, 249, 0.2);
                color: var(--info);
                font-weight: 600;
            }

                .horizon-tab.active::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 3px;
                    background: var(--info);
                }

            .horizon-tab .badge {
                background-color: rgba(12, 14, 23, 0.5);
                color: var(--text-light);
                font-size: 11px;
                padding: 3px 8px;
                border-radius: 10px;
                margin-left: 8px;
            }

            .horizon-tab.disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }

        /* Token System Styles */
        .token-info {
            color: var(--text-light);
        }

        .token-balance {
            position: relative;
        }

            .token-balance h4 {
                color: var(--text-muted);
            }

        .token-display {
            background: linear-gradient(45deg, #58e021, #2fae0e);
            border-radius: 16px;
            padding: 15px 30px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 10px 20px rgba(88, 224, 33, 0.3);
            position: relative;
            overflow: hidden;
        }

            .token-display:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
                z-index: 1;
            }

            .token-display.insufficient {
                background: linear-gradient(45deg, #ff5252, #cc4141);
                box-shadow: 0 10px 20px rgba(255, 82, 82, 0.3);
            }

        .token-count {
            font-size: 42px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
            margin-bottom: 5px;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 2;
        }

        .token-label {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            z-index: 2;
        }

        /* Token packages */
        .token-packages {
            margin-top: 20px;
        }

        .token-package {
            background-color: rgba(30, 34, 45, 0.7);
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            height: 100%;
        }

            .token-package:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
                border-color: var(--primary);
            }

            .token-package.best-value {
                border-color: var(--warning);
                position: relative;
            }

        .best-value-tag {
            position: absolute;
            top: -10px;
            right: -10px;
            background: var(--warning);
            color: #131722;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            z-index: 3;
        }

        .package-price {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-light);
            margin: 10px 0;
        }

        .package-tokens {
            color: var(--primary);
            font-weight: 600;
            font-size: 18px;
        }

        /* Countdown timer */
        .countdown-timer {
            background-color: rgba(19, 23, 34, 0.7);
            border-radius: 12px;
            padding: 15px;
            margin: 15px auto;
            max-width: 300px;
            border: 1px solid var(--border-color);
        }

        .time-remaining {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 10px;
            text-align: center;
        }

            .time-remaining .hours,
            .time-remaining .minutes,
            .time-remaining .seconds {
                color: var(--primary);
            }

        .countdown-timer .progress {
            height: 8px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .countdown-timer .progress-bar {
            background: var(--primary-gradient);
        }

        /* Benefits list */
        .benefits .list-group {
            background-color: transparent;
            border-radius: 8px;
            overflow: hidden;
            margin-top: 10px;
        }

        .benefits .list-group-item {
            background-color: rgba(19, 23, 34, 0.5);
            color: var(--text-muted);
            border-color: rgba(42, 46, 57, 0.5);
            padding: 10px 15px;
            font-size: 14px;
            position: relative;
            padding-left: 30px;
        }

            .benefits .list-group-item:before {
                content: "✓";
                color: var(--primary);
                position: absolute;
                left: 10px;
                font-weight: bold;
            }

        /* Token usage info */
        .token-usage-info,
        .benefits,
        .bypass-option {
            background-color: rgba(19, 23, 34, 0.5);
            border-radius: 8px;
            padding: 15px;
            border: 1px solid rgba(42, 46, 57, 0.7);
        }

            .token-usage-info h5,
            .benefits h5,
            .bypass-option h5 {
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 10px;
                color: var(--text-light);
            }

            .token-usage-info p,
            .benefits p,
            .bypass-option p {
                color: var(--text-muted);
                font-size: 14px;
                margin-bottom: 0;
            }

        /* Modals */
        .modal-content {
            background-color: #1e222d !important; /* Lighter background */
            border: 1px solid #2a2e39;
            border-radius: 12px;
        }

        .modal-header {
            background: linear-gradient(90deg, rgba(19, 23, 34, 0.95) 0%, rgba(30, 34, 45, 0.95) 100%);
            border-bottom: 1px solid var(--primary);
            padding: 15px 20px;
        }

        .modal-title {
            color: #f5f5f5;
            font-weight: 600;
            display: flex;
            align-items: center;
        }

        .modal-body {
            color: #f5f5f5 !important; /* Bright text color */
            font-size: 16px;
            line-height: 1.5;
            padding: 20px !important; /* Ensure padding */
        }

            /* Improve paragraph contrast */
            .modal-body p {
                color: #d1d5db !important; /* Very light gray */
                margin-bottom: 15px;
            }

        .modal-footer {
            padding: 15px 20px;
            border-top: 1px solid #2a2e39;
            background-color: rgba(19, 23, 34, 0.7);
        }

        /* Better list readability */
        .benefits-list {
            list-style: none;
            padding-left: 0;
        }

        .benefit-item {
            position: relative;
            padding: 10px 15px 10px 35px;
            margin-bottom: 8px;
            background-color: #22304d !important; /* Slightly blue background */
            border-radius: 6px;
            color: #f5f5f5 !important;
        }

            .benefit-item::before {
                content: "✓";
                position: absolute;
                left: 12px;
                color: #58e021;
                font-weight: bold;
            }

        .btn-close {
            color: #f5f5f5;
            opacity: 0.8;
            filter: invert(1) grayscale(100%) brightness(200%);
        }

            .btn-close:hover {
                opacity: 1;
            }

        .nav-tabs {
            border-bottom: 1px solid var(--border-color);
        }

        .nav-link {
            color: var(--text-muted);
            border: none;
            padding: 10px 15px;
        }

            .nav-link.active {
                color: var(--primary);
                background-color: transparent;
                border-bottom: 2px solid var(--primary);
            }

        /* Loading indicator */
        .loading-indicator {
            color: var(--text-muted);
            text-align: center;
            padding: 20px;
        }

            .loading-indicator i {
                margin-right: 10px;
            }

        /* Footer */
        .ace-footer {
            background-color: var(--darker-bg);
            padding: 15px 0;
            border-top: 1px solid var(--border-color);
            margin-top: 30px;
            color: var(--text-muted);
            font-size: 14px;
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .ace-nav {
                justify-content: flex-start;
                margin-top: 15px;
                flex-wrap: wrap;
            }

            .day-card {
                margin-bottom: 15px;
            }

            #currentStockPrice {
                font-size: 3rem;
            }

            .performance-metrics {
                flex-direction: column;
            }

            .metric-box {
                width: 100%;
                margin-bottom: 10px;
            }

            .dropdown-menu {
                position: absolute;
                right: 0;
                left: auto;
            }
        }

        @media (max-width: 768px) {
            .step-circle {
                width: 50px;
                height: 50px;
            }

            .progress-steps::before {
                left: 50px;
                width: calc(100% - 100px);
            }

            .ace-nav-item {
                margin: 5px 3px;
                padding: 8px 12px;
            }

            .horizon-tab {
                padding: 8px 10px;
                font-size: 14px;
            }

                .horizon-tab .badge {
                    display: none;
                }

            .performance-box .stat-value {
                font-size: 24px;
            }

            .token-count {
                font-size: 32px;
            }
        }

        @media (max-width: 576px) {
            .step-circle {
                width: 40px;
                height: 40px;
            }

            .step-icon {
                font-size: 18px;
            }

            .step-title {
                font-size: 14px;
            }

            .step-detail {
                font-size: 12px;
            }

            #currentStockPrice {
                font-size: 2.5rem;
            }

            .day-card {
                padding: 8px 5px;
            }

            .day-price {
                font-size: 0.9rem;
            }

            .horizon-tabs {
                flex-wrap: wrap;
            }

            .horizon-tab {
                flex: 1 0 50%;
                border-bottom: 1px solid var(--border-color);
            }

            .backtest-title,
            .results-title {
                font-size: 22px;
            }

            .recommendation-card h3 {
                font-size: 20px;
            }

            .trade-history-table {
                font-size: 12px;
            }

                .trade-history-table th,
                .trade-history-table td {
                    padding: 8px;
                }
        }

        /* Industry Performance Section Enhancements */
        .industry-performance {
            padding: 24px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            margin-bottom: 20px;
            height: 208px; /* Match TradingView height */
        }

            .industry-performance h3 {
                color: var(--primary);
                font-size: 22px;
                margin-bottom: 15px;
                font-weight: 600;
                letter-spacing: 0.5px;
            }

            .industry-performance .row {
                margin-bottom: 10px;
            }

            .industry-performance .info-label {
                color: var(--text-muted);
                font-size: 24px;
                font-weight: 500;
                margin-bottom: 5px;
            }

            .industry-performance .info-value {
                font-size: 24px;
                font-weight: 700;
                color: var(--text-light);
            }

        #monthlyPerformance.negative,
        #industryPerformance.negative {
            font-size: 34px; /* Even larger for the percentage values */
            color: var(--danger);
        }

        #monthlyPerformance.positive,
        #industryPerformance.positive {
            font-size: 34px; /* Even larger for the percentage values */
            color: var(--success);
        }

        .indicators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .indicator-card {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

            .indicator-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
                border-color: var(--primary);
            }

        .indicator-name {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .indicator-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-light);
        }

        .indicator-status {
            font-size: 12px;
            margin-top: 4px;
            font-weight: 500;
        }

        /* Feature card and chart styling */
        .feature-card {
            background-color: rgba(30, 34, 45, 0.7);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            height: 100%;
        }

            .feature-card h5 {
                font-size: 18px;
                font-weight: 600;
                color: var(--primary);
                margin-bottom: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--border-color);
                letter-spacing: 0.5px;
            }

        /* Pie chart container */
        #featureImportanceChart {
            max-height: 300px;
            margin: 0 auto;
        }

        /* Market factors styling */
        .market-factors-content {
            font-size: 14px;
        }

        .economic-grid, .performance-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        .economic-item, .performance-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
        }

            .economic-item .label, .performance-item .label {
                color: var(--text-muted);
            }

            .economic-item .value, .performance-item .value {
                font-weight: 600;
            }

        .economic-section h6, .performance-section h6, .considerations-section h6 {
            font-size: 16px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .factors-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .factors-list li {
                padding: 5px 0;
                color: var(--text-muted);
                line-height: 1.5;
            }

        .performance-section .value.text-success {
            color: var(--success) !important;
        }

        .performance-section .value.text-danger {
            color: var(--danger) !important;
        }

        /* AI message styling */
        .ai-message {
            background-color: rgba(88, 224, 33, 0.1);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--primary);
            margin-bottom: 15px;
        }

        /* Add to your CSS file */
        .tradingview-widget-container {
            width: 100%;
            height: 400px;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            overflow: hidden;
        }

        /* Make sure the widget fits within the card */
        .economic-section .tradingview-widget-container__widget {
            height: 100%;
        }

        /* Adjust spacing between sections */
        .economic-section, .performance-section, .considerations-section {
            margin-bottom: 20px;
        }

        /* Make sure iframe inside the widget container is responsive */
        .tradingview-widget-container iframe {
            width: 100%;
            height: 100%;
        }

        /* Add these rules to your existing CSS */

        /* Zoom the TradingView widget */
        .tradingview-widget-container__widget {
            transform: scale(1.5); /* Increase scale for more dramatic effect */
            transform-origin: center center; /* Center the scaling */
            margin: 20px 0; /* Add some margin to prevent overlap */
        }

        .tradingview-widget-container {
            overflow: hidden; /* Prevent scrollbars */
            height: auto !important; /* Allow container to adjust to scaled content */
            display: flex;
            justify-content: center; /* Center horizontally */
        }

        /* Still hide unnecessary elements */
        .tradingview-widget-copyright {
            display: none !important;
        }

        /* Optionally hide the symbol name if it's still visible */
        .tradingview-widget-container [class*="symbol-name"],
        .tradingview-widget-container [class*="description"],
        .tradingview-widget-container .tv-single-quote__name {
            display: none !important;
        }

        /* AI message styling */
        .ai-message {
            background-color: rgba(88, 224, 33, 0.1);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--primary);
            margin-bottom: 15px;
        }

        /* Indicators grid */
        .indicators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .indicator-card {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

            .indicator-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
                border-color: var(--primary);
            }

        .indicator-name {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .indicator-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-light);
        }

        .indicator-status {
            font-size: 12px;
            margin-top: 4px;
            font-weight: 500;
        }

        /* Performance classes */
        .positive {
            color: var(--success) !important;
        }

        .negative {
            color: var(--danger) !important;
        }

        /* (Removed a stray min-height:800px that was stretching every recommendation
           card — it was only meant for a TradingView fundamentals widget ace_v2
           doesn't use.) */
        .feature-card {
            height: auto !important;
            min-height: 0;
        }

        /* Ensure the TradingView fundamentals container has sufficient height */
        #tradingViewFundamentals {
            height: 800px !important;
            overflow: hidden;
        }

        /* Make sure the TradingView widget containers use the full available space */
        .tradingview-widget-container,
        .tradingview-widget-container__widget {
            height: 100% !important;
            width: 100% !important;
        }

        /* Improve the copyright footer appearance */
        .tradingview-widget-copyright {
            font-size: 13px;
            line-height: 32px;
            text-align: center;
            vertical-align: middle;
            font-family: 'Trebuchet MS', Arial, sans-serif !important;
            color: #9db2bd !important;
        }

            .tradingview-widget-copyright .blue-text {
                color: #2962FF !important;
            }

        /* Optional: Add a smooth transition when loading */
        #tradingViewFundamentals {
            transition: opacity 0.3s ease;
        }

            #tradingViewFundamentals.loading {
                opacity: 0.7;
            }

        /* Token Cost Panel Styles - With fixed class names to avoid conflicts */
        .token-cost-panel {
            background: linear-gradient(135deg, #1e2a3a 0%, #131722 100%) !important;
            border: 1px solid #2a394f !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            height: 100%;
        }

            .token-cost-panel::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 4px;
                background: linear-gradient(90deg, #58e021, #5965f9, #a259ff) !important;
            }

        .token-cost-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

            .token-cost-header h5 {
                margin: 0;
                color: var(--text-light);
                font-size: 24px;
                font-weight: 500;
                padding: 12px;
                text-align: center;
            }

        .token-cost-total {
            background: linear-gradient(45deg, var(--bear-hover), var(--bear));
            border-radius: 20px;
            padding: 8px 15px;
            color: #fff;
            font-weight: 600;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        .token-cost-value {
            font-size: 20px;
            font-weight: 700;
            margin: 0 3px;
        }

        .token-cost-text {
            font-size: 30px;
            font-weight: 700;
            opacity: 0.8;
        }
        

        .token-cost-breakdown {
            margin-bottom: 20px;
        }

        .token-cost-item {
            padding: 12px 15px;
            margin-bottom: 10px;
            background-color: rgba(19, 23, 34, 0.5);
            border-radius: 8px;
            border-left: 3px solid transparent;
            transition: all 0.3s ease;
        }

            .token-cost-item:hover {
                transform: translateX(5px);
                background-color: rgba(30, 34, 45, 0.8);
            }

            .token-cost-item.active {
                border-left-color: var(--primary);
                background-color: rgba(88, 224, 33, 0.1);
            }

        .token-section-title {
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 5px;
        }

        .token-section-cost {
            font-size: 14px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .token-section-desc {
            font-size: 12px;
            color: var(--text-muted);
        }

        .token-cost-footer {
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .token-user-balance {
            font-size: 30px;
            font-weight: 700;
            color: var(--text-muted);
            text-align: center;
        }

        .token-balance-number {
            font-size: 30px;
            font-weight: 700;
            color: var(--text-light);
            margin: 0 3px;
        }

        /* Token cost indicators next to options */
        .token-cost-indicator {
            display: inline-block;
            background-color: rgba(88, 224, 33, 0.18);
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
            border: 1px solid rgba(88, 224, 33, 0.3);
            vertical-align: middle;
        }

        /* Token warning message for insufficient balance */
        .token-cost-warning {
            background-color: rgba(255, 82, 82, 0.1);
            border-left: 3px solid var(--danger);
            padding: 10px;
            border-radius: 6px;
            margin-bottom: 15px;
            font-size: 13px;
            color: var(--text-light);
        }

        /* Make token cost panel responsive */
        @media (max-width: 992px) {
            .token-cost-panel {
                margin-top: 20px;
            }
        }
        

