.stb-valuation {
    --stb-site-dark: #0b1020;
    --stb-site-navy: #182034;
    --stb-ink: #111827;
    --stb-muted: #61708a;
    --stb-line: #dbe5f0;
    --stb-panel: #f6f9fc;
    --stb-soft: #edf3f8;
    --stb-accent: #ff5638;
    --stb-accent-dark: #e94429;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--stb-ink);
}

.stb-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border-radius: 24px;
    border: 1px solid rgba(219, 229, 240, 0.9);
    box-shadow: 0 24px 70px rgba(11, 16, 32, 0.18);
}

.stb-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    color: #8ba0bc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stb-progress {
    height: 8px;
    overflow: hidden;
    background: var(--stb-soft);
    border-radius: 999px;
}

.stb-progress span {
    display: block;
    width: 20%;
    height: 100%;
    background: var(--stb-accent);
    border-radius: inherit;
    transition: width 180ms ease;
}

.stb-form {
    border-top: 1px solid #edf1f6;
    margin-top: 18px;
    padding-top: 28px;
}

.stb-step {
    display: none;
}

.stb-step.is-active {
    display: block;
}

.stb-step h2 {
    margin: 0 0 8px;
    color: var(--stb-site-dark);
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: 0;
}

.stb-step p {
    margin: 0 0 26px;
    color: var(--stb-muted);
    font-size: 15px;
}

.stb-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 4px;
    margin-bottom: 26px;
    background: #edf3fa;
    border: 1px solid var(--stb-line);
    border-radius: 12px;
}

.stb-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--stb-muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.stb-tabs button.is-active {
    background: #fff;
    color: var(--stb-site-dark);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.stb-tabs button:hover {
    color: var(--stb-accent-dark);
}

.stb-tabs span::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    vertical-align: -2px;
    background: currentColor;
    mask: linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 6px, transparent 6px 8px, #000 8px 10px, transparent 10px 12px, #000 12px);
}

.stb-lookup-panel {
    display: none;
}

.stb-lookup-panel.is-active {
    display: block;
}

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

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

.stb-form label {
    display: block;
    margin-bottom: 24px;
    color: #41506a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    text-transform: uppercase;
}

.stb-form input,
.stb-form select,
.stb-form textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    margin-top: 7px;
    padding: 13px 16px;
    border: 1px solid #d5e0ec;
    border-radius: 12px;
    background: #f5f8fc;
    color: var(--stb-site-dark);
    font: inherit;
    font-size: 16px;
    letter-spacing: 0;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.stb-form input::placeholder,
.stb-form textarea::placeholder {
    color: #7f8da3;
    opacity: 1;
}

.stb-form textarea {
    resize: vertical;
}

.stb-form input:focus,
.stb-form select:focus,
.stb-form textarea:focus {
    border-color: var(--stb-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 86, 56, 0.14);
}

.stb-form .has-error {
    border-color: #dc2626;
    background: #fff7f7;
}

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

.stb-summary div,
.stb-offer-box {
    padding: 18px;
    border: 1px solid var(--stb-line);
    border-radius: 8px;
    background: var(--stb-panel);
}

.stb-summary span,
.stb-offer-box span,
.stb-offer-box small {
    display: block;
    color: var(--stb-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stb-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.stb-benefits-panel {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

.stb-benefits-head {
    margin-bottom: 12px;
}

.stb-benefits-head span,
.stb-benefits-grid span {
    display: block;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stb-benefits-head strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

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

.stb-benefits-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
}

.stb-benefits-grid strong {
    display: block;
    margin-top: 4px;
    color: #243349;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.stb-offer-box strong {
    display: block;
    margin: 8px 0;
    color: var(--stb-accent-dark);
    font-size: 40px;
    line-height: 1.1;
}

.stb-api-debug {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #25527a;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stb-api-debug.is-connected {
    background: #ecfdf3;
    color: #166534;
}

.stb-api-debug.is-fallback {
    background: #fff7ed;
    color: #9a3412;
}

.stb-report-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--stb-line);
    border-radius: 8px;
    background: #fff;
}

.stb-report-head,
.stb-report-grid span,
.stb-report-list span {
    color: var(--stb-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stb-report-head {
    margin-bottom: 12px;
    color: #41506a;
}

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

.stb-report-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--stb-panel);
}

.stb-report-grid strong,
.stb-report-list strong {
    display: block;
    margin-top: 4px;
    color: #243349;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.stb-report-list {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff7ed;
}

.stb-report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.stb-report-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #eef4fa;
    color: #25527a;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.stb-payment-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #ffd3c9;
    border-radius: 8px;
    background: #fff7f4;
}

