/* =========================================================
   GDS — PREMIUM INTERACTIVE TESTIMONIALS
   Clean / Responsive / Swipe / Glow / Card Promotion
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.testimonials-section {
    position: relative;
    width: 100%;
    padding: 150px 0 130px;
    overflow: hidden;
    isolation: isolate;
}

.testimonials-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.testimonials-heading {
    margin-bottom: 70px;
}

.testimonials-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;

    color: rgba(255,255,255,.45);
}

.testimonials-line {
    width: 38px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #817aff
    );

    box-shadow: 0 0 14px rgba(129,122,255,.45);
}

.testimonials-heading-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: end;
}

.testimonials-heading h2 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 700;

    color: #fff;
}

.testimonials-heading h2 span {
    display: block;

    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #aaa5ff 50%,
        #706aff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.testimonials-heading-row p {
    max-width: 430px;
    margin: 0;

    font-size: 15px;
    line-height: 1.8;

    color: rgba(255,255,255,.5);
}


/* =========================================================
   SHOWCASE
========================================================= */

.testimonial-showcase {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(330px, .55fr);

    gap: 22px;

    isolation: isolate;
}


/* =========================================================
   MAIN CARD
========================================================= */

.testimonial-main {
    position: relative;

    min-height: 500px;

    padding: 1px;

    border-radius: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.16),
            rgba(125,116,255,.25),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 35px 100px rgba(0,0,0,.35),
        0 0 80px rgba(99,91,255,.07);

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-y;

    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        box-shadow .45s ease,
        opacity .3s ease;
}

.testimonial-main:active {
    cursor: grabbing;
}

.testimonial-main-inner {
    position: relative;
    z-index: 2;

    height: 100%;
    min-height: 498px;

    padding: 48px;

    border-radius: 29px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(107,100,255,.20),
            transparent 38%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(70,80,255,.06),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(26,27,35,.98),
            rgba(10,11,15,.98)
        );

    display: flex;
    flex-direction: column;
}

.testimonial-main-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    top: -250px;
    right: -150px;

    border-radius: 50%;

    background: #716aff;

    opacity: .18;

    filter: blur(100px);

    pointer-events: none;
}


/* =========================================================
   MAIN CARD SHINE
========================================================= */

.testimonial-main-inner::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(255,255,255,.035) 45%,
            transparent 70%
        );

    transform: translateX(-120%);

    animation: testimonialShine 7s ease-in-out infinite;

    pointer-events: none;
}

@keyframes testimonialShine {

    0%,
    55% {
        transform: translateX(-120%);
    }

    75%,
    100% {
        transform: translateX(120%);
    }

}


/* =========================================================
   MAIN TOP
========================================================= */

.testimonial-main-top {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-stars {
    font-size: 14px;
    letter-spacing: .13em;

    color: #fff;

    text-shadow:
        0 0 20px rgba(140,132,255,.55);
}

.testimonial-platform {
    padding: 8px 13px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;

    background: rgba(255,255,255,.04);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;

    color: rgba(255,255,255,.42);

    backdrop-filter: blur(10px);
}


/* =========================================================
   QUOTE
========================================================= */

.testimonial-main-quote {
    position: absolute;

    top: 70px;
    right: 55px;

    font-family: Georgia, serif;
    font-size: 150px;
    line-height: .7;

    color: rgba(125,118,255,.10);

    pointer-events: none;
}


/* =========================================================
   REVIEW TEXT
========================================================= */

.testimonial-main-text {
    position: relative;
    z-index: 3;

    max-width: 820px;

    margin: auto 0;

    font-family: "Manrope", sans-serif;

    font-size: clamp(22px, 2.3vw, 31px);
    line-height: 1.5;

    letter-spacing: -.025em;
    font-weight: 500;

    color: rgba(255,255,255,.92);

    transition:
        opacity .25s ease,
        transform .35s cubic-bezier(.22,1,.36,1);
}

.testimonial-main.is-changing .testimonial-main-text {
    opacity: 0;
    transform: translateY(12px);
}


/* =========================================================
   MAIN BOTTOM
========================================================= */

.testimonial-main-bottom {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-top: auto;
}

.testimonial-main-author {
    display: flex;
    align-items: center;
    gap: 13px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(125,117,255,.30),
            rgba(255,255,255,.04)
        );

    box-shadow:
        0 8px 30px rgba(0,0,0,.25),
        0 0 25px rgba(106,98,255,.08);

    font-size: 15px;
    font-weight: 800;

    color: #fff;
}

