/* Explain: Styles for the animated 3-day disbursement timeline in the hero section. */
/* Animated 3-day disbursement panel (hero) */
.disbursement-panel {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.35rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
    box-shadow: 0 30px 70px rgba(6, 27, 58, 0.45);
}

.disbursement-head {
    display: flex;
    justify-content: center;
}

.disbursement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(253, 185, 19, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.disbursement-pill i {
    color: var(--accent-color);
}

.disbursement-clock {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 14rem);
    aspect-ratio: 1 / 1;
    margin: 1.35rem auto 0;
}

.disbursement-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 5;
}

.ring-fill {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    animation: ring-fill 12s linear infinite;
}

@keyframes ring-fill {
    0% {
        stroke-dashoffset: 327;
    }

    75%,
    100% {
        stroke-dashoffset: 0;
    }
}

.clock-sweep {
    position: absolute;
    inset: 0;
    animation: sweep-spin 12s linear infinite;
}

.clock-sweep::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6.6%;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.22), 0 0 20px rgba(253, 185, 19, 0.85);
    transform: translate(-50%, -50%);
}

@keyframes sweep-spin {
    0% {
        transform: rotate(0deg);
    }

    75%,
    100% {
        transform: rotate(1080deg);
    }
}

.clock-face {
    position: absolute;
    inset: 23%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(6, 27, 58, 0.62);
    animation: face-cycle 12s linear infinite;
}

@keyframes face-cycle {
    0%,
    74% {
        opacity: 1;
    }

    78%,
    100% {
        opacity: 0;
    }
}

.clock-day {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: day-cycle 12s linear infinite;
}

.clock-day small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.clock-day-1 {
    animation-delay: 0s;
}

.clock-day-2 {
    animation-delay: 3s;
}

.clock-day-3 {
    animation-delay: 6s;
}

@keyframes day-cycle {
    0% {
        opacity: 0;
        transform: translateY(0.4rem) scale(0.9);
    }

    4% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    24% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    29%,
    100% {
        opacity: 0;
        transform: translateY(-0.4rem) scale(0.9);
    }
}

.clock-happy {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    animation: happy-pop 12s linear infinite;
}

.clock-happy i {
    display: grid;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22C55E, var(--success-color));
    box-shadow: 0 0 0 0.6rem rgba(34, 197, 94, 0.18), 0 18px 40px rgba(21, 128, 61, 0.5);
    color: var(--white-color);
    font-size: 2.3rem;
}

@keyframes happy-pop {
    0%,
    74% {
        opacity: 0;
        transform: scale(0.4);
    }

    79% {
        opacity: 1;
        transform: scale(1.12);
    }

    83%,
    96% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.92);
    }
}

.disbursement-steps {
    display: grid;
    gap: 0.55rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.dis-step {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 700;
}

.dis-step-num {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
}

.dis-step-text {
    flex: 1 1 auto;
}

.dis-step-check {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.85);
    color: var(--white-color);
    font-size: 0.6rem;
    opacity: 0;
    transform: scale(0.6);
}

.dis-step-1 {
    animation: dis-step-1 12s linear infinite;
}

.dis-step-2 {
    animation: dis-step-2 12s linear infinite;
}

.dis-step-3 {
    animation: dis-step-3 12s linear infinite;
}

.dis-step-1 .dis-step-check {
    animation: dis-check-1 12s linear infinite;
}

.dis-step-2 .dis-step-check {
    animation: dis-check-2 12s linear infinite;
}

.dis-step-3 .dis-step-check {
    animation: dis-check-3 12s linear infinite;
}

@keyframes dis-step-1 {
    0%,
    3% {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
    }

    5%,
    23% {
        border-color: rgba(253, 185, 19, 0.75);
        background: rgba(253, 185, 19, 0.14);
    }

    27%,
    100% {
        border-color: rgba(34, 197, 94, 0.55);
        background: rgba(34, 197, 94, 0.16);
    }
}

@keyframes dis-step-2 {
    0%,
    28% {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
    }

    31%,
    48% {
        border-color: rgba(253, 185, 19, 0.75);
        background: rgba(253, 185, 19, 0.14);
    }

    52%,
    100% {
        border-color: rgba(34, 197, 94, 0.55);
        background: rgba(34, 197, 94, 0.16);
    }
}

@keyframes dis-step-3 {
    0%,
    53% {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
    }

    56%,
    73% {
        border-color: rgba(253, 185, 19, 0.75);
        background: rgba(253, 185, 19, 0.14);
    }

    77%,
    100% {
        border-color: rgba(34, 197, 94, 0.55);
        background: rgba(34, 197, 94, 0.16);
    }
}

@keyframes dis-check-1 {
    0%,
    24% {
        opacity: 0;
        transform: scale(0.6);
    }

    28%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dis-check-2 {
    0%,
    49% {
        opacity: 0;
        transform: scale(0.6);
    }

    53%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dis-check-3 {
    0%,
    74% {
        opacity: 0;
        transform: scale(0.6);
    }

    78%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.disbursement-note {
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.disbursement-note i {
    margin-right: 0.35rem;
    color: var(--accent-color);
}

@media (prefers-reduced-motion: reduce) {
    .ring-fill,
    .clock-sweep,
    .clock-face,
    .clock-day,
    .clock-happy,
    .dis-step {
        animation: none;
    }

    .dis-step-1 .dis-step-check,
    .dis-step-2 .dis-step-check,
    .dis-step-3 .dis-step-check {
        animation: none;
    }

    .ring-fill {
        stroke-dashoffset: 0;
    }

    .clock-face,
    .clock-day {
        opacity: 0;
    }

    .clock-happy {
        opacity: 1;
    }

    .dis-step {
        border-color: rgba(34, 197, 94, 0.55);
        background: rgba(34, 197, 94, 0.16);
    }

    .dis-step-check {
        opacity: 1;
        transform: scale(1);
    }
}