.premium-page {
    --premium-bg: #050713;
    --premium-card: rgba(17, 24, 39, .76);
    --premium-line: rgba(255, 255, 255, .1);
    --premium-pink: #ff2e73;
    --premium-purple: #7a5cff;
    --premium-muted: #a7b0c3;
    min-height: 80vh;
    margin: -28px calc(50% - 50vw) -106px;
    padding: clamp(34px, 5vw, 72px) max(18px, calc((100vw - 1220px) / 2)) 120px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 46, 115, .22), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(122, 92, 255, .2), transparent 34%),
        linear-gradient(135deg, #050713, #0b1020 58%, #050713);
    overflow-x: hidden;
}

body.app-authenticated.page-subscriptions-premium .app-shell-container,
body.app-authenticated.page-subscriptions-boost .app-shell-container,
body.app-authenticated.page-subscriptions-checkout .app-shell-container,
body.app-authenticated.page-subscriptions-billing .app-shell-container,
body.app-authenticated.page-payments-simplepay_return .app-shell-container {
    width: min(1280px, calc(100vw - (max(24px, calc((100vw - 1440px) / 2 + 24px)) + 336px)));
    max-width: none;
    margin-left: calc(max(24px, calc((100vw - 1440px) / 2 + 24px)) + 296px);
    margin-right: auto;
    padding: 34px 24px 126px;
}

body.app-authenticated.page-subscriptions-premium .premium-page,
body.app-authenticated.page-subscriptions-boost .boost-page,
body.app-authenticated.page-subscriptions-checkout .premium-page,
body.app-authenticated.page-subscriptions-billing .premium-page,
body.app-authenticated.page-payments-simplepay_return .premium-page {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 32px;
    padding: clamp(28px, 4vw, 54px);
    box-shadow: 0 30px 110px rgba(0, 0, 0, .34);
}

.premium-hero {
    width: min(860px, 100%);
    margin-bottom: 32px;
}

.premium-kicker {
    display: inline-flex;
    border: 1px solid rgba(255, 46, 115, .28);
    border-radius: 999px;
    padding: 8px 13px;
    color: #ff85b0;
    background: rgba(255, 46, 115, .1);
    font-weight: 900;
}

.premium-hero h1,
.checkout-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
}

.premium-hero p,
.checkout-card p {
    max-width: 780px;
    color: var(--premium-muted);
    font-size: 18px;
    line-height: 1.65;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.billing-period-switch {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    margin: 0 0 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 5px;
    background: rgba(8, 11, 24, .72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.billing-period-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 13px;
    padding: 0 18px;
    color: var(--premium-muted);
    font-weight: 900;
    transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.billing-period-switch a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.billing-period-switch a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--premium-pink), var(--premium-purple));
    box-shadow: 0 10px 28px rgba(255, 46, 115, .26);
}

.billing-period-switch a small {
    font-size: 11px;
    opacity: .8;
}

.billing-period-switch > span {
    padding: 0 12px;
    color: #ff9cbd;
    font-size: 13px;
    font-weight: 800;
}

.checkout-period-switch {
    margin-top: 20px;
}

.checkout-period-switch > span {
    display: none;
}

.annual-price-note {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    min-height: 22px;
    margin: -4px 0 12px;
    color: var(--premium-muted);
    font-size: 12px;
    font-weight: 800;
}

.annual-price-note strong {
    color: #33e090;
}

.pricing-card,
.premium-boost-panel,
.feature-table-card,
.checkout-card {
    border: 1px solid var(--premium-line);
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)), var(--premium-card);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(22px);
}

.premium-boost-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 22px 0;
    border-color: rgba(255, 46, 115, .34);
    background:
        radial-gradient(circle at 88% 18%, rgba(122, 92, 255, .22), transparent 32%),
        radial-gradient(circle at 10% 6%, rgba(255, 46, 115, .2), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        var(--premium-card);
}

.premium-boost-panel h2 {
    margin: 14px 0 10px;
    font-size: clamp(24px, 3vw, 36px);
}

.premium-boost-panel p {
    max-width: 700px;
    margin: 0;
    color: var(--premium-muted);
    line-height: 1.65;
}

.premium-boost-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.premium-boost-prices span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(255, 46, 115, .24);
    border-radius: 999px;
    padding: 0 13px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .055);
    font-weight: 800;
}

.premium-boost-prices strong {
    margin-left: 5px;
    color: #fff;
}

.pricing-card.is-featured {
    border-color: rgba(255, 46, 115, .58);
    box-shadow: 0 32px 110px rgba(255, 46, 115, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.pricing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--premium-pink), var(--premium-purple));
    font-weight: 900;
}

.pricing-card em {
    color: #33e090;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.pricing-price {
    display: block;
    margin: 22px 0 10px;
    font-size: 36px;
}

.pricing-price small {
    color: var(--premium-muted);
    font-size: 14px;
}

.pricing-card p,
.pricing-card li {
    color: var(--premium-muted);
    line-height: 1.5;
}

.pricing-card ul {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.pricing-card li::before {
    content: "✓";
    margin-right: 8px;
    color: #33e090;
}

.pricing-card li.no {
    opacity: .55;
}

.pricing-card li.no::before {
    content: "×";
    color: #ff4d67;
}

.premium-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--premium-pink), var(--premium-purple));
    box-shadow: 0 18px 40px rgba(255, 46, 115, .25);
    font-weight: 950;
}

