/* Premium TikTok Verification - Captcha Styles */

#captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.5s ease;
}

#loader-screen {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

/* TikTok Style Loader */
.tiktok-loader {
    position: relative;
    width: 44px;
    height: 44px;
}

.tiktok-loader::before,
.tiktok-loader::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 12px;
    mix-blend-mode: multiply;
    animation: 1s linear infinite;
}

.tiktok-loader::before {
    background-color: #25F4EE;
    left: 0;
    animation-name: tiktok-left;
}

.tiktok-loader::after {
    background-color: #FE2C55;
    right: 0;
    animation-name: tiktok-right;
}

@keyframes tiktok-left {
    0%, 100% {
        transform: scale(1) translateX(0);
        z-index: 2;
    }
    25% {
        transform: scale(1.2) translateX(7px);
        z-index: 2;
    }
    50% {
        transform: scale(1) translateX(24px);
        z-index: 1;
    }
    75% {
        transform: scale(0.8) translateX(7px);
        z-index: 1;
    }
}

@keyframes tiktok-right {
    0%, 100% {
        transform: scale(1) translateX(0);
        z-index: 1;
    }
    25% {
        transform: scale(0.8) translateX(-7px);
        z-index: 1;
    }
    50% {
        transform: scale(1) translateX(-24px);
        z-index: 2;
    }
    75% {
        transform: scale(1.2) translateX(-7px);
        z-index: 2;
    }
}

/* Captcha Screen */
#captcha-screen {
    display: none;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(30px);
    padding: 32px 24px;
    border-radius: 24px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 
        0 0 80px rgba(0, 240, 255, 0.15),
        0 0 40px rgba(254, 44, 85, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-header {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.captcha-puzzle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 28px;
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(0, 240, 255, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background-color: #1a1a1a;
}

.captcha-outer {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.captcha-inner {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 4px 10px rgba(0, 0, 0, 0.4);
    background-size: 200px 200px;
    background-position: center center;
    transition: transform 0.1s linear;
    will-change: transform;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    color: #6B6B6B;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}

#captcha-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    z-index: 2;
    margin: 0;
    cursor: grab;
}

#captcha-slider:active {
    cursor: grabbing;
}

#captcha-slider:focus {
    outline: none;
}

#captcha-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 36px;
    width: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00F0FF, #00D4FF);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: grab;
    box-shadow: 
        0 4px 15px rgba(0, 240, 255, 0.3),
        0 0 20px rgba(0, 240, 255, 0.2);
    transition: all 0.2s;
}

#captcha-slider::-webkit-slider-thumb:hover {
    box-shadow: 
        0 6px 20px rgba(0, 240, 255, 0.5),
        0 0 30px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

#captcha-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

#captcha-slider::-moz-range-thumb {
    height: 36px;
    width: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00F0FF, #00D4FF);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: grab;
    box-shadow: 
        0 4px 15px rgba(0, 240, 255, 0.3),
        0 0 20px rgba(0, 240, 255, 0.2);
    transition: all 0.2s;
}

#captcha-slider::-moz-range-thumb:hover {
    box-shadow: 
        0 6px 20px rgba(0, 240, 255, 0.5),
        0 0 30px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 480px) {
    #captcha-screen {
        padding: 24px 20px;
        width: 320px;
    }
    
    .captcha-puzzle-container {
        width: 180px;
        height: 180px;
    }
    
    .captcha-inner {
        background-size: 180px 180px;
    }
}
