/* Clinic numeric captcha — professional security card */
.mc-verify {
    --mc-deep: #6e0716;
    --mc-mid: #9b0d22;
    --mc-soft: #fff5f6;
    --mc-line: rgba(110, 7, 22, 0.14);
    --mc-ink: #3a0a12;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1rem 1.05rem 0.9rem;
    border-radius: 1.15rem;
    background:
        linear-gradient(165deg, #ffffff 0%, #fff8f9 55%, #fdecef 100%);
    border: 1px solid var(--mc-line);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(110, 7, 22, 0.08);
}

.mc-verify__glow {
    position: absolute;
    inset: auto -20% -55% auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.16), transparent 68%);
    pointer-events: none;
}

.mc-verify__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.mc-verify__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.mc-verify__shield {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(145deg, var(--mc-mid) 0%, var(--mc-deep) 100%);
    box-shadow: 0 8px 18px rgba(110, 7, 22, 0.28);
}

.mc-verify__titles {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.mc-verify__titles strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--mc-deep);
    line-height: 1.25;
}

.mc-verify__titles span {
    font-size: 0.78rem;
    color: rgba(58, 10, 18, 0.62);
    font-weight: 600;
    line-height: 1.35;
}

.mc-verify__refresh {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid var(--mc-line);
    background: #fff;
    color: var(--mc-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mc-verify__refresh:hover {
    background: var(--mc-soft);
    box-shadow: 0 6px 14px rgba(110, 7, 22, 0.12);
}

.mc-verify__refresh.is-spinning i {
    animation: mc-spin 0.55s ease;
}

@keyframes mc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.mc-verify__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.mc-verify__equation {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mc-digit,
.mc-unknown {
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.55rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mc-deep);
    background: #fff;
    border: 1px solid rgba(110, 7, 22, 0.12);
    box-shadow: 0 6px 14px rgba(80, 10, 22, 0.07);
}

.mc-unknown {
    color: rgba(110, 7, 22, 0.45);
    background: linear-gradient(180deg, #fff 0%, #f8e9ec 100%);
    border-style: dashed;
}

.mc-op,
.mc-eq {
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(110, 7, 22, 0.55);
    width: 1.25rem;
    text-align: center;
}

.mc-verify__answer {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 6.5rem;
    flex: 1 1 6.5rem;
    max-width: 9rem;
    margin: 0;
}

.mc-verify__answer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(58, 10, 18, 0.55);
}

.mc-verify__input {
    width: 100%;
    height: 2.7rem;
    border-radius: 0.85rem;
    border: 2px solid rgba(110, 7, 22, 0.18);
    background: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mc-deep);
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.mc-verify__input::placeholder {
    color: rgba(110, 7, 22, 0.25);
    font-weight: 700;
}

.mc-verify__input:focus {
    border-color: var(--mc-mid);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.14);
    transform: translateY(-1px);
}

.mc-verify__input.is-filled {
    border-color: #1f8a4c;
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.12);
}

.mc-verify__hint {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(110, 7, 22, 0.08);
    font-size: 0.75rem;
    color: rgba(58, 10, 18, 0.55);
    font-weight: 600;
}

.mc-verify__hint i {
    color: var(--mc-mid);
    font-size: 0.9rem;
}

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

.mc-verify.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 420px) {
    .mc-verify {
        padding: 0.85rem 0.8rem 0.8rem;
        border-radius: 1rem;
    }
    .mc-verify__head {
        margin-bottom: 0.75rem;
    }
    .mc-verify__titles strong {
        font-size: 0.9rem;
    }
    .mc-verify__titles span {
        font-size: 0.72rem;
    }
    .mc-verify__shield {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.05rem;
    }
    .mc-verify__body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .mc-verify__answer {
        max-width: none;
        min-width: 0;
        flex: 1 1 auto;
    }
    .mc-verify__equation {
        justify-content: center;
    }
    .mc-verify__equation--secure {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        min-height: 64px;
    }
    .mc-canvas {
        min-height: 64px;
        height: 64px;
    }
    .mc-digit,
    .mc-unknown,
    .mc-verify__input {
        min-width: 2.4rem;
        height: 2.45rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .mc-verify__titles span {
        display: none;
    }
}

/* Anti-copy / anti-scrape equation surface — keep digits large & readable */
.mc-verify__equation--secure {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    flex: 1 1 220px;
    min-width: 220px;
    min-height: 76px;
    padding: 0;
    background: transparent;
}
.mc-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 76px;
    height: 76px;
    border-radius: 14px;
    user-select: none !important;
    -webkit-user-select: none !important;
    image-rendering: auto;
}
.mc-verify__equation,
.mc-verify__equation * {
    user-select: none !important;
    -webkit-user-select: none !important;
}
@media (max-width: 420px) {
    .mc-verify__equation--secure {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
}
