/* ===== AURA 风控弹窗 ===== */
.aura-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 245, 249, 0.52);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

.aura-overlay.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.aura-overlay.closing {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.aura-modal {
    width: min(92vw, 390px);
    min-height: 220px;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    transform: scale(0.92) translateY(22px) rotateX(8deg);
    opacity: 0;
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.34s ease;
    overflow: hidden;
    position: relative;
}

.aura-overlay.active .aura-modal {
    transform: scale(1) translateY(0) rotateX(0);
    opacity: 1;
}

.aura-overlay.closing .aura-modal {
    transform: scale(0.9) translateY(16px) rotateX(8deg);
    opacity: 0;
}

.aura-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.85) 35%, transparent 62%);
    transform: translateX(-130%);
    pointer-events: none;
}

.aura-overlay.active .aura-modal::before {
    animation: auraShine 0.95s ease forwards;
    animation-delay: 0.14s;
}

.aura-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.aura-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.sec-risk-shield-icon-wrapper {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.sec-risk-shield-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #3b82f6;
    opacity: 0.15;
    transform: scale(0.8);
}

.aura-overlay.active .sec-risk-shield-pulse {
    animation: auraPulse 1.8s infinite;
}

.aura-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.aura-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    transform: rotate(90deg);
}

.aura-body {
    min-height: 170px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sec-risk-scan-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.sec-risk-scan-state.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.sec-risk-scan-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.14);
    border-top-color: #3b82f6;
    animation: auraSpin 1s linear infinite;
    margin-bottom: 14px;
    position: relative;
}

.sec-risk-scan-circle::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.14);
    border-bottom-color: #3b82f6;
    animation: auraSpin 1.45s linear infinite reverse;
}

.sec-risk-scan-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    gap: 4px;
}

.sec-risk-scan-dots span {
    animation: auraBlink 1.4s infinite both;
}

.sec-risk-scan-dots span:nth-child(2) {
    animation-delay: 0.22s;
}

.sec-risk-scan-dots span:nth-child(3) {
    animation-delay: 0.44s;
}

#auraStage {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

#auraStage.visible {
    opacity: 1;
    transform: translateY(0);
}

.aura-loading {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 22px 0;
}

.aura-pass-state,
.aura-error-state,
.aura-submit-state {
    text-align: center;
    padding: 14px 0;
}

.aura-pass-state svg {
    width: 42px;
    height: 42px;
    color: #16a34a;
}

.aura-pass-state .title,
.aura-error-state .title,
.aura-submit-state .title {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
}

.aura-pass-state .title {
    color: #16a34a;
}

.aura-error-state .title {
    color: #dc2626;
}

.aura-pass-state .desc,
.aura-error-state .desc,
.aura-submit-state .desc {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.aura-submit-state .title {
    color: #2563eb;
}

.aura-submit-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.18);
    border-top-color: #3b82f6;
    border-right-color: #60a5fa;
    animation: auraSpin 0.9s linear infinite;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.2);
}

.aura-hcaptcha-slot {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.aura-footer {
    padding: 12px 22px 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.aura-help-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.aura-help-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.sec-risk-security-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sec-risk-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.22s ease;
}

.sec-risk-status-dot.secure {
    background: #16a34a;
    box-shadow: 0 0 7px rgba(22, 163, 74, 0.45);
}

@keyframes auraShine {
    to {
        transform: translateX(135%);
    }
}

@keyframes auraPulse {
    0% {
        transform: scale(0.78);
        opacity: 0.18;
    }

    70% {
        transform: scale(1.55);
        opacity: 0;
    }

    100% {
        transform: scale(0.78);
        opacity: 0;
    }
}

@keyframes auraSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes auraBlink {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .aura-modal {
        width: min(94vw, 390px);
    }
}


/* Match Memo's existing verification component without altering the vulnerability page. */
.aura-overlay[hidden] { display: none; }
.aura-modal { max-height: calc(100vh - 32px); overflow-y: auto; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; }
.aura-header, .aura-body, .aura-footer { position: relative; }
.aura-brand, .aura-footer { text-align: left; }
.aura-modal button:focus-visible, .aura-modal a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.aura-desc { margin-top: 6px; color: #64748b; font-size: 12px; overflow-wrap: anywhere; }
.aura-error-state .aura-retry { margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 999px; background: #2563eb; color: #fff; cursor: pointer; font-weight: 600; }
.aura-hcaptcha-slot { min-height: 78px; width: 100%; }
@media (max-width: 360px) { .aura-header, .aura-body, .aura-footer { padding-left: 12px; padding-right: 12px; } .aura-footer { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
    .aura-overlay, .aura-modal, .aura-close, .sec-risk-scan-state, #auraStage { transition: none; }
    /* Keep functional progress rings rotating; only decorative motion is suppressed. */
    .aura-overlay.active .aura-modal::before, .sec-risk-shield-pulse, .sec-risk-scan-dots span { animation: none !important; }
    .aura-overlay.active .aura-modal { transform: none; }
}

.aura-modal, .aura-modal * { box-sizing: border-box; }
.aura-modal .aura-close { padding: 0; flex: 0 0 30px; }
.aura-modal .aura-brand { line-height: 1.5; }
