/* ========== Slider CAPTCHA ========== */
.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.slider-card {
    width: 320px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-mode .slider-card {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.slider-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: #eee;
}

body.light-mode .slider-title {
    color: #333;
}

.slider-image-container {
    position: relative;
    width: 280px;
    height: 158px;
    margin: 0 auto 16px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}

.slider-image-container .bg-image {
    width: 280px;
    height: 158px;
    display: block;
}

.slider-image-container .puzzle-piece {
    position: absolute;
    top: 0;
    left: 0;
    height: 44px;
    width: 44px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.slider-image-container .puzzle-piece.dragging {
    cursor: grabbing;
}

.slider-track {
    position: relative;
    width: 280px;
    height: 40px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

body.light-mode .slider-track {
    background: rgba(0, 0, 0, 0.06);
}

.slider-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(52, 172, 224, 0.3), rgba(52, 172, 224, 0.15));
    border-radius: 20px;
    transition: none;
}

.slider-track-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #34ace0, #2b8ec4);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 172, 224, 0.4);
    user-select: none;
    -webkit-user-select: none;
    transition: box-shadow 0.2s;
}

.slider-handle:hover {
    box-shadow: 0 2px 12px rgba(52, 172, 224, 0.6);
}

.slider-handle.dragging {
    cursor: grabbing;
    box-shadow: 0 2px 16px rgba(52, 172, 224, 0.7);
}

.slider-handle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider-message {
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
    min-height: 18px;
}

.slider-message.success {
    color: #0f9d58;
}

.slider-message.error {
    color: #ea4335;
}

.slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 158px;
    margin: 0 auto 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #888;
    font-size: 13px;
}

body.light-mode .slider-loading {
    background: rgba(0, 0, 0, 0.04);
}

.slider-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.slider-close:hover {
    color: #eee;
}

body.light-mode .slider-close:hover {
    color: #333;
}
