/* --- 1. ESTRUTURA E CONTEÚDO --- */
.content {
    flex: 1;
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 1024px) {
    .content {
        max-width: 850px; 
    }
}

/* --- 2. TÍTULOS E CABEÇALHOS (TT-PAGE) --- */

.tt-page .section-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 10px 0 10px 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.tt-page .section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-main);
    margin-left: 10px;
}

.tt-page .section-header:first-of-type {
    margin-top: 0 !important;
}

/* --- 3. SISTEMA DE GRIDS --- */
/* --- 3. SISTEMA DE GRIDS (UPGRADE RESPONSIVO) --- */

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

.grid-compact { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}


/* --- BOTÕES LARGOS (FERRAMENTAS PRINCIPAIS) --- */

.span-2 {
grid-column: span 2;
}

/* --- 4. BOTÕES E LINKS --- */
.tt-page .container a { 
    background: var(--border-main); 
    color: var(--text-white); 
    text-decoration: none; 
    padding: 10px 10px; /* 8px 8px*/
    border-radius: var(--radius-main); 
    text-align: center; 
    font-size: 1.05rem; /*1.0*/
    font-weight: 600;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-fast, 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.tt-page .container a {
    letter-spacing: .4px;
}

.tt-page .container a:hover { 
    background: var(--botao-dash-hover); 
    border-color: var(--border-focus, #555); 
}

.tt-page .container a:active { 
    background: var(--botao-dash-active); 
    color: var(--text-dark); 
    transform: scale(0.97); 
}

/* --- 5. CATEGORIZAÇÃO (BORDAS) --- */
.tt-page .container .cat-b3     { border-left: 4px solid #973511 !important; }
.tt-page .container .cat-info   { border-left: 4px solid #83D8D7 !important; }
.tt-page .container .cat-trade  { border-left: 4px solid var(--primary-color) !important; }
.tt-page .container .cat-chart  { border-left: 4px solid #4caf50 !important; }
.tt-page .container .cat-quote  { border-left: 3px solid #9e9e9e !important; }
.tt-page .container .cat-6cota  { border-left: 4px solid #BFD289 !important; }
.tt-page .container .cat-admin  { border-left: 4px solid var(--op-venda) !important; }
.tt-page .container .cat-inf  { border-left: 4px solid #F1C40F !important; }

/* --- 6. INDICADORES (DOTS) --- */
.dot {
    width: 8px;
    height: 8px;
    background-color: transparent; 
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    transition: 0.3s;
}

.dot-active {
    background-color: var(--op-profit);
    box-shadow: 0 0 8px var(--op-profit);
}

/* --- 7. AJUDA E ÍCONES (HELP DOT) --- */
.tt-page .section-header a, 
.tt-page .content h2 a {
    display: inline-flex !important;
    background: var(--border-main) !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    font-size: 0.7rem !important;
    padding: 0 !important;
    margin-left: 8px !important;
    border: none !important;
    color: var(--text-gray) !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    vertical-align: middle;
}

.tt-page .section-header a:hover, 
.tt-page .section-header a:active {
    background: var(--border-light) !important;
    color: var(--text-white) !important;
    transform: none !important;
    box-shadow: none !important;
}
