/* ── BLACK SIDE CAPTCHA — CSS ── */
.blackcat-recaptcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #080808;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    user-select: none;
    margin: 14px 0;
}

.recaptcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-checkbox-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.recaptcha-checkbox-custom {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 4px;
    background: #000;
    transition: border-color .2s, background-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-checkbox-wrapper:hover .recaptcha-checkbox-custom {
    border-color: rgba(255,255,255,.35);
}

.recaptcha-checkbox-wrapper.loading .recaptcha-checkbox-custom {
    border-color: transparent;
    background: transparent;
}

.recaptcha-spinner {
    display: none;
    position: absolute;
    inset: 0;
    border: 2px solid rgba(63,255,33,.1);
    border-top: 2px solid var(--green, #3fff21);
    border-radius: 50%;
    animation: recaptcha-spin 0.8s linear infinite;
}

.recaptcha-checkbox-wrapper.loading .recaptcha-spinner {
    display: block;
}

.recaptcha-checkmark {
    display: none;
    font-size: 18px;
    color: var(--green, #3fff21);
    font-weight: 700;
    line-height: 1;
}

.recaptcha-checkbox-wrapper.success .recaptcha-checkmark {
    display: block;
}
.recaptcha-checkbox-wrapper.success .recaptcha-checkbox-custom {
    border-color: var(--green, #3fff21);
    background: rgba(63,255,33,.05);
}

.recaptcha-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
}

.recaptcha-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.recaptcha-logo-icon {
    font-size: 18px;
    line-height: 1;
}

.recaptcha-logo-text {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
}

/* Modal Challenge */
.recaptcha-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.recaptcha-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.recaptcha-modal-box {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 80px rgba(0,0,0,.8);
    transform: scale(.95);
    transition: transform .25s cubic-bezier(.2,.9,.4,1.1);
    overflow: hidden;
}

.recaptcha-modal-overlay.show .recaptcha-modal-box {
    transform: scale(1);
}

.recaptcha-modal-header {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 16px;
}

.recaptcha-modal-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.recaptcha-modal-target {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.recaptcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px;
    background: #070707;
}

.recaptcha-grid-item {
    aspect-ratio: 1;
    background: #141414;
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background-color .15s, transform .1s;
    user-select: none;
}

.recaptcha-grid-item:hover {
    background: #1c1c1c;
    border-color: rgba(255,255,255,.1);
}

.recaptcha-grid-item:active {
    transform: scale(.95);
}

.recaptcha-grid-item.selected {
    border-color: var(--green, #3fff21);
    background: rgba(63,255,33,.08);
}

.recaptcha-grid-item-check {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--green, #3fff21);
    color: #000;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s, transform .15s;
}

.recaptcha-grid-item.selected .recaptcha-grid-item-check {
    opacity: 1;
    transform: scale(1);
}

.recaptcha-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: #111;
}

.recaptcha-modal-actions {
    display: flex;
    gap: 8px;
}

.recaptcha-action-btn {
    font-size: 16px;
    padding: 6px;
    color: rgba(255,255,255,.5);
    border-radius: 6px;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}

.recaptcha-action-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}

@keyframes recaptcha-spin {
    to { transform: rotate(360deg); }
}
