.billing-layout {
    grid-template-columns: 1.35fr 0.92fr;
}

.billing-hero {
    grid-template-columns: 1.3fr 0.82fr;
}

.billing-stack,
.side-stack {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-help {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.progress-hint {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 700;
}

.progress-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(29, 78, 216, 0.18);
    border-top-color: var(--accent-2);
    animation: billing-spin 0.8s linear infinite;
}

.status-banner {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(70, 51, 34, 0.10);
    font-weight: 700;
    line-height: 1.7;
}

.status-muted {
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
}

.status-info {
    background: rgba(29, 78, 216, 0.10);
    color: #1d4ed8;
}

.status-success {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.status-warn {
    background: rgba(200, 95, 47, 0.12);
    color: #9a4d28;
}

.status-danger {
    background: rgba(185, 28, 28, 0.10);
    color: #b91c1c;
}

.pricing-grid,
.summary-grid {
    display: grid;
    gap: 14px;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-card,
.summary-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(70, 51, 34, 0.10);
    background: rgba(255, 255, 255, 0.90);
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-card.is-active {
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.10);
    transform: translateY(-2px);
}

.plan-card.is-coming {
    border-style: dashed;
    border-color: rgba(29, 78, 216, 0.18);
    background: rgba(255, 255, 255, 0.82);
}

.plan-card header,
.summary-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.10);
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-price {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.price-compare {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.price-board {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(58px, auto) 1fr;
    gap: 6px 12px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(247, 243, 233, 0.72);
}

.price-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-row strong {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.price-row em {
    grid-column: 2;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}

.surface-actions {
    display: grid;
    gap: 12px;
}

.plan-card .action-btn {
    margin-top: auto;
}

.action-btn.is-loading {
    position: relative;
    padding-right: 42px;
}

.action-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: billing-spin 0.8s linear infinite;
}

.action-btn-secondary.is-loading::after {
    border-color: rgba(29, 78, 216, 0.18);
    border-top-color: var(--accent-2);
}

.action-btn[disabled] {
    opacity: 0.56;
    cursor: not-allowed;
    pointer-events: none;
}

.inline-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@keyframes billing-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .billing-layout,
    .billing-hero,
    .form-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
