
    :root {
        --acoes-primary: #1f2642;
        --acoes-secondary: #EBAF41;
        --acoes-bg: #f7fafc;
        --acoes-card: #ffffff;
        --acoes-border: #e2e8f0;
        --acoes-text: #1f2642;
        --acoes-muted: #718096;
        --acoes-accent: #EBAF41;
        --acoes-success: #22c55e;
        --acoes-danger: #ef4444;
        --acoes-gold: #d69e2e;
    }
    .hero-content {
        position: relative;
        z-index: 2;
    }

    .company-logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        object-fit: contain;
    }

    .company-title {
        font-size: 2rem;
        font-weight: 700;        
        margin-bottom: 0.5rem;
        letter-spacing: -0.02em;
    }

    .company-subtitle {
        font-size: 1rem;
    }

    /* Navigation */
    .company-nav {
        background: rgb(255 255 255 / 35%);
        backdrop-filter: blur(10px);
        border: 1px solid rgb(255 255 255 / 35%);
        border-radius: 12px;
        padding: 0.5rem;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-item-custom {
        flex: 1;
        min-width: 150px;
    }

    .nav-link-custom {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        white-space: nowrap;
        color: var(--primary-blue);
    }
    [data-bs-theme="dark"] .nav-link-custom {
        color: white;
    }
    .nav-link-custom:hover {
        background: rgb(255 255 255 / 35%);
    }

    .nav-link-custom.active {
        color: var(--acoes-secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-toggle {
        cursor: pointer;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-dropdown-item {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--acoes-text);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        border-bottom: 1px solid #64748b38;
    }

    .nav-dropdown-item:first-child {
        border-radius: 12px 12px 0 0;
    }

    .nav-dropdown-item:last-child {
        border-bottom: none;
        border-radius: 0 0 12px 12px;
    }

    .nav-dropdown-item:hover {
        padding-left: 1.25rem;
    }

    .nav-dropdown-item.active {
        color: var(--acoes-gold);
        font-weight: 600;
    }

    /* Price Display */
    .price-display {
        background: rgb(255 255 255 / 35%);
        backdrop-filter: blur(10px);
        border: 1px solid rgb(255 255 255 / 35%);
        border-radius: 16px;
        padding: 1.5rem 2rem;
        text-align: center;
    }

    .price-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    .price-value {
        font-size: 2.5rem;
        font-weight: 800;        
        line-height: 1;
    }

    .price-currency {
        font-size: 1rem;
        font-weight: 500;
        opacity: 0.8;
        margin-right: 0.25rem;
    }

    .price-date {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Variation Badge */
    .variation-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-top: 0.75rem;
    }

    .variation-positive, .positive {
        color: #045f27!important;
    }

    .variation-negative, .negative {
        color: #ff0000!important;
    }

    .icon-cotacao { background: rgba(31, 38, 66, 0.1); color: var(--acoes-primary); }
    .icon-valuation { background: rgba(235, 175, 65, 0.1); color: var(--acoes-accent); }
    .icon-rentabilidade { background: rgba(34, 197, 94, 0.1); color: var(--acoes-success); }
    .icon-eficiencia { background: rgba(66, 153, 225, 0.1); color: #4299e1; }
    .icon-endividamento { background: rgba(239, 68, 68, 0.1); color: var(--acoes-danger); }
    .icon-balanco { background: rgba(128, 90, 213, 0.1); color: #805ad5; }
    .icon-demonstrativo { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
    .icon-fluxo { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
    .icon-mercado { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

    /* Metric Grid */
    .metric {
        padding: 0.75rem;
        background: var(--bs-body-bg);
        border-radius: 12px;
        transition: background 0.2s ease;
    }
    
    .metric:hover {
        background: rgba(31, 38, 66, 0.05);
    }

    .metric-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .metric-item {
        padding: 0.75rem;        
        border-radius: 10px;
        transition: background 0.2s ease;
        position: relative;
        background: var(--bs-body-bg);
    }

    .metric-item:hover {
        background: rgba(31, 38, 66, 0.05);
    }

    .metric-label {
        font-size: 0.75rem;
        color: var(--acoes-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.35rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .metric-chart-icon {
        color: var(--acoes-accent);
        font-size: 0.85rem;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .metric-chart-icon:hover {
        transform: scale(1.2);
    }

    .metric-value {
        font-size: 1.1rem;
        font-weight: 600;        
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .metric-value .currency {
        font-size: 0.8rem;
        color: var(--acoes-muted);
        margin-right: 0.15rem;
    }

    .metric-value .porcentagem {
        font-size: 0.85rem;
        color: var(--acoes-muted);
        margin-left: 0.15rem;
    }
    .metric-value.up { color: var(--bs-success); }
    .metric-value.down { color: var(--bs-danger); }
    .metric-value.highlight { color: var(--bs-primary); }


    /* Content Section */
    .content-section {
        padding: 3rem 0 5rem;
        margin-top: -2rem;
        z-index: 5;
    }

    /* Chart Card */
    .chart-card {
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        border: 1px solid #64748b38;
        margin-bottom: 2rem;
        transition: all 0.3s ease;
    }

    .chart-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .chart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .chart-title {
        font-size: 1.25rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
    }

    .chart-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--acoes-primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Toolbar */
    .chart-toolbar {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .toolbar-btn {
        padding: 0.5rem 1rem;
        border: 2px solid var(--acoes-border);
        color: var(--acoes-text);
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .toolbar-btn:hover {
        border-color: var(--acoes-primary);
        color: var(--acoes-gold);
    }

    .toolbar-btn.active {
        background: var(--primary-blue-dark);
        border-color: var(--acoes-primary);
        color: var(--acoes-accent);
    }

    /* Sidebar */
    .sidebar-card {
        overflow: hidden;
        position: sticky;
        top: 100px;
    }
    .companies-list {
        max-height: 600px;
        overflow-y: auto;
    }

    .company-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #64748b38;
        text-decoration: none;        
        transition: all 0.2s ease;
    }

    .company-item:hover {
        padding-left: 1.5rem;
    }

    .company-item.active {
        background: rgba(31, 38, 66, 0.05);
        border-left: 3px solid var(--acoes-primary);
    }

    .company-name {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .company-arrow {
        color: var(--acoes-muted);
        transition: transform 0.2s ease;
    }

    .company-item:hover .company-arrow {
        transform: translateX(4px);
        color: var(--acoes-primary);
    }

    /* Table Styles */
    .table {
        width: 100%;
        margin-bottom: 0;
    }

    .table th,
    .table td {
        padding: 1rem;
        border-bottom: 1px solid #64748b38;
    }

    .table th {
        font-size: 0.85rem;
        font-weight: 600;        
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .dt-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
    }

    .dt-value {
        font-weight: 600;        
    }
    .data-tooltip {
        cursor: help;
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--acoes-border);
        border-radius: 50%;
        font-size: 0.7rem;
        color: var(--acoes-muted);
        transition: all 0.2s ease;
    }

    .data-tooltip:hover {
        background: var(--acoes-primary);        
    }
    .btn-toggle {
        display: flex;
        gap: 0;        
        padding: 0.25rem;
        border-radius: 8px;
    }

    .btn-toggle .btn-small {
        padding: 0.5rem 1rem;
        border: none;
        background: transparent;
        color: var(--acoes-muted);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-toggle .btn-small.active {
        background: var(--acoes-primary);        
    }.btn-toggle {
        display: flex;
        gap: 0;        
        padding: 0.25rem;
        border-radius: 8px;
    }

    .btn-toggle .btn-small {
        padding: 0.5rem 1rem;
        border: none;
        background: transparent;
        color: var(--acoes-muted);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-toggle .btn-small.active {
        background: var(--acoes-primary);        
    }
    /* Modal Styles */
    .modal-content {
        border-radius: 16px;
        border: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    .modal-title {
        font-weight: 600;
    }

    .btn-close {
        filter: brightness(0) invert(1);
    }



    /* Responsive */
    @media (max-width: 768px) {
        .hero-acoes {
            padding: 2rem 0 3rem;
        }

        .company-title {
            font-size: 1.5rem;
        }

        .company-nav {
            flex-direction: column;
        }
        .company-logo {
            width: 60px;
            height: 60px;
        }

        .nav-item-custom {
            width: 100%;
        }

        .chart-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
        .price-value {
            font-size: 2rem;
        }
        
        .metric-grid {
            grid-template-columns: 1fr;
        }
        .chart-toolbar {
            width: 100%;
        }

        .toolbar-btn {
            flex: 1;
            min-width: 60px;
        }
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-in {
        animation: fadeInUp 0.5s ease forwards;
    }

    .delay-1 { animation-delay: 0.1s; opacity: 0; }
    .delay-2 { animation-delay: 0.2s; opacity: 0; }
    .delay-3 { animation-delay: 0.3s; opacity: 0; }
    .delay-4 { animation-delay: 0.4s; opacity: 0; }

    .icon {
        width: 40px;
        height: 40px;
        background: var(--brand-gold);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: var(--brand-ink);
    }