:root{
    --tb-card-w: 14rem;
    --tb-gap: clamp(1.7rem, 4vw, 5rem);
}

.hero-badges-resp-wrapper {
    max-width: calc((var(--tb-card-w) * 4) + (var(--tb-gap) * 3));
    margin-inline: auto;

    .ct-div-block.badges-resp {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: var(--tb-gap);

        .tb-badge-wrapper {
            min-width: var(--tb-card-w);
            max-width: var(--tb-card-w);
            flex: 0 1 calc((100% - (var(--tb-gap) * 3)) / 4);

            .tb-badges {
                min-width: 6rem;
                min-height: 6rem;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: radial-gradient(
                        circle at 30% 30%,
                        #9aff9a 0%,
                        #4fe36f 35%,
                        #24b84a 65%,
                        #15963a 100%
                );
                box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35),
                inset 0 3px 6px rgba(255, 255, 255, 0.45),
                inset 0 -6px 10px rgba(0, 0, 0, 0.35);
                border: 1px solid rgba(255, 255, 255, 0.35);

                &::before {
                    content: "";
                    position: absolute;
                    inset: 6px;
                    border-radius: 50%;
                    background: radial-gradient(
                            circle at 30% 25%,
                            rgba(255, 255, 255, 0.85),
                            rgba(255, 255, 255, 0.35) 35%,
                            rgba(255, 255, 255, 0.05) 55%,
                            transparent 60%
                    );
                    pointer-events: none;
                }

                &::after {
                    content: "";
                    position: absolute;
                    inset: -4px;
                    border-radius: 50%;
                    border: 2px solid rgba(180, 255, 180, 0.45);
                    filter: blur(0.4px);
                    pointer-events: none;
                }

                & svg,
                & i {
                    position: relative;
                    z-index: 1;
                    font-size: 28px;
                    color: #0a2f14;
                }
            }
        }
    }
}

@media (max-width: 767px){
    .hero-badges-resp-wrapper {
        max-width: calc((var(--tb-card-w) * 2) + (var(--tb-gap) * 1));
    }
}

.cta-frame {
    --aura-w: 240%;
    --aura-h: 100%;
    --aura-blur: 160px;
    --aura-y: 50%;
    --green-strong: rgba(86,221,106,0.55);
    --green-mid: rgba(126,230,146,0.45);
    --green-soft: rgba(186,239,193,0.40);

    position: relative;
    overflow: hidden;
    padding: 0.9rem;
    border-radius: 1.2rem;
    isolation: isolate;
    background-color: #050705;

    &::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: var(--aura-w);
        height: var(--aura-h);
        transform: translate(-50%, -50%);
        z-index: -2;
        pointer-events: none;
        background:
                radial-gradient(
                        ellipse at 50% var(--aura-y),
                        var(--green-strong) 0%,
                        var(--green-mid) 28%,
                        var(--green-soft) 46%,
                        rgba(186,239,193,0.10) 58%,
                        rgba(186,239,193,0.00) 72%
                ),
                radial-gradient(
                        ellipse at 50% 58%,
                        rgba(0,0,0,0.10) 0%,
                        rgba(0,0,0,0.00) 52%
                );
        filter: blur(var(--aura-blur));
        opacity: 1;
    }

    &::after {
        content: "";
        position: absolute;
        inset: 0.9rem;
        border-radius: 1.2rem;
        z-index: -1;
        pointer-events: none;
        background:
                radial-gradient(
                        ellipse at 50% 55%,
                        rgba(86,221,106,0.18) 0%,
                        rgba(186,239,193,0.08) 45%,
                        rgba(186,239,193,0.00) 72%
                );
    }

    .cta-image {
        width: 100%;
        display: block;
        border-radius: 1rem !important;
        filter: brightness(0.96) contrast(1.04) saturate(1.05);
        box-shadow:
                0 0 0 1px rgba(86,221,106,0.35),
                0 18px 55px rgba(0,0,0,0.35);
    }

    .cta-overlay {
        position: absolute;
        left: 50%;
        top: clamp(1.5rem, 3vw, 4rem);
        transform: translateX(-50%);
        justify-content: center;
        padding: clamp(0.8rem, 2vw, 1.5rem);
        text-align: center;
        border-radius: 1rem;
        border: 1px solid rgba(86,221,106,0.28);
        background:
                linear-gradient(
                        180deg,
                        rgba(6,12,8,0.85),
                        rgba(6,12,8,0.7)
                );
        backdrop-filter: blur(6px);
        box-shadow:
                0 20px 55px rgba(0,0,0,0.45),
                0 0 35px rgba(86,221,106,0.12);

        &.bottom {
            top: unset;
            bottom: clamp(1.5rem, 3vw, 4rem);
        }
    }

    @media (max-width: 597px) {
        .cta-overlay {
            width: 100%;
            max-width: 10rem;
        }
    }
}

.ct-div-block.info-panel-wrapper {
    margin-top: clamp(-1.8rem, calc(2.8rem - 5vw), 1rem);
}

