/* FBOMaster pricing cockpit controls */
.fbo-pricing-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: var(--stg-large-gap);
}

.fbo-toggle-panel {
    min-width: min(100%, 320px);
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 28, 42, 0.94), rgba(8, 12, 21, 0.98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.06);
}

.fbo-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0 0 8px 8px;
    padding: 0 4px;
    color: var(--dhaasu-s-text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.fbo-toggle-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #68e0ff;
    box-shadow: 0 0 10px rgba(104, 224, 255, 0.9);
    animation: fbo-status-pulse 2.4s ease-in-out infinite;
}

.fbo-segmented-control {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(104, 224, 255, 0.12);
    border-radius: 12px;
    background: rgba(2, 7, 14, 0.72);
}

.fbo-segmented-control::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 7.5px);
    border: 1px solid rgba(104, 224, 255, 0.48);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(104, 224, 255, 0.2), rgba(71, 113, 255, 0.14));
    box-shadow: 0 0 22px rgba(55, 166, 255, 0.16), inset 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 420ms cubic-bezier(0.22, 1.35, 0.36, 1), box-shadow 260ms ease;
    pointer-events: none;
}

.fbo-segmented-control:has(label:nth-child(2) input:checked)::before {
    transform: translateX(calc(100% + 5px));
}

.fbo-segmented-control label {
    position: relative;
    z-index: 1;
    margin: 0;
    cursor: pointer;
}

.fbo-segmented-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.fbo-toggle-option {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(222, 230, 242, 0.58);
    text-align: center;
    transform: translateY(0);
    transition: color 220ms ease, transform 220ms ease, text-shadow 220ms ease, outline-color 160ms ease;
}

.fbo-toggle-option strong {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.fbo-toggle-option small {
    color: inherit;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fbo-segmented-control label:hover .fbo-toggle-option {
    color: rgba(239, 246, 255, 0.88);
    transform: translateY(-1px);
}

.fbo-segmented-control input:checked + .fbo-toggle-option {
    color: #f7fbff;
    text-shadow: 0 0 14px rgba(104, 224, 255, 0.36);
    animation: fbo-option-engage 420ms cubic-bezier(0.22, 1.35, 0.36, 1);
}

.fbo-segmented-control input:focus-visible + .fbo-toggle-option {
    outline: 2px solid #86e7ff;
    outline-offset: -2px;
}

.fbo-saving-badge {
    color: #9cf3c9 !important;
    text-shadow: 0 0 10px rgba(91, 234, 171, 0.28);
}

@keyframes fbo-status-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes fbo-option-engage {
    0% { transform: scale(0.96); }
    70% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

@media (max-width: 767px) {
    .fbo-pricing-controls,
    .fbo-toggle-panel {
        width: 100%;
    }

    .fbo-toggle-panel {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fbo-toggle-status,
    .fbo-segmented-control input:checked + .fbo-toggle-option {
        animation: none;
    }

    .fbo-segmented-control::before,
    .fbo-toggle-option {
        transition-duration: 0.01ms;
    }
}
.fbo-plan-asterisk {
    margin-left: 3px;
    color: #9cf3c9;
    font-size: 0.55em;
    text-shadow: 0 0 10px rgba(91, 234, 171, 0.3);
    vertical-align: super;
}

.fbo-plan-limit {
    margin: -8px 0 20px;
    color: var(--dhaasu-s-text);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.fbo-plan-limit sup {
    color: #9cf3c9;
}

.fbo-plan-top-cta {
    margin-bottom: 20px;
}
