/* OneStopSocial — /billing magic-link login + portal iframe */

.billing-shell {
    min-height: 100vh;
    padding: 160px 0 80px;
    background: #faf9ff;
    display: flex;
    align-items: center;
}
.billing-shell .container { max-width: 520px; }


.billing-card {
    background: #fff;
    border: 1.5px solid #ede9fe;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 12px 40px rgba(43, 35, 80, 0.06);
}

.billing-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #2b2350;
    margin: 0 0 8px;
}
.billing-card .billing-sub {
    font-size: 15px;
    color: #6b6786;
    margin: 0 0 28px;
    line-height: 1.55;
}

.billing-field {
    display: block;
    margin-bottom: 18px;
}
.billing-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2b2350;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.billing-field input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid #e3dffa;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #2b2350;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.billing-field input:focus {
    border-color: #7052fb;
    box-shadow: 0 0 0 3px rgba(112, 82, 251, 0.15);
}

.billing-btn {
    display: block;
    width: 100%;
    height: 52px;
    background: #7052fb;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.billing-btn:hover { background: #5d3ef5; }
.billing-btn:active { transform: translateY(1px); }
.billing-btn:disabled {
    background: #b6a8f5;
    cursor: wait;
}

.billing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
    color: #6b6786;
}
.billing-meta a {
    color: #7052fb;
    text-decoration: none;
    font-weight: 500;
}
.billing-meta a:hover { text-decoration: underline; }

.billing-error {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.billing-error.is-visible { display: block; }

.billing-success {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #15803d;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.billing-success.is-visible { display: block; }

.billing-link {
    background: none;
    border: 0;
    padding: 0;
    color: #7052fb;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.billing-link:hover { text-decoration: underline; }
.billing-link:disabled { color: #a5a0c4; cursor: not-allowed; text-decoration: none; }

.billing-code-input {
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 20px !important;
    font-weight: 600;
}

/* State visibility */
.billing-shell [data-state] { display: none; }
.billing-shell[data-active-state="email"]  [data-state="email"],
.billing-shell[data-active-state="otp"]    [data-state="otp"],
.billing-shell[data-active-state="portal"] [data-state="portal"] {
    display: block;
}

/* Success state */
.billing-card-success { text-align: center; }
.billing-card-success .billing-sub { text-align: center; }
.billing-card-success .billing-meta { justify-content: center; }
.billing-card-success .billing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}
.billing-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e9ffef;
    color: #15803d;
    font-size: 28px;
    line-height: 56px;
    margin: 0 auto 18px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .billing-shell { padding: 90px 0 60px; }
    .billing-card { padding: 30px 24px; }
    .billing-card h1 { font-size: 22px; }
}
