/* Create-account + checkout (pre-register-email) — mockup Screens 2 & 3 */
:root {
    --zb-orange: #F7941D;
    --zb-orange-dark: #E07E00;
    --zb-orange-soft: #FFF3E3;
    --zb-orange-tint: #FDEBD3;
    --zb-ink: #1C1C1E;
    --zb-ink-soft: #48484A;
    --zb-ink-faint: #8E8E93;
    --zb-bg: #FAF7F2;
    --zb-line: #ECE6DC;
    --zb-shadow: 0 8px 30px rgba(28, 28, 30, .08);
    --zb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

body.body_preRegister-new-email,
body.body_preRegister-new-email *,
body.body_preRegister-new-email *::before,
body.body_preRegister-new-email *::after {
    font-family: var(--zb-font) !important;
}

body.body_preRegister-new-email {
    background: var(--zb-bg) !important;
    min-height: 100vh;
    color: var(--zb-ink);
}

body.body_preRegister-new-email .zb-auth-flow {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: transparent;
}

.zb-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    background:
        radial-gradient(1200px 500px at 70% -10%, var(--zb-orange-tint), transparent),
        var(--zb-bg);
}

.zb-auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--zb-shadow);
    border: 1px solid var(--zb-line);
    width: 460px;
    max-width: 100%;
    padding: 38px 40px;
}

.zb-auth-card-wide {
    width: 680px;
}

.zb-steptext {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--zb-orange-dark);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.zb-auth-title {
    font-size: 26px !important;
    letter-spacing: -.5px;
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--zb-ink);
    line-height: 1.2;
}

.zb-auth-why {
    font-size: 14.5px;
    color: var(--zb-ink-soft);
    margin: 0 0 26px;
    line-height: 1.5;
}

.zb-field {
    margin-bottom: 16px;
}

.zb-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--zb-ink-soft);
    margin-bottom: 6px;
}

.zb-field .form-control {
    width: 100%;
    padding: 14px 14px;
    font-size: 15px;
    border: 1.5px solid var(--zb-line);
    border-radius: 10px;
    background: #FCFBF9;
    outline: none;
    transition: .15s;
    height: auto;
    box-shadow: none;
    color: var(--zb-ink);
}

.zb-field .form-control:focus {
    border-color: var(--zb-orange);
    background: #fff;
    box-shadow: none;
}

.zb-field.has-error .form-control {
    border-color: #dc3545;
}

.zb-field .error-text {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    min-height: 0;
}

.zb-legal {
    font-size: 12px;
    color: var(--zb-ink-faint);
    margin: 14px 0 18px;
    line-height: 1.5;
}

.zb-legal a {
    color: var(--zb-orange-dark);
    font-weight: 600;
    text-decoration: none;
}

.zb-legal a:hover {
    text-decoration: underline;
}

.zb-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--zb-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: .15s;
    text-align: center;
}

.zb-btn-dark:hover {
    background: #000;
    color: #fff;
}

.zb-btn-dark:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Checkout plan box ===== */
.zb-planbox-actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.zb-planbox-actions .zb-plan-change {
    margin-top: 0;
}

.zb-billing-term-select {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.zb-billing-term-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1.5px solid var(--zb-line);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: var(--zb-ink-soft);
    transition: .15s;
}

.zb-billing-term-btn:focus {
    outline: none;
}

.zb-billing-term-btn:hover {
    border-color: var(--zb-orange);
    color: var(--zb-ink);
}

.zb-billing-term-btn.sel {
    border-color: var(--zb-orange);
    color: var(--zb-ink);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--zb-orange);
}

.zb-billing-term-check {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--zb-orange);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    flex-shrink: 0;
}

.zb-billing-term-btn.sel .zb-billing-term-check {
    display: inline-block;
}

.zb-billing-save {
    font-size: 10px;
    font-weight: 700;
    color: var(--zb-orange-dark);
    margin-left: 2px;
}

