.captcha-container, 
.captcha-container * {
    box-sizing: border-box;
}

.captcha-container {
    width: 342px !important;
    max-width: 342px !important;
    margin: 0 auto;
    user-select: none;
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.captcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.captcha-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.captcha-img-box {
    position: relative;
    width: 320px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.captcha-bg {
    width: 100%;
    height: 100%;
    display: block;
}

.captcha-piece {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: none;
}

.captcha-slider-box {
    margin-top: 15px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
    pointer-events: none;
}

.captcha-slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    border-radius: 20px 0 0 20px;
    width: 0;
}

.captcha-slider-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: #3b82f6;
    border-radius: 20px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 20;
}

.captcha-slider-handle:hover {
    background: #2563eb;
}

.captcha-slider-handle:active {
    cursor: grabbing;
}

.captcha-slider-handle svg {
    width: 20px;
    height: 20px;
    color: white;
}

.captcha-status {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.3s;
    opacity: 0;
}

.captcha-status.error { color: #ef4444; opacity: 1; }
.captcha-status.success { color: #10b981; opacity: 1; }

/* States */
.captcha-container.verified .captcha-slider-handle {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.captcha-container.error .captcha-slider-handle {
    background: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}
