/* ── Affiliate Steps Block ── */

.affiliate-steps {
    position: relative;
    padding: 100px 0;
    background: #faf4e7;
    overflow-x: clip;
    overflow-y: visible;
}

/* ── Decorative coins ── */

.affiliate-steps__coins {
    position: absolute;
    right: -70px;
    top: -100px;
    width: 127px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    display: block;
    opacity: .8;
    transform: rotate(-15deg);
    transform-origin: center center;
}

/* ── Container ── */

.affiliate-steps .container {
    position: relative;
    z-index: 1;
}

/* ── Section title ── */

.affiliate-steps__title {
    font-family: "GT Flexa", sans-serif;
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 53px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #2d4059;
    text-align: center;
    margin: 0 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.affiliate-steps__title-line1,
.affiliate-steps__title-line2 {
    display: block;
}

.affiliate-steps__title-orange {
    color: #f7761f;
}

/* ── Two-column body ── */

.affiliate-steps__body {
    display: flex;
    align-items: center;
    gap: 118px;
}

/* ── Steps column ── */

.affiliate-steps__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 0 0 426px;
    height: 454px;
    justify-content: center;
}

/* Dashed connector line running along badge centers */

.affiliate-steps__connector {
    position: absolute;
    left: 19px;
    top: calc(50% - 22.5px);
    transform: translateY(-50%);
    width: 2px;
    height: 231px;
    border-left: 1.5px dashed rgba(247, 118, 31, 0.35);
    border-radius: 1px;
}

/* ── Single step ── */

.affiliate-steps__step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Step badge */

.affiliate-steps__step-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 96px;
    background: #f7761f;
    box-shadow: 0px 6px 7px rgba(247, 118, 31, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Figtree, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #fff;
    text-align: center;
}

/* Step text block */

.affiliate-steps__step-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.affiliate-steps__step-title {
    font-family: "GT Flexa", sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 28px;
    color: #2d4059;
    margin: 0;
    white-space: nowrap;
}

.affiliate-steps__step-desc {
    font-family: Figtree, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 26px;
    color: #505869;
    margin: 0;
}

/* ── Chart column ── */

.affiliate-steps__chart-wrap {
    position: relative;
    flex: 1;
}

/* ── Sparkle decoration ── */

.affiliate-steps__sparkle {
    position: absolute;
    top: -35px;
    right: -45px;
    width: 130px;
    height: 110px;
    pointer-events: none;
    z-index: 2;
}

.affiliate-steps__sparkle img {
    position: absolute;
    display: block;
}

/* Big star — top left of sparkle group */
.affiliate-steps__sparkle-big {
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
}

/* Small star — top right */
.affiliate-steps__sparkle-small {
    top: 3px;
    right: 0;
    width: 33px;
    height: 33px;
}

/* Mid star — bottom right */
.affiliate-steps__sparkle-mid {
    bottom: 0;
    right: 14px;
    width: 47px;
    height: 47px;
}

/* Vector cross — between big and small */
.affiliate-steps__sparkle-vector {
    top: 8px;
    left: 88px;
    width: 13px;
    height: 13px;
}

/* ── Chart card ── */

.affiliate-steps__chart-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        -72px -61px 26px 0px rgba(246, 129, 40, 0),
        -46px -39px 24px 0px rgba(246, 129, 40, 0.01),
        -26px -22px 20px 0px rgba(246, 129, 40, 0.03);
}

.affiliate-steps__chart-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Tablet ── */

@media (max-width: 991px) {
    .affiliate-steps {
        padding: 72px 0;
    }

    .affiliate-steps__coins {
        width: 90px;
    }

    .affiliate-steps__title {
        font-size: 40px;
        line-height: 46px;
        margin-bottom: 48px;
    }

    .affiliate-steps__body {
        gap: 40px;
    }

    .affiliate-steps__steps {
        flex: 0 0 340px;
    }
}

/* ── Mobile ── */

@media (max-width: 767px) {
    .affiliate-steps {
        padding: 48px 0;
    }

    .affiliate-steps__coins {
        display: none;
    }

    .affiliate-steps__title {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 40px;
        text-align: left;
        align-items: flex-start;
    }

    .affiliate-steps__body {
        flex-direction: column;
        gap: 40px;
    }

    .affiliate-steps__steps {
        flex: none;
        width: 100%;
        height: auto;
    }

    /* Recalculate connector for mobile (3 steps, auto height) */
    .affiliate-steps__connector {
        height: calc(100% - 80px);
        top: 40px;
        transform: none;
    }

    .affiliate-steps__step-title {
        white-space: normal;
    }

    .affiliate-steps__chart-wrap {
        width: 100%;
    }

    .affiliate-steps__sparkle {
        top: -40px;
        right: -10px;
        width: 100px;
        height: 90px;
    }

    .affiliate-steps__sparkle-big {
        width: 80px;
        height: 80px;
    }

    .affiliate-steps__sparkle-small {
        width: 27px;
        height: 27px;
    }

    .affiliate-steps__sparkle-mid {
        width: 38px;
        height: 38px;
    }

    .affiliate-steps__sparkle-vector {
        left: 72px;
        width: 11px;
        height: 11px;
    }
}
