/*
============================================================
HUB FINANCEIRO — TIMELINE FINANCEIRA 1.0
============================================================
*/

.hub-timeline {
    grid-column: 1 / -1;

    margin-top: 16px;
    padding: 22px;

    border: 1px solid var(--hub-border-soft);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.86),
            rgba(8, 13, 31, 0.76)
        );
}

.hub-timeline__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.hub-timeline__eyebrow {
    display: block;

    color: var(--hub-color-cyan);

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

.hub-timeline__title {
    margin: 7px 0 0;

    color: var(--hub-text-primary);

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

.hub-timeline__description {
    max-width: 670px;

    margin: 7px 0 0;

    color: var(--hub-text-muted);

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

.hub-timeline__summary {
    display: inline-flex;
    align-items: center;

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

    color: #67e8f9;

    border: 1px solid rgba(34, 211, 238, 0.17);
    border-radius: 999px;

    background: rgba(34, 211, 238, 0.07);

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

.hub-timeline__progress {
    display: grid;

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

    align-items: center;

    gap: 14px;

    margin-top: 20px;
    padding: 14px;

    border: 1px solid var(--hub-border-soft);
    border-radius: 16px;

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

.hub-timeline__progress-label {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 8px;

    color: var(--hub-text-secondary);

    font-size: 9px;
    font-weight: 800;
}

.hub-timeline__track {
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

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

.hub-timeline__bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: var(--hub-gradient-brand);

    transition:
        width 0.7s
        var(--hub-ease-standard);
}

.hub-timeline__percent {
    min-width: 58px;

    color: var(--hub-text-primary);

    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.hub-timeline__list {
    position: relative;

    display: grid;
    gap: 0;

    margin-top: 20px;
}

.hub-timeline__list::before {
    content: "";

    position: absolute;
    top: 21px;
    bottom: 21px;
    left: 20px;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            rgba(34, 211, 238, 0.48),
            rgba(59, 130, 246, 0.26),
            rgba(139, 92, 246, 0.12)
        );
}

.hub-timeline__item {
    position: relative;

    display: grid;

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

    align-items: center;

    gap: 12px;
    padding: 11px 0;
}

.hub-timeline__marker {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: var(--hub-text-subtle);

    border: 1px solid var(--hub-border-default);
    border-radius: 14px;

    background: #0c1428;

    box-shadow: 0 0 0 5px #091021;
}

.hub-timeline__item--completed
.hub-timeline__marker {
    color: #4ade80;

    border-color: rgba(34, 197, 94, 0.22);

    background: rgba(34, 197, 94, 0.10);
}

.hub-timeline__item--current
.hub-timeline__marker {
    color: #67e8f9;

    border-color: rgba(34, 211, 238, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(34, 211, 238, 0.13),
            rgba(59, 130, 246, 0.10)
        );

    box-shadow:
        0 0 0 5px #091021,
        0 0 28px rgba(34, 211, 238, 0.14);
}

.hub-timeline__item--locked
.hub-timeline__marker {
    opacity: 0.65;
}

.hub-timeline__content {
    min-width: 0;
    padding: 12px 14px;

    border: 1px solid var(--hub-border-soft);
    border-radius: 15px;

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

.hub-timeline__item--current
.hub-timeline__content {
    border-color: rgba(34, 211, 238, 0.18);

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

.hub-timeline__name {
    display: block;

    color: var(--hub-text-secondary);

    font-size: 10px;
    font-weight: 850;
}

.hub-timeline__text {
    display: block;

    margin-top: 4px;

    color: var(--hub-text-subtle);

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

.hub-timeline__status {
    display: inline-flex;
    align-items: center;

    gap: 5px;
    padding: 6px 8px;

    color: var(--hub-text-subtle);

    border: 1px solid var(--hub-border-soft);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);

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

.hub-timeline__item--completed
.hub-timeline__status {
    color: #4ade80;

    border-color: rgba(34, 197, 94, 0.16);

    background: rgba(34, 197, 94, 0.07);
}

.hub-timeline__item--current
.hub-timeline__status {
    color: #67e8f9;

    border-color: rgba(34, 211, 238, 0.18);

    background: rgba(34, 211, 238, 0.07);
}

@media (max-width: 620px) {
    .hub-timeline {
        padding: 17px;
        border-radius: 20px;
    }

    .hub-timeline__header {
        flex-direction: column;
    }

    .hub-timeline__progress {
        grid-template-columns: 1fr;
    }

    .hub-timeline__percent {
        text-align: left;
    }

    .hub-timeline__item {
        grid-template-columns:
            42px minmax(0, 1fr);
    }

    .hub-timeline__status {
        grid-column: 2;
        justify-self: start;
    }
}
