.payment-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.payment-success-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.payment-success-decor-screen {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.payment-success-decor-screen img {
    position: absolute;
    display: block;
    width: 360px;
    height: auto;
    opacity: 0.95;
    transform: translateY(18px) scale(0.98) rotate(0deg);
    transition: transform 0.28s ease;
}

/* override base size for arrow #2 */
.payment-success-decor-screen img.payment-success-decor-arrow-2 {
    width: 720px;
}

.payment-success-modal-card {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
    margin: 0;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.28s ease, opacity 0.28s ease;
    opacity: 0;
}

.payment-success-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.payment-success-modal.is-open .payment-success-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.payment-success-modal.is-open .payment-success-decor-screen img {
    transform: translateY(0) scale(1) rotate(0deg);
}

.payment-success-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.payment-success-modal .payment-success-inner {
    position: relative;
    padding: 40px 32px 32px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    text-align: center;
    color: #fff;
}

.payment-success-modal .payment-success-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(35deg, #0b142c, #67378a, #d693bc);
    opacity: 0.6;
    z-index: 0;
}

.payment-success-modal .payment-success-inner > *:not(.payment-success-modal-close) {
    position: relative;
    z-index: 1;
}

.payment-success-decor-arrow-1 {
    top: 40px;
    left: 630px;
}

.payment-success-decor-arrow-2 {
    top: 24px;
    right: 82px;
}

.payment-success-decor-arrow-3 {
    top: 70px;
    right: 0px;
}

.payment-success-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.payment-success-tag {
    display: inline-block;
    margin-bottom: 28px;
    padding: 6px 18px;
    border-radius: 999px;
    background: #369e72;
    border: 1px solid #369e72;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.payment-success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.payment-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    padding: 4px 0;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #e71f6c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease-out;
}

.payment-success-btn.secondary {
    color: #bb99ff;
}

.payment-success-btn i {
    font-size: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-2px);
}

/* Upgrade-block modal (BASIC -> PRO with remaining days) */
.upgrade-block-modal {
    position: fixed;
    inset: 0;
    z-index: 1650;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.upgrade-block-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.upgrade-block-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    border-radius: 32px;
    padding: 34px 28px 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.upgrade-block-modal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(35deg, #0b142c, #67378a, #d693bc);
    opacity: 0.55;
    z-index: 0;
}

.upgrade-block-modal-card > * {
    position: relative;
    z-index: 1;
}

.upgrade-block-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.upgrade-block-modal.is-open .upgrade-block-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.upgrade-block-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.upgrade-block-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.upgrade-block-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1330px) {
    .payment-success-decor-screen img.payment-success-decor-arrow-3 {
        width: 240px; /* 360 / 1.5 */
    }
}

@media (max-width: 1100px) {
    .payment-success-decor-screen img.payment-success-decor-arrow-3 {
        display: none;
    }
}

@media (max-width: 786px) {
    .payment-success-decor-screen img.payment-success-decor-arrow-1,
    .payment-success-decor-screen img.payment-success-decor-arrow-2 {
        display: none;
    }
}
