.secure-slider {
    position: relative;
    width: 100%;
    height: 50px;
    overflow: hidden;
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    background: #f7f8fa;
    user-select: none;
    touch-action: none;
}

.secure-slider-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: rgba(240, 130, 0, .16);
}

.secure-slider-target {
    position: absolute;
    z-index: 2;
    top: 8px;
    bottom: 8px;
    width: 4px;
    margin-left: -2px;
    border-radius: 4px;
    background: #17a34a;
    box-shadow: 0 0 0 4px rgba(23, 163, 74, .13);
}

.secure-slider-target:before {
    content: "▼";
    position: absolute;
    top: -11px;
    left: 50%;
    color: #17a34a;
    font-size: 10px;
    line-height: 1;
    transform: translateX(-50%);
}

.secure-slider-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 52px;
    color: #f08200;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.secure-slider-text .secure-slider-green {
    color: #17a34a;
    font-weight: 700;
}

.secure-slider-thumb {
    position: absolute;
    z-index: 3;
    top: 4px;
    left: 3px;
    display: flex;
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 7px;
    color: #fff;
    background: #f08200;
    box-shadow: 0 4px 12px rgba(210, 109, 0, .28);
    cursor: grab;
}

.secure-slider-thumb:active {
    cursor: grabbing;
}

.secure-slider-thumb svg {
    width: 18px;
    height: 18px;
    color: #17a34a;
}

.secure-slider.is-loading .secure-slider-thumb,
.secure-slider.is-verifying .secure-slider-thumb {
    cursor: wait;
    opacity: .7;
}

.secure-slider.is-success {
    border-color: #79ce9b;
}

.secure-slider.is-success .secure-slider-thumb {
    background: #17a34a;
}

.secure-slider.is-success .secure-slider-target {
    background: #138a3f;
}

.secure-slider.is-error {
    border-color: #e05b4f;
    animation: secure-slider-shake .3s ease-in-out;
}

.secure-slider.is-error .secure-slider-thumb {
    background: #d64538;
}

@keyframes secure-slider-shake {
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.slider-help-demo {
    padding: 20px 22px 18px;
    color: #333;
    text-align: center;
}

.slider-help-demo-title {
    color: #d64538;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.slider-help-demo-copy {
    margin: 10px 0 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.slider-help-demo-track {
    position: relative;
    height: 50px;
    overflow: hidden;
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    background: #f7f8fa;
}

.slider-help-demo-track:after {
    position: absolute;
    top: 24px;
    right: 12px;
    left: 48px;
    height: 2px;
    content: "";
    background: repeating-linear-gradient(90deg, #f8b35c 0 8px, transparent 8px 14px);
}

.slider-help-demo-target {
    position: absolute;
    z-index: 2;
    top: 8px;
    bottom: 8px;
    left: 68%;
    width: 4px;
    margin-left: -2px;
    border-radius: 4px;
    background: #17a34a;
    box-shadow: 0 0 0 4px rgba(23, 163, 74, .13);
}

.slider-help-demo-target:before {
    position: absolute;
    top: -11px;
    left: 50%;
    color: #17a34a;
    content: "▼";
    font-size: 10px;
    line-height: 1;
    transform: translateX(-50%);
}

.slider-help-demo-thumb {
    position: absolute;
    z-index: 3;
    top: 4px;
    left: 4px;
    display: flex;
    width: 42px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #17a34a;
    background: #f08200;
    box-shadow: 0 4px 12px rgba(210, 109, 0, .28);
    animation: slider-help-drag 2.8s ease-in-out infinite;
}

.slider-help-demo-thumb svg {
    width: 18px;
    height: 18px;
}

.slider-help-demo-steps {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 14px;
}

.slider-help-demo-steps span {
    flex: 1;
    padding: 7px 5px;
    border-radius: 6px;
    color: #6b4a20;
    background: #fff5e8;
    font-size: 12px;
    line-height: 1.4;
}

.slider-help-demo-close {
    height: 34px;
    margin-top: 16px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #f08200;
    font-size: 14px;
    cursor: pointer;
}

.slider-help-demo-close:hover {
    background: #d97400;
}

@keyframes slider-help-drag {
    0%,
    12% {
        left: 4px;
    }
    62%,
    92% {
        left: calc(68% - 21px);
    }
    100% {
        left: 4px;
    }
}

@media (max-width: 520px) {
    .slider-help-demo-steps {
        flex-direction: column;
    }
}
