/* =========================================================
   WPBAKERY TECH STACK WIDGET — DIRECT PAGE WIDGET
   No popup. Scoped to .wpb-tsp-widget.
========================================================= */

.wpb-tsp-widget {
    --tsp-purple: #9b51e0;
    --tsp-purple-dark: #6d28d9;
    --tsp-muted: #64748b;
    --tsp-tab-bg: rgba(241,245,249,.86);
    --tsp-border: rgba(155,81,224,.28);
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.wpb-tsp-tabs-wrap {
    width: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 20;
}

.wpb-tsp-tabs {
    width: min(94%, 1180px);
    margin: 0 auto;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: var(--tsp-tab-bg);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.035), 0 4px 16px rgba(0,0,0,.025);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wpb-tsp-tabs::-webkit-scrollbar { display: none; }

.wpb-tsp-tab {
    flex: 1 0 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tsp-muted);
    border-radius: 999px;
    padding: 9px 15px;
    min-height: 36px;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.wpb-tsp-tab:hover { color: #334155; }

.wpb-tsp-tab.is-active {
    background: #fff;
    color: var(--tsp-purple-dark);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(109,40,217,.16), 0 1px 3px rgba(0,0,0,.07);
}

.wpb-tsp-tab:active { transform: scale(.97); }

.wpb-tsp-arena {
    position: relative;
    width: min(840px, 100%);
    height: 440px;
    margin: 38px auto 0;
    overflow: hidden;
}

.wpb-tsp-orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: filter .4s ease;
}

.wpb-tsp-orbit-svg.pulse-wave {
    filter: drop-shadow(0 0 12px rgba(155,81,224,.45));
}

.wpb-tsp-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wpb-tsp-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--tsp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(155,81,224,.16), 0 3px 8px rgba(0,0,0,.04);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.82);
    filter: blur(3px);
    transition: opacity .38s ease, transform .4s cubic-bezier(.175,.885,.32,1.25), filter .38s ease, box-shadow .3s ease, border-color .3s ease;
}

.wpb-tsp-node.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
}

.wpb-tsp-node:hover {
    border-color: var(--tsp-purple);
    box-shadow: 0 16px 36px rgba(155,81,224,.30);
    z-index: 20;
    transform: translate(-50%, -50%) scale(1.10);
}

.wpb-tsp-node img {
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.08));
    transition: transform .3s ease;
}

.wpb-tsp-node:hover img { transform: scale(1.08); }

.wpb-tsp-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 30;
}

.wpb-tsp-node:hover .wpb-tsp-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wpb-tsp-center {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.wpb-tsp-center-title {
    display: inline-block;
    color: var(--tsp-purple-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(109,40,217,.20);
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.wpb-tsp-mobile { display: none; }

@media (max-width: 860px) {
    .wpb-tsp-tabs-wrap { padding: 0 10px; }
    .wpb-tsp-tabs { width: 100%; justify-content: flex-start; }
    .wpb-tsp-tab { flex: 0 0 auto; font-size: 12px; }

    .wpb-tsp-arena {
        transform: scale(.88);
        transform-origin: top center;
        margin-bottom: -55px;
    }
}

@media (max-width: 600px) {
    .wpb-tsp-arena { display: none; }

    .wpb-tsp-tabs {
        border-radius: 18px;
        padding: 5px;
    }

    .wpb-tsp-tab {
        font-size: 11px;
        padding: 8px 12px;
    }

    .wpb-tsp-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 13px;
        width: 100%;
        padding: 25px 15px 10px;
    }

    .wpb-tsp-mobile-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .wpb-tsp-mobile-btn {
        width: 72px;
        height: 72px;
        padding: 13px;
        border-radius: 18px;
        background: rgba(255,255,255,.94);
        border: 1.5px solid rgba(155,81,224,.20);
        box-shadow: 0 6px 20px rgba(155,81,224,.08);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        outline: 0;
        transition: all .28s cubic-bezier(.16,1,.3,1);
    }

    .wpb-tsp-mobile-btn.is-active {
        border-color: var(--tsp-purple);
        box-shadow: 0 8px 24px rgba(155,81,224,.28), 0 0 0 3px rgba(155,81,224,.16);
        transform: scale(1.08);
    }

    .wpb-tsp-mobile-btn img {
        width: 38px;
        height: 38px;
        object-fit: contain;
        pointer-events: none;
    }

    .wpb-tsp-mobile-label {
        margin-top: 3px;
        padding: 9px 22px;
        min-height: 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(155,81,224,.07);
        border: 1.5px solid rgba(155,81,224,.24);
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(155,81,224,.08);
    }

    .wpb-tsp-mobile-label span {
        color: var(--tsp-purple-dark);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        transition: opacity .15s ease, transform .15s ease;
    }
}