.testimonial-main-author strong {
    display: block;

    font-size: 14px;
    font-weight: 700;

    color: rgba(255,255,255,.9);
}

.testimonial-main-author span {
    display: block;

    margin-top: 4px;

    font-size: 11px;

    color: rgba(255,255,255,.4);
}


/* =========================================================
   COUNTER
========================================================= */

.testimonial-counter {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 10px;
    letter-spacing: .15em;

    color: rgba(255,255,255,.35);
}

.testimonial-counter [data-testimonial-current] {
    color: #fff;
}

.testimonial-counter-line {
    width: 35px;
    height: 1px;

    background: rgba(255,255,255,.18);
}


/* =========================================================
   MINI SELECTOR
========================================================= */

.testimonial-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   MINI CARD
========================================================= */

.testimonial-mini {
    position: relative;

    width: 100%;
    min-height: 112px;

    padding: 18px;

    display: grid;
    grid-template-columns:
        28px
        44px
        1fr
        auto;

    align-items: center;

    gap: 12px;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012)
        );

    color: #fff;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        border-color .4s ease,
        background .4s ease,
        box-shadow .4s ease,
        opacity .35s ease;
}

.testimonial-mini::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(130,122,255,.10),
            transparent
        );

    transform: translateX(-120%);

    transition: transform .7s ease;

    pointer-events: none;
}

.testimonial-mini:hover::before {
    transform: translateX(120%);
}

.testimonial-mini:hover {
    transform: translateX(-6px);

    border-color:
        rgba(125,117,255,.28);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25),
        0 0 35px rgba(99,91,255,.08);
}


/* =========================================================
   ACTIVE MINI
========================================================= */

.testimonial-mini.is-active {
    transform: translateX(-10px);

    border-color:
        rgba(128,120,255,.45);

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(104,96,255,.20),
            transparent 55%
        ),
        rgba(255,255,255,.055);

    box-shadow:
        0 20px 55px rgba(0,0,0,.30),
        0 0 45px rgba(99,91,255,.12);
}

.testimonial-mini.is-active::after {
    content: "";

    position: absolute;

    inset: -3px;

    border-radius: inherit;

    border: 1px solid rgba(128,120,255,.20);

    opacity: .8;

    animation: activeCardGlow 2.5s ease-in-out infinite;

    pointer-events: none;
}

@keyframes activeCardGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 rgba(120,112,255,0);
    }

    50% {
        box-shadow:
            0 0 28px rgba(120,112,255,.18);
    }

}


/* =========================================================
   MINI CONTENT
========================================================= */

.mini-number {
    font-size: 9px;
    letter-spacing: .1em;

    color: rgba(255,255,255,.25);
}

.testimonial-mini.is-active .mini-number {
    color: #8c86ff;
}

.mini-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(126,118,255,.28),
            rgba(255,255,255,.05)
        );

    border: 1px solid rgba(255,255,255,.1);

    font-size: 13px;
    font-weight: 800;

    flex-shrink: 0;

    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        box-shadow .4s ease;
}

.testimonial-mini.is-active .mini-avatar {
    transform: scale(1.08);

    box-shadow:
        0 0 25px rgba(123,114,255,.28);
}

.mini-info {
    min-width: 0;
}

.mini-info strong {
    display: block;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,.8);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-info small {
    display: block;

    margin-top: 4px;

    font-size: 9px;

    color: rgba(255,255,255,.35);

    white-space: nowrap;
}

.mini-stars {
    font-size: 8px;
    letter-spacing: .08em;

    color: rgba(255,255,255,.6);
}


/* =========================================================
   PROMOTION / FLYING CARD
========================================================= */