.premium-cta.secondary {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.feature-table-card {
    margin-top: 24px;
}

.feature-table {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--premium-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
}

.feature-table > * {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(8, 11, 24, .72);
    color: var(--premium-muted);
    font-style: normal;
}

.feature-table span,
.feature-table strong {
    color: #fff;
    font-weight: 900;
}

.checkout-card {
    max-width: 860px;
    margin: 0 auto;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.checkout-summary div,
.checkout-billing,
.billing-history article {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .045);
}

.checkout-summary dt {
    color: var(--premium-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.checkout-summary dd {
    margin: 8px 0 0;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
}

.checkout-billing {
    margin: 18px 0;
}

.checkout-billing h2 {
    margin: 0 0 8px;
}

.checkout-billing p {
    margin: 0 0 12px;
    color: var(--premium-muted);
}

.checkout-billing a,
.checkout-form a {
    color: #ff85b0;
    font-weight: 900;
}

.payment-provider-box {
    border-color: rgba(122, 92, 255, .24);
}

.checkout-muted {
    color: rgba(255, 255, 255, .62) !important;
    font-size: 14px !important;
}

.mock-payment-card {
    border-color: rgba(255, 46, 115, .34);
}

.mock-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.checkout-error {
    border: 1px solid rgba(255, 77, 103, .4);
    border-radius: 16px;
    padding: 14px 16px;
    color: #fff;
    background: rgba(255, 77, 103, .12);
}

.checkout-form {
    display: grid;
    gap: 18px;
}

.billing-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.billing-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    font-weight: 900;
}

.billing-form label:nth-of-type(4),
.billing-form label:nth-of-type(8),
.billing-form button {
    grid-column: 1 / -1;
}

.premium-input {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    padding: 0 16px;
    color: #fff;
    background: rgba(8, 11, 24, .72);
    font: inherit;
}

.premium-input:focus {
    outline: 0;
    border-color: rgba(255, 46, 115, .62);
    box-shadow: 0 0 0 4px rgba(255, 46, 115, .12);
}

.billing-history {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.billing-history article {
    display: grid;
    gap: 4px;
}

.billing-history span,
.billing-history em {
    color: var(--premium-muted);
    font-style: normal;
}

@media (max-width: 768px) {
    body.app-authenticated.page-subscriptions-premium .app-shell-container,
    body.app-authenticated.page-subscriptions-boost .app-shell-container,
    body.app-authenticated.page-subscriptions-checkout .app-shell-container,
    body.app-authenticated.page-subscriptions-billing .app-shell-container,
    body.app-authenticated.page-payments-simplepay_return .app-shell-container {
        width: 100%;
        margin: 0;
        padding: 10px 12px 92px;
    }

    body.app-authenticated.page-subscriptions-premium .premium-page,
    body.app-authenticated.page-subscriptions-boost .boost-page,
    body.app-authenticated.page-subscriptions-checkout .premium-page,
    body.app-authenticated.page-subscriptions-billing .premium-page,
    body.app-authenticated.page-payments-simplepay_return .premium-page {
        border-radius: 0;
        border: 0;
        padding: 16px 0 22px;
        box-shadow: none;
        background: transparent;
    }

    .premium-page {
        margin: 0;
        padding: 16px 12px 96px;
    }

    .premium-hero h1,
    .checkout-card h1 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .pricing-grid,
    .checkout-summary,
    .mock-payment-actions,
    .billing-form {
        grid-template-columns: 1fr;
    }

    .premium-boost-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .feature-table {
        min-width: 720px;
    }

    .feature-table-card {
        overflow-x: auto;
    }
}

.checkout-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 980px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.app-authenticated.page-subscriptions-premium .app-shell-container,
    body.app-authenticated.page-subscriptions-boost .app-shell-container,
    body.app-authenticated.page-subscriptions-checkout .app-shell-container,
    body.app-authenticated.page-subscriptions-billing .app-shell-container,
    body.app-authenticated.page-payments-simplepay_return .app-shell-container {
        width: min(100% - 24px, 720px);
        margin: 0 auto;
        padding: 16px 0 var(--vonzz-mobile-nav-space);
    }

    body.app-authenticated.page-subscriptions-premium .premium-page,
    body.app-authenticated.page-subscriptions-boost .boost-page,
    body.app-authenticated.page-subscriptions-checkout .premium-page,
    body.app-authenticated.page-subscriptions-billing .premium-page,
    body.app-authenticated.page-payments-simplepay_return .premium-page {
        min-height: auto;
        border-radius: 26px;
        padding: 22px 14px 36px;
    }

    .premium-hero {
        margin-bottom: 20px;
    }

    .billing-period-switch {
        width: 100%;
        margin-bottom: 18px;
    }

    .billing-period-switch a {
        flex: 1;
        padding: 0 12px;
    }

    .billing-period-switch > span {
        display: none;
    }

    .premium-hero h1,
    .checkout-card h1 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1.03;
    }

    .premium-hero p,
    .checkout-card p {
        font-size: 15px;
        line-height: 1.55;
    }

    .pricing-card,
    .premium-boost-panel,
    .feature-table-card,
    .checkout-card {
        border-radius: 22px;
        padding: 18px;
    }

    .premium-boost-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .pricing-price {
        font-size: 30px;
    }
}

@media (max-width: 620px) {
    .pricing-grid,
    .feature-table {
        grid-template-columns: 1fr;
    }

    .feature-table > * {
        min-height: 42px;
    }

    .feature-table-card {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }
}
