*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ob-bg: #f3f7f6;
    --ob-ink: #1f2f35;
    --ob-muted: #5d828d;
    --ob-teal: #2f7f84;
    --ob-border: #d5e3df;
    --ob-card: #ffffff;
}

.ob-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(178, 216, 195, 0.35), transparent 40%),
        radial-gradient(circle at bottom right, rgba(83, 161, 166, 0.18), transparent 45%),
        var(--ob-bg);
    color: var(--ob-ink);
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
}

.ob-wrap {
    width: min(1120px, 94%);
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.ob-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ob-brand {
    font-weight: 800;
    text-decoration: none;
    color: var(--ob-ink);
}

.ob-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.ob-panel,
.ob-preview-card {
    background: var(--ob-card);
    border: 1px solid var(--ob-border);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(25, 60, 72, 0.06);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ob-panel {
    padding: 1.25rem 1.2rem 1.4rem;
}

.ob-hello {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 800;
    word-wrap: break-word;
}

.ob-sub {
    margin: 0 0 1.1rem;
    color: var(--ob-muted);
    line-height: 1.5;
}

.ob-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    margin-bottom: 1.1rem;
    overflow: hidden;
}

.ob-steps span {
    flex: 1 1 0;
    min-width: 0;
    height: 0.35rem;
    border-radius: 999px;
    background: #d9e7e4;
}

.ob-steps span.is-on {
    background: var(--ob-teal);
}

.ob-step[hidden] {
    display: none !important;
}

.ob-field {
    margin-bottom: 0.9rem;
    min-width: 0;
}

.ob-field label,
.ob-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ob-dropzone {
    position: relative;
    width: 100%;
    border: 1.5px dashed #b7cdc8;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(47, 127, 132, 0.08), transparent 42%),
        linear-gradient(180deg, #f7fbfa 0%, #eef6f4 100%);
    padding: 1.35rem 1rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    outline: none;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.ob-dropzone:hover,
.ob-dropzone:focus-visible {
    border-color: var(--ob-teal);
    box-shadow: 0 0 0 4px rgba(47, 127, 132, 0.1);
}

.ob-dropzone.is-dragover {
    border-color: var(--ob-teal);
    background: #e7f5f3;
    box-shadow: 0 0 0 4px rgba(47, 127, 132, 0.16);
    transform: scale(1.01);
}

.ob-dropzone.is-uploading {
    pointer-events: none;
    opacity: 0.85;
}

.ob-dropzone__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 0.35rem;
    border-radius: 50%;
    color: var(--ob-teal);
    background: rgba(47, 127, 132, 0.1);
}

.ob-dropzone__title {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: var(--ob-ink);
}

.ob-dropzone__sub {
    margin: 0;
    color: var(--ob-muted);
    font-size: 0.9rem;
}

.ob-dropzone__btn {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--ob-teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.ob-dropzone__hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--ob-muted);
}

.ob-field input[type="text"],
.ob-field input[type="email"],
.ob-field input[type="tel"],
.ob-field select {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: #fff;
    min-width: 0;
}

.ob-field input.is-invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.ob-field input[type="color"] {
    width: 100%;
    max-width: 100%;
    height: 44px;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    padding: 0.2rem;
    background: #fff;
}

.ob-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.ob-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.ob-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
}

.ob-btn-primary {
    background: var(--ob-teal);
    color: #fff;
}

.ob-btn-ghost {
    background: #eef5f3;
    color: var(--ob-ink);
}

.ob-pay-box .ob-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.ob-error {
    margin: 0.5rem 0 0.75rem;
    color: #b42318;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.ob-ok {
    margin: 0.5rem 0 0.75rem;
    color: #067647;
    font-size: 0.9rem;
}

.ob-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 0.8rem;
}

.ob-chips button {
    border: 1px solid var(--ob-border);
    background: #f7fbfa;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-preview-card {
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.ob-phone {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 28px;
    border: 10px solid #1f2f35;
    min-height: 540px;
    padding: 2.4rem 0.75rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

/* Espelha bio real com card_bg_mode=color (logo sobreposta) */
.ob-bio__card {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    padding: 0 0.85rem 1.1rem;
    margin-top: 2.4rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 0;
    overflow: visible;
    text-align: center;
    box-sizing: border-box;
}

.ob-bio__logo,
.ob-bio__logo-wrap {
    display: block;
    width: 96px;
    height: 96px;
    margin: -48px auto 0.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.ob-bio__logo-wrap {
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ob-bio__logo-wrap.is-empty {
    font-weight: 800;
    font-size: 1.7rem;
    color: #888;
    background: #f0f0f0;
}

.ob-bio__name {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    line-height: 1.3;
    word-break: break-word;
}

.ob-bio__slug {
    font-size: 0.68rem;
    opacity: 0.65;
    margin: 0 0 0.9rem;
    word-break: break-all;
}

.ob-bio__buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.ob-bio__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    padding: 0.85rem 0.9rem;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.28);
    border: none;
    transition: background 0.2s ease, color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.ob-plans {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ob-plan-card {
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--ob-border);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: #f8fcfb;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ob-plan-card:hover {
    border-color: #9ec4c1;
}

.ob-plan-card.is-selected {
    border-color: var(--ob-teal);
    background: #eef8f7;
    box-shadow: 0 0 0 3px rgba(47, 127, 132, 0.12);
}

.ob-plan-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.ob-plan-card__name {
    font-weight: 800;
    margin: 0;
    font-size: 1rem;
}

.ob-plan-card__price {
    font-weight: 700;
    color: var(--ob-teal);
    white-space: nowrap;
}

.ob-plan-card__price span {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--ob-muted);
}

.ob-plan-card__badge {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ob-teal);
}

.ob-plan-card__benefits {
    margin: 0.65rem 0 0;
    padding-left: 1.05rem;
    color: var(--ob-ink);
    font-size: 0.84rem;
}

.ob-plan-card__benefits li {
    margin: 0.2rem 0;
    line-height: 1.35;
}

.ob-plan-card.is-selected .ob-plan-card__benefits {
    display: block;
}

.ob-plan-card:not(.is-selected) .ob-plan-card__benefits {
    display: none;
}

.ob-plan-benefits {
    border: 1px solid var(--ob-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
    margin-bottom: 0.5rem;
}

.ob-plan-benefits__title {
    margin: 0 0 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
}

.ob-plan-benefits ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ob-ink);
}

.ob-plan-benefits li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.ob-pay-box {
    border: 1px dashed var(--ob-border);
    border-radius: 14px;
    padding: 0.9rem;
    background: #f8fcfb;
    margin-top: 0.6rem;
    overflow: hidden;
    word-wrap: break-word;
}

.ob-pay-box code {
    word-break: break-all;
    font-size: 0.8rem;
}

.ob-note {
    font-size: 0.84rem;
    color: var(--ob-muted);
    line-height: 1.45;
    word-wrap: break-word;
}

@media (max-width: 900px) {
    .ob-grid {
        grid-template-columns: 1fr;
    }
    .ob-preview-card {
        position: static;
        order: -1;
    }
    .ob-row {
        grid-template-columns: 1fr;
    }
    .ob-phone {
        max-width: 280px;
        min-height: 460px;
    }
}
