.success-popup-backdrop {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 12, 24, .56);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: opacity .22s ease;
}

.success-popup-backdrop.is-open {
    opacity: 1;
}

.success-popup {
    position: relative;
    width: min(94vw, 460px);
    overflow: hidden;
    padding: 34px 30px 28px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,255,242,.98)),
        linear-gradient(135deg, #b9ff7a, #43d111 45%, #0f4f12);
    box-shadow: 0 28px 80px rgba(4, 17, 33, .32);
    text-align: center;
    transform: translateY(16px) scale(.96);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.success-popup::before {
    position: absolute;
    inset: 0 0 auto;
    height: 9px;
    background: linear-gradient(90deg, #b9ff7a, #43d111, #209000, #16a9ff);
    content: "";
}

.success-popup::after {
    position: absolute;
    width: 190px;
    height: 190px;
    right: -90px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67,209,17,.18), transparent 70%);
    content: "";
    pointer-events: none;
}

.success-popup-backdrop.is-open .success-popup {
    transform: translateY(0) scale(1);
}

.success-popup-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8f4cf;
    border-radius: 12px;
    color: #0f4f12;
    background: #fff;
    cursor: pointer;
}

.success-popup-icon {
    display: grid;
    width: 88px;
    height: 88px;
    margin: 6px auto 18px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #b9ff7a, #43d111 52%, #209000);
    box-shadow: 0 16px 35px rgba(67, 209, 17, .28);
}

.success-popup-icon svg {
    width: 66px;
    height: 66px;
    overflow: visible;
}

.success-popup-circle {
    fill: none;
    stroke: rgba(255,255,255,.86);
    stroke-width: 4;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
}

.success-popup-check {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
}

.success-popup-backdrop.is-open .success-popup-circle {
    animation: successCircleDraw .68s ease forwards;
}

.success-popup-backdrop.is-open .success-popup-check {
    animation: successCheckDraw .48s ease .36s forwards;
}

.success-popup-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #166534;
    background: #ecfdf3;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.success-popup h2 {
    margin: 0 36px 10px;
    color: #061426;
    font-size: clamp(1.55rem, 5vw, 2.05rem);
}

.success-popup p {
    margin: 0 auto 10px;
    color: #334155;
    font-size: .98rem;
    line-height: 1.6;
}

.success-popup small {
    display: block;
    margin: 0 auto 22px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.55;
}

.success-popup-ok {
    display: inline-flex;
    min-width: 132px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #b9ff7a 0%, #43d111 38%, #209000 72%, #0f4f12 100%);
    box-shadow: 0 14px 30px rgba(67, 209, 17, .3);
    font-weight: 900;
    cursor: pointer;
}

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

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

@media (max-width: 480px) {
    .success-popup-backdrop { padding: 16px; }
    .success-popup { padding: 30px 20px 24px; border-radius: 20px; }
    .success-popup h2 { margin-right: 30px; margin-left: 30px; }
    .success-popup-icon { width: 78px; height: 78px; }
    .success-popup-icon svg { width: 58px; height: 58px; }
    .success-popup-ok { width: 100%; }
}