.zb-planbox {
    border: 1.5px solid var(--zb-orange);
    background: var(--zb-orange-soft);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.zb-planbox-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.zb-planbox-name {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--zb-ink);
}

.zb-planbox-rec {
    font-size: 10.5px;
    background: var(--zb-orange);
    color: #1C1C1E;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 6px;
    margin-left: 8px;
    letter-spacing: .5px;
    vertical-align: 2px;
    display: inline-block;
}

.zb-planbox-rec.is-hidden {
    display: none;
}

.zb-planbox-price {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--zb-ink);
    white-space: nowrap;
}

.zb-planbox-price span {
    font-weight: 500;
    font-size: 12.5px;
    color: var(--zb-ink-faint);
}

.zb-planbox-detail {
    font-size: 12.5px;
    color: var(--zb-ink-soft);
    margin-top: 6px;
    line-height: 1.5;
}

.zb-plan-change {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--zb-orange-dark);
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
}
.zb-plan-change:focus {
    outline: none;
}

.zb-plan-change:hover {
    text-decoration: underline;
}

.zb-plan-alt {
    display: none;
    margin-top: 12px;
    gap: 8px;
}

.zb-plan-alt.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zb-plan-alt-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding-top: 8px;
}

.zb-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 22px 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #D8D8DC;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.zb-plan-card:focus {
    outline: none;
}

.zb-plan-card:hover {
    border-color: #CFCFD4;
}

.zb-plan-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #fff;
    background: var(--zb-orange);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.zb-plan-card-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--zb-orange);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}

.zb-plan-card-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--zb-ink-soft);
    margin-bottom: 8px;
}

.zb-plan-card-price {
    display: block;
    line-height: 1;
    color: var(--zb-ink);
}

.zb-plan-card-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.zb-plan-card-period {
    font-size: 14px;
    font-weight: 600;
    color: var(--zb-ink-soft);
}

.zb-plan-card.sel {
    border: 2px solid var(--zb-orange);
    background: var(--zb-orange-soft);
    box-shadow: 0 0 0 1px rgba(247, 148, 29, .08);
}

.zb-plan-card.sel .zb-plan-card-check {
    display: block;
}

.zb-plan-billing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--zb-ink-faint);
    font-weight: 500;
}

.zb-plan-billing-note-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

/* Legacy class hook for JS */
.zb-plan-alt-btn {
    appearance: none;
}

.zb-auth-card #whop-embedded-checkout button {
    background-color: #000 !important;
}

.zb-searching {
    display: none;
    text-align: center;
    padding: 20px 0 6px;
}

.zb-searching.show {
    display: block;
}

.zb-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--zb-orange-tint);
    border-top-color: var(--zb-orange);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: zb-spin .8s linear infinite;
}

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

.zb-searching p {
    font-size: 13px;
    color: var(--zb-ink-soft);
    font-weight: 600;
    margin: 0;
}

/* Keep seller-type / tools / name steps out of the new create-account landing */
body.body_preRegister-new-email #section-4,
body.body_preRegister-new-email #section-5,
body.body_preRegister-new-email #section-name,
body.body_preRegister-new-email .signup-seller-right {
    display: none !important;
}

/* Hide old 3-column pricing on this simplified flow */
body.body_preRegister-new-email #section-2.sustep-2 {
    display: none !important;
}

@media (max-width: 560px) {
    .zb-auth-card,
    .zb-auth-card-wide {
        padding: 28px 22px;
        border-radius: 16px;
        width: 100%;
    }

    .zb-auth-title {
        font-size: 22px !important;
    }

    .zb-auth-wrap {
        padding: 32px 16px;
    }

    .zb-planbox-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .zb-plan-alt.open {
        flex-direction: column;
    }

    .zb-plan-alt-btns {
        grid-template-columns: 1fr;
    }

    .zb-billing-term-select {
        flex-direction: column;
    }
}