.info-panel {
    position: relative;
    padding: clamp(1.2rem, 2.4vw, 2.2rem);
    border-radius: 1rem;
    background:
            linear-gradient(
                    180deg,
                    rgba(6,12,8,0.78),
                    rgba(6,12,8,0.88)
            );
    border: 1px solid rgba(86,221,106,0.28);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);

    &::before {
        content:"";
        position:absolute;
        inset:0;
        border-radius: inherit;
        pointer-events:none;
        box-shadow:
                0 20px 55px rgba(0,0,0,0.45),
                0 0 35px rgba(86,221,106,0.12);
    }

    &::after {
        content:"";
        position:absolute;
        left: 10%;
        right: 10%;
        top: 0;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(28,44,84,0.95), transparent);
        opacity: 0.85;
    }
}

:root {
    --tb-tool-card-w: 30rem;
    --tb-tool-gap: clamp(1.6rem, 1.4vw, 3.2rem);
}

.tools-wrapper {
    max-width: calc((var(--tb-tool-card-w) * 3) + (var(--tb-tool-gap) * 2));
    margin-inline: auto;
}

.qna-wrapper {
    max-width: calc((var(--tb-tool-card-w) * 4) + (var(--tb-tool-gap) * 3));
    margin-inline: auto;
}

@media (max-width: 2070px){
    .qna-wrapper {
        max-width: calc((var(--tb-tool-card-w) * 3) + (var(--tb-tool-gap) * 2));
    }
}

@media (max-width: 1651px){
    .tools-wrapper,
    .qna-wrapper {
        max-width: calc((var(--tb-tool-card-w) * 2) + (var(--tb-tool-gap) * 1));
    }
}

@media (max-width: 1113px){
    .tools-wrapper,
    .qna-wrapper {
        max-width: var(--tb-tool-card-w);
    }
}

.tb-form-wrapper {
    max-width: 60rem;
}

@media (max-width: 1024px){
    .tb-form-wrapper {
        max-width: 32rem;
    }
}

.tbh-form {
    min-width: var(--tb-tool-card-w);
    max-width: var(--tb-tool-card-w);
}

.ct-div-block.tools {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.6rem, 1.4vw, 3.2rem);
    margin: 0 auto;
    align-items: flex-start;
}

@media (max-width: 555px) {
    .tbh-form {
        min-width: unset;
    }
}

.vytal-slider-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between;
}

@media (max-width: 1557px) {
    .vytal-slider-wrapper {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 786px) {
    .vytal-slider-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3.5rem;
    }
}

.vytal-slider-div,
.vytal-slider-div-reverse {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

@media (max-width: 786px) {
    .vytal-slider-div {
        flex-direction: column !important;
        max-width: 21rem;
    }

    .vytal-slider-div-reverse {
        flex-direction: column-reverse !important;
        max-width: 21rem;
    }
}

@media (max-width: 375px) {
    .vytal-slider-div,
    .vytal-slider-div-reverse {
        max-width: 95%;
    }
}

.tb-slider,
.tb-slider-2 {
    width: 21rem;
    border-radius: 1rem;

    &.large {
        width: 40rem;
    }
}

@media (max-width: 680px) {
    .large {
        max-width: 100% !important;
    }
}

@media (max-width: 425px) {
    .tb-slider,
    .tb-slider-2 {
        max-width: 100% !important;
    }
}

.tb-slide {
    display: none !important;
}

.tb-slide.is-active {
    display: flex !important;
}

.tb-slide img {
    display: block;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    animation: tbFadeIn .45s ease;
}

@keyframes tbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tb-steps {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 1.4rem;
    align-items: stretch !important;
}

.tb-step-icon {
    padding-right: 1px;
    padding-bottom: 2px;
    width: 3rem;
    height: 3rem;
    border-radius: 2rem;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 20%, #ffffff, rgba(80,130,220,0.7));
    color: #111;
    font-weight: 800;
    box-shadow: 1px 1px 15px rgba(80, 130, 220, 0.6);
    margin-bottom: 0.9rem;
    z-index: 9;
    transition: transform .2s ease;
}

.tb-step-card.tb-in-view:hover .tb-step-icon,
.tb-step-card.tb-in-view.is-active .tb-step-icon {
    transform: scale(1.08);
}

.tb-step-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    opacity: 0;
    transform: translateY(1rem);
    flex: 1 1 calc((100% - 3 * 1.4rem) / 4);
    max-width: calc((100% - 3 * 1.4rem) / 4);
    position: relative;
    overflow: hidden;
    background: radial-gradient(
            circle at 18% 12%,
            rgba(80, 130, 220, 0.28) 0%,
            rgba(80, 130, 220, 0.18) 32%,
            transparent 62%
    );
    border: 1px solid #5082dc;
    border-radius: 1rem;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transition:
            opacity 0.9s ease,
            transform 0.35s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease;
    will-change: transform;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
                circle at 18% 12%,
                rgba(80, 130, 220, 0.28) 0%,
                rgba(80, 130, 220, 0.12) 32%,
                transparent 62%
        );
        opacity: 0;
        transition: opacity .25s ease;
        pointer-events: none;
    }

    &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 4px;
        width: 0;
        background: linear-gradient(
                90deg,
                rgba(80, 130, 220, 0.25),
                rgba(80, 130, 220, 0.75)
        );
        transition: width .8s ease;
    }

    &.tb-in-view {
        opacity: 1;
        transform: translateY(0);
    }

    &.tb-in-view.is-active,
    &.tb-in-view:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
        background: linear-gradient(
                180deg,
                rgba(80, 130, 220, 0.22) 0%,
                rgba(255, 255, 255, 0.96) 100%
        );
    }

    &.tb-in-view.is-active::before,
    &.tb-in-view:hover::before {
        opacity: 1;
    }

    &.tb-in-view.is-active::after,
    &.tb-in-view:hover::after {
        width: 100%;
    }
}

