.botguard {
    margin: 1rem 0 0.5rem;
}

.botguard-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.botguard-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d8d2e8;
    border-radius: 12px;
    background: #faf9fc;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.botguard-box:hover {
    border-color: rgba(66, 27, 134, 0.35);
    box-shadow: 0 4px 16px rgba(66, 27, 134, 0.08);
}

.botguard-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.botguard-mark {
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid #c4b8dc;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.botguard.is-verified .botguard-mark {
    border-color: #2f9e44;
    background: #2f9e44;
}

.botguard.is-verified .botguard-mark::after {
    content: '';
    position: absolute;
    left: 0.42rem;
    top: 0.18rem;
    width: 0.45rem;
    height: 0.75rem;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.botguard.is-checking .botguard-mark {
    border-color: rgba(66, 27, 134, 0.45);
    border-top-color: transparent;
    border-radius: 50%;
    animation: botguard-spin 0.8s linear infinite;
}

.botguard.is-failed .botguard-mark {
    border-color: #e03131;
}

.botguard-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.botguard-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e1b2e;
}

.botguard-status {
    font-size: 0.75rem;
    color: #6b7280;
}

.botguard.is-verified .botguard-status {
    color: #2f9e44;
}

.botguard.is-failed .botguard-status {
    color: #e03131;
}

.botguard-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: rgba(66, 27, 134, 0.55);
}

.botguard-badge svg {
    width: 100%;
    height: 100%;
}

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

.site-form .botguard {
    margin-top: 0.25rem;
}

.admin-form .botguard {
    margin: 0.75rem 0 1rem;
}
