.billing-page-wrap {
    position: relative;
    min-height: 100vh;
    align-items: flex-start;
    overflow: hidden;
}

.billing-page-wrap::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 18%, rgba(28, 181, 255, 0.26), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(138, 92, 255, 0.22), transparent 32%),
        radial-gradient(circle at 52% 88%, rgba(29, 255, 220, 0.10), transparent 34%),
        #020816;
}

.billing-page-wrap::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
    opacity: 0.28;
    pointer-events: none;
}

.billing-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.billing-header-actions {
    display: flex;
    gap: 12px;
}

.billing-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.billing-tab-button {
    min-width: 120px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(120, 206, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.billing-tab-button.is-active {
    background: linear-gradient(135deg, #1cb5ff, #3b82ff);
    border-color: transparent;
}

.billing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}

.billing-main,
.billing-sidebar,
.coming-soon-card,
.cart-card,
.product-card {
    border-radius: 20px;
    background: rgba(7, 16, 34, 0.82);
    border: 1px solid rgba(111, 204, 255, 0.24);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 16px 50px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(47, 180, 255, 0.12);
    backdrop-filter: blur(10px);
}

.billing-main {
    padding: 20px;
}

.billing-sidebar {
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.billing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    padding: 18px;
}

.product-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(115, 217, 255, 0.12);
    color: #87ddff;
    font-size: 12px;
    font-weight: 700;
}

.product-title {
    margin: 0 0 8px;
    font-size: 20px;
}

.product-desc {
    margin: 0 0 14px;
    color: rgba(234, 246, 255, 0.74);
    line-height: 1.7;
    font-size: 14px;
}

.product-price {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 800;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.select-button {
    flex: 1;
}

.select-button.is-selected {
    background: linear-gradient(135deg, #26c281, #15a46a);
}

.product-note {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(234, 246, 255, 0.62);
    line-height: 1.6;
}

.cart-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.cart-items {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.cart-item {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(115, 217, 255, 0.12);
}

.cart-item-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.cart-item-price {
    margin: 0;
    font-size: 13px;
    color: rgba(234, 246, 255, 0.76);
}

.cart-summary {
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid rgba(115, 217, 255, 0.15);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-row.total {
    font-size: 18px;
    font-weight: 800;
}

.coming-soon-card {
    padding: 24px;
}

.hidden {
    display: none;
}

.billing-header-actions .nav-link-button {
    width: 120px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .billing-layout {
        grid-template-columns: 1fr;
    }

    .billing-sidebar {
        position: static;
    }

    .billing-header {
        flex-direction: column;
    }
}