.at-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(43,33,24,.45);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: Arial, Tahoma, sans-serif;
}

.at-success-overlay.show {
    display: flex;
}

.at-success-card {
    width: min(520px, 100%);
    background:
        radial-gradient(circle at 50% 0%, rgba(223,192,120,.24), transparent 38%),
        #fff;
    border: 1px solid rgba(185,138,54,.24);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,.20);
    padding: 26px;
    text-align: center;
    color: #2b2118;
    direction: rtl;
    animation: atSuccessPop .22s ease-out;
}

html[dir="ltr"] .at-success-card {
    direction: ltr;
}

@keyframes atSuccessPop {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.at-success-check {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #7ddf91);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 48px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(22,163,74,.22);
}

.at-success-card h2 {
    margin: 0;
    color: #3f2a1b;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
}

.at-success-card p {
    margin: 10px 0 0;
    color: #756556;
    line-height: 1.8;
}

.at-success-id {
    display: none;
    width: fit-content;
    max-width: 100%;
    margin: 14px auto 0;
    background: #fff4de;
    border: 1px solid rgba(185,138,54,.24);
    color: #8d611f;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
    direction: ltr;
    unicode-bidi: isolate;
}

.at-success-id.show {
    display: block;
}

.at-success-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.at-success-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: #3f2a1b;
    border: 1px solid rgba(185,138,54,.24);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.at-success-btn.gold {
    background: linear-gradient(135deg, #b98a36, #dfc078);
    color: #fff;
    border-color: transparent;
}

.at-success-btn.green {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

@media(max-width: 600px) {
    .at-success-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .at-success-btn {
        width: 100%;
    }
}
