.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
    align-items: center;
    justify-content: center;
    cursor: default;
}

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

.captcha-content {
    position: relative;
    width: 92%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    animation: captchaModalIn 0.25s ease forwards;
    cursor: auto;
}

@keyframes captchaModalIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.captcha-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.captcha-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.captcha-close:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.captcha-body {
    padding: 24px;
}

.slider-container {
    width: fit-content;
    margin: 0 auto;
}

.captcha-hint {
    display: none;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.captcha-hint.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.captcha-hint.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