.testimonial-flying-card {
    position: fixed !important;

    z-index: 99999 !important;

    margin: 0 !important;

    pointer-events: none !important;

    border-radius: 20px !important;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(117,108,255,.35),
            transparent 55%
        ),
        #15161d !important;

    border:
        1px solid rgba(137,128,255,.65) !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 80px rgba(105,96,255,.28);

    transform-origin: center center;

    transition:
        left .65s cubic-bezier(.22,1,.36,1),
        top .65s cubic-bezier(.22,1,.36,1),
        width .65s cubic-bezier(.22,1,.36,1),
        height .65s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1),
        opacity .65s ease,
        border-radius .65s ease;
}

.testimonial-flying-card.is-flying {
    transform: scale(1.03);

    border-radius: 29px !important;

    box-shadow:
        0 40px 120px rgba(0,0,0,.65),
        0 0 110px rgba(110,101,255,.35);
}


/* =========================================================
   MINI CARD BEING PROMOTED
========================================================= */

.testimonial-mini.is-promoting {
    opacity: 0;

    transform:
        scale(.65)
        translateY(-15px);

    pointer-events: none;
}


/* =========================================================
   MAIN CARD PROMOTION STATES
========================================================= */

.testimonial-main.is-receiving {
    transform: scale(.975);

    box-shadow:
        0 0 0 1px rgba(133,125,255,.15),
        0 35px 100px rgba(0,0,0,.50),
        0 0 90px rgba(106,98,255,.25);
}

.testimonial-main.is-updated {
    animation:
        testimonialMainPop
        .55s
        cubic-bezier(.22,1,.36,1);
}

@keyframes testimonialMainPop {

    0% {
        transform: scale(.975);
        opacity: .7;
    }

    45% {
        transform: scale(1.018);
        opacity: 1;
    }

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

}


/* =========================================================
   SWIPE HINT
========================================================= */

.testimonial-swipe-hint {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 16px;

    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;

    color: rgba(255,255,255,.24);
}

.swipe-arrow {
    color: #817aff;

    animation:
        testimonialArrow
        1.8s
        ease-in-out
        infinite;
}

.swipe-arrow:last-child {
    animation-delay: .4s;
}

@keyframes testimonialArrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: .4;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

}


/* =========================================================
   TRUST LINE
========================================================= */

.testimonials-trust {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 38px;

    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;

    color: rgba(255,255,255,.28);
}

.trust-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #8d87ff;

    box-shadow:
        0 0 0 4px rgba(141,135,255,.08),
        0 0 18px rgba(141,135,255,.6);

    animation:
        trustPulse
        2s
        ease-in-out
        infinite;
}

