.membership-pay-mask {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    padding: 18px;
    background: rgba(5, 10, 24, .66);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.membership-pay-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(540px, calc(100vw - 36px));
    overflow: hidden;
    border: 1px solid rgba(118, 172, 255, .42);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(25, 25, 68, .98), rgba(10, 35, 86, .98) 58%, rgba(5, 23, 56, .98));
    box-shadow: 0 28px 78px rgba(0, 8, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
    transform: translate(-50%, -50%);
}

.membership-pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid rgba(134, 176, 255, .32);
    color: #f0f6ff;
    font-size: 1rem;
    font-weight: 800;
}

.membership-pay-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, #7e37ff, #258fff);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.membership-pay-body {
    padding: 14px;
}

.membership-pay-frame {
    display: block;
    width: 100%;
    height: min(420px, calc(100vh - 180px));
    border-radius: 13px;
    background: #f4f7ff;
}

.membership-pay-tip {
    margin-top: 10px;
    color: rgba(218, 231, 255, .86);
    font-size: .86rem;
    line-height: 1.6;
    text-align: center;
}

body:has(.membership-page) .site-pet {
    display: none !important;
}

.membership-pet-card {
    position: fixed;
    right: clamp(14px, 1.35vw, 28px);
    bottom: clamp(16px, 1.2vw, 28px);
    z-index: 9300;
    box-sizing: border-box;
    width: 278px;
    height: 298px;
    min-height: 0;
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(79, 111, 195, .58);
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 68%, rgba(76, 66, 229, .22), transparent 36%),
        linear-gradient(152deg, rgba(15, 29, 66, .96), rgba(6, 14, 35, .98) 58%, rgba(4, 9, 25, .98));
    box-shadow: 0 24px 58px rgba(0, 6, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: rgba(223, 232, 255, .95);
    font-family: var(--plan-font);
}

.membership-pet-card::before,
.membership-pet-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.membership-pet-card::before {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(113, 201, 255, .08), transparent 42%, rgba(119, 94, 255, .08));
}

.membership-pet-card::after {
    right: -9px;
    bottom: 18px;
    width: 18px;
    height: 18px;
    border-right: 1px solid rgba(79, 111, 195, .58);
    border-bottom: 1px solid rgba(79, 111, 195, .58);
    background: rgba(5, 12, 31, .98);
    transform: rotate(45deg);
}

.membership-pet-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.membership-pet-head span {
    color: #9cc4ff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.membership-pet-head button {
    min-width: 67px;
    height: 31px;
    border: 0;
    border-radius: 12px;
    background: rgba(46, 66, 116, .82);
    color: rgba(198, 211, 238, .9);
    font-size: .82rem;
    font-weight: 700;
}

.membership-pet-card p {
    position: relative;
    z-index: 1;
    max-height: 50px;
    margin: 24px 0 0;
    overflow: hidden;
    color: rgba(231, 238, 255, .96);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.62;
}

.membership-pet-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 120px;
    height: 120px;
    margin: 2px auto 10px;
    object-fit: contain;
    object-position: 50% 50%;
    filter: drop-shadow(0 0 18px rgba(103, 118, 255, .5));
}

.membership-pet-card a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 10px 0 18px;
    border: 1px solid rgba(68, 90, 190, .52);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(93, 64, 226, .9), rgba(39, 100, 220, .86));
    box-shadow: 0 12px 24px rgba(54, 70, 201, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
    color: rgba(244, 248, 255, .98);
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
}

.membership-pet-card a em {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 42, 94, .7);
    color: #dce8ff;
    font-size: 1.7rem;
    font-style: normal;
    line-height: 1;
}
