.mca-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mcaBdIn .22s ease;
}

.mca-backdrop.mca-out {
    animation: mcaBdOut .2s ease forwards;
}

@keyframes mcaBdIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mcaBdOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.mca-card {
    background: #fff;
    border-radius: 24px;
    padding: 44px 40px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.06);
    position: relative;
    animation: mcaCardIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

.mca-backdrop.mca-out .mca-card {
    animation: mcaCardOut .18s ease forwards;
}

@keyframes mcaCardIn {
    from { opacity: 0; transform: scale(.76) translateY(18px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes mcaCardOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(.88) translateY(10px); }
}

.mca-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
}

.mca-icon svg {
    width: 80px;
    height: 80px;
    overflow: visible;
}

.mca-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -.03em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mca-text {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 28px;
    word-break: break-word;
}

.mca-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 0 32px;
    height: 46px;
    letter-spacing: -.01em;
    transition: background .2s, transform .15s, box-shadow .2s;
    min-width: 120px;
}

.mca-btn:hover  { transform: translateY(-1px); }
.mca-btn:active { transform: none; }

.mca-btn--error {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(231,76,60,.32);
}
.mca-btn--error:hover { background: #c0392b; box-shadow: 0 6px 20px rgba(231,76,60,.42); }

.mca-btn--success {
    background: #8aca38;
    color: #fff;
    box-shadow: 0 4px 14px rgba(138,202,56,.32);
}
.mca-btn--success:hover { background: #72b02f; box-shadow: 0 6px 20px rgba(138,202,56,.42); }

.mca-btn--warning {
    background: #f39c12;
    color: #fff;
    box-shadow: 0 4px 14px rgba(243,156,18,.32);
}
.mca-btn--warning:hover { background: #d68910; box-shadow: 0 6px 20px rgba(243,156,18,.42); }

.mca-btn--info {
    background: #066069;
    color: #fff;
    box-shadow: 0 4px 14px rgba(6,96,105,.28);
}
.mca-btn--info:hover { background: #044f56; box-shadow: 0 6px 20px rgba(6,96,105,.38); }

.mca-circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 163;
    stroke-dashoffset: 163;
    transform-origin: center;
    transform: rotate(-90deg);
    animation: mcaDraw .6s cubic-bezier(.4,0,.2,1) .08s forwards;
}

.mca-circle--error   { stroke: #e74c3c; }
.mca-circle--success { stroke: #8aca38; }
.mca-circle--info    { stroke: #066069; }

.mca-x1, .mca-x2 {
    fill: none;
    stroke-linecap: round;
    stroke-width: 3.2;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.mca-x1 { stroke: #e74c3c; animation: mcaDraw .28s ease .58s forwards; }
.mca-x2 { stroke: #e74c3c; animation: mcaDraw .28s ease .74s forwards; }

.mca-check {
    fill: none;
    stroke: #8aca38;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: mcaDraw .38s cubic-bezier(.4,0,.2,1) .54s forwards;
}

.mca-triangle {
    fill: none;
    stroke: #f39c12;
    stroke-width: 2.8;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 146;
    stroke-dashoffset: 146;
    animation: mcaDraw .6s cubic-bezier(.4,0,.2,1) .08s forwards;
}

.mca-exline {
    fill: none;
    stroke: #f39c12;
    stroke-linecap: round;
    stroke-width: 3.2;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    animation: mcaDraw .22s ease .6s forwards;
}

.mca-exdot {
    fill: #f39c12;
    opacity: 0;
    animation: mcaFadeIn .2s ease .76s forwards;
}

.mca-iline {
    fill: none;
    stroke: #066069;
    stroke-linecap: round;
    stroke-width: 3.2;
    stroke-dasharray: 15;
    stroke-dashoffset: 15;
    animation: mcaDraw .22s ease .6s forwards;
}

.mca-idot {
    fill: #066069;
    opacity: 0;
    animation: mcaFadeIn .2s ease .32s forwards;
}

@keyframes mcaDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes mcaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 480px) {
    .mca-card { padding: 36px 24px 28px; border-radius: 18px; }
    .mca-title { font-size: 18px; }
}
