.testimonial-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 5rem 0 7.5rem 0;
    background: radial-gradient(circle at 75% 15%, rgba(112, 163, 10, .24), transparent 26rem),
                radial-gradient(circle at 20% 85%, rgba(112, 163, 10, .14), transparent 28rem),
                linear-gradient(180deg, #020302, #071006 48%, #020302);
    overflow: hidden;
    isolation: isolate;
}

.testimonial-wrapper:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(rgba(112, 163, 10, .14) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(112, 163, 10, .12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 78%);
    z-index: -1;
}

.testimonial-section {
    width: min(885px, 92vw);
    position: relative;
    margin: 0 auto;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--pixo);
    font-family: Orbitron, sans-serif;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-label:before {
    content: "+";
    font-size: 2.7rem;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-5px);
}

.bubble-wrap {
    position: relative;
    border: 2px solid var(--pixo);
    border-radius: 44px;
    min-height: 470px;
    padding: 4.1rem 4.5rem 3rem;
    background: radial-gradient(circle at 80% 12%, rgba(112, 163, 10, .22), transparent 24rem), linear-gradient(180deg, rgba(112, 163, 10, .11), rgba(255, 255, 255, .025)), #030503;
    box-shadow: 0 0 34px rgba(112, 163, 10, .35), inset 0 0 38px rgba(112, 163, 10, .08), 0 36px 100px rgba(0, 0, 0, .55)
}

.bubble-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 42px;
    background: linear-gradient(rgba(112, 163, 10, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 163, 10, .08) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .34;
    pointer-events: none
}

.bubble-tail {
    position: absolute;
    bottom: -64px;
    left: 7.25rem;
    z-index: 10;
    filter: drop-shadow(0 16px 16px rgba(112, 163, 10, .25));
    pointer-events: none;
}

.slides-wrapper, .quote-icon {
    position: relative;
    z-index: 12
}

.slides-wrapper {
    display: grid;
}

.testimonial-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-slide.active {
    visibility: visible;
    pointer-events: auto;
    animation: fadeUp .35s ease both
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.mini-title {
    color: var(--pixo);
    font-family: Orbitron, sans-serif;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 3.1rem
}

.quote-icon {
    position: absolute;
    right: 2.4rem;
    top: 1.8rem;
    color: var(--pixo);
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: .7;
    opacity: .95;
    text-shadow: 0 0 24px rgba(112, 163, 10, .5)
}

.quote-text {
    max-width: 830px;
    color: #fff;
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(1.25rem, 2.05vw, 1.9rem);
    line-height: 1.55;
    letter-spacing: .045em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 2.5rem;
    text-shadow: 0 0 18px rgba(255, 255, 255, .12)
}

.quote-divider {
    width: 145px;
    height: 3px;
    border-radius: 99px;
    background: var(--pixo);
    box-shadow: 0 0 18px rgba(112, 163, 10, .7);
    margin-bottom: 1.7rem
}

.client-row {
    margin-top: auto;
}

.client-name {
    color: var(--pixo);
    font-family: Orbitron, sans-serif;
    font-size: 1.2rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .45rem
}

.client-role {
    color: #fff;
    font-family: Orbitron, sans-serif;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9
}

.stars {
    color: var(--pixo);
    letter-spacing: .35em;
    margin-top: 1rem;
    font-size: 2.1rem
}

.controls-layer {
    position: absolute;
    bottom: 3rem;
    right: 4.5rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 1rem
}

.nav-btn {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 2px solid rgba(155, 221, 34, .35);
    background: rgba(255, 255, 255, .025);
    color: var(--pixo);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .25s ease
}

.nav-btn:hover {
    border-color: var(--pixo);
    box-shadow: 0 0 24px rgba(112, 163, 10, .45);
    transform: translateY(-2px)
}

.testimonial-progress {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    color: var(--pixo);
    font-family: Orbitron, sans-serif;
    font-size: .95rem;
    letter-spacing: .12em;
    margin-top: 1.8rem
}

.testimonial-bars {
    display: flex;
    gap: .35rem
}

.bar {
    width: 28px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14)
}

.bar.active {
    background: var(--pixo);
    box-shadow: 0 0 14px rgba(112, 163, 10, .65)
}

@media (max-width: 900px) {
    .bubble-wrap {
        padding: 3rem 2rem 2.3rem;
        min-height: 520px
    }

    .bubble-tail {
        left: 3rem
    }

    .quote-icon {
        font-size: 5.5rem;
        right: 1.5rem
    }

    .client-row {
        /* No longer needs flex-direction column since controls are extracted */
    }

    .controls-layer {
        position: static;
        margin-top: 1.5rem;
        align-items: flex-start;
    }

    .testimonial-progress {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .quote-text {
        font-size: 1.02rem;
        line-height: 1.62
    }

    .mini-title {
        margin-bottom: 2.2rem
    }

    .nav-btn {
        width: 52px;
        height: 52px
    }

    .bubble-wrap {
        border-radius: 30px
    }
}