.stb-payment-panel span {
    display: block;
    color: var(--stb-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stb-payment-panel strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.stb-payment-panel p {
    margin: 8px 0 0;
    color: #546783;
    font-size: 14px;
    line-height: 1.5;
}

.stb-payment-panel small {
    display: block;
    margin-top: 8px;
    color: var(--stb-accent-dark);
    font-size: 14px;
    font-weight: 900;
}

.stb-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.stb-payment-actions em {
    color: #9a3412;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.stb-payment-button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--stb-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.stb-payment-button:hover,
.stb-payment-button:focus {
    background: var(--stb-accent-dark);
}

.stb-payment-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.stb-payment-return {
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
}

.stb-payment-exclusive .stb-payment-return {
    margin: 0;
}

.stb-payment-return.is-error {
    border-color: #fecaca;
    background: #fff7f7;
}

.stb-payment-return.is-pending {
    border-color: #fed7aa;
    background: #fff7ed;
}

.stb-payment-return span {
    display: block;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stb-payment-return.is-error span {
    color: #b91c1c;
}

.stb-payment-return.is-pending span {
    color: #c2410c;
}

.stb-payment-return strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.stb-payment-return p {
    margin: 8px 0 0;
    color: #546783;
    font-size: 14px;
    line-height: 1.5;
}

.stb-payment-return a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--stb-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.stb-payment-loader {
    width: 28px;
    height: 28px;
    margin-top: 14px;
    border: 3px solid #fed7aa;
    border-top-color: var(--stb-accent);
    border-radius: 50%;
    animation: stb-payment-spin 0.8s linear infinite;
}

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

.stb-errors {
    min-height: 20px;
    margin: 10px 0;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
}

.stb-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.stb-actions [hidden],
.stb-actions .is-hidden {
    display: none !important;
}

.stb-primary,
.stb-secondary {
    min-height: 62px;
    padding: 0 28px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.stb-primary {
    flex: 1;
    background: linear-gradient(180deg, var(--stb-accent), #ff4d32);
    color: #fff;
    box-shadow: 0 20px 35px rgba(255, 86, 56, 0.28);
}

.stb-primary:hover,
.stb-primary:focus {
    background: var(--stb-accent-dark);
}

.stb-primary:disabled {
    cursor: wait;
    opacity: 0.75;
}

.stb-secondary {
    background: #e8eef5;
    color: #30415a;
}

.stb-footnote {
    margin: 26px 0 0;
    color: #91a1ba;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 640px) {
    .stb-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .stb-topline,
    .stb-grid,
    .stb-grid-3,
    .stb-summary,
    .stb-benefits-grid,
    .stb-payment-panel,
    .stb-report-grid {
        grid-template-columns: 1fr;
    }

    .stb-payment-actions {
        justify-content: stretch;
    }

    .stb-payment-button {
        width: 100%;
    }

    .stb-topline {
        display: grid;
    }

    .stb-tabs {
        grid-template-columns: 1fr;
    }

    .stb-offer-box strong {
        font-size: 31px;
    }

    .stb-actions {
        flex-direction: column;
    }

    .stb-primary,
    .stb-secondary {
        width: 100%;
        font-size: 16px;
    }
}
