/*
============================================================
HUB FINANCEIRO — CENTRAL INTELIGENTE DA HOME 1.0
============================================================
*/

.home-intelligence-center {
    width: min(1180px, calc(100% - 32px));

    margin: 24px auto 0;
    padding: 24px;

    border:
        1px solid
        rgba(34, 211, 238, 0.13);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 17, 35, 0.94),
            rgba(7, 12, 27, 0.91)
        );

    box-shadow:
        0 26px 70px
        rgba(0, 0, 0, 0.24);
}

.home-intelligence-center__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.home-intelligence-center__eyebrow {
    display: block;

    color: #67e8f9;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-intelligence-center__title {
    margin: 7px 0 0;

    color: #f8fafc;

    font-size: 22px;
    font-weight: 900;
}

.home-intelligence-center__description {
    max-width: 680px;

    margin: 7px 0 0;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.65;
}

.home-intelligence-center__badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;
    padding: 8px 11px;

    color: #c4b5fd;

    border:
        1px solid
        rgba(139, 92, 246, 0.18);

    border-radius: 999px;

    background:
        rgba(139, 92, 246, 0.075);

    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.home-intelligence-center__grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(0, 1.1fr);

    gap: 14px;

    margin-top: 20px;
}

.home-intelligence-score {
    padding: 20px;

    border:
        1px solid
        rgba(34, 211, 238, 0.14);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.07),
            rgba(59, 130, 246, 0.045),
            rgba(139, 92, 246, 0.07)
        );
}

.home-intelligence-score__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
}

.home-intelligence-score__label {
    color: #67e8f9;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.home-intelligence-score__level {
    margin-top: 7px;

    color: #f8fafc;

    font-size: 18px;
    font-weight: 900;
}

.home-intelligence-score__profile {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 9px;
}

.home-intelligence-score__number {
    color: #ffffff;

    font-size: 39px;
    font-weight: 900;
    line-height: 1;
}

.home-intelligence-score__number small {
    color: #64748b;

    font-size: 9px;
}

.home-intelligence-score__track {
    height: 9px;

    margin-top: 17px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.06);
}

.home-intelligence-score__bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #22d3ee,
            #3b82f6,
            #8b5cf6
        );

    transition:
        width 0.7s
        cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-intelligence-score__footer {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    margin-top: 9px;

    color: #64748b;

    font-size: 8px;
}

.home-intelligence-kpis {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.home-intelligence-kpi {
    min-height: 106px;
    padding: 15px;

    border:
        1px solid
        rgba(148, 163, 184, 0.09);

    border-radius: 17px;

    background:
        rgba(255, 255, 255, 0.022);
}

.home-intelligence-kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 9px;
}

.home-intelligence-kpi__label {
    color: #64748b;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-intelligence-kpi__icon {
    color: #67e8f9;
}

.home-intelligence-kpi__value {
    display: block;

    margin-top: 12px;

    color: #f8fafc;

    font-size: 19px;
    font-weight: 900;
}

.home-intelligence-kpi__detail {
    display: block;

    margin-top: 6px;

    color: #64748b;

    font-size: 8px;
    line-height: 1.45;
}

.home-intelligence-action {
    display: grid;

    grid-template-columns:
        45px minmax(0, 1fr) auto;

    align-items: center;

    gap: 13px;
    padding: 15px;

    margin-top: 14px;

    border:
        1px solid
        rgba(139, 92, 246, 0.16);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.065),
            rgba(34, 211, 238, 0.045)
        );
}

.home-intelligence-action__icon {
    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    color: #c4b5fd;

    border-radius: 14px;

    background:
        rgba(139, 92, 246, 0.1);
}

.home-intelligence-action__label {
    color: #a78bfa;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-intelligence-action__title {
    display: block;

    margin-top: 5px;

    color: #f8fafc;

    font-size: 11px;
    font-weight: 900;
}

.home-intelligence-action__text {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 8px;
    line-height: 1.5;
}

.home-intelligence-action__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 37px;
    padding: 0 13px;

    color: #ffffff;
    text-decoration: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #22c1e8,
            #3b82f6,
            #8b5cf6
        );

    box-shadow:
        0 13px 28px
        rgba(59, 130, 246, 0.17);

    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .home-intelligence-center__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .home-intelligence-center {
        width:
            min(
                100% - 20px,
                1180px
            );

        padding: 17px;

        border-radius: 21px;
    }

    .home-intelligence-center__header {
        flex-direction: column;
    }

    .home-intelligence-kpis {
        grid-template-columns: 1fr;
    }

    .home-intelligence-action {
        grid-template-columns:
            45px minmax(0, 1fr);
    }

    .home-intelligence-action__button {
        grid-column: 2;
        justify-self: start;
    }
}