@keyframes trustPulse {

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

    50% {
        transform: scale(1.25);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .testimonials-section {
        padding: 110px 0 100px;
    }

    .testimonials-heading-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial-showcase {
        grid-template-columns: 1fr;
    }

    .testimonial-selector {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonial-mini {
        min-height: 90px;

        grid-template-columns:
            36px
            1fr;

        padding: 14px;
    }

    .mini-number,
    .mini-stars {
        display: none;
    }

    .testimonial-mini:hover {
        transform: translateY(-5px);
    }

    .testimonial-mini.is-active {
        transform: translateY(-7px);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .testimonials-section {
        padding: 85px 0 80px;
    }

    .testimonials-container {
        width: calc(100% - 28px);
    }

    .testimonials-heading {
        margin-bottom: 38px;
    }

    .testimonials-eyebrow {
        font-size: 9px;
    }

    .testimonials-heading h2 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .testimonials-heading-row p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* =========================
       MAIN MOBILE CARD
    ========================= */

    .testimonial-main {
        min-height: 455px;

        border-radius: 25px;

        box-shadow:
            0 25px 70px rgba(0,0,0,.40),
            0 0 55px rgba(99,91,255,.08);
    }

    .testimonial-main-inner {
        min-height: 453px;

        padding: 27px 23px;

        border-radius: 24px;
    }

    .testimonial-main-text {
        font-size: 20px;
        line-height: 1.55;
    }

    .testimonial-main-quote {
        top: 58px;
        right: 22px;

        font-size: 100px;
    }

    .testimonial-avatar {
        width: 42px;
        height: 42px;
    }

    .testimonial-counter {
        display: none;
    }


    /* =========================
       MOBILE MINI CARDS
    ========================= */

    .testimonial-selector {
        display: flex;

        flex-direction: row;

        gap: 9px;

        width: 100%;

        overflow-x: auto;

        padding:
            8px
            5px
            14px;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior-x: contain;
    }

    .testimonial-selector::-webkit-scrollbar {
        display: none;
    }


    .testimonial-mini {
        flex:
            0 0
            78px;

        width: 78px;
        min-height: 78px;

        padding: 7px;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 5px;

        border-radius: 17px;

        scroll-snap-align: center;

        transition:
            transform .45s cubic-bezier(.22,1,.36,1),
            opacity .35s ease,
            border-color .35s ease,
            box-shadow .35s ease;
    }


    .testimonial-mini:hover {
        transform: translateY(-4px);
    }


    .testimonial-mini.is-active {
        transform:
            translateY(-8px)
            scale(1.07);

        border-color:
            rgba(128,120,255,.55);

        box-shadow:
            0 15px 35px rgba(0,0,0,.35),
            0 0 35px rgba(99,91,255,.18);
    }


    .mini-number {
        display: none;
    }


    .mini-avatar {
        width: 36px;
        height: 36px;

        font-size: 11px;
    }


    .mini-info {
        width: 100%;

        text-align: center;
    }


    .mini-info strong {
        max-width: 68px;

        margin: 0 auto;

        font-size: 8px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .mini-info small {
        display: none;
    }


    .mini-stars {
        display: block;

        font-size: 6px;

        letter-spacing: 0;
    }


    /* =========================
       MOBILE FLYING CARD
    ========================= */

    .testimonial-flying-card {
        border-radius: 18px !important;

        box-shadow:
            0 25px 70px rgba(0,0,0,.65),
            0 0 90px rgba(111,102,255,.32);
    }

    .testimonial-flying-card.is-flying {
        transform: scale(1.015);

        border-radius: 25px !important;
    }


    .testimonial-main.is-receiving {
        transform: scale(.97);
    }


    .testimonial-main.is-updated {
        animation:
            testimonialMobilePop
            .55s
            cubic-bezier(.22,1,.36,1);
    }

    @keyframes testimonialMobilePop {

        0% {
            transform:
                scale(.97)
                translateY(8px);

            opacity: .65;
        }

        45% {
            transform:
                scale(1.025)
                translateY(-3px);

            opacity: 1;
        }

        100% {
            transform:
                scale(1)
                translateY(0);

            opacity: 1;
        }

    }


    /* =========================
       SWIPE HINT
    ========================= */

    .testimonial-swipe-hint {
        font-size: 8px;

        margin-top: 7px;

        gap: 8px;
    }


    /* =========================
       TRUST
    ========================= */

    .testimonials-trust {
        margin-top: 28px;

        font-size: 8px;

        text-align: center;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .testimonials-container {
        width: calc(100% - 20px);
    }

    .testimonial-main {
        min-height: 430px;
    }

    .testimonial-main-inner {
        min-height: 428px;

        padding:
            24px 19px;
    }

    .testimonial-main-text {
        font-size: 18px;
        line-height: 1.55;
    }

    .testimonial-mini {
        flex-basis: 72px;
        width: 72px;
    }

}


/* =========================================================
   DRAG STATE
========================================================= */

.testimonial-main.is-dragging {
    cursor: grabbing;

    transform: scale(.985);
}

@media (max-width: 640px) {

    .testimonial-main.is-dragging {
        transform: scale(.975);
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.testimonial-mini:focus-visible {
    outline: 2px solid rgba(129,122,255,.8);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .testimonial-main,
    .testimonial-main-text,
    .testimonial-mini,
    .testimonial-flying-card,
    .testimonial-swipe-hint *,
    .trust-dot,
    .testimonial-main-inner::before,
    .testimonial-mini.is-active::after,
    .testimonial-mini.is-active .mini-avatar {

        transition: none !important;
        animation: none !important;
    }

}