.captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem; /* ← отступ снизу */
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
    animation: fadeIn 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
}

.captcha::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.05), transparent 70%);
    animation: rotateAura 10s linear infinite;
    z-index: 0;
}

@keyframes rotateAura {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.captcha-content {
    z-index: 1;
    flex: 1;
}

.captcha-question {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 3px #0ff;
}

.captcha-input {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background: #111;
    color: #0ff;
    width: 100%;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 255, 255, 0.2);
}

.captcha-color-target {
    width: 60px;
    height: 60px;
    margin: 0.5rem auto;
    border-radius: 50%;
    border: 2px solid #00ffff;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.captcha-color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.captcha-color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #0ff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.captcha-color-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #00ffff;
}

.captcha-color-btn.selected {
    box-shadow: 0 0 12px #00ffff, inset 0 0 4px #00ffff;
    border: 3px solid #fff;
}

.captcha-refresh-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.captcha-refresh-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 6px;
    background: #0f0f0f;
    border: 1px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.captcha-refresh-btn:hover {
    background: #00ffff;
    color: #000;
}

.captcha-refresh-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.5s ease-in-out;
}

.captcha-refresh-btn:hover .captcha-refresh-icon {
    transform: rotate(360deg);
}

.captcha-avatar {
    width: 80px;
    height: 80px;
    background-image: url('/images/skywalker/skywalker-icon.svg'); /* иконка слева */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    flex-shrink: 0;
    animation: guardianPulse 2s infinite ease-in-out;
}

@keyframes guardianPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px #0ff; }
    50% { transform: scale(1.05); box-shadow: 0 0 20px #0ff; }
    100% { transform: scale(1); box-shadow: 0 0 10px #0ff; }
}

.captcha-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
}

.skywalker-name {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 3px #0ff;
    font-family: sans-serif;
}