@media (max-width: 1099px) {
    .tb-step-card {
        flex: 1 1 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }

    .tb-steps::before,
    .tb-pulse {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .tb-step-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.tb-demo-container {
    background: rgb(10 16 30 / 67%) linear-gradient(
            150deg,
            rgba(60, 90, 160, 0) 25%,
            rgba(80, 130, 220, 0.28) 75%,
            rgba(60, 90, 160, 0) 90%
    );
    padding: clamp(1.4rem, 2vw, 2.2rem);
    border: 1px solid #3b4c7a;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.38);
}

.tb-demo-price-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(
            135deg,
            rgba(8, 18, 40, 0.72),
            rgba(20, 40, 80, 0.5)
    );
    border: 1px solid rgba(43, 212, 143, 0.4);
    box-shadow:
            0 0 0.75rem rgba(43, 212, 143, 0.12),
            0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
    transform: rotate(-1.5deg);
    backdrop-filter: blur(6px);
}

.tb-demo-price-label {
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
}

.tb-demo-price {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 0.8rem rgba(43, 212, 143, 0.12);
}

.tb-demo-stage {
    display: grid !important;
}

.tb-demo-stage > .tb-demo-content {
    grid-area: 1 / 1;
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tb-demo-stage > .tb-demo-content.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1016px) {
    .tb-demo-stage > .tb-demo-content {
        display: grid !important;
        grid-template-columns: 1fr;
        min-width: 0;
    }
}

.tb-prev-btn,
.tb-next-btn {
    position: relative;
    display: flex !important;
    place-items: center;
    min-height: 1rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tb-prev-btn::before,
.tb-next-btn::before {
    content: none;
}

.tb-prev-btn::after,
.tb-next-btn::after {
    content: "";
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border-top: 5px solid rgba(255, 255, 255, 0.96);
    border-right: 5px solid rgba(255, 255, 255, 0.96);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.tb-prev-btn::after {
    transform: translateX(0.1rem) rotate(-135deg);
}

.tb-next-btn::after {
    transform: translateX(-0.1rem) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
    .tb-prev-btn:hover::after,
    .tb-next-btn:hover::after {
        border-color: #2bd48f;
        filter: drop-shadow(0 0 10px rgba(43, 212, 143, 0.28));
    }

    .tb-prev-btn:hover::after {
        transform: translateX(-0.02rem) rotate(-135deg) scale(1.06);
    }

    .tb-next-btn:hover::after {
        transform: translateX(0.02rem) rotate(45deg) scale(1.06);
    }
}

.tb-prev-btn:active::after,
.tb-next-btn:active::after {
    opacity: 0.82;
}

.tb-prev-btn:active::after {
    transform: translateX(0.18rem) rotate(-135deg) scale(0.96);
}

.tb-next-btn:active::after {
    transform: translateX(-0.18rem) rotate(45deg) scale(0.96);
}

.tb-demo-indicator {
    position: relative;
    flex: 1 1 0;
    min-width: 3rem;
    min-height: 1rem;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.tb-demo-indicator::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0e7c66, #2bd48f);
    opacity: 0.35;
    transform: scaleX(1);
    transform-origin: left center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tb-demo-indicator.is-active {
    opacity: 1;
}

.tb-demo-indicator.is-active::after {
    opacity: 1;
    transform: scaleX(1.02);
}

.vytal-link-img {
    border-radius: 0.5rem;
    overflow: hidden;
}

#vytal-intro {
    width: min(92vw, 60rem);
    max-width: 60rem;
    overflow: visible;
    padding: 0;
    line-height: 0;
}

#vytal-intro .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#vytal-intro .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

#vytal-video > .oxygen-vsb-responsive-video-wrapper {
    padding-bottom: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
}

body.oxygen-builder-body .tb-step-card,
body.oxygen-builder-body .options-hidden {
    display: block !important;
    opacity: 0.5;
    position: relative !important;
}
