.speed-engine-box {
    background: #0f172a;
    border-radius: 24px; /* Mais arredondado como Ookla */
    padding: 20px;
    width: 100%;
    max-width: 800px; /* Maior para visual profissional */
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Sombra para profundidade */
}

/* Barra de info superior discreta */
.isp-minimal-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Grid de resultados tipo "Ticker" (Horizontal) */
.results-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.res-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.res-item:last-child { border: none; }
.res-item b { font-size: 1.5rem; color: #fff; line-height: 1.1; margin: 6px 0; }
.res-item small { font-size: 0.7rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }

/* Chart container maior e centrado */
#chart-container {
    width: 100%;
    height: 400px !important; /* Aumentado para gauge maior e profissional */
    margin: -20px 0 0 0; /* Ajuste leve */
}

/* Controles de rodapé */
.footer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.mini-progress {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0055ff);
    transition: width 0.5s ease-in-out; /* Animação suave */
}

#progress-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.btn-compact {
    background: linear-gradient(45deg, #00d4ff, #0055ff);
    color: #fff;
    border: none;
    padding: 12px 50px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-compact:hover {
    transform: scale(1.05);
}